@nextrap/nte-nav 0.2.18 → 0.2.25
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 +42 -0
- package/index.js +200 -200
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
|
+
## 0.2.25 (2025-07-21)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for nte-nav to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 0.2.24 (2025-07-21)
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated nte-offcanvas to 0.0.15
|
|
10
|
+
|
|
11
|
+
## 0.2.23 (2025-07-21)
|
|
12
|
+
|
|
13
|
+
This was a version bump only for nte-nav to align it with other projects, there were no code changes.
|
|
14
|
+
|
|
15
|
+
## 0.2.22 (2025-07-21)
|
|
16
|
+
|
|
17
|
+
### 🧱 Updated Dependencies
|
|
18
|
+
|
|
19
|
+
- Updated style-base to 1.1.1
|
|
20
|
+
- Updated nte-offcanvas to 0.0.14
|
|
21
|
+
|
|
22
|
+
## 0.2.21 (2025-07-21)
|
|
23
|
+
|
|
24
|
+
### 🧱 Updated Dependencies
|
|
25
|
+
|
|
26
|
+
- Updated style-base to 1.1.0
|
|
27
|
+
- Updated nte-offcanvas to 0.0.13
|
|
28
|
+
|
|
29
|
+
## 0.2.20 (2025-07-21)
|
|
30
|
+
|
|
31
|
+
### 🧱 Updated Dependencies
|
|
32
|
+
|
|
33
|
+
- Updated style-base to 1.0.3
|
|
34
|
+
- Updated nte-offcanvas to 0.0.12
|
|
35
|
+
|
|
36
|
+
## 0.2.19 (2025-07-21)
|
|
37
|
+
|
|
38
|
+
### 🧱 Updated Dependencies
|
|
39
|
+
|
|
40
|
+
- Updated style-base to 1.0.2
|
|
41
|
+
- Updated nte-offcanvas to 0.0.11
|
|
42
|
+
|
|
1
43
|
## 0.2.18 (2025-07-21)
|
|
2
44
|
|
|
3
45
|
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,10 +1,10 @@
|
|
|
1
1
|
var zt = function(s, t, e, i) {
|
|
2
|
-
function n
|
|
3
|
-
return
|
|
4
|
-
o(
|
|
2
|
+
function r(n) {
|
|
3
|
+
return n instanceof e ? n : new e(function(o) {
|
|
4
|
+
o(n);
|
|
5
5
|
});
|
|
6
6
|
}
|
|
7
|
-
return new (e || (e = Promise))(function(
|
|
7
|
+
return new (e || (e = Promise))(function(n, o) {
|
|
8
8
|
function l(h) {
|
|
9
9
|
try {
|
|
10
10
|
d(i.next(h));
|
|
@@ -20,7 +20,7 @@ var zt = function(s, t, e, i) {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
function d(h) {
|
|
23
|
-
h.done ?
|
|
23
|
+
h.done ? n(h.value) : r(h.value).then(l, a);
|
|
24
24
|
}
|
|
25
25
|
d((i = i.apply(s, t || [])).next());
|
|
26
26
|
});
|
|
@@ -35,12 +35,12 @@ function It() {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
var Wt = function(s, t, e, i) {
|
|
38
|
-
function n
|
|
39
|
-
return
|
|
40
|
-
o(
|
|
38
|
+
function r(n) {
|
|
39
|
+
return n instanceof e ? n : new e(function(o) {
|
|
40
|
+
o(n);
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
return new (e || (e = Promise))(function(
|
|
43
|
+
return new (e || (e = Promise))(function(n, o) {
|
|
44
44
|
function l(h) {
|
|
45
45
|
try {
|
|
46
46
|
d(i.next(h));
|
|
@@ -56,7 +56,7 @@ var Wt = function(s, t, e, i) {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
function d(h) {
|
|
59
|
-
h.done ?
|
|
59
|
+
h.done ? n(h.value) : r(h.value).then(l, a);
|
|
60
60
|
}
|
|
61
61
|
d((i = i.apply(s, t || [])).next());
|
|
62
62
|
});
|
|
@@ -130,7 +130,7 @@ if (!window.__nextrap_current_breakpoint) {
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
-
class
|
|
133
|
+
class nt {
|
|
134
134
|
/**
|
|
135
135
|
* Checks recursively if the element is visible.
|
|
136
136
|
*
|
|
@@ -168,9 +168,9 @@ class rt {
|
|
|
168
168
|
console.warn("Element has no shadow root", t);
|
|
169
169
|
return;
|
|
170
170
|
}
|
|
171
|
-
e.querySelectorAll("slot").forEach((
|
|
172
|
-
this.isEmptySlot(
|
|
173
|
-
this.isEmptySlot(
|
|
171
|
+
e.querySelectorAll("slot").forEach((r) => {
|
|
172
|
+
this.isEmptySlot(r) ? r.setAttribute("empty", "") : r.removeAttribute("empty"), r.onslotchange = () => {
|
|
173
|
+
this.isEmptySlot(r) ? r.setAttribute("empty", "") : r.removeAttribute("empty");
|
|
174
174
|
};
|
|
175
175
|
});
|
|
176
176
|
}
|
|
@@ -212,8 +212,8 @@ let Pt = class {
|
|
|
212
212
|
const C = (s) => new Pt(typeof s == "string" ? s : s + "", void 0, Tt), qt = (s, t) => {
|
|
213
213
|
if (ot) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
214
214
|
else for (const e of t) {
|
|
215
|
-
const i = document.createElement("style"),
|
|
216
|
-
|
|
215
|
+
const i = document.createElement("style"), r = B.litNonce;
|
|
216
|
+
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
|
217
217
|
}
|
|
218
218
|
}, ft = ot ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
|
219
219
|
let e = "";
|
|
@@ -225,7 +225,7 @@ const C = (s) => new Pt(typeof s == "string" ? s : s + "", void 0, Tt), qt = (s,
|
|
|
225
225
|
* Copyright 2017 Google LLC
|
|
226
226
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
227
227
|
*/
|
|
228
|
-
const { is: Vt, defineProperty: Yt, getOwnPropertyDescriptor: Ft, getOwnPropertyNames: Jt, getOwnPropertySymbols: Kt, getPrototypeOf: Zt } = Object,
|
|
228
|
+
const { is: Vt, defineProperty: Yt, getOwnPropertyDescriptor: Ft, getOwnPropertyNames: Jt, getOwnPropertySymbols: Kt, getPrototypeOf: Zt } = Object, m = globalThis, vt = m.trustedTypes, Qt = vt ? vt.emptyScript : "", Q = m.reactiveElementPolyfillSupport, M = (s, t) => s, G = { toAttribute(s, t) {
|
|
229
229
|
switch (t) {
|
|
230
230
|
case Boolean:
|
|
231
231
|
s = s ? Qt : null;
|
|
@@ -253,34 +253,34 @@ const { is: Vt, defineProperty: Yt, getOwnPropertyDescriptor: Ft, getOwnProperty
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
return e;
|
|
256
|
-
} }, at = (s, t) => !Vt(s, t),
|
|
257
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
258
|
-
let
|
|
256
|
+
} }, at = (s, t) => !Vt(s, t), gt = { attribute: !0, type: String, converter: G, reflect: !1, useDefault: !1, hasChanged: at };
|
|
257
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), m.litPropertyMetadata ?? (m.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
258
|
+
let y = class extends HTMLElement {
|
|
259
259
|
static addInitializer(t) {
|
|
260
260
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
261
261
|
}
|
|
262
262
|
static get observedAttributes() {
|
|
263
263
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
264
264
|
}
|
|
265
|
-
static createProperty(t, e =
|
|
265
|
+
static createProperty(t, e = gt) {
|
|
266
266
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
267
|
-
const i = Symbol(),
|
|
268
|
-
|
|
267
|
+
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
|
268
|
+
r !== void 0 && Yt(this.prototype, t, r);
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
static getPropertyDescriptor(t, e, i) {
|
|
272
|
-
const { get:
|
|
272
|
+
const { get: r, set: n } = Ft(this.prototype, t) ?? { get() {
|
|
273
273
|
return this[e];
|
|
274
274
|
}, set(o) {
|
|
275
275
|
this[e] = o;
|
|
276
276
|
} };
|
|
277
|
-
return { get:
|
|
278
|
-
const l =
|
|
279
|
-
|
|
277
|
+
return { get: r, set(o) {
|
|
278
|
+
const l = r == null ? void 0 : r.call(this);
|
|
279
|
+
n == null || n.call(this, o), this.requestUpdate(t, l, i);
|
|
280
280
|
}, configurable: !0, enumerable: !0 };
|
|
281
281
|
}
|
|
282
282
|
static getPropertyOptions(t) {
|
|
283
|
-
return this.elementProperties.get(t) ??
|
|
283
|
+
return this.elementProperties.get(t) ?? gt;
|
|
284
284
|
}
|
|
285
285
|
static _$Ei() {
|
|
286
286
|
if (this.hasOwnProperty(M("elementProperties"))) return;
|
|
@@ -291,17 +291,17 @@ let b = class extends HTMLElement {
|
|
|
291
291
|
if (this.hasOwnProperty(M("finalized"))) return;
|
|
292
292
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(M("properties"))) {
|
|
293
293
|
const e = this.properties, i = [...Jt(e), ...Kt(e)];
|
|
294
|
-
for (const
|
|
294
|
+
for (const r of i) this.createProperty(r, e[r]);
|
|
295
295
|
}
|
|
296
296
|
const t = this[Symbol.metadata];
|
|
297
297
|
if (t !== null) {
|
|
298
298
|
const e = litPropertyMetadata.get(t);
|
|
299
|
-
if (e !== void 0) for (const [i,
|
|
299
|
+
if (e !== void 0) for (const [i, r] of e) this.elementProperties.set(i, r);
|
|
300
300
|
}
|
|
301
301
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
302
302
|
for (const [e, i] of this.elementProperties) {
|
|
303
|
-
const
|
|
304
|
-
|
|
303
|
+
const r = this._$Eu(e, i);
|
|
304
|
+
r !== void 0 && this._$Eh.set(r, e);
|
|
305
305
|
}
|
|
306
306
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
307
307
|
}
|
|
@@ -309,7 +309,7 @@ let b = class extends HTMLElement {
|
|
|
309
309
|
const e = [];
|
|
310
310
|
if (Array.isArray(t)) {
|
|
311
311
|
const i = new Set(t.flat(1 / 0).reverse());
|
|
312
|
-
for (const
|
|
312
|
+
for (const r of i) e.unshift(ft(r));
|
|
313
313
|
} else t !== void 0 && e.push(ft(t));
|
|
314
314
|
return e;
|
|
315
315
|
}
|
|
@@ -361,34 +361,34 @@ let b = class extends HTMLElement {
|
|
|
361
361
|
this._$AK(t, i);
|
|
362
362
|
}
|
|
363
363
|
_$ET(t, e) {
|
|
364
|
-
var
|
|
365
|
-
const i = this.constructor.elementProperties.get(t),
|
|
366
|
-
if (
|
|
367
|
-
const o = (((
|
|
368
|
-
this._$Em = t, o == null ? this.removeAttribute(
|
|
364
|
+
var n;
|
|
365
|
+
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
|
366
|
+
if (r !== void 0 && i.reflect === !0) {
|
|
367
|
+
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : G).toAttribute(e, i.type);
|
|
368
|
+
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
_$AK(t, e) {
|
|
372
|
-
var
|
|
373
|
-
const i = this.constructor,
|
|
374
|
-
if (
|
|
375
|
-
const l = i.getPropertyOptions(
|
|
376
|
-
this._$Em =
|
|
372
|
+
var n, o;
|
|
373
|
+
const i = this.constructor, r = i._$Eh.get(t);
|
|
374
|
+
if (r !== void 0 && this._$Em !== r) {
|
|
375
|
+
const l = i.getPropertyOptions(r), a = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((n = l.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? l.converter : G;
|
|
376
|
+
this._$Em = r;
|
|
377
377
|
const d = a.fromAttribute(e, l.type);
|
|
378
|
-
this[
|
|
378
|
+
this[r] = d ?? ((o = this._$Ej) == null ? void 0 : o.get(r)) ?? d, this._$Em = null;
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
requestUpdate(t, e, i) {
|
|
382
|
-
var
|
|
382
|
+
var r;
|
|
383
383
|
if (t !== void 0) {
|
|
384
|
-
const
|
|
385
|
-
if (i ?? (i =
|
|
384
|
+
const n = this.constructor, o = this[t];
|
|
385
|
+
if (i ?? (i = n.getPropertyOptions(t)), !((i.hasChanged ?? at)(o, e) || i.useDefault && i.reflect && o === ((r = this._$Ej) == null ? void 0 : r.get(t)) && !this.hasAttribute(n._$Eu(t, i)))) return;
|
|
386
386
|
this.C(t, e, i);
|
|
387
387
|
}
|
|
388
388
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
389
389
|
}
|
|
390
|
-
C(t, e, { useDefault: i, reflect:
|
|
391
|
-
i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]),
|
|
390
|
+
C(t, e, { useDefault: i, reflect: r, wrapped: n }, o) {
|
|
391
|
+
i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), n !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), r === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
|
|
392
392
|
}
|
|
393
393
|
async _$EP() {
|
|
394
394
|
this.isUpdatePending = !0;
|
|
@@ -408,24 +408,24 @@ let b = class extends HTMLElement {
|
|
|
408
408
|
if (!this.isUpdatePending) return;
|
|
409
409
|
if (!this.hasUpdated) {
|
|
410
410
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
411
|
-
for (const [
|
|
411
|
+
for (const [n, o] of this._$Ep) this[n] = o;
|
|
412
412
|
this._$Ep = void 0;
|
|
413
413
|
}
|
|
414
|
-
const
|
|
415
|
-
if (
|
|
416
|
-
const { wrapped: l } = o, a = this[
|
|
417
|
-
l !== !0 || this._$AL.has(
|
|
414
|
+
const r = this.constructor.elementProperties;
|
|
415
|
+
if (r.size > 0) for (const [n, o] of r) {
|
|
416
|
+
const { wrapped: l } = o, a = this[n];
|
|
417
|
+
l !== !0 || this._$AL.has(n) || a === void 0 || this.C(n, void 0, o, a);
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
let t = !1;
|
|
421
421
|
const e = this._$AL;
|
|
422
422
|
try {
|
|
423
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((
|
|
424
|
-
var
|
|
425
|
-
return (
|
|
423
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((r) => {
|
|
424
|
+
var n;
|
|
425
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
|
426
426
|
}), this.update(e)) : this._$EM();
|
|
427
|
-
} catch (
|
|
428
|
-
throw t = !1, this._$EM(),
|
|
427
|
+
} catch (r) {
|
|
428
|
+
throw t = !1, this._$EM(), r;
|
|
429
429
|
}
|
|
430
430
|
t && this._$AE(e);
|
|
431
431
|
}
|
|
@@ -434,8 +434,8 @@ let b = class extends HTMLElement {
|
|
|
434
434
|
_$AE(t) {
|
|
435
435
|
var e;
|
|
436
436
|
(e = this._$EO) == null || e.forEach((i) => {
|
|
437
|
-
var
|
|
438
|
-
return (
|
|
437
|
+
var r;
|
|
438
|
+
return (r = i.hostUpdated) == null ? void 0 : r.call(i);
|
|
439
439
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
440
440
|
}
|
|
441
441
|
_$EM() {
|
|
@@ -458,61 +458,61 @@ let b = class extends HTMLElement {
|
|
|
458
458
|
firstUpdated(t) {
|
|
459
459
|
}
|
|
460
460
|
};
|
|
461
|
-
|
|
461
|
+
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[M("elementProperties")] = /* @__PURE__ */ new Map(), y[M("finalized")] = /* @__PURE__ */ new Map(), Q == null || Q({ ReactiveElement: y }), (m.reactiveElementVersions ?? (m.reactiveElementVersions = [])).push("2.1.1");
|
|
462
462
|
/**
|
|
463
463
|
* @license
|
|
464
464
|
* Copyright 2017 Google LLC
|
|
465
465
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
466
466
|
*/
|
|
467
|
-
const U = globalThis, q = U.trustedTypes,
|
|
468
|
-
\f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
469
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
467
|
+
const U = globalThis, q = U.trustedTypes, mt = q ? q.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Ot = "$lit$", g = `lit$${Math.random().toFixed(9).slice(2)}$`, kt = "?" + g, Xt = `<${kt}>`, E = document, H = () => E.createComment(""), L = (s) => s === null || typeof s != "object" && typeof s != "function", lt = Array.isArray, te = (s) => lt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", X = `[
|
|
468
|
+
\f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, bt = /-->/g, _t = />/g, $ = RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^
|
|
469
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), $t = /'/g, yt = /"/g, Mt = /^(?:script|style|textarea|title)$/i, ee = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), R = ee(1), S = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), wt = /* @__PURE__ */ new WeakMap(), w = E.createTreeWalker(E, 129);
|
|
470
470
|
function Ut(s, t) {
|
|
471
471
|
if (!lt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
472
|
-
return
|
|
472
|
+
return mt !== void 0 ? mt.createHTML(t) : t;
|
|
473
473
|
}
|
|
474
474
|
const se = (s, t) => {
|
|
475
475
|
const e = s.length - 1, i = [];
|
|
476
|
-
let
|
|
476
|
+
let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = k;
|
|
477
477
|
for (let l = 0; l < e; l++) {
|
|
478
478
|
const a = s[l];
|
|
479
479
|
let d, h, c = -1, u = 0;
|
|
480
|
-
for (; u < a.length && (o.lastIndex = u, h = o.exec(a), h !== null); ) u = o.lastIndex, o === k ? h[1] === "!--" ? o =
|
|
481
|
-
const v = o ===
|
|
482
|
-
|
|
480
|
+
for (; u < a.length && (o.lastIndex = u, h = o.exec(a), h !== null); ) u = o.lastIndex, o === k ? h[1] === "!--" ? o = bt : h[1] !== void 0 ? o = _t : h[2] !== void 0 ? (Mt.test(h[2]) && (r = RegExp("</" + h[2], "g")), o = $) : h[3] !== void 0 && (o = $) : o === $ ? h[0] === ">" ? (o = r ?? k, c = -1) : h[1] === void 0 ? c = -2 : (c = o.lastIndex - h[2].length, d = h[1], o = h[3] === void 0 ? $ : h[3] === '"' ? yt : $t) : o === yt || o === $t ? o = $ : o === bt || o === _t ? o = k : (o = $, r = void 0);
|
|
481
|
+
const v = o === $ && s[l + 1].startsWith("/>") ? " " : "";
|
|
482
|
+
n += o === k ? a + Xt : c >= 0 ? (i.push(d), a.slice(0, c) + Ot + a.slice(c) + g + v) : a + g + (c === -2 ? l : v);
|
|
483
483
|
}
|
|
484
|
-
return [Ut(s,
|
|
484
|
+
return [Ut(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
485
485
|
};
|
|
486
486
|
class D {
|
|
487
487
|
constructor({ strings: t, _$litType$: e }, i) {
|
|
488
|
-
let
|
|
488
|
+
let r;
|
|
489
489
|
this.parts = [];
|
|
490
|
-
let
|
|
490
|
+
let n = 0, o = 0;
|
|
491
491
|
const l = t.length - 1, a = this.parts, [d, h] = se(t, e);
|
|
492
492
|
if (this.el = D.createElement(d, i), w.currentNode = this.el.content, e === 2 || e === 3) {
|
|
493
493
|
const c = this.el.content.firstChild;
|
|
494
494
|
c.replaceWith(...c.childNodes);
|
|
495
495
|
}
|
|
496
|
-
for (; (
|
|
497
|
-
if (
|
|
498
|
-
if (
|
|
499
|
-
const u = h[o++], v =
|
|
500
|
-
a.push({ type: 1, index:
|
|
501
|
-
} else c.startsWith(
|
|
502
|
-
if (Mt.test(
|
|
503
|
-
const c =
|
|
496
|
+
for (; (r = w.nextNode()) !== null && a.length < l; ) {
|
|
497
|
+
if (r.nodeType === 1) {
|
|
498
|
+
if (r.hasAttributes()) for (const c of r.getAttributeNames()) if (c.endsWith(Ot)) {
|
|
499
|
+
const u = h[o++], v = r.getAttribute(c).split(g), W = /([.?@])?(.*)/.exec(u);
|
|
500
|
+
a.push({ type: 1, index: n, name: W[2], strings: v, ctor: W[1] === "." ? re : W[1] === "?" ? ne : W[1] === "@" ? oe : J }), r.removeAttribute(c);
|
|
501
|
+
} else c.startsWith(g) && (a.push({ type: 6, index: n }), r.removeAttribute(c));
|
|
502
|
+
if (Mt.test(r.tagName)) {
|
|
503
|
+
const c = r.textContent.split(g), u = c.length - 1;
|
|
504
504
|
if (u > 0) {
|
|
505
|
-
|
|
506
|
-
for (let v = 0; v < u; v++)
|
|
507
|
-
|
|
505
|
+
r.textContent = q ? q.emptyScript : "";
|
|
506
|
+
for (let v = 0; v < u; v++) r.append(c[v], H()), w.nextNode(), a.push({ type: 2, index: ++n });
|
|
507
|
+
r.append(c[u], H());
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
} else if (
|
|
510
|
+
} else if (r.nodeType === 8) if (r.data === kt) a.push({ type: 2, index: n });
|
|
511
511
|
else {
|
|
512
512
|
let c = -1;
|
|
513
|
-
for (; (c =
|
|
513
|
+
for (; (c = r.data.indexOf(g, c + 1)) !== -1; ) a.push({ type: 7, index: n }), c += g.length - 1;
|
|
514
514
|
}
|
|
515
|
-
|
|
515
|
+
n++;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
static createElement(t, e) {
|
|
@@ -523,9 +523,9 @@ class D {
|
|
|
523
523
|
function P(s, t, e = s, i) {
|
|
524
524
|
var o, l;
|
|
525
525
|
if (t === S) return t;
|
|
526
|
-
let
|
|
527
|
-
const
|
|
528
|
-
return (
|
|
526
|
+
let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
|
527
|
+
const n = L(t) ? void 0 : t._$litDirective$;
|
|
528
|
+
return (r == null ? void 0 : r.constructor) !== n && ((l = r == null ? void 0 : r._$AO) == null || l.call(r, !1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = P(s, r._$AS(s, t.values), r, i)), t;
|
|
529
529
|
}
|
|
530
530
|
class ie {
|
|
531
531
|
constructor(t, e) {
|
|
@@ -538,17 +538,17 @@ class ie {
|
|
|
538
538
|
return this._$AM._$AU;
|
|
539
539
|
}
|
|
540
540
|
u(t) {
|
|
541
|
-
const { el: { content: e }, parts: i } = this._$AD,
|
|
542
|
-
w.currentNode =
|
|
543
|
-
let
|
|
541
|
+
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? E).importNode(e, !0);
|
|
542
|
+
w.currentNode = r;
|
|
543
|
+
let n = w.nextNode(), o = 0, l = 0, a = i[0];
|
|
544
544
|
for (; a !== void 0; ) {
|
|
545
545
|
if (o === a.index) {
|
|
546
546
|
let d;
|
|
547
|
-
a.type === 2 ? d = new j(
|
|
547
|
+
a.type === 2 ? d = new j(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new ae(n, this, t)), this._$AV.push(d), a = i[++l];
|
|
548
548
|
}
|
|
549
|
-
o !== (a == null ? void 0 : a.index) && (
|
|
549
|
+
o !== (a == null ? void 0 : a.index) && (n = w.nextNode(), o++);
|
|
550
550
|
}
|
|
551
|
-
return w.currentNode = E,
|
|
551
|
+
return w.currentNode = E, r;
|
|
552
552
|
}
|
|
553
553
|
p(t) {
|
|
554
554
|
let e = 0;
|
|
@@ -560,8 +560,8 @@ class j {
|
|
|
560
560
|
var t;
|
|
561
561
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
562
562
|
}
|
|
563
|
-
constructor(t, e, i,
|
|
564
|
-
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options =
|
|
563
|
+
constructor(t, e, i, r) {
|
|
564
|
+
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
|
565
565
|
}
|
|
566
566
|
get parentNode() {
|
|
567
567
|
let t = this._$AA.parentNode;
|
|
@@ -587,11 +587,11 @@ class j {
|
|
|
587
587
|
this._$AH !== p && L(this._$AH) ? this._$AA.nextSibling.data = t : this.T(E.createTextNode(t)), this._$AH = t;
|
|
588
588
|
}
|
|
589
589
|
$(t) {
|
|
590
|
-
var
|
|
591
|
-
const { values: e, _$litType$: i } = t,
|
|
592
|
-
if (((
|
|
590
|
+
var n;
|
|
591
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = D.createElement(Ut(i.h, i.h[0]), this.options)), i);
|
|
592
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === r) this._$AH.p(e);
|
|
593
593
|
else {
|
|
594
|
-
const o = new ie(
|
|
594
|
+
const o = new ie(r, this), l = o.u(this.options);
|
|
595
595
|
o.p(e), this.T(l), this._$AH = o;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
@@ -602,15 +602,15 @@ class j {
|
|
|
602
602
|
k(t) {
|
|
603
603
|
lt(this._$AH) || (this._$AH = [], this._$AR());
|
|
604
604
|
const e = this._$AH;
|
|
605
|
-
let i,
|
|
606
|
-
for (const
|
|
607
|
-
|
|
605
|
+
let i, r = 0;
|
|
606
|
+
for (const n of t) r === e.length ? e.push(i = new j(this.O(H()), this.O(H()), this, this.options)) : i = e[r], i._$AI(n), r++;
|
|
607
|
+
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
|
608
608
|
}
|
|
609
609
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
610
610
|
var i;
|
|
611
611
|
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t !== this._$AB; ) {
|
|
612
|
-
const
|
|
613
|
-
t.remove(), t =
|
|
612
|
+
const r = t.nextSibling;
|
|
613
|
+
t.remove(), t = r;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
setConnected(t) {
|
|
@@ -625,25 +625,25 @@ class J {
|
|
|
625
625
|
get _$AU() {
|
|
626
626
|
return this._$AM._$AU;
|
|
627
627
|
}
|
|
628
|
-
constructor(t, e, i,
|
|
629
|
-
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM =
|
|
628
|
+
constructor(t, e, i, r, n) {
|
|
629
|
+
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = p;
|
|
630
630
|
}
|
|
631
|
-
_$AI(t, e = this, i,
|
|
632
|
-
const
|
|
631
|
+
_$AI(t, e = this, i, r) {
|
|
632
|
+
const n = this.strings;
|
|
633
633
|
let o = !1;
|
|
634
|
-
if (
|
|
634
|
+
if (n === void 0) t = P(this, t, e, 0), o = !L(t) || t !== this._$AH && t !== S, o && (this._$AH = t);
|
|
635
635
|
else {
|
|
636
636
|
const l = t;
|
|
637
637
|
let a, d;
|
|
638
|
-
for (t =
|
|
638
|
+
for (t = n[0], a = 0; a < n.length - 1; a++) d = P(this, l[i + a], e, a), d === S && (d = this._$AH[a]), o || (o = !L(d) || d !== this._$AH[a]), d === p ? t = p : t !== p && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
|
|
639
639
|
}
|
|
640
|
-
o && !
|
|
640
|
+
o && !r && this.j(t);
|
|
641
641
|
}
|
|
642
642
|
j(t) {
|
|
643
643
|
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
class
|
|
646
|
+
class re extends J {
|
|
647
647
|
constructor() {
|
|
648
648
|
super(...arguments), this.type = 3;
|
|
649
649
|
}
|
|
@@ -651,7 +651,7 @@ class ne extends J {
|
|
|
651
651
|
this.element[this.name] = t === p ? void 0 : t;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
class
|
|
654
|
+
class ne extends J {
|
|
655
655
|
constructor() {
|
|
656
656
|
super(...arguments), this.type = 4;
|
|
657
657
|
}
|
|
@@ -660,13 +660,13 @@ class re extends J {
|
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
class oe extends J {
|
|
663
|
-
constructor(t, e, i,
|
|
664
|
-
super(t, e, i,
|
|
663
|
+
constructor(t, e, i, r, n) {
|
|
664
|
+
super(t, e, i, r, n), this.type = 5;
|
|
665
665
|
}
|
|
666
666
|
_$AI(t, e = this) {
|
|
667
667
|
if ((t = P(this, t, e, 0) ?? p) === S) return;
|
|
668
|
-
const i = this._$AH,
|
|
669
|
-
|
|
668
|
+
const i = this._$AH, r = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== p && (i === p || r);
|
|
669
|
+
r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
670
670
|
}
|
|
671
671
|
handleEvent(t) {
|
|
672
672
|
var e;
|
|
@@ -688,12 +688,12 @@ const tt = U.litHtmlPolyfillSupport;
|
|
|
688
688
|
tt == null || tt(D, j), (U.litHtmlVersions ?? (U.litHtmlVersions = [])).push("3.3.1");
|
|
689
689
|
const le = (s, t, e) => {
|
|
690
690
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
691
|
-
let
|
|
692
|
-
if (
|
|
693
|
-
const
|
|
694
|
-
i._$litPart$ =
|
|
691
|
+
let r = i._$litPart$;
|
|
692
|
+
if (r === void 0) {
|
|
693
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
694
|
+
i._$litPart$ = r = new j(t.insertBefore(H(), n), n, void 0, e ?? {});
|
|
695
695
|
}
|
|
696
|
-
return
|
|
696
|
+
return r._$AI(s), r;
|
|
697
697
|
};
|
|
698
698
|
/**
|
|
699
699
|
* @license
|
|
@@ -701,7 +701,7 @@ const le = (s, t, e) => {
|
|
|
701
701
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
702
702
|
*/
|
|
703
703
|
const A = globalThis;
|
|
704
|
-
let
|
|
704
|
+
let b = class extends y {
|
|
705
705
|
constructor() {
|
|
706
706
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
707
707
|
}
|
|
@@ -727,9 +727,9 @@ let _ = class extends b {
|
|
|
727
727
|
}
|
|
728
728
|
};
|
|
729
729
|
var St;
|
|
730
|
-
|
|
730
|
+
b._$litElement$ = !0, b.finalized = !0, (St = A.litElementHydrateSupport) == null || St.call(A, { LitElement: b });
|
|
731
731
|
const et = A.litElementPolyfillSupport;
|
|
732
|
-
et == null || et({ LitElement:
|
|
732
|
+
et == null || et({ LitElement: b });
|
|
733
733
|
(A.litElementVersions ?? (A.litElementVersions = [])).push("4.2.1");
|
|
734
734
|
/**
|
|
735
735
|
* @license
|
|
@@ -747,9 +747,9 @@ const z = (s) => (t, e) => {
|
|
|
747
747
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
748
748
|
*/
|
|
749
749
|
const he = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: at }, ce = (s = he, t, e) => {
|
|
750
|
-
const { kind: i, metadata:
|
|
751
|
-
let
|
|
752
|
-
if (
|
|
750
|
+
const { kind: i, metadata: r } = e;
|
|
751
|
+
let n = globalThis.litPropertyMetadata.get(r);
|
|
752
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), i === "setter" && ((s = Object.create(s)).wrapped = !0), n.set(e.name, s), i === "accessor") {
|
|
753
753
|
const { name: o } = e;
|
|
754
754
|
return { set(l) {
|
|
755
755
|
const a = t.get.call(this);
|
|
@@ -768,9 +768,9 @@ const he = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged:
|
|
|
768
768
|
throw Error("Unsupported decorator location: " + i);
|
|
769
769
|
};
|
|
770
770
|
function f(s) {
|
|
771
|
-
return (t, e) => typeof e == "object" ? ce(s, t, e) : ((i,
|
|
772
|
-
const o =
|
|
773
|
-
return
|
|
771
|
+
return (t, e) => typeof e == "object" ? ce(s, t, e) : ((i, r, n) => {
|
|
772
|
+
const o = r.hasOwnProperty(n);
|
|
773
|
+
return r.constructor.createProperty(n, i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
|
774
774
|
})(s, t, e);
|
|
775
775
|
}
|
|
776
776
|
/**
|
|
@@ -784,19 +784,19 @@ function Nt(s) {
|
|
|
784
784
|
function de(s, t) {
|
|
785
785
|
const e = document.createElement("template");
|
|
786
786
|
return e.innerHTML = s.trim(), t.append(e.content.cloneNode(!0)), new Proxy({}, {
|
|
787
|
-
get(i,
|
|
788
|
-
if (
|
|
787
|
+
get(i, r) {
|
|
788
|
+
if (r === "fragment")
|
|
789
789
|
return t;
|
|
790
|
-
if (typeof
|
|
791
|
-
const
|
|
792
|
-
if (!
|
|
793
|
-
throw new Error(`❌ Unknown id '${
|
|
794
|
-
return
|
|
790
|
+
if (typeof r == "string") {
|
|
791
|
+
const n = t.getElementById(r);
|
|
792
|
+
if (!n)
|
|
793
|
+
throw new Error(`❌ Unknown id '${r}'.`);
|
|
794
|
+
return n;
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
|
-
const ct = class ct extends
|
|
799
|
+
const ct = class ct extends y {
|
|
800
800
|
constructor(t) {
|
|
801
801
|
super();
|
|
802
802
|
const e = this.createRenderRoot();
|
|
@@ -851,27 +851,27 @@ const At = Lt(class extends Rt {
|
|
|
851
851
|
return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
|
|
852
852
|
}
|
|
853
853
|
update(s, [t]) {
|
|
854
|
-
var i,
|
|
854
|
+
var i, r;
|
|
855
855
|
if (this.st === void 0) {
|
|
856
|
-
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((
|
|
857
|
-
for (const
|
|
856
|
+
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
|
857
|
+
for (const n in t) t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
|
|
858
858
|
return this.render(t);
|
|
859
859
|
}
|
|
860
860
|
const e = s.element.classList;
|
|
861
|
-
for (const
|
|
862
|
-
for (const
|
|
863
|
-
const o = !!t[
|
|
864
|
-
o === this.st.has(
|
|
861
|
+
for (const n of this.st) n in t || (e.remove(n), this.st.delete(n));
|
|
862
|
+
for (const n in t) {
|
|
863
|
+
const o = !!t[n];
|
|
864
|
+
o === this.st.has(n) || (r = this.nt) != null && r.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
|
|
865
865
|
}
|
|
866
866
|
return S;
|
|
867
867
|
}
|
|
868
868
|
}), pe = "*,*: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: rgba(var(--nt-dark-rgb), .5);--header-background: transparent;--background-color: var(--nt-soft-primary);--shadow-color: rgba(var(--nt-dark-rgb), .5);--main-padding: 0;--header-padding: var(--nt-space);position:fixed;top:0;right:0;height:100vh;width:50%;min-width:250px;max-width:500px;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:stable;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}";
|
|
869
869
|
var ue = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, K = (s, t, e, i) => {
|
|
870
|
-
for (var
|
|
871
|
-
(o = s[
|
|
872
|
-
return i &&
|
|
870
|
+
for (var r = i > 1 ? void 0 : i ? fe(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
871
|
+
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
|
872
|
+
return i && r && ue(t, e, r), r;
|
|
873
873
|
};
|
|
874
|
-
let x = class extends
|
|
874
|
+
let x = class extends b {
|
|
875
875
|
constructor() {
|
|
876
876
|
super(), this.backdrop = !0, this.opened = !1, this.closedClass = !0, this.addEventListener("click", (s) => {
|
|
877
877
|
s === void 0 || !s.target || !(s.target instanceof HTMLElement) || s.target.closest("[data-nt-dismiss='offcanvas']") !== null && this.close();
|
|
@@ -893,7 +893,7 @@ let x = class extends _ {
|
|
|
893
893
|
this.opened = !this.opened;
|
|
894
894
|
}
|
|
895
895
|
async updated(s) {
|
|
896
|
-
s.has("opened") && (this.opened ? (this.style.display = "block", await dt(1),
|
|
896
|
+
s.has("opened") && (this.opened ? (this.style.display = "block", await dt(1), nt.observeEmptySlots(this), this.closedClass = !1) : (this.closedClass = !0, await dt(400), this.style.display = "none"));
|
|
897
897
|
}
|
|
898
898
|
render() {
|
|
899
899
|
return R`
|
|
@@ -939,13 +939,13 @@ K([
|
|
|
939
939
|
x = K([
|
|
940
940
|
z(x.is)
|
|
941
941
|
], x);
|
|
942
|
-
const ve = ":host{--container-width: var(--nt-container-width);--text-color: var(--nt-text-color);--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;height:var(--height);display:block}nav{height:100%}#main{height:100%}#burger-wrapper{padding:15px}";
|
|
943
|
-
var
|
|
944
|
-
for (var
|
|
945
|
-
(o = s[
|
|
946
|
-
return i &&
|
|
942
|
+
const ve = ":host{--container-width: var(--nt-container-width);--text-color: var(--nt-text);--burger-color-rgb: var(--nt-text-rgb);--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;height:var(--height);display:block}nav{height:100%}#main{height:100%}#burger-wrapper{padding:15px}#burger-default{cursor:pointer}#burger-default slot::slotted(p){color:rgba(var(--burger-color-rgb),.7);transition:color var(--transition)}#burger-default nte-burger{--color: rgba(var(--burger-color-rgb), .5)}#burger-default:hover slot::slotted(p){color:rgba(var(--burger-color-rgb),1)}#burger-default:hover nte-burger{--color: rgba(var(--burger-color-rgb), 1)}";
|
|
943
|
+
var ge = Object.defineProperty, me = Object.getOwnPropertyDescriptor, I = (s, t, e, i) => {
|
|
944
|
+
for (var r = i > 1 ? void 0 : i ? me(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
945
|
+
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
|
946
|
+
return i && r && ge(t, e, r), r;
|
|
947
947
|
};
|
|
948
|
-
let
|
|
948
|
+
let _ = class extends b {
|
|
949
949
|
constructor() {
|
|
950
950
|
super(), this.mode = "slave", this.breakpoint = "99999px", this.transferTo = "", this._isTransferred = !1;
|
|
951
951
|
}
|
|
@@ -971,7 +971,7 @@ let $ = class extends _ {
|
|
|
971
971
|
}}
|
|
972
972
|
>
|
|
973
973
|
<!-- fallback icon -->
|
|
974
|
-
${this._isTransferred ? R`<div style="display:flex; align-items: center; justify-content: center;">
|
|
974
|
+
${this._isTransferred ? R`<div id="burger-default" style="display:flex; align-items: center; justify-content: center;">
|
|
975
975
|
<div id="text"><slot name="menu-text"></slot></div>
|
|
976
976
|
<nte-burger id="open-burger"></nte-burger>
|
|
977
977
|
</div>` : ""}
|
|
@@ -988,8 +988,8 @@ let $ = class extends _ {
|
|
|
988
988
|
const t = (i = this.shadowRoot) == null ? void 0 : i.querySelector("#main-slot");
|
|
989
989
|
if (t === null)
|
|
990
990
|
return;
|
|
991
|
-
Array.from(t.assignedElements({ flatten: !0 })).forEach((
|
|
992
|
-
|
|
991
|
+
Array.from(t.assignedElements({ flatten: !0 })).forEach((r) => {
|
|
992
|
+
r instanceof HTMLElement && s.appendChild(r);
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
995
|
updated(s) {
|
|
@@ -1011,32 +1011,32 @@ let $ = class extends _ {
|
|
|
1011
1011
|
})));
|
|
1012
1012
|
}
|
|
1013
1013
|
};
|
|
1014
|
-
|
|
1014
|
+
_.DEFINITION = {
|
|
1015
1015
|
classes: ["align-left", "align-right", "align-center"],
|
|
1016
1016
|
attributes: {}
|
|
1017
1017
|
};
|
|
1018
|
-
|
|
1018
|
+
_.styles = [C(ve)];
|
|
1019
1019
|
I([
|
|
1020
1020
|
f({ type: String, reflect: !0 })
|
|
1021
|
-
],
|
|
1021
|
+
], _.prototype, "mode", 2);
|
|
1022
1022
|
I([
|
|
1023
1023
|
f({ type: String, reflect: !0 })
|
|
1024
|
-
],
|
|
1024
|
+
], _.prototype, "breakpoint", 2);
|
|
1025
1025
|
I([
|
|
1026
1026
|
f({ type: String, reflect: !0, attribute: "transfer-to" })
|
|
1027
|
-
],
|
|
1027
|
+
], _.prototype, "transferTo", 2);
|
|
1028
1028
|
I([
|
|
1029
1029
|
Nt()
|
|
1030
|
-
],
|
|
1031
|
-
|
|
1030
|
+
], _.prototype, "_isTransferred", 2);
|
|
1031
|
+
_ = I([
|
|
1032
1032
|
z("nte-nav")
|
|
1033
|
-
],
|
|
1033
|
+
], _);
|
|
1034
1034
|
/**
|
|
1035
1035
|
* @license
|
|
1036
1036
|
* Copyright 2020 Google LLC
|
|
1037
1037
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1038
1038
|
*/
|
|
1039
|
-
const
|
|
1039
|
+
const be = (s) => s.strings === void 0;
|
|
1040
1040
|
/**
|
|
1041
1041
|
* @license
|
|
1042
1042
|
* Copyright 2017 Google LLC
|
|
@@ -1046,7 +1046,7 @@ const N = (s, t) => {
|
|
|
1046
1046
|
var i;
|
|
1047
1047
|
const e = s._$AN;
|
|
1048
1048
|
if (e === void 0) return !1;
|
|
1049
|
-
for (const
|
|
1049
|
+
for (const r of e) (i = r._$AO) == null || i.call(r, t, !1), N(r, t);
|
|
1050
1050
|
return !0;
|
|
1051
1051
|
}, V = (s) => {
|
|
1052
1052
|
let t, e;
|
|
@@ -1059,20 +1059,20 @@ const N = (s, t) => {
|
|
|
1059
1059
|
let e = t._$AN;
|
|
1060
1060
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
|
1061
1061
|
else if (e.has(s)) break;
|
|
1062
|
-
e.add(s),
|
|
1062
|
+
e.add(s), ye(t);
|
|
1063
1063
|
}
|
|
1064
1064
|
};
|
|
1065
|
-
function
|
|
1065
|
+
function _e(s) {
|
|
1066
1066
|
this._$AN !== void 0 ? (V(this), this._$AM = s, Dt(this)) : this._$AM = s;
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1069
|
-
const i = this._$AH,
|
|
1070
|
-
if (
|
|
1068
|
+
function $e(s, t = !1, e = 0) {
|
|
1069
|
+
const i = this._$AH, r = this._$AN;
|
|
1070
|
+
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) N(i[n], !1), V(i[n]);
|
|
1071
1071
|
else i != null && (N(i, !1), V(i));
|
|
1072
1072
|
else N(this, s);
|
|
1073
1073
|
}
|
|
1074
|
-
const
|
|
1075
|
-
s.type == Ht.CHILD && (s._$AP ?? (s._$AP =
|
|
1074
|
+
const ye = (s) => {
|
|
1075
|
+
s.type == Ht.CHILD && (s._$AP ?? (s._$AP = $e), s._$AQ ?? (s._$AQ = _e));
|
|
1076
1076
|
};
|
|
1077
1077
|
class we extends Rt {
|
|
1078
1078
|
constructor() {
|
|
@@ -1082,11 +1082,11 @@ class we extends Rt {
|
|
|
1082
1082
|
super._$AT(t, e, i), Dt(this), this.isConnected = t._$AU;
|
|
1083
1083
|
}
|
|
1084
1084
|
_$AO(t, e = !0) {
|
|
1085
|
-
var i,
|
|
1086
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (
|
|
1085
|
+
var i, r;
|
|
1086
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (N(this, t), V(this));
|
|
1087
1087
|
}
|
|
1088
1088
|
setValue(t) {
|
|
1089
|
-
if (
|
|
1089
|
+
if (be(this._$Ct)) this._$Ct._$AI(t, this);
|
|
1090
1090
|
else {
|
|
1091
1091
|
const e = [...this._$Ct._$AH];
|
|
1092
1092
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
|
@@ -1133,11 +1133,11 @@ const st = /* @__PURE__ */ new WeakMap(), Et = Lt(class extends we {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
}), xe = "*,*: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;width:100vw;isolation:isolate;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%;height:var(--brand-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}";
|
|
1135
1135
|
var Ee = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, jt = (s, t, e, i) => {
|
|
1136
|
-
for (var
|
|
1137
|
-
(o = s[
|
|
1138
|
-
return i &&
|
|
1136
|
+
for (var r = i > 1 ? void 0 : i ? Se(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
1137
|
+
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
|
1138
|
+
return i && r && Ee(t, e, r), r;
|
|
1139
1139
|
};
|
|
1140
|
-
let Y = class extends
|
|
1140
|
+
let Y = class extends b {
|
|
1141
1141
|
constructor() {
|
|
1142
1142
|
super(), this.navbarRef = xt(), this.spacerRef = xt(), this.scrollThreshold = 0, this._lastScrollY = window.scrollY, this._scrollUpPixels = 0, this._debouncer = new Ct(100, 300), document.addEventListener(
|
|
1143
1143
|
"scroll",
|
|
@@ -1164,7 +1164,7 @@ let Y = class extends _ {
|
|
|
1164
1164
|
console.log("Updating spacer height", t == null ? void 0 : t.offsetHeight, e), t && e && (e.style.height = `${t.offsetHeight}px`);
|
|
1165
1165
|
}
|
|
1166
1166
|
firstUpdated(s) {
|
|
1167
|
-
|
|
1167
|
+
nt.observeEmptySlots(this);
|
|
1168
1168
|
}
|
|
1169
1169
|
render() {
|
|
1170
1170
|
return R`
|
|
@@ -1191,11 +1191,11 @@ Y = jt([
|
|
|
1191
1191
|
], Y);
|
|
1192
1192
|
const 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{--container-width: var(--nt-container-width, 100%);--background: transparent;--text-color: var(--nt-text);--height: auto;--brand-height: 80px;display:block;height:100%;width:100%}: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{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}";
|
|
1193
1193
|
var Te = Object.getOwnPropertyDescriptor, Pe = (s, t, e, i) => {
|
|
1194
|
-
for (var
|
|
1195
|
-
(o = s[
|
|
1196
|
-
return
|
|
1194
|
+
for (var r = i > 1 ? void 0 : i ? Te(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
1195
|
+
(o = s[n]) && (r = o(r) || r);
|
|
1196
|
+
return r;
|
|
1197
1197
|
};
|
|
1198
|
-
let
|
|
1198
|
+
let rt = class extends b {
|
|
1199
1199
|
static get is() {
|
|
1200
1200
|
return "nte-navbar-line";
|
|
1201
1201
|
}
|
|
@@ -1209,7 +1209,7 @@ let nt = class extends _ {
|
|
|
1209
1209
|
);
|
|
1210
1210
|
}
|
|
1211
1211
|
firstUpdated(s) {
|
|
1212
|
-
|
|
1212
|
+
nt.observeEmptySlots(this);
|
|
1213
1213
|
}
|
|
1214
1214
|
render() {
|
|
1215
1215
|
return R`
|
|
@@ -1226,15 +1226,15 @@ let nt = class extends _ {
|
|
|
1226
1226
|
`;
|
|
1227
1227
|
}
|
|
1228
1228
|
};
|
|
1229
|
-
|
|
1230
|
-
|
|
1229
|
+
rt.styles = [C(Ce)];
|
|
1230
|
+
rt = Pe([
|
|
1231
1231
|
z("nte-navbar-line")
|
|
1232
|
-
],
|
|
1232
|
+
], rt);
|
|
1233
1233
|
const Oe = ":host{--size: 40px;--color: #666;--color-hover: #000;height:var(--size);width:var(--size)}.hamburger{display:block;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0 none;background:none;transition:transform .4s}.hamburger:hover{--color: var(--color-hover)}:host([open]) .hamburger .bar:nth-of-type(1){--translate: calc(var(--size) / 4);transform:translateY(var(--translate)) rotate(45deg)}:host([open]) .hamburger .bar:nth-of-type(2){opacity:0}:host([open]) .hamburger .bar:nth-of-type(3){--translate: calc(var(--size) / -4);transform:translateY(var(--translate)) rotate(-45deg)}.bar{height:3px;width:var(--size);display:block;margin:calc(var(--size) / 5.2) auto;position:relative;background-color:var(--color);transition:.4s}";
|
|
1234
1234
|
var ke = Object.defineProperty, Me = Object.getOwnPropertyDescriptor, ht = (s, t, e, i) => {
|
|
1235
|
-
for (var
|
|
1236
|
-
(o = s[
|
|
1237
|
-
return i &&
|
|
1235
|
+
for (var r = i > 1 ? void 0 : i ? Me(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
1236
|
+
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
|
1237
|
+
return i && r && ke(t, e, r), r;
|
|
1238
1238
|
};
|
|
1239
1239
|
const Ue = `
|
|
1240
1240
|
<div id="wrapper">
|
|
@@ -1264,6 +1264,6 @@ F = ht([
|
|
|
1264
1264
|
], F);
|
|
1265
1265
|
console.log("Loading nte-nav...");
|
|
1266
1266
|
export {
|
|
1267
|
-
|
|
1267
|
+
_ as NteNav,
|
|
1268
1268
|
Y as NteNavbar
|
|
1269
1269
|
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextrap/nte-nav",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.25",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@nextrap/nt-framework": "^0.0.1",
|
|
7
7
|
"@nextrap/nte-burger": "^0.0.1",
|
|
8
|
-
"@nextrap/nte-offcanvas": "^0.0.
|
|
8
|
+
"@nextrap/nte-offcanvas": "^0.0.15"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@nextrap/style-base": "^1.
|
|
11
|
+
"@nextrap/style-base": "^1.1.1",
|
|
12
12
|
"@nextrap/style-reset": "^0.1.1"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|