@code0-tech/pictor 0.0.0-mvp.30 → 0.0.0-mvp.32

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 (134) hide show
  1. package/dist/components/avatar/Avatar.js +7 -7
  2. package/dist/components/breadcrumb/Breadcrumb.js +4 -4
  3. package/dist/components/button/Button.js +8 -8
  4. package/dist/components/context-menu/ContextMenu.js +131 -131
  5. package/dist/components/d-flow/DFlow.edges.hook.js +22 -22
  6. package/dist/components/d-flow/DFlow.js +32 -32
  7. package/dist/components/d-flow/DFlow.nodes.hook.js +8 -8
  8. package/dist/components/d-flow-file/DFlowTabDefault.js +16 -16
  9. package/dist/components/d-flow-folder/DFlowFolder.js +13 -13
  10. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +5 -5
  11. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +13 -13
  12. package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +5 -5
  13. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +11 -11
  14. package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +7 -7
  15. package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +9 -9
  16. package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +12 -12
  17. package/dist/components/d-flow-input/DFlowInputDataType.js +16 -16
  18. package/dist/components/d-flow-input/DFlowInputNodeBadge.js +8 -8
  19. package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +4 -4
  20. package/dist/components/d-flow-panel/DFlowExport.js +5 -5
  21. package/dist/components/d-flow-panel/DFlowPanelControl.js +4 -4
  22. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +4 -4
  23. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +7 -7
  24. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +12 -12
  25. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +5 -5
  26. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +4 -4
  27. package/dist/components/d-flow-validation/DNodeValidation.hook.js +3 -3
  28. package/dist/components/d-fullscreen/DFullScreen.js +2 -2
  29. package/dist/components/d-member/DNamespaceMemberList.js +5 -5
  30. package/dist/components/d-organization/DOrganizationList.js +7 -7
  31. package/dist/components/d-organization/DOrganizationMenu.js +5 -5
  32. package/dist/components/d-organization/DOrganizatonContent.js +22 -22
  33. package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
  34. package/dist/components/d-project/DNamespaceProjectList.js +5 -5
  35. package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
  36. package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
  37. package/dist/components/d-runtime/DRuntimeList.js +7 -7
  38. package/dist/components/d-user/DUser.session.hook.js +2 -2
  39. package/dist/components/d-user/DUserContent.js +13 -13
  40. package/dist/components/d-user/DUserList.js +9 -9
  41. package/dist/components/form/CheckboxInput.js +4 -4
  42. package/dist/components/form/EmailInput.js +9 -9
  43. package/dist/components/form/Input.js +311 -230
  44. package/dist/components/form/Input.utils.js +1 -1
  45. package/dist/components/form/InputContentEditable.hook.d.ts +14 -2
  46. package/dist/components/form/InputContentEditable.hook.js +296 -317
  47. package/dist/components/form/NumberInput.js +9 -9
  48. package/dist/components/form/PasswordInput.js +2 -2
  49. package/dist/components/form/SwitchInput.js +7 -7
  50. package/dist/components/form/TextInput.js +6 -6
  51. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
  52. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
  53. package/dist/utils/objectStore.js +15 -15
  54. package/dist/utils/reactiveArrayService.js +10 -10
  55. package/package.json +19 -19
  56. package/dist/_virtual/_commonjsHelpers.js +0 -6
  57. package/dist/_virtual/index.js +0 -4
  58. package/dist/_virtual/index2.js +0 -4
  59. package/dist/_virtual/react-contenteditable.js +0 -7
  60. package/dist/_virtual/react-contenteditable2.js +0 -4
  61. package/dist/_virtual/react-dom-server-legacy.browser.development.js +0 -4
  62. package/dist/_virtual/react-dom-server-legacy.browser.production.js +0 -4
  63. package/dist/_virtual/react-dom-server.browser.development.js +0 -4
  64. package/dist/_virtual/react-dom-server.browser.production.js +0 -4
  65. package/dist/_virtual/react-is.development.js +0 -4
  66. package/dist/_virtual/react-is.production.min.js +0 -4
  67. package/dist/_virtual/server.browser.js +0 -5
  68. package/dist/_virtual/server.browser2.js +0 -4
  69. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
  70. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
  71. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
  72. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
  73. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
  74. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
  75. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
  76. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -48
  77. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
  78. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -53
  79. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +0 -222
  80. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -10
  81. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
  82. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
  83. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
  84. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
  85. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +0 -636
  86. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
  87. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
  88. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
  89. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
  90. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -183
  91. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
  92. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
  93. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
  94. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
  95. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
  96. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
  97. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
  98. package/dist/node_modules/fast-deep-equal/index.js +0 -31
  99. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
  100. package/dist/node_modules/object-assign/index.js +0 -49
  101. package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
  102. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
  103. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
  104. package/dist/node_modules/prop-types/index.js +0 -17
  105. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
  106. package/dist/node_modules/prop-types/lib/has.js +0 -7
  107. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -87
  108. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -70
  109. package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -10
  110. package/dist/node_modules/react-contenteditable/lib/react-contenteditable.js +0 -132
  111. package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +0 -6235
  112. package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +0 -4096
  113. package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -6753
  114. package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +0 -4645
  115. package/dist/node_modules/react-dom/server.browser.js +0 -15
  116. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  117. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
  118. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
  119. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
  120. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
  121. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  122. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  123. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
  124. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
  125. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
  126. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
  127. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
  128. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
  129. package/dist/node_modules/tslib/tslib.es6.js +0 -27
  130. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
  131. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
  132. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
  133. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
  134. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
