@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,120 +1,117 @@
|
|
|
1
|
-
import { jsxs as m, jsx as
|
|
2
|
-
import { useService as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as m, jsx as t, Fragment as E } from "react/jsx-runtime";
|
|
2
|
+
import { useService as v, useStore as w } from "../../utils/contextStore.js";
|
|
3
|
+
import { underlineBySeverity as H } from "../../utils/inspection.js";
|
|
4
|
+
import c, { memo as X } from "react";
|
|
5
5
|
import "merge-props";
|
|
6
|
-
import { useStore as
|
|
6
|
+
import { useStore as h, useReactFlow as Y, Handle as g, Position as f } from "@xyflow/react";
|
|
7
7
|
import { Card as q } from "../card/Card.js";
|
|
8
8
|
import '../../assets/components/d-flow-function/DFlowFunctionDefaultCard.style.css';/* empty css */
|
|
9
9
|
import { Flex as G } from "../flex/Flex.js";
|
|
10
|
-
import {
|
|
11
|
-
import { Text as
|
|
12
|
-
import { DFlowFunctionReactiveService as
|
|
13
|
-
import { useNodeValidation as
|
|
10
|
+
import { IconNote as F } from "@tabler/icons-react";
|
|
11
|
+
import { Text as y } from "../text/Text.js";
|
|
12
|
+
import { DFlowFunctionReactiveService as D } from "./DFlowFunction.service.js";
|
|
13
|
+
import { useNodeValidation as J } from "../d-flow-validation/DNodeValidation.hook.js";
|
|
14
14
|
import "../d-flow/DFlow.js";
|
|
15
|
-
import { DFlowReactiveService as
|
|
15
|
+
import { DFlowReactiveService as T } from "../d-flow/DFlow.service.js";
|
|
16
|
+
import { hashToColor as B } from "../d-flow/DFlow.util.js";
|
|
16
17
|
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
17
18
|
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
18
19
|
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
19
20
|
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
20
21
|
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
21
22
|
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
|
|
23
|
+
import { FileTabsService as N } from "../file-tabs/FileTabs.service.js";
|
|
24
|
+
import { DFlowTabDefault as K } from "../d-flow-file/DFlowTabDefault.js";
|
|
25
|
+
import { Badge as O } from "../badge/Badge.js";
|
|
26
|
+
import { DFlowInputLiteralBadge as Q } from "../d-flow-input/DFlowInputLiteralBadge.js";
|
|
27
|
+
import { DFlowInputReferenceBadge as U } from "../d-flow-input/DFlowInputReferenceBadge.js";
|
|
28
|
+
import { DFlowInputNodeBadge as Z } from "../d-flow-input/DFlowInputNodeBadge.js";
|
|
29
|
+
const Be = X((d) => {
|
|
27
30
|
const {
|
|
28
|
-
data:
|
|
29
|
-
id:
|
|
31
|
+
data: e,
|
|
32
|
+
id: p,
|
|
30
33
|
width: C = 0,
|
|
31
|
-
height:
|
|
32
|
-
} =
|
|
33
|
-
const
|
|
34
|
-
let
|
|
35
|
-
return
|
|
36
|
-
const
|
|
37
|
-
(!
|
|
38
|
-
}),
|
|
39
|
-
}),
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
-
switch (
|
|
34
|
+
height: M = 0
|
|
35
|
+
} = d, R = h((o) => o.width), z = h((o) => o.height), P = Y(), u = v(N), I = w(N), V = v(T), b = w(T), k = v(D), S = w(D), r = c.useMemo(() => V.getNodeById(e.flowId, e.nodeId), [b, e]), l = c.useMemo(() => r ? k.getById(r.functionDefinition?.id) : void 0, [S, e, r]), $ = J(e.nodeId, e.flowId), x = c.useMemo(() => I.find((o) => o.active)?.id, [I, u]), A = h((o) => {
|
|
36
|
+
const i = o.nodes.filter((n) => n.parentId === d.parentId);
|
|
37
|
+
let a;
|
|
38
|
+
return i.forEach((n) => {
|
|
39
|
+
const s = n.data?.index ?? 1 / 0, _ = a?.data?.index ?? 1 / 0;
|
|
40
|
+
(!a || s < _) && (a = n);
|
|
41
|
+
}), a;
|
|
42
|
+
}), L = (o) => o.split(/(\$\{[^}]+\})/).filter(Boolean).flatMap((i) => i.startsWith("${") ? [i.slice(2, -1)] : i.split(/(\s*,\s*)/).filter(Boolean).flatMap((a) => a.trim() === "," ? [","] : a.trim() ? [a.trim()] : [])), W = c.useMemo(() => L(l?.displayMessages[0]?.content ?? "").map((o) => {
|
|
43
|
+
const i = r?.parameters?.nodes?.find((s) => l?.parameterDefinitions?.find((j) => j.id == s?.id)?.identifier == o), a = $?.filter((s) => s.parameterId === i?.id), n = a?.length ? H[a[0].type] : {};
|
|
44
|
+
if (i) {
|
|
45
|
+
switch (i?.value?.__typename) {
|
|
43
46
|
case "LiteralValue":
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
return /* @__PURE__ */ t("div", { style: {
|
|
48
|
+
...n,
|
|
49
|
+
display: "inline-block"
|
|
50
|
+
}, children: /* @__PURE__ */ t(Q, { value: i.value }) });
|
|
47
51
|
case "ReferenceValue":
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"-",
|
|
53
|
-
String(t?.value.depth),
|
|
54
|
-
"-",
|
|
55
|
-
String(t?.value.scope)
|
|
56
|
-
] }) });
|
|
52
|
+
return /* @__PURE__ */ t("div", { style: {
|
|
53
|
+
...n,
|
|
54
|
+
display: "inline-block"
|
|
55
|
+
}, children: /* @__PURE__ */ t(U, { flowId: d.data.flowId, value: i.value }) });
|
|
57
56
|
case "NodeFunctionIdWrapper":
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
-
|
|
64
|
-
}, children: String(F.getById(a?.functionDefinition?.id)?.names?.nodes[0]?.content) }),
|
|
65
|
-
/* @__PURE__ */ o(S, { type: "target", position: p.Bottom, id: `param-${t?.id}`, isConnectable: !1, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target" }, t?.id)
|
|
57
|
+
return /* @__PURE__ */ m("div", { style: {
|
|
58
|
+
...n,
|
|
59
|
+
display: "inline-block"
|
|
60
|
+
}, children: [
|
|
61
|
+
/* @__PURE__ */ t(Z, { value: i.value, flowId: d.data.flowId }),
|
|
62
|
+
/* @__PURE__ */ t(g, { type: "target", position: f.Right, id: `param-${i?.id}`, isConnectable: !1, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target" }, i?.id)
|
|
66
63
|
] });
|
|
67
64
|
}
|
|
68
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ t(O, { style: {
|
|
69
66
|
verticalAlign: "middle"
|
|
70
|
-
}, border: !0, children: /* @__PURE__ */
|
|
67
|
+
}, border: !0, children: /* @__PURE__ */ t(y, { size: "sm", children: o }) });
|
|
71
68
|
}
|
|
72
|
-
return " " + String(
|
|
73
|
-
}), [
|
|
74
|
-
return
|
|
75
|
-
|
|
76
|
-
id:
|
|
69
|
+
return " " + String(o) + " ";
|
|
70
|
+
}), [b, S, e, l]);
|
|
71
|
+
return c.useEffect(() => {
|
|
72
|
+
r?.id && u.registerTab({
|
|
73
|
+
id: r.id,
|
|
77
74
|
active: !1,
|
|
78
75
|
closeable: !0,
|
|
79
|
-
children: /* @__PURE__ */ m(
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ m(E, { children: [
|
|
77
|
+
/* @__PURE__ */ t(F, { color: B(e.nodeId), size: 12 }),
|
|
78
|
+
/* @__PURE__ */ t(y, { size: "sm", children: l?.names[0]?.content })
|
|
82
79
|
] }),
|
|
83
|
-
content: /* @__PURE__ */
|
|
80
|
+
content: /* @__PURE__ */ t(K, { flowId: d.data.flowId, node: r })
|
|
84
81
|
});
|
|
85
|
-
}, [
|
|
86
|
-
|
|
87
|
-
x:
|
|
88
|
-
y:
|
|
82
|
+
}, [r?.id, l, e]), /* @__PURE__ */ m(q, { "data-flow-refernce": p, paddingSize: "xs", py: e.isParameter ? "0.35" : void 0, outline: A.id === p, borderColor: x == r?.id ? "info" : void 0, className: x == r?.id ? "d-flow-viewport-default-card--active" : void 0, color: "primary", onClick: () => {
|
|
83
|
+
P.setViewport({
|
|
84
|
+
x: R / 2 + d.positionAbsoluteX * -1 - C / 2,
|
|
85
|
+
y: z / 2 + d.positionAbsoluteY * -1 - M / 2,
|
|
89
86
|
zoom: 1
|
|
90
87
|
}, {
|
|
91
88
|
duration: 250
|
|
92
|
-
}),
|
|
89
|
+
}), u.activateTab(r?.id);
|
|
93
90
|
}, style: {
|
|
94
91
|
position: "relative"
|
|
95
92
|
}, children: [
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
...
|
|
93
|
+
/* @__PURE__ */ t(g, { isConnectable: !1, draggable: !1, type: "target", className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target", style: {
|
|
94
|
+
...e.isParameter ? {
|
|
98
95
|
right: "2px"
|
|
99
96
|
} : {
|
|
100
97
|
top: "2px"
|
|
101
98
|
}
|
|
102
|
-
}, position:
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
...
|
|
99
|
+
}, position: e.isParameter ? f.Right : f.Top }),
|
|
100
|
+
/* @__PURE__ */ t(g, { isConnectable: !1, type: "source", style: {
|
|
101
|
+
...e.isParameter ? {
|
|
105
102
|
left: "2px"
|
|
106
103
|
} : {
|
|
107
104
|
bottom: "2px"
|
|
108
105
|
}
|
|
109
|
-
}, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--source", position:
|
|
106
|
+
}, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--source", position: e.isParameter ? f.Left : f.Bottom }),
|
|
110
107
|
/* @__PURE__ */ m(G, { align: "center", style: {
|
|
111
108
|
gap: "0.7rem"
|
|
112
109
|
}, children: [
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ t(F, { color: B(e.nodeId), size: 16 }),
|
|
111
|
+
/* @__PURE__ */ t(y, { size: "md", children: W })
|
|
115
112
|
] })
|
|
116
|
-
] },
|
|
113
|
+
] }, p);
|
|
117
114
|
});
|
|
118
115
|
export {
|
|
119
|
-
|
|
116
|
+
Be as DFlowFunctionDefaultCard
|
|
120
117
|
};
|
|
@@ -1,48 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useService as
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as f, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as u } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { useService as p } from "../../utils/contextStore.js";
|
|
4
|
+
import g, { memo as w } from "react";
|
|
5
5
|
import "merge-props";
|
|
6
|
-
import { Handle as
|
|
7
|
-
import { Button as
|
|
6
|
+
import { Handle as S, Position as _ } from "@xyflow/react";
|
|
7
|
+
import { Button as v } from "../button/Button.js";
|
|
8
8
|
import { IconPlus as F } from "@tabler/icons-react";
|
|
9
|
-
import { useSuggestions as
|
|
9
|
+
import { useSuggestions as x } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
|
|
10
10
|
import "../d-flow/DFlow.js";
|
|
11
|
-
import { DFlowReactiveService as
|
|
11
|
+
import { DFlowReactiveService as y } from "../d-flow/DFlow.service.js";
|
|
12
|
+
import "js-md5";
|
|
12
13
|
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
13
14
|
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
14
15
|
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
15
16
|
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
16
17
|
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
17
18
|
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
18
|
-
import "js
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
const t = g.c(14), [, d] = _.useTransition();
|
|
19
|
+
import { DFlowSuggestionMenu as I } from "../d-flow-suggestion/DFlowSuggestionMenu.js";
|
|
20
|
+
const J = w((e) => {
|
|
21
|
+
const t = u.c(12), [, l] = g.useTransition(), d = x(e.data.flowId, e.data.parentFunction?.id), o = p(y);
|
|
22
22
|
let a;
|
|
23
|
-
t[0]
|
|
24
|
-
|
|
25
|
-
t[1] === Symbol.for("react.memo_cache_sentinel") ? (r = [0], t[1] = r) : r = t[1];
|
|
26
|
-
const s = I(void 0, a, e.data.flowId, 0, r, 0), o = w(h);
|
|
27
|
-
let n;
|
|
28
|
-
t[2] !== o || t[3] !== e.data.flowId ? (n = o.getById(e.data.flowId), t[2] = o, t[3] = e.data.flowId, t[4] = n) : n = t[4];
|
|
29
|
-
const c = n;
|
|
23
|
+
t[0] !== o || t[1] !== e.data.flowId ? (a = o.getById(e.data.flowId), t[0] = o, t[1] = e.data.flowId, t[2] = a) : a = t[2];
|
|
24
|
+
const m = a;
|
|
30
25
|
let i;
|
|
31
|
-
t[
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
t[3] !== m?.id || t[4] !== o || t[5] !== e.data.parentFunction?.id || t[6] !== l ? (i = (c) => {
|
|
27
|
+
l(async () => {
|
|
28
|
+
c.value.__typename === "NodeFunction" && await o.addNextNodeById(m?.id, e.data.parentFunction?.id ?? null, c.value);
|
|
34
29
|
});
|
|
35
|
-
}, t[
|
|
36
|
-
let
|
|
37
|
-
t[
|
|
38
|
-
/* @__PURE__ */
|
|
30
|
+
}, t[3] = m?.id, t[4] = o, t[5] = e.data.parentFunction?.id, t[6] = l, t[7] = i) : i = t[7];
|
|
31
|
+
let n;
|
|
32
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ f(v, { paddingSize: "xxs", variant: "normal", color: "secondary", children: [
|
|
33
|
+
/* @__PURE__ */ s(S, { isConnectable: !1, draggable: !1, type: "target", className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target", style: {
|
|
39
34
|
top: "2px"
|
|
40
|
-
}, position:
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
] }), t[
|
|
43
|
-
let
|
|
44
|
-
return t[
|
|
35
|
+
}, position: _.Top }),
|
|
36
|
+
/* @__PURE__ */ s(F, { size: 12 })
|
|
37
|
+
] }), t[8] = n) : n = t[8];
|
|
38
|
+
let r;
|
|
39
|
+
return t[9] !== d || t[10] !== i ? (r = /* @__PURE__ */ s(I, { onSuggestionSelect: i, suggestions: d, triggerContent: n }), t[9] = d, t[10] = i, t[11] = r) : r = t[11], r;
|
|
45
40
|
});
|
|
46
41
|
export {
|
|
47
|
-
|
|
42
|
+
J as DFlowFunctionSuggestionCard
|
|
48
43
|
};
|
|
@@ -7,29 +7,36 @@ import "merge-props";
|
|
|
7
7
|
import { FileTabsService as R } from "../file-tabs/FileTabs.service.js";
|
|
8
8
|
import { Card as z } from "../card/Card.js";
|
|
9
9
|
import { Flex as n } from "../flex/Flex.js";
|
|
10
|
-
import { IconBolt as
|
|
10
|
+
import { IconBolt as p, IconChevronDown as F } from "@tabler/icons-react";
|
|
11
11
|
import { Button as B } from "../button/Button.js";
|
|
12
12
|
import { DFlowTabTrigger as _ } from "../d-flow-file/DFlowTabTrigger.js";
|
|
13
13
|
import { DFlowTypeReactiveService as C } from "../d-flow-type/DFlowType.service.js";
|
|
14
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
15
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
16
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
17
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
18
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
19
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
20
|
+
import "js-md5";
|
|
14
21
|
import { Badge as D } from "../badge/Badge.js";
|
|
15
|
-
const
|
|
22
|
+
const $ = y((i) => {
|
|
16
23
|
const {
|
|
17
24
|
data: a,
|
|
18
25
|
id: d
|
|
19
|
-
} = i, r = m(R),
|
|
26
|
+
} = i, r = m(R), f = T(), t = m(C).getById(a.instance.type?.id), h = i.width ?? 0, u = i.height ?? 0, g = s((c) => c.width), w = s((c) => c.height);
|
|
20
27
|
return b.useEffect(() => {
|
|
21
28
|
r.registerTab({
|
|
22
29
|
id: t?.id,
|
|
23
30
|
active: !0,
|
|
24
31
|
closeable: !0,
|
|
25
32
|
children: /* @__PURE__ */ o(v, { children: [
|
|
26
|
-
/* @__PURE__ */ e(
|
|
27
|
-
/* @__PURE__ */ e(l, { size: "sm", children: t?.names
|
|
33
|
+
/* @__PURE__ */ e(p, { size: 12 }),
|
|
34
|
+
/* @__PURE__ */ e(l, { size: "sm", children: t?.names[0]?.content })
|
|
28
35
|
] }),
|
|
29
36
|
content: /* @__PURE__ */ e(_, { instance: a.instance }),
|
|
30
37
|
show: !0
|
|
31
38
|
});
|
|
32
|
-
}, [t?.id, a.instance, r, t?.names
|
|
39
|
+
}, [t?.id, a.instance, r, t?.names]), /* @__PURE__ */ o(n, { align: "center", style: {
|
|
33
40
|
flexDirection: "column"
|
|
34
41
|
}, "data-flow-refernce": d, children: [
|
|
35
42
|
/* @__PURE__ */ e(D, { color: "info", style: {
|
|
@@ -39,7 +46,7 @@ const J = y((i) => {
|
|
|
39
46
|
borderBottomRightRadius: 0
|
|
40
47
|
}, children: "Starting node" }),
|
|
41
48
|
/* @__PURE__ */ o(z, { variant: "normal", color: "info", paddingSize: "xs", className: r.getActiveTab()?.id == t?.id ? "d-flow-viewport-default-card--active" : void 0, onClick: () => {
|
|
42
|
-
|
|
49
|
+
f.setViewport({
|
|
43
50
|
x: g / 2 + i.positionAbsoluteX * -1 - h / 2,
|
|
44
51
|
y: w / 2 + i.positionAbsoluteY * -1 - u / 2,
|
|
45
52
|
zoom: 1
|
|
@@ -53,8 +60,8 @@ const J = y((i) => {
|
|
|
53
60
|
/* @__PURE__ */ o(n, { style: {
|
|
54
61
|
gap: "0.7rem"
|
|
55
62
|
}, align: "center", children: [
|
|
56
|
-
/* @__PURE__ */ e(
|
|
57
|
-
/* @__PURE__ */ e(l, { display: "block", size: "md", children: t?.names
|
|
63
|
+
/* @__PURE__ */ e(p, { size: 16 }),
|
|
64
|
+
/* @__PURE__ */ e(l, { display: "block", size: "md", children: t?.names[0]?.content ?? t?.id })
|
|
58
65
|
] }),
|
|
59
66
|
/* @__PURE__ */ e(n, { align: "center", style: {
|
|
60
67
|
gap: "0.7rem"
|
|
@@ -67,5 +74,5 @@ const J = y((i) => {
|
|
|
67
74
|
] }, d);
|
|
68
75
|
});
|
|
69
76
|
export {
|
|
70
|
-
|
|
77
|
+
$ as DFlowFunctionTriggerCard
|
|
71
78
|
};
|
|
@@ -21,12 +21,11 @@ import { Button as re } from "../button/Button.js";
|
|
|
21
21
|
import { Text as A } from "../text/Text.js";
|
|
22
22
|
import { Flex as X } from "../flex/Flex.js";
|
|
23
23
|
import { Badge as Be } from "../badge/Badge.js";
|
|
24
|
-
import {
|
|
24
|
+
import { useDataTypeSuggestions as Ve } from "../d-flow-suggestion/DFlowDataTypeSuggestions.hook.js";
|
|
25
25
|
import { DFlowSuggestionMenuFooter as ye } from "../d-flow-suggestion/DFlowSuggestionMenuFooter.js";
|
|
26
26
|
import { toInputSuggestions as Ae } from "../d-flow-suggestion/DFlowSuggestionMenu.util.js";
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE"]), he = "__blockingSignature", Fe = ["CONTAINS_KEY", "CONTAINS_TYPE", "ITEM_OF_COLLECTION", "NUMBER_RANGE", "REGEX"], de = (t) => {
|
|
27
|
+
import { Menu as _e, MenuTrigger as Ke, MenuPortal as we } from "../menu/Menu.js";
|
|
28
|
+
const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE"]), he = "__blockingSignature", Ge = ["CONTAINS_KEY", "CONTAINS_TYPE", "ITEM_OF_COLLECTION", "NUMBER_RANGE", "REGEX"], de = (t) => {
|
|
30
29
|
const {
|
|
31
30
|
formValidation: e,
|
|
32
31
|
initialValue: n,
|
|
@@ -37,7 +36,7 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
37
36
|
u((o) => {
|
|
38
37
|
if (!o) return o;
|
|
39
38
|
const i = q(o);
|
|
40
|
-
return r(i), p(i),
|
|
39
|
+
return r(i), p(i), Je(o, i), i;
|
|
41
40
|
});
|
|
42
41
|
}, []), b = m.useCallback((r, o, i) => {
|
|
43
42
|
E((N) => {
|
|
@@ -55,7 +54,7 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
55
54
|
const i = Y(o);
|
|
56
55
|
if (!i) return;
|
|
57
56
|
const N = oe(i), h = N[r];
|
|
58
|
-
h && (
|
|
57
|
+
h && (Le(h, l) || N.splice(r, 1));
|
|
59
58
|
});
|
|
60
59
|
}, [l, E]), d = m.useCallback((r, o) => {
|
|
61
60
|
b(r, (i) => (!("dataTypeIdentifier" in i?.config) || !i?.config?.dataTypeIdentifier || (L(o) ? (i.config.dataTypeIdentifier.dataType = o, delete i.config.dataTypeIdentifier.genericType) : J(o) && (i.config.dataTypeIdentifier.genericType = o, delete i.config.dataTypeIdentifier.dataType)), i), {
|
|
@@ -75,23 +74,29 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
75
74
|
T?.rules?.nodes?.map((r, o) => {
|
|
76
75
|
if (!r) return null;
|
|
77
76
|
const i = I?.find((f) => ce(r, f)), N = r?.variant === "PARENT_TYPE", h = r?.config, v = (h?.dataTypeIdentifier?.dataType?.rules?.nodes?.length ?? 0) > 0 || (h?.dataTypeIdentifier?.genericType?.dataType?.rules?.nodes?.length ?? 0) > 0;
|
|
78
|
-
return !N || v ? /* @__PURE__ */ c(
|
|
77
|
+
return !N || v ? /* @__PURE__ */ c(Fe, { rule: r, blockingRule: i, genericMap: B, onRemove: () => V(o), onConfigChange: (f) => b(o, (g) => (g.config = f, g)), onHeaderKeyChange: (f) => b(o, (g) => (g.config || (g.config = {}), g.config.key = f || null, g)), onHeaderDataTypeChange: (f) => b(o, (g) => {
|
|
79
78
|
g.config || (g.config = {}), "dataTypeIdentifier" in g.config || (g.config.dataTypeIdentifier = {});
|
|
80
79
|
const M = g.config.dataTypeIdentifier;
|
|
81
80
|
return f ? (L(f) ? (M.dataType = f, delete M.genericType) : J(f) && (M.genericType = f, delete M.dataType), g) : (delete M?.dataType, delete M?.genericType, g);
|
|
82
81
|
}), onNestedChange: (f) => d(o, f), onGenericMapperChange: D }, `${r.variant}-${o}`) : null;
|
|
83
82
|
}),
|
|
84
|
-
/* @__PURE__ */ S(
|
|
85
|
-
/* @__PURE__ */ c(
|
|
83
|
+
/* @__PURE__ */ S(_e, { children: [
|
|
84
|
+
/* @__PURE__ */ c(Ke, { asChild: !0, children: /* @__PURE__ */ S(re, { color: "primary", children: [
|
|
86
85
|
/* @__PURE__ */ c(le, { size: 16 }),
|
|
87
86
|
" Add new rule"
|
|
88
87
|
] }) }),
|
|
89
|
-
/* @__PURE__ */ c(
|
|
88
|
+
/* @__PURE__ */ c(we, { children: /* @__PURE__ */ S(De, { children: [
|
|
90
89
|
/* @__PURE__ */ c(ke, { onSuggestionSelect: (r) => {
|
|
91
90
|
E((o) => {
|
|
92
|
-
|
|
91
|
+
if (o) {
|
|
92
|
+
if ("rules" in o) {
|
|
93
|
+
o.rules?.nodes?.push(r.value);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
"dataType" in o && o.dataType?.rules?.nodes?.push(r.value);
|
|
97
|
+
}
|
|
93
98
|
});
|
|
94
|
-
}, suggestions:
|
|
99
|
+
}, suggestions: Ge.filter((r) => T?.variant == "OBJECT" ? r == "CONTAINS_KEY" : T?.variant == "ARRAY" ? r == "CONTAINS_TYPE" : !(r == "CONTAINS_TYPE" || r == "CONTAINS_KEY")).map((r) => ({
|
|
95
100
|
children: /* @__PURE__ */ S(j, { children: [
|
|
96
101
|
/* @__PURE__ */ c(le, { size: 16 }),
|
|
97
102
|
/* @__PURE__ */ c(A, { children: r })
|
|
@@ -120,7 +125,7 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
120
125
|
] }),
|
|
121
126
|
!e?.valid && e?.notValidMessage && /* @__PURE__ */ c(Me, { children: e.notValidMessage })
|
|
122
127
|
] });
|
|
123
|
-
},
|
|
128
|
+
}, Fe = (t) => {
|
|
124
129
|
const e = be.c(56), {
|
|
125
130
|
rule: n,
|
|
126
131
|
blockingRule: p,
|
|
@@ -155,10 +160,10 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
155
160
|
let C;
|
|
156
161
|
e[6] !== a || e[7] !== I.genericKey ? (C = a.get(I.genericKey), e[6] = a, e[7] = I.genericKey, e[8] = C) : C = e[8];
|
|
157
162
|
const k = C?.sourceDataTypeIdentifiers?.[0];
|
|
158
|
-
R = k?.dataType?.name?.
|
|
163
|
+
R = k?.dataType?.name?.[0]?.content ?? k?.genericType?.dataType?.name?.[0]?.content;
|
|
159
164
|
break e;
|
|
160
165
|
}
|
|
161
|
-
R = I.dataType?.name?.
|
|
166
|
+
R = I.dataType?.name?.[0]?.content ?? I.genericType?.dataType?.name?.[0]?.content;
|
|
162
167
|
}
|
|
163
168
|
const f = R;
|
|
164
169
|
let g;
|
|
@@ -167,20 +172,20 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
167
172
|
N(O);
|
|
168
173
|
}, e[9] = g) : g = e[9];
|
|
169
174
|
const M = g;
|
|
170
|
-
let
|
|
171
|
-
e[10] !== i || e[11] !== d || e[12] !== s || e[13] !== n.config || e[14] !== D ? (
|
|
175
|
+
let z;
|
|
176
|
+
e[10] !== i || e[11] !== d || e[12] !== s || e[13] !== n.config || e[14] !== D ? (z = (C) => {
|
|
172
177
|
if (d)
|
|
173
178
|
return;
|
|
174
|
-
const O = C?.target?.name, k =
|
|
179
|
+
const O = C?.target?.name, k = Ye(i, n.config, {
|
|
175
180
|
variant: D,
|
|
176
181
|
numberRangeKey: O
|
|
177
182
|
});
|
|
178
183
|
k && s(k);
|
|
179
|
-
}, e[10] = i, e[11] = d, e[12] = s, e[13] = n.config, e[14] = D, e[15] =
|
|
180
|
-
const _ =
|
|
181
|
-
let
|
|
182
|
-
e[16] !== n ? (
|
|
183
|
-
const K =
|
|
184
|
+
}, e[10] = i, e[11] = d, e[12] = s, e[13] = n.config, e[14] = D, e[15] = z) : z = e[15];
|
|
185
|
+
const _ = z;
|
|
186
|
+
let P;
|
|
187
|
+
e[16] !== n ? (P = me(n), e[16] = n, e[17] = P) : P = e[17];
|
|
188
|
+
const K = P;
|
|
184
189
|
let U;
|
|
185
190
|
e[18] !== p ? (U = me(p), e[18] = p, e[19] = U) : U = e[19];
|
|
186
191
|
const W = U;
|
|
@@ -216,10 +221,10 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
216
221
|
let O;
|
|
217
222
|
return e[37] !== C ? (O = /* @__PURE__ */ c("div", { className: "d-flow-viewport-data-type-input__rule", children: C }), e[37] = C, e[38] = O) : O = e[38], O;
|
|
218
223
|
}
|
|
219
|
-
let
|
|
220
|
-
e[39] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
224
|
+
let H;
|
|
225
|
+
e[39] === Symbol.for("react.memo_cache_sentinel") ? (H = {
|
|
221
226
|
flex: 1
|
|
222
|
-
}, e[39] =
|
|
227
|
+
}, e[39] = H) : H = e[39];
|
|
223
228
|
const Z = d ? void 0 : y, ee = d ? void 0 : u, te = d ? void 0 : T;
|
|
224
229
|
let w;
|
|
225
230
|
e[40] !== f || e[41] !== a || e[42] !== d || e[43] !== n || e[44] !== Z || e[45] !== ee || e[46] !== te ? (w = /* @__PURE__ */ c(ge, { rule: n, genericMap: a, isBlocked: d, dataTypeLabel: f, onRemove: Z, onKeyChange: ee, onDataTypeChange: te }), e[40] = f, e[41] = a, e[42] = d, e[43] = n, e[44] = Z, e[45] = ee, e[46] = te, e[47] = w) : w = e[47];
|
|
@@ -229,11 +234,11 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
229
234
|
/* @__PURE__ */ c(F, { clearable: !0, defaultValue: i?.steps?.toString() ?? "", onChange: M, onBlur: _, left: /* @__PURE__ */ c(A, { size: "sm", children: "Steps" }), leftType: "icon", w: "100%", disabled: d, name: "steps" }),
|
|
230
235
|
/* @__PURE__ */ c(F, { clearable: !0, left: /* @__PURE__ */ c(A, { size: "sm", children: "To" }), leftType: "icon", defaultValue: i?.to?.toString() ?? "", onChange: M, onBlur: _, w: "100%", disabled: d, name: "to" })
|
|
231
236
|
] }) : null, e[48] = i, e[49] = _, e[50] = d, e[51] = n.variant, e[52] = G) : G = e[52];
|
|
232
|
-
let
|
|
233
|
-
return e[53] !== w || e[54] !== G ? (
|
|
237
|
+
let x;
|
|
238
|
+
return e[53] !== w || e[54] !== G ? (x = /* @__PURE__ */ c("div", { className: "d-flow-viewport-data-type-input__rule", children: /* @__PURE__ */ S("div", { style: H, children: [
|
|
234
239
|
w,
|
|
235
240
|
G
|
|
236
|
-
] }) }), e[53] = w, e[54] = G, e[55] =
|
|
241
|
+
] }) }), e[53] = w, e[54] = G, e[55] = x) : x = e[55], x;
|
|
237
242
|
}, ge = ({
|
|
238
243
|
rule: t,
|
|
239
244
|
dataTypeLabel: e,
|
|
@@ -246,9 +251,9 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
246
251
|
}) => {
|
|
247
252
|
const T = t.variant, l = T ? !Te.has(T) : !1, B = l ? Ve({
|
|
248
253
|
dataType: {
|
|
249
|
-
id: "gid://sagittarius/DataType
|
|
254
|
+
id: "gid://sagittarius/DataType/-1"
|
|
250
255
|
}
|
|
251
|
-
}
|
|
256
|
+
}) : [], I = t?.config?.dataTypeIdentifier?.dataType?.rules?.nodes?.length ?? t?.config?.dataTypeIdentifier?.genericType?.dataType?.rules?.nodes?.length ?? u.get(t?.config?.dataTypeIdentifier?.genericKey)?.sourceDataTypeIdentifiers?.map((i) => i?.dataType?.rules?.nodes?.length ?? i.genericType?.dataType?.rules?.nodes?.length) ?? 0, [E, b] = m.useState(() => "key" in (t?.config ?? {}) ? t?.config?.key ?? "" : ""), [V, d] = m.useState(() => e ?? "");
|
|
252
257
|
m.useEffect(() => {
|
|
253
258
|
b("key" in (t?.config ?? {}) ? t?.config?.key ?? "" : "");
|
|
254
259
|
}, [t]), m.useEffect(() => {
|
|
@@ -291,7 +296,7 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
291
296
|
] }) }) : null
|
|
292
297
|
] })
|
|
293
298
|
] });
|
|
294
|
-
}, ue = (t) => t ? "pattern" in t || t?.__typename === "DataTypeRulesRegexConfig" ? t?.pattern ?? "" : "items" in t || t?.__typename === "DataTypeRulesItemOfCollectionConfig" ? JSON.stringify(t.items) : t : "",
|
|
299
|
+
}, ue = (t) => t ? "pattern" in t || t?.__typename === "DataTypeRulesRegexConfig" ? t?.pattern ?? "" : "items" in t || t?.__typename === "DataTypeRulesItemOfCollectionConfig" ? JSON.stringify(t.items) : t : "", Ye = (t, e, n) => {
|
|
295
300
|
const {
|
|
296
301
|
variant: p,
|
|
297
302
|
numberRangeKey: a
|
|
@@ -372,7 +377,7 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
372
377
|
}, me = (t) => {
|
|
373
378
|
if (t?.config?.dataTypeIdentifier)
|
|
374
379
|
return t?.config?.dataTypeIdentifier?.dataType ?? t?.config?.dataTypeIdentifier?.genericType ?? void 0;
|
|
375
|
-
},
|
|
380
|
+
}, Je = (t, e) => pe(t) === pe(e), Le = (t, e) => !t || !e?.rules?.nodes || !Ne(t) ? !1 : !!Ce(t, e), Ce = (t, e) => !t || !e?.rules?.nodes ? void 0 : e.rules.nodes?.filter(Boolean).find((p) => ce(t, p)), L = (t) => t != null && t.rules !== void 0, J = (t) => t != null && typeof t == "object" && "genericMappers" in t, Y = (t) => {
|
|
376
381
|
if (t)
|
|
377
382
|
return L(t) ? t : t.dataType ?? void 0;
|
|
378
383
|
}, oe = (t) => (t.rules ? t.rules.nodes || (t.rules.nodes = []) : t.rules = {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TextInputProps } from '../form';
|
|
3
|
+
import { Flow, NodeFunction, NodeParameter } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
export interface DFlowInputDefaultProps extends TextInputProps {
|
|
5
|
+
flowId: Flow['id'];
|
|
6
|
+
nodeId: NodeFunction['id'];
|
|
7
|
+
parameterId: NodeParameter['id'];
|
|
8
|
+
}
|
|
9
|
+
export declare const splitTextAndObjects: (input: string) => (string | Record<string, any>)[];
|
|
10
|
+
export declare const DFlowInputDefault: React.FC<DFlowInputDefaultProps>;
|