@code0-tech/pictor 0.0.0-mvp.4 → 0.0.0-mvp.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/compiler-runtime.js +5 -0
- package/dist/_virtual/compiler-runtime2.js +4 -0
- package/dist/_virtual/react-compiler-runtime.development.js +4 -0
- package/dist/_virtual/react-compiler-runtime.production.js +4 -0
- package/dist/assets/components/d-flow/DFlow.style.css +1 -0
- package/dist/assets/{DFlow.css → node_modules/@xyflow/react/dist/style.css} +1 -1
- package/dist/components/avatar/Avatar.js +2 -2
- package/dist/components/badge/Badge.js +2 -2
- package/dist/components/breadcrumb/Breadcrumb.js +17 -16
- package/dist/components/button/Button.js +6 -5
- package/dist/components/button-group/ButtonGroup.js +6 -5
- package/dist/components/card/Card.js +2 -2
- package/dist/components/card/CardSection.js +1 -1
- package/dist/components/col/Col.js +9 -8
- package/dist/components/command/Command.js +19 -18
- package/dist/components/container/Container.js +12 -11
- package/dist/components/d-flow/DFlow.edges.hook.js +9 -10
- package/dist/components/d-flow/DFlow.js +6 -4
- package/dist/components/d-flow/DFlow.nodes.hook.js +18 -19
- package/dist/components/d-flow/control/DFlowControl.js +1 -1
- package/dist/components/d-flow/data-type/DFlowDataType.service.js +89 -5
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +18 -4
- package/dist/components/d-flow/data-type/index.js +1 -1
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.js +220 -4
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.js +227 -4
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeParentRule.js +1 -1
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +241 -5
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.js +8 -6
- package/dist/components/d-flow/edge/DFlowEdge.js +1 -1
- package/dist/components/d-flow/folder/DFlowFolder.js +16 -15
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +1 -1
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +19 -20
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +51 -51
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +1 -1
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +1 -1
- package/dist/components/d-flow/index.js +8 -8
- package/dist/components/d-flow/input/DFlowInputDataType.js +201 -201
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +6 -5
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +61 -62
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +1 -1
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenuFooter.js +1 -1
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenuSearchBar.js +1 -1
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +9 -8
- package/dist/components/d-flow/tab/DFlowTabs.js +1 -1
- package/dist/components/d-flow/validation/DFlowValidation.js +15 -14
- package/dist/components/d-fullscreen/DFullScreen.d.ts +1 -2
- package/dist/components/d-fullscreen/DFullScreen.js +15 -14
- package/dist/components/d-layout/DLayout.js +13 -12
- package/dist/components/d-namespace/index.js +6 -6
- package/dist/components/d-organization/index.js +5 -5
- package/dist/components/d-resizable/DResizable.js +17 -16
- package/dist/components/d-user/index.js +4 -4
- package/dist/components/dialog/Dialog.js +18 -17
- package/dist/components/file-tabs/FileTabs.js +41 -40
- package/dist/components/flex/Flex.js +2 -2
- package/dist/components/form/CheckboxInput.js +2 -2
- package/dist/components/form/Input.js +1 -1
- package/dist/components/form/InputDescription.js +1 -1
- package/dist/components/form/InputLabel.js +1 -1
- package/dist/components/form/InputMessage.js +1 -1
- package/dist/components/form/InputSuggestion.js +1 -1
- package/dist/components/form/PinInput.js +2 -2
- package/dist/components/form/RadioGroup.js +2 -2
- package/dist/components/form/RadioInput.js +2 -2
- package/dist/components/menu/Menu.js +2 -2
- package/dist/components/quote/Quote.js +4 -3
- package/dist/components/row/Row.js +10 -9
- package/dist/components/scroll-area/ScrollArea.js +18 -17
- package/dist/components/segmented-control/SegmentedControl.js +12 -11
- package/dist/components/text/Text.js +2 -2
- package/dist/components/tooltip/Tooltip.js +10 -9
- package/dist/index.js +219 -218
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +14 -0
- package/dist/node_modules/react/compiler-runtime.js +10 -0
- package/dist/utils/contextStore.js +1 -1
- package/dist/utils/generics.js +88 -89
- package/package.json +3 -5
- package/dist/DFlowDataType.service-Dz8pQUeO.js +0 -793
- package/dist/compiler-runtime-BNHg76kC.js +0 -36
- /package/dist/assets/{Avatar.css → components/avatar/Avatar.style.css} +0 -0
- /package/dist/assets/{Badge.css → components/badge/Badge.style.css} +0 -0
- /package/dist/assets/{Breadcrumb.css → components/breadcrumb/Breadcrumb.style.css} +0 -0
- /package/dist/assets/{Button.css → components/button/Button.style.css} +0 -0
- /package/dist/assets/{ButtonGroup.css → components/button-group/ButtonGroup.style.css} +0 -0
- /package/dist/assets/{Card.css → components/card/Card.style.css} +0 -0
- /package/dist/assets/{Col.css → components/col/Col.style.css} +0 -0
- /package/dist/assets/{Command.css → components/command/Command.style.css} +0 -0
- /package/dist/assets/{Container.css → components/container/Container.style.css} +0 -0
- /package/dist/assets/{DFlowFolder.css → components/d-flow/folder/DFlowFolder.style.css} +0 -0
- /package/dist/assets/{DFlowFunctionDefaultCard.css → components/d-flow/function/DFlowFunctionDefaultCard.style.css} +0 -0
- /package/dist/assets/{DFlowInputDataType.css → components/d-flow/input/DFlowInputDataType.style.css} +0 -0
- /package/dist/assets/{DFlowMiniMap.css → components/d-flow/minimap/DFlowMiniMap.style.css} +0 -0
- /package/dist/assets/{DFlowSuggestionSearchInput.css → components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css} +0 -0
- /package/dist/assets/{DFlowValidation.css → components/d-flow/validation/DFlowValidation.style.css} +0 -0
- /package/dist/assets/{DFullScreen.css → components/d-fullscreen/DFullScreen.style.css} +0 -0
- /package/dist/assets/{DLayout.css → components/d-layout/DLayout.style.css} +0 -0
- /package/dist/assets/{DResizable.css → components/d-resizable/DResizable.style.css} +0 -0
- /package/dist/assets/{Dialog.css → components/dialog/Dialog.style.css} +0 -0
- /package/dist/assets/{FileTabs.css → components/file-tabs/FileTabs.style.css} +0 -0
- /package/dist/assets/{Flex.css → components/flex/Flex.style.css} +0 -0
- /package/dist/assets/{Input.css → components/form/Input.style.css} +0 -0
- /package/dist/assets/{Menu.css → components/menu/Menu.style.css} +0 -0
- /package/dist/assets/{Quote.css → components/quote/Quote.style.css} +0 -0
- /package/dist/assets/{Row.css → components/row/Row.style.css} +0 -0
- /package/dist/assets/{ScrollArea.css → components/scroll-area/ScrollArea.style.css} +0 -0
- /package/dist/assets/{SegmentedControl.css → components/segmented-control/SegmentedControl.style.css} +0 -0
- /package/dist/assets/{Text.css → components/text/Text.style.css} +0 -0
- /package/dist/assets/{Tooltip.css → components/tooltip/Tooltip.style.css} +0 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as d } from "../../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { useNodes as h, MiniMap as s } from "@xyflow/react";
|
|
4
|
-
import { FLOW_EDGE_RAINBOW as
|
|
5
|
-
import '../../../assets/DFlowMiniMap.css'
|
|
6
|
-
|
|
4
|
+
import { FLOW_EDGE_RAINBOW as m } from "../DFlow.edges.hook.js";
|
|
5
|
+
import '../../../assets/components/d-flow/minimap/DFlowMiniMap.style.css';/* empty css */
|
|
6
|
+
const w = (c) => {
|
|
7
|
+
const e = d.c(2), o = h();
|
|
7
8
|
let i;
|
|
8
9
|
return e[0] !== o ? (i = /* @__PURE__ */ l(s, { offsetScale: 0, pannable: !0, zoomable: !0, className: "d-flow-viewport-mini-map", nodeComponent: (t) => {
|
|
9
10
|
const r = o.find((n) => n.id === t.id);
|
|
10
11
|
if (!r || r.type == "suggestion")
|
|
11
12
|
return null;
|
|
12
13
|
if (r.type == "group") {
|
|
13
|
-
const n = r.data?.depth ?? 0, a =
|
|
14
|
+
const n = r.data?.depth ?? 0, a = m[n % m.length];
|
|
14
15
|
return /* @__PURE__ */ l("rect", { width: t.width, height: t.height, rx: 50, ry: 50, fill: a, fillOpacity: 0.05, stroke: a, strokeWidth: 2, "stroke-dasharray": "20", className: "d-flow-viewport-mini-map__group", x: t.x, y: t.y });
|
|
15
16
|
}
|
|
16
17
|
return /* @__PURE__ */ l("rect", { width: t.width, height: t.height, x: t.x, rx: 25, ry: 25, fill: "rgb(28.2, 25.5, 43.5)", y: t.y });
|
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useService as
|
|
3
|
-
import { DFlowReactiveSuggestionService as
|
|
4
|
-
import {
|
|
5
|
-
import { md5 as
|
|
6
|
-
import { DFlowSuggestionType as f, DFlowSuggestion as
|
|
7
|
-
import { DFlowFunctionReactiveService as
|
|
8
|
-
import { replaceGenericsAndSortType as
|
|
9
|
-
import { NodeFunctionView as
|
|
10
|
-
import { DFlowReactiveService as
|
|
11
|
-
import { useReturnType as
|
|
12
|
-
import { useInputType as
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const o = i ? K(i) : void 0, r = i ? R(O(i, y), p) : void 0, a = [];
|
|
1
|
+
import { c as x } from "../../../_virtual/compiler-runtime.js";
|
|
2
|
+
import { useService as y } from "../../../utils/contextStore.js";
|
|
3
|
+
import { DFlowReactiveSuggestionService as M } from "./DFlowSuggestion.service.js";
|
|
4
|
+
import { DFlowDataTypeReactiveService as B } from "../data-type/DFlowDataType.service.js";
|
|
5
|
+
import { md5 as P } from "js-md5";
|
|
6
|
+
import { DFlowSuggestionType as f, DFlowSuggestion as S } from "./DFlowSuggestion.view.js";
|
|
7
|
+
import { DFlowFunctionReactiveService as j } from "../function/DFlowFunction.service.js";
|
|
8
|
+
import { replaceGenericsAndSortType as O, resolveType as A, isMatchingType as b } from "../../../utils/generics.js";
|
|
9
|
+
import { NodeFunctionView as D } from "../DFlow.view.js";
|
|
10
|
+
import { DFlowReactiveService as L } from "../DFlow.service.js";
|
|
11
|
+
import { useReturnType as Y } from "../function/DFlowFunction.return.hook.js";
|
|
12
|
+
import { useInputType as $ } from "../function/DFlowFunction.input.hook.js";
|
|
13
|
+
const ie = (i, p, s, g = 0, u = [0], T = 1, v = [f.REF_OBJECT, f.VALUE, f.FUNCTION, f.FUNCTION_COMBINATION, f.DATA_TYPE]) => {
|
|
14
|
+
const m = y(M), I = y(B), R = y(L), E = y(j), N = R.getById(s), l = i ? I?.getDataType(i) : void 0;
|
|
15
|
+
if (!m || !I) return [];
|
|
16
|
+
const o = i ? G(i) : void 0, r = i ? O(A(i, I), p) : void 0, a = [];
|
|
18
17
|
return m.getSuggestionsByHash(o || "").length <= 0 && (o && l && v.includes(f.VALUE) && l.rules?.nodes?.forEach((n) => {
|
|
19
|
-
if (n?.variant ===
|
|
18
|
+
if (n?.variant === "ITEM_OF_COLLECTION")
|
|
20
19
|
n.config.items?.forEach((e) => {
|
|
21
|
-
const t = new
|
|
20
|
+
const t = new S(o, [], {
|
|
22
21
|
__typename: "LiteralValue",
|
|
23
22
|
value: e
|
|
24
23
|
}, f.VALUE, [e.toString()]);
|
|
25
24
|
m.add(t), a.push(t);
|
|
26
25
|
});
|
|
27
|
-
else if (n?.variant ===
|
|
28
|
-
const e = n.config, t = new
|
|
26
|
+
else if (n?.variant === "NUMBER_RANGE") {
|
|
27
|
+
const e = n.config, t = new S(o, [], {
|
|
29
28
|
__typename: "LiteralValue",
|
|
30
29
|
value: e.from
|
|
31
30
|
}, f.VALUE, [e.from?.toString() ?? ""]);
|
|
32
31
|
m.add(t), a.push(t);
|
|
33
32
|
}
|
|
34
|
-
}), o && l && l.variant ===
|
|
35
|
-
const e = new
|
|
33
|
+
}), o && l && l.variant === "DATA_TYPE" && v.includes(f.DATA_TYPE) && I.values().forEach((n) => {
|
|
34
|
+
const e = new S(o, [], n.json, f.DATA_TYPE, [n.name?.nodes[0]?.content]);
|
|
36
35
|
m.add(e), a.push(e);
|
|
37
|
-
}), v.includes(f.FUNCTION_COMBINATION) &&
|
|
36
|
+
}), v.includes(f.FUNCTION_COMBINATION) && E.values().filter((e) => {
|
|
38
37
|
if (!i || !r || !o) return !0;
|
|
39
38
|
if (e.runtimeFunctionDefinition?.identifier == "RETURN" && i) return !1;
|
|
40
|
-
if (l?.variant ===
|
|
39
|
+
if (l?.variant === "NODE") return !0;
|
|
41
40
|
if (!e.returnType || !e.genericKeys) return !1;
|
|
42
|
-
const t =
|
|
43
|
-
return
|
|
41
|
+
const t = O(A(e.returnType, I), e.genericKeys);
|
|
42
|
+
return b(r, t);
|
|
44
43
|
}).sort((e, t) => {
|
|
45
|
-
const [c, d,
|
|
44
|
+
const [c, d, _] = e.runtimeFunctionDefinition.identifier.split("::"), [F, C, h] = t.runtimeFunctionDefinition.identifier.split("::"), U = c.localeCompare(F);
|
|
46
45
|
if (U !== 0) return U;
|
|
47
|
-
const
|
|
48
|
-
return
|
|
46
|
+
const V = d.localeCompare(C);
|
|
47
|
+
return V !== 0 ? V : _.localeCompare(h);
|
|
49
48
|
}).forEach((e) => {
|
|
50
49
|
const t = {
|
|
51
50
|
__typename: "NodeFunction",
|
|
@@ -63,89 +62,89 @@ const se = (i, p, s, g = 0, u = [0], T = 1, v = [f.REF_OBJECT, f.VALUE, f.FUNCTI
|
|
|
63
62
|
}
|
|
64
63
|
})) ?? []
|
|
65
64
|
}
|
|
66
|
-
}, c = new
|
|
65
|
+
}, c = new S(o || "", [], t, f.FUNCTION, [e.names?.nodes[0]?.content]);
|
|
67
66
|
a.push(c);
|
|
68
|
-
})), v.includes(f.REF_OBJECT) && (i ?
|
|
67
|
+
})), v.includes(f.REF_OBJECT) && (i ? J(s) : []).forEach((e) => {
|
|
69
68
|
if ((e?.node ?? 0) >= T || (e?.depth ?? 0) > g || (e?.scope ?? []).some((d) => !u.includes(d)) || !r) return;
|
|
70
|
-
const t =
|
|
71
|
-
if (!
|
|
72
|
-
const c = new
|
|
69
|
+
const t = O(A(e.dataTypeIdentifier, I), []);
|
|
70
|
+
if (!b(r, t)) return;
|
|
71
|
+
const c = new S(o || "", [], e, f.REF_OBJECT, [`${e.depth}-${e.scope}-${e.node || ""}`]);
|
|
73
72
|
a.push(c);
|
|
74
73
|
}), [...a, ...m.getSuggestionsByHash(o || "")].sort();
|
|
75
|
-
},
|
|
76
|
-
const s =
|
|
74
|
+
}, G = (i, p) => {
|
|
75
|
+
const s = x.c(4), g = y(B);
|
|
77
76
|
if (!i || !g)
|
|
78
77
|
return;
|
|
79
78
|
let u;
|
|
80
79
|
if (s[0] !== g || s[1] !== p || s[2] !== i) {
|
|
81
|
-
const T =
|
|
82
|
-
u =
|
|
80
|
+
const T = A(i, g), v = O(T, p), m = JSON.stringify(v);
|
|
81
|
+
u = P(m), s[0] = g, s[1] = p, s[2] = i, s[3] = u;
|
|
83
82
|
} else
|
|
84
83
|
u = s[3];
|
|
85
84
|
return u;
|
|
86
|
-
},
|
|
87
|
-
const p =
|
|
85
|
+
}, J = (i) => {
|
|
86
|
+
const p = y(B), s = y(L), g = y(j), u = [];
|
|
88
87
|
if (!p || !s || !g) return u;
|
|
89
88
|
const T = s.values().find((N) => N.id === i);
|
|
90
89
|
if (!T?.startingNodeId) return u;
|
|
91
90
|
let v = 0;
|
|
92
91
|
const m = () => ++v;
|
|
93
|
-
let
|
|
94
|
-
const
|
|
92
|
+
let I = 0;
|
|
93
|
+
const R = () => ++I, E = (N, l, o) => {
|
|
95
94
|
if (!N) return;
|
|
96
95
|
let r = N;
|
|
97
96
|
for (; r; ) {
|
|
98
97
|
const a = g.getById(r.functionDefinition?.id);
|
|
99
98
|
if (!a) break;
|
|
100
|
-
const
|
|
99
|
+
const w = R();
|
|
101
100
|
if (r.parameters && a.parameterDefinitions)
|
|
102
101
|
for (const n of a.parameterDefinitions) {
|
|
103
102
|
const e = p.getDataType(n.dataTypeIdentifier);
|
|
104
|
-
if (!e || e.variant ===
|
|
105
|
-
const t = e.rules?.nodes?.filter((c) => c?.variant ===
|
|
103
|
+
if (!e || e.variant === "NODE") continue;
|
|
104
|
+
const t = e.rules?.nodes?.filter((c) => c?.variant === "INPUT_TYPE") ?? [];
|
|
106
105
|
if (t.length) {
|
|
107
|
-
const d = r.parameters.find((
|
|
108
|
-
for (const
|
|
109
|
-
const
|
|
110
|
-
|
|
106
|
+
const d = r.parameters.find((F) => F.id === n.id)?.value, _ = d !== void 0 ? d instanceof D ? [d.json()] : [d] : [];
|
|
107
|
+
for (const F of t) {
|
|
108
|
+
const C = F?.config, h = $(C.dataTypeIdentifier, a, _, p);
|
|
109
|
+
h && u.push({
|
|
111
110
|
__typename: "ReferenceValue",
|
|
112
|
-
dataTypeIdentifier:
|
|
111
|
+
dataTypeIdentifier: h,
|
|
113
112
|
depth: l,
|
|
114
113
|
scope: o,
|
|
115
|
-
node:
|
|
114
|
+
node: w
|
|
116
115
|
});
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
}
|
|
120
119
|
{
|
|
121
|
-
const n = r.parameters?.map((t) => t.value).filter((t) => t !== void 0) ?? [], e =
|
|
120
|
+
const n = r.parameters?.map((t) => t.value).filter((t) => t !== void 0) ?? [], e = Y(a, n.map((t) => t instanceof D ? t.json() : t), p);
|
|
122
121
|
e && u.push({
|
|
123
122
|
__typename: "ReferenceValue",
|
|
124
123
|
dataTypeIdentifier: e,
|
|
125
124
|
depth: l,
|
|
126
125
|
scope: o,
|
|
127
|
-
node:
|
|
126
|
+
node: w
|
|
128
127
|
});
|
|
129
128
|
}
|
|
130
129
|
if (r.parameters && a.parameterDefinitions)
|
|
131
130
|
for (const n of a.parameterDefinitions)
|
|
132
|
-
if (p.getDataType(n.dataTypeIdentifier)?.variant ===
|
|
131
|
+
if (p.getDataType(n.dataTypeIdentifier)?.variant === "NODE") {
|
|
133
132
|
const t = r.parameters.find((c) => c.id === n.id);
|
|
134
|
-
if (t?.value && t.value instanceof
|
|
133
|
+
if (t?.value && t.value instanceof D) {
|
|
135
134
|
const c = t.value, d = [...o, m()];
|
|
136
|
-
|
|
135
|
+
E(c, l + 1, d);
|
|
137
136
|
}
|
|
138
137
|
} else {
|
|
139
138
|
const t = r.parameters.find((c) => c.id === n.id);
|
|
140
|
-
t?.value && t.value instanceof
|
|
139
|
+
t?.value && t.value instanceof D && E(t.value, l, o);
|
|
141
140
|
}
|
|
142
141
|
r = T.getNodeById(r.nextNodeId);
|
|
143
142
|
}
|
|
144
143
|
};
|
|
145
|
-
return
|
|
144
|
+
return E(T.getNodeById(T.startingNodeId), 0, [0]), u;
|
|
146
145
|
};
|
|
147
146
|
export {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
J as useRefObjects,
|
|
148
|
+
ie as useSuggestions,
|
|
149
|
+
G as useTypeHash
|
|
151
150
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as I } from "react/jsx-runtime";
|
|
2
|
-
import { c as k } from "../../../compiler-runtime
|
|
2
|
+
import { c as k } from "../../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { MenuTrigger as B, MenuSeparator as b, MenuPortal as E, Menu as L } from "../../menu/Menu.js";
|
|
4
4
|
import x from "react";
|
|
5
5
|
import { DFlowSuggestionMenuFooter as O } from "./DFlowSuggestionMenuFooter.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as y } from "../../../compiler-runtime
|
|
2
|
+
import { c as y } from "../../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { MenuLabel as p } from "../../menu/Menu.js";
|
|
4
4
|
import { IconCornerDownLeft as d, IconBulb as g, IconFileFunctionFilled as _, IconArrowsShuffle as b, IconCirclesRelation as u, IconCircleDot as x } from "@tabler/icons-react";
|
|
5
5
|
import { Text as f } from "../../text/Text.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { c as m } from "../../../compiler-runtime
|
|
2
|
+
import { c as m } from "../../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { DFlowSuggestionSearchInput as i } from "./DFlowSuggestionSearchInput.js";
|
|
4
4
|
import { IconSearch as s } from "@tabler/icons-react";
|
|
5
5
|
const p = (c) => {
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Input as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Input as p, setElementKey as l } from "../../form/Input.js";
|
|
3
3
|
import r from "react";
|
|
4
4
|
import { Button as m } from "../../button/Button.js";
|
|
5
5
|
import { IconX as u } from "@tabler/icons-react";
|
|
6
|
-
import '../../../assets/DFlowSuggestionSearchInput.css'
|
|
6
|
+
import '../../../assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css';/* empty css */
|
|
7
|
+
const C = r.forwardRef((n, t) => {
|
|
7
8
|
t = t || r.useRef(null);
|
|
8
9
|
const {
|
|
9
10
|
clearable: i = !1,
|
|
10
11
|
right: s,
|
|
11
12
|
...a
|
|
12
13
|
} = n, c = () => {
|
|
13
|
-
t.current &&
|
|
14
|
-
},
|
|
15
|
-
return i &&
|
|
14
|
+
t.current && l(t.current, "value", "", "change");
|
|
15
|
+
}, e = [s];
|
|
16
|
+
return i && e.push(/* @__PURE__ */ o(m, { variant: "none", onClick: c, children: /* @__PURE__ */ o(u, { size: 13 }) })), /* @__PURE__ */ o(p, { wrapperComponent: {
|
|
16
17
|
className: "d-flow-suggestion-search-input"
|
|
17
|
-
}, right:
|
|
18
|
+
}, right: e, type: "text", ref: t, ...a });
|
|
18
19
|
});
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
C as DFlowSuggestionSearchInput
|
|
21
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as S, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import { c as B } from "../../../compiler-runtime
|
|
2
|
+
import { c as B } from "../../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { useService as E, useStore as O } from "../../../utils/contextStore.js";
|
|
4
4
|
import { FileTabsService as x } from "../../file-tabs/FileTabs.service.js";
|
|
5
5
|
import { FileTabsContent as V, FileTabsTrigger as P, FileTabsList as G, FileTabs as H } from "../../file-tabs/FileTabs.js";
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as a } from "../../../compiler-runtime
|
|
2
|
+
import { c as a } from "../../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { Panel as f } from "@xyflow/react";
|
|
4
4
|
import { useDFlowValidations as g } from "./DFlowValidation.hook.js";
|
|
5
5
|
import { Flex as m } from "../../flex/Flex.js";
|
|
6
|
-
import { InspectionSeverity as
|
|
6
|
+
import { InspectionSeverity as l } from "../../../utils/inspection.js";
|
|
7
7
|
import { Badge as p } from "../../badge/Badge.js";
|
|
8
8
|
import { IconExclamationCircle as u, IconAlertTriangle as d, IconMessageExclamation as h } from "@tabler/icons-react";
|
|
9
|
-
import '../../../assets/DFlowValidation.css'
|
|
9
|
+
import '../../../assets/components/d-flow/validation/DFlowValidation.style.css';/* empty css */
|
|
10
|
+
const D = (e) => {
|
|
10
11
|
const r = a.c(4), {
|
|
11
12
|
flowId: s
|
|
12
13
|
} = e, t = g(s);
|
|
13
|
-
let
|
|
14
|
-
r[0] !== t ? (
|
|
14
|
+
let i;
|
|
15
|
+
r[0] !== t ? (i = (t?.length ?? 0) > 0 ? /* @__PURE__ */ n("div", { className: "d-flow-viewport-validations", children: /* @__PURE__ */ c(m, { style: {
|
|
15
16
|
gap: "0.35rem"
|
|
16
17
|
}, children: [
|
|
17
18
|
(t?.filter(R)?.length ?? 0) > 0 ? /* @__PURE__ */ n(p, { color: "error", children: /* @__PURE__ */ c(m, { align: "center", style: {
|
|
@@ -32,28 +33,28 @@ import '../../../assets/DFlowValidation.css';const j = (e) => {
|
|
|
32
33
|
/* @__PURE__ */ n(h, { size: 12 }),
|
|
33
34
|
t?.filter(w)?.length
|
|
34
35
|
] }) }) : null
|
|
35
|
-
] }) }) : null, r[0] = t, r[1] =
|
|
36
|
+
] }) }) : null, r[0] = t, r[1] = i) : i = r[1];
|
|
36
37
|
let o;
|
|
37
|
-
return r[2] !==
|
|
38
|
+
return r[2] !== i ? (o = /* @__PURE__ */ n(f, { position: "top-right", children: i }), r[2] = i, r[3] = o) : o = r[3], o;
|
|
38
39
|
};
|
|
39
40
|
function R(e) {
|
|
40
|
-
return e.type ===
|
|
41
|
+
return e.type === l.ERROR;
|
|
41
42
|
}
|
|
42
43
|
function y(e) {
|
|
43
|
-
return e.type ===
|
|
44
|
+
return e.type === l.ERROR;
|
|
44
45
|
}
|
|
45
46
|
function x(e) {
|
|
46
|
-
return e.type ===
|
|
47
|
+
return e.type === l.WARNING;
|
|
47
48
|
}
|
|
48
49
|
function A(e) {
|
|
49
|
-
return e.type ===
|
|
50
|
+
return e.type === l.WARNING;
|
|
50
51
|
}
|
|
51
52
|
function I(e) {
|
|
52
|
-
return e.type ===
|
|
53
|
+
return e.type === l.GRAMMAR;
|
|
53
54
|
}
|
|
54
55
|
function w(e) {
|
|
55
|
-
return e.type ===
|
|
56
|
+
return e.type === l.GRAMMAR;
|
|
56
57
|
}
|
|
57
58
|
export {
|
|
58
|
-
|
|
59
|
+
D as DFlowValidation
|
|
59
60
|
};
|
|
@@ -3,5 +3,4 @@ import { default as React } from 'react';
|
|
|
3
3
|
export interface DFullScreenProps extends Code0Component<HTMLDivElement> {
|
|
4
4
|
children: React.ReactNode | React.ReactNode[];
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
7
|
-
export default _default;
|
|
6
|
+
export declare const DFullScreen: React.FC<DFullScreenProps>;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import { mergeCode0Props as
|
|
5
|
-
import '../../assets/DFullScreen.css'
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { c as f } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import o from "react";
|
|
4
|
+
import { mergeCode0Props as h } from "../../utils/utils.js";
|
|
5
|
+
import '../../assets/components/d-fullscreen/DFullScreen.style.css';/* empty css */
|
|
6
|
+
const a = (r) => {
|
|
7
|
+
const e = f.c(7), t = o.useRef(null);
|
|
8
|
+
let n, l;
|
|
9
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = () => {
|
|
9
10
|
t.current && (window.addEventListener("resize", () => {
|
|
10
11
|
t.current.style.height = window.innerHeight + "px", t.current.style.width = window.innerWidth + "px";
|
|
11
12
|
}), t.current.style.height = window.innerHeight + "px", t.current.style.width = window.innerWidth + "px");
|
|
12
|
-
}, l = [t], e[0] =
|
|
13
|
-
let
|
|
14
|
-
e[2] !==
|
|
13
|
+
}, l = [t], e[0] = n, e[1] = l) : (n = e[0], l = e[1]), o.useEffect(n, l);
|
|
14
|
+
let i;
|
|
15
|
+
e[2] !== r ? (i = h("d-full-screen", r), e[2] = r, e[3] = i) : i = e[3];
|
|
15
16
|
let c;
|
|
16
|
-
return e[4] !==
|
|
17
|
-
}
|
|
17
|
+
return e[4] !== r.children || e[5] !== i ? (c = /* @__PURE__ */ d("div", { ...i, ref: t, children: r.children }), e[4] = r.children, e[5] = i, e[6] = c) : c = e[6], c;
|
|
18
|
+
};
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
a as DFullScreen
|
|
20
21
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as h, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { c as E } from "../../compiler-runtime
|
|
2
|
+
import { c as E } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { mergeCode0Props as F } from "../../utils/utils.js";
|
|
4
4
|
import { Flex as v } from "../flex/Flex.js";
|
|
5
|
-
import '../../assets/DLayout.css'
|
|
5
|
+
import '../../assets/components/d-layout/DLayout.style.css';/* empty css */
|
|
6
|
+
const k = (C) => {
|
|
6
7
|
const t = E.c(29);
|
|
7
|
-
let e, i, l, o,
|
|
8
|
+
let e, i, l, o, r, n;
|
|
8
9
|
if (t[0] !== C) {
|
|
9
10
|
const {
|
|
10
11
|
children: x,
|
|
@@ -14,15 +15,15 @@ import '../../assets/DLayout.css';const $ = (C) => {
|
|
|
14
15
|
rightContent: j,
|
|
15
16
|
...D
|
|
16
17
|
} = C;
|
|
17
|
-
i = x, n = N, e = b, l = g, o = j,
|
|
18
|
+
i = x, n = N, e = b, l = g, o = j, r = F("d-layout", D), t[0] = C, t[1] = e, t[2] = i, t[3] = l, t[4] = o, t[5] = r, t[6] = n;
|
|
18
19
|
} else
|
|
19
|
-
e = t[1], i = t[2], l = t[3], o = t[4],
|
|
20
|
+
e = t[1], i = t[2], l = t[3], o = t[4], r = t[5], n = t[6];
|
|
20
21
|
let _;
|
|
21
22
|
t[7] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
22
23
|
flexDirection: "column"
|
|
23
24
|
}, t[7] = _) : _ = t[7];
|
|
24
|
-
let
|
|
25
|
-
t[8] !== n ? (
|
|
25
|
+
let s;
|
|
26
|
+
t[8] !== n ? (s = n ? /* @__PURE__ */ h("div", { className: "d-layout__top", children: n }) : null, t[8] = n, t[9] = s) : s = t[9];
|
|
26
27
|
let c;
|
|
27
28
|
t[10] !== l ? (c = l ? /* @__PURE__ */ h("div", { className: "d-layout__left", children: l }) : null, t[10] = l, t[11] = c) : c = t[11];
|
|
28
29
|
let m;
|
|
@@ -38,14 +39,14 @@ import '../../assets/DLayout.css';const $ = (C) => {
|
|
|
38
39
|
let f;
|
|
39
40
|
t[20] !== e ? (f = e ? /* @__PURE__ */ h("div", { className: "d-layout__bottom", children: e }) : null, t[20] = e, t[21] = f) : f = t[21];
|
|
40
41
|
let u;
|
|
41
|
-
t[22] !==
|
|
42
|
-
|
|
42
|
+
t[22] !== s || t[23] !== a || t[24] !== f ? (u = /* @__PURE__ */ p(v, { style: _, children: [
|
|
43
|
+
s,
|
|
43
44
|
a,
|
|
44
45
|
f
|
|
45
|
-
] }), t[22] =
|
|
46
|
+
] }), t[22] = s, t[23] = a, t[24] = f, t[25] = u) : u = t[25];
|
|
46
47
|
let y;
|
|
47
|
-
return t[26] !==
|
|
48
|
+
return t[26] !== r || t[27] !== u ? (y = /* @__PURE__ */ h("div", { ...r, children: u }), t[26] = r, t[27] = u, t[28] = y) : y = t[28], y;
|
|
48
49
|
};
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
+
k as DLayout
|
|
51
52
|
};
|
|
@@ -6,17 +6,17 @@ import { DNamespaceProjectReactiveService as L } from "./project/DNamespaceProje
|
|
|
6
6
|
import { DNamespaceProjectView as P } from "./project/DNamespaceProject.view.js";
|
|
7
7
|
import "react/jsx-runtime";
|
|
8
8
|
import "react";
|
|
9
|
-
import "../../compiler-runtime
|
|
10
|
-
import '../../assets/Menu.css';import '../../assets/Badge.css';import '../../assets/Flex.css';import '../../assets/Text.css';import '../../assets/Card.css';/* empty css
|
|
9
|
+
import "../../_virtual/compiler-runtime.js";
|
|
10
|
+
import '../../assets/components/menu/Menu.style.css';import '../../assets/components/badge/Badge.style.css';import '../../assets/components/flex/Flex.style.css';import '../../assets/components/text/Text.style.css';import '../../assets/components/card/Card.style.css';/* empty css */
|
|
11
11
|
import "merge-props";
|
|
12
|
-
/* empty css
|
|
12
|
+
/* empty css */
|
|
13
13
|
import "@tabler/icons-react";
|
|
14
14
|
import "../../utils/contextStore.js";
|
|
15
|
-
/* empty css
|
|
15
|
+
/* empty css */
|
|
16
16
|
import "../button/Button.js";
|
|
17
|
-
/* empty css */
|
|
18
|
-
import { DNamespaceReactiveService as g } from "./DNamespace.service.js";
|
|
19
17
|
/* empty css */
|
|
18
|
+
import { DNamespaceReactiveService as g } from "./DNamespace.service.js";
|
|
19
|
+
/* empty css */
|
|
20
20
|
import "@radix-ui/react-dropdown-menu";
|
|
21
21
|
import { DNamespaceRoleReactiveService as k } from "./role/DNamespaceRole.service.js";
|
|
22
22
|
import { DNamespaceRoleView as u } from "./role/DNamespaceRole.view.js";
|
|
@@ -2,16 +2,16 @@ import { DOrganizationReactiveService as D } from "./DOrganization.service.js";
|
|
|
2
2
|
import { DOrganizationView as w } from "./DOrganization.view.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../../compiler-runtime
|
|
6
|
-
import '../../assets/Menu.css';import '../../assets/Flex.css';import '../../assets/Badge.css';import '../../assets/Text.css';import '../../assets/Card.css';/* empty css
|
|
5
|
+
import "../../_virtual/compiler-runtime.js";
|
|
6
|
+
import '../../assets/components/menu/Menu.style.css';import '../../assets/components/flex/Flex.style.css';import '../../assets/components/badge/Badge.style.css';import '../../assets/components/text/Text.style.css';import '../../assets/components/card/Card.style.css';/* empty css */
|
|
7
7
|
import "merge-props";
|
|
8
|
-
/* empty css
|
|
8
|
+
/* empty css */
|
|
9
9
|
import "../../utils/contextStore.js";
|
|
10
10
|
import "@tabler/icons-react";
|
|
11
|
-
/* empty css */
|
|
12
11
|
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
13
|
import "../button/Button.js";
|
|
14
|
-
/* empty css
|
|
14
|
+
/* empty css */
|
|
15
15
|
import "@radix-ui/react-dropdown-menu";
|
|
16
16
|
export {
|
|
17
17
|
D as DOrganizationReactiveService,
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { mergeCode0Props as
|
|
4
|
-
import { PanelGroup as o, Panel as c, PanelResizeHandle as
|
|
5
|
-
import '../../assets/DResizable.css'
|
|
6
|
-
|
|
2
|
+
import { c as r } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { mergeCode0Props as n } from "../../utils/utils.js";
|
|
4
|
+
import { PanelGroup as o, Panel as c, PanelResizeHandle as m } from "react-resizable-panels";
|
|
5
|
+
import '../../assets/components/d-resizable/DResizable.style.css';/* empty css */
|
|
6
|
+
const u = (a) => {
|
|
7
|
+
const e = r.c(4);
|
|
7
8
|
let l;
|
|
8
|
-
e[0] !== a ? (l =
|
|
9
|
+
e[0] !== a ? (l = n("d-resizable", a), e[0] = a, e[1] = l) : l = e[1];
|
|
9
10
|
const t = l;
|
|
10
11
|
let s;
|
|
11
12
|
return e[2] !== t ? (s = /* @__PURE__ */ i(o, { "data-slot": "resizable-panel-group", ...t }), e[2] = t, e[3] = s) : s = e[3], s;
|
|
12
|
-
},
|
|
13
|
-
const e =
|
|
13
|
+
}, P = (a) => {
|
|
14
|
+
const e = r.c(4);
|
|
14
15
|
let l;
|
|
15
|
-
e[0] !== a ? (l =
|
|
16
|
+
e[0] !== a ? (l = n("d-resizable__panel", a), e[0] = a, e[1] = l) : l = e[1];
|
|
16
17
|
let t;
|
|
17
18
|
return e[2] !== l ? (t = /* @__PURE__ */ i(c, { "data-slot": "resizable-panel", ...l }), e[2] = l, e[3] = t) : t = e[3], t;
|
|
18
|
-
},
|
|
19
|
-
const e =
|
|
19
|
+
}, h = (a) => {
|
|
20
|
+
const e = r.c(5);
|
|
20
21
|
let l;
|
|
21
|
-
e[0] !== a ? (l =
|
|
22
|
+
e[0] !== a ? (l = n("d-resizable__handle", a), e[0] = a, e[1] = l) : l = e[1];
|
|
22
23
|
let t;
|
|
23
24
|
e[2] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ i("div", { className: "d-resizable__handle-bar" }), e[2] = t) : t = e[2];
|
|
24
25
|
let s;
|
|
25
|
-
return e[3] !== l ? (s = /* @__PURE__ */ i(
|
|
26
|
+
return e[3] !== l ? (s = /* @__PURE__ */ i(m, { "data-slot": "resizable-handle", ...l, children: t }), e[3] = l, e[4] = s) : s = e[4], s;
|
|
26
27
|
};
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
h as DResizableHandle,
|
|
30
|
+
P as DResizablePanel,
|
|
31
|
+
u as DResizablePanelGroup
|
|
31
32
|
};
|
|
@@ -2,15 +2,15 @@ import { DUserReactiveService as U } from "./DUser.service.js";
|
|
|
2
2
|
import { DUserView as w } from "./DUser.view.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../../compiler-runtime
|
|
6
|
-
import '../../assets/Flex.css';import '../../assets/Text.css';import '../../assets/Avatar.css';import '../../assets/Menu.css';/* empty css
|
|
5
|
+
import "../../_virtual/compiler-runtime.js";
|
|
6
|
+
import '../../assets/components/flex/Flex.style.css';import '../../assets/components/text/Text.style.css';import '../../assets/components/avatar/Avatar.style.css';import '../../assets/components/menu/Menu.style.css';/* empty css */
|
|
7
7
|
import "merge-props";
|
|
8
8
|
import "@radix-ui/react-dropdown-menu";
|
|
9
9
|
import "../../utils/contextStore.js";
|
|
10
10
|
import "js-md5";
|
|
11
11
|
/* empty css */
|
|
12
|
-
/* empty css
|
|
13
|
-
/* empty css
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
14
|
export {
|
|
15
15
|
U as DUserReactiveService,
|
|
16
16
|
w as DUserView
|