@@ -20,14 +20,14 @@ const x = (f) => {
20
20
  s();
21
21
  });
22
22
  const s = () => {
23
- const i = v(f), r = Math.floor(t / 5), a = i.slice(0, 6);
23
+ const i = v(f), r = Math.floor(t / 5), c = i.slice(0, 6);
24
24
  e.current.width = r * 5, e.current.height = r * 5;
25
- let c = i.split("").map((o) => (o = parseInt(o, 16), o < 8 ? 0 : 1)), l = [];
26
- l[0] = l[4] = c.slice(0, 5), l[1] = l[3] = c.slice(5, 10), l[2] = c.slice(10, 15);
25
+ let a = i.split("").map((o) => (o = parseInt(o, 16), o < 8 ? 0 : 1)), l = [];
26
+ l[0] = l[4] = a.slice(0, 5), l[1] = l[3] = a.slice(5, 10), l[2] = a.slice(10, 15);
27
27
  const n = e.current.getContext("2d");
28
28
  n.imageSmoothingEnabled = !1, n.clearRect(0, 0, e.current.width, e.current.height), l.forEach((o, h) => {
29
29
  o.forEach((g, u) => {
30
- g ? (n.fillStyle = "#" + a, n.fillRect(r * h, r * u, r, r)) : (n.fillStyle = "transparent", n.fillRect(r * h, r * u, r, r));
30
+ g ? (n.fillStyle = "#" + c, n.fillRect(r * h, r * u, r, r)) : (n.fillStyle = "transparent", n.fillRect(r * h, r * u, r, r));
31
31
  });
32
32
  });
33
33
  };
@@ -45,10 +45,10 @@ const x = (f) => {
45
45
  e = l, i = n, s = o === void 0 ? 25 : o, r = R(`avatar ${!e && i ? "avatar--image" : ""}`, h), t[0] = f, t[1] = e, t[2] = s, t[3] = i, t[4] = r;
46
46
  } else
47
47
  e = t[1], s = t[2], i = t[3], r = t[4];
48
- let a;
49
- t[5] !== e || t[6] !== s || t[7] !== i ? (a = e ? /* @__PURE__ */ m(E, { identifier: e, size: s }) : i ? /* @__PURE__ */ m(x, { src: i, size: s + 13 }) : null, t[5] = e, t[6] = s, t[7] = i, t[8] = a) : a = t[8];
50
48
  let c;
51
- return t[9] !== r || t[10] !== a ? (c = /* @__PURE__ */ m("div", { ...r, children: a }), t[9] = r, t[10] = a, t[11] = c) : c = t[11], c;
49
+ t[5] !== e || t[6] !== s || t[7] !== i ? (c = e ? /* @__PURE__ */ m(E, { identifier: e, size: s }) : i ? /* @__PURE__ */ m(x, { src: i, size: s + 13 }) : null, t[5] = e, t[6] = s, t[7] = i, t[8] = c) : c = t[8];
50
+ let a;
51
+ return t[9] !== r || t[10] !== c ? (a = /* @__PURE__ */ m("div", { ...r, children: c }), t[9] = r, t[10] = c, t[11] = a) : a = t[11], a;
52
52
  };
