x-runtime-lib 0.4.13 → 0.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +14 -12
- package/dist/types/data.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -699,7 +699,9 @@ function Ts(n, s, p, y, E) {
|
|
|
699
699
|
console.error(`pkg not found version=${p}`);
|
|
700
700
|
return;
|
|
701
701
|
}
|
|
702
|
-
const N = {
|
|
702
|
+
const N = {
|
|
703
|
+
basic: {}
|
|
704
|
+
}, R = pn(16);
|
|
703
705
|
if (y) {
|
|
704
706
|
const r = m.refKey;
|
|
705
707
|
if (!m.elements.has(r)) {
|
|
@@ -716,7 +718,7 @@ function Ts(n, s, p, y, E) {
|
|
|
716
718
|
console.error(`[ref] props not found key=${E} tag=${O}`);
|
|
717
719
|
return;
|
|
718
720
|
}
|
|
719
|
-
tn(N, e), N.id = R, N.ref = {
|
|
721
|
+
tn(N, e), N.basic.id = R, N.basic.key = r, N.basic.ref = {
|
|
720
722
|
id: E
|
|
721
723
|
};
|
|
722
724
|
} else {
|
|
@@ -734,13 +736,13 @@ function Ts(n, s, p, y, E) {
|
|
|
734
736
|
console.error(`[key] props not found key=${E} tag=${O}`);
|
|
735
737
|
return;
|
|
736
738
|
}
|
|
737
|
-
tn(N, t), N.id = R, N.key = E, r.leaf || (N.children = []);
|
|
739
|
+
tn(N, t), N.basic.id = R, N.basic.key = E, r.leaf || (N.children = []);
|
|
738
740
|
}
|
|
739
741
|
return N;
|
|
740
742
|
}
|
|
741
743
|
function dc(n, s) {
|
|
742
744
|
function p(y) {
|
|
743
|
-
if (y.id === s)
|
|
745
|
+
if (y.basic.id === s)
|
|
744
746
|
return y;
|
|
745
747
|
if (y.children)
|
|
746
748
|
for (let E = 0; E < y.children.length; E++) {
|
|
@@ -758,7 +760,7 @@ function dc(n, s) {
|
|
|
758
760
|
function vc(n) {
|
|
759
761
|
function s(y) {
|
|
760
762
|
var E;
|
|
761
|
-
y.id = pn(16), (E = y.children) == null || E.forEach((O) => s(O));
|
|
763
|
+
y.basic.id = pn(16), (E = y.children) == null || E.forEach((O) => s(O));
|
|
762
764
|
}
|
|
763
765
|
const p = Mt(n);
|
|
764
766
|
return s(p), p;
|
|
@@ -821,7 +823,7 @@ const Ds = /* @__PURE__ */ un({
|
|
|
821
823
|
outer: { type: Boolean }
|
|
822
824
|
},
|
|
823
825
|
setup(n) {
|
|
824
|
-
const s = xs(), p = n, y = J(() => p.node.text), E = J(() => p.node.disabled), O = J(() => p.node.variant), m = J(() => p.node.density), N = J(() => p.node.block), R = J(() => s.value ? "dark" : "light");
|
|
826
|
+
const s = xs(), p = n, y = J(() => p.node.settings.text), E = J(() => p.node.settings.disabled), O = J(() => p.node.settings.variant), m = J(() => p.node.settings.density), N = J(() => p.node.settings.block), R = J(() => s.value ? "dark" : "light");
|
|
825
827
|
return (r, t) => {
|
|
826
828
|
const e = Ai("v-btn");
|
|
827
829
|
return sn(), cn(e, {
|
|
@@ -4951,7 +4953,7 @@ class Hs {
|
|
|
4951
4953
|
const p = this;
|
|
4952
4954
|
function y(E) {
|
|
4953
4955
|
var O;
|
|
4954
|
-
p.nodes[E.id] = E, (O = E.children) == null || O.forEach((m) => y(m));
|
|
4956
|
+
p.nodes[E.basic.id] = E, (O = E.children) == null || O.forEach((m) => y(m));
|
|
4955
4957
|
}
|
|
4956
4958
|
this.context.data.view.nodes.forEach((E) => y(E));
|
|
4957
4959
|
}
|
|
@@ -4982,7 +4984,7 @@ class Hs {
|
|
|
4982
4984
|
p,
|
|
4983
4985
|
y
|
|
4984
4986
|
);
|
|
4985
|
-
return O ? (E.push(O), this.nodes[O.id] = O, O.id) : (console.error(
|
|
4987
|
+
return O ? (E.push(O), this.nodes[O.basic.id] = O, O.basic.id) : (console.error(
|
|
4986
4988
|
"NodeMgr/addNode spawn node failed, parent=${parent} ref=${ref} key=${key}"
|
|
4987
4989
|
), "");
|
|
4988
4990
|
}
|
|
@@ -5264,7 +5266,7 @@ const nc = /* @__PURE__ */ un({
|
|
|
5264
5266
|
}
|
|
5265
5267
|
function i(a) {
|
|
5266
5268
|
let l;
|
|
5267
|
-
return a.
|
|
5269
|
+
return a.basic.refid ? l = o(a) : l = u(a), l;
|
|
5268
5270
|
}
|
|
5269
5271
|
function o(a) {
|
|
5270
5272
|
const l = ln[O.version].refKey, v = Ne[l];
|
|
@@ -5272,7 +5274,7 @@ const nc = /* @__PURE__ */ un({
|
|
|
5272
5274
|
return v ? g = Le(v.comp, {
|
|
5273
5275
|
refContext: {
|
|
5274
5276
|
parent: p.refContext,
|
|
5275
|
-
refid: a.
|
|
5277
|
+
refid: a.basic.refid
|
|
5276
5278
|
},
|
|
5277
5279
|
node: a
|
|
5278
5280
|
}) : console.assert(!1), g;
|
|
@@ -5280,10 +5282,10 @@ const nc = /* @__PURE__ */ un({
|
|
|
5280
5282
|
function u(a) {
|
|
5281
5283
|
var g;
|
|
5282
5284
|
let l;
|
|
5283
|
-
const v = Ne[a.key];
|
|
5285
|
+
const v = Ne[a.basic.key];
|
|
5284
5286
|
return v ? ((g = a.children) == null || g.forEach((T) => {
|
|
5285
5287
|
i(T);
|
|
5286
|
-
}), l = Le(v.comp, { node: a })) : console.assert(!1, `invalid element config key=${a.key}`), l;
|
|
5288
|
+
}), l = Le(v.comp, { node: a })) : console.assert(!1, `invalid element config key=${a.basic.key}`), l;
|
|
5287
5289
|
}
|
|
5288
5290
|
const c = () => {
|
|
5289
5291
|
const a = [];
|
package/dist/types/data.d.ts
CHANGED