@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.
- package/dist/components/avatar/Avatar.js +7 -7
- package/dist/components/breadcrumb/Breadcrumb.js +4 -4
- package/dist/components/button/Button.js +8 -8
- package/dist/components/context-menu/ContextMenu.js +131 -131
- package/dist/components/d-flow/DFlow.edges.hook.js +22 -22
- package/dist/components/d-flow/DFlow.js +32 -32
- package/dist/components/d-flow/DFlow.nodes.hook.js +8 -8
- package/dist/components/d-flow-file/DFlowTabDefault.js +16 -16
- package/dist/components/d-flow-folder/DFlowFolder.js +13 -13
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +5 -5
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +13 -13
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +5 -5
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +11 -11
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +7 -7
- package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +9 -9
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +12 -12
- package/dist/components/d-flow-input/DFlowInputDataType.js +16 -16
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +8 -8
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +4 -4
- package/dist/components/d-flow-panel/DFlowExport.js +5 -5
- package/dist/components/d-flow-panel/DFlowPanelControl.js +4 -4
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +4 -4
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +7 -7
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +12 -12
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +5 -5
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +4 -4
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +3 -3
- package/dist/components/d-fullscreen/DFullScreen.js +2 -2
- package/dist/components/d-member/DNamespaceMemberList.js +5 -5
- package/dist/components/d-organization/DOrganizationList.js +7 -7
- package/dist/components/d-organization/DOrganizationMenu.js +5 -5
- package/dist/components/d-organization/DOrganizatonContent.js +22 -22
- package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
- package/dist/components/d-project/DNamespaceProjectList.js +5 -5
- package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
- package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
- package/dist/components/d-runtime/DRuntimeList.js +7 -7
- package/dist/components/d-user/DUser.session.hook.js +2 -2
- package/dist/components/d-user/DUserContent.js +13 -13
- package/dist/components/d-user/DUserList.js +9 -9
- package/dist/components/form/CheckboxInput.js +4 -4
- package/dist/components/form/EmailInput.js +9 -9
- package/dist/components/form/Input.js +311 -230
- package/dist/components/form/Input.utils.js +1 -1
- package/dist/components/form/InputContentEditable.hook.d.ts +14 -2
- package/dist/components/form/InputContentEditable.hook.js +296 -317
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +2 -2
- package/dist/components/form/SwitchInput.js +7 -7
- package/dist/components/form/TextInput.js +6 -6
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
- package/dist/utils/objectStore.js +15 -15
- package/dist/utils/reactiveArrayService.js +10 -10
- package/package.json +19 -19
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/index.js +0 -4
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/react-contenteditable.js +0 -7
- package/dist/_virtual/react-contenteditable2.js +0 -4
- package/dist/_virtual/react-dom-server-legacy.browser.development.js +0 -4
- package/dist/_virtual/react-dom-server-legacy.browser.production.js +0 -4
- package/dist/_virtual/react-dom-server.browser.development.js +0 -4
- package/dist/_virtual/react-dom-server.browser.production.js +0 -4
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/_virtual/server.browser.js +0 -5
- package/dist/_virtual/server.browser2.js +0 -4
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -48
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -53
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +0 -222
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -10
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +0 -636
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -183
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
- package/dist/node_modules/fast-deep-equal/index.js +0 -31
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
- package/dist/node_modules/object-assign/index.js +0 -49
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
- package/dist/node_modules/prop-types/index.js +0 -17
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
- package/dist/node_modules/prop-types/lib/has.js +0 -7
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -87
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -70
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -10
- package/dist/node_modules/react-contenteditable/lib/react-contenteditable.js +0 -132
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +0 -6235
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +0 -4096
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -6753
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +0 -4645
- package/dist/node_modules/react-dom/server.browser.js +0 -15
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
- package/dist/node_modules/tslib/tslib.es6.js +0 -27
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
- 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),
|
|
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
|
|
26
|
-
l[0] = l[4] =
|
|
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 = "#" +
|
|
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
|
-
|
|
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
|
|
3
|
+
import { mergeCode0Props as p } from "../../utils/utils.js";
|
|
4
4
|
import '../../assets/components/breadcrumb/Breadcrumb.style.css';/* empty css */
|
|
5
|
-
import { IconChevronRight as
|
|
5
|
+
import { IconChevronRight as d } from "@tabler/icons-react";
|
|
6
6
|
const C = (m) => {
|
|
7
7
|
const {
|
|
8
|
-
splitter: n = /* @__PURE__ */ r(
|
|
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", { ...
|
|
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
|
|
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:
|
|
14
|
-
color:
|
|
13
|
+
variant: c,
|
|
14
|
+
color: l,
|
|
15
15
|
paddingSize: m,
|
|
16
|
-
active:
|
|
17
|
-
disabled:
|
|
16
|
+
active: b,
|
|
17
|
+
disabled: u,
|
|
18
18
|
...v
|
|
19
19
|
} = a;
|
|
20
20
|
o = f;
|
|
21
|
-
const p =
|
|
22
|
-
r =
|
|
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
|
-
|
|
30
|
+
P as Button
|
|
31
31
|
};
|
|
@@ -1,191 +1,191 @@
|
|
|
1
|
-
import { jsx as
|
|
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
|
|
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
|
|
10
|
-
import { Badge as
|
|
11
|
-
import { IconArrowUp as
|
|
12
|
-
import { Spacing as
|
|
13
|
-
const
|
|
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
|
|
16
|
-
e[0] !== t ? (
|
|
17
|
-
const
|
|
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] !==
|
|
20
|
-
},
|
|
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
|
|
23
|
-
e[0] !== t ? (
|
|
24
|
-
const
|
|
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] !==
|
|
27
|
-
},
|
|
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
|
|
30
|
-
e[0] !== t ? (
|
|
31
|
-
const
|
|
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] !==
|
|
34
|
-
},
|
|
35
|
-
const e = r.c(17),
|
|
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] !==
|
|
38
|
-
const
|
|
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
|
|
44
|
-
e[4] !== t.children ? (
|
|
45
|
-
let
|
|
46
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
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] =
|
|
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
|
|
54
|
-
e[8] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
55
|
-
let
|
|
56
|
-
e[9] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
59
|
-
/* @__PURE__ */
|
|
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
|
-
] }),
|
|
63
|
-
let
|
|
64
|
-
e[11] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
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] =
|
|
67
|
-
let
|
|
68
|
-
e[12] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
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
|
-
|
|
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] =
|
|
76
|
-
let
|
|
77
|
-
return e[13] !== t.align || e[14] !==
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
] }), e[13] = t.align, e[14] =
|
|
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
|
|
84
|
-
e[0] !== t ? (
|
|
85
|
-
const
|
|
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] !==
|
|
88
|
-
},
|
|
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
|
|
91
|
-
e[0] !== t ? (
|
|
92
|
-
const
|
|
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] !==
|
|
95
|
-
},
|
|
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
|
|
98
|
-
e[0] !== t ? (
|
|
99
|
-
const
|
|
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] !==
|
|
102
|
-
},
|
|
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
|
|
105
|
-
e[0] !== t ? (
|
|
106
|
-
const
|
|
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] !==
|
|
109
|
-
},
|
|
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
|
|
120
|
-
const
|
|
121
|
-
let
|
|
122
|
-
e[
|
|
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] =
|
|
124
|
+
}, e[3] = C) : C = e[3];
|
|
125
125
|
let s;
|
|
126
|
-
e[4] !== t.children ? (s = /* @__PURE__ */
|
|
127
|
-
let
|
|
128
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
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] =
|
|
131
|
-
let
|
|
132
|
-
e[7] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
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] =
|
|
134
|
+
}, e[7] = f) : f = e[7];
|
|
135
135
|
let x;
|
|
136
|
-
e[8] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */
|
|
137
|
-
let
|
|
138
|
-
e[9] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
139
|
-
/* @__PURE__ */
|
|
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__ */
|
|
141
|
+
/* @__PURE__ */ o(y, { border: !0, children: /* @__PURE__ */ o(w, { size: 12 }) })
|
|
142
142
|
] }),
|
|
143
143
|
"move"
|
|
144
|
-
] }),
|
|
145
|
-
let
|
|
146
|
-
e[11] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
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] =
|
|
149
|
-
let
|
|
150
|
-
e[12] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
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
|
-
|
|
154
|
-
|
|
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] =
|
|
158
|
-
let
|
|
159
|
-
return e[13] !== n || e[14] !== s ? (
|
|
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
|
-
|
|
162
|
-
] }), e[13] = n, e[14] = s, e[15] =
|
|
163
|
-
},
|
|
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
|
|
166
|
-
e[0] !== t ? (
|
|
167
|
-
const
|
|
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] !==
|
|
170
|
-
},
|
|
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
|
|
173
|
-
e[0] !== t ? (
|
|
174
|
-
const
|
|
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] !==
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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 = (
|
|
9
|
-
const l = h(T), F = S(T),
|
|
10
|
-
namespaceId:
|
|
11
|
-
projectId:
|
|
12
|
-
}), [
|
|
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,
|
|
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:
|
|
27
|
+
flowId: i,
|
|
28
28
|
parentNodeId: o?.id
|
|
29
29
|
},
|
|
30
30
|
deletable: !1,
|
|
31
31
|
selectable: !1
|
|
32
32
|
}), g) {
|
|
33
|
-
const
|
|
34
|
-
|
|
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:
|
|
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:
|
|
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((
|
|
61
|
-
const r =
|
|
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-${
|
|
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 ??
|
|
73
|
+
label: $?.names[0]?.content ?? a.id,
|
|
74
74
|
data: {
|
|
75
75
|
color: x(r?.id || ""),
|
|
76
76
|
type: "group",
|
|
77
|
-
flowId:
|
|
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(
|
|
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(
|
|
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-${
|
|
85
|
+
id: `${s}-${t}-param-${a.id}`,
|
|
86
86
|
source: s,
|
|
87
87
|
target: t,
|
|
88
|
-
targetHandle: `param-${
|
|
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:
|
|
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,
|
|
104
|
+
}, [n, F, _, w]);
|
|
105
105
|
};
|
|
106
106
|
export {
|
|
107
107
|
u as FLOW_EDGE_RAINBOW,
|