53
53
  export {
54
54
  $ as Avatar
@@ -1,15 +1,15 @@
1
1
  import { jsx as r, jsxs as l } from "react/jsx-runtime";
2
2
  import e from "react";
3
- import { mergeCode0Props as d } from "../../utils/utils.js";
3
+ import { mergeCode0Props as p } from "../../utils/utils.js";
4
4
  import '../../assets/components/breadcrumb/Breadcrumb.style.css';/* empty css */
5
- import { IconChevronRight as p } from "@tabler/icons-react";
5
+ import { IconChevronRight as d } from "@tabler/icons-react";
6
6
  const C = (m) => {
7
7
  const {
8
- splitter: n = /* @__PURE__ */ r(p, { size: 16 }),
8
+ splitter: n = /* @__PURE__ */ r(d, { size: 16 }),
9
9
  children: t,
10
10
  ...c
11
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: [
12
+ return /* @__PURE__ */ r("div", { ...p("breadcrumb", c), children: e.Children.map(t, (s, o) => /* @__PURE__ */ l(e.Fragment, { children: [
13
13
  s,
14
14
  o < i - 1 ? /* @__PURE__ */ r("span", { className: "breadcrumb__splitter", children: n }) : null
15
15
  ] }, o)) });
@@ -4,22 +4,22 @@ import '../../assets/components/button/Button.style.css';/* empty css
4
4
  import z from "react";
5
5
  import "../../utils/contextStore.js";
6
6
  import { mergeCode0Props as S } from "../../utils/utils.js";
7
- const E = z.forwardRef((a, d) => {
7
+ const P = z.forwardRef((a, d) => {
8
8
  const t = h.c(11);
9
9
  let o, r, e, i;
10
10
  if (t[0] !== a || t[1] !== d) {
11
11
  const {
12
12
  children: f,
13
- variant: l,
14
- color: c,
13
+ variant: c,
14
+ color: l,
15
15
  paddingSize: m,
16
- active: u,
17
- disabled: b,
16
+ active: b,
17
+ disabled: u,
18
18
  ...v
19
19
  } = a;
20
20
  o = f;
21
- const p = l === void 0 ? "normal" : l, $ = c === void 0 ? "secondary" : c, g = m === void 0 ? "xs" : m, x = u === void 0 ? !1 : u;
22
- r = b === void 0 ? !1 : b, e = d, i = S(`button button--${$} ${x ? "button--active" : ""} ${r ? "button--disabled" : ""} button--${p} button--${g}`, v), t[0] = a, t[1] = d, t[2] = o, t[3] = r, t[4] = e, t[5] = i;
21
+ const p = c === void 0 ? "normal" : c, $ = l === void 0 ? "secondary" : l, g = m === void 0 ? "xs" : m, x = b === void 0 ? !1 : b;
22
+ r = u === void 0 ? !1 : u, e = d, i = S(`button button--${$} ${x ? "button--active" : ""} ${r ? "button--disabled" : ""} button--${p} button--${g}`, v), t[0] = a, t[1] = d, t[2] = o, t[3] = r, t[4] = e, t[5] = i;
23
23
  } else
24
24
  o = t[2], r = t[3], e = t[4], i = t[5];
25
25
  const s = r ? "true" : "false";
@@ -27,5 +27,5 @@ const E = z.forwardRef((a, d) => {
27
27
  return t[6] !== o || t[7] !== e || t[8] !== i || t[9] !== s ? (n = /* @__PURE__ */ R("button", { ref: e, ...i, "aria-disabled": s, children: o }), t[6] = o, t[7] = e, t[8] = i, t[9] = s, t[10] = n) : n = t[10], n;
28
28
  });
29
29
  export {
30
- E as Button
30
+ P as Button
31
31
  };
@@ -1,191 +1,191 @@
1
- import { jsx as c, jsxs as u } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as a } from "react/jsx-runtime";
2
2
  import { c as r } from "../../_virtual/compiler-runtime.js";
3
3
  import "../../utils/contextStore.js";
4
4
  import "react";
5
5
  import { mergeCode0Props as i } from "../../utils/utils.js";
6
- import { ContextMenu as A, ContextMenuTrigger as L, ContextMenuPortal as P, ContextMenuContent as G, ContextMenuSub as j, ContextMenuSubTrigger as v, ContextMenuSubContent as D, ContextMenuItem as W, ContextMenuSeparator as B, ContextMenuLabel as E, ContextMenuGroup as F, ContextMenuArrow as R } from "../../node_modules/@radix-ui/react-context-menu/dist/index.js";
6
+ import * as m from "@radix-ui/react-context-menu";
7
7
  import '../../assets/components/context-menu/ContextMenu.style.css';/* empty css */
8
8
  import { Card as $ } from "../card/Card.js";
