@trunkjs/content-pane 1.0.13 → 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,7 @@
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
+
1
5
  ## 1.0.13 (2025-12-11)
2
6
 
3
7
  ### 🩹 Fixes
@@ -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
+ "__#3406@#debugCached": boolean | null;
4
+ "__#3406@#myElementId": number;
5
5
  invalidateDebugCache(): void;
6
- "__#3410@#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
@@ -9,15 +9,15 @@ var fe = Object.create, P = Object.defineProperty, _e = Object.getOwnPropertyDes
9
9
  return o;
10
10
  }, Y = (e, t, r, o, i, a) => {
11
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 B(this, a);
12
+ return H(this, a);
13
13
  }, set [r](h) {
14
- return H(this, a, 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, 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));
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
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;
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) {
@@ -106,7 +106,7 @@ function $(e, t = {}) {
106
106
  let a = !1, c = e;
107
107
  return i && ({ replacementElement: c, skipChildren: a } = Ee(e, t, i)), r && !a && Array.from(c.children).forEach((p) => o.push(...$(p, t))), o;
108
108
  }
109
- function Re(e) {
109
+ function Fe(e) {
110
110
  return e && typeof e == "object" && "__I__" in e && typeof e.__I__ == "object" && "i" in e.__I__;
111
111
  }
112
112
  class ke {
@@ -127,11 +127,8 @@ class ke {
127
127
  }
128
128
  getAttributeRecords(t, 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));
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));
135
132
  return o;
136
133
  }
137
134
  createNewContainerNode(t, r) {
@@ -168,9 +165,9 @@ class ke {
168
165
  }
169
166
  }
170
167
  }
171
- 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) => {
172
169
  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) => {
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) => {
174
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);
175
172
  return o;
176
173
  }, ie = (e, t, r, o, i, a) => {
@@ -182,12 +179,12 @@ var Se = Object.create, W = Object.defineProperty, $e = Object.getOwnPropertyDes
182
179
  n ? u && n < 4 && G(a, (n > 2 ? "set " : n > 1 ? "get " : "") + r) : G(i, r);
183
180
  for (var g = o.length - 1; g >= 0; g--)
184
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));
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;
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;
187
184
  oe = [J("tj-content-pane")];
188
185
  class I extends (O = ae(he), ne = [K({ type: Boolean, reflect: !0, attribute: "skip-layout" })], O) {
189
186
  constructor() {
190
- super(), Oe(this, R, M(A, 8, this, !1)), M(A, 11, this);
187
+ super(), Oe(this, F, M(A, 8, this, !1)), M(A, 11, this);
191
188
  }
192
189
  static get is() {
193
190
  return "tj-content-pane";
@@ -210,8 +207,8 @@ class I extends (O = ae(he), ne = [K({ type: Boolean, reflect: !0, attribute: "s
210
207
  }
211
208
  }
212
209
  A = Ne(O);
213
- R = /* @__PURE__ */ new WeakMap();
214
- ie(A, 4, "skipLayout", ne, I, R);
210
+ F = /* @__PURE__ */ new WeakMap();
211
+ ie(A, 4, "skipLayout", ne, I, F);
215
212
  I = ie(A, 0, "ContentAreaElement2", oe, I);
216
213
  M(A, 1, I);
217
214
  function De(e, t, r) {
@@ -236,7 +233,7 @@ function ze(e, t) {
236
233
  }
237
234
  return [];
238
235
  }
239
- function Be(e) {
236
+ function He(e) {
240
237
  class t extends e {
241
238
  beforeLayoutCallback(o, i, a) {
242
239
  return !1;
@@ -274,8 +271,8 @@ function Be(e) {
274
271
  export {
275
272
  I as ContentAreaElement2,
276
273
  ke as SectionTreeBuilder,
277
- Be as SubLayoutApplyMixin,
274
+ He as SubLayoutApplyMixin,
278
275
  $ as applyLayout,
279
276
  De as attrAssign,
280
- Re as isSectionTreeElement
277
+ Fe as isSectionTreeElement
281
278
  };
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.14",
4
4
  "main": "./index.js",
5
5
  "dependencies": {
6
6
  "@trunkjs/browser-utils": "^1.0.14",