@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 +4 -0
- package/components/tj-content-pane/TjContentPane.d.ts +1 -12
- package/index.js +130 -129
- package/mixins/SubLayoutApplyMixin.d.ts +5 -341
- package/package.json +1 -1
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
|
|
2
|
-
import { html as
|
|
3
|
-
import { customElement as
|
|
4
|
-
const
|
|
5
|
-
var
|
|
6
|
-
throw TypeError(
|
|
7
|
-
},
|
|
8
|
-
for (var i = 0, a = e
|
|
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 = (
|
|
11
|
-
var c, s, f,
|
|
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](
|
|
14
|
-
return H(this, a,
|
|
13
|
+
}, set [r](u) {
|
|
14
|
+
return H(this, a, u);
|
|
15
15
|
} }, r));
|
|
16
|
-
n ?
|
|
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
|
-
|
|
19
|
-
return n ||
|
|
20
|
-
}, z = (
|
|
21
|
-
|
|
22
|
-
class w extends (T =
|
|
23
|
-
constructor(
|
|
24
|
-
super(), this.originalCode = void 0,
|
|
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
|
|
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 =
|
|
46
|
+
m = gt(T);
|
|
47
47
|
q = /* @__PURE__ */ new WeakMap();
|
|
48
48
|
Y(m, 4, "message", Z, w, q);
|
|
49
|
-
w = Y(m, 0, "TjErrorElement",
|
|
50
|
-
w.styles = [
|
|
49
|
+
w = Y(m, 0, "TjErrorElement", tt, w);
|
|
50
|
+
w.styles = [dt(pt)];
|
|
51
51
|
N(m, 1, w);
|
|
52
|
-
function
|
|
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
|
|
55
|
+
let h = 0;
|
|
56
56
|
for (; ; ) {
|
|
57
|
-
const l = f.exec(
|
|
58
|
-
if (!l || l.index !==
|
|
59
|
-
if (!r && l && l.index >
|
|
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 (!
|
|
68
|
-
const _ = l[2],
|
|
69
|
-
c.push({ name: _, value:
|
|
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
|
-
|
|
71
|
+
h += n.length;
|
|
72
72
|
}
|
|
73
|
-
return { tag: o, id: i, classes: a, attrs: c, attrsMap: s, length:
|
|
73
|
+
return { tag: o, id: i, classes: a, attrs: c, attrsMap: s, length: h, rest: t.slice(h) };
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return typeof
|
|
75
|
+
function xt(t) {
|
|
76
|
+
return typeof t.beforeLayoutCallback == "function";
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Et(t, e, r) {
|
|
79
79
|
var n, _;
|
|
80
|
-
const o = /^(\+|-|)([0-9]+\.?[0-9]*);?/, i = r.replace(o, ""), a =
|
|
81
|
-
(
|
|
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
|
|
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.`,
|
|
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
|
|
91
|
-
|
|
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:
|
|
95
|
+
skipChildren: h
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
function $(
|
|
99
|
-
const { recursive: r = !0 } =
|
|
98
|
+
function $(t, e = {}) {
|
|
99
|
+
const { recursive: r = !0 } = e;
|
|
100
100
|
let o = [];
|
|
101
|
-
if (Array.isArray(
|
|
102
|
-
return
|
|
103
|
-
if (!(
|
|
101
|
+
if (Array.isArray(t))
|
|
102
|
+
return t.forEach((s) => o.push(...$(s, e))), o;
|
|
103
|
+
if (!(t instanceof HTMLElement))
|
|
104
104
|
return [];
|
|
105
|
-
const i =
|
|
106
|
-
let a = !1, c =
|
|
107
|
-
return i && ({ replacementElement: c, skipChildren: a } =
|
|
105
|
+
const i = t.getAttribute("layout");
|
|
106
|
+
let a = !1, c = t;
|
|
107
|
+
return i && ({ replacementElement: c, skipChildren: a } = Et(t, e, i)), r && !a && Array.from(c.children).forEach((f) => o.push(...$(f, e))), o;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
109
|
+
function Rt(t) {
|
|
110
|
+
return t && typeof t == "object" && "__I__" in t && typeof t.__I__ == "object" && "i" in t.__I__;
|
|
111
111
|
}
|
|
112
|
-
class
|
|
113
|
-
constructor(
|
|
114
|
-
this.debug = r, this.currentContainerNode = null, this.containerPath = [], this.containerIndex = [0], this.lastFixedI = 20, this.currentContainerNode = this.rootNode =
|
|
112
|
+
class kt {
|
|
113
|
+
constructor(e, r = !1) {
|
|
114
|
+
this.debug = r, this.currentContainerNode = null, this.containerPath = [], this.containerIndex = [0], this.lastFixedI = 20, this.currentContainerNode = this.rootNode = e, this.containerPath.push(this.rootNode);
|
|
115
115
|
}
|
|
116
|
-
getI(
|
|
117
|
-
const r =
|
|
116
|
+
getI(e) {
|
|
117
|
+
const r = e.tagName, o = e.getAttribute("layout"), i = { i: -99, variant: "new", tag: "hr", hi: null };
|
|
118
118
|
if (o) {
|
|
119
119
|
const a = /^(\+|-|)([0-9]\.?[0-9]?|)(;|$)/, c = o.match(a);
|
|
120
120
|
c && (i.variant = c[1] === "+" ? "append" : c[1] === "-" ? "skip" : "new", c[2] !== "" && (i.i = parseFloat(c[2]) * 10));
|
|
@@ -125,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(
|
|
128
|
+
getAttributeRecords(e, r = !1) {
|
|
129
129
|
const o = {};
|
|
130
|
-
for (const i of Array.from(
|
|
131
|
-
i.name.startsWith("section-") ? o[i.name.replace(/^section-/, "")] = i.value : (i.name.startsWith("layout") || r) && (o[i.name] = i.value,
|
|
132
|
-
return r || Array.from(
|
|
133
|
-
i.startsWith("section-") && (o.class = (o.class ? o.class + " " : "") + i.replace(/^section-/, ""),
|
|
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(
|
|
137
|
-
const o = this.getAttributeRecords(
|
|
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(
|
|
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(
|
|
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,
|
|
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(
|
|
150
|
+
appendToCurrentContainer(e) {
|
|
151
151
|
if (this.currentContainerNode === null)
|
|
152
152
|
throw new Error("No current container node set");
|
|
153
|
-
this.currentContainerNode.appendChild(
|
|
153
|
+
this.currentContainerNode.appendChild(e);
|
|
154
154
|
}
|
|
155
|
-
arrange(
|
|
156
|
-
for (let r of
|
|
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
|
|
171
|
-
throw TypeError(
|
|
172
|
-
},
|
|
173
|
-
for (var i = 0, a = e
|
|
170
|
+
var St = Object.create, W = Object.defineProperty, $t = Object.getOwnPropertyDescriptor, et = (t, e) => (e = Symbol[t]) ? e : Symbol.for("Symbol." + t), b = (t) => {
|
|
171
|
+
throw TypeError(t);
|
|
172
|
+
}, It = (t, e, r) => e in t ? W(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, G = (t, e) => W(t, "name", { value: e, configurable: !0 }), Lt = (t) => [, , , St((t == null ? void 0 : t[et("metadata")]) ?? null)], rt = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], S = (t) => t !== void 0 && typeof t != "function" ? b("Function expected") : t, Nt = (t, e, r, o, i) => ({ kind: rt[t], name: e, metadata: o, addInitializer: (a) => r._ ? b("Already initialized") : i.push(S(a || null)) }), Tt = (t, e) => It(e, et("metadata"), t[3]), M = (t, e, r, o) => {
|
|
173
|
+
for (var i = 0, a = t[e >> 1], c = a && a.length; i < c; i++) e & 1 ? a[i].call(r) : o = a[i].call(r, o);
|
|
174
174
|
return o;
|
|
175
|
-
},
|
|
176
|
-
var c, s, f,
|
|
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](
|
|
179
|
-
return
|
|
178
|
+
}, set [r](u) {
|
|
179
|
+
return U(this, a, u);
|
|
180
180
|
} }, r));
|
|
181
|
-
n ?
|
|
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
|
-
|
|
184
|
-
return n ||
|
|
185
|
-
}, F = (
|
|
186
|
-
|
|
187
|
-
class I extends (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(),
|
|
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
|
|
198
|
+
const e = new st("SectionTreeBuilder");
|
|
199
199
|
this.log("arrange() called");
|
|
200
|
-
const r = new
|
|
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 }),
|
|
205
|
+
$(Array.from(this.children), { recursive: !0 }), e.lap("after arrange");
|
|
206
206
|
}
|
|
207
207
|
async connectedCallback() {
|
|
208
|
-
await
|
|
208
|
+
await ct(), super.connectedCallback(), this.arrange();
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
A =
|
|
211
|
+
A = Lt(O);
|
|
212
212
|
R = /* @__PURE__ */ new WeakMap();
|
|
213
|
-
|
|
214
|
-
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
|
|
217
|
-
const o = [], i =
|
|
216
|
+
function Dt(t, e, r) {
|
|
217
|
+
const o = [], i = e.split("|");
|
|
218
218
|
for (const a of i) {
|
|
219
|
-
const c =
|
|
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,
|
|
224
|
-
s.setAttribute(f,
|
|
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
|
|
230
|
-
const r =
|
|
229
|
+
function zt(t, e) {
|
|
230
|
+
const r = t.split("|");
|
|
231
231
|
for (const o of r) {
|
|
232
|
-
const i =
|
|
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
|
|
239
|
-
class
|
|
238
|
+
function Bt(t) {
|
|
239
|
+
class e extends t {
|
|
240
240
|
beforeLayoutCallback(o, i, a) {
|
|
241
241
|
return !1;
|
|
242
242
|
}
|
|
243
|
-
|
|
244
|
-
var a;
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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
|
-
|
|
252
|
-
} catch (
|
|
253
|
-
throw this.error(`"${
|
|
252
|
+
h = zt(f, this);
|
|
253
|
+
} catch (l) {
|
|
254
|
+
throw this.error(`"${l}" in slot`, s), l;
|
|
254
255
|
}
|
|
255
|
-
|
|
256
|
-
if (
|
|
257
|
-
const
|
|
258
|
-
if (!
|
|
259
|
-
const
|
|
260
|
-
|
|
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
|
-
}), !
|
|
263
|
-
const
|
|
264
|
-
|
|
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
|
|
272
|
+
return e;
|
|
272
273
|
}
|
|
273
274
|
export {
|
|
274
275
|
I as ContentAreaElement2,
|
|
275
|
-
|
|
276
|
-
|
|
276
|
+
kt as SectionTreeBuilder,
|
|
277
|
+
Bt as SubLayoutApplyMixin,
|
|
277
278
|
$ as applyLayout,
|
|
278
|
-
|
|
279
|
-
|
|
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
|
|
3
|
+
export interface SubLayoutApplyInterface {
|
|
3
4
|
beforeLayoutCallback(element: HTMLElement, replacementElement: HTMLElement, children: HTMLElement[]): boolean;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 {};
|