@nextrap/nte-nav 1.0.21 → 1.1.1
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/CHANGELOG.md +36 -0
- package/index.js +63 -67
- package/lib/nte-nav.d.ts +0 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
## 1.1.1 (2025-07-31)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for nte-nav to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 1.1.0 (2025-07-31)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for nte-nav to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
9
|
+
## 1.0.25 (2025-07-24)
|
|
10
|
+
|
|
11
|
+
### 🧱 Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated style-base to 1.1.9
|
|
14
|
+
- Updated nte-offcanvas to 1.0.10
|
|
15
|
+
|
|
16
|
+
## 1.0.24 (2025-07-24)
|
|
17
|
+
|
|
18
|
+
### 🧱 Updated Dependencies
|
|
19
|
+
|
|
20
|
+
- Updated style-base to 1.1.8
|
|
21
|
+
- Updated nte-offcanvas to 1.0.9
|
|
22
|
+
|
|
23
|
+
## 1.0.23 (2025-07-24)
|
|
24
|
+
|
|
25
|
+
### 🧱 Updated Dependencies
|
|
26
|
+
|
|
27
|
+
- Updated style-base to 1.1.7
|
|
28
|
+
- Updated nte-offcanvas to 1.0.8
|
|
29
|
+
|
|
30
|
+
## 1.0.22 (2025-07-24)
|
|
31
|
+
|
|
32
|
+
### 🧱 Updated Dependencies
|
|
33
|
+
|
|
34
|
+
- Updated style-base to 1.1.6
|
|
35
|
+
- Updated nte-offcanvas to 1.0.7
|
|
36
|
+
|
|
1
37
|
## 1.0.21 (2025-07-23)
|
|
2
38
|
|
|
3
39
|
This was a version bump only for nte-nav to align it with other projects, there were no code changes.
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var It = function(s, t, e, i) {
|
|
2
2
|
function r(n) {
|
|
3
3
|
return n instanceof e ? n : new e(function(o) {
|
|
4
4
|
o(n);
|
|
@@ -26,7 +26,7 @@ var Bt = function(s, t, e, i) {
|
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
function Yt() {
|
|
29
|
-
return
|
|
29
|
+
return It(this, void 0, void 0, function* () {
|
|
30
30
|
return new Promise((s) => {
|
|
31
31
|
if (document.readyState === "complete" || document.readyState === "interactive")
|
|
32
32
|
return s("loaded");
|
|
@@ -220,7 +220,7 @@ const T = (s) => new Ot(typeof s == "string" ? s : s + "", void 0, kt), Vt = (s,
|
|
|
220
220
|
* Copyright 2017 Google LLC
|
|
221
221
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
222
222
|
*/
|
|
223
|
-
const { is: Ft, defineProperty: Jt, getOwnPropertyDescriptor: Kt, getOwnPropertyNames: Zt, getOwnPropertySymbols: Qt, getPrototypeOf: Xt } = Object,
|
|
223
|
+
const { is: Ft, defineProperty: Jt, getOwnPropertyDescriptor: Kt, getOwnPropertyNames: Zt, getOwnPropertySymbols: Qt, getPrototypeOf: Xt } = Object, b = globalThis, vt = b.trustedTypes, te = vt ? vt.emptyScript : "", X = b.reactiveElementPolyfillSupport, L = (s, t) => s, V = { toAttribute(s, t) {
|
|
224
224
|
switch (t) {
|
|
225
225
|
case Boolean:
|
|
226
226
|
s = s ? te : null;
|
|
@@ -249,7 +249,7 @@ const { is: Ft, defineProperty: Jt, getOwnPropertyDescriptor: Kt, getOwnProperty
|
|
|
249
249
|
}
|
|
250
250
|
return e;
|
|
251
251
|
} }, at = (s, t) => !Ft(s, t), mt = { attribute: !0, type: String, converter: V, reflect: !1, useDefault: !1, hasChanged: at };
|
|
252
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
252
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), b.litPropertyMetadata ?? (b.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
253
253
|
let w = class extends HTMLElement {
|
|
254
254
|
static addInitializer(t) {
|
|
255
255
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
@@ -453,13 +453,13 @@ let w = class extends HTMLElement {
|
|
|
453
453
|
firstUpdated(t) {
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
|
-
w.elementStyles = [], w.shadowRootOptions = { mode: "open" }, w[L("elementProperties")] = /* @__PURE__ */ new Map(), w[L("finalized")] = /* @__PURE__ */ new Map(), X == null || X({ ReactiveElement: w }), (
|
|
456
|
+
w.elementStyles = [], w.shadowRootOptions = { mode: "open" }, w[L("elementProperties")] = /* @__PURE__ */ new Map(), w[L("finalized")] = /* @__PURE__ */ new Map(), X == null || X({ ReactiveElement: w }), (b.reactiveElementVersions ?? (b.reactiveElementVersions = [])).push("2.1.1");
|
|
457
457
|
/**
|
|
458
458
|
* @license
|
|
459
459
|
* Copyright 2017 Google LLC
|
|
460
460
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
461
461
|
*/
|
|
462
|
-
const H = globalThis, F = H.trustedTypes, gt = F ? F.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Nt = "$lit$",
|
|
462
|
+
const H = globalThis, F = H.trustedTypes, gt = F ? F.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Nt = "$lit$", g = `lit$${Math.random().toFixed(9).slice(2)}$`, Mt = "?" + g, ee = `<${Mt}>`, E = document, j = () => E.createComment(""), D = (s) => s === null || typeof s != "object" && typeof s != "function", lt = Array.isArray, se = (s) => lt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", tt = `[
|
|
463
463
|
\f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, bt = /-->/g, _t = />/g, $ = RegExp(`>|${tt}(?:([^\\s"'>=/]+)(${tt}*=${tt}*(?:[^
|
|
464
464
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), yt = /'/g, $t = /"/g, Ut = /^(?:script|style|textarea|title)$/i, ie = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), k = ie(1), S = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), wt = /* @__PURE__ */ new WeakMap(), A = E.createTreeWalker(E, 129);
|
|
465
465
|
function Lt(s, t) {
|
|
@@ -473,8 +473,8 @@ const re = (s, t) => {
|
|
|
473
473
|
const a = s[l];
|
|
474
474
|
let h, c, d = -1, f = 0;
|
|
475
475
|
for (; f < a.length && (o.lastIndex = f, c = o.exec(a), c !== null); ) f = o.lastIndex, o === U ? c[1] === "!--" ? o = bt : c[1] !== void 0 ? o = _t : c[2] !== void 0 ? (Ut.test(c[2]) && (r = RegExp("</" + c[2], "g")), o = $) : c[3] !== void 0 && (o = $) : o === $ ? c[0] === ">" ? (o = r ?? U, d = -1) : c[1] === void 0 ? d = -2 : (d = o.lastIndex - c[2].length, h = c[1], o = c[3] === void 0 ? $ : c[3] === '"' ? $t : yt) : o === $t || o === yt ? o = $ : o === bt || o === _t ? o = U : (o = $, r = void 0);
|
|
476
|
-
const
|
|
477
|
-
n += o === U ? a + ee : d >= 0 ? (i.push(h), a.slice(0, d) + Nt + a.slice(d) +
|
|
476
|
+
const m = o === $ && s[l + 1].startsWith("/>") ? " " : "";
|
|
477
|
+
n += o === U ? a + ee : d >= 0 ? (i.push(h), a.slice(0, d) + Nt + a.slice(d) + g + m) : a + g + (d === -2 ? l : m);
|
|
478
478
|
}
|
|
479
479
|
return [Lt(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
480
480
|
};
|
|
@@ -491,21 +491,21 @@ class z {
|
|
|
491
491
|
for (; (r = A.nextNode()) !== null && a.length < l; ) {
|
|
492
492
|
if (r.nodeType === 1) {
|
|
493
493
|
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(Nt)) {
|
|
494
|
-
const f = c[o++],
|
|
495
|
-
a.push({ type: 1, index: n, name: Y[2], strings:
|
|
496
|
-
} else d.startsWith(
|
|
494
|
+
const f = c[o++], m = r.getAttribute(d).split(g), Y = /([.?@])?(.*)/.exec(f);
|
|
495
|
+
a.push({ type: 1, index: n, name: Y[2], strings: m, ctor: Y[1] === "." ? oe : Y[1] === "?" ? ae : Y[1] === "@" ? le : Z }), r.removeAttribute(d);
|
|
496
|
+
} else d.startsWith(g) && (a.push({ type: 6, index: n }), r.removeAttribute(d));
|
|
497
497
|
if (Ut.test(r.tagName)) {
|
|
498
|
-
const d = r.textContent.split(
|
|
498
|
+
const d = r.textContent.split(g), f = d.length - 1;
|
|
499
499
|
if (f > 0) {
|
|
500
500
|
r.textContent = F ? F.emptyScript : "";
|
|
501
|
-
for (let
|
|
501
|
+
for (let m = 0; m < f; m++) r.append(d[m], j()), A.nextNode(), a.push({ type: 2, index: ++n });
|
|
502
502
|
r.append(d[f], j());
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
} else if (r.nodeType === 8) if (r.data === Mt) a.push({ type: 2, index: n });
|
|
506
506
|
else {
|
|
507
507
|
let d = -1;
|
|
508
|
-
for (; (d = r.data.indexOf(
|
|
508
|
+
for (; (d = r.data.indexOf(g, d + 1)) !== -1; ) a.push({ type: 7, index: n }), d += g.length - 1;
|
|
509
509
|
}
|
|
510
510
|
n++;
|
|
511
511
|
}
|
|
@@ -539,7 +539,7 @@ class ne {
|
|
|
539
539
|
for (; a !== void 0; ) {
|
|
540
540
|
if (o === a.index) {
|
|
541
541
|
let h;
|
|
542
|
-
a.type === 2 ? h = new
|
|
542
|
+
a.type === 2 ? h = new G(n, n.nextSibling, this, t) : a.type === 1 ? h = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (h = new he(n, this, t)), this._$AV.push(h), a = i[++l];
|
|
543
543
|
}
|
|
544
544
|
o !== (a == null ? void 0 : a.index) && (n = A.nextNode(), o++);
|
|
545
545
|
}
|
|
@@ -550,7 +550,7 @@ class ne {
|
|
|
550
550
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
class
|
|
553
|
+
class G {
|
|
554
554
|
get _$AU() {
|
|
555
555
|
var t;
|
|
556
556
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -598,7 +598,7 @@ class I {
|
|
|
598
598
|
lt(this._$AH) || (this._$AH = [], this._$AR());
|
|
599
599
|
const e = this._$AH;
|
|
600
600
|
let i, r = 0;
|
|
601
|
-
for (const n of t) r === e.length ? e.push(i = new
|
|
601
|
+
for (const n of t) r === e.length ? e.push(i = new G(this.O(j()), this.O(j()), this, this.options)) : i = e[r], i._$AI(n), r++;
|
|
602
602
|
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
|
603
603
|
}
|
|
604
604
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -680,13 +680,13 @@ class he {
|
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
const et = H.litHtmlPolyfillSupport;
|
|
683
|
-
et == null || et(z,
|
|
683
|
+
et == null || et(z, G), (H.litHtmlVersions ?? (H.litHtmlVersions = [])).push("3.3.1");
|
|
684
684
|
const ce = (s, t, e) => {
|
|
685
685
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
686
686
|
let r = i._$litPart$;
|
|
687
687
|
if (r === void 0) {
|
|
688
688
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
689
|
-
i._$litPart$ = r = new
|
|
689
|
+
i._$litPart$ = r = new G(t.insertBefore(j(), n), n, void 0, e ?? {});
|
|
690
690
|
}
|
|
691
691
|
return r._$AI(s), r;
|
|
692
692
|
};
|
|
@@ -731,7 +731,7 @@ st == null || st({ LitElement: v });
|
|
|
731
731
|
* Copyright 2017 Google LLC
|
|
732
732
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
733
733
|
*/
|
|
734
|
-
const
|
|
734
|
+
const W = (s) => (t, e) => {
|
|
735
735
|
e !== void 0 ? e.addInitializer(() => {
|
|
736
736
|
customElements.define(s, t);
|
|
737
737
|
}) : customElements.define(s, t);
|
|
@@ -843,7 +843,7 @@ let At = ht;
|
|
|
843
843
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
844
844
|
*/
|
|
845
845
|
const Dt = { ATTRIBUTE: 1, CHILD: 2 }, zt = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
|
846
|
-
class
|
|
846
|
+
class Gt {
|
|
847
847
|
constructor(t) {
|
|
848
848
|
}
|
|
849
849
|
get _$AU() {
|
|
@@ -864,7 +864,7 @@ class It {
|
|
|
864
864
|
* Copyright 2018 Google LLC
|
|
865
865
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
866
866
|
*/
|
|
867
|
-
const xt = zt(class extends
|
|
867
|
+
const xt = zt(class extends Gt {
|
|
868
868
|
constructor(s) {
|
|
869
869
|
var t;
|
|
870
870
|
if (super(s), s.type !== Dt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
@@ -888,12 +888,12 @@ const xt = zt(class extends It {
|
|
|
888
888
|
return S;
|
|
889
889
|
}
|
|
890
890
|
}), ve = "*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;width:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none}a,i{color:inherit;text-decoration:none}ul,ol{list-style:none}table{border-collapse:collapse;border-spacing:0}slot{display:contents}:host{--backdrop: rgb(from var(--nt-dark) r g b / .5);--header-background: transparent;--background-color: var(--nt-soft-primary);--shadow-color: rgb(from var(--nt-dark) r g b / .5);--main-padding: 0;--header-padding: var(--nt-space);position:fixed;top:0;right:0;height:100vh;width:33%;min-width:250px;max-width:400px;z-index:2000;padding:0;isolation:isolate;display:block}:host[opened]{display:block}#offcanvas{display:flex;flex-direction:column;width:100%;height:100%;background-color:var(--background-color);box-shadow:0 0 10px var(--shadow-color);transition:transform .2s ease-in-out;transform:translate(0)}#offcanvas.closed{transform:translate(100%)}#header{display:flex;width:100%;flex-direction:row;justify-content:space-between;align-items:center;background-color:var(--header-background);flex-grow:0;padding:var(--header-padding)}#header:has(>slot[empty]){display:none}#main{display:flex;width:100%;flex-grow:1;padding:var(--main-padding);min-height:200px;overflow:auto;scroll-behavior:auto;scrollbar-gutter:auto;height:100%}#footer{display:flex;width:100%;flex-direction:row;justify-content:space-between;align-items:center;margin-top:auto;flex-grow:0;padding:var(--padding)}#footer:has(>slot[empty]){display:none}#backdrop{opacity:1;transition:opacity .2s ease-in-out;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--backdrop);z-index:-1;display:block}#backdrop.closed{opacity:0}";
|
|
891
|
-
var me = Object.defineProperty, ge = Object.getOwnPropertyDescriptor,
|
|
891
|
+
var me = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, B = (s, t, e, i) => {
|
|
892
892
|
for (var r = i > 1 ? void 0 : i ? ge(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
893
893
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
|
894
894
|
return i && r && me(t, e, r), r;
|
|
895
895
|
};
|
|
896
|
-
let
|
|
896
|
+
let _ = class extends v {
|
|
897
897
|
constructor() {
|
|
898
898
|
super(), this.backdrop = !0, this.opened = !1, this.dataGroupName = "", this.closedClass = !0, this.addEventListener("click", (s) => {
|
|
899
899
|
s === void 0 || !s.target || !(s.target instanceof HTMLElement) || s.target.closest("[data-nt-dismiss='offcanvas']") !== null && this.close();
|
|
@@ -948,29 +948,29 @@ let y = class extends v {
|
|
|
948
948
|
`;
|
|
949
949
|
}
|
|
950
950
|
};
|
|
951
|
-
|
|
952
|
-
|
|
951
|
+
_.styles = [T(ve)];
|
|
952
|
+
B([
|
|
953
953
|
u({ type: Boolean, reflect: !0 })
|
|
954
|
-
],
|
|
955
|
-
|
|
954
|
+
], _.prototype, "backdrop", 2);
|
|
955
|
+
B([
|
|
956
956
|
u({ type: Boolean, reflect: !0 })
|
|
957
|
-
],
|
|
958
|
-
|
|
957
|
+
], _.prototype, "opened", 2);
|
|
958
|
+
B([
|
|
959
959
|
u({ type: String, attribute: "data-group-name" })
|
|
960
|
-
],
|
|
961
|
-
|
|
960
|
+
], _.prototype, "dataGroupName", 2);
|
|
961
|
+
B([
|
|
962
962
|
Ht()
|
|
963
|
-
],
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
],
|
|
963
|
+
], _.prototype, "closedClass", 2);
|
|
964
|
+
_ = B([
|
|
965
|
+
W(_.is)
|
|
966
|
+
], _);
|
|
967
967
|
const be = ":host{--container-width: var(--nt-container-width);--text-color: var(--nt-text);--hover-color: var(--nt-primary);--hover-text-color: var(--nt-text-on-primary);--transition: .2s ease-in-out;--submenu-bg: var(--nt-light);--submenu-text-color: var(--nt-text);--justify-content: center;--sidemenu-bg: var(--nt-soft-primary);--justify-sidebar-burger: flex-end;--height: auto;--default-alpha: .7;height:var(--height);display:block}nav{height:100%}#main{height:100%}#burger-wrapper{padding:15px}#text{padding-right:10px}#burger-default{cursor:pointer}#burger-default slot::slotted(span){color:rgb(from var(--text-color) r g b/var(--default-alpha));transition:color var(--transition)}#burger-default nte-burger{--color: rgb(from var(--text-color) r g b / var(--default-alpha))}#burger-default:hover slot::slotted(span){color:rgb(from var(--text-color) r g b/1)}#burger-default:hover nte-burger{--color: rgb(from var(--text-color) r g b / 1)}";
|
|
968
968
|
var _e = Object.defineProperty, ye = Object.getOwnPropertyDescriptor, N = (s, t, e, i) => {
|
|
969
969
|
for (var r = i > 1 ? void 0 : i ? ye(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
970
970
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
|
971
971
|
return i && r && _e(t, e, r), r;
|
|
972
972
|
};
|
|
973
|
-
let
|
|
973
|
+
let y = class extends v {
|
|
974
974
|
constructor() {
|
|
975
975
|
super(), this.mode = "slave", this.breakpoint = "99999px", this.transferTo = "", this.dataGroupName = "", this._isTransferred = !1;
|
|
976
976
|
}
|
|
@@ -1040,29 +1040,25 @@ let m = class extends v {
|
|
|
1040
1040
|
})));
|
|
1041
1041
|
}
|
|
1042
1042
|
};
|
|
1043
|
-
|
|
1044
|
-
classes: ["align-left", "align-right", "align-center"],
|
|
1045
|
-
attributes: {}
|
|
1046
|
-
};
|
|
1047
|
-
m.styles = [T(be)];
|
|
1043
|
+
y.styles = [T(be)];
|
|
1048
1044
|
N([
|
|
1049
1045
|
u({ type: String, reflect: !0 })
|
|
1050
|
-
],
|
|
1046
|
+
], y.prototype, "mode", 2);
|
|
1051
1047
|
N([
|
|
1052
1048
|
u({ type: String, reflect: !0 })
|
|
1053
|
-
],
|
|
1049
|
+
], y.prototype, "breakpoint", 2);
|
|
1054
1050
|
N([
|
|
1055
1051
|
u({ type: String, reflect: !0, attribute: "transfer-to" })
|
|
1056
|
-
],
|
|
1052
|
+
], y.prototype, "transferTo", 2);
|
|
1057
1053
|
N([
|
|
1058
1054
|
u({ type: String, reflect: !1, attribute: "data-group-name" })
|
|
1059
|
-
],
|
|
1055
|
+
], y.prototype, "dataGroupName", 2);
|
|
1060
1056
|
N([
|
|
1061
1057
|
Ht()
|
|
1062
|
-
],
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
],
|
|
1058
|
+
], y.prototype, "_isTransferred", 2);
|
|
1059
|
+
y = N([
|
|
1060
|
+
W("nte-nav")
|
|
1061
|
+
], y);
|
|
1066
1062
|
/**
|
|
1067
1063
|
* @license
|
|
1068
1064
|
* Copyright 2020 Google LLC
|
|
@@ -1086,7 +1082,7 @@ const R = (s, t) => {
|
|
|
1086
1082
|
if ((t = s._$AM) === void 0) break;
|
|
1087
1083
|
e = t._$AN, e.delete(s), s = t;
|
|
1088
1084
|
} while ((e == null ? void 0 : e.size) === 0);
|
|
1089
|
-
},
|
|
1085
|
+
}, Wt = (s) => {
|
|
1090
1086
|
for (let t; t = s._$AM; s = t) {
|
|
1091
1087
|
let e = t._$AN;
|
|
1092
1088
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
|
@@ -1095,7 +1091,7 @@ const R = (s, t) => {
|
|
|
1095
1091
|
}
|
|
1096
1092
|
};
|
|
1097
1093
|
function we(s) {
|
|
1098
|
-
this._$AN !== void 0 ? (J(this), this._$AM = s,
|
|
1094
|
+
this._$AN !== void 0 ? (J(this), this._$AM = s, Wt(this)) : this._$AM = s;
|
|
1099
1095
|
}
|
|
1100
1096
|
function Ae(s, t = !1, e = 0) {
|
|
1101
1097
|
const i = this._$AH, r = this._$AN;
|
|
@@ -1106,12 +1102,12 @@ function Ae(s, t = !1, e = 0) {
|
|
|
1106
1102
|
const xe = (s) => {
|
|
1107
1103
|
s.type == Dt.CHILD && (s._$AP ?? (s._$AP = Ae), s._$AQ ?? (s._$AQ = we));
|
|
1108
1104
|
};
|
|
1109
|
-
class Ee extends
|
|
1105
|
+
class Ee extends Gt {
|
|
1110
1106
|
constructor() {
|
|
1111
1107
|
super(...arguments), this._$AN = void 0;
|
|
1112
1108
|
}
|
|
1113
1109
|
_$AT(t, e, i) {
|
|
1114
|
-
super._$AT(t, e, i),
|
|
1110
|
+
super._$AT(t, e, i), Wt(this), this.isConnected = t._$AU;
|
|
1115
1111
|
}
|
|
1116
1112
|
_$AO(t, e = !0) {
|
|
1117
1113
|
var i, r;
|
|
@@ -1164,7 +1160,7 @@ const it = /* @__PURE__ */ new WeakMap(), St = zt(class extends Ee {
|
|
|
1164
1160
|
this.rt(this.ct);
|
|
1165
1161
|
}
|
|
1166
1162
|
}), Ce = "*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;width:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none}a,i{color:inherit;text-decoration:none}ul,ol{list-style:none}table{border-collapse:collapse;border-spacing:0}slot{display:contents}:host{--bg: transparent;--spacer-bg: transparent;--container-width: var(--nt-container-width, 100%);--brand-height: 80px;--spacer-height: 80px;width:100vw;margin:0}:host(a){height:85px;width:auto}#wrapper{position:relative;left:0;top:0;right:0;width:100%}#spacer{position:relative;top:0;left:0;width:100%;transition:height .3s ease-in-out;height:var(--spacer-height);background-color:var(--spacer-bg)}#navbar{position:absolute;top:0;width:100vw;height:auto;background-color:var(--bg);z-index:1000}#main{width:100vw;display:block}";
|
|
1167
|
-
var Te = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor,
|
|
1163
|
+
var Te = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, Bt = (s, t, e, i) => {
|
|
1168
1164
|
for (var r = i > 1 ? void 0 : i ? Pe(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
1169
1165
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
|
1170
1166
|
return i && r && Te(t, e, r), r;
|
|
@@ -1213,11 +1209,11 @@ let K = class extends v {
|
|
|
1213
1209
|
}
|
|
1214
1210
|
};
|
|
1215
1211
|
K.styles = [T(Ce)];
|
|
1216
|
-
|
|
1212
|
+
Bt([
|
|
1217
1213
|
u({ type: Number, attribute: "scroll-threshold", reflect: !0 })
|
|
1218
1214
|
], K.prototype, "scrollThreshold", 2);
|
|
1219
|
-
K =
|
|
1220
|
-
|
|
1215
|
+
K = Bt([
|
|
1216
|
+
W("nte-navbar")
|
|
1221
1217
|
], K);
|
|
1222
1218
|
const ke = "*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;width:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none}a,i{color:inherit;text-decoration:none}ul,ol{list-style:none}table{border-collapse:collapse;border-spacing:0}slot{display:contents}:host{--container-width: var(--nt-container-width, 100%);--background: transparent;--text-color: var(--nt-text);--height: auto;--brand-height: 80px;display:block;height:100%;width:100vw}:host(.hide-on-scroll){transition:max-height .3s ease-in-out;max-height:100px}:host(.hide-on-scroll.is-scrolled){max-height:0;overflow:hidden}#main{height:var(--height);transition:height .2s ease-in-out;overflow:visible;width:100%;display:flex;background:var(--background)}#container{width:var(--container-width);margin:0 auto;display:flex}#container #brand{min-width:0;flex-shrink:1;width:auto;align-items:start;display:flex;height:100%;justify-items:center}#container #brand:has(slot[empty]){display:none}#container #nav{display:flex;flex-grow:1;justify-content:end;align-items:center;gap:1rem}";
|
|
1223
1219
|
var Oe = Object.getOwnPropertyDescriptor, Ne = (s, t, e, i) => {
|
|
@@ -1259,7 +1255,7 @@ let rt = class extends v {
|
|
|
1259
1255
|
};
|
|
1260
1256
|
rt.styles = [T(ke)];
|
|
1261
1257
|
rt = Ne([
|
|
1262
|
-
|
|
1258
|
+
W("nte-navbar-line")
|
|
1263
1259
|
], rt);
|
|
1264
1260
|
const Me = ":host{--size: 40px;--color: var(--nt-text, black);--color-hover: var(--color);--width: 4px;height:var(--size);width:var(--size);display:block}#button{padding:0;width:100%;height:100%;cursor:pointer}.hamburger{display:block;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0 none;background:none;position:relative;transition:transform .4s}.hamburger:hover{--color: var(--color-hover)}:host([open]) .hamburger .bar:nth-of-type(1){transform-origin:center center;transform:translateY(calc(.5em - var(--width) / 2)) rotate(45deg)}:host([open]) .hamburger .bar:nth-of-type(2){opacity:0}:host([open]) .hamburger .bar:nth-of-type(3){transform:translateY(calc(.5em - var(--width) / 2)) rotate(-45deg)}:host(:not([open])) #button:hover .bar:nth-of-type(1){transform:translateY(calc(.2em - var(--width) / 2))}:host(:not([open])) #button:hover .bar:nth-of-type(2){transform:translateY(calc(.5em - var(--width) / 2))}:host(:not([open])) #button:hover .bar:nth-of-type(3){transform:translateY(calc(.8em - var(--width) / 2))}.bar{font-size:var(--size);height:var(--width);width:var(--size);display:block;position:absolute;top:0;background-color:var(--color);transition:.4s}.bar:nth-of-type(1){transform:translateY(calc(.25em - var(--width) / 2))}.bar:nth-of-type(2){transform:translateY(calc(.5em - var(--width) / 2))}.bar:nth-of-type(3){transform:translateY(calc(.75em - var(--width) / 2))}";
|
|
1265
1261
|
/**
|
|
@@ -1284,7 +1280,7 @@ const Ue = Symbol.for(""), Le = (s) => {
|
|
|
1284
1280
|
}
|
|
1285
1281
|
return s(t, ...e);
|
|
1286
1282
|
}, Re = He(k);
|
|
1287
|
-
var je = Object.defineProperty, De = Object.getOwnPropertyDescriptor,
|
|
1283
|
+
var je = Object.defineProperty, De = Object.getOwnPropertyDescriptor, I = (s, t, e, i) => {
|
|
1288
1284
|
for (var r = i > 1 ? void 0 : i ? De(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
1289
1285
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
|
1290
1286
|
return i && r && je(t, e, r), r;
|
|
@@ -1308,23 +1304,23 @@ let C = class extends v {
|
|
|
1308
1304
|
}
|
|
1309
1305
|
};
|
|
1310
1306
|
C.styles = [T(Me)];
|
|
1311
|
-
|
|
1307
|
+
I([
|
|
1312
1308
|
u({ type: Boolean, attribute: "open", reflect: !0 })
|
|
1313
1309
|
], C.prototype, "open", 2);
|
|
1314
|
-
|
|
1310
|
+
I([
|
|
1315
1311
|
u({ type: String, reflect: !0 })
|
|
1316
1312
|
], C.prototype, "text", 2);
|
|
1317
|
-
|
|
1313
|
+
I([
|
|
1318
1314
|
u({ type: String, reflect: !1, attribute: "data-group-name" })
|
|
1319
1315
|
], C.prototype, "dataGroupName", 2);
|
|
1320
|
-
|
|
1316
|
+
I([
|
|
1321
1317
|
ue(Rt, document)
|
|
1322
1318
|
], C.prototype, "listenEvents", 1);
|
|
1323
|
-
C =
|
|
1324
|
-
|
|
1319
|
+
C = I([
|
|
1320
|
+
W("nte-burger")
|
|
1325
1321
|
], C);
|
|
1326
1322
|
console.log("Loading nte-nav...");
|
|
1327
1323
|
export {
|
|
1328
|
-
|
|
1324
|
+
y as NteNav,
|
|
1329
1325
|
K as NteNavbar
|
|
1330
1326
|
};
|
package/lib/nte-nav.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { NtElementDefinition } from '../../../../nextrap-base/nt-framework/src/index.ts';
|
|
2
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
3
2
|
/**
|
|
4
3
|
* <nte-nav>
|
|
@@ -9,7 +8,6 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
9
8
|
* </nte-nav>
|
|
10
9
|
*/
|
|
11
10
|
export declare class NteNav extends LitElement {
|
|
12
|
-
static DEFINITION: NtElementDefinition;
|
|
13
11
|
static styles: import('lit').CSSResult[];
|
|
14
12
|
mode: 'master' | 'slave';
|
|
15
13
|
breakpoint: string | number;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextrap/nte-nav",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@nextrap/nt-framework": "^1.1.1",
|
|
7
7
|
"@nextrap/nte-burger": "^1.1.7",
|
|
8
|
-
"@nextrap/nte-offcanvas": "^1.0.
|
|
8
|
+
"@nextrap/nte-offcanvas": "^1.0.10"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@nextrap/style-base": "^1.1.
|
|
11
|
+
"@nextrap/style-base": "^1.1.9",
|
|
12
12
|
"@nextrap/style-reset": "^0.1.1"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|