@trunkjs/content-pane 1.0.13 → 1.0.15
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 +8 -0
- package/README_2.md +15 -0
- package/components/tj-content-pane/TjContentPane.d.ts +3 -3
- package/index.js +95 -96
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 1.0.15 (2025-12-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.14 (2025-12-11)
|
|
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.13 (2025-12-11)
|
|
2
10
|
|
|
3
11
|
### 🩹 Fixes
|
package/README_2.md
CHANGED
|
@@ -67,6 +67,21 @@ Beispiel:
|
|
|
67
67
|
```
|
|
68
68
|
Dies würde das Element in den I-Layer 3 verschieben.
|
|
69
69
|
|
|
70
|
+
### Attribute für section-Elemente setzen
|
|
71
|
+
|
|
72
|
+
Über das `section-<attribut>` können Attribute für das generierte section-Element gesetzt werden:
|
|
73
|
+
|
|
74
|
+
```markdown
|
|
75
|
+
## Header 2
|
|
76
|
+
{: section-id="meine-id" section-style="--cols: 6" section-class="highlight"}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Klassen-Shortcut für section-Elemente
|
|
80
|
+
|
|
81
|
+
Alle Klassen des Elements, die mit `section-` beginnen, werden auf das generierte section-Element übertragen.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
70
85
|
### Das HR-Element
|
|
71
86
|
|
|
72
87
|
Standardmäßig wird ein `<hr>` nicht behandelt, außer es hat ein layout-Attribut.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ReactiveElement } from 'lit';
|
|
2
2
|
declare const ContentAreaElement2_base: (abstract new (...args: any[]) => {
|
|
3
|
-
"__#
|
|
4
|
-
"__#
|
|
3
|
+
"__#3414@#debugCached": boolean | null;
|
|
4
|
+
"__#3414@#myElementId": number;
|
|
5
5
|
invalidateDebugCache(): void;
|
|
6
|
-
"__#
|
|
6
|
+
"__#3414@#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,33 +1,33 @@
|
|
|
1
|
-
import { create_element as V, LoggingMixin as
|
|
2
|
-
import { html as
|
|
1
|
+
import { create_element as V, LoggingMixin as at, Stopwatch as st, waitForDomContentLoaded as ct } from "@trunkjs/browser-utils";
|
|
2
|
+
import { html as lt, unsafeCSS as dt, LitElement as ut, ReactiveElement as ht } from "lit";
|
|
3
3
|
import { customElement as J, property as K } from "lit/decorators.js";
|
|
4
|
-
const
|
|
5
|
-
var
|
|
6
|
-
throw TypeError(
|
|
7
|
-
},
|
|
8
|
-
for (var i = 0, a = e
|
|
4
|
+
const pt = ":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 ft = Object.create, P = Object.defineProperty, _t = Object.getOwnPropertyDescriptor, U = (t, e) => (e = Symbol[t]) ? e : Symbol.for("Symbol." + t), C = (t) => {
|
|
6
|
+
throw TypeError(t);
|
|
7
|
+
}, vt = (t, e, r) => e in t ? P(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, D = (t, e) => P(t, "name", { value: e, configurable: !0 }), gt = (t) => [, , , ft((t == null ? void 0 : t[U("metadata")]) ?? null)], X = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], k = (t) => t !== void 0 && typeof t != "function" ? C("Function expected") : t, yt = (t, e, r, o, i) => ({ kind: X[t], name: e, metadata: o, addInitializer: (a) => r._ ? C("Already initialized") : i.push(k(a || null)) }), mt = (t, e) => vt(e, U("metadata"), t[3]), N = (t, e, r, o) => {
|
|
8
|
+
for (var i = 0, a = t[e >> 1], c = a && a.length; i < c; i++) e & 1 ? a[i].call(r) : o = a[i].call(r, o);
|
|
9
9
|
return o;
|
|
10
|
-
}, Y = (
|
|
11
|
-
var c, s, p, l, d, n =
|
|
10
|
+
}, Y = (t, e, r, o, i, a) => {
|
|
11
|
+
var c, s, p, l, d, n = e & 7, _ = !!(e & 8), u = !!(e & 16), v = n > 3 ? t.length + 1 : n ? _ ? 1 : 2 : 0, x = X[n + 5], E = n > 3 && (t[v - 1] = []), L = t[v] || (t[v] = []), f = n && (!u && !_ && (i = i.prototype), n < 5 && (n > 3 || !u) && _t(n < 4 ? i : { get [r]() {
|
|
12
12
|
return B(this, a);
|
|
13
13
|
}, set [r](h) {
|
|
14
14
|
return H(this, a, h);
|
|
15
15
|
} }, r));
|
|
16
16
|
n ? u && n < 4 && D(a, (n > 2 ? "set " : n > 1 ? "get " : "") + r) : D(i, r);
|
|
17
17
|
for (var g = o.length - 1; g >= 0; g--)
|
|
18
|
-
l =
|
|
19
|
-
return n ||
|
|
20
|
-
}, z = (
|
|
21
|
-
|
|
22
|
-
class w extends (T =
|
|
23
|
-
constructor(
|
|
24
|
-
super(), this.originalCode = void 0,
|
|
18
|
+
l = yt(n, r, p = {}, t[3], L), n && (l.static = _, l.private = u, d = l.access = { has: u ? (h) => wt(i, h) : (h) => r in h }, n ^ 3 && (d.get = u ? (h) => (n ^ 1 ? B : Ct)(h, i, n ^ 4 ? a : f.get) : (h) => h[r]), n > 2 && (d.set = u ? (h, y) => H(h, i, y, n ^ 4 ? a : f.set) : (h, y) => h[r] = y)), s = (0, o[g])(n ? n < 4 ? u ? a : f[x] : n > 4 ? void 0 : { get: f.get, set: f.set } : i, l), p._ = 1, n ^ 4 || s === void 0 ? k(s) && (n > 4 ? E.unshift(s) : n ? u ? a = s : f[x] = s : i = s) : typeof s != "object" || s === null ? C("Object expected") : (k(c = s.get) && (f.get = c), k(c = s.set) && (f.set = c), k(c = s.init) && E.unshift(c));
|
|
19
|
+
return n || mt(t, i), f && P(i, r, f), u ? n ^ 4 ? a : f : i;
|
|
20
|
+
}, z = (t, e, r) => e.has(t) || C("Cannot " + r), wt = (t, e) => Object(e) !== e ? C('Cannot use the "in" operator on this value') : t.has(e), B = (t, e, r) => (z(t, e, "read from private field"), r ? r.call(t) : e.get(t)), At = (t, e, r) => e.has(t) ? C("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), H = (t, e, r, o) => (z(t, e, "write to private field"), o ? o.call(t, r) : e.set(t, r), r), Ct = (t, e, r) => (z(t, e, "access private method"), r), Z, T, tt, m, q;
|
|
21
|
+
tt = [J("tj-error-element")];
|
|
22
|
+
class w extends (T = ut, Z = [K({ type: String, reflect: !0 })], T) {
|
|
23
|
+
constructor(e = "An error occurred", r) {
|
|
24
|
+
super(), this.originalCode = void 0, At(this, q, N(m, 8, this)), N(m, 11, this), this.message = e, this.originalCode = r;
|
|
25
25
|
}
|
|
26
26
|
static get is() {
|
|
27
27
|
return "tj-error-element";
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return
|
|
30
|
+
return lt`
|
|
31
31
|
<div id="error-fixed-indicator" @click=${() => this.scrollIntoView({ behavior: "smooth" })}>
|
|
32
32
|
Err: ${this.message}
|
|
33
33
|
</div>
|
|
@@ -43,18 +43,18 @@ class w extends (T = ue, Z = [K({ type: String, reflect: !0 })], T) {
|
|
|
43
43
|
`;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
m =
|
|
46
|
+
m = gt(T);
|
|
47
47
|
q = /* @__PURE__ */ new WeakMap();
|
|
48
48
|
Y(m, 4, "message", Z, w, q);
|
|
49
|
-
w = Y(m, 0, "TjErrorElement",
|
|
50
|
-
w.styles = [
|
|
51
|
-
|
|
52
|
-
function
|
|
49
|
+
w = Y(m, 0, "TjErrorElement", tt, w);
|
|
50
|
+
w.styles = [dt(pt)];
|
|
51
|
+
N(m, 1, w);
|
|
52
|
+
function bt(t, { allowAttributes: e = !0, ignoreGaps: r = !0 } = {}) {
|
|
53
53
|
let o = "div", i = null, a = [], c = [], s = {};
|
|
54
54
|
const p = /(^[a-z][\w-]*)|#[\w-]+|\.[\w:-]+|\[\s*([\w-]+)(?:\s*=\s*(['"]?)(.*?)\3)?\s*\]/gi;
|
|
55
55
|
let l = 0;
|
|
56
56
|
for (; ; ) {
|
|
57
|
-
const d = p.exec(
|
|
57
|
+
const d = p.exec(t);
|
|
58
58
|
if (!d || d.index !== l) {
|
|
59
59
|
if (!r && d && d.index > l)
|
|
60
60
|
break;
|
|
@@ -64,20 +64,20 @@ function be(e, { allowAttributes: t = !0, ignoreGaps: r = !0 } = {}) {
|
|
|
64
64
|
if (n[0] === "#") i = n.slice(1);
|
|
65
65
|
else if (n[0] === ".") a.push(n.slice(1));
|
|
66
66
|
else if (n[0] === "[") {
|
|
67
|
-
if (!
|
|
67
|
+
if (!e) throw new Error(`Attributes not allowed: '${n}'`);
|
|
68
68
|
const _ = d[2], u = d[4] || void 0;
|
|
69
69
|
c.push({ name: _, value: u }), s[_] = u;
|
|
70
70
|
} else o = n;
|
|
71
71
|
l += n.length;
|
|
72
72
|
}
|
|
73
|
-
return { tag: o, id: i, classes: a, attrs: c, attrsMap: s, length: l, rest:
|
|
73
|
+
return { tag: o, id: i, classes: a, attrs: c, attrsMap: s, length: l, rest: t.slice(l) };
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return typeof
|
|
75
|
+
function xt(t) {
|
|
76
|
+
return typeof t.beforeLayoutCallback == "function";
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Et(t, e, r) {
|
|
79
79
|
var n, _;
|
|
80
|
-
const o = /^(\+|-|)([0-9]+\.?[0-9]*);?/, i = r.replace(o, ""), a =
|
|
80
|
+
const o = /^(\+|-|)([0-9]+\.?[0-9]*);?/, i = r.replace(o, ""), a = bt(i), s = { ...Array.from(t.attributes).reduce(
|
|
81
81
|
(u, v) => (u[v.name] = v.value, u),
|
|
82
82
|
{}
|
|
83
83
|
), ...a.attrsMap };
|
|
@@ -85,36 +85,36 @@ function Ee(e, t, r) {
|
|
|
85
85
|
const p = a.tag || "div";
|
|
86
86
|
let l = !1, d = V(p, { ...s, layoutOrig: r });
|
|
87
87
|
if (p.includes("-") && !customElements.get(p))
|
|
88
|
-
console.warn(`Custom element <${p}> is not registered.`), d = new w(`Custom element <${p}> is not registered.`,
|
|
88
|
+
console.warn(`Custom element <${p}> is not registered.`), d = new w(`Custom element <${p}> is not registered.`, t.outerHTML), t.replaceWith(d), d.append(t), l = !0;
|
|
89
89
|
else {
|
|
90
|
-
const u = Array.from(
|
|
91
|
-
|
|
90
|
+
const u = Array.from(t.children);
|
|
91
|
+
xt(d) && (l = d.beforeLayoutCallback(t, d, u) === !1), d.__ORIG_ELEMENT__ = t, d.append(...Array.from(t.children)), t.replaceWith(d);
|
|
92
92
|
}
|
|
93
93
|
return {
|
|
94
94
|
replacementElement: d,
|
|
95
95
|
skipChildren: l
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
function $(
|
|
99
|
-
const { recursive: r = !0 } =
|
|
98
|
+
function $(t, e = {}) {
|
|
99
|
+
const { recursive: r = !0 } = e;
|
|
100
100
|
let o = [];
|
|
101
|
-
if (Array.isArray(
|
|
102
|
-
return
|
|
103
|
-
if (!(
|
|
101
|
+
if (Array.isArray(t))
|
|
102
|
+
return t.forEach((s) => o.push(...$(s, e))), o;
|
|
103
|
+
if (!(t instanceof HTMLElement))
|
|
104
104
|
return [];
|
|
105
|
-
const i =
|
|
106
|
-
let a = !1, c =
|
|
107
|
-
return i && ({ replacementElement: c, skipChildren: a } =
|
|
105
|
+
const i = t.getAttribute("layout");
|
|
106
|
+
let a = !1, c = t;
|
|
107
|
+
return i && ({ replacementElement: c, skipChildren: a } = Et(t, e, i)), r && !a && Array.from(c.children).forEach((p) => o.push(...$(p, e))), o;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
109
|
+
function Rt(t) {
|
|
110
|
+
return t && typeof t == "object" && "__I__" in t && typeof t.__I__ == "object" && "i" in t.__I__;
|
|
111
111
|
}
|
|
112
|
-
class
|
|
113
|
-
constructor(
|
|
114
|
-
this.debug = r, this.currentContainerNode = null, this.containerPath = [], this.containerIndex = [0], this.lastFixedI = 20, this.currentContainerNode = this.rootNode =
|
|
112
|
+
class kt {
|
|
113
|
+
constructor(e, r = !1) {
|
|
114
|
+
this.debug = r, this.currentContainerNode = null, this.containerPath = [], this.containerIndex = [0], this.lastFixedI = 20, this.currentContainerNode = this.rootNode = e, this.containerPath.push(this.rootNode);
|
|
115
115
|
}
|
|
116
|
-
getI(
|
|
117
|
-
const r =
|
|
116
|
+
getI(e) {
|
|
117
|
+
const r = e.tagName, o = e.getAttribute("layout"), i = { i: -99, variant: "new", tag: "hr", hi: null };
|
|
118
118
|
if (o) {
|
|
119
119
|
const a = /^(\+|-|)([0-9]\.?[0-9]?|)(;|$)/, c = o.match(a);
|
|
120
120
|
c && (i.variant = c[1] === "+" ? "append" : c[1] === "-" ? "skip" : "new", c[2] !== "" && (i.i = parseFloat(c[2]) * 10));
|
|
@@ -125,36 +125,35 @@ class ke {
|
|
|
125
125
|
}
|
|
126
126
|
return i.i === -99 && r === "HR" && o !== null ? (i.i = this.lastFixedI + 5, i) : null;
|
|
127
127
|
}
|
|
128
|
-
getAttributeRecords(
|
|
128
|
+
getAttributeRecords(e, r = !1) {
|
|
129
129
|
const o = {};
|
|
130
|
-
for (const i of
|
|
131
|
-
i.name.startsWith("section-") ? o[i.name.replace(/^section-/, "")] = i.value : i.name.startsWith("layout")
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
return o;
|
|
130
|
+
for (const i of Array.from(e.attributes))
|
|
131
|
+
i.name.startsWith("section-") ? o[i.name.replace(/^section-/, "")] = i.value : (i.name.startsWith("layout") || r) && (o[i.name] = i.value, e.removeAttribute(i.name));
|
|
132
|
+
return r || e.classList.forEach((i) => {
|
|
133
|
+
i.startsWith("section-") && (o.class = (o.class ? o.class + " " : "") + i.replace(/^section-/, ""), e.classList.remove(i));
|
|
134
|
+
}), o;
|
|
136
135
|
}
|
|
137
|
-
createNewContainerNode(
|
|
138
|
-
const o = this.getAttributeRecords(
|
|
136
|
+
createNewContainerNode(e, r) {
|
|
137
|
+
const o = this.getAttributeRecords(e, e.tagName === "HR"), i = V("section", o);
|
|
139
138
|
return i.__IT = r, i;
|
|
140
139
|
}
|
|
141
|
-
arrangeSingleNode(
|
|
140
|
+
arrangeSingleNode(e, r) {
|
|
142
141
|
r.i;
|
|
143
142
|
let o = 0;
|
|
144
143
|
for (o = 0; o < this.containerIndex.length && !(this.containerIndex[o] >= r.i); o++)
|
|
145
144
|
;
|
|
146
145
|
let i = null;
|
|
147
|
-
r.variant === "append" ? i = this.containerPath[o] : i = this.createNewContainerNode(
|
|
146
|
+
r.variant === "append" ? i = this.containerPath[o] : i = this.createNewContainerNode(e, r);
|
|
148
147
|
const a = this.containerPath[o - 1];
|
|
149
|
-
this.containerPath.length = o, this.containerIndex.length = o,
|
|
148
|
+
this.containerPath.length = o, this.containerIndex.length = o, e.tagName === "HR" && (e.setAttribute("aria-hidden", "true"), e.setAttribute("hidden", "hidden")), i.appendChild(e), a.appendChild(i), this.containerPath.push(i), this.containerIndex.push(r.i), this.currentContainerNode = i;
|
|
150
149
|
}
|
|
151
|
-
appendToCurrentContainer(
|
|
150
|
+
appendToCurrentContainer(e) {
|
|
152
151
|
if (this.currentContainerNode === null)
|
|
153
152
|
throw new Error("No current container node set");
|
|
154
|
-
this.currentContainerNode.appendChild(
|
|
153
|
+
this.currentContainerNode.appendChild(e);
|
|
155
154
|
}
|
|
156
|
-
arrange(
|
|
157
|
-
for (let r of
|
|
155
|
+
arrange(e) {
|
|
156
|
+
for (let r of e) {
|
|
158
157
|
if (r.nodeType !== Node.ELEMENT_NODE) {
|
|
159
158
|
this.appendToCurrentContainer(r);
|
|
160
159
|
continue;
|
|
@@ -168,26 +167,26 @@ class ke {
|
|
|
168
167
|
}
|
|
169
168
|
}
|
|
170
169
|
}
|
|
171
|
-
var
|
|
172
|
-
throw TypeError(
|
|
173
|
-
},
|
|
174
|
-
for (var i = 0, a = e
|
|
170
|
+
var St = Object.create, W = Object.defineProperty, $t = Object.getOwnPropertyDescriptor, et = (t, e) => (e = Symbol[t]) ? e : Symbol.for("Symbol." + t), b = (t) => {
|
|
171
|
+
throw TypeError(t);
|
|
172
|
+
}, It = (t, e, r) => e in t ? W(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, G = (t, e) => W(t, "name", { value: e, configurable: !0 }), Lt = (t) => [, , , St((t == null ? void 0 : t[et("metadata")]) ?? null)], rt = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], S = (t) => t !== void 0 && typeof t != "function" ? b("Function expected") : t, Nt = (t, e, r, o, i) => ({ kind: rt[t], name: e, metadata: o, addInitializer: (a) => r._ ? b("Already initialized") : i.push(S(a || null)) }), Tt = (t, e) => It(e, et("metadata"), t[3]), M = (t, e, r, o) => {
|
|
173
|
+
for (var i = 0, a = t[e >> 1], c = a && a.length; i < c; i++) e & 1 ? a[i].call(r) : o = a[i].call(r, o);
|
|
175
174
|
return o;
|
|
176
|
-
},
|
|
177
|
-
var c, s, p, l, d, n =
|
|
175
|
+
}, it = (t, e, r, o, i, a) => {
|
|
176
|
+
var c, s, p, l, d, n = e & 7, _ = !!(e & 8), u = !!(e & 16), v = n > 3 ? t.length + 1 : n ? _ ? 1 : 2 : 0, x = rt[n + 5], E = n > 3 && (t[v - 1] = []), L = t[v] || (t[v] = []), f = n && (!u && !_ && (i = i.prototype), n < 5 && (n > 3 || !u) && $t(n < 4 ? i : { get [r]() {
|
|
178
177
|
return j(this, a);
|
|
179
178
|
}, set [r](h) {
|
|
180
179
|
return Q(this, a, h);
|
|
181
180
|
} }, r));
|
|
182
181
|
n ? u && n < 4 && G(a, (n > 2 ? "set " : n > 1 ? "get " : "") + r) : G(i, r);
|
|
183
182
|
for (var g = o.length - 1; g >= 0; g--)
|
|
184
|
-
l =
|
|
185
|
-
return n ||
|
|
186
|
-
}, F = (
|
|
187
|
-
|
|
188
|
-
class I extends (O =
|
|
183
|
+
l = Nt(n, r, p = {}, t[3], L), n && (l.static = _, l.private = u, d = l.access = { has: u ? (h) => Mt(i, h) : (h) => r in h }, n ^ 3 && (d.get = u ? (h) => (n ^ 1 ? j : Pt)(h, i, n ^ 4 ? a : f.get) : (h) => h[r]), n > 2 && (d.set = u ? (h, y) => Q(h, i, y, n ^ 4 ? a : f.set) : (h, y) => h[r] = y)), s = (0, o[g])(n ? n < 4 ? u ? a : f[x] : n > 4 ? void 0 : { get: f.get, set: f.set } : i, l), p._ = 1, n ^ 4 || s === void 0 ? S(s) && (n > 4 ? E.unshift(s) : n ? u ? a = s : f[x] = s : i = s) : typeof s != "object" || s === null ? b("Object expected") : (S(c = s.get) && (f.get = c), S(c = s.set) && (f.set = c), S(c = s.init) && E.unshift(c));
|
|
184
|
+
return n || Tt(t, i), f && W(i, r, f), u ? n ^ 4 ? a : f : i;
|
|
185
|
+
}, F = (t, e, r) => e.has(t) || b("Cannot " + r), Mt = (t, e) => Object(e) !== e ? b('Cannot use the "in" operator on this value') : t.has(e), j = (t, e, r) => (F(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Ot = (t, e, r) => e.has(t) ? b("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), Q = (t, e, r, o) => (F(t, e, "write to private field"), o ? o.call(t, r) : e.set(t, r), r), Pt = (t, e, r) => (F(t, e, "access private method"), r), nt, O, ot, A, R;
|
|
186
|
+
ot = [J("tj-content-pane")];
|
|
187
|
+
class I extends (O = at(ht), nt = [K({ type: Boolean, reflect: !0, attribute: "skip-layout" })], O) {
|
|
189
188
|
constructor() {
|
|
190
|
-
super(),
|
|
189
|
+
super(), Ot(this, R, M(A, 8, this, !1)), M(A, 11, this);
|
|
191
190
|
}
|
|
192
191
|
static get is() {
|
|
193
192
|
return "tj-content-pane";
|
|
@@ -196,28 +195,28 @@ class I extends (O = ae(he), ne = [K({ type: Boolean, reflect: !0, attribute: "s
|
|
|
196
195
|
return this;
|
|
197
196
|
}
|
|
198
197
|
arrange() {
|
|
199
|
-
const
|
|
198
|
+
const e = new st("SectionTreeBuilder");
|
|
200
199
|
this.log("arrange() called");
|
|
201
|
-
const r = new
|
|
200
|
+
const r = new kt(this), o = Array.from(this.children);
|
|
202
201
|
if (r.arrange(o), this.skipLayout) {
|
|
203
202
|
this.warn("Skipping layout as per skipLayout property.");
|
|
204
203
|
return;
|
|
205
204
|
}
|
|
206
|
-
$(Array.from(this.children), { recursive: !0 }),
|
|
205
|
+
$(Array.from(this.children), { recursive: !0 }), e.lap("after arrange");
|
|
207
206
|
}
|
|
208
207
|
async connectedCallback() {
|
|
209
|
-
await
|
|
208
|
+
await ct(), super.connectedCallback(), this.arrange();
|
|
210
209
|
}
|
|
211
210
|
}
|
|
212
|
-
A =
|
|
211
|
+
A = Lt(O);
|
|
213
212
|
R = /* @__PURE__ */ new WeakMap();
|
|
214
|
-
|
|
215
|
-
I =
|
|
213
|
+
it(A, 4, "skipLayout", nt, I, R);
|
|
214
|
+
I = it(A, 0, "ContentAreaElement2", ot, I);
|
|
216
215
|
M(A, 1, I);
|
|
217
|
-
function
|
|
218
|
-
const o = [], i =
|
|
216
|
+
function Dt(t, e, r) {
|
|
217
|
+
const o = [], i = e.split("|");
|
|
219
218
|
for (const a of i) {
|
|
220
|
-
const c =
|
|
219
|
+
const c = t.querySelectorAll(a.trim());
|
|
221
220
|
if (c.length > 0)
|
|
222
221
|
for (const s of c) {
|
|
223
222
|
o.push(s);
|
|
@@ -227,17 +226,17 @@ function De(e, t, r) {
|
|
|
227
226
|
}
|
|
228
227
|
return o;
|
|
229
228
|
}
|
|
230
|
-
function
|
|
231
|
-
const r =
|
|
229
|
+
function zt(t, e) {
|
|
230
|
+
const r = t.split("|");
|
|
232
231
|
for (const o of r) {
|
|
233
|
-
const i =
|
|
232
|
+
const i = e.querySelectorAll(o.trim());
|
|
234
233
|
if (i.length > 0)
|
|
235
234
|
return Array.from(i);
|
|
236
235
|
}
|
|
237
236
|
return [];
|
|
238
237
|
}
|
|
239
|
-
function
|
|
240
|
-
class
|
|
238
|
+
function Bt(t) {
|
|
239
|
+
class e extends t {
|
|
241
240
|
beforeLayoutCallback(o, i, a) {
|
|
242
241
|
return !1;
|
|
243
242
|
}
|
|
@@ -249,7 +248,7 @@ function Be(e) {
|
|
|
249
248
|
if (!c) continue;
|
|
250
249
|
let s = [];
|
|
251
250
|
try {
|
|
252
|
-
s =
|
|
251
|
+
s = zt(c, this);
|
|
253
252
|
} catch (p) {
|
|
254
253
|
throw this.error(`"${p}" in slot`, a), p;
|
|
255
254
|
}
|
|
@@ -269,13 +268,13 @@ function Be(e) {
|
|
|
269
268
|
$(Array.from(this.children), { recursive: !0 });
|
|
270
269
|
}
|
|
271
270
|
}
|
|
272
|
-
return
|
|
271
|
+
return e;
|
|
273
272
|
}
|
|
274
273
|
export {
|
|
275
274
|
I as ContentAreaElement2,
|
|
276
|
-
|
|
277
|
-
|
|
275
|
+
kt as SectionTreeBuilder,
|
|
276
|
+
Bt as SubLayoutApplyMixin,
|
|
278
277
|
$ as applyLayout,
|
|
279
|
-
|
|
280
|
-
|
|
278
|
+
Dt as attrAssign,
|
|
279
|
+
Rt as isSectionTreeElement
|
|
281
280
|
};
|