9
- import { Flex as g } from "../flex/Flex.js";
10
- import { Badge as M } from "../badge/Badge.js";
11
- import { IconArrowUp as y, IconArrowDown as w, IconCornerDownLeft as z } from "@tabler/icons-react";
12
- import { Spacing as I } from "../spacing/Spacing.js";
13
- const Z = (t) => {
9
+ import { Flex as S } from "../flex/Flex.js";
10
+ import { Badge as y } from "../badge/Badge.js";
11
+ import { IconArrowUp as z, IconArrowDown as w, IconCornerDownLeft as I } from "@tabler/icons-react";
12
+ import { Spacing as A } from "../spacing/Spacing.js";
13
+ const U = (t) => {
14
14
  const e = r.c(4);
15
- let o;
16
- e[0] !== t ? (o = i("context-menu", t), e[0] = t, e[1] = o) : o = e[1];
17
- const l = o;
15
+ let l;
16
+ e[0] !== t ? (l = i("context-menu", t), e[0] = t, e[1] = l) : l = e[1];
17
+ const c = l;
18
18
  let n;
19
- return e[2] !== l ? (n = /* @__PURE__ */ c(A, { ...l }), e[2] = l, e[3] = n) : n = e[3], n;
20
- }, p = (t) => {
19
+ return e[2] !== c ? (n = /* @__PURE__ */ o(m.ContextMenu, { ...c }), e[2] = c, e[3] = n) : n = e[3], n;
20
+ }, k = (t) => {
21
21
  const e = r.c(4);
22
- let o;
23
- e[0] !== t ? (o = i("context-menu__trigger", t), e[0] = t, e[1] = o) : o = e[1];
24
- const l = o;
22
+ let l;
23
+ e[0] !== t ? (l = i("context-menu__trigger", t), e[0] = t, e[1] = l) : l = e[1];
24
+ const c = l;
25
25
  let n;
26
- return e[2] !== l ? (n = /* @__PURE__ */ c(L, { ...l }), e[2] = l, e[3] = n) : n = e[3], n;
27
- }, ee = (t) => {
26
+ return e[2] !== c ? (n = /* @__PURE__ */ o(m.ContextMenuTrigger, { ...c }), e[2] = c, e[3] = n) : n = e[3], n;
27
+ }, q = (t) => {
28
28
  const e = r.c(4);
29
- let o;
30
- e[0] !== t ? (o = i("context-menu__portal", t), e[0] = t, e[1] = o) : o = e[1];
31
- const l = o;
29
+ let l;
30
+ e[0] !== t ? (l = i("context-menu__portal", t), e[0] = t, e[1] = l) : l = e[1];
31
+ const c = l;
32
32
  let n;
33
- return e[2] !== l ? (n = /* @__PURE__ */ c(P, { ...l }), e[2] = l, e[3] = n) : n = e[3], n;
34
- }, te = (t) => {
35
- const e = r.c(17), o = t.align, l = `context-menu__content context-menu__content--${t.color ?? "secondary"}`;
33
+ return e[2] !== c ? (n = /* @__PURE__ */ o(m.ContextMenuPortal, { ...c }), e[2] = c, e[3] = n) : n = e[3], n;
34
+ }, H = (t) => {
35
+ const e = r.c(17), l = t.align, c = `context-menu__content context-menu__content--${t.color ?? "secondary"}`;
36
36
  let n;
37
- e[0] !== t || e[1] !== l ? (n = i(l, t), e[0] = t, e[1] = l, e[2] = n) : n = e[2];
38
- const b = n;
37
+ e[0] !== t || e[1] !== c ? (n = i(c, t), e[0] = t, e[1] = c, e[2] = n) : n = e[2];
38
+ const C = n;
39
39
  let s;
40
40
  e[3] === Symbol.for("react.memo_cache_sentinel") ? (s = {
41
41
  borderWidth: "2px"
42
42
  }, e[3] = s) : s = e[3];
43
- let m;
44
- e[4] !== t.children ? (m = /* @__PURE__ */ c($, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: s, children: t.children }), e[4] = t.children, e[5] = m) : m = e[5];
45
- let a;
46
- e[6] === Symbol.for("react.memo_cache_sentinel") ? (a = {
43
+ let u;
44
+ e[4] !== t.children ? (u = /* @__PURE__ */ o($, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: s, children: t.children }), e[4] = t.children, e[5] = u) : u = e[5];
45
+ let f;
46
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (f = {
47
47
  gap: ".35rem"
48
- }, e[6] = a) : a = e[6];
48
+ }, e[6] = f) : f = e[6];
49
49
  let x;
50
50
  e[7] === Symbol.for("react.memo_cache_sentinel") ? (x = {
51
51
  gap: "0.35rem"
52
52
  }, e[7] = x) : x = e[7];
