@trunkjs/content-pane 1.0.18 → 1.0.19

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.19 (2026-02-07)
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.18 (2025-12-16)
2
6
 
3
7
  This was a version bump only for content-pane to align it with other projects, there were no code changes.
@@ -1,16 +1,5 @@
1
1
  import { ReactiveElement } from 'lit';
2
- declare const ContentAreaElement2_base: (abstract new (...args: any[]) => {
3
- "__#3834@#debugCached": boolean | null;
4
- "__#3834@#myElementId": number;
5
- invalidateDebugCache(): void;
6
- "__#3834@#myLoggerInstance": import('@trunkjs/browser-utils').Logger | null;
7
- readonly _debug: boolean;
8
- getLogger(instanceId?: string): import('@trunkjs/browser-utils').Logger;
9
- log(...args: any[]): void;
10
- warn(...args: any[]): void;
11
- error(...args: any[]): void;
12
- throwError(...args: any[]): never;
13
- }) & typeof ReactiveElement;
2
+ declare const ContentAreaElement2_base: typeof ReactiveElement & (abstract new (...args: any[]) => import('@trunkjs/browser-utils').LoggerMixinInterface);
14
3
  export declare class ContentAreaElement2 extends ContentAreaElement2_base {
15
4
  static get is(): string;
16
5
  accessor skipLayout: boolean;
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";
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]), N = (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);
1
+ import { create_element as Q, 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
+ import { customElement as V, property as J } from "lit/decorators.js";
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, K = (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[K("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, K("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, f, d, l, 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] = []), L = e[v] || (e[v] = []), p = 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, f, h, l, n = e & 7, _ = !!(e & 8), d = !!(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] = []), p = n && (!d && !_ && (i = i.prototype), n < 5 && (n > 3 || !d) && _t(n < 4 ? i : { get [r]() {
12
12
  return B(this, a);
13
- }, set [r](h) {
14
- return H(this, a, h);
13
+ }, set [r](u) {
14
+ return H(this, a, u);
15
15
  } }, r));
16
- n ? u && n < 4 && D(a, (n > 2 ? "set " : n > 1 ? "get " : "") + r) : D(i, r);
16
+ n ? d && 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
- d = ye(n, r, f = {}, e[3], L), n && (d.static = _, d.private = u, l = d.access = { has: u ? (h) => we(i, h) : (h) => r in h }, n ^ 3 && (l.get = u ? (h) => (n ^ 1 ? B : Ce)(h, i, n ^ 4 ? a : p.get) : (h) => h[r]), n > 2 && (l.set = u ? (h, y) => H(h, i, y, n ^ 4 ? a : p.set) : (h, y) => h[r] = y)), s = (0, o[g])(n ? n < 4 ? u ? a : p[x] : n > 4 ? void 0 : { get: p.get, set: p.set } : i, d), f._ = 1, n ^ 4 || s === void 0 ? k(s) && (n > 4 ? E.unshift(s) : n ? u ? a = s : p[x] = s : i = s) : typeof s != "object" || s === null ? C("Object expected") : (k(c = s.get) && (p.get = c), k(c = s.set) && (p.set = c), k(c = s.init) && E.unshift(c));
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) || 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, N(m, 8, this)), N(m, 11, this), this.message = t, this.originalCode = r;
18
+ h = yt(n, r, f = {}, t[3], L), n && (h.static = _, h.private = d, l = h.access = { has: d ? (u) => wt(i, u) : (u) => r in u }, n ^ 3 && (l.get = d ? (u) => (n ^ 1 ? B : Ct)(u, i, n ^ 4 ? a : p.get) : (u) => u[r]), n > 2 && (l.set = d ? (u, y) => H(u, i, y, n ^ 4 ? a : p.set) : (u, y) => u[r] = y)), s = (0, o[g])(n ? n < 4 ? d ? a : p[x] : n > 4 ? void 0 : { get: p.get, set: p.set } : i, h), f._ = 1, n ^ 4 || s === void 0 ? k(s) && (n > 4 ? E.unshift(s) : n ? d ? a = s : p[x] = s : i = s) : typeof s != "object" || s === null ? C("Object expected") : (k(c = s.get) && (p.get = c), k(c = s.set) && (p.set = c), k(c = s.init) && E.unshift(c));
19
+ return n || mt(t, i), p && P(i, r, p), d ? n ^ 4 ? a : p : 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 = [V("tj-error-element")];
22
+ class w extends (T = ut, Z = [J({ 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,20 +43,20 @@ 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)];
49
+ w = Y(m, 0, "TjErrorElement", tt, w);
50
+ w.styles = [dt(pt)];
51
51
  N(m, 1, w);
52
- function be(e, { allowAttributes: t = !0, ignoreGaps: r = !0 } = {}) {
52
+ function bt(t, { allowAttributes: e = !0, ignoreGaps: r = !0 } = {}) {
53
53
  let o = "div", i = null, a = [], c = [], s = {};
54
54
  const f = /(^[a-z][\w-]*)|#[\w-]+|\.[\w:-]+|\[\s*([\w-]+)(?:\s*=\s*(['"]?)(.*?)\3)?\s*\]/gi;
55
- let d = 0;
55
+ let h = 0;
56
56
  for (; ; ) {
57
- const l = f.exec(e);
58
- if (!l || l.index !== d) {
59
- if (!r && l && l.index > d)
57
+ const l = f.exec(t);
58
+ if (!l || l.index !== h) {
59
+ if (!r && l && l.index > h)
60
60
  break;
61
61
  break;
62
62
  }
@@ -64,57 +64,57 @@ 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}'`);
68
- const _ = l[2], u = l[4] || void 0;
69
- c.push({ name: _, value: u }), s[_] = u;
67
+ if (!e) throw new Error(`Attributes not allowed: '${n}'`);
68
+ const _ = l[2], d = l[4] || void 0;
69
+ c.push({ name: _, value: d }), s[_] = d;
70
70
  } else o = n;
71
- d += n.length;
71
+ h += n.length;
72
72
  }
73
- return { tag: o, id: i, classes: a, attrs: c, attrsMap: s, length: d, rest: e.slice(d) };
73
+ return { tag: o, id: i, classes: a, attrs: c, attrsMap: s, length: h, rest: t.slice(h) };
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(
81
- (u, v) => (u[v.name] = v.value, u),
80
+ const o = /^(\+|-|)([0-9]+\.?[0-9]*);?/, i = r.replace(o, ""), a = bt(i), s = { ...Array.from(t.attributes).reduce(
81
+ (d, v) => (d[v.name] = v.value, d),
82
82
  {}
83
83
  ), ...a.attrsMap };
84
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
85
  const f = a.tag || "div";
86
- let d = !1, l = V(f, { ...s, layoutOrig: r });
86
+ let h = !1, l = Q(f, { ...s, layoutOrig: r });
87
87
  if (f.includes("-") && !customElements.get(f))
88
- console.warn(`Custom element <${f}> is not registered.`), l = new w(`Custom element <${f}> is not registered.`, e.outerHTML), e.replaceWith(l), l.append(e), d = !0;
88
+ console.warn(`Custom element <${f}> is not registered.`), l = new w(`Custom element <${f}> is not registered.`, t.outerHTML), t.replaceWith(l), l.append(t), h = !0;
89
89
  else {
90
- const u = Array.from(e.children);
91
- xe(l) && (d = l.beforeLayoutCallback(e, l, u) === !1), l.__ORIG_ELEMENT__ = e, l.append(...Array.from(e.children)), e.replaceWith(l);
90
+ const d = Array.from(t.children);
91
+ xt(l) && (h = l.beforeLayoutCallback(t, l, d) === !1), l.__ORIG_ELEMENT__ = t, l.append(...Array.from(t.children)), t.replaceWith(l);
92
92
  }
93
93
  return {
94
94
  replacementElement: l,
95
- skipChildren: d
95
+ skipChildren: h
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((f) => o.push(...$(f, 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((f) => o.push(...$(f, 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,35 +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 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
- return r || Array.from(t.classList).forEach((i) => {
133
- i.startsWith("section-") && (o.class = (o.class ? o.class + " " : "") + i.replace(/^section-/, ""), t.classList.remove(i));
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 || Array.from(e.classList).forEach((i) => {
133
+ i.startsWith("section-") && (o.class = (o.class ? o.class + " " : "") + i.replace(/^section-/, ""), e.classList.remove(i));
134
134
  }), o;
135
135
  }
136
- createNewContainerNode(t, r) {
137
- 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 = Q("section", o);
138
138
  return i.__IT = r, i;
139
139
  }
140
- arrangeSingleNode(t, r) {
140
+ arrangeSingleNode(e, r) {
141
141
  r.i;
142
142
  let o = 0;
143
143
  for (o = 0; o < this.containerIndex.length && !(this.containerIndex[o] >= r.i); o++)
144
144
  ;
145
145
  let i = null;
146
- 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);
147
147
  const a = this.containerPath[o - 1];
148
- 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;
149
149
  }
150
- appendToCurrentContainer(t) {
150
+ appendToCurrentContainer(e) {
151
151
  if (this.currentContainerNode === null)
152
152
  throw new Error("No current container node set");
153
- this.currentContainerNode.appendChild(t);
153
+ this.currentContainerNode.appendChild(e);
154
154
  }
155
- arrange(t) {
156
- for (let r of t) {
155
+ arrange(e) {
156
+ for (let r of e) {
157
157
  if (r.nodeType !== Node.ELEMENT_NODE) {
158
158
  this.appendToCurrentContainer(r);
159
159
  continue;
@@ -167,26 +167,26 @@ class ke {
167
167
  }
168
168
  }
169
169
  }
170
- var Se = Object.create, W = Object.defineProperty, $e = Object.getOwnPropertyDescriptor, te = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), b = (e) => {
171
- throw TypeError(e);
172
- }, 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 }), Le = (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, Ne = (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) => {
173
- 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);
174
174
  return o;
175
- }, ie = (e, t, r, o, i, a) => {
176
- var c, s, f, d, l, 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] = []), L = e[v] || (e[v] = []), p = 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, f, h, l, n = e & 7, _ = !!(e & 8), d = !!(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] = []), p = n && (!d && !_ && (i = i.prototype), n < 5 && (n > 3 || !d) && $t(n < 4 ? i : { get [r]() {
177
177
  return j(this, a);
178
- }, set [r](h) {
179
- return Q(this, a, h);
178
+ }, set [r](u) {
179
+ return U(this, a, u);
180
180
  } }, r));
181
- n ? u && n < 4 && G(a, (n > 2 ? "set " : n > 1 ? "get " : "") + r) : G(i, r);
181
+ n ? d && n < 4 && G(a, (n > 2 ? "set " : n > 1 ? "get " : "") + r) : G(i, r);
182
182
  for (var g = o.length - 1; g >= 0; g--)
183
- d = Ne(n, r, f = {}, e[3], L), n && (d.static = _, d.private = u, l = d.access = { has: u ? (h) => Me(i, h) : (h) => r in h }, n ^ 3 && (l.get = u ? (h) => (n ^ 1 ? j : Pe)(h, i, n ^ 4 ? a : p.get) : (h) => h[r]), n > 2 && (l.set = u ? (h, y) => Q(h, i, y, n ^ 4 ? a : p.set) : (h, y) => h[r] = y)), s = (0, o[g])(n ? n < 4 ? u ? a : p[x] : n > 4 ? void 0 : { get: p.get, set: p.set } : i, d), f._ = 1, n ^ 4 || s === void 0 ? S(s) && (n > 4 ? E.unshift(s) : n ? u ? a = s : p[x] = s : i = s) : typeof s != "object" || s === null ? b("Object expected") : (S(c = s.get) && (p.get = c), S(c = s.set) && (p.set = c), S(c = s.init) && E.unshift(c));
184
- return n || Te(e, i), p && W(i, r, p), u ? n ^ 4 ? a : p : i;
185
- }, 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;
186
- oe = [J("tj-content-pane")];
187
- class I extends (O = ae(he), ne = [K({ type: Boolean, reflect: !0, attribute: "skip-layout" })], O) {
183
+ h = Nt(n, r, f = {}, t[3], L), n && (h.static = _, h.private = d, l = h.access = { has: d ? (u) => Mt(i, u) : (u) => r in u }, n ^ 3 && (l.get = d ? (u) => (n ^ 1 ? j : Pt)(u, i, n ^ 4 ? a : p.get) : (u) => u[r]), n > 2 && (l.set = d ? (u, y) => U(u, i, y, n ^ 4 ? a : p.set) : (u, y) => u[r] = y)), s = (0, o[g])(n ? n < 4 ? d ? a : p[x] : n > 4 ? void 0 : { get: p.get, set: p.set } : i, h), f._ = 1, n ^ 4 || s === void 0 ? S(s) && (n > 4 ? E.unshift(s) : n ? d ? a = s : p[x] = s : i = s) : typeof s != "object" || s === null ? b("Object expected") : (S(c = s.get) && (p.get = c), S(c = s.set) && (p.set = c), S(c = s.init) && E.unshift(c));
184
+ return n || Tt(t, i), p && W(i, r, p), d ? n ^ 4 ? a : p : 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), U = (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 = [V("tj-content-pane")];
187
+ class I extends (O = at(ht), nt = [J({ type: Boolean, reflect: !0, attribute: "skip-layout" })], O) {
188
188
  constructor() {
189
- 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);
190
190
  }
191
191
  static get is() {
192
192
  return "tj-content-pane";
@@ -195,86 +195,87 @@ class I extends (O = ae(he), ne = [K({ type: Boolean, reflect: !0, attribute: "s
195
195
  return this;
196
196
  }
197
197
  arrange() {
198
- const t = new se("SectionTreeBuilder");
198
+ const e = new st("SectionTreeBuilder");
199
199
  this.log("arrange() called");
200
- const r = new ke(this), o = Array.from(this.children);
200
+ const r = new kt(this), o = Array.from(this.children);
201
201
  if (r.arrange(o), this.skipLayout) {
202
202
  this.warn("Skipping layout as per skipLayout property.");
203
203
  return;
204
204
  }
205
- $(Array.from(this.children), { recursive: !0 }), t.lap("after arrange");
205
+ $(Array.from(this.children), { recursive: !0 }), e.lap("after arrange");
206
206
  }
207
207
  async connectedCallback() {
208
- await ce(), super.connectedCallback(), this.arrange();
208
+ await ct(), super.connectedCallback(), this.arrange();
209
209
  }
210
210
  }
211
- A = Le(O);
211
+ A = Lt(O);
212
212
  R = /* @__PURE__ */ new WeakMap();
213
- ie(A, 4, "skipLayout", ne, I, R);
214
- I = ie(A, 0, "ContentAreaElement2", oe, I);
213
+ it(A, 4, "skipLayout", nt, I, R);
214
+ I = it(A, 0, "ContentAreaElement2", ot, I);
215
215
  M(A, 1, I);
216
- function De(e, t, r) {
217
- const o = [], i = t.split("|");
216
+ function Dt(t, e, r) {
217
+ const o = [], i = e.split("|");
218
218
  for (const a of i) {
219
- const c = e.querySelectorAll(a.trim());
219
+ const c = t.querySelectorAll(a.trim());
220
220
  if (c.length > 0)
221
221
  for (const s of c) {
222
222
  o.push(s);
223
- for (const [f, d] of Object.entries(r))
224
- s.setAttribute(f, d);
223
+ for (const [f, h] of Object.entries(r))
224
+ s.setAttribute(f, h);
225
225
  }
226
226
  }
227
227
  return o;
228
228
  }
229
- function ze(e, t) {
230
- const r = e.split("|");
229
+ function zt(t, e) {
230
+ const r = t.split("|");
231
231
  for (const o of r) {
232
- const i = t.querySelectorAll(o.trim());
232
+ const i = e.querySelectorAll(o.trim());
233
233
  if (i.length > 0)
234
234
  return Array.from(i);
235
235
  }
236
236
  return [];
237
237
  }
238
- function Be(e) {
239
- class t extends e {
238
+ function Bt(t) {
239
+ class e extends t {
240
240
  beforeLayoutCallback(o, i, a) {
241
241
  return !1;
242
242
  }
243
- updated(o) {
244
- var a;
245
- const i = ((a = this.shadowRoot) == null ? void 0 : a.querySelectorAll("slot[data-query]")) ?? [];
246
- for (const c of Array.from(i)) {
247
- const s = c.getAttribute("data-query");
248
- if (!s) continue;
249
- let f = [];
243
+ firstUpdated(o) {
244
+ var a, c;
245
+ (a = super.firstUpdated) == null || a.call(this, o);
246
+ const i = ((c = this.shadowRoot) == null ? void 0 : c.querySelectorAll("slot[data-query]")) ?? [];
247
+ for (const s of Array.from(i)) {
248
+ const f = s.getAttribute("data-query");
249
+ if (!f) continue;
250
+ let h = [];
250
251
  try {
251
- f = ze(s, this);
252
- } catch (d) {
253
- throw this.error(`"${d}" in slot`, c), d;
252
+ h = zt(f, this);
253
+ } catch (l) {
254
+ throw this.error(`"${l}" in slot`, s), l;
254
255
  }
255
- f.forEach((d) => {
256
- if (c.getAttributeNames().filter((l) => l.startsWith("data-set-attribute-")).forEach((l) => {
257
- const n = l.replace(/^data-set-attribute-/, "");
258
- if (!d.hasAttribute(n)) {
259
- const _ = c.getAttribute(l);
260
- _ !== null && d.setAttribute(n, _);
256
+ h.forEach((l) => {
257
+ if (s.getAttributeNames().filter((n) => n.startsWith("data-set-attribute-")).forEach((n) => {
258
+ const _ = n.replace(/^data-set-attribute-/, "");
259
+ if (!l.hasAttribute(_)) {
260
+ const d = s.getAttribute(n);
261
+ d !== null && l.setAttribute(_, d);
261
262
  }
262
- }), !d.hasAttribute("slot")) {
263
- const l = c.getAttribute("name");
264
- l && d.setAttribute("slot", l);
263
+ }), !l.hasAttribute("slot")) {
264
+ const n = s.getAttribute("name");
265
+ n && l.setAttribute("slot", n);
265
266
  }
266
267
  });
267
268
  }
268
269
  $(Array.from(this.children), { recursive: !0 });
269
270
  }
270
271
  }
271
- return t;
272
+ return e;
272
273
  }
273
274
  export {
274
275
  I as ContentAreaElement2,
275
- ke as SectionTreeBuilder,
276
- Be as SubLayoutApplyMixin,
276
+ kt as SectionTreeBuilder,
277
+ Bt as SubLayoutApplyMixin,
277
278
  $ as applyLayout,
278
- De as attrAssign,
279
- Re as isSectionTreeElement
279
+ Dt as attrAssign,
280
+ Rt as isSectionTreeElement
280
281
  };
@@ -1,344 +1,8 @@
1
+ import { LitElement } from 'lit';
1
2
  type Constructor<T = object> = abstract new (...args: any[]) => T;
2
- export declare function SubLayoutApplyMixin<TBase extends Constructor<HTMLElement>>(Base: TBase): (abstract new (...args: any[]) => {
3
+ export interface SubLayoutApplyInterface {
3
4
  beforeLayoutCallback(element: HTMLElement, replacementElement: HTMLElement, children: HTMLElement[]): boolean;
4
- updated(changedProperties: Map<string, unknown>): void;
5
- accessKey: string;
6
- readonly accessKeyLabel: string;
7
- autocapitalize: string;
8
- dir: string;
9
- draggable: boolean;
10
- hidden: boolean;
11
- inert: boolean;
12
- innerText: string;
13
- lang: string;
14
- readonly offsetHeight: number;
15
- readonly offsetLeft: number;
16
- readonly offsetParent: Element | null;
17
- readonly offsetTop: number;
18
- readonly offsetWidth: number;
19
- outerText: string;
20
- popover: string | null;
21
- spellcheck: boolean;
22
- title: string;
23
- translate: boolean;
24
- writingSuggestions: string;
25
- attachInternals(): ElementInternals;
26
- click(): void;
27
- hidePopover(): void;
28
- showPopover(): void;
29
- togglePopover(options?: boolean): boolean;
30
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
31
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
32
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
33
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
34
- readonly attributes: NamedNodeMap;
35
- get classList(): DOMTokenList;
36
- set classList(value: string);
37
- className: string;
38
- readonly clientHeight: number;
39
- readonly clientLeft: number;
40
- readonly clientTop: number;
41
- readonly clientWidth: number;
42
- readonly currentCSSZoom: number;
43
- id: string;
44
- innerHTML: string;
45
- readonly localName: string;
46
- readonly namespaceURI: string | null;
47
- onfullscreenchange: ((this: Element, ev: Event) => any) | null;
48
- onfullscreenerror: ((this: Element, ev: Event) => any) | null;
49
- outerHTML: string;
50
- readonly ownerDocument: Document;
51
- get part(): DOMTokenList;
52
- set part(value: string);
53
- readonly prefix: string | null;
54
- readonly scrollHeight: number;
55
- scrollLeft: number;
56
- scrollTop: number;
57
- readonly scrollWidth: number;
58
- readonly shadowRoot: ShadowRoot | null;
59
- slot: string;
60
- readonly tagName: string;
61
- attachShadow(init: ShadowRootInit): ShadowRoot;
62
- checkVisibility(options?: CheckVisibilityOptions): boolean;
63
- closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
64
- closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
65
- closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
66
- closest<E extends Element = Element>(selectors: string): E | null;
67
- computedStyleMap(): StylePropertyMapReadOnly;
68
- getAttribute(qualifiedName: string): string | null;
69
- getAttributeNS(namespace: string | null, localName: string): string | null;
70
- getAttributeNames(): string[];
71
- getAttributeNode(qualifiedName: string): Attr | null;
72
- getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
73
- getBoundingClientRect(): DOMRect;
74
- getClientRects(): DOMRectList;
75
- getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
76
- getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
77
- getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
78
- getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
79
- getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
80
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
81
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
82
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
83
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
84
- getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
85
- getHTML(options?: GetHTMLOptions): string;
86
- hasAttribute(qualifiedName: string): boolean;
87
- hasAttributeNS(namespace: string | null, localName: string): boolean;
88
- hasAttributes(): boolean;
89
- hasPointerCapture(pointerId: number): boolean;
90
- insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
91
- insertAdjacentHTML(position: InsertPosition, string: string): void;
92
- insertAdjacentText(where: InsertPosition, data: string): void;
93
- matches(selectors: string): boolean;
94
- releasePointerCapture(pointerId: number): void;
95
- removeAttribute(qualifiedName: string): void;
96
- removeAttributeNS(namespace: string | null, localName: string): void;
97
- removeAttributeNode(attr: Attr): Attr;
98
- requestFullscreen(options?: FullscreenOptions): Promise<void>;
99
- requestPointerLock(options?: PointerLockOptions): Promise<void>;
100
- scroll(options?: ScrollToOptions): void;
101
- scroll(x: number, y: number): void;
102
- scrollBy(options?: ScrollToOptions): void;
103
- scrollBy(x: number, y: number): void;
104
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
105
- scrollTo(options?: ScrollToOptions): void;
106
- scrollTo(x: number, y: number): void;
107
- setAttribute(qualifiedName: string, value: string): void;
108
- setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
109
- setAttributeNode(attr: Attr): Attr | null;
110
- setAttributeNodeNS(attr: Attr): Attr | null;
111
- setHTMLUnsafe(html: string): void;
112
- setPointerCapture(pointerId: number): void;
113
- toggleAttribute(qualifiedName: string, force?: boolean): boolean;
114
- webkitMatchesSelector(selectors: string): boolean;
115
- readonly baseURI: string;
116
- readonly childNodes: NodeListOf<ChildNode>;
117
- readonly firstChild: ChildNode | null;
118
- readonly isConnected: boolean;
119
- readonly lastChild: ChildNode | null;
120
- readonly nextSibling: ChildNode | null;
121
- readonly nodeName: string;
122
- readonly nodeType: number;
123
- nodeValue: string | null;
124
- readonly parentElement: HTMLElement | null;
125
- readonly parentNode: ParentNode | null;
126
- readonly previousSibling: ChildNode | null;
127
- textContent: string | null;
128
- appendChild<T extends Node>(node: T): T;
129
- cloneNode(subtree?: boolean): Node;
130
- compareDocumentPosition(other: Node): number;
131
- contains(other: Node | null): boolean;
132
- getRootNode(options?: GetRootNodeOptions): Node;
133
- hasChildNodes(): boolean;
134
- insertBefore<T extends Node>(node: T, child: Node | null): T;
135
- isDefaultNamespace(namespace: string | null): boolean;
136
- isEqualNode(otherNode: Node | null): boolean;
137
- isSameNode(otherNode: Node | null): boolean;
138
- lookupNamespaceURI(prefix: string | null): string | null;
139
- lookupPrefix(namespace: string | null): string | null;
140
- normalize(): void;
141
- removeChild<T extends Node>(child: T): T;
142
- replaceChild<T extends Node>(node: Node, child: T): T;
143
- readonly ELEMENT_NODE: 1;
144
- readonly ATTRIBUTE_NODE: 2;
145
- readonly TEXT_NODE: 3;
146
- readonly CDATA_SECTION_NODE: 4;
147
- readonly ENTITY_REFERENCE_NODE: 5;
148
- readonly ENTITY_NODE: 6;
149
- readonly PROCESSING_INSTRUCTION_NODE: 7;
150
- readonly COMMENT_NODE: 8;
151
- readonly DOCUMENT_NODE: 9;
152
- readonly DOCUMENT_TYPE_NODE: 10;
153
- readonly DOCUMENT_FRAGMENT_NODE: 11;
154
- readonly NOTATION_NODE: 12;
155
- readonly DOCUMENT_POSITION_DISCONNECTED: 1;
156
- readonly DOCUMENT_POSITION_PRECEDING: 2;
157
- readonly DOCUMENT_POSITION_FOLLOWING: 4;
158
- readonly DOCUMENT_POSITION_CONTAINS: 8;
159
- readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
160
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
161
- dispatchEvent(event: Event): boolean;
162
- ariaAtomic: string | null;
163
- ariaAutoComplete: string | null;
164
- ariaBrailleLabel: string | null;
165
- ariaBrailleRoleDescription: string | null;
166
- ariaBusy: string | null;
167
- ariaChecked: string | null;
168
- ariaColCount: string | null;
169
- ariaColIndex: string | null;
170
- ariaColIndexText: string | null;
171
- ariaColSpan: string | null;
172
- ariaCurrent: string | null;
173
- ariaDescription: string | null;
174
- ariaDisabled: string | null;
175
- ariaExpanded: string | null;
176
- ariaHasPopup: string | null;
177
- ariaHidden: string | null;
178
- ariaInvalid: string | null;
179
- ariaKeyShortcuts: string | null;
180
- ariaLabel: string | null;
181
- ariaLevel: string | null;
182
- ariaLive: string | null;
183
- ariaModal: string | null;
184
- ariaMultiLine: string | null;
185
- ariaMultiSelectable: string | null;
186
- ariaOrientation: string | null;
187
- ariaPlaceholder: string | null;
188
- ariaPosInSet: string | null;
189
- ariaPressed: string | null;
190
- ariaReadOnly: string | null;
191
- ariaRelevant: string | null;
192
- ariaRequired: string | null;
193
- ariaRoleDescription: string | null;
194
- ariaRowCount: string | null;
195
- ariaRowIndex: string | null;
196
- ariaRowIndexText: string | null;
197
- ariaRowSpan: string | null;
198
- ariaSelected: string | null;
199
- ariaSetSize: string | null;
200
- ariaSort: string | null;
201
- ariaValueMax: string | null;
202
- ariaValueMin: string | null;
203
- ariaValueNow: string | null;
204
- ariaValueText: string | null;
205
- role: string | null;
206
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
207
- getAnimations(options?: GetAnimationsOptions): Animation[];
208
- after(...nodes: (Node | string)[]): void;
209
- before(...nodes: (Node | string)[]): void;
210
- remove(): void;
211
- replaceWith(...nodes: (Node | string)[]): void;
212
- readonly nextElementSibling: Element | null;
213
- readonly previousElementSibling: Element | null;
214
- readonly childElementCount: number;
215
- readonly children: HTMLCollection;
216
- readonly firstElementChild: Element | null;
217
- readonly lastElementChild: Element | null;
218
- append(...nodes: (Node | string)[]): void;
219
- prepend(...nodes: (Node | string)[]): void;
220
- querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
221
- querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
222
- querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
223
- querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
224
- querySelector<E extends Element = Element>(selectors: string): E | null;
225
- querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
226
- querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
227
- querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
228
- querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
229
- querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
230
- replaceChildren(...nodes: (Node | string)[]): void;
231
- readonly assignedSlot: HTMLSlotElement | null;
232
- readonly attributeStyleMap: StylePropertyMap;
233
- get style(): CSSStyleDeclaration;
234
- set style(cssText: string);
235
- contentEditable: string;
236
- enterKeyHint: string;
237
- inputMode: string;
238
- readonly isContentEditable: boolean;
239
- onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
240
- onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
241
- onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
242
- onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
243
- onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
244
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
245
- onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
246
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
247
- onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
248
- oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
249
- oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
250
- oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
251
- onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
252
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
253
- onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
254
- oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
255
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
256
- oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
257
- oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
258
- oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
259
- oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
260
- ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
261
- ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
262
- ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
263
- ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
264
- ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
265
- ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
266
- ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
267
- ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
268
- ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
269
- onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
270
- onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
271
- onerror: OnErrorEventHandler;
272
- onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
273
- onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
274
- ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
275
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
276
- oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
277
- onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
278
- onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
279
- onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
280
- onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
281
- onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
282
- onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
283
- onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
284
- onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
285
- onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
286
- onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
287
- onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
288
- onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
289
- onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
290
- onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
291
- onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
292
- onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
293
- onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
294
- onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
295
- onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
296
- onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
297
- onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
298
- onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
299
- onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
300
- onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
301
- onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
302
- onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
303
- onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
304
- onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
305
- onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
306
- onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
307
- onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
308
- onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
309
- onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
310
- onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
311
- onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
312
- onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
313
- onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
314
- onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
315
- onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
316
- onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
317
- onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
318
- onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
319
- onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
320
- ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
321
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
322
- ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
323
- ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
324
- ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
325
- ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
326
- ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
327
- ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
328
- ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
329
- ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
330
- onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
331
- onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
332
- onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
333
- onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
334
- onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
335
- onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
336
- onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
337
- autofocus: boolean;
338
- readonly dataset: DOMStringMap;
339
- nonce?: string;
340
- tabIndex: number;
341
- blur(): void;
342
- focus(options?: FocusOptions): void;
343
- }) & TBase;
5
+ firstUpdated(changedProperties: Map<string, unknown>): void;
6
+ }
7
+ export declare function SubLayoutApplyMixin<TBase extends Constructor<LitElement>>(Base: TBase): TBase & Constructor<SubLayoutApplyInterface>;
344
8
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trunkjs/content-pane",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "main": "./index.js",
5
5
  "dependencies": {
6
6
  "@trunkjs/browser-utils": "^1.0.14",