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,16 +8,16 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return LinksArticle;
|
|
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 LinksArticle = /*#__PURE__*/ function(Article) {
|
|
118
118
|
_inherits(LinksArticle, Article);
|
|
119
|
-
var _super =
|
|
119
|
+
var _super = _create_super(LinksArticle);
|
|
120
120
|
function LinksArticle() {
|
|
121
|
-
|
|
121
|
+
_class_call_check(this, LinksArticle);
|
|
122
122
|
return _super.apply(this, arguments);
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
_create_class(LinksArticle, [
|
|
125
125
|
{
|
|
126
126
|
key: "childElements",
|
|
127
127
|
value: function childElements() {
|
|
@@ -131,11 +131,11 @@ var LinksArticle = /*#__PURE__*/ function(Article) {
|
|
|
131
131
|
]);
|
|
132
132
|
return LinksArticle;
|
|
133
133
|
}(_article.default);
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
_define_property(LinksArticle, "uri", _uris.linksURI);
|
|
135
|
+
_define_property(LinksArticle, "path", _paths.linksPath);
|
|
136
|
+
_define_property(LinksArticle, "title", "Links");
|
|
137
|
+
_define_property(LinksArticle, "defaultProperties", {
|
|
138
138
|
className: "code"
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL2FydGljbGUvbGlua3MuanMiLCI8PGpzeC1jb25maWctcHJhZ21hLmpzPj4iXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBBcnRpY2xlIGZyb20gXCIuLi9hcnRpY2xlXCI7XG5cbmltcG9ydCB7IGxpbmtzVVJJIH0gZnJvbSBcIi4uL3VyaXNcIjtcbmltcG9ydCB7IGxpbmtzUGF0aCB9IGZyb20gXCIuLi9wYXRoc1wiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBMaW5rc0FydGljbGUgZXh0ZW5kcyBBcnRpY2xlIHtcbiAgY2hpbGRFbGVtZW50cygpIHtcbiAgICByZXR1cm4gKF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3MiOiJBQUFBOzs7Ozs7O2VBT3FCQTs7OzhEQUxEO29CQUVLO3FCQUNDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUVYLElBQUEsQUFBTUEsNkJBQU47Y0FBTUE7K0JBQUFBO2FBQUFBO2dDQUFBQTs7O2tCQUFBQTs7WUFDbkJDLEtBQUFBO21CQUFBQSxTQUFBQSxnQkFBZ0I7Z0JBQ2QscUJBRUUsb0JBQUNDLDJCQUNDLG9CQUFDQyxZQUFHO1lBTVY7OztXQVhtQkg7RUFBcUJJLGdCQUFPO0FBYS9DLGlCQWJtQkosY0FhWkssT0FBTUMsY0FBUTtBQUVyQixpQkFmbUJOLGNBZVpPLFFBQU9DLGdCQUFTO0FBRXZCLGlCQWpCbUJSLGNBaUJaUyxTQUFRO0FBRWYsaUJBbkJtQlQsY0FtQlpVLHFCQUFvQjtJQUN6QkMsV0FBVztBQUNiIn0=
|
|
@@ -8,16 +8,16 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return SectionsArticle;
|
|
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 SectionsArticle = /*#__PURE__*/ function(Article) {
|
|
118
118
|
_inherits(SectionsArticle, Article);
|
|
119
|
-
var _super =
|
|
119
|
+
var _super = _create_super(SectionsArticle);
|
|
120
120
|
function SectionsArticle() {
|
|
121
|
-
|
|
121
|
+
_class_call_check(this, SectionsArticle);
|
|
122
122
|
return _super.apply(this, arguments);
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
_create_class(SectionsArticle, [
|
|
125
125
|
{
|
|
126
126
|
key: "childElements",
|
|
127
127
|
value: function childElements() {
|
|
@@ -131,11 +131,11 @@ var SectionsArticle = /*#__PURE__*/ function(Article) {
|
|
|
131
131
|
]);
|
|
132
132
|
return SectionsArticle;
|
|
133
133
|
}(_article.default);
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
_define_property(SectionsArticle, "uri", _uris.sectionsURI);
|
|
135
|
+
_define_property(SectionsArticle, "path", _paths.sectionsPath);
|
|
136
|
+
_define_property(SectionsArticle, "title", "Sections");
|
|
137
|
+
_define_property(SectionsArticle, "defaultProperties", {
|
|
138
138
|
className: "sections"
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL2FydGljbGUvc2VjdGlvbnMuanMiLCI8PGpzeC1jb25maWctcHJhZ21hLmpzPj4iXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBBcnRpY2xlIGZyb20gXCIuLi9hcnRpY2xlXCI7XG5cbmltcG9ydCB7IHNlY3Rpb25zVVJJIH0gZnJvbSBcIi4uL3VyaXNcIjtcbmltcG9ydCB7IHNlY3Rpb25zUGF0aCB9IGZyb20gXCIuLi9wYXRoc1wiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBTZWN0aW9uc0FydGljbGUgZXh0ZW5kcyBBcnRpY2xlIHtc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VSSSIsInBhdGgiLCJzZWN0aW9uc1BhdGgiLCJ0aXRsZSIsImRlZmF1bHRQcm9wZXJ0aWVzIiwiY2xhc3NOYW1lIl0sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7OztlQU9xQkE7Ozs4REFMRDtvQkFFUTtxQkFDQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFZCxJQUFBLEFBQU1BLGdDQUFOO2NBQU1BOytCQUFBQTthQUFBQTtnQ0FBQUE7OztrQkFBQUE7O1lBQ25CQyxLQUFBQTttQkFBQUEsU0FBQUEsZ0JBQWdCO2dCQUNkLHFCQUVFLG9CQUFDQywyQkFDQyxvQkFBQ0MsWUFBRztZQU1WOzs7V0FYbUJIO0VBQXdCSSxnQkFBTztBQWFsRCxpQkFibUJKLGlCQWFaSyxPQUFNQyxpQkFBVztBQUV4QixpQkFmbUJOLGlCQWVaTyxRQUFPQyxtQkFBWTtBQUUxQixpQkFqQm1CUixpQkFpQlpTLFNBQVE7QUFFZixpQkFuQm1CVCxpQkFtQlpVLHFCQUFvQjtJQUN6QkMsV0FBVztBQUNiIn0=
|
package/lib/example/article.js
CHANGED
|
@@ -8,48 +8,37 @@ 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
|
-
function
|
|
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
|
}
|
|
50
39
|
return _construct.apply(null, arguments);
|
|
51
40
|
}
|
|
52
|
-
function
|
|
41
|
+
function _define_property(obj, key, value) {
|
|
53
42
|
if (key in obj) {
|
|
54
43
|
Object.defineProperty(obj, key, {
|
|
55
44
|
value: value,
|
|
@@ -62,11 +51,11 @@ function _defineProperty(obj, key, value) {
|
|
|
62
51
|
}
|
|
63
52
|
return obj;
|
|
64
53
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
54
|
+
function _get_prototype_of(o) {
|
|
55
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
67
56
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
68
57
|
};
|
|
69
|
-
return
|
|
58
|
+
return _get_prototype_of(o);
|
|
70
59
|
}
|
|
71
60
|
function _inherits(subClass, superClass) {
|
|
72
61
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -79,30 +68,30 @@ function _inherits(subClass, superClass) {
|
|
|
79
68
|
configurable: true
|
|
80
69
|
}
|
|
81
70
|
});
|
|
82
|
-
if (superClass)
|
|
71
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
83
72
|
}
|
|
84
|
-
function
|
|
73
|
+
function _interop_require_default(obj) {
|
|
85
74
|
return obj && obj.__esModule ? obj : {
|
|
86
75
|
default: obj
|
|
87
76
|
};
|
|
88
77
|
}
|
|
89
|
-
function
|
|
78
|
+
function _is_native_function(fn) {
|
|
90
79
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
91
80
|
}
|
|
92
|
-
function
|
|
93
|
-
if (call && (
|
|
81
|
+
function _possible_constructor_return(self, call) {
|
|
82
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
94
83
|
return call;
|
|
95
84
|
}
|
|
96
|
-
return
|
|
85
|
+
return _assert_this_initialized(self);
|
|
97
86
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
87
|
+
function _set_prototype_of(o, p) {
|
|
88
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
100
89
|
o.__proto__ = p;
|
|
101
90
|
return o;
|
|
102
91
|
};
|
|
103
|
-
return
|
|
92
|
+
return _set_prototype_of(o, p);
|
|
104
93
|
}
|
|
105
|
-
function
|
|
94
|
+
function _tagged_template_literal(strings, raw) {
|
|
106
95
|
if (!raw) {
|
|
107
96
|
raw = strings.slice(0);
|
|
108
97
|
}
|
|
@@ -112,14 +101,14 @@ function _taggedTemplateLiteral(strings, raw) {
|
|
|
112
101
|
}
|
|
113
102
|
}));
|
|
114
103
|
}
|
|
115
|
-
|
|
104
|
+
function _type_of(obj) {
|
|
116
105
|
"@swc/helpers - typeof";
|
|
117
106
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
118
|
-
}
|
|
119
|
-
function
|
|
107
|
+
}
|
|
108
|
+
function _wrap_native_super(Class) {
|
|
120
109
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
121
|
-
|
|
122
|
-
if (Class === null || !
|
|
110
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
111
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
123
112
|
if (typeof Class !== "function") {
|
|
124
113
|
throw new TypeError("Super expression must either be null or a function");
|
|
125
114
|
}
|
|
@@ -128,7 +117,7 @@ function _wrapNativeSuper(Class) {
|
|
|
128
117
|
_cache.set(Class, Wrapper);
|
|
129
118
|
}
|
|
130
119
|
function Wrapper() {
|
|
131
|
-
return _construct(Class, arguments,
|
|
120
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
132
121
|
}
|
|
133
122
|
Wrapper.prototype = Object.create(Class.prototype, {
|
|
134
123
|
constructor: {
|
|
@@ -138,11 +127,11 @@ function _wrapNativeSuper(Class) {
|
|
|
138
127
|
configurable: true
|
|
139
128
|
}
|
|
140
129
|
});
|
|
141
|
-
return
|
|
130
|
+
return _set_prototype_of(Wrapper, Class);
|
|
142
131
|
};
|
|
143
|
-
return
|
|
132
|
+
return _wrap_native_super(Class);
|
|
144
133
|
}
|
|
145
|
-
function
|
|
134
|
+
function _is_native_reflect_construct() {
|
|
146
135
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
147
136
|
if (Reflect.construct.sham) return false;
|
|
148
137
|
if (typeof Proxy === "function") return true;
|
|
@@ -153,21 +142,21 @@ function _isNativeReflectConstruct() {
|
|
|
153
142
|
return false;
|
|
154
143
|
}
|
|
155
144
|
}
|
|
156
|
-
function
|
|
157
|
-
var hasNativeReflectConstruct =
|
|
145
|
+
function _create_super(Derived) {
|
|
146
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
158
147
|
return function _createSuperInternal() {
|
|
159
|
-
var Super =
|
|
148
|
+
var Super = _get_prototype_of(Derived), result;
|
|
160
149
|
if (hasNativeReflectConstruct) {
|
|
161
|
-
var NewTarget =
|
|
150
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
162
151
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
163
152
|
} else {
|
|
164
153
|
result = Super.apply(this, arguments);
|
|
165
154
|
}
|
|
166
|
-
return
|
|
155
|
+
return _possible_constructor_return(this, result);
|
|
167
156
|
};
|
|
168
157
|
}
|
|
169
158
|
function _templateObject() {
|
|
170
|
-
var data =
|
|
159
|
+
var data = _tagged_template_literal([
|
|
171
160
|
"\n\n padding: 2rem;\n \n :not(:first-of-type) {\n\n border-top: 1px solid black;\n \n }\n\n @media (min-width: 800px) {\n \n padding: 0;\n \n :not(:first-of-type) {\n \n border-top: none;\n \n }\n \n }\n \n"
|
|
172
161
|
]);
|
|
173
162
|
_templateObject = function _templateObject() {
|
|
@@ -177,14 +166,14 @@ function _templateObject() {
|
|
|
177
166
|
}
|
|
178
167
|
var Article = /*#__PURE__*/ function(Element) {
|
|
179
168
|
_inherits(Article, Element);
|
|
180
|
-
var _super =
|
|
169
|
+
var _super = _create_super(Article);
|
|
181
170
|
function Article() {
|
|
182
|
-
|
|
171
|
+
_class_call_check(this, Article);
|
|
183
172
|
return _super.apply(this, arguments);
|
|
184
173
|
}
|
|
185
174
|
return Article;
|
|
186
|
-
}(
|
|
187
|
-
|
|
188
|
-
var _default = (0,
|
|
175
|
+
}(_wrap_native_super(_easy.Element));
|
|
176
|
+
_define_property(Article, "tagName", "article");
|
|
177
|
+
var _default = (0, _easywithstyle.default)(Article)(_templateObject());
|
|
189
178
|
|
|
190
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
179
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJ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Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFeEIsSUFBQSxBQUFNQSx3QkFJSCxBQUpIO2NBQU1BOytCQUFBQTthQUFBQTtnQ0FBQUE7OztXQUFBQTtxQkFBZ0JDLGFBQU87QUFDM0IsaUJBRElELFNBQ0dFLFdBQVU7SUFHbkIsV0FBZUMsSUFBQUEsc0JBQVMsRUFBQ0gifQ==
|
|
@@ -8,14 +8,14 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var _home = /*#__PURE__*/
|
|
12
|
-
var _links = /*#__PURE__*/
|
|
13
|
-
var _codes = /*#__PURE__*/
|
|
14
|
-
var _inputs = /*#__PURE__*/
|
|
15
|
-
var _buttons = /*#__PURE__*/
|
|
16
|
-
var _sections = /*#__PURE__*/
|
|
17
|
-
var _headings = /*#__PURE__*/
|
|
18
|
-
function
|
|
11
|
+
var _home = /*#__PURE__*/ _interop_require_default(require("./article/home"));
|
|
12
|
+
var _links = /*#__PURE__*/ _interop_require_default(require("./article/links"));
|
|
13
|
+
var _codes = /*#__PURE__*/ _interop_require_default(require("./article/codes"));
|
|
14
|
+
var _inputs = /*#__PURE__*/ _interop_require_default(require("./article/inputs"));
|
|
15
|
+
var _buttons = /*#__PURE__*/ _interop_require_default(require("./article/buttons"));
|
|
16
|
+
var _sections = /*#__PURE__*/ _interop_require_default(require("./article/sections"));
|
|
17
|
+
var _headings = /*#__PURE__*/ _interop_require_default(require("./article/headings"));
|
|
18
|
+
function _interop_require_default(obj) {
|
|
19
19
|
return obj && obj.__esModule ? obj : {
|
|
20
20
|
default: obj
|
|
21
21
|
};
|
|
@@ -33,4 +33,4 @@ var ArticlesArray = [
|
|
|
33
33
|
];
|
|
34
34
|
var _default = ArticlesArray;
|
|
35
35
|
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb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kRBZndCOzREQUNDOzREQUNBOzZEQUNDOzhEQUNDOytEQUNDOytEQUNBOzs7Ozs7QUFFNUIsSUFBTUEsZ0JBQWdCO0lBQ3BCO1FBQUVDLGFBQVc7UUFBRUMsY0FBWTtRQUFFQyxnQkFBYztRQUFFQyxpQkFBZTtLQUFFO0lBQzlEQyxjQUFZO0lBQ1pDLGVBQWE7SUFDYkMsaUJBQWU7Q0FDaEI7SUFFRCxXQUFlUCJ9
|
|
@@ -8,14 +8,14 @@ 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
|
-
function
|
|
13
|
+
function _interop_require_default(obj) {
|
|
14
14
|
return obj && obj.__esModule ? obj : {
|
|
15
15
|
default: obj
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function _tagged_template_literal(strings, raw) {
|
|
19
19
|
if (!raw) {
|
|
20
20
|
raw = strings.slice(0);
|
|
21
21
|
}
|
|
@@ -26,7 +26,7 @@ function _taggedTemplateLiteral(strings, raw) {
|
|
|
26
26
|
}));
|
|
27
27
|
}
|
|
28
28
|
function _templateObject() {
|
|
29
|
-
var data =
|
|
29
|
+
var data = _tagged_template_literal([
|
|
30
30
|
"\n\n @media (min-width: 800px) {\n\n display: none;\n\n }\n \n"
|
|
31
31
|
]);
|
|
32
32
|
_templateObject = function _templateObject() {
|
|
@@ -34,6 +34,6 @@ function _templateObject() {
|
|
|
34
34
|
};
|
|
35
35
|
return data;
|
|
36
36
|
}
|
|
37
|
-
var _default = (0,
|
|
37
|
+
var _default = (0, _easywithstyle.default)(_index.AccordionButton)(_templateObject());
|
|
38
38
|
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL2J1dHRvbi9hY2NvcmRpb24uanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCB3aXRoU3R5bGUgZnJvbSBcImVhc3ktd2l0aC1zdHlsZVwiOyAgLy8vXG5cbmltcG9ydCB7IEFjY29yZGlvbkJ1dHRvbiB9IGZyb20gXCIuLi8uLi9pbmRleFwiOyAgLy8vXG5cbmV4cG9ydCBkZWZhdWx0IHdpdGhTdHlsZShBY2NvcmRpb25CdXR0b24pYFxuXG4gIEBtZWRpYSAobWluLXdpZHRoOiA4MDBweCkge1xuXG4gICAgZGlzcGxheTogbm9uZTtcblxuICB9XG4gIFxuYDtcbiJdLCJuYW1lcyI6WyJ3aXRoU3R5bGUiLCJBY2NvcmRpb25CdXR0b24iXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQU1BOzs7ZUFBQTs7O29FQUpzQjtxQkFFVTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQUVoQyxXQUFlQSxJQUFBQSxzQkFBUyxFQUFDQyxzQkFBZSJ9
|