Comparing version 2.6.42 to 2.6.43
@@ -204,3 +204,3 @@ import { isAtom as B, atom as U, RxList as j, RxSet as te, RxMap as re, arrayComputed as ne, TrackOpTypes as M, TriggerOpTypes as N, destroyComputed as F, reactive as He, ReactiveEffect as Le, computed as ue, autorun as de, Notifier as se, isReactive as pe } from "data0"; | ||
} | ||
function b(t, e) { | ||
function S(t, e) { | ||
const r = e.parentNode.insertBefore(t, e); | ||
@@ -551,3 +551,3 @@ return t.tagName === "OPTION" && Ce(t), r; | ||
s.appendChild(o.placeholder), o.render(); | ||
}), b(s, e.placeholder), n; | ||
}), S(s, e.placeholder), n; | ||
}, | ||
@@ -561,3 +561,3 @@ function(n, s) { | ||
d.appendChild(h.placeholder), h.render(); | ||
}), b(d, e.placeholder), n.push(...l); | ||
}), S(d, e.placeholder), n.push(...l); | ||
} else if (i === "pop") | ||
@@ -571,3 +571,3 @@ n.pop().destroy(); | ||
d.appendChild(h.placeholder), h.render(); | ||
}), b(d, e.element), n.unshift(...l); | ||
}), S(d, e.element), n.unshift(...l); | ||
} else if (i === "splice") { | ||
@@ -582,3 +582,3 @@ const l = document.createDocumentFragment(), d = o.slice(2).map(e.createHost); | ||
const h = dt(o, n.length); | ||
b(l, ((c = n[o[0] + h]) == null ? void 0 : c.element) || e.placeholder), n.splice(o[0], h, ...d).forEach((y) => y.destroy()); | ||
S(l, ((c = n[o[0] + h]) == null ? void 0 : c.element) || e.placeholder), n.splice(o[0], h, ...d).forEach((y) => y.destroy()); | ||
} | ||
@@ -592,3 +592,3 @@ } else if (!i && a) | ||
var h; | ||
n[l].destroy(), n[l] = e.createHost(d), b(n[l].placeholder, ((h = n[parseInt(l, 10) + 1]) == null ? void 0 : h.element) || e.placeholder), n[l].render(); | ||
n[l].destroy(), n[l] = e.createHost(d), S(n[l].placeholder, ((h = n[parseInt(l, 10) + 1]) == null ? void 0 : h.element) || e.placeholder), n[l].render(); | ||
}); | ||
@@ -650,11 +650,11 @@ else | ||
const m = this.itemConfig[u]; | ||
u && m && (m.props && (p ? d = { ...c, ...m.props } : d = Et(c, m.props)), m.propMergeHandles && Object.entries(m.propMergeHandles).forEach(([S, R]) => { | ||
d[S] = R.reduce((Te, xe) => xe(Te, h), d[S]); | ||
}), m.propsMergeHandle && (d = m.propsMergeHandle.reduce((S, R) => R(S, h), d)), m.children && (l = m.children)); | ||
u && m && (m.props && (p ? d = { ...c, ...m.props } : d = Et(c, m.props)), m.propMergeHandles && Object.entries(m.propMergeHandles).forEach(([b, R]) => { | ||
d[b] = R.reduce((Te, xe) => xe(Te, h), d[b]); | ||
}), m.propsMergeHandle && (d = m.propsMergeHandle.reduce((b, R) => R(b, h), d)), m.children && (l = m.children)); | ||
const y = ((O = this.itemConfig[u]) == null ? void 0 : O.use) || a; | ||
typeof y == "function" && !p && (h[wt] = d, d = h), typeof y == "function" && ((I = m == null ? void 0 : m.configProps) != null && I.length) && Object.assign(d, { [q]: m.configProps }), u && (d.ref = H(d.ref).concat((S) => this.refs[u] = S)); | ||
typeof y == "function" && !p && (h[wt] = d, d = h), typeof y == "function" && ((I = m == null ? void 0 : m.configProps) != null && I.length) && Object.assign(d, { [q]: m.configProps }), u && (d.ref = H(d.ref).concat((b) => this.refs[u] = b)); | ||
const E = o ? je(y, d, ...l) : C(y, d, ...l); | ||
if (typeof y != "function") { | ||
const S = this.pathContext.hostPath.filter((R) => R instanceof $).map((R) => R.props).reverse(); | ||
E.listenerBoundArgs = [S, h]; | ||
const b = this.pathContext.hostPath.filter((R) => R instanceof $).map((R) => R.props).reverse(); | ||
E.listenerBoundArgs = [b, h]; | ||
} | ||
@@ -868,3 +868,3 @@ return E; | ||
const n = this.source(), s = document.createComment("computed node"); | ||
b(s, this.placeholder); | ||
S(s, this.placeholder); | ||
const i = L(n, s, { ...this.pathContext, hostPath: [...this.pathContext.hostPath, this] }); | ||
@@ -1012,3 +1012,3 @@ se.instance.pauseTracking(), i.render(), se.instance.resetTracking(), r(() => { | ||
var e; | ||
A(this.element === this.placeholder, "should never rerender"), this.element = this.source instanceof DocumentFragment ? document.createComment("fragment start") : this.source, b(this.source, this.placeholder), this.collectInnerHost(), this.collectReactiveAttr(), this.collectRefHandles(), this.collectDetachStyledChildren(), (e = this.detachStyledChildren) != null && e.length && (this.forceHandleElement = !0), this.reactiveHosts.forEach((r) => r.render()), this.pathContext.root.attached ? this.attachRefs() : this.pathContext.root.on("attach", this.attachRefs); | ||
A(this.element === this.placeholder, "should never rerender"), this.element = this.source instanceof DocumentFragment ? document.createComment("fragment start") : this.source, S(this.element, this.placeholder), this.source instanceof DocumentFragment && S(this.source, this.placeholder), this.collectInnerHost(), this.collectReactiveAttr(), this.collectRefHandles(), this.collectDetachStyledChildren(), (e = this.detachStyledChildren) != null && e.length && (this.forceHandleElement = !0), this.reactiveHosts.forEach((r) => r.render()), this.pathContext.root.attached ? this.attachRefs() : this.pathContext.root.on("attach", this.attachRefs); | ||
} | ||
@@ -1119,3 +1119,3 @@ collectInnerHost() { | ||
} | ||
}), this.childHosts.forEach((r) => r.render()), b(e, this.placeholder); | ||
}), this.childHosts.forEach((r) => r.render()), S(e, this.placeholder); | ||
} else | ||
@@ -1153,3 +1153,3 @@ throw new Error("should never rerender"); | ||
function() { | ||
return this.manualTrack(e.hosts, M.METHOD, N.METHOD), this.manualTrack(e.hosts, M.EXPLICIT_KEY_CHANGE, N.EXPLICIT_KEY_CHANGE), b(e.renderNewHosts(e.hosts), e.placeholder), null; | ||
return this.manualTrack(e.hosts, M.METHOD, N.METHOD), this.manualTrack(e.hosts, M.EXPLICIT_KEY_CHANGE, N.EXPLICIT_KEY_CHANGE), S(e.renderNewHosts(e.hosts), e.placeholder), null; | ||
}, | ||
@@ -1163,3 +1163,3 @@ function(n, s) { | ||
const g = e.renderNewHosts(m); | ||
b(g, (h == null ? void 0 : h.element) || e.placeholder); | ||
S(g, (h == null ? void 0 : h.element) || e.placeholder); | ||
} | ||
@@ -1176,3 +1176,3 @@ const y = e.isOnlyChildrenOfParent(), E = p; | ||
const m = c; | ||
b(e.hosts.at(m).placeholder, ((d = e.hosts.at(m + 1)) == null ? void 0 : d.element) || e.placeholder), e.hosts.at(m).render(); | ||
S(e.hosts.at(m).placeholder, ((d = e.hosts.at(m + 1)) == null ? void 0 : d.element) || e.placeholder), e.hosts.at(m).render(); | ||
} else | ||
@@ -1205,3 +1205,3 @@ throw new Error("unknown trigger info"); | ||
render() { | ||
this.element = document.createTextNode(this.source.toString()), b(this.element, this.placeholder); | ||
this.element = document.createTextNode(this.source.toString()), S(this.element, this.placeholder); | ||
} | ||
@@ -1318,5 +1318,5 @@ destroy(e) { | ||
if (x) { | ||
const g = o.get(y), O = g.findIndex((S) => S === E.value); | ||
const g = o.get(y), O = g.findIndex((b) => b === E.value); | ||
O() > -1 && g.splice(O(), 1); | ||
const I = f[y].findIndex((S) => S === E); | ||
const I = f[y].findIndex((b) => b === E); | ||
I > -1 && f[y].splice(I, 1); | ||
@@ -1323,0 +1323,0 @@ } else |
{ | ||
"name": "axii", | ||
"version": "2.6.42", | ||
"version": "2.6.43", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
536905