@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.
Files changed (125) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/index.js +4 -0
  3. package/dist/_virtual/index2.js +4 -0
  4. package/dist/_virtual/react-contenteditable.js +7 -0
  5. package/dist/_virtual/react-contenteditable2.js +4 -0
  6. package/dist/_virtual/react-dom-server-legacy.browser.development.js +4 -0
  7. package/dist/_virtual/react-dom-server-legacy.browser.production.js +4 -0
  8. package/dist/_virtual/react-dom-server.browser.development.js +4 -0
  9. package/dist/_virtual/react-dom-server.browser.production.js +4 -0
  10. package/dist/_virtual/react-is.development.js +4 -0
  11. package/dist/_virtual/react-is.production.min.js +4 -0
  12. package/dist/_virtual/server.browser.js +5 -0
  13. package/dist/_virtual/server.browser2.js +4 -0
  14. package/dist/assets/components/d-resizable/DResizable.style.css +1 -1
  15. package/dist/assets/components/form/Input.style.css +1 -1
  16. package/dist/components/breadcrumb/Breadcrumb.js +12 -12
  17. package/dist/components/button-group/ButtonGroup.js +12 -12
  18. package/dist/components/d-flow/DFlow.edges.hook.js +57 -54
  19. package/dist/components/d-flow/DFlow.js +304 -268
  20. package/dist/components/d-flow/DFlow.nodes.hook.js +60 -59
  21. package/dist/components/d-flow/DFlow.service.d.ts +3 -2
  22. package/dist/components/d-flow/DFlow.service.js +62 -47
  23. package/dist/components/d-flow/DFlow.util.d.ts +4 -0
  24. package/dist/components/d-flow/DFlow.util.js +63 -0
  25. package/dist/components/d-flow/DFlowEdge.js +34 -34
  26. package/dist/components/d-flow-data-type/DFlowDataType.service.js +17 -14
  27. package/dist/components/d-flow-data-type/DFlowDataType.view.d.ts +7 -4
  28. package/dist/components/d-flow-data-type/DFlowDataType.view.js +11 -6
  29. package/dist/components/d-flow-file/DFlowTabDefault.d.ts +0 -3
  30. package/dist/components/d-flow-file/DFlowTabDefault.js +77 -112
  31. package/dist/components/d-flow-file/DFlowTabTrigger.js +38 -49
  32. package/dist/components/d-flow-file/DFlowTabs.js +26 -27
  33. package/dist/components/d-flow-folder/DFlowFolder.js +170 -143
  34. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +18 -11
  35. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +1 -0
  36. package/dist/components/d-flow-function/DFlowFunction.input.hook.js +4 -5
  37. package/dist/components/d-flow-function/DFlowFunction.return.hook.js +1 -1
  38. package/dist/components/d-flow-function/DFlowFunction.view.d.ts +14 -11
  39. package/dist/components/d-flow-function/DFlowFunction.view.js +19 -12
  40. package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +72 -75
  41. package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +27 -32
  42. package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +17 -10
  43. package/dist/components/d-flow-input/DFlowInputDataType.js +38 -33
  44. package/dist/components/d-flow-input/DFlowInputDefault.d.ts +10 -0
  45. package/dist/components/d-flow-input/DFlowInputDefault.js +128 -0
  46. package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +7 -0
  47. package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +24 -0
  48. package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +11 -0
  49. package/dist/components/d-flow-input/DFlowInputNodeBadge.js +44 -0
  50. package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +11 -0
  51. package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +33 -0
  52. package/dist/components/d-flow-panel/DFlowExport.js +1 -1
  53. package/dist/components/d-flow-panel/DFlowMiniMap.js +1 -1
  54. package/dist/components/d-flow-panel/DFlowPanelControl.js +34 -32
  55. package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +3 -0
  56. package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +34 -0
  57. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +3 -0
  58. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +50 -0
  59. package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +3 -0
  60. package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +133 -0
  61. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +3 -18
  62. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +19 -156
  63. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +47 -58
  64. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.js +5 -4
  65. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +6 -6
  66. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +3 -0
  67. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +44 -0
  68. package/dist/components/d-flow-type/DFlowType.view.d.ts +5 -5
  69. package/dist/components/d-flow-type/DFlowType.view.js +22 -12
  70. package/dist/components/d-flow-validation/DFlowValidation.hook.js +1 -1
  71. package/dist/components/d-flow-validation/DNodeValidation.hook.js +39 -43
  72. package/dist/components/d-resizable/DResizable.d.ts +4 -4
  73. package/dist/components/d-resizable/DResizable.js +22 -21
  74. package/dist/components/d-user/DUserInput.js +23 -21
  75. package/dist/components/file-tabs/FileTabs.service.d.ts +0 -1
  76. package/dist/components/file-tabs/FileTabs.service.js +49 -53
  77. package/dist/components/form/EmailInput.js +9 -9
  78. package/dist/components/form/Input.d.ts +2 -1
  79. package/dist/components/form/Input.js +294 -397
  80. package/dist/components/form/Input.syntax.hook.d.ts +1 -18
  81. package/dist/components/form/Input.syntax.hook.js +7 -73
  82. package/dist/components/form/Input.utils.d.ts +1 -2
  83. package/dist/components/form/Input.utils.js +26 -21
  84. package/dist/components/form/InputContentEditable.hook.d.ts +40 -0
  85. package/dist/components/form/InputContentEditable.hook.js +471 -0
  86. package/dist/components/form/InputSuggestion.d.ts +2 -2
  87. package/dist/components/form/InputSuggestion.js +169 -107
  88. package/dist/components/form/PasswordInput.js +8 -8
  89. package/dist/components/form/TextInput.js +11 -11
  90. package/dist/components/form/useForm.d.ts +1 -0
  91. package/dist/components/form/useForm.js +45 -60
  92. package/dist/components/menu/Menu.js +4 -4
  93. package/dist/index.js +155 -154
  94. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +30 -30
  95. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +8 -8
  96. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +8 -8
  97. package/dist/node_modules/fast-deep-equal/index.js +31 -0
  98. package/dist/node_modules/object-assign/index.js +49 -0
  99. package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
  100. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
  101. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
  102. package/dist/node_modules/prop-types/index.js +17 -0
  103. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
  104. package/dist/node_modules/prop-types/lib/has.js +7 -0
  105. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +87 -0
  106. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +70 -0
  107. package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
  108. package/dist/node_modules/react-contenteditable/lib/react-contenteditable.js +132 -0
  109. package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +6235 -0
  110. package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +4096 -0
  111. package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +6753 -0
  112. package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +4645 -0
  113. package/dist/node_modules/react-dom/server.browser.js +15 -0
  114. package/dist/utils/generics.d.ts +2 -0
  115. package/dist/utils/generics.js +93 -80
  116. package/dist/utils/index.js +22 -21
  117. package/dist/utils/inspection.d.ts +4 -2
  118. package/dist/utils/inspection.js +27 -2
  119. package/package.json +10 -8
  120. package/dist/components/form/Input.selection.hook.d.ts +0 -17
  121. package/dist/components/form/Input.selection.hook.js +0 -78
  122. package/dist/components/form/InputSyntax.d.ts +0 -19
  123. package/dist/components/form/InputSyntax.js +0 -52
  124. package/dist/components/form/inputSyntaxMapping.d.ts +0 -3
  125. package/dist/components/form/inputSyntaxMapping.js +0 -42