53
- let f;
54
- e[8] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ c(M, { border: !0, children: /* @__PURE__ */ c(y, { size: 12 }) }), e[8] = f) : f = e[8];
55
- let _, d;
56
- e[9] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ u(g, { align: "center", style: x, children: [
57
- /* @__PURE__ */ u(g, { children: [
58
- f,
59
- /* @__PURE__ */ c(M, { border: !0, children: /* @__PURE__ */ c(w, { size: 12 }) })
53
+ let _;
54
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ o(y, { border: !0, children: /* @__PURE__ */ o(z, { size: 12 }) }), e[8] = _) : _ = e[8];
55
+ let d, h;
56
+ e[9] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(S, { align: "center", style: x, children: [
57
+ /* @__PURE__ */ a(S, { children: [
58
+ _,
59
+ /* @__PURE__ */ o(y, { border: !0, children: /* @__PURE__ */ o(w, { size: 12 }) })
60
60
  ] }),
61
61
  "move"
62
- ] }), _ = /* @__PURE__ */ c(I, { spacing: "xxs" }), e[9] = _, e[10] = d) : (_ = e[9], d = e[10]);
63
- let C;
64
- e[11] === Symbol.for("react.memo_cache_sentinel") ? (C = {
62
+ ] }), d = /* @__PURE__ */ o(A, { spacing: "xxs" }), e[9] = d, e[10] = h) : (d = e[9], h = e[10]);
63
+ let b;
64
+ e[11] === Symbol.for("react.memo_cache_sentinel") ? (b = {
65
65
  gap: ".35rem"
66
- }, e[11] = C) : C = e[11];
67
- let h;
68
- e[12] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ c(T, { children: /* @__PURE__ */ u(g, { style: a, children: [
66
+ }, e[11] = b) : b = e[11];
67
+ let g;
68
+ e[12] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ o(T, { children: /* @__PURE__ */ a(S, { style: f, children: [
69
+ h,
69
70
  d,
70
- _,
71
- /* @__PURE__ */ u(g, { align: "center", style: C, children: [
72
- /* @__PURE__ */ c(M, { border: !0, children: /* @__PURE__ */ c(z, { size: 12 }) }),
71
+ /* @__PURE__ */ a(S, { align: "center", style: b, children: [
72
+ /* @__PURE__ */ o(y, { border: !0, children: /* @__PURE__ */ o(I, { size: 12 }) }),
73
73
  "select"
74
74
  ] })
75
- ] }) }), e[12] = h) : h = e[12];
76
- let S;
77
- return e[13] !== t.align || e[14] !== b || e[15] !== m ? (S = /* @__PURE__ */ u(G, { align: o, ...b, children: [
78
- m,
79
- h
80
- ] }), e[13] = t.align, e[14] = b, e[15] = m, e[16] = S) : S = e[16], S;
75
+ ] }) }), e[12] = g) : g = e[12];
76
+ let M;
77
+ return e[13] !== t.align || e[14] !== C || e[15] !== u ? (M = /* @__PURE__ */ a(m.ContextMenuContent, { align: l, ...C, children: [
78
+ u,
79
+ g
80
+ ] }), e[13] = t.align, e[14] = C, e[15] = u, e[16] = M) : M = e[16], M;
81
81
  }, T = (t) => {
82
82
  const e = r.c(4);
83
- let o;
84
- e[0] !== t ? (o = i("context-menu__label", t), e[0] = t, e[1] = o) : o = e[1];
85
- const l = o;
83
+ let l;
84
+ e[0] !== t ? (l = i("context-menu__label", t), e[0] = t, e[1] = l) : l = e[1];
85
+ const c = l;
86
86
  let n;
87
- return e[2] !== l ? (n = /* @__PURE__ */ c(E, { ...l }), e[2] = l, e[3] = n) : n = e[3], n;
88
- }, ne = (t) => {
87
+ return e[2] !== c ? (n = /* @__PURE__ */ o(m.ContextMenuLabel, { ...c }), e[2] = c, e[3] = n) : n = e[3], n;
88
+ }, J = (t) => {
89
89
  const e = r.c(4);
90
- let o;
91
- e[0] !== t ? (o = i("context-menu__item", t), e[0] = t, e[1] = o) : o = e[1];
92
- const l = o;
90
+ let l;
91
+ e[0] !== t ? (l = i("context-menu__item", t), e[0] = t, e[1] = l) : l = e[1];
92
+ const c = l;
93
93
  let n;
94
- return e[2] !== l ? (n = /* @__PURE__ */ c(W, { ...l }), e[2] = l, e[3] = n) : n = e[3], n;
95
- }, oe = (t) => {
94
+ return e[2] !== c ? (n = /* @__PURE__ */ o(m.ContextMenuItem, { ...c }), e[2] = c, e[3] = n) : n = e[3], n;
95
+ }, K = (t) => {
96
96
  const e = r.c(4);
97
- let o;
98
- e[0] !== t ? (o = i("context-menu__group", t), e[0] = t, e[1] = o) : o = e[1];
99
- const l = o;
97
+ let l;
98
+ e[0] !== t ? (l = i("context-menu__group", t), e[0] = t, e[1] = l) : l = e[1];
99
+ const c = l;
100
100
  let n;
101
- return e[2] !== l ? (n = /* @__PURE__ */ c(F, { ...l }), e[2] = l, e[3] = n) : n = e[3], n;
102
- }, le = (t) => {
101
+ return e[2] !== c ? (n = /* @__PURE__ */ o(m.ContextMenuGroup, { ...c }), e[2] = c, e[3] = n) : n = e[3], n;
102
+ }, N = (t) => {
103
103
  const e = r.c(4);
104
- let o;
105
- e[0] !== t ? (o = i("context-menu__sub", t), e[0] = t, e[1] = o) : o = e[1];
106
- const l = o;
104
+ let l;
105
+ e[0] !== t ? (l = i("context-menu__sub", t), e[0] = t, e[1] = l) : l = e[1];
106
+ const c = l;
107
107
  let n;
108
- return e[2] !== l ? (n = /* @__PURE__ */ c(j, { ...l }), e[2] = l, e[3] = n) : n = e[3], n;
109
- }, ce = (t) => {
108
+ return e[2] !== c ? (n = /* @__PURE__ */ o(m.ContextMenuSub, { ...c }), e[2] = c, e[3] = n) : n = e[3], n;
109
+ }, O = (t) => {
110
110
  const e = r.c(4);
111
- let o;
112
- e[0] !== t ? (o = i("context-menu__sub-trigger", t), e[0] = t, e[1] = o) : o = e[1];
113
- const l = o;
114
- let n;
115
- return e[2] !== l ? (n = /* @__PURE__ */ c(v, { ...l }), e[2] = l, e[3] = n) : n = e[3], n;
116
- }, re = (t) => {
117
- const e = r.c(16), o = `context-menu__sub-content context-menu__sub-content--${t.color ?? "secondary"}`;
118
111
  let l;
119
- e[0] !== t || e[1] !== o ? (l = i(o, t), e[0] = t, e[1] = o, e[2] = l) : l = e[2];
120
- const n = l;
121
- let b;
122
- e[3] === Symbol.for("react.memo_cache_sentinel") ? (b = {
112
+ e[0] !== t ? (l = i("context-menu__sub-trigger", t), e[0] = t, e[1] = l) : l = e[1];
113
+ const c = l;
114
+ let n;
115
+ return e[2] !== c ? (n = /* @__PURE__ */ o(m.ContextMenuSubTrigger, { ...c }), e[2] = c, e[3] = n) : n = e[3], n;
116
+ }, Q = (t) => {
117
+ const e = r.c(16), l = `context-menu__sub-content context-menu__sub-content--${t.color ?? "secondary"}`;
118
+ let c;
119
+ e[0] !== t || e[1] !== l ? (c = i(l, t), e[0] = t, e[1] = l, e[2] = c) : c = e[2];
120
+ const n = c;
121
+ let C;
122
+ e[3] === Symbol.for("react.memo_cache_sentinel") ? (C = {
123
123
  borderWidth: "2px"
124
- }, e[3] = b) : b = e[3];
124
+ }, e[3] = C) : C = e[3];
125
125
  let s;
126
- e[4] !== t.children ? (s = /* @__PURE__ */ c($, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: b, children: t.children }), e[4] = t.children, e[5] = s) : s = e[5];
127
- let m;
128
- e[6] === Symbol.for("react.memo_cache_sentinel") ? (m = {
126
+ e[4] !== t.children ? (s = /* @__PURE__ */ o($, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: C, children: t.children }), e[4] = t.children, e[5] = s) : s = e[5];
127
+ let u;
128
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (u = {
129
129
  gap: ".35rem"
130
- }, e[6] = m) : m = e[6];
131
- let a;
132
- e[7] === Symbol.for("react.memo_cache_sentinel") ? (a = {
130
+ }, e[6] = u) : u = e[6];
131
+ let f;
132
+ e[7] === Symbol.for("react.memo_cache_sentinel") ? (f = {
133
133
  gap: "0.35rem"
134
- }, e[7] = a) : a = e[7];
134
+ }, e[7] = f) : f = e[7];
135
135
  let x;
