@trunkjs/content-pane 1.0.12 → 1.0.14

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,17 @@
1
+ ## 1.0.14 (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.13 (2025-12-11)
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - not using section attributes ([e523bcc](https://github.com/trunkjs/trunkjs-monorepo/commit/e523bcc))
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - Matthias @dermatthes
14
+
1
15
  ## 1.0.12 (2025-12-11)
2
16
 
3
17
  This was a version bump only for content-pane to align it with other projects, there were no code changes.
@@ -1,9 +1,9 @@
1
1
  import { ReactiveElement } from 'lit';
2
2
  declare const ContentAreaElement2_base: (abstract new (...args: any[]) => {
3
- "__#3383@#debugCached": boolean | null;
4
- "__#3383@#myElementId": number;
3
+ "__#3406@#debugCached": boolean | null;
4
+ "__#3406@#myElementId": number;
5
5
  invalidateDebugCache(): void;
6
- "__#3383@#myLoggerInstance": import('../../../../browser-utils/src/index.ts').Logger | null;
6
+ "__#3406@#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
@@ -2,26 +2,26 @@ import { create_element as V, LoggingMixin as ae, Stopwatch as se, waitForDomCon
2
2
  import { html as le, unsafeCSS as de, LitElement as ue, ReactiveElement as he } from "lit";
3
3
  import { customElement as J, property as K } from "lit/decorators.js";
4
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), A = (e) => {
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
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" ? A("Function expected") : e, ye = (e, t, r, o, i) => ({ kind: X[e], name: t, metadata: o, addInitializer: (a) => r._ ? A("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], s = a && a.length; i < s; i++) t & 1 ? a[i].call(r) : o = a[i].call(r, o);
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);
9
9
  return o;
10
10
  }, Y = (e, t, r, o, i, a) => {
11
- var s, c, h, l, f, 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] = []), p = n && (!u && !_ && (i = i.prototype), n < 5 && (n > 3 || !u) && _e(n < 4 ? i : { get [r]() {
12
- return B(this, a);
13
- }, set [r](d) {
14
- return H(this, a, d);
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]() {
12
+ return H(this, a);
13
+ }, set [r](h) {
14
+ return B(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, h = {}, e[3], N), n && (l.static = _, l.private = u, f = l.access = { has: u ? (d) => we(i, d) : (d) => r in d }, n ^ 3 && (f.get = u ? (d) => (n ^ 1 ? B : Ae)(d, i, n ^ 4 ? a : p.get) : (d) => d[r]), n > 2 && (f.set = u ? (d, y) => H(d, i, y, n ^ 4 ? a : p.set) : (d, y) => d[r] = y)), c = (0, o[g])(n ? n < 4 ? u ? a : p[x] : n > 4 ? void 0 : { get: p.get, set: p.set } : i, l), h._ = 1, n ^ 4 || c === void 0 ? k(c) && (n > 4 ? E.unshift(c) : n ? u ? a = c : p[x] = c : i = c) : typeof c != "object" || c === null ? A("Object expected") : (k(s = c.get) && (p.get = s), k(s = c.set) && (p.set = s), k(s = c.init) && E.unshift(s));
19
- return n || me(e, i), p && P(i, r, p), u ? n ^ 4 ? a : p : i;
20
- }, z = (e, t, r) => t.has(e) || A("Cannot " + r), we = (e, t) => Object(t) !== t ? A('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)), Ce = (e, t, r) => t.has(e) ? A("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), Ae = (e, t, r) => (z(e, t, "access private method"), r), Z, T, ee, m, q;
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 ? H : Ce)(h, i, n ^ 4 ? a : f.get) : (h) => h[r]), n > 2 && (d.set = u ? (h, y) => B(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), H = (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), B = (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
21
  ee = [J("tj-error-element")];
22
22
  class w extends (T = ue, Z = [K({ type: String, reflect: !0 })], T) {
23
23
  constructor(t = "An error occurred", r) {
24
- super(), this.originalCode = void 0, Ce(this, q, L(m, 8, this)), L(m, 11, this), this.message = t, this.originalCode = r;
24
+ super(), this.originalCode = void 0, Ae(this, q, L(m, 8, this)), L(m, 11, this), this.message = t, this.originalCode = r;
25
25
  }
26
26
  static get is() {
27
27
  return "tj-error-element";
@@ -50,60 +50,63 @@ w = Y(m, 0, "TjErrorElement", ee, w);
50
50
  w.styles = [de(pe)];
51
51
  L(m, 1, w);
52
52
  function be(e, { allowAttributes: t = !0, ignoreGaps: r = !0 } = {}) {
53
- let o = "div", i = null, a = [], s = [], c = {};
54
- const h = /(^[a-z][\w-]*)|#[\w-]+|\.[\w:-]+|\[\s*([\w-]+)(?:\s*=\s*(['"]?)(.*?)\3)?\s*\]/gi;
53
+ let o = "div", i = null, a = [], c = [], s = {};
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 f = h.exec(e);
58
- if (!f || f.index !== l) {
59
- if (!r && f && f.index > l)
57
+ const d = p.exec(e);
58
+ if (!d || d.index !== l) {
59
+ if (!r && d && d.index > l)
60
60
  break;
61
61
  break;
62
62
  }
63
- const n = f[0];
63
+ const n = d[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
67
  if (!t) throw new Error(`Attributes not allowed: '${n}'`);
68
- const _ = f[2], u = f[4] || void 0;
69
- s.push({ name: _, value: u }), c[_] = u;
68
+ const _ = d[2], u = d[4] || void 0;
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: s, attrsMap: c, length: l, rest: e.slice(l) };
73
+ return { tag: o, id: i, classes: a, attrs: c, attrsMap: s, length: l, rest: e.slice(l) };
74
74
  }
75
75
  function xe(e) {
76
76
  return typeof e.beforeLayoutCallback == "function";
77
77
  }
78
78
  function Ee(e, t, r) {
79
- var f, n;
80
- const o = /^(\+|-|)([0-9]+\.?[0-9]*);?/, i = r.replace(o, ""), a = be(i), s = a.attrsMap;
81
- s.class = "", a.attrsMap.class && (s.class = a.attrsMap.class + " "), s.class += a.classes.join(" "), s.id = a.id ?? void 0, ((f = s.class) == null ? void 0 : f.trim()) === "" && delete s.class, ((n = s.id) == null ? void 0 : n.trim()) === "" && delete s.id;
82
- const c = a.tag || "div";
83
- let h = !1, l = V(c, { ...s, layoutOrig: r });
84
- if (c.includes("-") && !customElements.get(c))
85
- console.warn(`Custom element <${c}> is not registered.`), l = new w(`Custom element <${c}> is not registered.`, e.outerHTML), e.replaceWith(l), l.append(e), h = !0;
79
+ var n, _;
80
+ const o = /^(\+|-|)([0-9]+\.?[0-9]*);?/, i = r.replace(o, ""), a = be(i), s = { ...Array.from(e.attributes).reduce(
81
+ (u, v) => (u[v.name] = v.value, u),
82
+ {}
83
+ ), ...a.attrsMap };
84
+ s.class = "", a.attrsMap.class && (s.class = a.attrsMap.class + " "), s.class += a.classes.join(" "), s.id = a.id ?? void 0, ((n = s.class) == null ? void 0 : n.trim()) === "" && delete s.class, ((_ = s.id) == null ? void 0 : _.trim()) === "" && delete s.id;
85
+ const p = a.tag || "div";
86
+ let l = !1, d = V(p, { ...s, layoutOrig: r });
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;
86
89
  else {
87
- const _ = Array.from(e.children);
88
- xe(l) && (h = l.beforeLayoutCallback(e, l, _) === !1), l.__ORIG_ELEMENT__ = e, l.append(...Array.from(e.children)), e.replaceWith(l);
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);
89
92
  }
90
93
  return {
91
- replacementElement: l,
92
- skipChildren: h
94
+ replacementElement: d,
95
+ skipChildren: l
93
96
  };
94
97
  }
95
98
  function $(e, t = {}) {
96
99
  const { recursive: r = !0 } = t;
97
100
  let o = [];
98
101
  if (Array.isArray(e))
99
- return e.forEach((c) => o.push(...$(c, t))), o;
102
+ return e.forEach((s) => o.push(...$(s, t))), o;
100
103
  if (!(e instanceof HTMLElement))
101
104
  return [];
102
105
  const i = e.getAttribute("layout");
103
- let a = !1, s = e;
104
- return i && ({ replacementElement: s, skipChildren: a } = Ee(e, t, i)), r && !a && Array.from(s.children).forEach((h) => o.push(...$(h, t))), o;
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
108
  }
106
- function Re(e) {
109
+ function Fe(e) {
107
110
  return e && typeof e == "object" && "__I__" in e && typeof e.__I__ == "object" && "i" in e.__I__;
108
111
  }
109
112
  class ke {
@@ -113,8 +116,8 @@ class ke {
113
116
  getI(t) {
114
117
  const r = t.tagName, o = t.getAttribute("layout"), i = { i: -99, variant: "new", tag: "hr", hi: null };
115
118
  if (o) {
116
- const a = /^(\+|-|)([0-9]\.?[0-9]?|)(;|$)/, s = o.match(a);
117
- s && (i.variant = s[1] === "+" ? "append" : s[1] === "-" ? "skip" : "new", s[2] !== "" && (i.i = parseFloat(s[2]) * 10));
119
+ const a = /^(\+|-|)([0-9]\.?[0-9]?|)(;|$)/, c = o.match(a);
120
+ c && (i.variant = c[1] === "+" ? "append" : c[1] === "-" ? "skip" : "new", c[2] !== "" && (i.i = parseFloat(c[2]) * 10));
118
121
  }
119
122
  if (r.startsWith("H") && r.length === 2) {
120
123
  let a = r.substring(1);
@@ -124,11 +127,8 @@ class ke {
124
127
  }
125
128
  getAttributeRecords(t, r = !1) {
126
129
  const o = {};
127
- for (const i of t.attributes)
128
- 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);
129
- if (!r)
130
- for (const i of Array.from(t.classList))
131
- i.startsWith("section-") && (o.class = (o.class || "") + " " + i.replace(/^section-/, ""), t.classList.remove(i));
130
+ for (const i of Array.from(t.attributes))
131
+ i.name.startsWith("section-") ? o[i.name.replace(/^section-/, "")] = i.value : (i.name.startsWith("layout") || r) && (o[i.name] = i.value, t.removeAttribute(i.name));
132
132
  return o;
133
133
  }
134
134
  createNewContainerNode(t, r) {
@@ -165,26 +165,26 @@ class ke {
165
165
  }
166
166
  }
167
167
  }
168
- var Se = Object.create, W = Object.defineProperty, $e = Object.getOwnPropertyDescriptor, te = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), b = (e) => {
168
+ var Se = Object.create, R = Object.defineProperty, $e = Object.getOwnPropertyDescriptor, te = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), b = (e) => {
169
169
  throw TypeError(e);
170
- }, 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) => {
171
- for (var i = 0, a = e[t >> 1], s = a && a.length; i < s; i++) t & 1 ? a[i].call(r) : o = a[i].call(r, o);
170
+ }, Ie = (e, t, r) => t in e ? R(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, G = (e, t) => R(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) => {
171
+ 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);
172
172
  return o;
173
173
  }, ie = (e, t, r, o, i, a) => {
174
- var s, c, h, l, f, 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] = []), p = n && (!u && !_ && (i = i.prototype), n < 5 && (n > 3 || !u) && $e(n < 4 ? i : { get [r]() {
174
+ 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
175
  return j(this, a);
176
- }, set [r](d) {
177
- return Q(this, a, d);
176
+ }, set [r](h) {
177
+ return Q(this, a, h);
178
178
  } }, r));
179
179
  n ? u && n < 4 && G(a, (n > 2 ? "set " : n > 1 ? "get " : "") + r) : G(i, r);
180
180
  for (var g = o.length - 1; g >= 0; g--)
181
- l = Le(n, r, h = {}, e[3], N), n && (l.static = _, l.private = u, f = l.access = { has: u ? (d) => Me(i, d) : (d) => r in d }, n ^ 3 && (f.get = u ? (d) => (n ^ 1 ? j : Pe)(d, i, n ^ 4 ? a : p.get) : (d) => d[r]), n > 2 && (f.set = u ? (d, y) => Q(d, i, y, n ^ 4 ? a : p.set) : (d, y) => d[r] = y)), c = (0, o[g])(n ? n < 4 ? u ? a : p[x] : n > 4 ? void 0 : { get: p.get, set: p.set } : i, l), h._ = 1, n ^ 4 || c === void 0 ? S(c) && (n > 4 ? E.unshift(c) : n ? u ? a = c : p[x] = c : i = c) : typeof c != "object" || c === null ? b("Object expected") : (S(s = c.get) && (p.get = s), S(s = c.set) && (p.set = s), S(s = c.init) && E.unshift(s));
182
- return n || Te(e, i), p && W(i, r, p), u ? n ^ 4 ? a : p : i;
183
- }, 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, C, R;
181
+ 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));
182
+ return n || Te(e, i), f && R(i, r, f), u ? n ^ 4 ? a : f : i;
183
+ }, W = (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) => (W(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) => (W(e, t, "write to private field"), o ? o.call(e, r) : t.set(e, r), r), Pe = (e, t, r) => (W(e, t, "access private method"), r), ne, O, oe, A, F;
184
184
  oe = [J("tj-content-pane")];
185
185
  class I extends (O = ae(he), ne = [K({ type: Boolean, reflect: !0, attribute: "skip-layout" })], O) {
186
186
  constructor() {
187
- super(), Oe(this, R, M(C, 8, this, !1)), M(C, 11, this);
187
+ super(), Oe(this, F, M(A, 8, this, !1)), M(A, 11, this);
188
188
  }
189
189
  static get is() {
190
190
  return "tj-content-pane";
@@ -206,20 +206,20 @@ class I extends (O = ae(he), ne = [K({ type: Boolean, reflect: !0, attribute: "s
206
206
  await ce(), super.connectedCallback(), this.arrange();
207
207
  }
208
208
  }
209
- C = Ne(O);
210
- R = /* @__PURE__ */ new WeakMap();
211
- ie(C, 4, "skipLayout", ne, I, R);
212
- I = ie(C, 0, "ContentAreaElement2", oe, I);
213
- M(C, 1, I);
209
+ A = Ne(O);
210
+ F = /* @__PURE__ */ new WeakMap();
211
+ ie(A, 4, "skipLayout", ne, I, F);
212
+ I = ie(A, 0, "ContentAreaElement2", oe, I);
213
+ M(A, 1, I);
214
214
  function De(e, t, r) {
215
215
  const o = [], i = t.split("|");
216
216
  for (const a of i) {
217
- const s = e.querySelectorAll(a.trim());
218
- if (s.length > 0)
219
- for (const c of s) {
220
- o.push(c);
221
- for (const [h, l] of Object.entries(r))
222
- c.setAttribute(h, l);
217
+ const c = e.querySelectorAll(a.trim());
218
+ if (c.length > 0)
219
+ for (const s of c) {
220
+ o.push(s);
221
+ for (const [p, l] of Object.entries(r))
222
+ s.setAttribute(p, l);
223
223
  }
224
224
  }
225
225
  return o;
@@ -233,7 +233,7 @@ function ze(e, t) {
233
233
  }
234
234
  return [];
235
235
  }
236
- function Be(e) {
236
+ function He(e) {
237
237
  class t extends e {
238
238
  beforeLayoutCallback(o, i, a) {
239
239
  return !1;
@@ -242,24 +242,24 @@ function Be(e) {
242
242
  var i;
243
243
  const o = ((i = this.shadowRoot) == null ? void 0 : i.querySelectorAll("slot[data-query]")) ?? [];
244
244
  for (const a of Array.from(o)) {
245
- const s = a.getAttribute("data-query");
246
- if (!s) continue;
247
- let c = [];
245
+ const c = a.getAttribute("data-query");
246
+ if (!c) continue;
247
+ let s = [];
248
248
  try {
249
- c = ze(s, this);
250
- } catch (h) {
251
- throw this.error(`"${h}" in slot`, a), h;
249
+ s = ze(c, this);
250
+ } catch (p) {
251
+ throw this.error(`"${p}" in slot`, a), p;
252
252
  }
253
- c.forEach((h) => {
253
+ s.forEach((p) => {
254
254
  if (a.getAttributeNames().filter((l) => l.startsWith("data-set-attribute-")).forEach((l) => {
255
- const f = l.replace(/^data-set-attribute-/, "");
256
- if (!h.hasAttribute(f)) {
255
+ const d = l.replace(/^data-set-attribute-/, "");
256
+ if (!p.hasAttribute(d)) {
257
257
  const n = a.getAttribute(l);
258
- n !== null && h.setAttribute(f, n);
258
+ n !== null && p.setAttribute(d, n);
259
259
  }
260
- }), !h.hasAttribute("slot")) {
260
+ }), !p.hasAttribute("slot")) {
261
261
  const l = a.getAttribute("name");
262
- l && h.setAttribute("slot", l);
262
+ l && p.setAttribute("slot", l);
263
263
  }
264
264
  });
265
265
  }
@@ -271,8 +271,8 @@ function Be(e) {
271
271
  export {
272
272
  I as ContentAreaElement2,
273
273
  ke as SectionTreeBuilder,
274
- Be as SubLayoutApplyMixin,
274
+ He as SubLayoutApplyMixin,
275
275
  $ as applyLayout,
276
276
  De as attrAssign,
277
- Re as isSectionTreeElement
277
+ Fe as isSectionTreeElement
278
278
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trunkjs/content-pane",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "main": "./index.js",
5
5
  "dependencies": {
6
6
  "@trunkjs/browser-utils": "^1.0.14",