@@ -1,120 +1,117 @@
1
- import { jsxs as m, jsx as o, Fragment as k } from "react/jsx-runtime";
2
- import { useService as w, useStore as y } from "../../utils/contextStore.js";
3
- import { InspectionSeverity as J } from "../../utils/inspection.js";
4
- import f, { memo as X } from "react";
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 I, useReactFlow as Y, Handle as S, Position as p } from "@xyflow/react";
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 { IconFile as B } from "@tabler/icons-react";
11
- import { Text as s } from "../text/Text.js";
12
- import { DFlowFunctionReactiveService as N } from "./DFlowFunction.service.js";
13
- import { useNodeValidation as K } from "../d-flow-validation/DNodeValidation.hook.js";
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 R } from "../d-flow/DFlow.service.js";
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 { md5 as $ } from "js-md5";
23
- import { FileTabsService as M } from "../file-tabs/FileTabs.service.js";
24
- import { DFlowTabDefault as Q } from "../d-flow-file/DFlowTabDefault.js";
25
- import { Badge as u } from "../badge/Badge.js";
26
- const xe = X((l) => {
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: i,
29
- id: d,
31
+ data: e,
32
+ id: p,
30
33
  width: C = 0,
31
- height: A = 0
32
- } = l, L = I((e) => e.width), P = I((e) => e.height), H = Y(), h = w(M), b = y(M), x = w(R), _ = y(R), F = w(N), D = y(N), n = f.useMemo(() => x.getNodeById(i.flowId, i.nodeId), [_, i]), c = f.useMemo(() => n ? F.getById(n.functionDefinition?.id) : void 0, [D, i, n]), V = K(i.nodeId, i.flowId), T = f.useMemo(() => b.find((e) => e.active)?.id, [b, h]), E = I((e) => {
33
- const t = e.nodes.filter((a) => a.parentId === l.parentId);
34
- let r;
35
- return t.forEach((a) => {
36
- const g = a.data?.index ?? 1 / 0, O = r?.data?.index ?? 1 / 0;
37
- (!r || g < O) && (r = a);
38
- }), r;
39
- }), W = (e) => e.split(/(\$\{[^}]+\})/).filter(Boolean).flatMap((t) => t.startsWith("${") ? [t.slice(2, -1)] : t.split(/(\s*,\s*)/).filter(Boolean).flatMap((r) => r.trim() === "," ? [","] : r.trim() ? [r.trim()] : [])), z = $(d), v = (e) => parseInt(e.slice(0, 8), 16) % 360, j = f.useMemo(() => W(c?.displayMessages?.nodes[0]?.content ?? "").map((e) => {
40
- const t = n?.parameters?.nodes?.find((r) => c?.parameterDefinitions?.find((g) => g.id == r?.id)?.identifier == e);
41
- if (t) {
42
- switch (t?.value?.__typename) {
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__ */ o(u, { style: {
45
- verticalAlign: "middle"
46
- }, color: "secondary", children: /* @__PURE__ */ o(s, { size: "sm", children: String(t?.value?.value) }) });
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__ */ o(u, { style: {
49
- verticalAlign: "middle"
50
- }, children: /* @__PURE__ */ m(s, { size: "sm", children: [
51
- String(t?.value.node),
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
- const r = $(`${d}-param-${JSON.stringify(t)}`), a = x.getNodeById(l.data.flowId, t.value.id);
59
- return /* @__PURE__ */ m(u, { style: {
60
- verticalAlign: "middle"
61
- }, color: `hsl(${v(r)}, 100%, 72%)`, border: !0, pos: "relative", children: [
62
- /* @__PURE__ */ o(s, { size: "sm", style: {
63
- color: "inherit"
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__ */ o(u, { style: {
65
+ return /* @__PURE__ */ t(O, { style: {
69
66
  verticalAlign: "middle"
70
- }, border: !0, children: /* @__PURE__ */ o(s, { size: "sm", children: e }) });
67
+ }, border: !0, children: /* @__PURE__ */ t(y, { size: "sm", children: o }) });
71
68
  }
72
- return " " + String(e) + " ";
73
- }), [_, D, i, c]);
74
- return f.useEffect(() => {
75
- n?.id && h.registerTab({
76
- id: n.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(k, { children: [
80
- /* @__PURE__ */ o(B, { color: `hsl(${v(z)}, 100%, 72%)`, size: 12 }),
81
- /* @__PURE__ */ o(s, { size: "sm", children: c?.names?.nodes[0]?.content })
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__ */ o(Q, { flowId: l.data.flowId, depthLevel: i.depth, scopeLevel: i.scope, nodeLevel: i.index, node: n })
80
+ content: /* @__PURE__ */ t(K, { flowId: d.data.flowId, node: r })
84
81
  });
85
- }, [n?.id, c, i]), /* @__PURE__ */ m(q, { "data-flow-refernce": d, paddingSize: "xs", outline: E.id === d, borderColor: T == n?.id ? "info" : void 0, className: T == n?.id ? "d-flow-viewport-default-card--active" : void 0, color: (V?.filter((e) => e.type === J.ERROR)?.length ?? 0) > 0 ? "error" : "primary", onClick: () => {
86
- H.setViewport({
87
- x: L / 2 + l.positionAbsoluteX * -1 - C / 2,
88
- y: P / 2 + l.positionAbsoluteY * -1 - A / 2,
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
- }), h.activateTab(n?.id);
89
+ }), u.activateTab(r?.id);
93
90
  }, style: {
94
91
  position: "relative"
95
92
  }, children: [
96
- /* @__PURE__ */ o(S, { isConnectable: !1, draggable: !1, type: "target", className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target", style: {
97
- ...i.isParameter ? {
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: i.isParameter ? p.Right : p.Top }),
103
- /* @__PURE__ */ o(S, { isConnectable: !1, type: "source", style: {
104
- ...i.isParameter ? {
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: i.isParameter ? p.Left : p.Bottom }),
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__ */ o(B, { color: `hsl(${v(z)}, 100%, 72%)`, size: 16 }),
114
- /* @__PURE__ */ o(s, { size: "md", children: j })
110
+ /* @__PURE__ */ t(F, { color: B(e.nodeId), size: 16 }),
111
+ /* @__PURE__ */ t(y, { size: "md", children: W })
115
112
  ] })
116
- ] }, d);
113
+ ] }, p);
117
114
  });
118
115
  export {
119
- xe as DFlowFunctionDefaultCard
116
+ Be as DFlowFunctionDefaultCard
120
117
  };
@@ -1,48 +1,43 @@
1
- import { jsxs as p, jsx as f } from "react/jsx-runtime";
2
- import { c as g } from "../../_virtual/compiler-runtime.js";
3
- import { useService as w } from "../../utils/contextStore.js";
4
- import _, { memo as S } from "react";
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 v, Position as y } from "@xyflow/react";
7
- import { Button as x } from "../button/Button.js";
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 I } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
9
+ import { useSuggestions as x } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
10
10
  import "../d-flow/DFlow.js";
11
- import { DFlowReactiveService as h } from "../d-flow/DFlow.service.js";
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-md5";
19
- import { DFlowSuggestionMenu as b } from "../d-flow-suggestion/DFlowSuggestionMenu.js";
20
- const L = S((e) => {
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] === Symbol.for("react.memo_cache_sentinel") ? (a = [], t[0] = a) : a = t[0];
24
- let r;
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[5] !== c?.id || t[6] !== o || t[7] !== e.data.parentFunction?.id || t[8] !== d ? (i = (u) => {
32
- d(async () => {
33
- u.value.__typename === "NodeFunction" && await o.addNextNodeById(c?.id, e.data.parentFunction?.id ?? null, u.value);
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[5] = c?.id, t[6] = o, t[7] = e.data.parentFunction?.id, t[8] = d, t[9] = i) : i = t[9];
36
- let l;
37
- t[10] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ p(x, { paddingSize: "xxs", variant: "normal", color: "secondary", children: [
38
- /* @__PURE__ */ f(v, { isConnectable: !1, draggable: !1, type: "target", className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target", style: {
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: y.Top }),
41
- /* @__PURE__ */ f(F, { size: 12 })
42
- ] }), t[10] = l) : l = t[10];
43
- let m;
44
- return t[11] !== s || t[12] !== i ? (m = /* @__PURE__ */ f(b, { onSuggestionSelect: i, suggestions: s, triggerContent: l }), t[11] = s, t[12] = i, t[13] = m) : m = t[13], m;
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
- L as DFlowFunctionSuggestionCard
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 f, IconChevronDown as F } from "@tabler/icons-react";
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 J = y((i) => {
22
+ const $ = y((i) => {
16
23
  const {
17
24
  data: a,
18
25
  id: d
19
- } = i, r = m(R), p = 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);
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(f, { size: 12 }),
27
- /* @__PURE__ */ e(l, { size: "sm", children: t?.names?.nodes[0]?.content })
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?.nodes]), /* @__PURE__ */ o(n, { align: "center", style: {
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
- p.setViewport({
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(f, { size: 16 }),
57
- /* @__PURE__ */ e(l, { display: "block", size: "md", children: t?.names?.nodes[0]?.content ?? t?.id })
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
- J as DFlowFunctionTriggerCard
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 { useSuggestions as Ve } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
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 { DFlowSuggestionType as _e } from "../d-flow-suggestion/DFlowSuggestion.view.js";
28
- import { Menu as Ke, MenuTrigger as we, MenuPortal as Ge } from "../menu/Menu.js";
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), Le(o, i), 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 && (Pe(h, l) || N.splice(r, 1));
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(Ye, { 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) => {
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(Ke, { children: [
85
- /* @__PURE__ */ c(we, { asChild: !0, children: /* @__PURE__ */ S(re, { color: "primary", children: [
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(Ge, { children: /* @__PURE__ */ S(De, { children: [
88
+ /* @__PURE__ */ c(we, { children: /* @__PURE__ */ S(De, { children: [
90
89
  /* @__PURE__ */ c(ke, { onSuggestionSelect: (r) => {
91
90
  E((o) => {
92
- "rules" in o ? o?.rules?.nodes?.push(r.value) : "dataType" in o?.genericType && o?.genericType?.dataType?.rules?.nodes?.push(r.value);
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: Fe.filter((r) => T?.variant == "OBJECT" ? r == "CONTAINS_KEY" : T?.variant == "ARRAY" ? r == "CONTAINS_TYPE" : !(r == "CONTAINS_TYPE" || r == "CONTAINS_KEY")).map((r) => ({
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
- }, Ye = (t) => {
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?.nodes?.[0]?.content ?? k?.genericType?.dataType?.name?.nodes?.[0]?.content;
163
+ R = k?.dataType?.name?.[0]?.content ?? k?.genericType?.dataType?.name?.[0]?.content;
159
164
  break e;
160
165
  }
161
- R = I.dataType?.name?.nodes?.[0]?.content ?? I.genericType?.dataType?.name?.nodes?.[0]?.content;
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 P;
171
- e[10] !== i || e[11] !== d || e[12] !== s || e[13] !== n.config || e[14] !== D ? (P = (C) => {
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 = Je(i, n.config, {
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] = P) : P = e[15];
180
- const _ = P;
181
- let z;
182
- e[16] !== n ? (z = me(n), e[16] = n, e[17] = z) : z = e[17];
183
- const K = z;
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 x;
220
- e[39] === Symbol.for("react.memo_cache_sentinel") ? (x = {
224
+ let H;
225
+ e[39] === Symbol.for("react.memo_cache_sentinel") ? (H = {
221
226
  flex: 1
222
- }, e[39] = x) : x = 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 H;
233
- return e[53] !== w || e[54] !== G ? (H = /* @__PURE__ */ c("div", { className: "d-flow-viewport-data-type-input__rule", children: /* @__PURE__ */ S("div", { style: x, children: [
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] = H) : H = e[55], H;
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/878634678"
254
+ id: "gid://sagittarius/DataType/-1"
250
255
  }
251
- }, [], "", 0, [0], 1, [_e.DATA_TYPE]) : [], 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 ?? "");
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 : "", Je = (t, e, n) => {
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
- }, Le = (t, e) => pe(t) === pe(e), Pe = (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) => {
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>;