easy-navigation 2.1.282 → 2.1.284
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/lib/accordion.js +50 -263
- package/lib/button/accordion.js +55 -164
- package/lib/button/navigation/accordion.js +55 -158
- package/lib/constants.js +3 -3
- package/lib/div/accordion.js +72 -309
- package/lib/example/accordion.js +19 -104
- package/lib/example/article/buttons.js +12 -109
- package/lib/example/article/codes.js +12 -109
- package/lib/example/article/headings.js +12 -109
- package/lib/example/article/home.js +20 -123
- package/lib/example/article/inputs.js +12 -109
- package/lib/example/article/links.js +12 -109
- package/lib/example/article/sections.js +12 -109
- package/lib/example/article.js +28 -149
- package/lib/example/articlesArray.js +10 -10
- package/lib/example/button/accordion.js +12 -23
- package/lib/example/button/link.js +28 -104
- package/lib/example/createMethods.js +3 -4
- package/lib/example/item/accordion.js +6 -84
- package/lib/example/navigation/accordion.js +16 -23
- package/lib/example/paths.js +8 -8
- package/lib/example/preamble.js +2 -2
- package/lib/example/uris.js +8 -8
- package/lib/example/view.js +45 -200
- package/lib/example.js +9 -9
- package/lib/index.js +9 -9
- package/lib/item/accordion.js +100 -324
- package/lib/item/navigation/accordion.js +22 -226
- package/lib/list/navigation/accordion.js +46 -213
- package/lib/navigation/accordion.js +14 -157
- package/lib/utilities/array.js +2 -9
- package/package.json +5 -1
- package/.swcrc +0 -11
- package/bin/main.js +0 -17
- package/example.js +0 -37856
- package/index.html +0 -46
|
@@ -8,169 +8,26 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return AccordionNavigation;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
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 _easy = require("easy");
|
|
12
|
+
const _accordion = /*#__PURE__*/ _interop_require_default(require("../list/navigation/accordion"));
|
|
91
13
|
function _interop_require_default(obj) {
|
|
92
14
|
return obj && obj.__esModule ? obj : {
|
|
93
15
|
default: obj
|
|
94
16
|
};
|
|
95
17
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
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
|
-
}
|
|
18
|
+
class AccordionNavigation extends _easy.Element {
|
|
19
|
+
childElements() {
|
|
20
|
+
const { AccordionNavigationList } = this.constructor, { ArticlesArray, showArticle } = this.properties;
|
|
21
|
+
return /*#__PURE__*/ React.createElement(AccordionNavigationList, {
|
|
22
|
+
ArticlesArray: ArticlesArray,
|
|
23
|
+
showArticle: showArticle
|
|
137
24
|
});
|
|
138
|
-
|
|
25
|
+
}
|
|
26
|
+
static AccordionNavigationList = _accordion.default;
|
|
27
|
+
static tagName = "nav";
|
|
28
|
+
static defaultProperties = {
|
|
29
|
+
className: "accordion"
|
|
139
30
|
};
|
|
140
|
-
return _wrap_native_super(Class);
|
|
141
31
|
}
|
|
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 AccordionNavigation = /*#__PURE__*/ function(Element) {
|
|
151
|
-
_inherits(AccordionNavigation, Element);
|
|
152
|
-
function AccordionNavigation() {
|
|
153
|
-
_class_call_check(this, AccordionNavigation);
|
|
154
|
-
return _call_super(this, AccordionNavigation, arguments);
|
|
155
|
-
}
|
|
156
|
-
_create_class(AccordionNavigation, [
|
|
157
|
-
{
|
|
158
|
-
key: "childElements",
|
|
159
|
-
value: function childElements() {
|
|
160
|
-
var _$AccordionNavigationList = this.constructor.AccordionNavigationList, _this_properties = this.properties, ArticlesArray = _this_properties.ArticlesArray, showArticle = _this_properties.showArticle;
|
|
161
|
-
return /*#__PURE__*/ React.createElement(_$AccordionNavigationList, {
|
|
162
|
-
ArticlesArray: ArticlesArray,
|
|
163
|
-
showArticle: showArticle
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
]);
|
|
168
|
-
return AccordionNavigation;
|
|
169
|
-
}(_wrap_native_super(_easy.Element));
|
|
170
|
-
_define_property(AccordionNavigation, "AccordionNavigationList", _accordion.default);
|
|
171
|
-
_define_property(AccordionNavigation, "tagName", "nav");
|
|
172
|
-
_define_property(AccordionNavigation, "defaultProperties", {
|
|
173
|
-
className: "accordion"
|
|
174
|
-
});
|
|
175
32
|
|
|
176
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9uYXZpZ2F0aW9uL2FjY29yZGlvbi5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHsgRWxlbWVudCB9IGZyb20gXCJlYXN5XCI7XG5cbmltcG9ydCBBY2NvcmRpb25OYXZpZ2F0aW9uTGlzdCBmcm9tIFwiLi4vbGlzdC9u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UVDLHVCQUF1QixFQUFFLEdBQUcsSUFBSSxDQUFDLFdBQVcsRUFDOUMsRUFBRUMsYUFBYSxFQUFFQyxXQUFXLEVBQUUsR0FBRyxJQUFJLENBQUNDLFVBQVU7UUFFdEQscUJBRUUsb0JBQUNIO1lBQXdCQyxlQUFlQTtZQUFlQyxhQUFhQTs7SUFHeEU7SUFFQSxPQUFPRiwwQkFBMEJBLGtCQUF1QixDQUFDO0lBRXpELE9BQU9JLFVBQVUsTUFBTTtJQUV2QixPQUFPQyxvQkFBb0I7UUFDekJDLFdBQVc7SUFDYixFQUFFO0FBQ0oifQ==
|
package/lib/utilities/array.js
CHANGED
|
@@ -8,18 +8,11 @@ Object.defineProperty(exports, "guaranteeArray", {
|
|
|
8
8
|
return guaranteeArray;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
function _instanceof(left, right) {
|
|
12
|
-
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
13
|
-
return !!right[Symbol.hasInstance](left);
|
|
14
|
-
} else {
|
|
15
|
-
return left instanceof right;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
11
|
function guaranteeArray(arrayOrElement) {
|
|
19
|
-
|
|
12
|
+
const array = arrayOrElement instanceof Array ? arrayOrElement : [
|
|
20
13
|
arrayOrElement
|
|
21
14
|
];
|
|
22
15
|
return array;
|
|
23
16
|
}
|
|
24
17
|
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvYXJyYXkuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmV4cG9ydCBmdW5jdGlvbiBndWFyYW50ZWVBcnJheShhcnJheU9yRWxlbWVudCkge1xuICBjb25zdCBhcnJheSAgPSAoYXJyYXlPckVsZW1lbnQgaW5zdGFuY2VvZiBBcnJheSkgP1xuICAgICAgICAgICAgICAgICAgICBhcnJheU9yRWxlbWVudCA6XG4gICAgICAgICAgICAgICAgICAgICAgWyBhcnJheU9yRWxlbWVudCBdO1xuXG4gIHJldHVybiBhcnJheTtcbn1cbiJdLCJuYW1lcyI6WyJndWFyYW50ZWVBcnJheSIsImFycmF5T3JFbGVtZW50IiwiYXJyYXkiLCJBcnJheSJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7K0JBRWdCQTs7O2VBQUFBOzs7QUFBVCxTQUFTQSxlQUFlQyxjQUFjO0lBQzNDLE1BQU1DLFFBQVMsQUFBQ0QsMEJBQTBCRSxRQUN4QkYsaUJBQ0U7UUFBRUE7S0FBZ0I7SUFFdEMsT0FBT0M7QUFDVCJ9
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-navigation",
|
|
3
3
|
"author": "James Smith",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.284",
|
|
5
5
|
"license": "MIT, Anti-996",
|
|
6
6
|
"homepage": "https://github.com/djalbat/easy-navigation",
|
|
7
7
|
"description": "A responsive accordion and associated navigation.",
|
|
@@ -34,5 +34,9 @@
|
|
|
34
34
|
"watch": "npm run clean && npm run batch && npm run incremental",
|
|
35
35
|
"watch-debug": "npm run clean && npm run batch-debug && npm run incremental-debug"
|
|
36
36
|
},
|
|
37
|
+
"files": [
|
|
38
|
+
"src",
|
|
39
|
+
"lib"
|
|
40
|
+
],
|
|
37
41
|
"main": "./lib/index.js"
|
|
38
42
|
}
|
package/.swcrc
DELETED
package/bin/main.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const express = require("express");
|
|
4
|
-
|
|
5
|
-
const { createLiveReloadHandler } = require("lively-cli");
|
|
6
|
-
|
|
7
|
-
const server = express(), ///
|
|
8
|
-
staticRouter = express.static("."),
|
|
9
|
-
liveReloadHandler = createLiveReloadHandler("./example.js");
|
|
10
|
-
|
|
11
|
-
server.use(staticRouter);
|
|
12
|
-
|
|
13
|
-
server.get("/live-reload", liveReloadHandler);
|
|
14
|
-
|
|
15
|
-
server.get("/*", (request, response) => response.sendFile("index.html", { root: "." }));
|
|
16
|
-
|
|
17
|
-
server.listen(8888);
|