@nextrap/ntl-2col 0.1.1 → 0.1.2
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 +14 -0
- package/index.css +1 -1
- package/index.d.ts +1 -0
- package/index.js +113 -104
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 0.1.2 (2025-07-25)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- make temp change to force a release ([432f76a](https://github.com/nextrap/nextrap-monorepo/commit/432f76a))
|
|
6
|
+
|
|
7
|
+
### 🩹 Fixes
|
|
8
|
+
|
|
9
|
+
- correctly import base styles ([#15](https://github.com/nextrap/nextrap-monorepo/pull/15))
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- Enzo Volkmann @evolkmann
|
|
14
|
+
|
|
1
15
|
## 0.1.1 (2025-05-27)
|
|
2
16
|
|
|
3
17
|
This was a version bump only for ntl-2col to align it with other projects, there were no code changes.
|
package/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--nt-primary: #007bff;--nt-accent: #6610f2;--nt-success: #28a745;--nt-info: #17a2b8;--nt-warning: #ffc107;--nt-danger: #dc3545;--nt-light: #f8f9fa;--nt-dark: #343a40;--nt-white: #fff;--nt-black: #000;--nt-soft-primary: rgb(204, 228.6, 255);--nt-soft-accent: rgb(225.8571428571, 209.4761904762, 252.5238095238);--nt-soft-success: rgb(175.1304347826, 235.8695652174, 189);--nt-soft-info: rgb(167, 233.4782608696, 244);--nt-soft-warning: #fff4d3;--nt-soft-danger: rgb(250.1265822785, 226.8734177215, 229.1012658228);--nt-soft-light:
|
|
1
|
+
:root{--nt-primary: #007bff;--nt-secondary: #6c757d;--nt-accent: #6610f2;--nt-success: #28a745;--nt-info: #17a2b8;--nt-warning: #ffc107;--nt-danger: #dc3545;--nt-light: #f8f9fa;--nt-dark: #343a40;--nt-white: #fff;--nt-black: #000;--nt-soft-primary: rgb(204, 228.6, 255);--nt-soft-secondary: rgb(215.8369098712, 218.6566523605, 221.1630901288);--nt-soft-accent: rgb(225.8571428571, 209.4761904762, 252.5238095238);--nt-soft-success: rgb(175.1304347826, 235.8695652174, 189);--nt-soft-info: rgb(167, 233.4782608696, 244);--nt-soft-warning: #fff4d3;--nt-soft-danger: rgb(250.1265822785, 226.8734177215, 229.1012658228);--nt-soft-light: hsl(210, 16.6666666667%, 137.6470588235%);--nt-soft-dark: rgb(150.1724137931, 160, 169.8275862069);--nt-text-on-soft-colors: #000;--nt-text: #000;--nt-text-on-primary: #fff;--nt-text-on-secondary: #fff;--nt-text-on-accent: #fff;--nt-text-on-success: #000;--nt-text-on-info: #000;--nt-text-on-warning: #000;--nt-text-on-danger: #000;--nt-text-on-light: #000;--nt-text-on-dark: #fff;--nt-text-on-white: #000;--nt-text-on-black: #fff;--nt-background: #fff;--nt-link: #007bff;--nt-link-on-dark: #fff;--nt-text-decoration-link: underline;--nt-font-family-base: sans-serif;--nt-font-family-header: sans-serif;--nt-font-size-base: 1rem;--nt-font-size-header: 1rem;--nt-header: header;--nt-font-size-small: .875rem;--nt-gap: 1.25rem;--nt-border-radius: .25rem;--nt-border-width: 1px;--nt-space: 1rem;--nt-space-1: calc(var(--nt-space) * .25);--nt-space-2: calc(var(--nt-space) * .5);--nt-space-3: calc(var(--nt-space) * 1);--nt-space-4: calc(var(--nt-space) * 1.5);--nt-space-5: calc(var(--nt-space) * 3);--nt-content-space: 10rem;--nt-content-space-1: calc(var(--nt-content-space) * .25);--nt-content-space-2: calc(var(--nt-content-space) * .5);--nt-content-space-3: calc(var(--nt-content-space) * 1);--nt-content-space-4: calc(var(--nt-content-space) * 1.5);--nt-content-space-5: calc(var(--nt-content-space) * 3);--nt-fs-1: calc(var(--nt-font-size-base) * 1.5);--nt-fs-2: calc(var(--nt-font-size-base) * 1.25);--nt-fs-3: calc(var(--nt-font-size-base) * 1);--nt-fs-4: calc(var(--nt-font-size-base) * .9);--nt-fs-5: calc(var(--nt-font-size-base) * .85);--nt-fs-6: calc(var(--nt-font-size-base) * .75);--nt-fs-h1: calc(var(--nt-font-size-header) * 2.5);--nt-fs-h2: calc(var(--nt-font-size-header) * 2);--nt-fs-h3: calc(var(--nt-font-size-header) * 1.75);--nt-fs-h4: calc(var(--nt-font-size-header) * 1.5);--nt-fs-h5: calc(var(--nt-font-size-header) * 1.25);--nt-fs-h6: calc(var(--nt-font-size-header) * 1)}html{font-size:1rem}@media (min-width: 576px){html{--nt-container-width: 540px}}@media (min-width: 768px){html{--nt-container-width: 720px}}@media (min-width: 992px){html{--nt-container-width: 960px}}@media (min-width: 1200px){html{--nt-container-width: 1140px}}@media (min-width: 1400px){html{--nt-container-width: 1320px}}
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
class _t {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param delay Debounce delay in milliseconds
|
|
5
|
+
* @param max_delay Maximum delay in milliseconds, if false then no maximum delay is applied
|
|
6
|
+
*/
|
|
7
|
+
constructor(t, e = !1) {
|
|
8
|
+
this.delay = t, this.max_delay = e, this.timeout = null, this.startTimeWithMs = 0;
|
|
4
9
|
}
|
|
5
10
|
async wait() {
|
|
6
|
-
return this.timeout && clearTimeout(this.timeout), new Promise((t) => {
|
|
11
|
+
return this.startTimeWithMs === 0 && (this.startTimeWithMs = Date.now()), this.timeout && (this.max_delay === !1 || this.startTimeWithMs + this.max_delay > Date.now()) && clearTimeout(this.timeout), new Promise((t) => {
|
|
7
12
|
this.timeout = setTimeout(() => {
|
|
8
|
-
t(!0);
|
|
13
|
+
this.startTimeWithMs = 0, t(!0);
|
|
9
14
|
}, this.delay);
|
|
10
15
|
});
|
|
11
16
|
}
|
|
@@ -24,7 +29,7 @@ const w = {
|
|
|
24
29
|
xxl: { name: "xxl", minWidth: 1400 }
|
|
25
30
|
};
|
|
26
31
|
let S = w.xs;
|
|
27
|
-
function
|
|
32
|
+
function L() {
|
|
28
33
|
const r = window.innerWidth;
|
|
29
34
|
let t = w.xs;
|
|
30
35
|
for (const e in w) {
|
|
@@ -36,16 +41,18 @@ function j() {
|
|
|
36
41
|
function mt(r) {
|
|
37
42
|
if (typeof r == "string" && r.endsWith("px") && (r = parseInt(r.replace("px", ""))), typeof r == "string") {
|
|
38
43
|
if (r = w[r], !r)
|
|
39
|
-
throw new Error(
|
|
44
|
+
throw new Error(
|
|
45
|
+
`Breakpoint ${r} not found. Defined breakpoints are: ${Object.keys(w).join(", ")}`
|
|
46
|
+
);
|
|
40
47
|
} else typeof r == "number" && (r = { name: "c", minWidth: r });
|
|
41
48
|
return window.innerWidth >= r.minWidth;
|
|
42
49
|
}
|
|
43
50
|
if (!window.__nextrap_current_breakpoint) {
|
|
44
|
-
window.__nextrap_current_breakpoint =
|
|
45
|
-
const r = new _t(500);
|
|
51
|
+
window.__nextrap_current_breakpoint = L();
|
|
52
|
+
const r = new _t(200, 500);
|
|
46
53
|
window.addEventListener("resize", async () => {
|
|
47
|
-
if (await r.wait(), S !==
|
|
48
|
-
S =
|
|
54
|
+
if (await r.wait(), S !== L()) {
|
|
55
|
+
S = L(), window.__nextrap_current_breakpoint = S;
|
|
49
56
|
const t = new CustomEvent("breakpoint-changed", {
|
|
50
57
|
detail: { breakpoint: S }
|
|
51
58
|
});
|
|
@@ -93,7 +100,7 @@ const F = (r) => new ct(typeof r == "string" ? r : r + "", void 0, lt), yt = (r,
|
|
|
93
100
|
* Copyright 2017 Google LLC
|
|
94
101
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
102
|
*/
|
|
96
|
-
const { is: gt, defineProperty: vt, getOwnPropertyDescriptor: At, getOwnPropertyNames: wt, getOwnPropertySymbols: Et, getPrototypeOf: bt } = Object, _ = globalThis, Y = _.trustedTypes, St = Y ? Y.emptyScript : "",
|
|
103
|
+
const { is: gt, defineProperty: vt, getOwnPropertyDescriptor: At, getOwnPropertyNames: wt, getOwnPropertySymbols: Et, getPrototypeOf: bt } = Object, _ = globalThis, Y = _.trustedTypes, St = Y ? Y.emptyScript : "", j = _.reactiveElementPolyfillSupport, C = (r, t) => r, W = { toAttribute(r, t) {
|
|
97
104
|
switch (t) {
|
|
98
105
|
case Boolean:
|
|
99
106
|
r = r ? St : null;
|
|
@@ -121,7 +128,7 @@ const { is: gt, defineProperty: vt, getOwnPropertyDescriptor: At, getOwnProperty
|
|
|
121
128
|
}
|
|
122
129
|
}
|
|
123
130
|
return e;
|
|
124
|
-
} }, J = (r, t) => !gt(r, t), tt = { attribute: !0, type: String, converter:
|
|
131
|
+
} }, J = (r, t) => !gt(r, t), tt = { attribute: !0, type: String, converter: W, reflect: !1, useDefault: !1, hasChanged: J };
|
|
125
132
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
126
133
|
let y = class extends HTMLElement {
|
|
127
134
|
static addInitializer(t) {
|
|
@@ -143,8 +150,8 @@ let y = class extends HTMLElement {
|
|
|
143
150
|
this[e] = o;
|
|
144
151
|
} };
|
|
145
152
|
return { get: i, set(o) {
|
|
146
|
-
const
|
|
147
|
-
n == null || n.call(this, o), this.requestUpdate(t,
|
|
153
|
+
const h = i == null ? void 0 : i.call(this);
|
|
154
|
+
n == null || n.call(this, o), this.requestUpdate(t, h, s);
|
|
148
155
|
}, configurable: !0, enumerable: !0 };
|
|
149
156
|
}
|
|
150
157
|
static getPropertyOptions(t) {
|
|
@@ -232,7 +239,7 @@ let y = class extends HTMLElement {
|
|
|
232
239
|
var n;
|
|
233
240
|
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
234
241
|
if (i !== void 0 && s.reflect === !0) {
|
|
235
|
-
const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter :
|
|
242
|
+
const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : W).toAttribute(e, s.type);
|
|
236
243
|
this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
|
|
237
244
|
}
|
|
238
245
|
}
|
|
@@ -240,8 +247,10 @@ let y = class extends HTMLElement {
|
|
|
240
247
|
var n, o;
|
|
241
248
|
const s = this.constructor, i = s._$Eh.get(t);
|
|
242
249
|
if (i !== void 0 && this._$Em !== i) {
|
|
243
|
-
const
|
|
244
|
-
this._$Em = i
|
|
250
|
+
const h = s.getPropertyOptions(i), a = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((n = h.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? h.converter : W;
|
|
251
|
+
this._$Em = i;
|
|
252
|
+
const c = a.fromAttribute(e, h.type);
|
|
253
|
+
this[i] = c ?? ((o = this._$Ej) == null ? void 0 : o.get(i)) ?? c, this._$Em = null;
|
|
245
254
|
}
|
|
246
255
|
}
|
|
247
256
|
requestUpdate(t, e, s) {
|
|
@@ -279,8 +288,8 @@ let y = class extends HTMLElement {
|
|
|
279
288
|
}
|
|
280
289
|
const i = this.constructor.elementProperties;
|
|
281
290
|
if (i.size > 0) for (const [n, o] of i) {
|
|
282
|
-
const { wrapped:
|
|
283
|
-
|
|
291
|
+
const { wrapped: h } = o, a = this[n];
|
|
292
|
+
h !== !0 || this._$AL.has(n) || a === void 0 || this.C(n, void 0, o, a);
|
|
284
293
|
}
|
|
285
294
|
}
|
|
286
295
|
let t = !1;
|
|
@@ -324,7 +333,7 @@ let y = class extends HTMLElement {
|
|
|
324
333
|
firstUpdated(t) {
|
|
325
334
|
}
|
|
326
335
|
};
|
|
327
|
-
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[C("elementProperties")] = /* @__PURE__ */ new Map(), y[C("finalized")] = /* @__PURE__ */ new Map(),
|
|
336
|
+
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[C("elementProperties")] = /* @__PURE__ */ new Map(), y[C("finalized")] = /* @__PURE__ */ new Map(), j == null || j({ ReactiveElement: y }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.1.1");
|
|
328
337
|
/**
|
|
329
338
|
* @license
|
|
330
339
|
* Copyright 2017 Google LLC
|
|
@@ -340,12 +349,12 @@ function $t(r, t) {
|
|
|
340
349
|
const Ot = (r, t) => {
|
|
341
350
|
const e = r.length - 1, s = [];
|
|
342
351
|
let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = x;
|
|
343
|
-
for (let
|
|
344
|
-
const
|
|
352
|
+
for (let h = 0; h < e; h++) {
|
|
353
|
+
const a = r[h];
|
|
345
354
|
let c, p, l = -1, u = 0;
|
|
346
|
-
for (; u <
|
|
347
|
-
const $ = o === m && r[
|
|
348
|
-
n += o === x ?
|
|
355
|
+
for (; u < a.length && (o.lastIndex = u, p = o.exec(a), p !== null); ) u = o.lastIndex, o === x ? p[1] === "!--" ? o = st : p[1] !== void 0 ? o = it : p[2] !== void 0 ? (ut.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = m) : p[3] !== void 0 && (o = m) : o === m ? p[0] === ">" ? (o = i ?? x, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, c = p[1], o = p[3] === void 0 ? m : p[3] === '"' ? nt : rt) : o === nt || o === rt ? o = m : o === st || o === it ? o = x : (o = m, i = void 0);
|
|
356
|
+
const $ = o === m && r[h + 1].startsWith("/>") ? " " : "";
|
|
357
|
+
n += o === x ? a + xt : l >= 0 ? (s.push(c), a.slice(0, l) + dt + a.slice(l) + f + $) : a + f + (l === -2 ? h : $);
|
|
349
358
|
}
|
|
350
359
|
return [$t(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
351
360
|
};
|
|
@@ -354,29 +363,29 @@ class M {
|
|
|
354
363
|
let i;
|
|
355
364
|
this.parts = [];
|
|
356
365
|
let n = 0, o = 0;
|
|
357
|
-
const
|
|
366
|
+
const h = t.length - 1, a = this.parts, [c, p] = Ot(t, e);
|
|
358
367
|
if (this.el = M.createElement(c, s), g.currentNode = this.el.content, e === 2 || e === 3) {
|
|
359
368
|
const l = this.el.content.firstChild;
|
|
360
369
|
l.replaceWith(...l.childNodes);
|
|
361
370
|
}
|
|
362
|
-
for (; (i = g.nextNode()) !== null &&
|
|
371
|
+
for (; (i = g.nextNode()) !== null && a.length < h; ) {
|
|
363
372
|
if (i.nodeType === 1) {
|
|
364
373
|
if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(dt)) {
|
|
365
374
|
const u = p[o++], $ = i.getAttribute(l).split(f), R = /([.?@])?(.*)/.exec(u);
|
|
366
|
-
|
|
367
|
-
} else l.startsWith(f) && (
|
|
375
|
+
a.push({ type: 1, index: n, name: R[2], strings: $, ctor: R[1] === "." ? Mt : R[1] === "?" ? Ht : R[1] === "@" ? Nt : B }), i.removeAttribute(l);
|
|
376
|
+
} else l.startsWith(f) && (a.push({ type: 6, index: n }), i.removeAttribute(l));
|
|
368
377
|
if (ut.test(i.tagName)) {
|
|
369
378
|
const l = i.textContent.split(f), u = l.length - 1;
|
|
370
379
|
if (u > 0) {
|
|
371
380
|
i.textContent = D ? D.emptyScript : "";
|
|
372
|
-
for (let $ = 0; $ < u; $++) i.append(l[$], O()), g.nextNode(),
|
|
381
|
+
for (let $ = 0; $ < u; $++) i.append(l[$], O()), g.nextNode(), a.push({ type: 2, index: ++n });
|
|
373
382
|
i.append(l[u], O());
|
|
374
383
|
}
|
|
375
384
|
}
|
|
376
|
-
} else if (i.nodeType === 8) if (i.data === pt)
|
|
385
|
+
} else if (i.nodeType === 8) if (i.data === pt) a.push({ type: 2, index: n });
|
|
377
386
|
else {
|
|
378
387
|
let l = -1;
|
|
379
|
-
for (; (l = i.data.indexOf(f, l + 1)) !== -1; )
|
|
388
|
+
for (; (l = i.data.indexOf(f, l + 1)) !== -1; ) a.push({ type: 7, index: n }), l += f.length - 1;
|
|
380
389
|
}
|
|
381
390
|
n++;
|
|
382
391
|
}
|
|
@@ -387,11 +396,11 @@ class M {
|
|
|
387
396
|
}
|
|
388
397
|
}
|
|
389
398
|
function b(r, t, e = r, s) {
|
|
390
|
-
var o,
|
|
399
|
+
var o, h;
|
|
391
400
|
if (t === E) return t;
|
|
392
401
|
let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
|
393
402
|
const n = T(t) ? void 0 : t._$litDirective$;
|
|
394
|
-
return (i == null ? void 0 : i.constructor) !== n && ((
|
|
403
|
+
return (i == null ? void 0 : i.constructor) !== n && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = b(r, i._$AS(r, t.values), i, s)), t;
|
|
395
404
|
}
|
|
396
405
|
class Tt {
|
|
397
406
|
constructor(t, e) {
|
|
@@ -406,13 +415,13 @@ class Tt {
|
|
|
406
415
|
u(t) {
|
|
407
416
|
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? A).importNode(e, !0);
|
|
408
417
|
g.currentNode = i;
|
|
409
|
-
let n = g.nextNode(), o = 0,
|
|
410
|
-
for (;
|
|
411
|
-
if (o ===
|
|
418
|
+
let n = g.nextNode(), o = 0, h = 0, a = s[0];
|
|
419
|
+
for (; a !== void 0; ) {
|
|
420
|
+
if (o === a.index) {
|
|
412
421
|
let c;
|
|
413
|
-
|
|
422
|
+
a.type === 2 ? c = new N(n, n.nextSibling, this, t) : a.type === 1 ? c = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (c = new Rt(n, this, t)), this._$AV.push(c), a = s[++h];
|
|
414
423
|
}
|
|
415
|
-
o !== (
|
|
424
|
+
o !== (a == null ? void 0 : a.index) && (n = g.nextNode(), o++);
|
|
416
425
|
}
|
|
417
426
|
return g.currentNode = A, i;
|
|
418
427
|
}
|
|
@@ -457,8 +466,8 @@ class N {
|
|
|
457
466
|
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = M.createElement($t(s.h, s.h[0]), this.options)), s);
|
|
458
467
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(e);
|
|
459
468
|
else {
|
|
460
|
-
const o = new Tt(i, this),
|
|
461
|
-
o.p(e), this.T(
|
|
469
|
+
const o = new Tt(i, this), h = o.u(this.options);
|
|
470
|
+
o.p(e), this.T(h), this._$AH = o;
|
|
462
471
|
}
|
|
463
472
|
}
|
|
464
473
|
_$AC(t) {
|
|
@@ -474,7 +483,7 @@ class N {
|
|
|
474
483
|
}
|
|
475
484
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
476
485
|
var s;
|
|
477
|
-
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t
|
|
486
|
+
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t !== this._$AB; ) {
|
|
478
487
|
const i = t.nextSibling;
|
|
479
488
|
t.remove(), t = i;
|
|
480
489
|
}
|
|
@@ -484,7 +493,7 @@ class N {
|
|
|
484
493
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
485
494
|
}
|
|
486
495
|
}
|
|
487
|
-
class
|
|
496
|
+
class B {
|
|
488
497
|
get tagName() {
|
|
489
498
|
return this.element.tagName;
|
|
490
499
|
}
|
|
@@ -499,9 +508,9 @@ class L {
|
|
|
499
508
|
let o = !1;
|
|
500
509
|
if (n === void 0) t = b(this, t, e, 0), o = !T(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
|
|
501
510
|
else {
|
|
502
|
-
const
|
|
503
|
-
let
|
|
504
|
-
for (t = n[0],
|
|
511
|
+
const h = t;
|
|
512
|
+
let a, c;
|
|
513
|
+
for (t = n[0], a = 0; a < n.length - 1; a++) c = b(this, h[s + a], e, a), c === E && (c = this._$AH[a]), o || (o = !T(c) || c !== this._$AH[a]), c === d ? t = d : t !== d && (t += (c ?? "") + n[a + 1]), this._$AH[a] = c;
|
|
505
514
|
}
|
|
506
515
|
o && !i && this.j(t);
|
|
507
516
|
}
|
|
@@ -509,7 +518,7 @@ class L {
|
|
|
509
518
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
510
519
|
}
|
|
511
520
|
}
|
|
512
|
-
class Mt extends
|
|
521
|
+
class Mt extends B {
|
|
513
522
|
constructor() {
|
|
514
523
|
super(...arguments), this.type = 3;
|
|
515
524
|
}
|
|
@@ -517,7 +526,7 @@ class Mt extends L {
|
|
|
517
526
|
this.element[this.name] = t === d ? void 0 : t;
|
|
518
527
|
}
|
|
519
528
|
}
|
|
520
|
-
class Ht extends
|
|
529
|
+
class Ht extends B {
|
|
521
530
|
constructor() {
|
|
522
531
|
super(...arguments), this.type = 4;
|
|
523
532
|
}
|
|
@@ -525,7 +534,7 @@ class Ht extends L {
|
|
|
525
534
|
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
526
535
|
}
|
|
527
536
|
}
|
|
528
|
-
class Nt extends
|
|
537
|
+
class Nt extends B {
|
|
529
538
|
constructor(t, e, s, i, n) {
|
|
530
539
|
super(t, e, s, i, n), this.type = 5;
|
|
531
540
|
}
|
|
@@ -551,7 +560,7 @@ class Rt {
|
|
|
551
560
|
}
|
|
552
561
|
}
|
|
553
562
|
const z = P.litHtmlPolyfillSupport;
|
|
554
|
-
z == null || z(M, N), (P.litHtmlVersions ?? (P.litHtmlVersions = [])).push("3.3.
|
|
563
|
+
z == null || z(M, N), (P.litHtmlVersions ?? (P.litHtmlVersions = [])).push("3.3.1");
|
|
555
564
|
const kt = (r, t, e) => {
|
|
556
565
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
557
566
|
let i = s._$litPart$;
|
|
@@ -592,53 +601,17 @@ class U extends y {
|
|
|
592
601
|
return E;
|
|
593
602
|
}
|
|
594
603
|
}
|
|
595
|
-
var
|
|
596
|
-
U._$litElement$ = !0, U.finalized = !0, (
|
|
604
|
+
var ht;
|
|
605
|
+
U._$litElement$ = !0, U.finalized = !0, (ht = v.litElementHydrateSupport) == null || ht.call(v, { LitElement: U });
|
|
597
606
|
const q = v.litElementPolyfillSupport;
|
|
598
607
|
q == null || q({ LitElement: U });
|
|
599
|
-
(v.litElementVersions ?? (v.litElementVersions = [])).push("4.2.
|
|
600
|
-
function Bt(r, t) {
|
|
601
|
-
const e = document.createElement("template");
|
|
602
|
-
return e.innerHTML = r.trim(), t.append(e.content.cloneNode(!0)), new Proxy({}, {
|
|
603
|
-
get(s, i) {
|
|
604
|
-
if (i === "fragment")
|
|
605
|
-
return t;
|
|
606
|
-
if (typeof i == "string") {
|
|
607
|
-
const n = t.getElementById(i);
|
|
608
|
-
if (!n)
|
|
609
|
-
throw new Error(
|
|
610
|
-
`❌ Unknown id '${i}'.`
|
|
611
|
-
);
|
|
612
|
-
return n;
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
const G = class G extends y {
|
|
618
|
-
constructor(t) {
|
|
619
|
-
super();
|
|
620
|
-
const e = this.createRenderRoot();
|
|
621
|
-
this.$ = Bt(t, e);
|
|
622
|
-
}
|
|
623
|
-
connectedCallback() {
|
|
624
|
-
super.connectedCallback();
|
|
625
|
-
let t = this.css;
|
|
626
|
-
Array.isArray(t) || (t = [t]);
|
|
627
|
-
const e = t.map((s) => s instanceof ct ? s.styleSheet : F(s).styleSheet);
|
|
628
|
-
this.shadowRoot.adoptedStyleSheets = e;
|
|
629
|
-
}
|
|
630
|
-
};
|
|
631
|
-
G.DEFINITION = {
|
|
632
|
-
classes: [],
|
|
633
|
-
attributes: {}
|
|
634
|
-
};
|
|
635
|
-
let ht = G;
|
|
608
|
+
(v.litElementVersions ?? (v.litElementVersions = [])).push("4.2.1");
|
|
636
609
|
/**
|
|
637
610
|
* @license
|
|
638
611
|
* Copyright 2017 Google LLC
|
|
639
612
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
640
613
|
*/
|
|
641
|
-
const
|
|
614
|
+
const Wt = (r) => (t, e) => {
|
|
642
615
|
e !== void 0 ? e.addInitializer(() => {
|
|
643
616
|
customElements.define(r, t);
|
|
644
617
|
}) : customElements.define(r, t);
|
|
@@ -648,34 +621,68 @@ const Dt = (r) => (t, e) => {
|
|
|
648
621
|
* Copyright 2017 Google LLC
|
|
649
622
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
650
623
|
*/
|
|
651
|
-
const
|
|
624
|
+
const Dt = { attribute: !0, type: String, converter: W, reflect: !1, hasChanged: J }, Bt = (r = Dt, t, e) => {
|
|
652
625
|
const { kind: s, metadata: i } = e;
|
|
653
626
|
let n = globalThis.litPropertyMetadata.get(i);
|
|
654
627
|
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), n.set(e.name, r), s === "accessor") {
|
|
655
628
|
const { name: o } = e;
|
|
656
|
-
return { set(
|
|
657
|
-
const
|
|
658
|
-
t.set.call(this,
|
|
659
|
-
}, init(
|
|
660
|
-
return
|
|
629
|
+
return { set(h) {
|
|
630
|
+
const a = t.get.call(this);
|
|
631
|
+
t.set.call(this, h), this.requestUpdate(o, a, r);
|
|
632
|
+
}, init(h) {
|
|
633
|
+
return h !== void 0 && this.C(o, void 0, r, h), h;
|
|
661
634
|
} };
|
|
662
635
|
}
|
|
663
636
|
if (s === "setter") {
|
|
664
637
|
const { name: o } = e;
|
|
665
|
-
return function(
|
|
666
|
-
const
|
|
667
|
-
t.call(this,
|
|
638
|
+
return function(h) {
|
|
639
|
+
const a = this[o];
|
|
640
|
+
t.call(this, h), this.requestUpdate(o, a, r);
|
|
668
641
|
};
|
|
669
642
|
}
|
|
670
643
|
throw Error("Unsupported decorator location: " + s);
|
|
671
644
|
};
|
|
672
645
|
function ft(r) {
|
|
673
|
-
return (t, e) => typeof e == "object" ?
|
|
646
|
+
return (t, e) => typeof e == "object" ? Bt(r, t, e) : ((s, i, n) => {
|
|
674
647
|
const o = i.hasOwnProperty(n);
|
|
675
648
|
return i.constructor.createProperty(n, s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
|
|
676
649
|
})(r, t, e);
|
|
677
650
|
}
|
|
678
|
-
|
|
651
|
+
function Lt(r, t) {
|
|
652
|
+
const e = document.createElement("template");
|
|
653
|
+
return e.innerHTML = r.trim(), t.append(e.content.cloneNode(!0)), new Proxy({}, {
|
|
654
|
+
get(s, i) {
|
|
655
|
+
if (i === "fragment")
|
|
656
|
+
return t;
|
|
657
|
+
if (typeof i == "string") {
|
|
658
|
+
const n = t.getElementById(i);
|
|
659
|
+
if (!n)
|
|
660
|
+
throw new Error(`❌ Unknown id '${i}'.`);
|
|
661
|
+
return n;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
const G = class G extends y {
|
|
667
|
+
constructor(t) {
|
|
668
|
+
super();
|
|
669
|
+
const e = this.createRenderRoot();
|
|
670
|
+
this.$ = Lt(t, e);
|
|
671
|
+
}
|
|
672
|
+
connectedCallback() {
|
|
673
|
+
super.connectedCallback();
|
|
674
|
+
let t = this.css;
|
|
675
|
+
Array.isArray(t) || (t = [t]);
|
|
676
|
+
const e = t.map((s) => s instanceof ct ? s.styleSheet : F(s).styleSheet);
|
|
677
|
+
this.shadowRoot.adoptedStyleSheets = e;
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
G.DEFINITION = {
|
|
681
|
+
classes: [],
|
|
682
|
+
attributes: {}
|
|
683
|
+
};
|
|
684
|
+
let at = G;
|
|
685
|
+
const jt = ":host{--container-width: var(--nt-container-width, 100%);--gap: var(--nt-base-gap);--x-direction: row;--y-direction: column}:host(.desktop-reverse){--x-direction: row-reverse}:host(.mobile-reverse){--y-direction: column-reverse}:host(.alternate:nth-child(odd)) .row div[part=main]{order:2}:host(.alternate:nth-child(odd)) .row div[part=aside]{order:1}#row{width:var(--container-width);display:flex;gap:var(--gap)}#row.row{flex-direction:var(--x-direction)}#row.row div[part=main]{width:calc(100% * var(--cols, 1) / 12)}#row.row div[part=aside]{width:calc(100% * (12 - var(--cols, 1)) / 12)}#row.col{flex-direction:var(--y-direction)}#row.col slot{width:100%}div[part]{display:flex;flex-grow:1}div[part]:has(slot.is-empty){display:none}section{width:var(--container-width);margin:0 auto}";
|
|
679
686
|
var It = Object.defineProperty, zt = Object.getOwnPropertyDescriptor, Z = (r, t, e, s) => {
|
|
680
687
|
for (var i = s > 1 ? void 0 : s ? zt(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
|
681
688
|
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
@@ -716,7 +723,7 @@ let H = class extends U {
|
|
|
716
723
|
`;
|
|
717
724
|
}
|
|
718
725
|
};
|
|
719
|
-
H.styles = [F(
|
|
726
|
+
H.styles = [F(jt)];
|
|
720
727
|
Z([
|
|
721
728
|
ft({ type: String, reflect: !0 })
|
|
722
729
|
], H.prototype, "breakAt", 2);
|
|
@@ -724,8 +731,10 @@ Z([
|
|
|
724
731
|
ft({ type: Number, reflect: !0 })
|
|
725
732
|
], H.prototype, "cols", 2);
|
|
726
733
|
H = Z([
|
|
727
|
-
|
|
734
|
+
Wt("ntl-2col")
|
|
728
735
|
], H);
|
|
736
|
+
const Ft = 1;
|
|
729
737
|
export {
|
|
730
|
-
H as Ntl2Col
|
|
738
|
+
H as Ntl2Col,
|
|
739
|
+
Ft as tempChangeForForcingRelease
|
|
731
740
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
"name": "@nextrap/ntl-2col",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"main": "./index.js",
|
|
5
|
+
"dependencies": {},
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "./index.d.ts"
|
|
8
8
|
}
|