@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 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
- "__#3410@#debugCached": boolean | null;
4
- "__#3410@#myElementId": number;
3
+ "__#3414@#debugCached": boolean | null;
4
+ "__#3414@#myElementId": number;
5
5
  invalidateDebugCache(): void;
6
- "__#3410@#myLoggerInstance": import('../../../../browser-utils/src/index.ts').Logger | null;
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 ae, Stopwatch as se, waitForDomContentLoaded as ce } from "@trunkjs/browser-utils";
2
- import { html as le, unsafeCSS as de, LitElement as ue, ReactiveElement as he } from "lit";
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 pe = ":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 fe = Object.create, P = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, U = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), C = (e) => {
6
- throw TypeError(e);
7
- }, ve = (e, t, r) => t in e ? P(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, D = (e, t) => P(e, "name", { value: t, configurable: !0 }), ge = (e) => [, , , fe((e == null ? void 0 : e[U("metadata")]) ?? null)], X = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], k = (e) => e !== void 0 && typeof e != "function" ? C("Function expected") : e, ye = (e, t, r, o, i) => ({ kind: X[e], name: t, metadata: o, addInitializer: (a) => r._ ? C("Already initialized") : i.push(k(a || null)) }), me = (e, t) => ve(t, U("metadata"), e[3]), L = (e, t, r, o) => {
8
- for (var i = 0, a = e[t >> 1], c = a && a.length; i < c; i++) t & 1 ? a[i].call(r) : o = a[i].call(r, o);
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 = (e, t, r, o, i, a) => {
11
- var c, s, p, l, d, n = t & 7, _ = !!(t & 8), u = !!(t & 16), v = n > 3 ? e.length + 1 : n ? _ ? 1 : 2 : 0, x = X[n + 5], E = n > 3 && (e[v - 1] = []), N = e[v] || (e[v] = []), f = n && (!u && !_ && (i = i.prototype), n < 5 && (n > 3 || !u) && _e(n < 4 ? i : { get [r]() {
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 = ye(n, r, p = {}, e[3], N), n && (l.static = _, l.private = u, d = l.access = { has: u ? (h) => we(i, h) : (h) => r in h }, n ^ 3 && (d.get = u ? (h) => (n ^ 1 ? B : Ce)(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 || me(e, i), f && P(i, r, f), u ? n ^ 4 ? a : f : i;
20
- }, z = (e, t, r) => t.has(e) || C("Cannot " + r), we = (e, t) => Object(t) !== t ? C('Cannot use the "in" operator on this value') : e.has(t), B = (e, t, r) => (z(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Ae = (e, t, r) => t.has(e) ? C("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), H = (e, t, r, o) => (z(e, t, "write to private field"), o ? o.call(e, r) : t.set(e, r), r), Ce = (e, t, r) => (z(e, t, "access private method"), r), Z, T, ee, m, q;
21
- ee = [J("tj-error-element")];
22
- class w extends (T = ue, Z = [K({ type: String, reflect: !0 })], T) {
23
- constructor(t = "An error occurred", r) {
24
- super(), this.originalCode = void 0, Ae(this, q, L(m, 8, this)), L(m, 11, this), this.message = t, this.originalCode = r;
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 le`
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 = ge(T);
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", ee, w);
50
- w.styles = [de(pe)];
51
- L(m, 1, w);
52
- function be(e, { allowAttributes: t = !0, ignoreGaps: r = !0 } = {}) {
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(e);
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 (!t) throw new Error(`Attributes not allowed: '${n}'`);
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: e.slice(l) };
73
+ return { tag: o, id: i, classes: a, attrs: c, attrsMap: s, length: l, rest: t.slice(l) };
74
74
  }
75
- function xe(e) {
76
- return typeof e.beforeLayoutCallback == "function";
75
+ function xt(t) {
76
+ return typeof t.beforeLayoutCallback == "function";
77
77
  }
78
- function Ee(e, t, r) {
78
+ function Et(t, e, r) {
79
79
  var n, _;
80
- const o = /^(\+|-|)([0-9]+\.?[0-9]*);?/, i = r.replace(o, ""), a = be(i), s = { ...Array.from(e.attributes).reduce(
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.`, e.outerHTML), e.replaceWith(d), d.append(e), l = !0;
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(e.children);
91
- xe(d) && (l = d.beforeLayoutCallback(e, d, u) === !1), d.__ORIG_ELEMENT__ = e, d.append(...Array.from(e.children)), e.replaceWith(d);
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 $(e, t = {}) {
99
- const { recursive: r = !0 } = t;
98
+ function $(t, e = {}) {
99
+ const { recursive: r = !0 } = e;
100
100
  let o = [];
101
- if (Array.isArray(e))
102
- return e.forEach((s) => o.push(...$(s, t))), o;
103
- if (!(e instanceof HTMLElement))
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 = e.getAttribute("layout");
106
- let a = !1, c = e;
107
- return i && ({ replacementElement: c, skipChildren: a } = Ee(e, t, i)), r && !a && Array.from(c.children).forEach((p) => o.push(...$(p, t))), o;
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 Re(e) {
110
- return e && typeof e == "object" && "__I__" in e && typeof e.__I__ == "object" && "i" in e.__I__;
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 ke {
113
- constructor(t, r = !1) {
114
- this.debug = r, this.currentContainerNode = null, this.containerPath = [], this.containerIndex = [0], this.lastFixedI = 20, this.currentContainerNode = this.rootNode = t, this.containerPath.push(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(t) {
117
- const r = t.tagName, o = t.getAttribute("layout"), i = { i: -99, variant: "new", tag: "hr", hi: null };
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(t, r = !1) {
128
+ getAttributeRecords(e, r = !1) {
129
129
  const o = {};
130
- for (const i of t.attributes)
131
- i.name.startsWith("section-") ? o[i.name.replace(/^section-/, "")] = i.value : i.name.startsWith("layout") ? (o[i.name] = i.value, t.removeAttribute(i.name)) : r && (o[i.name] = i.value);
132
- if (!r)
133
- for (const i of Array.from(t.classList))
134
- i.startsWith("section-") && (o.class = (o.class || "") + " " + i.replace(/^section-/, ""), t.classList.remove(i));
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(t, r) {
138
- const o = this.getAttributeRecords(t, t.tagName === "HR"), i = V("section", o);
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(t, r) {
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(t, r);
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, t.tagName === "HR" && (t.setAttribute("aria-hidden", "true"), t.setAttribute("hidden", "hidden")), i.appendChild(t), a.appendChild(i), this.containerPath.push(i), this.containerIndex.push(r.i), this.currentContainerNode = i;
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(t) {
150
+ appendToCurrentContainer(e) {
152
151
  if (this.currentContainerNode === null)
153
152
  throw new Error("No current container node set");
154
- this.currentContainerNode.appendChild(t);
153
+ this.currentContainerNode.appendChild(e);
155
154
  }
156
- arrange(t) {
157
- for (let r of t) {
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 Se = Object.create, W = Object.defineProperty, $e = Object.getOwnPropertyDescriptor, te = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), b = (e) => {
172
- throw TypeError(e);
173
- }, Ie = (e, t, r) => t in e ? W(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, G = (e, t) => W(e, "name", { value: t, configurable: !0 }), Ne = (e) => [, , , Se((e == null ? void 0 : e[te("metadata")]) ?? null)], re = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], S = (e) => e !== void 0 && typeof e != "function" ? b("Function expected") : e, Le = (e, t, r, o, i) => ({ kind: re[e], name: t, metadata: o, addInitializer: (a) => r._ ? b("Already initialized") : i.push(S(a || null)) }), Te = (e, t) => Ie(t, te("metadata"), e[3]), M = (e, t, r, o) => {
174
- for (var i = 0, a = e[t >> 1], c = a && a.length; i < c; i++) t & 1 ? a[i].call(r) : o = a[i].call(r, o);
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
- }, ie = (e, t, r, o, i, a) => {
177
- var c, s, p, l, d, n = t & 7, _ = !!(t & 8), u = !!(t & 16), v = n > 3 ? e.length + 1 : n ? _ ? 1 : 2 : 0, x = re[n + 5], E = n > 3 && (e[v - 1] = []), N = e[v] || (e[v] = []), f = n && (!u && !_ && (i = i.prototype), n < 5 && (n > 3 || !u) && $e(n < 4 ? i : { get [r]() {
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 = Le(n, r, p = {}, e[3], N), n && (l.static = _, l.private = u, d = l.access = { has: u ? (h) => Me(i, h) : (h) => r in h }, n ^ 3 && (d.get = u ? (h) => (n ^ 1 ? j : Pe)(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));
185
- return n || Te(e, i), f && W(i, r, f), u ? n ^ 4 ? a : f : i;
186
- }, F = (e, t, r) => t.has(e) || b("Cannot " + r), Me = (e, t) => Object(t) !== t ? b('Cannot use the "in" operator on this value') : e.has(t), j = (e, t, r) => (F(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Oe = (e, t, r) => t.has(e) ? b("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Q = (e, t, r, o) => (F(e, t, "write to private field"), o ? o.call(e, r) : t.set(e, r), r), Pe = (e, t, r) => (F(e, t, "access private method"), r), ne, O, oe, A, R;
187
- oe = [J("tj-content-pane")];
188
- class I extends (O = ae(he), ne = [K({ type: Boolean, reflect: !0, attribute: "skip-layout" })], 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(), Oe(this, R, M(A, 8, this, !1)), M(A, 11, this);
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 t = new se("SectionTreeBuilder");
198
+ const e = new st("SectionTreeBuilder");
200
199
  this.log("arrange() called");
201
- const r = new ke(this), o = Array.from(this.children);
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 }), t.lap("after arrange");
205
+ $(Array.from(this.children), { recursive: !0 }), e.lap("after arrange");
207
206
  }
208
207
  async connectedCallback() {
209
- await ce(), super.connectedCallback(), this.arrange();
208
+ await ct(), super.connectedCallback(), this.arrange();
210
209
  }
211
210
  }
212
- A = Ne(O);
211
+ A = Lt(O);
213
212
  R = /* @__PURE__ */ new WeakMap();
214
- ie(A, 4, "skipLayout", ne, I, R);
215
- I = ie(A, 0, "ContentAreaElement2", oe, 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 De(e, t, r) {
218
- const o = [], i = t.split("|");
216
+ function Dt(t, e, r) {
217
+ const o = [], i = e.split("|");
219
218
  for (const a of i) {
220
- const c = e.querySelectorAll(a.trim());
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 ze(e, t) {
231
- const r = e.split("|");
229
+ function zt(t, e) {
230
+ const r = t.split("|");
232
231
  for (const o of r) {
233
- const i = t.querySelectorAll(o.trim());
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 Be(e) {
240
- class t extends e {
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 = ze(c, this);
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 t;
271
+ return e;
273
272
  }
274
273
  export {
275
274
  I as ContentAreaElement2,
276
- ke as SectionTreeBuilder,
277
- Be as SubLayoutApplyMixin,
275
+ kt as SectionTreeBuilder,
276
+ Bt as SubLayoutApplyMixin,
278
277
  $ as applyLayout,
279
- De as attrAssign,
280
- Re as isSectionTreeElement
278
+ Dt as attrAssign,
279
+ Rt as isSectionTreeElement
281
280
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trunkjs/content-pane",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "main": "./index.js",
5
5
  "dependencies": {
6
6
  "@trunkjs/browser-utils": "^1.0.14",