@trunkjs/content-pane 1.0.8 → 1.0.10
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
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 1.0.10 (2025-11-11)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for content-pane to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 1.0.9 (2025-11-10)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for content-pane to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
1
9
|
## 1.0.8 (2025-08-29)
|
|
2
10
|
|
|
3
11
|
This was a version bump only for content-pane to align it with other projects, there were no code changes.
|
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ tag, id or classes.
|
|
|
33
33
|
|
|
34
34
|
```markdown
|
|
35
35
|
## Header 2
|
|
36
|
-
{: layout="#id1.class1"}
|
|
36
|
+
{: layout="#id1.class1[slot=slotname]"}
|
|
37
37
|
|
|
38
38
|
This is content below the section element.
|
|
39
39
|
```
|
|
@@ -47,6 +47,25 @@ Will be transformed to:
|
|
|
47
47
|
</section>
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
+
## Layers (I)
|
|
51
|
+
|
|
52
|
+
Layers are defined using `layout="2.;"` syntax.
|
|
53
|
+
|
|
54
|
+
- Create new layer with: `layout="2.;"`
|
|
55
|
+
- Append to element of layer: `layout="+2.;"`
|
|
56
|
+
- Skip this element: `layout="-;"`
|
|
57
|
+
|
|
58
|
+
Example:
|
|
59
|
+
|
|
60
|
+
```markdown
|
|
61
|
+
## Header 2
|
|
62
|
+
{: layout="2;#id1.class1"}
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
{: layout="2.5;.class2"}
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
|
|
50
69
|
### Subelements
|
|
51
70
|
|
|
52
71
|
The strcutrure of the content is defined by the h2-h6 elements.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ReactiveElement } from 'lit';
|
|
2
2
|
declare const ContentAreaElement2_base: (abstract new (...args: any[]) => {
|
|
3
|
-
"__#
|
|
4
|
-
"__#
|
|
3
|
+
"__#3119@#debugCached": boolean | null;
|
|
4
|
+
"__#3119@#myElementId": number;
|
|
5
5
|
invalidateDebugCache(): void;
|
|
6
|
-
"__#
|
|
6
|
+
"__#3119@#myLoggerInstance": import('../../../../browser-utils/src/index.ts').Logger | null;
|
|
7
7
|
readonly _debug: boolean;
|
|
8
8
|
getLogger(instanceId?: string): import('../../../../browser-utils/src/index.ts').Logger;
|
|
9
9
|
log(...args: any[]): void;
|
package/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { create_element as F, LoggingMixin as U, Stopwatch as X, waitForDomContentLoaded as Y } from "@trunkjs/browser-utils";
|
|
2
2
|
import { html as Z, unsafeCSS as ee, LitElement as te, ReactiveElement as re } from "lit";
|
|
3
|
-
import { customElement as
|
|
4
|
-
const
|
|
5
|
-
var
|
|
3
|
+
import { customElement as W, property as ne } from "lit/decorators.js";
|
|
4
|
+
const ie = ":host{--border-color: red;--background-color: lightgray;font-family:Arial,sans-serif}#error-fixed-indicator{position:fixed;top:10px;right:10px;cursor:pointer;z-index:100000;padding:5px 10px;width:auto;max-width:90vw;min-width:100px;height:auto;box-shadow:0 4px 8px #0003;border:5px solid white;color:#fff;background-color:red;animation:blink 1s infinite;border-radius:15px;font-size:20px;font-weight:700;font-family:Arial,sans-serif}@keyframes blink{0%,to{background-color:#000}50%{background-color:red}}#error{background-color:var(--background-color);border:3px solid var(--border-color);padding:10px;margin:10px;border-radius:5px}h1{color:red;font-size:24px;margin:0}.error-details{font-size:14px;max-height:200px;overflow:auto}";
|
|
5
|
+
var oe = Object.create, I = Object.defineProperty, ae = Object.getOwnPropertyDescriptor, j = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), x = (e) => {
|
|
6
6
|
throw TypeError(e);
|
|
7
|
-
}, se = (e, t, n) => t in e ? I(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
8
|
-
for (var r = 0,
|
|
9
|
-
return
|
|
10
|
-
},
|
|
11
|
-
var s, c, h, l, d, a = t & 7,
|
|
12
|
-
return
|
|
7
|
+
}, se = (e, t, n) => t in e ? I(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, O = (e, t) => I(e, "name", { value: t, configurable: !0 }), ce = (e) => [, , , oe((e == null ? void 0 : e[j("metadata")]) ?? null)], D = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], y = (e) => e !== void 0 && typeof e != "function" ? x("Function expected") : e, le = (e, t, n, i, r) => ({ kind: D[e], name: t, metadata: i, addInitializer: (o) => n._ ? x("Already initialized") : r.push(y(o || null)) }), de = (e, t) => se(t, j("metadata"), e[3]), E = (e, t, n, i) => {
|
|
8
|
+
for (var r = 0, o = e[t >> 1], s = o && o.length; r < s; r++) t & 1 ? o[r].call(n) : i = o[r].call(n, i);
|
|
9
|
+
return i;
|
|
10
|
+
}, R = (e, t, n, i, r, o) => {
|
|
11
|
+
var s, c, h, l, d, a = t & 7, _ = !!(t & 8), u = !!(t & 16), v = a > 3 ? e.length + 1 : a ? _ ? 1 : 2 : 0, P = D[a + 5], L = a > 3 && (e[v - 1] = []), Q = e[v] || (e[v] = []), f = a && (!u && !_ && (r = r.prototype), a < 5 && (a > 3 || !u) && ae(a < 4 ? r : { get [n]() {
|
|
12
|
+
return z(this, o);
|
|
13
13
|
}, set [n](p) {
|
|
14
|
-
return M(this,
|
|
14
|
+
return M(this, o, p);
|
|
15
15
|
} }, n));
|
|
16
|
-
a ? u && a < 4 &&
|
|
17
|
-
for (var
|
|
18
|
-
l = le(a, n, h = {}, e[3], Q), a && (l.static =
|
|
19
|
-
return a || de(e, r),
|
|
20
|
-
}, S = (e, t, n) => t.has(e) ||
|
|
21
|
-
H = [
|
|
16
|
+
a ? u && a < 4 && O(o, (a > 2 ? "set " : a > 1 ? "get " : "") + n) : O(r, n);
|
|
17
|
+
for (var w = i.length - 1; w >= 0; w--)
|
|
18
|
+
l = le(a, n, h = {}, e[3], Q), a && (l.static = _, l.private = u, d = l.access = { has: u ? (p) => ue(r, p) : (p) => n in p }, a ^ 3 && (d.get = u ? (p) => (a ^ 1 ? z : pe)(p, r, a ^ 4 ? o : f.get) : (p) => p[n]), a > 2 && (d.set = u ? (p, C) => M(p, r, C, a ^ 4 ? o : f.set) : (p, C) => p[n] = C)), c = (0, i[w])(a ? a < 4 ? u ? o : f[P] : a > 4 ? void 0 : { get: f.get, set: f.set } : r, l), h._ = 1, a ^ 4 || c === void 0 ? y(c) && (a > 4 ? L.unshift(c) : a ? u ? o = c : f[P] = c : r = c) : typeof c != "object" || c === null ? x("Object expected") : (y(s = c.get) && (f.get = s), y(s = c.set) && (f.set = s), y(s = c.init) && L.unshift(s));
|
|
19
|
+
return a || de(e, r), f && I(r, n, f), u ? a ^ 4 ? o : f : r;
|
|
20
|
+
}, S = (e, t, n) => t.has(e) || x("Cannot " + n), ue = (e, t) => Object(t) !== t ? x('Cannot use the "in" operator on this value') : e.has(t), z = (e, t, n) => (S(e, t, "read from private field"), n ? n.call(e) : t.get(e)), he = (e, t, n) => t.has(e) ? x("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), M = (e, t, n, i) => (S(e, t, "write to private field"), i ? i.call(e, n) : t.set(e, n), n), pe = (e, t, n) => (S(e, t, "access private method"), n), B, b, H, g, $;
|
|
21
|
+
H = [W("tj-error-element")];
|
|
22
22
|
class m extends (b = te, B = [ne({ type: String, reflect: !0 })], b) {
|
|
23
23
|
constructor(t = "An error occurred", n) {
|
|
24
24
|
super(), this.originalCode = void 0, he(this, $, E(g, 8, this)), E(g, 11, this), this.message = t, this.originalCode = n;
|
|
@@ -45,12 +45,12 @@ class m extends (b = te, B = [ne({ type: String, reflect: !0 })], b) {
|
|
|
45
45
|
}
|
|
46
46
|
g = ce(b);
|
|
47
47
|
$ = /* @__PURE__ */ new WeakMap();
|
|
48
|
-
|
|
49
|
-
m =
|
|
50
|
-
m.styles = [ee(
|
|
48
|
+
R(g, 4, "message", B, m, $);
|
|
49
|
+
m = R(g, 0, "TjErrorElement", H, m);
|
|
50
|
+
m.styles = [ee(ie)];
|
|
51
51
|
E(g, 1, m);
|
|
52
52
|
function fe(e, { allowAttributes: t = !0, ignoreGaps: n = !0 } = {}) {
|
|
53
|
-
let
|
|
53
|
+
let i = "div", r = null, o = [], s = [], c = {};
|
|
54
54
|
const h = /(^[a-z][\w-]*)|#[\w-]+|\.[\w:-]+|\[\s*([\w-]+)(?:\s*=\s*(['"]?)(.*?)\3)?\s*\]/gi;
|
|
55
55
|
let l = 0;
|
|
56
56
|
for (; ; ) {
|
|
@@ -62,38 +62,30 @@ function fe(e, { allowAttributes: t = !0, ignoreGaps: n = !0 } = {}) {
|
|
|
62
62
|
}
|
|
63
63
|
const a = d[0];
|
|
64
64
|
if (a[0] === "#") r = a.slice(1);
|
|
65
|
-
else if (a[0] === ".")
|
|
65
|
+
else if (a[0] === ".") o.push(a.slice(1));
|
|
66
66
|
else if (a[0] === "[") {
|
|
67
67
|
if (!t) throw new Error(`Attributes not allowed: '${a}'`);
|
|
68
|
-
const
|
|
69
|
-
s.push({ name:
|
|
70
|
-
} else
|
|
68
|
+
const _ = d[2], u = d[4] || void 0;
|
|
69
|
+
s.push({ name: _, value: u }), c[_] = u;
|
|
70
|
+
} else i = a;
|
|
71
71
|
l += a.length;
|
|
72
72
|
}
|
|
73
|
-
return { tag:
|
|
73
|
+
return { tag: i, id: r, classes: o, attrs: s, attrsMap: c, length: l, rest: e.slice(l) };
|
|
74
74
|
}
|
|
75
75
|
function _e(e) {
|
|
76
76
|
return typeof e.beforeLayoutCallback == "function";
|
|
77
77
|
}
|
|
78
78
|
function ve(e, t, n) {
|
|
79
79
|
var d, a;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
const c = i.tag || "div";
|
|
80
|
+
const i = /^(\+|-|)([0-9]+\.?[0-9]*);?/, r = n.replace(i, ""), o = fe(r), s = o.attrsMap;
|
|
81
|
+
s.class = "", o.attrsMap.class && (s.class = o.attrsMap.class + " "), s.class += o.classes.join(" "), s.id = o.id ?? void 0, ((d = s.class) == null ? void 0 : d.trim()) === "" && delete s.class, ((a = s.id) == null ? void 0 : a.trim()) === "" && delete s.id;
|
|
82
|
+
const c = o.tag || "div";
|
|
84
83
|
let h = !1, l = F(c, { ...s, layoutOrig: n });
|
|
85
84
|
if (c.includes("-") && !customElements.get(c))
|
|
86
85
|
console.warn(`Custom element <${c}> is not registered.`), l = new m(`Custom element <${c}> is not registered.`, e.outerHTML), e.replaceWith(l), l.append(e), h = !0;
|
|
87
86
|
else {
|
|
88
|
-
const
|
|
89
|
-
_e(l) && (h = l.beforeLayoutCallback(e, l,
|
|
90
|
-
"Replacement element created:",
|
|
91
|
-
l,
|
|
92
|
-
"with children:",
|
|
93
|
-
f,
|
|
94
|
-
"skipChildren:",
|
|
95
|
-
h
|
|
96
|
-
), l.__ORIG_ELEMENT__ = e, l.append(...Array.from(e.children)), e.replaceWith(l);
|
|
87
|
+
const _ = Array.from(e.children);
|
|
88
|
+
_e(l) && (h = l.beforeLayoutCallback(e, l, _) === !1), l.__ORIG_ELEMENT__ = e, l.append(...Array.from(e.children)), e.replaceWith(l);
|
|
97
89
|
}
|
|
98
90
|
return {
|
|
99
91
|
replacementElement: l,
|
|
@@ -101,20 +93,15 @@ function ve(e, t, n) {
|
|
|
101
93
|
};
|
|
102
94
|
}
|
|
103
95
|
function k(e, t = {}) {
|
|
104
|
-
console.log("applyLayout called with element:", e, "and options:", t);
|
|
105
96
|
const { recursive: n = !0 } = t;
|
|
106
|
-
let
|
|
97
|
+
let i = [];
|
|
107
98
|
if (Array.isArray(e))
|
|
108
|
-
return e.forEach((c) =>
|
|
99
|
+
return e.forEach((c) => i.push(...k(c, t))), i;
|
|
109
100
|
if (!(e instanceof HTMLElement))
|
|
110
101
|
return [];
|
|
111
102
|
const r = e.getAttribute("layout");
|
|
112
|
-
let
|
|
113
|
-
|
|
114
|
-
const c = Array.from(s.children);
|
|
115
|
-
console.log("Applying layout to children:", c, "of element:", s), c.forEach((h) => o.push(...k(h, t)));
|
|
116
|
-
}
|
|
117
|
-
return o;
|
|
103
|
+
let o = !1, s = e;
|
|
104
|
+
return r && ({ replacementElement: s, skipChildren: o } = ve(e, t, r)), n && !o && Array.from(s.children).forEach((h) => i.push(...k(h, t))), i;
|
|
118
105
|
}
|
|
119
106
|
function Te(e) {
|
|
120
107
|
return e && typeof e == "object" && "__I__" in e && typeof e.__I__ == "object" && "i" in e.__I__;
|
|
@@ -124,39 +111,39 @@ class ge {
|
|
|
124
111
|
this.debug = n, this.currentContainerNode = null, this.containerPath = [], this.containerIndex = [0], this.lastFixedI = 20, this.currentContainerNode = this.rootNode = t, this.containerPath.push(this.rootNode);
|
|
125
112
|
}
|
|
126
113
|
getI(t) {
|
|
127
|
-
const n = t.tagName,
|
|
128
|
-
if (
|
|
129
|
-
const
|
|
114
|
+
const n = t.tagName, i = t.getAttribute("layout"), r = { i: -99, variant: "new", tag: "hr", hi: null };
|
|
115
|
+
if (i) {
|
|
116
|
+
const o = /^(\+|-|)([0-9]\.?[0-9]?|)(;|$)/, s = i.match(o);
|
|
130
117
|
s && (console.debug("Layout matches", s), r.variant = s[1] === "+" ? "append" : s[1] === "-" ? "skip" : "new", s[2] !== "" && (r.i = parseFloat(s[2]) * 10));
|
|
131
118
|
}
|
|
132
119
|
if (n.startsWith("H") && n.length === 2) {
|
|
133
|
-
let
|
|
134
|
-
return r.tag = "h", r.hi = parseInt(
|
|
120
|
+
let o = n.substring(1);
|
|
121
|
+
return r.tag = "h", r.hi = parseInt(o), o === "1" && (o = "2"), r.i === -99 && (r.i = parseInt(o) * 10, this.lastFixedI = r.i), r;
|
|
135
122
|
}
|
|
136
123
|
return r.i === -99 && n === "HR" ? (r.i = this.lastFixedI + 5, r) : null;
|
|
137
124
|
}
|
|
138
125
|
getAttributeRecords(t, n = !1) {
|
|
139
|
-
const
|
|
126
|
+
const i = {};
|
|
140
127
|
for (const r of t.attributes)
|
|
141
|
-
r.name.startsWith("section-") ?
|
|
128
|
+
r.name.startsWith("section-") ? i[r.name.replace(/^section-/, "")] = r.value : r.name.startsWith("layout") ? (i[r.name] = r.value, t.removeAttribute(r.name)) : n && (i[r.name] = r.value);
|
|
142
129
|
if (!n)
|
|
143
130
|
for (const r of Array.from(t.classList))
|
|
144
|
-
r.startsWith("section-") && (
|
|
145
|
-
return
|
|
131
|
+
r.startsWith("section-") && (i.class = (i.class || "") + " " + r.replace(/^section-/, ""), t.classList.remove(r));
|
|
132
|
+
return i;
|
|
146
133
|
}
|
|
147
134
|
createNewContainerNode(t, n) {
|
|
148
|
-
const
|
|
135
|
+
const i = this.getAttributeRecords(t, t.tagName === "HR"), r = F("section", i);
|
|
149
136
|
return r.__IT = n, r;
|
|
150
137
|
}
|
|
151
138
|
arrangeSingleNode(t, n) {
|
|
152
139
|
n.i;
|
|
153
|
-
let
|
|
154
|
-
for (
|
|
140
|
+
let i = 0;
|
|
141
|
+
for (i = 0; i < this.containerIndex.length && !(this.containerIndex[i] >= n.i); i++)
|
|
155
142
|
;
|
|
156
143
|
let r = null;
|
|
157
|
-
n.variant === "append" ? (console.log("Appending to container at index",
|
|
158
|
-
const
|
|
159
|
-
this.containerPath.length =
|
|
144
|
+
n.variant === "append" ? (console.log("Appending to container at index", i, "with i", n.i), r = this.containerPath[i]) : r = this.createNewContainerNode(t, n);
|
|
145
|
+
const o = this.containerPath[i - 1];
|
|
146
|
+
this.containerPath.length = i, this.containerIndex.length = i, r.appendChild(t), o.appendChild(r), this.containerPath.push(r), this.containerIndex.push(n.i), this.currentContainerNode = r;
|
|
160
147
|
}
|
|
161
148
|
appendToCurrentContainer(t) {
|
|
162
149
|
if (this.currentContainerNode === null)
|
|
@@ -169,28 +156,28 @@ class ge {
|
|
|
169
156
|
this.appendToCurrentContainer(n);
|
|
170
157
|
continue;
|
|
171
158
|
}
|
|
172
|
-
const
|
|
159
|
+
const i = n, r = this.getI(i);
|
|
173
160
|
if (!r || r.variant === "skip") {
|
|
174
161
|
this.appendToCurrentContainer(n);
|
|
175
162
|
continue;
|
|
176
163
|
}
|
|
177
|
-
this.arrangeSingleNode(
|
|
164
|
+
this.arrangeSingleNode(i, r);
|
|
178
165
|
}
|
|
179
166
|
}
|
|
180
167
|
}
|
|
181
|
-
var me = Object.create, N = Object.defineProperty,
|
|
168
|
+
var me = Object.create, N = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, q = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), G = (e) => {
|
|
182
169
|
throw TypeError(e);
|
|
183
|
-
},
|
|
184
|
-
for (var r = 0,
|
|
185
|
-
return
|
|
186
|
-
}, Ie = (e, t, n,
|
|
187
|
-
var s, c, h, l = t & 7, d = !1, a = 0,
|
|
188
|
-
|
|
189
|
-
for (var v =
|
|
190
|
-
h = be(l, n, c = {}, e[3],
|
|
191
|
-
return ke(e, r), u && N(r, n, u), d ? l ^ 4 ?
|
|
170
|
+
}, ye = (e, t, n) => t in e ? N(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, we = (e, t) => N(e, "name", { value: t, configurable: !0 }), Ce = (e) => [, , , me((e == null ? void 0 : e[q("metadata")]) ?? null)], Ee = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], V = (e) => e !== void 0 && typeof e != "function" ? G("Function expected") : e, be = (e, t, n, i, r) => ({ kind: Ee[e], name: t, metadata: i, addInitializer: (o) => n._ ? G("Already initialized") : r.push(V(o || null)) }), ke = (e, t) => ye(t, q("metadata"), e[3]), Ae = (e, t, n, i) => {
|
|
171
|
+
for (var r = 0, o = e[t >> 1], s = o && o.length; r < s; r++) o[r].call(n);
|
|
172
|
+
return i;
|
|
173
|
+
}, Ie = (e, t, n, i, r, o) => {
|
|
174
|
+
var s, c, h, l = t & 7, d = !1, a = 0, _ = e[a] || (e[a] = []), u = l && (r = r.prototype, l < 5 && (l > 3 || !d) && xe(r, n));
|
|
175
|
+
we(r, n);
|
|
176
|
+
for (var v = i.length - 1; v >= 0; v--)
|
|
177
|
+
h = be(l, n, c = {}, e[3], _), s = (0, i[v])(r, h), c._ = 1, V(s) && (r = s);
|
|
178
|
+
return ke(e, r), u && N(r, n, u), d ? l ^ 4 ? o : u : r;
|
|
192
179
|
}, J, T, K;
|
|
193
|
-
J = [
|
|
180
|
+
J = [W("tj-content-pane")];
|
|
194
181
|
class A extends (K = U(re)) {
|
|
195
182
|
static get is() {
|
|
196
183
|
return "tj-content-pane";
|
|
@@ -204,8 +191,8 @@ class A extends (K = U(re)) {
|
|
|
204
191
|
arrange() {
|
|
205
192
|
const t = new X("SectionTreeBuilder");
|
|
206
193
|
this.log("arrange() called");
|
|
207
|
-
const n = new ge(this),
|
|
208
|
-
n.arrange(
|
|
194
|
+
const n = new ge(this), i = Array.from(this.children);
|
|
195
|
+
n.arrange(i), k(Array.from(this.children), { recursive: !0 }), t.lap("after arrange");
|
|
209
196
|
}
|
|
210
197
|
async connectedCallback() {
|
|
211
198
|
await Y(), super.connectedCallback(), this.arrange();
|
|
@@ -214,23 +201,23 @@ class A extends (K = U(re)) {
|
|
|
214
201
|
T = Ce(K);
|
|
215
202
|
A = Ie(T, 0, "ContentAreaElement2", J, A);
|
|
216
203
|
Ae(T, 1, A);
|
|
217
|
-
function
|
|
218
|
-
const
|
|
219
|
-
for (const
|
|
220
|
-
const s = e.querySelectorAll(
|
|
204
|
+
function Pe(e, t, n) {
|
|
205
|
+
const i = [], r = t.split("|");
|
|
206
|
+
for (const o of r) {
|
|
207
|
+
const s = e.querySelectorAll(o.trim());
|
|
221
208
|
if (s.length > 0)
|
|
222
209
|
for (const c of s) {
|
|
223
|
-
|
|
210
|
+
i.push(c);
|
|
224
211
|
for (const [h, l] of Object.entries(n))
|
|
225
212
|
c.setAttribute(h, l);
|
|
226
213
|
}
|
|
227
214
|
}
|
|
228
|
-
return
|
|
215
|
+
return i;
|
|
229
216
|
}
|
|
230
217
|
export {
|
|
231
218
|
A as ContentAreaElement2,
|
|
232
219
|
ge as SectionTreeBuilder,
|
|
233
220
|
k as applyLayout,
|
|
234
|
-
|
|
221
|
+
Pe as attrAssign,
|
|
235
222
|
Te as isSectionTreeElement
|
|
236
223
|
};
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trunkjs/content-pane",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@trunkjs/browser-utils": "^1.0.14",
|
|
7
7
|
"lit": "^3.3.1"
|
|
8
8
|
},
|
|
9
|
+
"devDependencies": {
|
|
10
|
+
"@trunkjs/markdown-loader": "*"
|
|
11
|
+
},
|
|
9
12
|
"type": "module",
|
|
10
13
|
"types": "./index.d.ts",
|
|
11
14
|
"web-types": "./web-types.json"
|
|
File without changes
|