@linkdlab/funcnodes_react_flow 0.4.7 → 0.4.8
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/funcnodes_react_flow.css +1 -1
- package/dist/index.cjs.js +3 -2
- package/dist/index.es.js +31 -20
- package/dist/index.umd.js +3 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -38952,12 +38952,12 @@ const IE = ({
|
|
|
38952
38952
|
R = t[0](R);
|
|
38953
38953
|
} catch {
|
|
38954
38954
|
}
|
|
38955
|
-
(A = r.worker) == null || A.set_io_value({
|
|
38955
|
+
R !== (o == null ? void 0 : o.value) && ((A = r.worker) == null || A.set_io_value({
|
|
38956
38956
|
nid: i.node,
|
|
38957
38957
|
ioid: i.id,
|
|
38958
38958
|
value: R,
|
|
38959
38959
|
set_default: i.render_options.set_default
|
|
38960
|
-
});
|
|
38960
|
+
}));
|
|
38961
38961
|
}, c = (R) => {
|
|
38962
38962
|
l(R.target.value);
|
|
38963
38963
|
};
|
|
@@ -39072,30 +39072,37 @@ const IE = ({
|
|
|
39072
39072
|
k.useEffect(() => {
|
|
39073
39073
|
l(t[1](s));
|
|
39074
39074
|
}, [s]);
|
|
39075
|
-
const c = (
|
|
39076
|
-
var
|
|
39077
|
-
let
|
|
39078
|
-
|
|
39075
|
+
const c = (p) => {
|
|
39076
|
+
var h;
|
|
39077
|
+
let g = p.target.value;
|
|
39078
|
+
g || (g = "<NoValue>");
|
|
39079
39079
|
try {
|
|
39080
|
-
|
|
39080
|
+
g = t[0](g);
|
|
39081
39081
|
} catch {
|
|
39082
39082
|
}
|
|
39083
|
-
(
|
|
39083
|
+
g !== s && ((h = n.worker) == null || h.set_io_value({
|
|
39084
39084
|
nid: i.node,
|
|
39085
39085
|
ioid: i.id,
|
|
39086
|
-
value:
|
|
39086
|
+
value: g,
|
|
39087
39087
|
set_default: i.render_options.set_default
|
|
39088
|
-
});
|
|
39088
|
+
}));
|
|
39089
39089
|
};
|
|
39090
39090
|
let u = i.connected ? t[1](s) : a;
|
|
39091
|
-
|
|
39092
|
-
|
|
39091
|
+
u == null && (u = "");
|
|
39092
|
+
const d = (u.match(/\n/g) || []).length, f = Math.max(...u.split(`
|
|
39093
|
+
`).map((p) => p.length), 0);
|
|
39094
|
+
return /* @__PURE__ */ b.jsx(
|
|
39095
|
+
"textarea",
|
|
39093
39096
|
{
|
|
39094
39097
|
className: "nodedatainput styledinput stringinput",
|
|
39095
39098
|
value: u,
|
|
39096
|
-
onChange: (
|
|
39097
|
-
onBlur:
|
|
39098
|
-
|
|
39099
|
+
onChange: (p) => l(p.target.value),
|
|
39100
|
+
onBlur: (p) => {
|
|
39101
|
+
c(p);
|
|
39102
|
+
},
|
|
39103
|
+
disabled: i.connected,
|
|
39104
|
+
rows: d + 1,
|
|
39105
|
+
cols: f + 1
|
|
39099
39106
|
}
|
|
39100
39107
|
);
|
|
39101
39108
|
}, uJ = ({ iostore: e }) => {
|
|
@@ -39661,8 +39668,10 @@ const IE = ({
|
|
|
39661
39668
|
type: "target"
|
|
39662
39669
|
}
|
|
39663
39670
|
),
|
|
39664
|
-
|
|
39665
|
-
|
|
39671
|
+
/* @__PURE__ */ b.jsxs("div", { className: "inner_nodeio", children: [
|
|
39672
|
+
a && /* @__PURE__ */ b.jsx("div", { className: "iovaluefield nodrag", "data-type": o, children: /* @__PURE__ */ b.jsx(a, { iostore: e, inputconverter: l }) }),
|
|
39673
|
+
/* @__PURE__ */ b.jsx("div", { className: "ioname", children: r.name })
|
|
39674
|
+
] }),
|
|
39666
39675
|
/* @__PURE__ */ b.jsx(
|
|
39667
39676
|
Sf,
|
|
39668
39677
|
{
|
|
@@ -39685,8 +39694,10 @@ const IE = ({
|
|
|
39685
39694
|
type: "source"
|
|
39686
39695
|
}
|
|
39687
39696
|
),
|
|
39688
|
-
/* @__PURE__ */ b.
|
|
39689
|
-
|
|
39697
|
+
/* @__PURE__ */ b.jsxs("div", { className: "inner_nodeio", children: [
|
|
39698
|
+
/* @__PURE__ */ b.jsx("div", { className: "ioname", children: r.name }),
|
|
39699
|
+
s ? /* @__PURE__ */ b.jsx("div", { className: "iovaluefield nodrag", children: /* @__PURE__ */ b.jsx(s, { iostore: e }) }) : /* @__PURE__ */ b.jsx("div", { className: "iovaluefield", children: /* @__PURE__ */ b.jsx(bJ, { iostore: e, typestring: o }) })
|
|
39700
|
+
] })
|
|
39690
39701
|
] });
|
|
39691
39702
|
}, NJ = (e) => {
|
|
39692
39703
|
const t = xe(Se), n = AE(e), { DataPreviewViewRenderer: r, DataViewRenderer: o } = xe(or), i = t.render_options();
|
|
@@ -39891,7 +39902,7 @@ const MJ = ({ state: e, className: t = "reacttqdm", ...n }) => {
|
|
|
39891
39902
|
}, jJ = k.memo(({ node_data: e }) => {
|
|
39892
39903
|
var n, r, o, i;
|
|
39893
39904
|
const t = (r = (n = e.render_options) == null ? void 0 : n.data) != null && r.src ? e.io[(i = (o = e.render_options) == null ? void 0 : o.data) == null ? void 0 : i.src] : void 0;
|
|
39894
|
-
return /* @__PURE__ */ b.jsxs("div", { className: "nodebody", children: [
|
|
39905
|
+
return /* @__PURE__ */ b.jsxs("div", { className: "nodebody nowheel ", children: [
|
|
39895
39906
|
e.outputs.map((s) => /* @__PURE__ */ b.jsx(TJ, { iostore: e.io[s] }, s)),
|
|
39896
39907
|
t && /* @__PURE__ */ b.jsx(FJ, { node_data: e, iostore: t }),
|
|
39897
39908
|
e.inputs.map((s) => /* @__PURE__ */ b.jsx(RJ, { iostore: e.io[s] }, s))
|