136
- e[8] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ c(M, { border: !0, children: /* @__PURE__ */ c(y, { size: 12 }) }), e[8] = x) : x = e[8];
137
- let f, _;
138
- e[9] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ u(g, { align: "center", style: a, children: [
139
- /* @__PURE__ */ u(g, { children: [
136
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ o(y, { border: !0, children: /* @__PURE__ */ o(z, { size: 12 }) }), e[8] = x) : x = e[8];
137
+ let _, d;
138
+ e[9] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ a(S, { align: "center", style: f, children: [
139
+ /* @__PURE__ */ a(S, { children: [
140
140
  x,
141
- /* @__PURE__ */ c(M, { border: !0, children: /* @__PURE__ */ c(w, { size: 12 }) })
141
+ /* @__PURE__ */ o(y, { border: !0, children: /* @__PURE__ */ o(w, { size: 12 }) })
142
142
  ] }),
143
143
  "move"
144
- ] }), _ = /* @__PURE__ */ c(I, { spacing: "xxs" }), e[9] = f, e[10] = _) : (f = e[9], _ = e[10]);
145
- let d;
146
- e[11] === Symbol.for("react.memo_cache_sentinel") ? (d = {
144
+ ] }), d = /* @__PURE__ */ o(A, { spacing: "xxs" }), e[9] = _, e[10] = d) : (_ = e[9], d = e[10]);
145
+ let h;
146
+ e[11] === Symbol.for("react.memo_cache_sentinel") ? (h = {
147
147
  gap: ".35rem"
148
- }, e[11] = d) : d = e[11];
149
- let C;
150
- e[12] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ c(T, { children: /* @__PURE__ */ u(g, { style: m, children: [
151
- f,
148
+ }, e[11] = h) : h = e[11];
149
+ let b;
150
+ e[12] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ o(T, { children: /* @__PURE__ */ a(S, { style: u, children: [
152
151
  _,
153
- /* @__PURE__ */ u(g, { align: "center", style: d, children: [
154
- /* @__PURE__ */ c(M, { border: !0, children: /* @__PURE__ */ c(z, { size: 12 }) }),
152
+ d,
153
+ /* @__PURE__ */ a(S, { align: "center", style: h, children: [
154
+ /* @__PURE__ */ o(y, { border: !0, children: /* @__PURE__ */ o(I, { size: 12 }) }),
155
155
  "select"
156
156
  ] })
157
- ] }) }), e[12] = C) : C = e[12];
158
- let h;
159
- return e[13] !== n || e[14] !== s ? (h = /* @__PURE__ */ u(D, { ...n, children: [
157
+ ] }) }), e[12] = b) : b = e[12];
158
+ let g;
159
+ return e[13] !== n || e[14] !== s ? (g = /* @__PURE__ */ a(m.ContextMenuSubContent, { ...n, children: [
160
160
  s,
161
- C
162
- ] }), e[13] = n, e[14] = s, e[15] = h) : h = e[15], h;
163
- }, ie = (t) => {
161
+ b
162
+ ] }), e[13] = n, e[14] = s, e[15] = g) : g = e[15], g;
163
+ }, V = (t) => {
164
164
  const e = r.c(4);
165
- let o;
166
- e[0] !== t ? (o = i("context-menu__separator", t), e[0] = t, e[1] = o) : o = e[1];
167
- const l = o;
165
+ let l;
166
+ e[0] !== t ? (l = i("context-menu__separator", t), e[0] = t, e[1] = l) : l = e[1];
167
+ const c = l;
168
168
  let n;
169
- return e[2] !== l ? (n = /* @__PURE__ */ c(B, { ...l }), e[2] = l, e[3] = n) : n = e[3], n;
170
- }, se = (t) => {
169
+ return e[2] !== c ? (n = /* @__PURE__ */ o(m.ContextMenuSeparator, { ...c }), e[2] = c, e[3] = n) : n = e[3], n;
170
+ }, X = (t) => {
171
171
  const e = r.c(4);
172
- let o;
173
- e[0] !== t ? (o = i("context-menu__arrow", t), e[0] = t, e[1] = o) : o = e[1];
174
- const l = o;
172
+ let l;
173
+ e[0] !== t ? (l = i("context-menu__arrow", t), e[0] = t, e[1] = l) : l = e[1];
174
+ const c = l;
175
175
  let n;
176
- return e[2] !== l ? (n = /* @__PURE__ */ c(R, { ...l }), e[2] = l, e[3] = n) : n = e[3], n;
176
+ return e[2] !== c ? (n = /* @__PURE__ */ o(m.ContextMenuArrow, { ...c }), e[2] = c, e[3] = n) : n = e[3], n;
177
177
  };
