@threadlabs/looma 0.2.19 → 0.3.0
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/dist/{chunk-A5MSXQ7Y.js → chunk-3NVMCHGR.js} +2225 -1255
- package/dist/chunk-XDNZIKNI.js +2721 -0
- package/dist/declarative-generated.cjs +93 -79
- package/dist/declarative-generated.d.cts +7 -1
- package/dist/declarative-generated.d.ts +7 -1
- package/dist/declarative-generated.js +91 -78
- package/dist/declarative.cjs +1499 -1702
- package/dist/declarative.d.cts +77 -3
- package/dist/declarative.d.ts +77 -3
- package/dist/declarative.js +5 -3
- package/dist/index.cjs +3732 -3025
- package/dist/index.d.cts +211 -35
- package/dist/index.d.ts +211 -35
- package/dist/index.js +6 -61
- package/dist/loader.cjs +3725 -2962
- package/dist/loader.js +2 -2
- package/editor/{chunk-WI7ZA44X.js → chunk-U36XNFJN.js} +111 -77
- package/editor/extensions/index.d.ts +272 -27
- package/editor/index.d.ts +1 -1
- package/editor/index.js +1 -1
- package/editor/{table-overlay-DoiLie4h.d.ts → table-overlay-DZFGHQDt.d.ts} +48 -6
- package/editor/ui.d.ts +15 -11
- package/editor/ui.js +1 -1
- package/layout/index.cjs +197 -340
- package/layout/index.d.cts +11 -0
- package/layout/index.d.ts +11 -0
- package/layout/index.js +197 -340
- package/layout.css +31 -134
- package/package.json +24 -11
- package/react/index.d.ts +1276 -0
- package/react/index.js +1526 -0
- package/styles.css +5 -10
- package/svelte/index.d.ts +204 -0
- package/svelte/index.js +1881 -0
- package/theme-dark.css +81 -2
- package/theme-high-contrast.css +14 -0
- package/theme-light.css +30 -1
- package/tokens.css +45 -1
- package/vue/chunk-UZMTYDP6.js +4355 -0
- package/vue/editor/index.d.ts +78 -8
- package/vue/editor/index.js +59 -49
- package/vue/index.d.ts +67 -78
- package/vue/index.js +3 -9
- package/dist/chunk-ECJQ4YGC.js +0 -2925
- package/dist/valibot.cjs +0 -31
- package/dist/valibot.d.cts +0 -10
- package/dist/valibot.d.ts +0 -10
- package/dist/valibot.js +0 -9
- package/dist/validation-bxcou-l-.d.cts +0 -58
- package/dist/validation-bxcou-l-.d.ts +0 -58
- package/vue/chunk-P7BZ2KJZ.js +0 -3559
|
@@ -19,117 +19,131 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/declarative-generated.ts
|
|
20
20
|
var declarative_generated_exports = {};
|
|
21
21
|
__export(declarative_generated_exports, {
|
|
22
|
-
manageGeneratedProps: () =>
|
|
22
|
+
manageGeneratedProps: () => oe,
|
|
23
|
+
updateGeneratedProps: () => ie
|
|
23
24
|
});
|
|
24
25
|
module.exports = __toCommonJS(declarative_generated_exports);
|
|
25
26
|
|
|
26
|
-
//
|
|
27
|
+
// src/declarative/generated-runtime.js
|
|
27
28
|
var J = /* @__PURE__ */ Symbol.for("@nextwebwg/declarative-components.runtime.v1");
|
|
28
29
|
var h = /* @__PURE__ */ Symbol.for("@nextwebwg/declarative-components.lifecycle.v1");
|
|
29
|
-
function
|
|
30
|
-
return
|
|
30
|
+
function G(t) {
|
|
31
|
+
return t[J] ??= {};
|
|
31
32
|
}
|
|
32
|
-
function K(
|
|
33
|
-
let n =
|
|
33
|
+
function K(t, e) {
|
|
34
|
+
let n = G(t), r = n.mutationHub;
|
|
34
35
|
if (r === void 0) {
|
|
35
|
-
let
|
|
36
|
-
for (let
|
|
36
|
+
let a = t.defaultView?.MutationObserver ?? MutationObserver, l = /* @__PURE__ */ new Set(), o = new a((i) => {
|
|
37
|
+
for (let p of Array.from(l)) p(i);
|
|
37
38
|
});
|
|
38
|
-
r = { observer:
|
|
39
|
+
r = { observer: o, subscribers: l }, n.mutationHub = r, o.observe(t, { childList: true, subtree: true });
|
|
39
40
|
}
|
|
40
|
-
r.subscribers.add(
|
|
41
|
-
let
|
|
41
|
+
r.subscribers.add(e);
|
|
42
|
+
let s = true;
|
|
42
43
|
return () => {
|
|
43
|
-
|
|
44
|
+
s && (s = false, r.subscribers.delete(e), r.subscribers.size === 0 && (r.observer.disconnect(), delete n.mutationHub));
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
let
|
|
47
|
+
function U(t) {
|
|
48
|
+
let e = G(t), n = e.lifecycle;
|
|
48
49
|
if (n !== void 0) return n;
|
|
49
|
-
let r = 0,
|
|
50
|
-
let i =
|
|
51
|
-
i !== void 0 && (
|
|
52
|
-
},
|
|
53
|
-
let i = [],
|
|
54
|
-
if (
|
|
55
|
-
let b =
|
|
56
|
-
if (b[h] !== void 0 && i.push(b), b.childElementCount !== 0) for (let
|
|
50
|
+
let r = 0, s = (o) => {
|
|
51
|
+
let i = o[h];
|
|
52
|
+
i !== void 0 && (o.isConnected && i.disconnect === void 0 ? i.disconnect = i.connect(o) : !o.isConnected && i.disconnect !== void 0 && (i.disconnect(), i.disconnect = void 0));
|
|
53
|
+
}, a = K(t, (o) => {
|
|
54
|
+
let i = [], p = (y) => {
|
|
55
|
+
if (y.nodeType !== 1) return;
|
|
56
|
+
let b = y;
|
|
57
|
+
if (b[h] !== void 0 && i.push(b), b.childElementCount !== 0) for (let T of b.querySelectorAll("[data-component-root]")) T[h] !== void 0 && i.push(T);
|
|
57
58
|
};
|
|
58
|
-
for (let
|
|
59
|
-
for (let b of
|
|
60
|
-
for (let b of
|
|
59
|
+
for (let y of o) {
|
|
60
|
+
for (let b of y.addedNodes) p(b);
|
|
61
|
+
for (let b of y.removedNodes) p(b);
|
|
61
62
|
}
|
|
62
|
-
for (let
|
|
63
|
-
}),
|
|
64
|
-
let
|
|
65
|
-
|
|
66
|
-
}, remove(
|
|
67
|
-
let
|
|
68
|
-
|
|
63
|
+
for (let y of i) s(y);
|
|
64
|
+
}), l = { add(o, i) {
|
|
65
|
+
let p = o, y = p[h];
|
|
66
|
+
y !== i && (y?.disconnect?.(), y === void 0 && (r += 1), p[h] = i, s(o));
|
|
67
|
+
}, remove(o, i) {
|
|
68
|
+
let p = o;
|
|
69
|
+
p[h] === i && (i.disconnect?.(), delete p[h], r -= 1, r === 0 && (a(), delete e.lifecycle));
|
|
69
70
|
} };
|
|
70
|
-
return
|
|
71
|
+
return e.lifecycle = l, l;
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
-
let r =
|
|
74
|
-
return r.add(
|
|
73
|
+
function W(t, e, n) {
|
|
74
|
+
let r = U(t.ownerDocument), s = { connect: () => (e(), n), disconnect: void 0 };
|
|
75
|
+
return r.add(t, s), () => r.remove(t, s);
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
if (
|
|
79
|
-
|
|
80
|
-
if (
|
|
81
|
-
if (
|
|
82
|
-
if (
|
|
77
|
+
var q = /* @__PURE__ */ new WeakMap();
|
|
78
|
+
function B(t, e, n = false) {
|
|
79
|
+
if (e === "string" && typeof t == "string") return t;
|
|
80
|
+
if (e === "boolean") {
|
|
81
|
+
if (n && t === "") return true;
|
|
82
|
+
if (typeof t == "boolean") return t;
|
|
83
|
+
if (t === "" || t === "true") return true;
|
|
84
|
+
if (t === "false") return false;
|
|
83
85
|
}
|
|
84
|
-
if (
|
|
85
|
-
let r = typeof
|
|
86
|
+
if (e === "number") {
|
|
87
|
+
let r = typeof t == "number" ? t : typeof t == "string" && t.trim() !== "" ? Number(t) : Number.NaN;
|
|
86
88
|
if (Number.isFinite(r)) return r;
|
|
87
89
|
}
|
|
88
|
-
if (Array.isArray(
|
|
90
|
+
if (Array.isArray(e) && e.includes(t)) return t;
|
|
89
91
|
throw new TypeError("HR002: A prop invocation value does not satisfy its declared type.");
|
|
90
92
|
}
|
|
91
|
-
function
|
|
92
|
-
if (
|
|
93
|
-
if (
|
|
93
|
+
function v(t, e, n = false) {
|
|
94
|
+
if (e !== void 0) return B(e, t.type, n);
|
|
95
|
+
if (t.required) throw new TypeError(`HC020: Required prop \`${t.name}\` was not provided.`);
|
|
94
96
|
}
|
|
95
|
-
function
|
|
96
|
-
let r =
|
|
97
|
-
if (
|
|
98
|
-
for (let
|
|
99
|
-
let
|
|
100
|
-
|
|
97
|
+
function oe(t, e, n) {
|
|
98
|
+
let r = e.map((u) => v(u, u.value)), s = (u) => r[u] ?? e[u].default, a = new Map(e.map((u, c) => [u.attribute, c])), l = new Map(e.map((u, c) => [u.name, c])), o = /* @__PURE__ */ new Map(), i = new Set(e.map((u, c) => c)), p = false, y = false, b = () => {
|
|
99
|
+
if (y = false, !!p) {
|
|
100
|
+
for (let u of i) {
|
|
101
|
+
let c = e[u], f = c.bound ? s(u) : r[u], d = f == null ? null : String(f);
|
|
102
|
+
o.set(c.attribute, d), d === null ? t.removeAttribute(c.attribute) : t.setAttribute(c.attribute, d), n?.(c.name, s(u));
|
|
101
103
|
}
|
|
102
|
-
|
|
104
|
+
i.clear();
|
|
103
105
|
}
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
+
}, T = (u) => {
|
|
107
|
+
i.add(u), p && !y && (y = true, queueMicrotask(b));
|
|
106
108
|
};
|
|
107
|
-
|
|
108
|
-
let
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
let y = m.attributeName;
|
|
114
|
-
if (y === null) continue;
|
|
115
|
-
let p = o.get(y);
|
|
116
|
-
if (p === void 0) continue;
|
|
117
|
-
let x = e.getAttribute(y);
|
|
118
|
-
if (u.get(y) === x && u.delete(y)) continue;
|
|
119
|
-
u.delete(y);
|
|
120
|
-
let G = t[p], D = x !== null, S = E(G, D ? x : void 0, D);
|
|
121
|
-
Object.is(r[p], S) || (r[p] = S, l(p));
|
|
109
|
+
q.set(t, (u) => {
|
|
110
|
+
for (let [c, f] of Object.entries(u)) {
|
|
111
|
+
let d = l.get(c);
|
|
112
|
+
if (d === void 0) continue;
|
|
113
|
+
let g = v(e[d], f);
|
|
114
|
+
Object.is(r[d], g) || (r[d] = g, T(d));
|
|
122
115
|
}
|
|
123
116
|
});
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
117
|
+
let F = t.ownerDocument.defaultView?.MutationObserver ?? MutationObserver, O = new F((u) => {
|
|
118
|
+
for (let c of u) {
|
|
119
|
+
let f = c.attributeName;
|
|
120
|
+
if (f === null) continue;
|
|
121
|
+
let d = a.get(f);
|
|
122
|
+
if (d === void 0) continue;
|
|
123
|
+
let g = t.getAttribute(f);
|
|
124
|
+
if (o.get(f) === g && o.delete(f)) continue;
|
|
125
|
+
o.delete(f);
|
|
126
|
+
let P = e[d], S = g !== null, A = v(P, S ? g : void 0, S);
|
|
127
|
+
Object.is(r[d], A) || (r[d] = A, T(d));
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
return W(t, () => {
|
|
131
|
+
p = true;
|
|
132
|
+
for (let [u, c] of e.entries()) {
|
|
133
|
+
let f = t.getAttribute(c.attribute), d = o.has(c.attribute) ? o.get(c.attribute) : null;
|
|
134
|
+
f !== null && f !== d && (r[u] = v(c, f, true)), o.delete(c.attribute);
|
|
135
|
+
}
|
|
136
|
+
for (let u = 0; u < e.length; u += 1) i.add(u);
|
|
137
|
+
b(), O.observe(t, { attributes: true, attributeFilter: e.map((u) => u.attribute) });
|
|
128
138
|
}, () => {
|
|
129
|
-
|
|
139
|
+
p = false, O.disconnect();
|
|
130
140
|
});
|
|
131
141
|
}
|
|
142
|
+
function ie(t, e) {
|
|
143
|
+
q.get(t)?.(e);
|
|
144
|
+
}
|
|
132
145
|
// Annotate the CommonJS export names for ESM import in node:
|
|
133
146
|
0 && (module.exports = {
|
|
134
|
-
manageGeneratedProps
|
|
147
|
+
manageGeneratedProps,
|
|
148
|
+
updateGeneratedProps
|
|
135
149
|
});
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
/** One compiled prop: the value the caller supplied (undefined when omitted), its declared default, and whether the template binds its data-* attribute. */
|
|
1
2
|
interface GeneratedProp {
|
|
2
3
|
readonly name: string;
|
|
3
4
|
readonly attribute: string;
|
|
4
5
|
readonly value: unknown;
|
|
6
|
+
readonly default?: unknown;
|
|
7
|
+
readonly bound?: boolean;
|
|
5
8
|
readonly type: string | readonly unknown[];
|
|
6
9
|
readonly required: boolean;
|
|
7
10
|
}
|
|
11
|
+
/** Reflects explicit props as data-* attributes and parses later attribute writes, for the lifetime of a native root. */
|
|
8
12
|
declare function manageGeneratedProps(element: Element, props: readonly GeneratedProp[], apply?: (name: string, value: unknown) => void): () => void;
|
|
13
|
+
/** Framework-adapter prop channel for compiled components: applies props as authored attributes would be. */
|
|
14
|
+
declare function updateGeneratedProps(element: Element, props: Readonly<Record<string, unknown>>): void;
|
|
9
15
|
|
|
10
|
-
export { type GeneratedProp, manageGeneratedProps };
|
|
16
|
+
export { type GeneratedProp, manageGeneratedProps, updateGeneratedProps };
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
/** One compiled prop: the value the caller supplied (undefined when omitted), its declared default, and whether the template binds its data-* attribute. */
|
|
1
2
|
interface GeneratedProp {
|
|
2
3
|
readonly name: string;
|
|
3
4
|
readonly attribute: string;
|
|
4
5
|
readonly value: unknown;
|
|
6
|
+
readonly default?: unknown;
|
|
7
|
+
readonly bound?: boolean;
|
|
5
8
|
readonly type: string | readonly unknown[];
|
|
6
9
|
readonly required: boolean;
|
|
7
10
|
}
|
|
11
|
+
/** Reflects explicit props as data-* attributes and parses later attribute writes, for the lifetime of a native root. */
|
|
8
12
|
declare function manageGeneratedProps(element: Element, props: readonly GeneratedProp[], apply?: (name: string, value: unknown) => void): () => void;
|
|
13
|
+
/** Framework-adapter prop channel for compiled components: applies props as authored attributes would be. */
|
|
14
|
+
declare function updateGeneratedProps(element: Element, props: Readonly<Record<string, unknown>>): void;
|
|
9
15
|
|
|
10
|
-
export { type GeneratedProp, manageGeneratedProps };
|
|
16
|
+
export { type GeneratedProp, manageGeneratedProps, updateGeneratedProps };
|
|
@@ -1,111 +1,124 @@
|
|
|
1
1
|
import "./chunk-MLKGABMK.js";
|
|
2
2
|
|
|
3
|
-
//
|
|
3
|
+
// src/declarative/generated-runtime.js
|
|
4
4
|
var J = /* @__PURE__ */ Symbol.for("@nextwebwg/declarative-components.runtime.v1");
|
|
5
5
|
var h = /* @__PURE__ */ Symbol.for("@nextwebwg/declarative-components.lifecycle.v1");
|
|
6
|
-
function
|
|
7
|
-
return
|
|
6
|
+
function G(t) {
|
|
7
|
+
return t[J] ??= {};
|
|
8
8
|
}
|
|
9
|
-
function K(
|
|
10
|
-
let n =
|
|
9
|
+
function K(t, e) {
|
|
10
|
+
let n = G(t), r = n.mutationHub;
|
|
11
11
|
if (r === void 0) {
|
|
12
|
-
let
|
|
13
|
-
for (let
|
|
12
|
+
let a = t.defaultView?.MutationObserver ?? MutationObserver, l = /* @__PURE__ */ new Set(), o = new a((i) => {
|
|
13
|
+
for (let p of Array.from(l)) p(i);
|
|
14
14
|
});
|
|
15
|
-
r = { observer:
|
|
15
|
+
r = { observer: o, subscribers: l }, n.mutationHub = r, o.observe(t, { childList: true, subtree: true });
|
|
16
16
|
}
|
|
17
|
-
r.subscribers.add(
|
|
18
|
-
let
|
|
17
|
+
r.subscribers.add(e);
|
|
18
|
+
let s = true;
|
|
19
19
|
return () => {
|
|
20
|
-
|
|
20
|
+
s && (s = false, r.subscribers.delete(e), r.subscribers.size === 0 && (r.observer.disconnect(), delete n.mutationHub));
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
let
|
|
23
|
+
function U(t) {
|
|
24
|
+
let e = G(t), n = e.lifecycle;
|
|
25
25
|
if (n !== void 0) return n;
|
|
26
|
-
let r = 0,
|
|
27
|
-
let i =
|
|
28
|
-
i !== void 0 && (
|
|
29
|
-
},
|
|
30
|
-
let i = [],
|
|
31
|
-
if (
|
|
32
|
-
let b =
|
|
33
|
-
if (b[h] !== void 0 && i.push(b), b.childElementCount !== 0) for (let
|
|
26
|
+
let r = 0, s = (o) => {
|
|
27
|
+
let i = o[h];
|
|
28
|
+
i !== void 0 && (o.isConnected && i.disconnect === void 0 ? i.disconnect = i.connect(o) : !o.isConnected && i.disconnect !== void 0 && (i.disconnect(), i.disconnect = void 0));
|
|
29
|
+
}, a = K(t, (o) => {
|
|
30
|
+
let i = [], p = (y) => {
|
|
31
|
+
if (y.nodeType !== 1) return;
|
|
32
|
+
let b = y;
|
|
33
|
+
if (b[h] !== void 0 && i.push(b), b.childElementCount !== 0) for (let T of b.querySelectorAll("[data-component-root]")) T[h] !== void 0 && i.push(T);
|
|
34
34
|
};
|
|
35
|
-
for (let
|
|
36
|
-
for (let b of
|
|
37
|
-
for (let b of
|
|
35
|
+
for (let y of o) {
|
|
36
|
+
for (let b of y.addedNodes) p(b);
|
|
37
|
+
for (let b of y.removedNodes) p(b);
|
|
38
38
|
}
|
|
39
|
-
for (let
|
|
40
|
-
}),
|
|
41
|
-
let
|
|
42
|
-
|
|
43
|
-
}, remove(
|
|
44
|
-
let
|
|
45
|
-
|
|
39
|
+
for (let y of i) s(y);
|
|
40
|
+
}), l = { add(o, i) {
|
|
41
|
+
let p = o, y = p[h];
|
|
42
|
+
y !== i && (y?.disconnect?.(), y === void 0 && (r += 1), p[h] = i, s(o));
|
|
43
|
+
}, remove(o, i) {
|
|
44
|
+
let p = o;
|
|
45
|
+
p[h] === i && (i.disconnect?.(), delete p[h], r -= 1, r === 0 && (a(), delete e.lifecycle));
|
|
46
46
|
} };
|
|
47
|
-
return
|
|
47
|
+
return e.lifecycle = l, l;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
let r =
|
|
51
|
-
return r.add(
|
|
49
|
+
function W(t, e, n) {
|
|
50
|
+
let r = U(t.ownerDocument), s = { connect: () => (e(), n), disconnect: void 0 };
|
|
51
|
+
return r.add(t, s), () => r.remove(t, s);
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
if (
|
|
56
|
-
|
|
57
|
-
if (
|
|
58
|
-
if (
|
|
59
|
-
if (
|
|
53
|
+
var q = /* @__PURE__ */ new WeakMap();
|
|
54
|
+
function B(t, e, n = false) {
|
|
55
|
+
if (e === "string" && typeof t == "string") return t;
|
|
56
|
+
if (e === "boolean") {
|
|
57
|
+
if (n && t === "") return true;
|
|
58
|
+
if (typeof t == "boolean") return t;
|
|
59
|
+
if (t === "" || t === "true") return true;
|
|
60
|
+
if (t === "false") return false;
|
|
60
61
|
}
|
|
61
|
-
if (
|
|
62
|
-
let r = typeof
|
|
62
|
+
if (e === "number") {
|
|
63
|
+
let r = typeof t == "number" ? t : typeof t == "string" && t.trim() !== "" ? Number(t) : Number.NaN;
|
|
63
64
|
if (Number.isFinite(r)) return r;
|
|
64
65
|
}
|
|
65
|
-
if (Array.isArray(
|
|
66
|
+
if (Array.isArray(e) && e.includes(t)) return t;
|
|
66
67
|
throw new TypeError("HR002: A prop invocation value does not satisfy its declared type.");
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
-
if (
|
|
70
|
-
if (
|
|
69
|
+
function v(t, e, n = false) {
|
|
70
|
+
if (e !== void 0) return B(e, t.type, n);
|
|
71
|
+
if (t.required) throw new TypeError(`HC020: Required prop \`${t.name}\` was not provided.`);
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
-
let r =
|
|
74
|
-
if (
|
|
75
|
-
for (let
|
|
76
|
-
let
|
|
77
|
-
|
|
73
|
+
function oe(t, e, n) {
|
|
74
|
+
let r = e.map((u) => v(u, u.value)), s = (u) => r[u] ?? e[u].default, a = new Map(e.map((u, c) => [u.attribute, c])), l = new Map(e.map((u, c) => [u.name, c])), o = /* @__PURE__ */ new Map(), i = new Set(e.map((u, c) => c)), p = false, y = false, b = () => {
|
|
75
|
+
if (y = false, !!p) {
|
|
76
|
+
for (let u of i) {
|
|
77
|
+
let c = e[u], f = c.bound ? s(u) : r[u], d = f == null ? null : String(f);
|
|
78
|
+
o.set(c.attribute, d), d === null ? t.removeAttribute(c.attribute) : t.setAttribute(c.attribute, d), n?.(c.name, s(u));
|
|
78
79
|
}
|
|
79
|
-
|
|
80
|
+
i.clear();
|
|
80
81
|
}
|
|
81
|
-
},
|
|
82
|
-
|
|
82
|
+
}, T = (u) => {
|
|
83
|
+
i.add(u), p && !y && (y = true, queueMicrotask(b));
|
|
83
84
|
};
|
|
84
|
-
|
|
85
|
-
let
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
let y = m.attributeName;
|
|
91
|
-
if (y === null) continue;
|
|
92
|
-
let p = o.get(y);
|
|
93
|
-
if (p === void 0) continue;
|
|
94
|
-
let x = e.getAttribute(y);
|
|
95
|
-
if (u.get(y) === x && u.delete(y)) continue;
|
|
96
|
-
u.delete(y);
|
|
97
|
-
let G = t[p], D = x !== null, S = E(G, D ? x : void 0, D);
|
|
98
|
-
Object.is(r[p], S) || (r[p] = S, l(p));
|
|
85
|
+
q.set(t, (u) => {
|
|
86
|
+
for (let [c, f] of Object.entries(u)) {
|
|
87
|
+
let d = l.get(c);
|
|
88
|
+
if (d === void 0) continue;
|
|
89
|
+
let g = v(e[d], f);
|
|
90
|
+
Object.is(r[d], g) || (r[d] = g, T(d));
|
|
99
91
|
}
|
|
100
92
|
});
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
93
|
+
let F = t.ownerDocument.defaultView?.MutationObserver ?? MutationObserver, O = new F((u) => {
|
|
94
|
+
for (let c of u) {
|
|
95
|
+
let f = c.attributeName;
|
|
96
|
+
if (f === null) continue;
|
|
97
|
+
let d = a.get(f);
|
|
98
|
+
if (d === void 0) continue;
|
|
99
|
+
let g = t.getAttribute(f);
|
|
100
|
+
if (o.get(f) === g && o.delete(f)) continue;
|
|
101
|
+
o.delete(f);
|
|
102
|
+
let P = e[d], S = g !== null, A = v(P, S ? g : void 0, S);
|
|
103
|
+
Object.is(r[d], A) || (r[d] = A, T(d));
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
return W(t, () => {
|
|
107
|
+
p = true;
|
|
108
|
+
for (let [u, c] of e.entries()) {
|
|
109
|
+
let f = t.getAttribute(c.attribute), d = o.has(c.attribute) ? o.get(c.attribute) : null;
|
|
110
|
+
f !== null && f !== d && (r[u] = v(c, f, true)), o.delete(c.attribute);
|
|
111
|
+
}
|
|
112
|
+
for (let u = 0; u < e.length; u += 1) i.add(u);
|
|
113
|
+
b(), O.observe(t, { attributes: true, attributeFilter: e.map((u) => u.attribute) });
|
|
105
114
|
}, () => {
|
|
106
|
-
|
|
115
|
+
p = false, O.disconnect();
|
|
107
116
|
});
|
|
108
117
|
}
|
|
118
|
+
function ie(t, e) {
|
|
119
|
+
q.get(t)?.(e);
|
|
120
|
+
}
|
|
109
121
|
export {
|
|
110
|
-
|
|
122
|
+
oe as manageGeneratedProps,
|
|
123
|
+
ie as updateGeneratedProps
|
|
111
124
|
};
|