easy-navigation 2.1.50 → 2.1.52
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 +4353 -4385
- 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
package/lib/div/accordion.js
CHANGED
|
@@ -8,43 +8,32 @@ 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
13
|
var _constants = require("../constants");
|
|
14
|
-
function
|
|
14
|
+
function _assert_this_initialized(self) {
|
|
15
15
|
if (self === void 0) {
|
|
16
16
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17
17
|
}
|
|
18
18
|
return self;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function _class_call_check(instance, Constructor) {
|
|
21
21
|
if (!(instance instanceof Constructor)) {
|
|
22
22
|
throw new TypeError("Cannot call a class as a function");
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
function isNativeReflectConstruct() {
|
|
26
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
27
|
-
if (Reflect.construct.sham) return false;
|
|
28
|
-
if (typeof Proxy === "function") return true;
|
|
29
|
-
try {
|
|
30
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));
|
|
31
|
-
return true;
|
|
32
|
-
} catch (e) {
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
25
|
function _construct(Parent, args, Class) {
|
|
37
|
-
if (
|
|
26
|
+
if (_is_native_reflect_construct()) {
|
|
38
27
|
_construct = Reflect.construct;
|
|
39
28
|
} else {
|
|
40
|
-
_construct = function
|
|
29
|
+
_construct = function construct(Parent, args, Class) {
|
|
41
30
|
var a = [
|
|
42
31
|
null
|
|
43
32
|
];
|
|
44
33
|
a.push.apply(a, args);
|
|
45
34
|
var Constructor = Function.bind.apply(Parent, a);
|
|
46
35
|
var instance = new Constructor();
|
|
47
|
-
if (Class)
|
|
36
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
48
37
|
return instance;
|
|
49
38
|
};
|
|
50
39
|
}
|
|
@@ -59,12 +48,12 @@ function _defineProperties(target, props) {
|
|
|
59
48
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
60
49
|
}
|
|
61
50
|
}
|
|
62
|
-
function
|
|
51
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
63
52
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
64
53
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
65
54
|
return Constructor;
|
|
66
55
|
}
|
|
67
|
-
function
|
|
56
|
+
function _define_property(obj, key, value) {
|
|
68
57
|
if (key in obj) {
|
|
69
58
|
Object.defineProperty(obj, key, {
|
|
70
59
|
value: value,
|
|
@@ -81,23 +70,23 @@ function _get(target, property, receiver) {
|
|
|
81
70
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
82
71
|
_get = Reflect.get;
|
|
83
72
|
} else {
|
|
84
|
-
_get = function
|
|
85
|
-
var base =
|
|
73
|
+
_get = function get(target, property, receiver) {
|
|
74
|
+
var base = _super_prop_base(target, property);
|
|
86
75
|
if (!base) return;
|
|
87
76
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
88
77
|
if (desc.get) {
|
|
89
|
-
return desc.get.call(receiver);
|
|
78
|
+
return desc.get.call(receiver || target);
|
|
90
79
|
}
|
|
91
80
|
return desc.value;
|
|
92
81
|
};
|
|
93
82
|
}
|
|
94
83
|
return _get(target, property, receiver || target);
|
|
95
84
|
}
|
|
96
|
-
function
|
|
97
|
-
|
|
85
|
+
function _get_prototype_of(o) {
|
|
86
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
98
87
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
99
88
|
};
|
|
100
|
-
return
|
|
89
|
+
return _get_prototype_of(o);
|
|
101
90
|
}
|
|
102
91
|
function _inherits(subClass, superClass) {
|
|
103
92
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -110,17 +99,17 @@ function _inherits(subClass, superClass) {
|
|
|
110
99
|
configurable: true
|
|
111
100
|
}
|
|
112
101
|
});
|
|
113
|
-
if (superClass)
|
|
102
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
114
103
|
}
|
|
115
|
-
function
|
|
104
|
+
function _interop_require_default(obj) {
|
|
116
105
|
return obj && obj.__esModule ? obj : {
|
|
117
106
|
default: obj
|
|
118
107
|
};
|
|
119
108
|
}
|
|
120
|
-
function
|
|
109
|
+
function _is_native_function(fn) {
|
|
121
110
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
122
111
|
}
|
|
123
|
-
function
|
|
112
|
+
function _object_spread(target) {
|
|
124
113
|
for(var i = 1; i < arguments.length; i++){
|
|
125
114
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
126
115
|
var ownKeys = Object.keys(source);
|
|
@@ -130,7 +119,7 @@ function _objectSpread(target) {
|
|
|
130
119
|
}));
|
|
131
120
|
}
|
|
132
121
|
ownKeys.forEach(function(key) {
|
|
133
|
-
|
|
122
|
+
_define_property(target, key, source[key]);
|
|
134
123
|
});
|
|
135
124
|
}
|
|
136
125
|
return target;
|
|
@@ -148,7 +137,7 @@ function ownKeys(object, enumerableOnly) {
|
|
|
148
137
|
}
|
|
149
138
|
return keys;
|
|
150
139
|
}
|
|
151
|
-
function
|
|
140
|
+
function _object_spread_props(target, source) {
|
|
152
141
|
source = source != null ? source : {};
|
|
153
142
|
if (Object.getOwnPropertyDescriptors) {
|
|
154
143
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
@@ -159,27 +148,27 @@ function _objectSpreadProps(target, source) {
|
|
|
159
148
|
}
|
|
160
149
|
return target;
|
|
161
150
|
}
|
|
162
|
-
function
|
|
163
|
-
if (call && (
|
|
151
|
+
function _possible_constructor_return(self, call) {
|
|
152
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
164
153
|
return call;
|
|
165
154
|
}
|
|
166
|
-
return
|
|
155
|
+
return _assert_this_initialized(self);
|
|
167
156
|
}
|
|
168
|
-
function
|
|
169
|
-
|
|
157
|
+
function _set_prototype_of(o, p) {
|
|
158
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
170
159
|
o.__proto__ = p;
|
|
171
160
|
return o;
|
|
172
161
|
};
|
|
173
|
-
return
|
|
162
|
+
return _set_prototype_of(o, p);
|
|
174
163
|
}
|
|
175
|
-
function
|
|
164
|
+
function _super_prop_base(object, property) {
|
|
176
165
|
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
177
|
-
object =
|
|
166
|
+
object = _get_prototype_of(object);
|
|
178
167
|
if (object === null) break;
|
|
179
168
|
}
|
|
180
169
|
return object;
|
|
181
170
|
}
|
|
182
|
-
function
|
|
171
|
+
function _tagged_template_literal(strings, raw) {
|
|
183
172
|
if (!raw) {
|
|
184
173
|
raw = strings.slice(0);
|
|
185
174
|
}
|
|
@@ -189,14 +178,14 @@ function _taggedTemplateLiteral(strings, raw) {
|
|
|
189
178
|
}
|
|
190
179
|
}));
|
|
191
180
|
}
|
|
192
|
-
|
|
181
|
+
function _type_of(obj) {
|
|
193
182
|
"@swc/helpers - typeof";
|
|
194
183
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
195
|
-
}
|
|
196
|
-
function
|
|
184
|
+
}
|
|
185
|
+
function _wrap_native_super(Class) {
|
|
197
186
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
198
|
-
|
|
199
|
-
if (Class === null || !
|
|
187
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
188
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
200
189
|
if (typeof Class !== "function") {
|
|
201
190
|
throw new TypeError("Super expression must either be null or a function");
|
|
202
191
|
}
|
|
@@ -205,7 +194,7 @@ function _wrapNativeSuper(Class) {
|
|
|
205
194
|
_cache.set(Class, Wrapper);
|
|
206
195
|
}
|
|
207
196
|
function Wrapper() {
|
|
208
|
-
return _construct(Class, arguments,
|
|
197
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
209
198
|
}
|
|
210
199
|
Wrapper.prototype = Object.create(Class.prototype, {
|
|
211
200
|
constructor: {
|
|
@@ -215,11 +204,11 @@ function _wrapNativeSuper(Class) {
|
|
|
215
204
|
configurable: true
|
|
216
205
|
}
|
|
217
206
|
});
|
|
218
|
-
return
|
|
207
|
+
return _set_prototype_of(Wrapper, Class);
|
|
219
208
|
};
|
|
220
|
-
return
|
|
209
|
+
return _wrap_native_super(Class);
|
|
221
210
|
}
|
|
222
|
-
function
|
|
211
|
+
function _is_native_reflect_construct() {
|
|
223
212
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
224
213
|
if (Reflect.construct.sham) return false;
|
|
225
214
|
if (typeof Proxy === "function") return true;
|
|
@@ -230,21 +219,21 @@ function _isNativeReflectConstruct() {
|
|
|
230
219
|
return false;
|
|
231
220
|
}
|
|
232
221
|
}
|
|
233
|
-
function
|
|
234
|
-
var hasNativeReflectConstruct =
|
|
222
|
+
function _create_super(Derived) {
|
|
223
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
235
224
|
return function _createSuperInternal() {
|
|
236
|
-
var Super =
|
|
225
|
+
var Super = _get_prototype_of(Derived), result;
|
|
237
226
|
if (hasNativeReflectConstruct) {
|
|
238
|
-
var NewTarget =
|
|
227
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
239
228
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
240
229
|
} else {
|
|
241
230
|
result = Super.apply(this, arguments);
|
|
242
231
|
}
|
|
243
|
-
return
|
|
232
|
+
return _possible_constructor_return(this, result);
|
|
244
233
|
};
|
|
245
234
|
}
|
|
246
235
|
function _templateObject() {
|
|
247
|
-
var data =
|
|
236
|
+
var data = _tagged_template_literal([
|
|
248
237
|
"\n\n overflow: hidden;\n\n display: block;\n \n .collapsed {\n display: none;\n }\n \n"
|
|
249
238
|
]);
|
|
250
239
|
_templateObject = function _templateObject() {
|
|
@@ -254,12 +243,12 @@ function _templateObject() {
|
|
|
254
243
|
}
|
|
255
244
|
var AccordionDiv = /*#__PURE__*/ function(Element) {
|
|
256
245
|
_inherits(AccordionDiv, Element);
|
|
257
|
-
var _super =
|
|
246
|
+
var _super = _create_super(AccordionDiv);
|
|
258
247
|
function AccordionDiv() {
|
|
259
|
-
|
|
248
|
+
_class_call_check(this, AccordionDiv);
|
|
260
249
|
return _super.apply(this, arguments);
|
|
261
250
|
}
|
|
262
|
-
|
|
251
|
+
_create_class(AccordionDiv, [
|
|
263
252
|
{
|
|
264
253
|
key: "expand",
|
|
265
254
|
value: function expand(initialHeight, instantly) {
|
|
@@ -285,7 +274,7 @@ var AccordionDiv = /*#__PURE__*/ function(Element) {
|
|
|
285
274
|
var height;
|
|
286
275
|
var display = this.style("display");
|
|
287
276
|
this.show();
|
|
288
|
-
height = _get(
|
|
277
|
+
height = _get(_get_prototype_of(AccordionDiv.prototype), "getHeight", this).call(this);
|
|
289
278
|
this.display(display);
|
|
290
279
|
return height;
|
|
291
280
|
}
|
|
@@ -339,7 +328,7 @@ var AccordionDiv = /*#__PURE__*/ function(Element) {
|
|
|
339
328
|
key: "parentContext",
|
|
340
329
|
value: function parentContext() {
|
|
341
330
|
var context = this.getContext(), resizeDiv = this.resize.bind(this), expandDiv = this.expand.bind(this), collapseDiv = this.collapse.bind(this), getDivHeight = this.getHeight.bind(this), isCollapsed = this.isCollapsed.bind(this);
|
|
342
|
-
return
|
|
331
|
+
return _object_spread_props(_object_spread({}, context), {
|
|
343
332
|
resizeDiv: resizeDiv,
|
|
344
333
|
expandDiv: expandDiv,
|
|
345
334
|
collapseDiv: collapseDiv,
|
|
@@ -350,11 +339,11 @@ var AccordionDiv = /*#__PURE__*/ function(Element) {
|
|
|
350
339
|
}
|
|
351
340
|
]);
|
|
352
341
|
return AccordionDiv;
|
|
353
|
-
}(
|
|
354
|
-
|
|
355
|
-
|
|
342
|
+
}(_wrap_native_super(_easy.Element));
|
|
343
|
+
_define_property(AccordionDiv, "tagName", "div");
|
|
344
|
+
_define_property(AccordionDiv, "defaultProperties", {
|
|
356
345
|
className: "accordion"
|
|
357
346
|
});
|
|
358
|
-
var _default = (0,
|
|
347
|
+
var _default = (0, _easywithstyle.default)(AccordionDiv)(_templateObject());
|
|
359
348
|
|
|
360
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
349
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaXYvYWNjb3JkaW9uLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCJlYXN5LXd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DLGNBMEdHd0MsV0FBVTtBQUVqQixpQkE1R0l4QyxjQTRHR3lDLHFCQUFvQjtJQUN6QkMsV0FBVztBQUNiO0lBR0YsV0FBZUMsSUFBQUEsc0JBQVMsRUFBQzNDIn0=
|
package/lib/example/accordion.js
CHANGED
|
@@ -8,21 +8,21 @@ 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 _index = require("../index");
|
|
13
|
-
var _accordion = /*#__PURE__*/
|
|
14
|
-
function
|
|
13
|
+
var _accordion = /*#__PURE__*/ _interop_require_default(require("./item/accordion"));
|
|
14
|
+
function _assert_this_initialized(self) {
|
|
15
15
|
if (self === void 0) {
|
|
16
16
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17
17
|
}
|
|
18
18
|
return self;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function _class_call_check(instance, Constructor) {
|
|
21
21
|
if (!(instance instanceof Constructor)) {
|
|
22
22
|
throw new TypeError("Cannot call a class as a function");
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function _define_property(obj, key, value) {
|
|
26
26
|
if (key in obj) {
|
|
27
27
|
Object.defineProperty(obj, key, {
|
|
28
28
|
value: value,
|
|
@@ -35,11 +35,11 @@ function _defineProperty(obj, key, value) {
|
|
|
35
35
|
}
|
|
36
36
|
return obj;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
|
|
38
|
+
function _get_prototype_of(o) {
|
|
39
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
40
40
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
41
41
|
};
|
|
42
|
-
return
|
|
42
|
+
return _get_prototype_of(o);
|
|
43
43
|
}
|
|
44
44
|
function _inherits(subClass, superClass) {
|
|
45
45
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -52,27 +52,27 @@ function _inherits(subClass, superClass) {
|
|
|
52
52
|
configurable: true
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
if (superClass)
|
|
55
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function _interop_require_default(obj) {
|
|
58
58
|
return obj && obj.__esModule ? obj : {
|
|
59
59
|
default: obj
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
if (call && (
|
|
62
|
+
function _possible_constructor_return(self, call) {
|
|
63
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
64
64
|
return call;
|
|
65
65
|
}
|
|
66
|
-
return
|
|
66
|
+
return _assert_this_initialized(self);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
68
|
+
function _set_prototype_of(o, p) {
|
|
69
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
70
70
|
o.__proto__ = p;
|
|
71
71
|
return o;
|
|
72
72
|
};
|
|
73
|
-
return
|
|
73
|
+
return _set_prototype_of(o, p);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function _tagged_template_literal(strings, raw) {
|
|
76
76
|
if (!raw) {
|
|
77
77
|
raw = strings.slice(0);
|
|
78
78
|
}
|
|
@@ -82,11 +82,11 @@ function _taggedTemplateLiteral(strings, raw) {
|
|
|
82
82
|
}
|
|
83
83
|
}));
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
function _type_of(obj) {
|
|
86
86
|
"@swc/helpers - typeof";
|
|
87
87
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
88
|
-
}
|
|
89
|
-
function
|
|
88
|
+
}
|
|
89
|
+
function _is_native_reflect_construct() {
|
|
90
90
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
91
91
|
if (Reflect.construct.sham) return false;
|
|
92
92
|
if (typeof Proxy === "function") return true;
|
|
@@ -97,21 +97,21 @@ function _isNativeReflectConstruct() {
|
|
|
97
97
|
return false;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
var hasNativeReflectConstruct =
|
|
100
|
+
function _create_super(Derived) {
|
|
101
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
102
102
|
return function _createSuperInternal() {
|
|
103
|
-
var Super =
|
|
103
|
+
var Super = _get_prototype_of(Derived), result;
|
|
104
104
|
if (hasNativeReflectConstruct) {
|
|
105
|
-
var NewTarget =
|
|
105
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
106
106
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
107
107
|
} else {
|
|
108
108
|
result = Super.apply(this, arguments);
|
|
109
109
|
}
|
|
110
|
-
return
|
|
110
|
+
return _possible_constructor_return(this, result);
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
function _templateObject() {
|
|
114
|
-
var data =
|
|
114
|
+
var data = _tagged_template_literal([
|
|
115
115
|
"\n\n grid-area: accordion;\n\n border: 1px solid black;\n \n @media (min-width: 800px) {\n \n border: none;\n \n }\n\n"
|
|
116
116
|
]);
|
|
117
117
|
_templateObject = function _templateObject() {
|
|
@@ -120,14 +120,14 @@ function _templateObject() {
|
|
|
120
120
|
return data;
|
|
121
121
|
}
|
|
122
122
|
var _class;
|
|
123
|
-
var _default = (0,
|
|
123
|
+
var _default = (0, _easywithstyle.default)((_class = /*#__PURE__*/ function(Accordion) {
|
|
124
124
|
_inherits(_class, Accordion);
|
|
125
|
-
var _super =
|
|
125
|
+
var _super = _create_super(_class);
|
|
126
126
|
function _class() {
|
|
127
|
-
|
|
127
|
+
_class_call_check(this, _class);
|
|
128
128
|
return _super.apply(this, arguments);
|
|
129
129
|
}
|
|
130
130
|
return _class;
|
|
131
|
-
}(_index.Accordion),
|
|
131
|
+
}(_index.Accordion), _define_property(_class, "AccordionItem", _accordion.default), _class))(_templateObject());
|
|
132
132
|
|
|
133
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
133
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leGFtcGxlL2FjY29yZGlvbi5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHdpdGhTdHlsZSBmcm9tIFwiZWFzeS13aXRoLXN0eWxlXCI7ICAvLy9cblxuaW1wb3J0IHsgQWNjb3JkaW9uIH0gZnJvbSBcIi4uL2luZGV4XCI7IC8vL1xuXG5pbXBvcnQgQWNjb3JkaW9uSXRlbSBmcm9tIFwiLi9pdGVtL2FjY29yZGlvblwiO1xuXG5leHBvcnQgZGVmYXVsdCB3aXRoU3R5bGUoY2xhc3MgZXh0ZW5kcyBBY2NvcmRpb24ge1xuICBzdGF0aWMgQWNjb3JkaW9uSXRlbSA9IEFjY29yZGlvbkl0ZW07XG59KWBcblxuICBncmlkLWFyZWE6IGFjY29yZGlvbjtcblxuICBib3JkZXI6IDFweCBzb2xpZCBibGFjaztcbiAgXG4gIEBtZWRpYSAobWluLXdpZHRoOiA4MDBweCkge1xuICBcbiAgICBib3JkZXI6IG5vbmU7XG4gIFxuICB9XG5cbmA7XG4iXSwibmFtZXMiOlsid2l0aFN0eWxlIiwiQWNjb3JkaW9uIiwiQWNjb3JkaW9uSXRlbSJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7K0JBUUE7OztlQUFBOzs7b0VBTnNCO3FCQUVJO2dFQUVBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQUUxQixXQUFlQSxJQUFBQSxzQkFBUywwQkFBQzs7Ozs7Ozs7RUFBY0MsZ0JBQVMsR0FDOUMseUJBQU9DLGlCQUFnQkEsa0JBQWEifQ==
|
|
@@ -8,16 +8,16 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return ButtonsArticle;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var _article = /*#__PURE__*/
|
|
11
|
+
var _article = /*#__PURE__*/ _interop_require_default(require("../article"));
|
|
12
12
|
var _uris = require("../uris");
|
|
13
13
|
var _paths = require("../paths");
|
|
14
|
-
function
|
|
14
|
+
function _assert_this_initialized(self) {
|
|
15
15
|
if (self === void 0) {
|
|
16
16
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17
17
|
}
|
|
18
18
|
return self;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function _class_call_check(instance, Constructor) {
|
|
21
21
|
if (!(instance instanceof Constructor)) {
|
|
22
22
|
throw new TypeError("Cannot call a class as a function");
|
|
23
23
|
}
|
|
@@ -31,12 +31,12 @@ function _defineProperties(target, props) {
|
|
|
31
31
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
35
35
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
36
36
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
37
37
|
return Constructor;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function _define_property(obj, key, value) {
|
|
40
40
|
if (key in obj) {
|
|
41
41
|
Object.defineProperty(obj, key, {
|
|
42
42
|
value: value,
|
|
@@ -49,11 +49,11 @@ function _defineProperty(obj, key, value) {
|
|
|
49
49
|
}
|
|
50
50
|
return obj;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
|
|
52
|
+
function _get_prototype_of(o) {
|
|
53
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
54
54
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
55
55
|
};
|
|
56
|
-
return
|
|
56
|
+
return _get_prototype_of(o);
|
|
57
57
|
}
|
|
58
58
|
function _inherits(subClass, superClass) {
|
|
59
59
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -66,31 +66,31 @@ function _inherits(subClass, superClass) {
|
|
|
66
66
|
configurable: true
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
if (superClass)
|
|
69
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function _interop_require_default(obj) {
|
|
72
72
|
return obj && obj.__esModule ? obj : {
|
|
73
73
|
default: obj
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
if (call && (
|
|
76
|
+
function _possible_constructor_return(self, call) {
|
|
77
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
78
78
|
return call;
|
|
79
79
|
}
|
|
80
|
-
return
|
|
80
|
+
return _assert_this_initialized(self);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
|
|
82
|
+
function _set_prototype_of(o, p) {
|
|
83
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
84
84
|
o.__proto__ = p;
|
|
85
85
|
return o;
|
|
86
86
|
};
|
|
87
|
-
return
|
|
87
|
+
return _set_prototype_of(o, p);
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
function _type_of(obj) {
|
|
90
90
|
"@swc/helpers - typeof";
|
|
91
91
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
92
|
-
}
|
|
93
|
-
function
|
|
92
|
+
}
|
|
93
|
+
function _is_native_reflect_construct() {
|
|
94
94
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
95
95
|
if (Reflect.construct.sham) return false;
|
|
96
96
|
if (typeof Proxy === "function") return true;
|
|
@@ -101,27 +101,27 @@ function _isNativeReflectConstruct() {
|
|
|
101
101
|
return false;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
var hasNativeReflectConstruct =
|
|
104
|
+
function _create_super(Derived) {
|
|
105
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
106
106
|
return function _createSuperInternal() {
|
|
107
|
-
var Super =
|
|
107
|
+
var Super = _get_prototype_of(Derived), result;
|
|
108
108
|
if (hasNativeReflectConstruct) {
|
|
109
|
-
var NewTarget =
|
|
109
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
110
110
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
111
111
|
} else {
|
|
112
112
|
result = Super.apply(this, arguments);
|
|
113
113
|
}
|
|
114
|
-
return
|
|
114
|
+
return _possible_constructor_return(this, result);
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
var ButtonsArticle = /*#__PURE__*/ function(Article) {
|
|
118
118
|
_inherits(ButtonsArticle, Article);
|
|
119
|
-
var _super =
|
|
119
|
+
var _super = _create_super(ButtonsArticle);
|
|
120
120
|
function ButtonsArticle() {
|
|
121
|
-
|
|
121
|
+
_class_call_check(this, ButtonsArticle);
|
|
122
122
|
return _super.apply(this, arguments);
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
_create_class(ButtonsArticle, [
|
|
125
125
|
{
|
|
126
126
|
key: "childElements",
|
|
127
127
|
value: function childElements() {
|
|
@@ -131,11 +131,11 @@ var ButtonsArticle = /*#__PURE__*/ function(Article) {
|
|
|
131
131
|
]);
|
|
132
132
|
return ButtonsArticle;
|
|
133
133
|
}(_article.default);
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
_define_property(ButtonsArticle, "uri", _uris.buttonsURI);
|
|
135
|
+
_define_property(ButtonsArticle, "path", _paths.buttonsPath);
|
|
136
|
+
_define_property(ButtonsArticle, "title", "Buttons");
|
|
137
|
+
_define_property(ButtonsArticle, "defaultProperties", {
|
|
138
138
|
className: "buttons"
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL2FydGljbGUvYnV0dG9ucy5qcyIsIjw8anN4LWNvbmZpZy1wcmFnbWEuanM+PiJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IEFydGljbGUgZnJvbSBcIi4uL2FydGljbGVcIjtcblxuaW1wb3J0IHsgYnV0dG9uc1VSSSB9IGZyb20gXCIuLi91cmlzXCI7XG5pbXBvcnQgeyBidXR0b25zUGF0aCB9IGZyb20gXCIuLi9wYXRoc1wiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBCdXR0b25zQXJ0aWNsZSBleHRlbmRzIEFydGljbGUge1xuICBjaGlsZEVsZW1lbnRzKCkge1xuICAgIHJldHVybiAoXG5cbiAgICAgIDxkaXY+XG4gICAgICAgIDxoMT5cbiAgICAgICAgICBCdXR0b25zXG4gICAgICAgIDwvaDE+
|
|
141
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL2FydGljbGUvYnV0dG9ucy5qcyIsIjw8anN4LWNvbmZpZy1wcmFnbWEuanM+PiJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IEFydGljbGUgZnJvbSBcIi4uL2FydGljbGVcIjtcblxuaW1wb3J0IHsgYnV0dG9uc1VSSSB9IGZyb20gXCIuLi91cmlzXCI7XG5pbXBvcnQgeyBidXR0b25zUGF0aCB9IGZyb20gXCIuLi9wYXRoc1wiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBC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