178
178
  export {
179
- Z as ContextMenu,
180
- se as ContextMenuArrow,
181
- te as ContextMenuContent,
182
- oe as ContextMenuGroup,
183
- ne as ContextMenuItem,
179
+ U as ContextMenu,
180
+ X as ContextMenuArrow,
181
+ H as ContextMenuContent,
182
+ K as ContextMenuGroup,
183
+ J as ContextMenuItem,
184
184
  T as ContextMenuLabel,
185
- ee as ContextMenuPortal,
186
- ie as ContextMenuSeparator,
187
- le as ContextMenuSub,
188
- re as ContextMenuSubContent,
189
- ce as ContextMenuSubTrigger,
190
- p as ContextMenuTrigger
185
+ q as ContextMenuPortal,
186
+ V as ContextMenuSeparator,
187
+ N as ContextMenuSub,
188
+ Q as ContextMenuSubContent,
189
+ O as ContextMenuSubTrigger,
190
+ k as ContextMenuTrigger
191
191
  };
@@ -5,16 +5,16 @@ import { DFlowReactiveService as T } from "./DFlow.service.js";
5
5
  import { DFlowFunctionReactiveService as B } from "../d-flow-function/DFlowFunction.service.js";
6
6
  import { hashToColor as x } from "./DFlow.util.js";
