@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as v } from "react/jsx-runtime";
|
|
2
2
|
import b, { memo as y } from "react";
|
|
3
|
-
import { useReactFlow as T, useStore as
|
|
3
|
+
import { useReactFlow as T, useStore as d, Handle as x, Position as S } from "@xyflow/react";
|
|
4
4
|
import { Text as l } from "../text/Text.js";
|
|
5
5
|
import { useService as m } from "../../utils/contextStore.js";
|
|
6
6
|
import "merge-props";
|
|
@@ -9,8 +9,8 @@ import { Card as z } from "../card/Card.js";
|
|
|
9
9
|
import { Flex as n } from "../flex/Flex.js";
|
|
10
10
|
import { IconBolt as p, IconChevronDown as F } from "@tabler/icons-react";
|
|
11
11
|
import { Button as B } from "../button/Button.js";
|
|
12
|
-
import { DFlowTabTrigger as
|
|
13
|
-
import { DFlowTypeReactiveService as
|
|
12
|
+
import { DFlowTabTrigger as C } from "../d-flow-file/DFlowTabTrigger.js";
|
|
13
|
+
import { DFlowTypeReactiveService as D } from "../d-flow-type/DFlowType.service.js";
|
|
14
14
|
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
15
15
|
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
16
16
|
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
@@ -18,12 +18,12 @@ import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
|
18
18
|
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
19
19
|
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
20
20
|
import "js-md5";
|
|
21
|
-
import { Badge as
|
|
21
|
+
import { Badge as I } from "../badge/Badge.js";
|
|
22
22
|
const $ = y((i) => {
|
|
23
23
|
const {
|
|
24
24
|
data: a,
|
|
25
|
-
id:
|
|
26
|
-
} = i, r = m(R), f = T(), t = m(
|
|
25
|
+
id: s
|
|
26
|
+
} = i, r = m(R), f = T(), t = m(D).getById(a.instance.type?.id), h = i.width ?? 0, g = i.height ?? 0, u = d((c) => c.width), w = d((c) => c.height);
|
|
27
27
|
return b.useEffect(() => {
|
|
28
28
|
r.registerTab({
|
|
29
29
|
id: t?.id,
|
|
@@ -33,13 +33,13 @@ const $ = y((i) => {
|
|
|
33
33
|
/* @__PURE__ */ e(p, { size: 12 }),
|
|
34
34
|
/* @__PURE__ */ e(l, { size: "sm", children: t?.names[0]?.content })
|
|
35
35
|
] }),
|
|
36
|
-
content: /* @__PURE__ */ e(
|
|
36
|
+
content: /* @__PURE__ */ e(C, { instance: a.instance }),
|
|
37
37
|
show: !0
|
|
38
38
|
});
|
|
39
39
|
}, [t?.id, a.instance, r, t?.names]), /* @__PURE__ */ o(n, { align: "center", style: {
|
|
40
40
|
flexDirection: "column"
|
|
41
|
-
}, "data-flow-refernce":
|
|
42
|
-
/* @__PURE__ */ e(
|
|
41
|
+
}, "data-flow-refernce": s, children: [
|
|
42
|
+
/* @__PURE__ */ e(I, { color: "info", style: {
|
|
43
43
|
borderTopRightRadius: "0.35rem",
|
|
44
44
|
borderTopLeftRadius: "0.35rem",
|
|
45
45
|
borderBottomLeftRadius: 0,
|
|
@@ -47,8 +47,8 @@ const $ = y((i) => {
|
|
|
47
47
|
}, children: "Starting node" }),
|
|
48
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: () => {
|
|
49
49
|
f.setViewport({
|
|
50
|
-
x:
|
|
51
|
-
y: w / 2 + i.positionAbsoluteY * -1 -
|
|
50
|
+
x: u / 2 + i.positionAbsoluteX * -1 - h / 2,
|
|
51
|
+
y: w / 2 + i.positionAbsoluteY * -1 - g / 2,
|
|
52
52
|
zoom: 1
|
|
53
53
|
}, {
|
|
54
54
|
duration: 250
|
|
@@ -71,7 +71,7 @@ const $ = y((i) => {
|
|
|
71
71
|
bottom: "2px"
|
|
72
72
|
}, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--source", position: S.Bottom })
|
|
73
73
|
] })
|
|
74
|
-
] },
|
|
74
|
+
] }, s);
|
|
75
75
|
});
|
|
76
76
|
export {
|
|
77
77
|
$ as DFlowFunctionTriggerCard
|
|
@@ -24,7 +24,7 @@ import { Badge as Be } from "../badge/Badge.js";
|
|
|
24
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 { Menu as
|
|
27
|
+
import { Menu as Ke, MenuTrigger as _e, MenuPortal as we } from "../menu/Menu.js";
|
|
28
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) => {
|
|
29
29
|
const {
|
|
30
30
|
formValidation: e,
|
|
@@ -80,8 +80,8 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
80
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);
|
|
81
81
|
}), onNestedChange: (f) => d(o, f), onGenericMapperChange: D }, `${r.variant}-${o}`) : null;
|
|
82
82
|
}),
|
|
83
|
-
/* @__PURE__ */ S(
|
|
84
|
-
/* @__PURE__ */ c(
|
|
83
|
+
/* @__PURE__ */ S(Ke, { children: [
|
|
84
|
+
/* @__PURE__ */ c(_e, { asChild: !0, children: /* @__PURE__ */ S(re, { color: "primary", children: [
|
|
85
85
|
/* @__PURE__ */ c(le, { size: 16 }),
|
|
86
86
|
" Add new rule"
|
|
87
87
|
] }) }),
|
|
@@ -182,22 +182,22 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
182
182
|
});
|
|
183
183
|
k && s(k);
|
|
184
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
|
|
185
|
+
const K = z;
|
|
186
186
|
let P;
|
|
187
187
|
e[16] !== n ? (P = me(n), e[16] = n, e[17] = P) : P = e[17];
|
|
188
|
-
const
|
|
188
|
+
const _ = P;
|
|
189
189
|
let U;
|
|
190
190
|
e[18] !== p ? (U = me(p), e[18] = p, e[19] = U) : U = e[19];
|
|
191
191
|
const W = U;
|
|
192
192
|
let $;
|
|
193
|
-
e[20] !== f || e[21] !== a || e[22] !== E || e[23] !== I || e[24] !== d || e[25] !== b || e[26] !== W || e[27] !==
|
|
194
|
-
if (!
|
|
193
|
+
e[20] !== f || e[21] !== a || e[22] !== E || e[23] !== I || e[24] !== d || e[25] !== b || e[26] !== W || e[27] !== _ || e[28] !== B || e[29] !== T || e[30] !== u || e[31] !== l || e[32] !== y || e[33] !== n ? ($ = () => {
|
|
194
|
+
if (!_ && !E)
|
|
195
195
|
return null;
|
|
196
196
|
const C = /* @__PURE__ */ c(ge, { rule: n, genericMap: a, isBlocked: d, dataTypeLabel: f, onClick: () => V(ze), onRemove: d ? void 0 : y, onKeyChange: d ? void 0 : u, onDataTypeChange: d ? void 0 : T });
|
|
197
|
-
if (
|
|
197
|
+
if (_)
|
|
198
198
|
return /* @__PURE__ */ S(j, { children: [
|
|
199
199
|
C,
|
|
200
|
-
b ? /* @__PURE__ */ c(de, { initialValue:
|
|
200
|
+
b ? /* @__PURE__ */ c(de, { initialValue: _, blockingDataType: W, onDataTypeChange: l }) : null
|
|
201
201
|
] });
|
|
202
202
|
if (I?.genericKey) {
|
|
203
203
|
const O = a.get(I.genericKey);
|
|
@@ -213,9 +213,9 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
213
213
|
] });
|
|
214
214
|
}
|
|
215
215
|
return null;
|
|
216
|
-
}, e[20] = f, e[21] = a, e[22] = E, e[23] = I, e[24] = d, e[25] = b, e[26] = W, e[27] =
|
|
216
|
+
}, e[20] = f, e[21] = a, e[22] = E, e[23] = I, e[24] = d, e[25] = b, e[26] = W, e[27] = _, e[28] = B, e[29] = T, e[30] = u, e[31] = l, e[32] = y, e[33] = n, e[34] = $) : $ = e[34];
|
|
217
217
|
const Q = $;
|
|
218
|
-
if (r && (
|
|
218
|
+
if (r && (_ || E)) {
|
|
219
219
|
let C;
|
|
220
220
|
e[35] !== Q ? (C = Q(), e[35] = Q, e[36] = C) : C = e[36];
|
|
221
221
|
let O;
|
|
@@ -229,11 +229,11 @@ const Te = /* @__PURE__ */ new Set(["ITEM_OF_COLLECTION", "REGEX", "NUMBER_RANGE
|
|
|
229
229
|
let w;
|
|
230
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];
|
|
231
231
|
let G;
|
|
232
|
-
e[48] !== i || e[49] !==
|
|
233
|
-
/* @__PURE__ */ c(F, { clearable: !0, defaultValue: i?.from?.toString() ?? "", onChange: M, onBlur:
|
|
234
|
-
/* @__PURE__ */ c(F, { clearable: !0, defaultValue: i?.steps?.toString() ?? "", onChange: M, onBlur:
|
|
235
|
-
/* @__PURE__ */ c(F, { clearable: !0, left: /* @__PURE__ */ c(A, { size: "sm", children: "To" }), leftType: "icon", defaultValue: i?.to?.toString() ?? "", onChange: M, onBlur:
|
|
236
|
-
] }) : null, e[48] = i, e[49] =
|
|
232
|
+
e[48] !== i || e[49] !== K || e[50] !== d || e[51] !== n.variant ? (G = n.variant === "REGEX" || n.variant === "ITEM_OF_COLLECTION" ? /* @__PURE__ */ c(F, { clearable: !0, left: /* @__PURE__ */ c(A, { size: "sm", children: n.variant === "REGEX" ? "Pattern" : "Items" }), leftType: "icon", defaultValue: i, onChange: M, onBlur: K, w: "100%", disabled: d }) : n.variant === "NUMBER_RANGE" ? /* @__PURE__ */ S(j, { children: [
|
|
233
|
+
/* @__PURE__ */ c(F, { clearable: !0, defaultValue: i?.from?.toString() ?? "", onChange: M, onBlur: K, w: "100%", left: /* @__PURE__ */ c(A, { size: "sm", children: "From" }), leftType: "icon", disabled: d, name: "from" }),
|
|
234
|
+
/* @__PURE__ */ c(F, { clearable: !0, defaultValue: i?.steps?.toString() ?? "", onChange: M, onBlur: K, left: /* @__PURE__ */ c(A, { size: "sm", children: "Steps" }), leftType: "icon", w: "100%", disabled: d, name: "steps" }),
|
|
235
|
+
/* @__PURE__ */ c(F, { clearable: !0, left: /* @__PURE__ */ c(A, { size: "sm", children: "To" }), leftType: "icon", defaultValue: i?.to?.toString() ?? "", onChange: M, onBlur: K, w: "100%", disabled: d, name: "to" })
|
|
236
|
+
] }) : null, e[48] = i, e[49] = K, e[50] = d, e[51] = n.variant, e[52] = G) : G = e[52];
|
|
237
237
|
let x;
|
|
238
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: [
|
|
239
239
|
w,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as B, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { Badge as T } from "../badge/Badge.js";
|
|
3
3
|
import p from "react";
|
|
4
|
-
import { IconBolt as N, IconNote as
|
|
5
|
-
import { Text as
|
|
4
|
+
import { IconBolt as N, IconNote as h } from "@tabler/icons-react";
|
|
5
|
+
import { Text as D } from "../text/Text.js";
|
|
6
6
|
import { useService as n, useStore as c } from "../../utils/contextStore.js";
|
|
7
7
|
import "merge-props";
|
|
8
8
|
import { DFlowFunctionReactiveService as f } from "../d-flow-function/DFlowFunction.service.js";
|
|
9
|
-
import { hashToColor as
|
|
9
|
+
import { hashToColor as x } from "../d-flow/DFlow.util.js";
|
|
10
10
|
import "../d-flow/DFlow.js";
|
|
11
11
|
import { DFlowReactiveService as d } from "../d-flow/DFlow.service.js";
|
|
12
12
|
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
@@ -16,7 +16,7 @@ import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
|
16
16
|
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
17
17
|
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
18
18
|
import { DFlowTypeReactiveService as l } from "../d-flow-type/DFlowType.service.js";
|
|
19
|
-
import { FlowTypeView as
|
|
19
|
+
import { FlowTypeView as R } from "../d-flow-type/DFlowType.view.js";
|
|
20
20
|
const Q = (u) => {
|
|
21
21
|
const {
|
|
22
22
|
value: e,
|
|
@@ -29,12 +29,12 @@ const Q = (u) => {
|
|
|
29
29
|
return w.getById(I?.type?.id);
|
|
30
30
|
}
|
|
31
31
|
return e.__typename === "NodeFunction" || o ? e : s.getNodeById(m, e.id);
|
|
32
|
-
}, [v, S]), F = p.useMemo(() => o ? o.names?.[0]?.content : t && r instanceof
|
|
32
|
+
}, [v, S]), F = p.useMemo(() => o ? o.names?.[0]?.content : t && r instanceof R ? r.names?.[0]?.content : y.getById(r?.functionDefinition?.id)?.names?.[0]?.content, [g, r]);
|
|
33
33
|
return /* @__PURE__ */ B(T, { style: {
|
|
34
34
|
verticalAlign: "middle"
|
|
35
|
-
}, color: t ? "info" :
|
|
36
|
-
t ? /* @__PURE__ */ i(N, { size: 12 }) : /* @__PURE__ */ i(
|
|
37
|
-
/* @__PURE__ */ i(
|
|
35
|
+
}, color: t ? "info" : x(e.id || ""), border: !0, ...a, children: [
|
|
36
|
+
t ? /* @__PURE__ */ i(N, { size: 12 }) : /* @__PURE__ */ i(h, { size: 12 }),
|
|
37
|
+
/* @__PURE__ */ i(D, { size: "sm", style: {
|
|
38
38
|
color: "inherit"
|
|
39
39
|
}, children: String(F) })
|
|
40
40
|
] });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Badge as
|
|
3
|
-
import
|
|
2
|
+
import { Badge as c } from "../badge/Badge.js";
|
|
3
|
+
import a from "react";
|
|
4
4
|
import { Text as m } from "../text/Text.js";
|
|
5
5
|
import { Flex as f } from "../flex/Flex.js";
|
|
6
6
|
import { DFlowInputNodeBadge as s } from "./DFlowInputNodeBadge.js";
|
|
@@ -11,7 +11,7 @@ const w = (o) => {
|
|
|
11
11
|
flowId: t,
|
|
12
12
|
definition: p,
|
|
13
13
|
...d
|
|
14
|
-
} = o, l =
|
|
14
|
+
} = o, l = a.useMemo(() => (console.log(e), e.nodeFunctionId && t ? /* @__PURE__ */ i(f, { align: "center", display: "inline-flex", children: [
|
|
15
15
|
/* @__PURE__ */ r(s, { definition: p, value: {
|
|
16
16
|
id: e.nodeFunctionId,
|
|
17
17
|
__typename: "NodeFunctionIdWrapper"
|
|
@@ -19,7 +19,7 @@ const w = (o) => {
|
|
|
19
19
|
"inputTypeIdentifier" in e && e.inputTypeIdentifier ? "." + e.inputTypeIdentifier : "",
|
|
20
20
|
e.referencePath ? "." + (e.referencePath?.map((n) => n.path).join(".") ?? "") : ""
|
|
21
21
|
] }) : `{{ ${String(e.depth)}-${String(e.scope)}-${String(e.node)}-${e.referencePath?.map((n) => n.path).join(".") ?? ""} }}`), [e]);
|
|
22
|
-
return /* @__PURE__ */ i(
|
|
22
|
+
return /* @__PURE__ */ i(c, { style: {
|
|
23
23
|
verticalAlign: "middle"
|
|
24
24
|
}, color: "warning", py: "0", border: !0, ...d, children: [
|
|
25
25
|
/* @__PURE__ */ r(u, { size: 12 }),
|
|
@@ -15,12 +15,12 @@ import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
|
15
15
|
import { Button as x } from "../button/Button.js";
|
|
16
16
|
const F = (p) => {
|
|
17
17
|
const {
|
|
18
|
-
flowId:
|
|
19
|
-
} = p, l = w(m), s = b(m), t = c.useMemo(() => l.getById(
|
|
18
|
+
flowId: r
|
|
19
|
+
} = p, l = w(m), s = b(m), t = c.useMemo(() => l.getById(r), [s, r]), a = c.useCallback(() => {
|
|
20
20
|
if (!t) return;
|
|
21
|
-
const
|
|
22
|
-
if (!
|
|
23
|
-
const f = JSON.stringify(
|
|
21
|
+
const e = t;
|
|
22
|
+
if (!e) return;
|
|
23
|
+
const f = JSON.stringify(e, null, 2), d = new Blob([f], {
|
|
24
24
|
type: "application/json"
|
|
25
25
|
}), i = URL.createObjectURL(d), o = document.createElement("a");
|
|
26
26
|
o.href = i, o.download = `flow-${t.name}.json`, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(i);
|
|
@@ -19,12 +19,12 @@ import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
|
19
19
|
import { Tooltip as S, TooltipTrigger as T, TooltipPortal as v, TooltipContent as x, TooltipArrow as g } from "../tooltip/Tooltip.js";
|
|
20
20
|
import { Text as d } from "../text/Text.js";
|
|
21
21
|
import { Badge as y } from "../badge/Badge.js";
|
|
22
|
-
import { DFlowSuggestionMenu as
|
|
23
|
-
import { useSuggestions as
|
|
22
|
+
import { DFlowSuggestionMenu as D } from "../d-flow-suggestion/DFlowSuggestionMenu.js";
|
|
23
|
+
import { useSuggestions as j } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
|
|
24
24
|
const ro = (N) => {
|
|
25
25
|
const {
|
|
26
26
|
flowId: r
|
|
27
|
-
} = N, a = f(h), p = u(h), i = f(w), b = u(w), [, c] = l.useTransition(), e = l.useMemo(() => p.find((n) => n.active), [p, a]), I =
|
|
27
|
+
} = N, a = f(h), p = u(h), i = f(w), b = u(w), [, c] = l.useTransition(), e = l.useMemo(() => p.find((n) => n.active), [p, a]), I = j(r, e?.content?.props?.node?.id), B = l.useCallback(() => {
|
|
28
28
|
e && e.content.props.flowId && c(async () => {
|
|
29
29
|
i.getLinkedNodesById(r, e.content.props.node.id).forEach((m) => {
|
|
30
30
|
m.id && a.deleteById(m.id);
|
|
@@ -61,7 +61,7 @@ const ro = (N) => {
|
|
|
61
61
|
/* @__PURE__ */ o(g, {})
|
|
62
62
|
] }) })
|
|
63
63
|
] }),
|
|
64
|
-
/* @__PURE__ */ o(
|
|
64
|
+
/* @__PURE__ */ o(D, { suggestions: I, onSuggestionSelect: C, triggerContent: /* @__PURE__ */ t(s, { disabled: !e, paddingSize: "xxs", variant: "none", color: "primary", children: [
|
|
65
65
|
/* @__PURE__ */ o(z, { size: 16 }),
|
|
66
66
|
"Next node"
|
|
67
67
|
] }) })
|
|
@@ -5,15 +5,15 @@ import { DFlowDataTypeReactiveService as g } from "../d-flow-data-type/DFlowData
|
|
|
5
5
|
import "js-md5";
|
|
6
6
|
import { DFlowSuggestionType as A } from "./DFlowSuggestion.view.js";
|
|
7
7
|
import { DFlowFunctionReactiveService as S } from "../d-flow-function/DFlowFunction.service.js";
|
|
8
|
-
import { replaceGenericsAndSortType as f, resolveType as
|
|
8
|
+
import { replaceGenericsAndSortType as f, resolveType as y, isMatchingType as M } from "../../utils/generics.js";
|
|
9
9
|
const P = (t, u = []) => {
|
|
10
|
-
const r = F(g), c = F(S), m = v(g),
|
|
10
|
+
const r = F(g), c = F(S), m = v(g), d = v(S), p = s.useMemo(() => t ? r?.getDataType(t) : void 0, [t, r, m]), i = s.useMemo(() => t ? f(y(t, r), u) : void 0, [t, r, m, u]);
|
|
11
11
|
return s.useMemo(() => c.values().filter((e) => {
|
|
12
12
|
if (!t || !i) return !0;
|
|
13
13
|
if (e.runtimeFunctionDefinition?.identifier == "std::control::return" && t) return !1;
|
|
14
14
|
if (p?.variant === "NODE") return !0;
|
|
15
15
|
if (!e.returnType || !e.genericKeys) return !1;
|
|
16
|
-
const o = f(
|
|
16
|
+
const o = f(y(e.returnType, r), e.genericKeys);
|
|
17
17
|
return M(i, o);
|
|
18
18
|
}).sort((e, o) => {
|
|
19
19
|
const [n, T, C] = e.runtimeFunctionDefinition.identifier.split("::"), [D, N, h] = o.runtimeFunctionDefinition.identifier.split("::"), a = n.localeCompare(D);
|
|
@@ -43,7 +43,7 @@ const P = (t, u = []) => {
|
|
|
43
43
|
displayText: [e.names[0]?.content],
|
|
44
44
|
value: o
|
|
45
45
|
};
|
|
46
|
-
}), [p, t, r, c,
|
|
46
|
+
}), [p, t, r, c, d, i]);
|
|
47
47
|
};
|
|
48
48
|
export {
|
|
49
49
|
P as useFunctionSuggestions
|
|
@@ -11,14 +11,14 @@ import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
|
11
11
|
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
12
12
|
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
13
13
|
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
14
|
-
import { useValueSuggestions as
|
|
15
|
-
import { useReferenceSuggestions as
|
|
16
|
-
import { useFunctionSuggestions as
|
|
14
|
+
import { useValueSuggestions as R } from "./DFlowValueSuggestions.hook.js";
|
|
15
|
+
import { useReferenceSuggestions as T } from "./DFlowReferenceSuggestions.hook.js";
|
|
16
|
+
import { useFunctionSuggestions as l } from "./DFlowFunctionSuggestions.hook.js";
|
|
17
17
|
import { useDataTypeSuggestions as B } from "./DFlowDataTypeSuggestions.hook.js";
|
|
18
|
-
const
|
|
19
|
-
const c = f(g), u = f(a), S = p(g), D = p(a), r = o.useMemo(() => u.getNodeById(e,
|
|
20
|
-
return o.useMemo(() => [...v, ...y, ...d, ...
|
|
18
|
+
const L = (e, i, n) => {
|
|
19
|
+
const c = f(g), u = f(a), S = p(g), D = p(a), r = o.useMemo(() => u.getNodeById(e, i), [e, u, D, i]), s = o.useMemo(() => r?.functionDefinition?.id ? c.getById(r.functionDefinition.id) : void 0, [S, c, r?.functionDefinition?.id]), t = o.useMemo(() => s?.parameterDefinitions?.find((M) => M.id === n), [s?.parameterDefinitions, n])?.dataTypeIdentifier, m = s?.genericKeys ?? [], v = R(t), y = B(t), d = T(e, i, t, m), F = l(t, m);
|
|
20
|
+
return o.useMemo(() => [...v, ...y, ...d, ...F].sort(), [e, i, n]);
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
L as useSuggestions
|
|
24
24
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as _ } from "react/jsx-runtime";
|
|
2
2
|
import { c as k } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { MenuTrigger as v, MenuSeparator as C, MenuPortal as A, Menu as E } from "../menu/Menu.js";
|
|
4
|
-
import
|
|
4
|
+
import I from "react";
|
|
5
5
|
import { DFlowSuggestionMenuFooter as B } from "./DFlowSuggestionMenuFooter.js";
|
|
6
6
|
import "@radix-ui/react-checkbox";
|
|
7
7
|
import "merge-props";
|
|
@@ -22,37 +22,37 @@ const le = (R) => {
|
|
|
22
22
|
const e = k.c(25), {
|
|
23
23
|
suggestions: f,
|
|
24
24
|
triggerContent: M,
|
|
25
|
-
onSuggestionSelect:
|
|
25
|
+
onSuggestionSelect: x
|
|
26
26
|
} = R;
|
|
27
27
|
let c;
|
|
28
28
|
e[0] !== f ? (c = f === void 0 ? [] : f, e[0] = f, e[1] = c) : c = e[1];
|
|
29
|
-
const t = c, D =
|
|
29
|
+
const t = c, D = x === void 0 ? q : x, w = I.useRef(null), [y, F] = I.useState(t);
|
|
30
30
|
let g, p;
|
|
31
31
|
e[2] !== t ? (g = () => {
|
|
32
|
-
|
|
33
|
-
}, p = [t], e[2] = t, e[3] = g, e[4] = p) : (g = e[3], p = e[4]),
|
|
32
|
+
F(t);
|
|
33
|
+
}, p = [t], e[2] = t, e[3] = g, e[4] = p) : (g = e[3], p = e[4]), I.useEffect(g, p);
|
|
34
34
|
let i;
|
|
35
35
|
e[5] !== M ? (i = /* @__PURE__ */ r(v, { asChild: !0, children: M }), e[5] = M, e[6] = i) : i = e[6];
|
|
36
36
|
let s;
|
|
37
37
|
e[7] !== t ? (s = /* @__PURE__ */ r($, { onType: (o) => {
|
|
38
|
-
o.key === "ArrowDown" ? (o.preventDefault(),
|
|
38
|
+
o.key === "ArrowDown" ? (o.preventDefault(), w.current?.focusFirstItem()) : o.key === "ArrowUp" && (o.preventDefault(), w.current?.focusLastItem());
|
|
39
39
|
const T = o.target.value;
|
|
40
|
-
return
|
|
40
|
+
return F(t.filter((b) => b.displayText.some((j) => j.includes(T)))), o.preventDefault(), !1;
|
|
41
41
|
} }), e[7] = t, e[8] = s) : s = e[8];
|
|
42
42
|
let a;
|
|
43
43
|
e[9] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ r(C, {}), e[9] = a) : a = e[9];
|
|
44
44
|
let n;
|
|
45
|
-
e[10] !==
|
|
45
|
+
e[10] !== y ? (n = U(y), e[10] = y, e[11] = n) : n = e[11];
|
|
46
46
|
let l;
|
|
47
47
|
e[12] !== D ? (l = (o) => {
|
|
48
48
|
D(o.valueData);
|
|
49
49
|
}, e[12] = D, e[13] = l) : l = e[13];
|
|
50
50
|
let u;
|
|
51
|
-
e[14] !== n || e[15] !== l ? (u = /* @__PURE__ */ r(L, { ref:
|
|
51
|
+
e[14] !== n || e[15] !== l ? (u = /* @__PURE__ */ r(L, { ref: w, suggestions: n, onSuggestionSelect: l }), e[14] = n, e[15] = l, e[16] = u) : u = e[16];
|
|
52
52
|
let S, d;
|
|
53
53
|
e[17] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ r(C, {}), d = /* @__PURE__ */ r(B, {}), e[17] = S, e[18] = d) : (S = e[17], d = e[18]);
|
|
54
54
|
let m;
|
|
55
|
-
e[19] !== u || e[20] !== s ? (m = /* @__PURE__ */ r(A, { children: /* @__PURE__ */
|
|
55
|
+
e[19] !== u || e[20] !== s ? (m = /* @__PURE__ */ r(A, { children: /* @__PURE__ */ _(P, { align: "center", children: [
|
|
56
56
|
s,
|
|
57
57
|
a,
|
|
58
58
|
u,
|
|
@@ -60,7 +60,7 @@ const le = (R) => {
|
|
|
60
60
|
d
|
|
61
61
|
] }) }), e[19] = u, e[20] = s, e[21] = m) : m = e[21];
|
|
62
62
|
let h;
|
|
63
|
-
return e[22] !== m || e[23] !== i ? (h = /* @__PURE__ */
|
|
63
|
+
return e[22] !== m || e[23] !== i ? (h = /* @__PURE__ */ _(E, { children: [
|
|
64
64
|
i,
|
|
65
65
|
m
|
|
66
66
|
] }), e[22] = m, e[23] = i, e[24] = h) : h = e[24], h;
|
|
@@ -3,7 +3,7 @@ import "../../_virtual/compiler-runtime.js";
|
|
|
3
3
|
import i from "react";
|
|
4
4
|
import "@radix-ui/react-checkbox";
|
|
5
5
|
import "merge-props";
|
|
6
|
-
import { IconX as
|
|
6
|
+
import { IconX as a } from "@tabler/icons-react";
|
|
7
7
|
import '../../assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css';import '../../assets/components/form/Input.style.css';/* empty css */
|
|
8
8
|
import "../form/EmailInput.js";
|
|
9
9
|
import { Input as c } from "../form/Input.js";
|
|
@@ -17,19 +17,19 @@ import "../form/TextInput.js";
|
|
|
17
17
|
import { Button as l } from "../button/Button.js";
|
|
18
18
|
/* empty css */
|
|
19
19
|
import { clearInputElement as u } from "../form/Input.utils.js";
|
|
20
|
-
const
|
|
20
|
+
const E = i.forwardRef((p, t) => {
|
|
21
21
|
t = t || i.useRef(null);
|
|
22
22
|
const {
|
|
23
23
|
clearable: m = !1,
|
|
24
24
|
right: e,
|
|
25
25
|
...n
|
|
26
|
-
} = p,
|
|
26
|
+
} = p, s = () => {
|
|
27
27
|
u(t.current);
|
|
28
28
|
}, r = [e];
|
|
29
|
-
return m && r.push(/* @__PURE__ */ o(l, { variant: "none", onClick:
|
|
29
|
+
return m && r.push(/* @__PURE__ */ o(l, { variant: "none", onClick: s, children: /* @__PURE__ */ o(a, { size: 13 }) })), /* @__PURE__ */ o(c, { wrapperComponent: {
|
|
30
30
|
className: "d-flow-suggestion-search-input"
|
|
31
31
|
}, right: r, type: "text", ref: t, ...n });
|
|
32
32
|
});
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
E as DFlowSuggestionSearchInput
|
|
35
35
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import n from "react";
|
|
2
|
-
import { useService as
|
|
2
|
+
import { useService as c, useStore as f } from "../../utils/contextStore.js";
|
|
3
3
|
import "merge-props";
|
|
4
4
|
import { DFlowDataTypeReactiveService as p } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
5
5
|
import "js-md5";
|
|
6
6
|
import { DFlowSuggestionType as u } from "./DFlowSuggestion.view.js";
|
|
7
|
-
const
|
|
8
|
-
const s =
|
|
7
|
+
const T = (r) => {
|
|
8
|
+
const s = c(p), m = f(p), i = n.useMemo(() => r ? s?.getDataType(r) : void 0, [r, s, m]);
|
|
9
9
|
return n.useMemo(() => {
|
|
10
10
|
if (!i) return [];
|
|
11
11
|
const a = [];
|
|
@@ -40,5 +40,5 @@ const E = (r) => {
|
|
|
40
40
|
}, [i]);
|
|
41
41
|
};
|
|
42
42
|
export {
|
|
43
|
-
|
|
43
|
+
T as useValueSuggestions
|
|
44
44
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import S from "react";
|
|
2
2
|
import { DFlowDataTypeReactiveService as h } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
3
3
|
import { DataTypeView as k } from "../d-flow-data-type/DFlowDataType.view.js";
|
|
4
|
-
import { useService as R, useStore as
|
|
4
|
+
import { useService as R, useStore as V } from "../../utils/contextStore.js";
|
|
5
5
|
import { InspectionSeverity as A } from "../../utils/inspection.js";
|
|
6
6
|
import "merge-props";
|
|
7
7
|
import { resolveGenericKeys as C, replaceGenericKeysInType as U, replaceGenericKeysInDataTypeObject as q } from "../../utils/generics.js";
|
|
@@ -20,7 +20,7 @@ const w = (e) => e.__typename === "ReferenceValue" || e.__typename === "NodeFunc
|
|
|
20
20
|
content: `Argument of type ${m?.name[0]?.content} is not assignable to parameter of type ${o?.name[0]?.content}`
|
|
21
21
|
}]
|
|
22
22
|
}), se = (e, o) => {
|
|
23
|
-
const m = R(x), b =
|
|
23
|
+
const m = R(x), b = V(x), d = R(O), N = V(O), t = R(h), _ = V(h), c = d.getById(o), g = d.getNodeById(o, e), f = g?.parameters?.nodes?.map((n) => n?.value) ?? [], u = m.getById(g?.functionDefinition?.id), D = u?.parameterDefinitions ?? [], F = u?.genericKeys ?? [], T = S.useMemo(() => C(u, f, t, c), [u, f, t, _, c, N]), K = S.useCallback((n, s) => {
|
|
24
24
|
if (H(n) && s?.variant !== "NODE") {
|
|
25
25
|
const a = d.getNodeById(o, n.id), r = m.getById(a?.functionDefinition?.id), p = a?.parameters?.nodes?.map((v) => v?.value) ?? [];
|
|
26
26
|
return z(r, p, t);
|
|
@@ -51,7 +51,7 @@ const w = (e) => e.__typename === "ReferenceValue" || e.__typename === "NodeFunc
|
|
|
51
51
|
l || n.push(M(a.id, i, y));
|
|
52
52
|
}
|
|
53
53
|
return n.length > 0 ? n : null;
|
|
54
|
-
}, [c, g, f, u, D, F, T, K, e, o, b,
|
|
54
|
+
}, [c, g, f, u, D, F, T, K, e, o, b, N, _, t]);
|
|
55
55
|
};
|
|
56
56
|
export {
|
|
57
57
|
se as useNodeValidation
|
|
@@ -3,7 +3,7 @@ import { c as f } from "../../_virtual/compiler-runtime.js";
|
|
|
3
3
|
import l from "react";
|
|
4
4
|
import { mergeCode0Props as m } from "../../utils/utils.js";
|
|
5
5
|
import '../../assets/components/d-fullscreen/DFullScreen.style.css';/* empty css */
|
|
6
|
-
const
|
|
6
|
+
const y = (i) => {
|
|
7
7
|
const e = f.c(7), t = l.useRef(null);
|
|
8
8
|
let r, o;
|
|
9
9
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = () => {
|
|
@@ -22,5 +22,5 @@ const _ = (i) => {
|
|
|
22
22
|
return e[4] !== i.children || e[5] !== n ? (d = /* @__PURE__ */ u("div", { ...n, ref: t, children: i.children }), e[4] = i.children, e[5] = n, e[6] = d) : d = e[6], d;
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
y as DFullScreen
|
|
26
26
|
};
|
|
@@ -6,18 +6,18 @@ import { DNamespaceMemberReactiveService as t } from "./DNamespaceMember.service
|
|
|
6
6
|
import { Card as v } from "../card/Card.js";
|
|
7
7
|
import S from "../card/CardSection.js";
|
|
8
8
|
import { DNamespaceMemberContent as b } from "./DNamespaceMemberContent.js";
|
|
9
|
-
const
|
|
9
|
+
const g = (m) => {
|
|
10
10
|
const {
|
|
11
11
|
namespaceId: o,
|
|
12
12
|
filter: i = () => !0,
|
|
13
13
|
onRemove: s,
|
|
14
14
|
onAssignRole: c,
|
|
15
|
-
...
|
|
16
|
-
} = m,
|
|
15
|
+
...n
|
|
16
|
+
} = m, a = u(t), p = l(t), d = f.useMemo(() => a.values({
|
|
17
17
|
namespaceId: o
|
|
18
18
|
}), [p, o]);
|
|
19
|
-
return /* @__PURE__ */ r(v, { ...
|
|
19
|
+
return /* @__PURE__ */ r(v, { ...n, children: d.filter(i).map((e) => e && e.id && /* @__PURE__ */ r(S, { border: !0, children: /* @__PURE__ */ r(b, { onRemove: s, onAssignRole: c, memberId: e?.id }) }, e.id)) });
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
g as DNamespaceMemberList
|
|
23
23
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import d from "react";
|
|
3
3
|
import { Card as u } from "../card/Card.js";
|
|
4
|
-
import { useService as
|
|
4
|
+
import { useService as S, useStore as l } from "../../utils/contextStore.js";
|
|
5
5
|
import "merge-props";
|
|
6
6
|
import { DOrganizationReactiveService as e } from "./DOrganization.service.js";
|
|
7
7
|
import v from "../card/CardSection.js";
|
|
8
8
|
import { DOrganizationContent as g } from "./DOrganizatonContent.js";
|
|
9
|
-
const
|
|
10
|
-
const n =
|
|
9
|
+
const b = (i) => {
|
|
10
|
+
const n = S(e), m = l(e), a = d.useMemo(() => n.values(), [m]), {
|
|
11
11
|
filter: c = () => !0,
|
|
12
12
|
onLeave: s,
|
|
13
13
|
onSetting: f,
|
|
14
14
|
onSelect: t,
|
|
15
|
-
...
|
|
15
|
+
...p
|
|
16
16
|
} = i;
|
|
17
|
-
return /* @__PURE__ */ o(u, { ...
|
|
17
|
+
return /* @__PURE__ */ o(u, { ...p, children: a.filter(c).map((r) => r.id && /* @__PURE__ */ o(v, { border: !0, hover: !0, onClick: () => {
|
|
18
18
|
t && t(r);
|
|
19
19
|
}, children: /* @__PURE__ */ o(g, { onLeave: s, onSetting: f, organizationId: r?.id }) }, r.id)) });
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
b as DOrganizationList
|
|
23
23
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { Menu as
|
|
2
|
+
import s from "react";
|
|
3
|
+
import { Menu as u, MenuTrigger as d, MenuPortal as l, MenuContent as g, MenuItem as f } from "../menu/Menu.js";
|
|
4
4
|
import { Button as h } from "../button/Button.js";
|
|
5
5
|
import { DOrganizationReactiveService as i } from "./DOrganization.service.js";
|
|
6
6
|
import { useService as o } from "../../utils/contextStore.js";
|
|
7
7
|
const x = (n) => {
|
|
8
8
|
const r = o(i), a = o(i), c = r.getById(n.organizationId);
|
|
9
|
-
return
|
|
10
|
-
/* @__PURE__ */ e(
|
|
9
|
+
return s.useMemo(() => /* @__PURE__ */ m(u, { ...n, children: [
|
|
10
|
+
/* @__PURE__ */ e(d, { asChild: !0, children: /* @__PURE__ */ e(h, { variant: "none", style: {
|
|
11
11
|
background: "transparent"
|
|
12
12
|
}, children: c?.name }) }),
|
|
13
|
-
/* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(
|
|
13
|
+
/* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(g, { side: "bottom", align: "start", sideOffset: 0, children: r.values().map((t) => /* @__PURE__ */ e(f, { onSelect: () => n.onOrganizationSelect(t.id), children: t.name }, t.id)) }) })
|
|
14
14
|
] }), [a]);
|
|
15
15
|
};
|
|
16
16
|
export {
|