@code0-tech/pictor 0.0.0-mvp.29 → 0.0.0-mvp.30
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/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/react-contenteditable.js +7 -0
- package/dist/_virtual/react-contenteditable2.js +4 -0
- package/dist/_virtual/react-dom-server-legacy.browser.development.js +4 -0
- package/dist/_virtual/react-dom-server-legacy.browser.production.js +4 -0
- package/dist/_virtual/react-dom-server.browser.development.js +4 -0
- package/dist/_virtual/react-dom-server.browser.production.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/server.browser.js +5 -0
- package/dist/_virtual/server.browser2.js +4 -0
- package/dist/assets/components/d-resizable/DResizable.style.css +1 -1
- package/dist/assets/components/form/Input.style.css +1 -1
- package/dist/components/breadcrumb/Breadcrumb.js +12 -12
- package/dist/components/button-group/ButtonGroup.js +12 -12
- package/dist/components/d-flow/DFlow.edges.hook.js +57 -54
- package/dist/components/d-flow/DFlow.js +304 -268
- package/dist/components/d-flow/DFlow.nodes.hook.js +60 -59
- package/dist/components/d-flow/DFlow.service.d.ts +3 -2
- package/dist/components/d-flow/DFlow.service.js +62 -47
- package/dist/components/d-flow/DFlow.util.d.ts +4 -0
- package/dist/components/d-flow/DFlow.util.js +63 -0
- package/dist/components/d-flow/DFlowEdge.js +34 -34
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +17 -14
- package/dist/components/d-flow-data-type/DFlowDataType.view.d.ts +7 -4
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +11 -6
- package/dist/components/d-flow-file/DFlowTabDefault.d.ts +0 -3
- package/dist/components/d-flow-file/DFlowTabDefault.js +77 -112
- package/dist/components/d-flow-file/DFlowTabTrigger.js +38 -49
- package/dist/components/d-flow-file/DFlowTabs.js +26 -27
- package/dist/components/d-flow-folder/DFlowFolder.js +170 -143
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +18 -11
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +1 -0
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +4 -5
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +1 -1
- package/dist/components/d-flow-function/DFlowFunction.view.d.ts +14 -11
- package/dist/components/d-flow-function/DFlowFunction.view.js +19 -12
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +72 -75
- package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +27 -32
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +17 -10
- package/dist/components/d-flow-input/DFlowInputDataType.js +38 -33
- package/dist/components/d-flow-input/DFlowInputDefault.d.ts +10 -0
- package/dist/components/d-flow-input/DFlowInputDefault.js +128 -0
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +7 -0
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +24 -0
- package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +11 -0
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +44 -0
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +11 -0
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +33 -0
- package/dist/components/d-flow-panel/DFlowExport.js +1 -1
- package/dist/components/d-flow-panel/DFlowMiniMap.js +1 -1
- package/dist/components/d-flow-panel/DFlowPanelControl.js +34 -32
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +34 -0
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +50 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +133 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +3 -18
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +19 -156
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +47 -58
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.js +5 -4
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +6 -6
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +44 -0
- package/dist/components/d-flow-type/DFlowType.view.d.ts +5 -5
- package/dist/components/d-flow-type/DFlowType.view.js +22 -12
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +1 -1
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +39 -43
- package/dist/components/d-resizable/DResizable.d.ts +4 -4
- package/dist/components/d-resizable/DResizable.js +22 -21
- package/dist/components/d-user/DUserInput.js +23 -21
- package/dist/components/file-tabs/FileTabs.service.d.ts +0 -1
- package/dist/components/file-tabs/FileTabs.service.js +49 -53
- package/dist/components/form/EmailInput.js +9 -9
- package/dist/components/form/Input.d.ts +2 -1
- package/dist/components/form/Input.js +294 -397
- package/dist/components/form/Input.syntax.hook.d.ts +1 -18
- package/dist/components/form/Input.syntax.hook.js +7 -73
- package/dist/components/form/Input.utils.d.ts +1 -2
- package/dist/components/form/Input.utils.js +26 -21
- package/dist/components/form/InputContentEditable.hook.d.ts +40 -0
- package/dist/components/form/InputContentEditable.hook.js +471 -0
- package/dist/components/form/InputSuggestion.d.ts +2 -2
- package/dist/components/form/InputSuggestion.js +169 -107
- package/dist/components/form/PasswordInput.js +8 -8
- package/dist/components/form/TextInput.js +11 -11
- package/dist/components/form/useForm.d.ts +1 -0
- package/dist/components/form/useForm.js +45 -60
- package/dist/components/menu/Menu.js +4 -4
- package/dist/index.js +155 -154
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +30 -30
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +8 -8
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +8 -8
- package/dist/node_modules/fast-deep-equal/index.js +31 -0
- package/dist/node_modules/object-assign/index.js +49 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
- package/dist/node_modules/prop-types/index.js +17 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +87 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +70 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react-contenteditable/lib/react-contenteditable.js +132 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +6235 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +4096 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +6753 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +4645 -0
- package/dist/node_modules/react-dom/server.browser.js +15 -0
- package/dist/utils/generics.d.ts +2 -0
- package/dist/utils/generics.js +93 -80
- package/dist/utils/index.js +22 -21
- package/dist/utils/inspection.d.ts +4 -2
- package/dist/utils/inspection.js +27 -2
- package/package.json +10 -8
- package/dist/components/form/Input.selection.hook.d.ts +0 -17
- package/dist/components/form/Input.selection.hook.js +0 -78
- package/dist/components/form/InputSyntax.d.ts +0 -19
- package/dist/components/form/InputSyntax.js +0 -52
- package/dist/components/form/inputSyntaxMapping.d.ts +0 -3
- package/dist/components/form/inputSyntaxMapping.js +0 -42
|
@@ -1 +1 @@
|
|
|
1
|
-
.d-resizable__panel{color:#fff;position:relative;overflow:hidden;z-index:0}.d-resizable__panel{background:#030014;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box;border:none}.d-resizable__panel:has(.d-resizable__panel){background:#030014}.d-resizable__handle{position:relative;display:flex;align-items:center;justify-content:center}.d-resizable__handle[
|
|
1
|
+
.d-resizable__panel{color:#fff;position:relative;overflow:hidden;z-index:0}.d-resizable__panel{background:#030014;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box;border:none}.d-resizable__panel:has(.d-resizable__panel){background:#030014}.d-resizable__handle{position:relative;display:flex;align-items:center;justify-content:center;background:#ffffff1a;outline:none}.d-resizable__handle[aria-orientation=vertical]{width:1px;height:100%}.d-resizable__handle[aria-orientation=horizontal]{height:1px;width:100%}.d-resizable__handle-bar{z-index:1;position:relative;border-radius:.7rem;height:10%;padding:.2rem}.d-resizable__handle-bar{background:#1c1a2c;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box;border:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.input{display:flex;z-index:1;align-items:
|
|
1
|
+
.input{display:flex;z-index:1;align-items:center;box-sizing:border-box}.input{background:#1c1a2c;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box}.input:hover{background:#ffffff26}.input:active,.input:focus,.input[aria-selected=true],.input[data-state=open]{background:#fff3;outline:none}.input{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border-radius:1rem}.input:has(.input__control:focus),.input:has(.input__control[contenteditable=true]:focus){background:#fff3;outline:none}.input--not-valid{background:#180016;border:1px solid rgba(217,4,41,.1);color:#ffffffbf;position:relative;box-sizing:border-box}.input__left,.input__right{display:flex;align-items:stretch;margin:.175rem;gap:.7rem}.input__left>button,.input__right>button{height:100%;padding-left:0;padding-right:0}.input__left--action,.input__right--action{padding:0}.input__left--placeholder,.input__right--placeholder{background:#030014;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border-radius:.825rem;padding:.7rem}.input__left{padding-left:.7rem}.input__left--icon{align-items:center}.input__right{padding-right:.7rem}.input__right--icon{align-items:center}.input__control{background:none;border:none;outline:none;margin:.7rem;vertical-align:middle;flex:1;width:100%;font-size:.8rem;box-sizing:border-box;color:#ffffff80}.input__control{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.input__token{display:inline-flex;align-items:center;vertical-align:middle;user-select:none;-webkit-user-select:none;-moz-user-select:none}.input__label{text-transform:uppercase;color:#ffffff80;font-size:.7rem;display:block}.input__label{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.input__description{color:#ffffff80;font-size:.8rem;margin:.35rem 0 .7rem;display:block}.input__description{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.input__message{padding:.7rem;z-index:0;display:flex;align-items:center;font-size:.7rem;gap:.35rem;margin-top:.7rem}.input__message{background:#180016;border:1px solid rgba(217,4,41,.1);color:#ffffffbf;position:relative;box-sizing:border-box;border-radius:1rem;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.input__message>svg{width:.8rem;height:.8rem}.pin-input{display:flex;justify-content:space-between;gap:.7rem;position:relative;background:transparent}.pin-input__field{flex:1;width:100%;aspect-ratio:1/1;text-align:center}.number-input::-webkit-outer-spin-button,.number-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number-input[type=number]{-moz-appearance:textfield}.radio-input{background:transparent!important;border:none!important;display:flex;align-items:center;box-sizing:border-box;gap:.35rem;position:relative}.radio-input__button{top:-1px;width:18px;height:18px;padding:.35rem}.radio-input__button{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.radio-input__button:active,.radio-input__button:focus,.radio-input__button[aria-selected=true],.radio-input__button[data-state=open]{background:#353343;outline:none}.radio-input__button{background:#1c1a2c;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box}.radio-input__button:disabled,.radio-input__button[data-disabled],.radio-input__button[aria-disabled=true],.radio-input__button--disabled{cursor:not-allowed;opacity:25%;pointer-events:unset}.radio-input__button{border-radius:1rem}.radio-input__button[data-state=checked]{background:#353343;outline:none}.radio-input__indicator{height:100%;position:relative;display:block;aspect-ratio:1/1}.radio-input__indicator[data-state=checked]{background-color:#70ffb2}.radio-input__indicator[data-state=checked]{border-radius:1rem}.radio-button{padding:0;display:inline-flex}.checkbox-input{background:transparent!important;border:none!important;align-items:center;box-sizing:border-box;gap:.35rem;padding:.35rem 0}.checkbox-input__button{aspect-ratio:1/1;width:1.3rem;height:1.3rem;display:flex;align-items:center;justify-content:center;border-radius:.35rem;cursor:pointer}.checkbox-input__button{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.checkbox-input__button:active,.checkbox-input__button:focus,.checkbox-input__button[aria-selected=true],.checkbox-input__button[data-state=open]{background:#353343;outline:none}.checkbox-input__button{background:#1c1a2c;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box}.checkbox-input__button:disabled,.checkbox-input__button[data-disabled],.checkbox-input__button[aria-disabled=true],.checkbox-input__button--disabled{cursor:not-allowed;opacity:25%;pointer-events:unset}.checkbox-input__button[data-state=checked]{background:#193334;outline:none}.checkbox-input__indicator{position:relative;display:flex;align-items:center;justify-content:center;top:1px}.switch-input{background:transparent!important;border:none!important}.switch-input .input__control{position:relative;box-sizing:border-box;padding:0;width:.9rem;height:.9rem;appearance:none;outline:none;cursor:pointer;background-color:transparent;border-radius:50%}.switch-input .input__control:checked:after{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translate(22px);-webkit-transition:.4s;transition:.4s}.switch-input .input__control:checked:before{background:#0e1a24;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box;position:absolute;width:2.6rem;height:1.25rem}.switch-input .input__control:after{width:.9rem;height:.9rem;background-color:#fff;border-radius:50%;position:absolute;content:"";-webkit-transition:.4s;transition:.4s}.switch-input .input__control:before{content:"";z-index:-1;-webkit-transition:.4s;transition:.4s;top:-.175rem;left:-.175rem}.switch-input .input__control:before{background:#1c1a2c;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box;border-radius:1rem;position:absolute;width:2.6rem;height:1.25rem}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { mergeCode0Props as
|
|
1
|
+
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { mergeCode0Props as d } from "../../utils/utils.js";
|
|
4
4
|
import '../../assets/components/breadcrumb/Breadcrumb.style.css';/* empty css */
|
|
5
5
|
import { IconChevronRight as p } from "@tabler/icons-react";
|
|
6
|
-
const C = (
|
|
6
|
+
const C = (m) => {
|
|
7
7
|
const {
|
|
8
|
-
splitter:
|
|
9
|
-
children:
|
|
10
|
-
...
|
|
11
|
-
} =
|
|
12
|
-
return /* @__PURE__ */ r("div", { ...
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
] })) });
|
|
8
|
+
splitter: n = /* @__PURE__ */ r(p, { size: 16 }),
|
|
9
|
+
children: t,
|
|
10
|
+
...c
|
|
11
|
+
} = m, i = e.Children.count(t);
|
|
12
|
+
return /* @__PURE__ */ r("div", { ...d("breadcrumb", c), children: e.Children.map(t, (s, o) => /* @__PURE__ */ l(e.Fragment, { children: [
|
|
13
|
+
s,
|
|
14
|
+
o < i - 1 ? /* @__PURE__ */ r("span", { className: "breadcrumb__splitter", children: n }) : null
|
|
15
|
+
] }, o)) });
|
|
16
16
|
};
|
|
17
17
|
export {
|
|
18
18
|
C as Breadcrumb
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c } from "../../_virtual/compiler-runtime.js";
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { c as p } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import '../../assets/components/button-group/ButtonGroup.style.css';/* empty css */
|
|
4
|
-
import { mergeCode0Props as
|
|
5
|
-
const
|
|
6
|
-
const t =
|
|
4
|
+
import { mergeCode0Props as c } from "../../utils/utils.js";
|
|
5
|
+
const h = (u) => {
|
|
6
|
+
const t = p.c(10);
|
|
7
7
|
let e, o;
|
|
8
|
-
if (t[0] !==
|
|
8
|
+
if (t[0] !== u) {
|
|
9
9
|
const {
|
|
10
10
|
children: l,
|
|
11
|
-
...
|
|
12
|
-
} =
|
|
13
|
-
e = l, o =
|
|
11
|
+
...i
|
|
12
|
+
} = u;
|
|
13
|
+
e = l, o = c("button-group", i), t[0] = u, t[1] = e, t[2] = o;
|
|
14
14
|
} else
|
|
15
15
|
e = t[1], o = t[2];
|
|
16
16
|
let r;
|
|
17
17
|
if (t[3] !== e) {
|
|
18
18
|
let l;
|
|
19
|
-
t[5] !== e.length ? (l = (
|
|
19
|
+
t[5] !== e.length ? (l = (i, s) => /* @__PURE__ */ m("div", { className: `${s == 0 || s == e.length - 1 ? s == 0 ? "button-group__first" : "button-group__last" : "button-group__item"}`, children: i }, i.key ?? `button-group-${s}`), t[5] = e.length, t[6] = l) : l = t[6], r = e.map(l), t[3] = e, t[4] = r;
|
|
20
20
|
} else
|
|
21
21
|
r = t[4];
|
|
22
22
|
let n;
|
|
23
|
-
return t[7] !== o || t[8] !== r ? (n = /* @__PURE__ */
|
|
23
|
+
return t[7] !== o || t[8] !== r ? (n = /* @__PURE__ */ m("div", { ...o, children: r }), t[7] = o, t[8] = r, t[9] = n) : n = t[9], n;
|
|
24
24
|
};
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
h as ButtonGroup
|
|
27
27
|
};
|
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { useService as
|
|
2
|
-
import
|
|
1
|
+
import { useService as h, useStore as S } from "../../utils/contextStore.js";
|
|
2
|
+
import N from "react";
|
|
3
3
|
import "merge-props";
|
|
4
|
-
import { DFlowReactiveService as
|
|
5
|
-
import { DFlowFunctionReactiveService as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
const u = ["rgba(255, 255, 255, 0.25)"],
|
|
9
|
-
const l =
|
|
10
|
-
namespaceId:
|
|
11
|
-
projectId:
|
|
12
|
-
}), [
|
|
13
|
-
return
|
|
4
|
+
import { DFlowReactiveService as T } from "./DFlow.service.js";
|
|
5
|
+
import { DFlowFunctionReactiveService as B } from "../d-flow-function/DFlowFunction.service.js";
|
|
6
|
+
import { hashToColor as x } from "./DFlow.util.js";
|
|
7
|
+
import { DFlowDataTypeReactiveService as E } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
8
|
+
const u = ["rgba(255, 255, 255, 0.25)"], J = (a, _, M) => {
|
|
9
|
+
const l = h(T), F = S(T), R = h(B), W = S(B), O = h(E), w = S(E), n = N.useMemo(() => l.getById(a, {
|
|
10
|
+
namespaceId: _,
|
|
11
|
+
projectId: M
|
|
12
|
+
}), [a, F]);
|
|
13
|
+
return N.useMemo(() => {
|
|
14
14
|
if (!n) return [];
|
|
15
15
|
const d = [], p = /* @__PURE__ */ new Map();
|
|
16
|
-
let
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
let v = 0;
|
|
17
|
+
const b = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), G = (e, o = b) => (o.has(e) || o.set(e, R.getById(e)), o.get(e)), A = (e, o = D) => (o.has(e) || o.set(e, O.getDataType(e)), o.get(e)), f = (e, o, g, c = 0, m = b, y = D) => {
|
|
18
|
+
if (!e) return "";
|
|
19
|
+
const t = `${e.id}-${v++}`;
|
|
20
|
+
if (v == 1 && d.push({
|
|
20
21
|
id: `trigger-${t}-next`,
|
|
21
22
|
source: n.id,
|
|
22
23
|
target: t,
|
|
23
24
|
data: {
|
|
24
25
|
color: u[c % u.length],
|
|
25
26
|
type: "default",
|
|
26
|
-
flowId:
|
|
27
|
+
flowId: a,
|
|
27
28
|
parentNodeId: o?.id
|
|
28
29
|
},
|
|
29
30
|
deletable: !1,
|
|
30
31
|
selectable: !1
|
|
31
32
|
}), g) {
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
id: `${
|
|
35
|
-
source:
|
|
33
|
+
const i = p.get(g) ?? [];
|
|
34
|
+
i.length > 0 ? i.forEach((r, $) => d.push({
|
|
35
|
+
id: `${r}-${t}-next-${$}`,
|
|
36
|
+
source: r,
|
|
36
37
|
target: t,
|
|
37
38
|
data: {
|
|
38
39
|
color: u[c % u.length],
|
|
39
40
|
type: "default",
|
|
40
|
-
flowId:
|
|
41
|
+
flowId: a,
|
|
41
42
|
parentNodeId: o?.id
|
|
42
43
|
},
|
|
43
44
|
deletable: !1,
|
|
@@ -49,58 +50,60 @@ const u = ["rgba(255, 255, 255, 0.25)"], X = (r, R, W) => {
|
|
|
49
50
|
data: {
|
|
50
51
|
color: u[c % u.length],
|
|
51
52
|
type: "default",
|
|
52
|
-
flowId:
|
|
53
|
+
flowId: a,
|
|
53
54
|
parentNodeId: o?.id
|
|
54
55
|
},
|
|
55
56
|
deletable: !1,
|
|
56
57
|
selectable: !1
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
|
-
return e.parameters?.nodes?.forEach((
|
|
60
|
-
const
|
|
61
|
-
if (
|
|
62
|
-
if (
|
|
63
|
-
|
|
60
|
+
return e.parameters?.nodes?.forEach((i) => {
|
|
61
|
+
const r = i?.value, $ = G(e.functionDefinition?.id, m)?.parameterDefinitions?.find((s) => s.id === i?.id), I = $?.dataTypeIdentifier, H = I ? A(I, y) : void 0;
|
|
62
|
+
if (r) {
|
|
63
|
+
if (H?.variant === "NODE") {
|
|
64
|
+
if (r && r.__typename === "NodeFunctionIdWrapper") {
|
|
65
|
+
const s = `${t}-group-${v++}`;
|
|
66
|
+
d.push({
|
|
67
|
+
id: `${t}-${s}-param-${i.id}`,
|
|
68
|
+
source: t,
|
|
69
|
+
target: s,
|
|
70
|
+
deletable: !1,
|
|
71
|
+
selectable: !1,
|
|
72
|
+
animated: !0,
|
|
73
|
+
label: $?.names[0]?.content ?? i.id,
|
|
74
|
+
data: {
|
|
75
|
+
color: x(r?.id || ""),
|
|
76
|
+
type: "group",
|
|
77
|
+
flowId: a,
|
|
78
|
+
parentNodeId: o?.id
|
|
79
|
+
}
|
|
80
|
+
}), (p.get(t) ?? (p.set(t, []), p.get(t))).push(s), f(l.getNodeById(a, r.id), e, void 0, c + 1, m, y);
|
|
81
|
+
}
|
|
82
|
+
} else if (r && r.__typename === "NodeFunctionIdWrapper") {
|
|
83
|
+
const s = f(l.getNodeById(a, r.id), e, void 0, c + 1, m, y);
|
|
64
84
|
d.push({
|
|
65
|
-
id: `${
|
|
66
|
-
source:
|
|
67
|
-
target: a,
|
|
68
|
-
deletable: !1,
|
|
69
|
-
selectable: !1,
|
|
70
|
-
animated: !0,
|
|
71
|
-
label: y?.names?.nodes[0]?.content ?? s.id,
|
|
72
|
-
data: {
|
|
73
|
-
color: `hsl(${D(S)}, 100%, 72%)`,
|
|
74
|
-
type: "group",
|
|
75
|
-
flowId: r,
|
|
76
|
-
parentNodeId: o?.id
|
|
77
|
-
}
|
|
78
|
-
}), i && i.__typename === "NodeFunctionIdWrapper" && ((p.get(t) ?? (p.set(t, []), p.get(t))).push(a), f(l.getNodeById(r, i.id), e, void 0, c + 1, m, $));
|
|
79
|
-
} else if (i && i.__typename === "NodeFunctionIdWrapper") {
|
|
80
|
-
const a = f(l.getNodeById(r, i.id), e, void 0, c + 1, m, $), S = O(`${t}-param-${JSON.stringify(s)}`), D = (I) => parseInt(I.slice(0, 8), 16) % 360;
|
|
81
|
-
d.push({
|
|
82
|
-
id: `${a}-${t}-param-${s.id}`,
|
|
83
|
-
source: a,
|
|
85
|
+
id: `${s}-${t}-param-${i.id}`,
|
|
86
|
+
source: s,
|
|
84
87
|
target: t,
|
|
85
|
-
targetHandle: `param-${
|
|
88
|
+
targetHandle: `param-${i.id}`,
|
|
86
89
|
animated: !0,
|
|
87
90
|
deletable: !1,
|
|
88
91
|
selectable: !1,
|
|
89
92
|
data: {
|
|
90
|
-
color:
|
|
93
|
+
color: x(r?.id || ""),
|
|
91
94
|
type: "parameter",
|
|
92
|
-
flowId:
|
|
95
|
+
flowId: a,
|
|
93
96
|
parentNodeId: o?.id
|
|
94
97
|
}
|
|
95
98
|
});
|
|
96
99
|
}
|
|
97
100
|
}
|
|
98
|
-
}), e.nextNodeId && f(l.getNodeById(n.id, e.nextNodeId), e, t, c, m,
|
|
101
|
+
}), e.nextNodeId && f(l.getNodeById(n.id, e.nextNodeId), e, t, c, m, y), t;
|
|
99
102
|
};
|
|
100
|
-
return n.startingNodeId && f(l.getNodeById(n.id, n.startingNodeId), void 0, void 0, 0,
|
|
101
|
-
}, [n, F,
|
|
103
|
+
return n.startingNodeId && f(l.getNodeById(n.id, n.startingNodeId), void 0, void 0, 0, b, D), d;
|
|
104
|
+
}, [n, F, W, w]);
|
|
102
105
|
};
|
|
103
106
|
export {
|
|
104
107
|
u as FLOW_EDGE_RAINBOW,
|
|
105
|
-
|
|
108
|
+
J as useFlowEdges
|
|
106
109
|
};
|