7
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]);
8
+ const u = ["rgba(255, 255, 255, 0.25)"], J = (i, M, R) => {
9
+ const l = h(T), F = S(T), W = h(B), _ = S(B), O = h(E), w = S(E), n = N.useMemo(() => l.getById(i, {
10
+ namespaceId: M,
11
+ projectId: R
12
+ }), [i, F]);
13
13
  return N.useMemo(() => {
14
14
  if (!n) return [];
15
15
  const d = [], p = /* @__PURE__ */ new Map();
16
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) => {
17
+ const b = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), G = (e, o = b) => (o.has(e) || o.set(e, W.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
18
  if (!e) return "";
19
19
  const t = `${e.id}-${v++}`;
20
20
  if (v == 1 && d.push({
@@ -24,21 +24,21 @@ const u = ["rgba(255, 255, 255, 0.25)"], J = (a, _, M) => {
24
24
  data: {
25
25
  color: u[c % u.length],
26
26
  type: "default",
27
- flowId: a,
27
+ flowId: i,
28
28
  parentNodeId: o?.id
29
29
  },
30
30
  deletable: !1,
31
31
  selectable: !1
32
32
  }), g) {
33
- const i = p.get(g) ?? [];
34
- i.length > 0 ? i.forEach((r, $) => d.push({
33
+ const a = p.get(g) ?? [];
34
+ a.length > 0 ? a.forEach((r, $) => d.push({
35
35
  id: `${r}-${t}-next-${$}`,
36
36
  source: r,
37
37
  target: t,
38
38
  data: {
39
39
  color: u[c % u.length],
40
40
  type: "default",
41
- flowId: a,
41
+ flowId: i,
42
42
  parentNodeId: o?.id
43
43
  },
44
44
  deletable: !1,
@@ -50,49 +50,49 @@ const u = ["rgba(255, 255, 255, 0.25)"], J = (a, _, M) => {
50
50
  data: {
51
51
  color: u[c % u.length],
52
52
  type: "default",
53
- flowId: a,
53
+ flowId: i,
54
54
  parentNodeId: o?.id
55
55
  },
56
56
  deletable: !1,
57
57
  selectable: !1
58
58
  });
59
59
  }
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;
60
+ return e.parameters?.nodes?.forEach((a) => {
61
+ const r = a?.value, $ = G(e.functionDefinition?.id, m)?.parameterDefinitions?.find((s) => s.id === a?.id), I = $?.dataTypeIdentifier, H = I ? A(I, y) : void 0;
62
62
  if (r) {
63
63
  if (H?.variant === "NODE") {
64
64
  if (r && r.__typename === "NodeFunctionIdWrapper") {
65
65
  const s = `${t}-group-${v++}`;
66
66
  d.push({
67
- id: `${t}-${s}-param-${i.id}`,
67
+ id: `${t}-${s}-param-${a.id}`,
68
68
  source: t,
69
69
  target: s,
70
70
  deletable: !1,
71
71
  selectable: !1,
72
72
  animated: !0,
73
- label: $?.names[0]?.content ?? i.id,
73
+ label: $?.names[0]?.content ?? a.id,
74
74
  data: {
75
75
  color: x(r?.id || ""),
76
76
  type: "group",
77
- flowId: a,
77
+ flowId: i,
78
78
  parentNodeId: o?.id
79
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);
80
+ }), (p.get(t) ?? (p.set(t, []), p.get(t))).push(s), f(l.getNodeById(i, r.id), e, void 0, c + 1, m, y);
81
81
  }
82
82
  } else if (r && r.__typename === "NodeFunctionIdWrapper") {
83
- const s = f(l.getNodeById(a, r.id), e, void 0, c + 1, m, y);
83
+ const s = f(l.getNodeById(i, r.id), e, void 0, c + 1, m, y);
84
84
  d.push({
85
- id: `${s}-${t}-param-${i.id}`,
85
+ id: `${s}-${t}-param-${a.id}`,
86
86
  source: s,
87
87
  target: t,
88
- targetHandle: `param-${i.id}`,
88
+ targetHandle: `param-${a.id}`,
89
89
  animated: !0,
90
90
  deletable: !1,
91
91
  selectable: !1,
92
92
  data: {
93
93
  color: x(r?.id || ""),
94
94
  type: "parameter",
95
- flowId: a,
95
+ flowId: i,
96
96
  parentNodeId: o?.id
97
97
  }
98
98
  });
@@ -101,7 +101,7 @@ const u = ["rgba(255, 255, 255, 0.25)"], J = (a, _, M) => {
101
101
  }), e.nextNodeId && f(l.getNodeById(n.id, e.nextNodeId), e, t, c, m, y), t;
102
102
  };
103
103
  return n.startingNodeId && f(l.getNodeById(n.id, n.startingNodeId), void 0, void 0, 0, b, D), d;
104
- }, [n, F, W, w]);
104
+ }, [n, F, _, w]);
105
105
  };
106
106
  export {
107
107
  u as FLOW_EDGE_RAINBOW,