@code0-tech/pictor 0.0.0-mvp.23 → 0.0.0-mvp.24
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/assets/components/aurora/Aurora.style.css +1 -0
- package/dist/components/aurora/Aurora.d.ts +5 -0
- package/dist/components/aurora/Aurora.js +23 -0
- package/dist/components/d-flow/DFlow.view.d.ts +6 -2
- package/dist/components/d-flow/DFlow.view.js +52 -17
- package/dist/components/d-flow/control/DFlowControl.js +38 -38
- package/dist/components/d-flow/data-type/DFlowDataType.service.js +1 -1
- package/dist/components/d-flow/export/DFlowExport.d.ts +6 -0
- package/dist/components/d-flow/export/DFlowExport.js +24 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +1 -1
- package/dist/components/d-flow/type/DFlowType.view.d.ts +1 -1
- package/dist/components/d-user/DUserInput.d.ts +2 -0
- package/dist/components/d-user/DUserInput.js +21 -20
- package/dist/index.d.ts +1 -0
- package/dist/index.js +256 -254
- package/dist/utils/generics.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.aurora-background{position:absolute;height:100%;width:100%;left:0;top:0;border-radius:inherit;pointer-events:none;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:transparent;transition:background-color .15s ease,color .15s ease;--aurora: repeating-linear-gradient( 100deg, rgba(112, 255, 178, .7) 0%, rgba(226, 112, 255, .9) 8%, rgba(181, 255, 214, .8) 16%, rgba(199, 255, 112, .9) 24%, transparent 32% );--gradient: repeating-linear-gradient( 100deg, rgba(255,255,255, 1) 0%, rgba(255,255,255, 1) 3%, transparent 10%, transparent 12%, rgba(255,255,255, 1) 16% );--transparent: transparent}.aurora-background__overlay{position:absolute;inset:0;overflow:hidden;pointer-events:none}.aurora-background__aurora{position:absolute;inset:-10px;pointer-events:none;opacity:.5;filter:blur(10px);will-change:transform;background-image:var(--gradient),var(--aurora);background-size:300% 300%,200% 200%;background-position:50% 50%,50% 50%}.aurora-background__aurora:after{content:"";position:absolute;inset:0;background-image:var(--gradient),var(--aurora);background-size:200% 200%,100% 100%;background-attachment:fixed;mix-blend-mode:difference;animation:aurora-animation 45s ease-in-out infinite alternate}.aurora-background--radial-mask .aurora-background__aurora{mask-image:radial-gradient(ellipse at 100% 0%,black 10%,var(--transparent) 70%);-webkit-mask-image:radial-gradient(ellipse at 100% 0%,black 10%,var(--transparent) 70%)}@keyframes aurora-animation{0%{background-position:0% 50%,50% 50%}50%{background-position:100% 50%,50% 50%}to{background-position:0% 50%,50% 50%}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { c as m } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import '../../assets/components/aurora/Aurora.style.css';/* empty css */
|
|
4
|
+
const k = (i) => {
|
|
5
|
+
const a = m.c(11);
|
|
6
|
+
let r, o, e;
|
|
7
|
+
a[0] !== i ? ({
|
|
8
|
+
className: r,
|
|
9
|
+
showRadialGradient: e,
|
|
10
|
+
...o
|
|
11
|
+
} = i, a[0] = i, a[1] = r, a[2] = o, a[3] = e) : (r = a[1], o = a[2], e = a[3]);
|
|
12
|
+
const c = (e === void 0 ? !0 : e) && "aurora-background--radial-mask";
|
|
13
|
+
let s;
|
|
14
|
+
a[4] !== r || a[5] !== c ? (s = ["aurora-background", c, r].filter(Boolean), a[4] = r, a[5] = c, a[6] = s) : s = a[6];
|
|
15
|
+
const n = s.join(" ");
|
|
16
|
+
let t;
|
|
17
|
+
a[7] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ d("div", { className: "aurora-background__overlay", children: /* @__PURE__ */ d("div", { className: "aurora-background__aurora" }) }), a[7] = t) : t = a[7];
|
|
18
|
+
let l;
|
|
19
|
+
return a[8] !== o || a[9] !== n ? (l = /* @__PURE__ */ d("div", { className: n, ...o, children: t }), a[8] = o, a[9] = n, a[10] = l) : l = a[10], l;
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
k as AuroraBackground
|
|
23
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DataType, Flow, FlowSetting, FlowType, FunctionDefinition, LiteralValue, Maybe, NodeFunction, NodeParameter, NodeParameterValue, ReferenceValue, RuntimeParameterDefinition, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
import { ValidationResult } from '../../utils
|
|
1
|
+
import { DataType, Flow, FlowInput, FlowSetting, FlowSettingInput, FlowType, FunctionDefinition, LiteralValue, Maybe, NodeFunction, NodeFunctionInput, NodeParameter, NodeParameterInput, NodeParameterValue, ReferenceValue, RuntimeParameterDefinition, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
+
import { ValidationResult } from '../../utils';
|
|
3
3
|
export declare class FlowView {
|
|
4
4
|
/** Time when this Flow was created */
|
|
5
5
|
private readonly _createdAt?;
|
|
@@ -40,6 +40,7 @@ export declare class FlowView {
|
|
|
40
40
|
removeNode(nodeId: Scalars['NodeFunctionID']['output']): void;
|
|
41
41
|
getNodeById(nodeId: Scalars['NodeFunctionID']['output']): NodeFunctionView | undefined;
|
|
42
42
|
json(): Flow;
|
|
43
|
+
jsonInput(): FlowInput;
|
|
43
44
|
}
|
|
44
45
|
export declare class NodeFunctionView {
|
|
45
46
|
/** Time when this NodeFunction was created */
|
|
@@ -64,6 +65,7 @@ export declare class NodeFunctionView {
|
|
|
64
65
|
set nextNodeId(value: Maybe<Scalars["NodeFunctionID"]["output"]>);
|
|
65
66
|
deleteNextNode(): void;
|
|
66
67
|
json(): NodeFunction | undefined;
|
|
68
|
+
jsonInput(): NodeFunctionInput;
|
|
67
69
|
}
|
|
68
70
|
export declare class NodeParameterView {
|
|
69
71
|
/** Time when this NodeParameter was created */
|
|
@@ -87,6 +89,7 @@ export declare class NodeParameterView {
|
|
|
87
89
|
set validationResults(value: ValidationResult[]);
|
|
88
90
|
set value(value: NodeParameterValue | undefined);
|
|
89
91
|
json(): NodeParameter | undefined;
|
|
92
|
+
jsonInput(): NodeParameterInput;
|
|
90
93
|
}
|
|
91
94
|
export declare class FlowSettingView {
|
|
92
95
|
private readonly _createdAt?;
|
|
@@ -106,4 +109,5 @@ export declare class FlowSettingView {
|
|
|
106
109
|
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
107
110
|
set value(value: Maybe<Scalars["JSON"]["output"]>);
|
|
108
111
|
json(): FlowSetting;
|
|
112
|
+
jsonInput(): FlowSettingInput;
|
|
109
113
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function e(s, t, i) {
|
|
2
|
-
return (t =
|
|
2
|
+
return (t = r(t)) in s ? Object.defineProperty(s, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : s[t] = i, s;
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function r(s) {
|
|
5
5
|
var t = a(s, "string");
|
|
6
6
|
return typeof t == "symbol" ? t : t + "";
|
|
7
7
|
}
|
|
@@ -9,15 +9,15 @@ function a(s, t) {
|
|
|
9
9
|
if (typeof s != "object" || !s) return s;
|
|
10
10
|
var i = s[Symbol.toPrimitive];
|
|
11
11
|
if (i !== void 0) {
|
|
12
|
-
var
|
|
13
|
-
if (typeof
|
|
12
|
+
var d = i.call(s, t);
|
|
13
|
+
if (typeof d != "object") return d;
|
|
14
14
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
15
|
}
|
|
16
16
|
return (t === "string" ? String : Number)(s);
|
|
17
17
|
}
|
|
18
|
-
class
|
|
18
|
+
class o {
|
|
19
19
|
constructor(t) {
|
|
20
|
-
e(this, "_createdAt", void 0), e(this, "_id", void 0), e(this, "_inputType", void 0), e(this, "_nodes", void 0), e(this, "_returnType", void 0), e(this, "_settings", void 0), e(this, "_startingNodeId", void 0), e(this, "_type", void 0), e(this, "_updatedAt", void 0), e(this, "_name", void 0), this._createdAt = t.createdAt, this._id = t.id, this._inputType = t.inputType, this._nodes = t.nodes?.nodes?.map((i) => new
|
|
20
|
+
e(this, "_createdAt", void 0), e(this, "_id", void 0), e(this, "_inputType", void 0), e(this, "_nodes", void 0), e(this, "_returnType", void 0), e(this, "_settings", void 0), e(this, "_startingNodeId", void 0), e(this, "_type", void 0), e(this, "_updatedAt", void 0), e(this, "_name", void 0), this._createdAt = t.createdAt, this._id = t.id, this._inputType = t.inputType, this._nodes = t.nodes?.nodes?.map((i) => new n(i)), this._returnType = t.returnType, this._settings = t.settings?.nodes?.map((i) => new _(i)), this._startingNodeId = t.startingNodeId, this._type = t.type, this._updatedAt = t.updatedAt, this._name = t.name;
|
|
21
21
|
}
|
|
22
22
|
get createdAt() {
|
|
23
23
|
return this._createdAt;
|
|
@@ -90,10 +90,19 @@ class h {
|
|
|
90
90
|
name: this._name
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
+
jsonInput() {
|
|
94
|
+
return {
|
|
95
|
+
name: this._name,
|
|
96
|
+
nodes: this._nodes?.map((t) => t.jsonInput()),
|
|
97
|
+
settings: this._settings?.map((t) => t.jsonInput()),
|
|
98
|
+
startingNodeId: this._startingNodeId,
|
|
99
|
+
type: "gid://sagittarius/FlowType/1"
|
|
100
|
+
};
|
|
101
|
+
}
|
|
93
102
|
}
|
|
94
|
-
class
|
|
103
|
+
class n {
|
|
95
104
|
constructor(t) {
|
|
96
|
-
e(this, "_createdAt", void 0), e(this, "_id", void 0), e(this, "_nextNodeId", void 0), e(this, "_parameters", void 0), e(this, "_functionDefinition", void 0), e(this, "_updatedAt", void 0), this._createdAt = t.createdAt, this._id = t.id, this._nextNodeId = t.nextNodeId, this._functionDefinition = t.functionDefinition, this._updatedAt = t.updatedAt, this._parameters = t.parameters ? t.parameters.nodes?.map((i) => new
|
|
105
|
+
e(this, "_createdAt", void 0), e(this, "_id", void 0), e(this, "_nextNodeId", void 0), e(this, "_parameters", void 0), e(this, "_functionDefinition", void 0), e(this, "_updatedAt", void 0), this._createdAt = t.createdAt, this._id = t.id, this._nextNodeId = t.nextNodeId, this._functionDefinition = t.functionDefinition, this._updatedAt = t.updatedAt, this._parameters = t.parameters ? t.parameters.nodes?.map((i) => new u(i)) : void 0;
|
|
97
106
|
}
|
|
98
107
|
get createdAt() {
|
|
99
108
|
return this._createdAt;
|
|
@@ -132,10 +141,18 @@ class d {
|
|
|
132
141
|
updatedAt: this._updatedAt
|
|
133
142
|
};
|
|
134
143
|
}
|
|
144
|
+
jsonInput() {
|
|
145
|
+
return {
|
|
146
|
+
nextNodeId: this._nextNodeId,
|
|
147
|
+
id: this._id,
|
|
148
|
+
parameters: this._parameters ? this._parameters.map((t) => t.jsonInput()) : void 0,
|
|
149
|
+
runtimeFunctionId: this._functionDefinition?.runtimeFunctionDefinition?.id
|
|
150
|
+
};
|
|
151
|
+
}
|
|
135
152
|
}
|
|
136
|
-
class
|
|
153
|
+
class u {
|
|
137
154
|
constructor(t) {
|
|
138
|
-
e(this, "_createdAt", void 0), e(this, "_id", void 0), e(this, "_runtimeParameter", void 0), e(this, "_updatedAt", void 0), e(this, "_value", void 0), e(this, "_validationResults", void 0), this._createdAt = t.createdAt, this._id = t.id, this._runtimeParameter = t.runtimeParameter, this._updatedAt = t.updatedAt, t.value?.__typename === "NodeFunction" ? this._value = new
|
|
155
|
+
e(this, "_createdAt", void 0), e(this, "_id", void 0), e(this, "_runtimeParameter", void 0), e(this, "_updatedAt", void 0), e(this, "_value", void 0), e(this, "_validationResults", void 0), this._createdAt = t.createdAt, this._id = t.id, this._runtimeParameter = t.runtimeParameter, this._updatedAt = t.updatedAt, t.value?.__typename === "NodeFunction" ? this._value = new n(t.value) : this._value = t.value, this._validationResults = [];
|
|
139
156
|
}
|
|
140
157
|
get createdAt() {
|
|
141
158
|
return this._createdAt;
|
|
@@ -159,7 +176,7 @@ class _ {
|
|
|
159
176
|
this._validationResults = t;
|
|
160
177
|
}
|
|
161
178
|
set value(t) {
|
|
162
|
-
t?.__typename === "NodeFunction" ? this._value = new
|
|
179
|
+
t?.__typename === "NodeFunction" ? this._value = new n(t) : this._value = t;
|
|
163
180
|
}
|
|
164
181
|
json() {
|
|
165
182
|
return {
|
|
@@ -168,11 +185,23 @@ class _ {
|
|
|
168
185
|
id: this._id,
|
|
169
186
|
runtimeParameter: this._runtimeParameter,
|
|
170
187
|
updatedAt: this._updatedAt,
|
|
171
|
-
value: this._value instanceof
|
|
188
|
+
value: this._value instanceof n ? this._value.json() : this._value
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
jsonInput() {
|
|
192
|
+
return {
|
|
193
|
+
value: this._value instanceof n ? {
|
|
194
|
+
functionValue: this._value.jsonInput()
|
|
195
|
+
} : this._value?.__typename === "ReferenceValue" ? {
|
|
196
|
+
referenceValue: this._value
|
|
197
|
+
} : {
|
|
198
|
+
literalValue: this._value
|
|
199
|
+
},
|
|
200
|
+
runtimeParameterDefinitionId: this.runtimeParameter?.id
|
|
172
201
|
};
|
|
173
202
|
}
|
|
174
203
|
}
|
|
175
|
-
class
|
|
204
|
+
class _ {
|
|
176
205
|
constructor(t) {
|
|
177
206
|
e(this, "_createdAt", void 0), e(this, "_flowSettingIdentifier", void 0), e(this, "_id", void 0), e(this, "_updatedAt", void 0), e(this, "_value", void 0), this._createdAt = t.createdAt, this._flowSettingIdentifier = t.flowSettingIdentifier, this._id = t.id, this._value = t.value, this._updatedAt = t.updatedAt;
|
|
178
207
|
}
|
|
@@ -204,10 +233,16 @@ class u {
|
|
|
204
233
|
updatedAt: this._updatedAt
|
|
205
234
|
};
|
|
206
235
|
}
|
|
236
|
+
jsonInput() {
|
|
237
|
+
return {
|
|
238
|
+
value: this.value,
|
|
239
|
+
flowSettingIdentifier: this.flowSettingIdentifier
|
|
240
|
+
};
|
|
241
|
+
}
|
|
207
242
|
}
|
|
208
243
|
export {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
244
|
+
_ as FlowSettingView,
|
|
245
|
+
o as FlowView,
|
|
246
|
+
n as NodeFunctionView,
|
|
247
|
+
u as NodeParameterView
|
|
213
248
|
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useViewport as
|
|
4
|
-
import { ButtonGroup as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { IconPlus as
|
|
1
|
+
import { jsx as o, jsxs as k } from "react/jsx-runtime";
|
|
2
|
+
import { c as j } from "../../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { useViewport as D, useReactFlow as M, Panel as O } from "@xyflow/react";
|
|
4
|
+
import { ButtonGroup as R } from "../../button-group/ButtonGroup.js";
|
|
5
|
+
import { Button as B } from "../../button/Button.js";
|
|
6
|
+
import { IconPlus as V, IconMinus as E, IconFocusCentered as G } from "@tabler/icons-react";
|
|
7
7
|
import { Badge as Z } from "../../badge/Badge.js";
|
|
8
|
-
import { Flex as
|
|
8
|
+
import { Flex as P } from "../../flex/Flex.js";
|
|
9
9
|
const Q = () => {
|
|
10
|
-
const e =
|
|
11
|
-
let d;
|
|
12
|
-
e[0] !== t ? (d = () => {
|
|
13
|
-
t.zoomIn();
|
|
14
|
-
}, e[0] = t, e[1] = d) : d = e[1];
|
|
15
|
-
const C = d;
|
|
10
|
+
const e = j.c(37), w = D(), t = M();
|
|
16
11
|
let p;
|
|
17
|
-
e[
|
|
12
|
+
e[0] !== t ? (p = () => {
|
|
13
|
+
t.zoomIn();
|
|
14
|
+
}, e[0] = t, e[1] = p) : p = e[1];
|
|
15
|
+
const C = p;
|
|
16
|
+
let d;
|
|
17
|
+
e[2] !== t ? (d = () => {
|
|
18
18
|
t.zoomOut();
|
|
19
|
-
}, e[2] = t, e[3] =
|
|
20
|
-
const I =
|
|
21
|
-
let
|
|
22
|
-
e[4] !== t ? (
|
|
19
|
+
}, e[2] = t, e[3] = d) : d = e[3];
|
|
20
|
+
const I = d;
|
|
21
|
+
let y;
|
|
22
|
+
e[4] !== t ? (y = () => {
|
|
23
23
|
t.fitView();
|
|
24
|
-
}, e[4] = t, e[5] =
|
|
25
|
-
const F =
|
|
24
|
+
}, e[4] = t, e[5] = y) : y = e[5];
|
|
25
|
+
const F = y;
|
|
26
|
+
let h;
|
|
27
|
+
e[6] !== w.zoom ? (h = () => Math.round(w.zoom * 100), e[6] = w.zoom, e[7] = h) : h = e[7];
|
|
28
|
+
const v = h;
|
|
26
29
|
let u;
|
|
27
|
-
e[
|
|
28
|
-
const k = u;
|
|
29
|
-
let y;
|
|
30
|
-
e[8] === Symbol.for("react.memo_cache_sentinel") ? (y = {
|
|
30
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
31
31
|
flexDirection: "column",
|
|
32
32
|
gap: "1rem"
|
|
33
|
-
}, e[8] =
|
|
33
|
+
}, e[8] = u) : u = e[8];
|
|
34
34
|
let z;
|
|
35
35
|
e[9] === Symbol.for("react.memo_cache_sentinel") ? (z = {
|
|
36
36
|
gap: ".7rem"
|
|
@@ -38,40 +38,40 @@ const Q = () => {
|
|
|
38
38
|
let l;
|
|
39
39
|
e[10] !== C ? (l = () => C(), e[10] = C, e[11] = l) : l = e[11];
|
|
40
40
|
let x;
|
|
41
|
-
e[12] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ o(
|
|
41
|
+
e[12] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ o(V, { size: 15 }), e[12] = x) : x = e[12];
|
|
42
|
+
let n;
|
|
43
|
+
e[13] !== l ? (n = /* @__PURE__ */ o(B, { py: "0", paddingSize: "xxs", variant: "none", color: "secondary", onClick: l, children: x }), e[13] = l, e[14] = n) : n = e[14];
|
|
42
44
|
let i;
|
|
43
|
-
e[
|
|
44
|
-
let r;
|
|
45
|
-
e[15] !== I ? (r = () => I(), e[15] = I, e[16] = r) : r = e[16];
|
|
45
|
+
e[15] !== I ? (i = () => I(), e[15] = I, e[16] = i) : i = e[16];
|
|
46
46
|
let _;
|
|
47
47
|
e[17] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ o(E, { size: 15 }), e[17] = _) : _ = e[17];
|
|
48
|
-
let
|
|
49
|
-
e[18] !==
|
|
48
|
+
let r;
|
|
49
|
+
e[18] !== i ? (r = /* @__PURE__ */ o(B, { py: "0", paddingSize: "xxs", variant: "none", color: "secondary", onClick: i, children: _ }), e[18] = i, e[19] = r) : r = e[19];
|
|
50
50
|
let c;
|
|
51
51
|
e[20] !== F ? (c = () => F(), e[20] = F, e[21] = c) : c = e[21];
|
|
52
52
|
let S;
|
|
53
53
|
e[22] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ o(G, { size: 15 }), e[22] = S) : S = e[22];
|
|
54
54
|
let s;
|
|
55
|
-
e[23] !== c ? (s = /* @__PURE__ */ o(
|
|
55
|
+
e[23] !== c ? (s = /* @__PURE__ */ o(B, { py: "0", paddingSize: "xxs", variant: "none", color: "secondary", onClick: c, children: S }), e[23] = c, e[24] = s) : s = e[24];
|
|
56
56
|
let m;
|
|
57
|
-
e[25] !==
|
|
58
|
-
i,
|
|
57
|
+
e[25] !== r || e[26] !== s || e[27] !== n ? (m = /* @__PURE__ */ k(R, { children: [
|
|
59
58
|
n,
|
|
59
|
+
r,
|
|
60
60
|
s
|
|
61
|
-
] }), e[25] =
|
|
61
|
+
] }), e[25] = r, e[26] = s, e[27] = n, e[28] = m) : m = e[28];
|
|
62
62
|
let b;
|
|
63
63
|
e[29] === Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
64
64
|
border: "none"
|
|
65
65
|
}, e[29] = b) : b = e[29];
|
|
66
66
|
let f;
|
|
67
|
-
e[30] !==
|
|
67
|
+
e[30] !== v ? (f = v(), e[30] = v, e[31] = f) : f = e[31];
|
|
68
68
|
let a;
|
|
69
|
-
e[32] !== f ? (a = /* @__PURE__ */
|
|
69
|
+
e[32] !== f ? (a = /* @__PURE__ */ k(Z, { color: "primary", style: b, children: [
|
|
70
70
|
f,
|
|
71
71
|
"%"
|
|
72
72
|
] }), e[32] = f, e[33] = a) : a = e[33];
|
|
73
73
|
let g;
|
|
74
|
-
return e[34] !== m || e[35] !== a ? (g = /* @__PURE__ */ o(
|
|
74
|
+
return e[34] !== m || e[35] !== a ? (g = /* @__PURE__ */ o(O, { position: "bottom-left", children: /* @__PURE__ */ o(P, { style: u, children: /* @__PURE__ */ k(P, { align: "center", style: z, children: [
|
|
75
75
|
m,
|
|
76
76
|
a
|
|
77
77
|
] }) }) }), e[34] = m, e[35] = a, e[36] = g) : g = e[36], g;
|
|
@@ -62,7 +62,7 @@ class l extends s {
|
|
|
62
62
|
} : n && n.variant == "RETURN_TYPE" && t.variant === "NODE" ? {
|
|
63
63
|
sourceDataTypeIdentifiers: [this.getTypeFromValue(e, i)],
|
|
64
64
|
target: a
|
|
65
|
-
} : n && n.variant == "
|
|
65
|
+
} : n && n.variant == "INPUT_TYPES" && t.variant === "NODE" ? {
|
|
66
66
|
sourceDataTypeIdentifiers: [{
|
|
67
67
|
genericKey: a
|
|
68
68
|
}],
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import i from "react";
|
|
3
|
+
import { Panel as u } from "@xyflow/react";
|
|
4
|
+
import { useService as w, useStore as b } from "../../../utils/contextStore.js";
|
|
5
|
+
import "merge-props";
|
|
6
|
+
import { DFlowReactiveService as l } from "../DFlow.service.js";
|
|
7
|
+
import { Button as j } from "../../button/Button.js";
|
|
8
|
+
const k = (s) => {
|
|
9
|
+
const {
|
|
10
|
+
flowId: r
|
|
11
|
+
} = s, p = w(l), m = b(l), t = i.useMemo(() => p.getById(r), [m, r]), a = i.useCallback(() => {
|
|
12
|
+
if (!t) return;
|
|
13
|
+
const e = t.jsonInput?.();
|
|
14
|
+
if (!e) return;
|
|
15
|
+
const f = typeof e == "string" ? e : JSON.stringify(e, null, 2), d = new Blob([f], {
|
|
16
|
+
type: "application/json"
|
|
17
|
+
}), n = URL.createObjectURL(d), o = document.createElement("a");
|
|
18
|
+
o.href = n, o.download = `flow-${t.name}.json`, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(n);
|
|
19
|
+
}, [t]);
|
|
20
|
+
return /* @__PURE__ */ c(u, { position: "top-right", children: /* @__PURE__ */ c(j, { paddingSize: "xxs", onClick: a, children: "Export flow" }) });
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
k as DFlowExport
|
|
24
|
+
};
|
|
@@ -101,7 +101,7 @@ const ie = (i, p, s, g = 0, u = [0], T = 1, v = [f.REF_OBJECT, f.VALUE, f.FUNCTI
|
|
|
101
101
|
for (const n of a.parameterDefinitions) {
|
|
102
102
|
const e = p.getDataType(n.dataTypeIdentifier);
|
|
103
103
|
if (!e || e.variant === "NODE") continue;
|
|
104
|
-
const t = e.rules?.nodes?.filter((c) => c?.variant === "
|
|
104
|
+
const t = e.rules?.nodes?.filter((c) => c?.variant === "INPUT_TYPES") ?? [];
|
|
105
105
|
if (t.length) {
|
|
106
106
|
const d = r.parameters.find((F) => F.id === n.id)?.value, _ = d !== void 0 ? d instanceof D ? [d.json()] : [d] : [];
|
|
107
107
|
for (const F of t) {
|
|
@@ -25,7 +25,7 @@ export declare class FlowTypeView {
|
|
|
25
25
|
get descriptions(): Maybe<TranslationConnection> | undefined;
|
|
26
26
|
get editable(): Maybe<Scalars["Boolean"]["output"]> | undefined;
|
|
27
27
|
get flowTypeSettings(): Maybe<Array<FlowTypeSetting>> | undefined;
|
|
28
|
-
get id(): Maybe<Scalars["
|
|
28
|
+
get id(): Maybe<Scalars["FlowTypeID"]["output"]> | undefined;
|
|
29
29
|
get identifier(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
30
30
|
get inputType(): Maybe<DataType> | undefined;
|
|
31
31
|
get names(): Maybe<TranslationConnection> | undefined;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TextInputProps } from '../form';
|
|
3
|
+
import { DUserView } from './DUser.view';
|
|
3
4
|
export interface DUserInputProps extends TextInputProps {
|
|
5
|
+
filter?: (user: DUserView, index: number) => boolean;
|
|
4
6
|
}
|
|
5
7
|
export declare const DUserInput: React.FC<DUserInputProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import x from "react";
|
|
3
3
|
import "../../_virtual/compiler-runtime.js";
|
|
4
4
|
import "@radix-ui/react-checkbox";
|
|
5
5
|
import "merge-props";
|
|
6
|
-
import { IconArrowUp as
|
|
6
|
+
import { IconArrowUp as S, IconArrowDown as b, IconCornerDownLeft as I } from "@tabler/icons-react";
|
|
7
7
|
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
8
8
|
import "../form/EmailInput.js";
|
|
9
9
|
import "../form/Input.js";
|
|
@@ -13,18 +13,19 @@ import "../form/PasswordInput.js";
|
|
|
13
13
|
import "@radix-ui/react-one-time-password-field";
|
|
14
14
|
import "@radix-ui/react-radio-group";
|
|
15
15
|
import "../form/SwitchInput.js";
|
|
16
|
-
import { TextInput as
|
|
16
|
+
import { TextInput as L } from "../form/TextInput.js";
|
|
17
17
|
import { Badge as m } from "../badge/Badge.js";
|
|
18
18
|
import { Text as l } from "../text/Text.js";
|
|
19
|
-
import { useService as
|
|
19
|
+
import { useService as U, useStore as D } from "../../utils/contextStore.js";
|
|
20
20
|
import { DUserReactiveService as g } from "./DUser.service.js";
|
|
21
|
-
import { MenuLabel as
|
|
21
|
+
import { MenuLabel as w, MenuItem as z } from "../menu/Menu.js";
|
|
22
22
|
import { Flex as s } from "../flex/Flex.js";
|
|
23
|
-
import { Spacing as
|
|
24
|
-
const
|
|
23
|
+
import { Spacing as B } from "../spacing/Spacing.js";
|
|
24
|
+
const P = (p) => {
|
|
25
25
|
const {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
filter: h = () => !0,
|
|
27
|
+
...d
|
|
28
|
+
} = p, u = U(g), f = D(g), y = x.useMemo(() => u.values().filter(h).map((r) => ({
|
|
28
29
|
value: r.username || "",
|
|
29
30
|
children: /* @__PURE__ */ o(s, { align: "end", style: {
|
|
30
31
|
gap: "0.35rem"
|
|
@@ -35,31 +36,31 @@ const $ = (p) => {
|
|
|
35
36
|
insertMode: "insert",
|
|
36
37
|
valueData: r,
|
|
37
38
|
groupBy: "Users"
|
|
38
|
-
})), [
|
|
39
|
-
return /* @__PURE__ */ e(
|
|
39
|
+
})), [f]);
|
|
40
|
+
return /* @__PURE__ */ e(L, { placeholder: "Enter users", suggestionsEmptyState: /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(l, { children: "No user found" }) }), onLastTokenChange: (r) => {
|
|
40
41
|
u.getByUsername(r);
|
|
41
|
-
}, suggestionsFooter: /* @__PURE__ */ e(
|
|
42
|
+
}, suggestionsFooter: /* @__PURE__ */ e(w, { children: /* @__PURE__ */ o(s, { style: {
|
|
42
43
|
gap: ".35rem"
|
|
43
44
|
}, children: [
|
|
44
45
|
/* @__PURE__ */ o(s, { align: "center", style: {
|
|
45
46
|
gap: "0.35rem"
|
|
46
47
|
}, children: [
|
|
47
48
|
/* @__PURE__ */ o(s, { children: [
|
|
48
|
-
/* @__PURE__ */ e(m, { border: !0, children: /* @__PURE__ */ e(
|
|
49
|
-
/* @__PURE__ */ e(m, { border: !0, children: /* @__PURE__ */ e(
|
|
49
|
+
/* @__PURE__ */ e(m, { border: !0, children: /* @__PURE__ */ e(S, { size: 12 }) }),
|
|
50
|
+
/* @__PURE__ */ e(m, { border: !0, children: /* @__PURE__ */ e(b, { size: 12 }) })
|
|
50
51
|
] }),
|
|
51
52
|
"move"
|
|
52
53
|
] }),
|
|
53
|
-
/* @__PURE__ */ e(
|
|
54
|
+
/* @__PURE__ */ e(B, { spacing: "xxs" }),
|
|
54
55
|
/* @__PURE__ */ o(s, { align: "center", style: {
|
|
55
56
|
gap: ".35rem"
|
|
56
57
|
}, children: [
|
|
57
|
-
/* @__PURE__ */ e(m, { border: !0, children: /* @__PURE__ */ e(
|
|
58
|
+
/* @__PURE__ */ e(m, { border: !0, children: /* @__PURE__ */ e(I, { size: 12 }) }),
|
|
58
59
|
"insert"
|
|
59
60
|
] })
|
|
60
61
|
] }) }), filterSuggestionsByLastToken: !0, enforceUniqueSuggestions: !0, transformSyntax: (r, a = []) => {
|
|
61
62
|
let t = 0;
|
|
62
|
-
return a.map((i,
|
|
63
|
+
return a.map((i, v) => {
|
|
63
64
|
if (typeof i == "object") {
|
|
64
65
|
const c = {
|
|
65
66
|
type: "block",
|
|
@@ -77,7 +78,7 @@ const $ = (p) => {
|
|
|
77
78
|
}
|
|
78
79
|
const n = i ?? "";
|
|
79
80
|
if (n.length) {
|
|
80
|
-
if (
|
|
81
|
+
if (v == a.length - 1) {
|
|
81
82
|
const c = {
|
|
82
83
|
type: "text",
|
|
83
84
|
start: t,
|
|
@@ -90,8 +91,8 @@ const $ = (p) => {
|
|
|
90
91
|
return t += n.length, {};
|
|
91
92
|
}
|
|
92
93
|
});
|
|
93
|
-
}, ...
|
|
94
|
+
}, ...d, suggestions: y });
|
|
94
95
|
};
|
|
95
96
|
export {
|
|
96
|
-
|
|
97
|
+
P as DUserInput
|
|
97
98
|
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,262 +1,264 @@
|
|
|
1
1
|
import { Alert as m } from "./components/alert/Alert.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
2
|
+
import { AuroraBackground as n } from "./components/aurora/Aurora.js";
|
|
3
|
+
import { Avatar as f } from "./components/avatar/Avatar.js";
|
|
4
|
+
import { Badge as c } from "./components/badge/Badge.js";
|
|
5
|
+
import { Breadcrumb as u } from "./components/breadcrumb/Breadcrumb.js";
|
|
6
|
+
import { Button as g } from "./components/button/Button.js";
|
|
7
|
+
import { ButtonGroup as d } from "./components/button-group/ButtonGroup.js";
|
|
8
|
+
import { Card as v } from "./components/card/Card.js";
|
|
9
|
+
import { Col as F } from "./components/col/Col.js";
|
|
10
|
+
import { Command as I, CommandDialog as T, CommandEmpty as b, CommandGroup as N, CommandInput as M, CommandItem as P, CommandList as V, CommandSeparator as A, CommandShortcut as L } from "./components/command/Command.js";
|
|
11
|
+
import { Container as O } from "./components/container/Container.js";
|
|
12
|
+
import { FlowSettingView as G, FlowView as j, NodeFunctionView as z, NodeParameterView as B } from "./components/d-flow/DFlow.view.js";
|
|
13
|
+
import { DFlowReactiveService as E } from "./components/d-flow/DFlow.service.js";
|
|
14
|
+
import { FLOW_EDGE_RAINBOW as W, useFlowEdges as k } from "./components/d-flow/DFlow.edges.hook.js";
|
|
15
|
+
import { useFlowNodes as Q } from "./components/d-flow/DFlow.nodes.hook.js";
|
|
16
|
+
import { DFlow as J } from "./components/d-flow/DFlow.js";
|
|
17
|
+
import { DFlowControl as X } from "./components/d-flow/control/DFlowControl.js";
|
|
18
|
+
import { DFlowDataTypeReactiveService as Z } from "./components/d-flow/data-type/DFlowDataType.service.js";
|
|
19
|
+
import { DataTypeView as ee } from "./components/d-flow/data-type/DFlowDataType.view.js";
|
|
20
|
+
import { DFlowFolder as re, DFlowFolderGroup as te, DFlowFolderItem as pe } from "./components/d-flow/folder/DFlowFolder.js";
|
|
21
|
+
import { DFlowFunctionReactiveService as me } from "./components/d-flow/function/DFlowFunction.service.js";
|
|
22
|
+
import { FunctionDefinitionView as ne, ParameterDefinitionView as xe } from "./components/d-flow/function/DFlowFunction.view.js";
|
|
23
|
+
import { DFlowMiniMap as le } from "./components/d-flow/minimap/DFlowMiniMap.js";
|
|
24
|
+
import { DFlowReactiveSuggestionService as se } from "./components/d-flow/suggestion/DFlowSuggestion.service.js";
|
|
25
|
+
import { DFlowSuggestion as De, DFlowSuggestionType as ge } from "./components/d-flow/suggestion/DFlowSuggestion.view.js";
|
|
26
|
+
import { DFlowTypeReactiveService as de } from "./components/d-flow/type/DFlowType.service.js";
|
|
27
|
+
import { FlowTypeView as ve } from "./components/d-flow/type/DFlowType.view.js";
|
|
28
|
+
import { useDFlowValidations as Fe } from "./components/d-flow/validation/DFlowValidation.hook.js";
|
|
29
|
+
import { DFlowValidation as Ie } from "./components/d-flow/validation/DFlowValidation.js";
|
|
30
|
+
import { DFullScreen as be } from "./components/d-fullscreen/DFullScreen.js";
|
|
31
|
+
import { DLayout as Me } from "./components/d-layout/DLayout.js";
|
|
32
|
+
import { DNamespaceLicenseReactiveService as Ve } from "./components/d-license/DNamespaceLicense.service.js";
|
|
33
|
+
import { DNamespaceLicenseView as Le } from "./components/d-license/DNamespaceLicense.view.js";
|
|
34
|
+
import { DNamespaceMemberReactiveService as Oe } from "./components/d-member/DNamespaceMember.service.js";
|
|
35
|
+
import { DNamespaceMemberView as Ge } from "./components/d-member/DNamespaceMember.view.js";
|
|
36
|
+
import { DNamespaceMemberCard as ze } from "./components/d-member/DNamespaceMemberCard.js";
|
|
37
|
+
import { DNamespaceMemberList as he } from "./components/d-member/DNamespaceMemberList.js";
|
|
38
|
+
import { DNamespaceReactiveService as He } from "./components/d-namespace/DNamespace.service.js";
|
|
39
|
+
import { DNamespaceView as ke } from "./components/d-namespace/DNamespace.view.js";
|
|
40
|
+
import { DOrganizationReactiveService as Qe } from "./components/d-organization/DOrganization.service.js";
|
|
41
|
+
import { DOrganizationView as Je } from "./components/d-organization/DOrganization.view.js";
|
|
41
42
|
import "react/jsx-runtime";
|
|
42
43
|
import "./_virtual/compiler-runtime.js";
|
|
43
44
|
import "react";
|
|
44
|
-
import { ContextStore as
|
|
45
|
-
import { InspectionSeverity as
|
|
46
|
-
import { NonReactiveArrayService as
|
|
47
|
-
import { ObjectService as
|
|
48
|
-
import { ReactiveArrayService as
|
|
49
|
-
import { Colors as
|
|
50
|
-
import { getChild as
|
|
51
|
-
import { Text as
|
|
45
|
+
import { ContextStore as Xe, ContextStoreProvider as Ye, useService as Ze, useStore as $e } from "./utils/contextStore.js";
|
|
46
|
+
import { InspectionSeverity as oo } from "./utils/inspection.js";
|
|
47
|
+
import { NonReactiveArrayService as to, createNonReactiveArrayService as po } from "./utils/nonReactiveArrayService.js";
|
|
48
|
+
import { ObjectService as mo, createObjectService as ao } from "./utils/objectStore.js";
|
|
49
|
+
import { ReactiveArrayService as xo, useReactiveArrayService as fo } from "./utils/reactiveArrayService.js";
|
|
50
|
+
import { Colors as co } from "./utils/types.js";
|
|
51
|
+
import { getChild as uo, getContent as Do, getPositionAroundTarget as go, getPositioning as So, getWindowPositioning as wo, mergeCode0Props as vo, parseUnit as Co } from "./utils/utils.js";
|
|
52
|
+
import { Text as Ro } from "./components/text/Text.js";
|
|
52
53
|
import "@tabler/icons-react";
|
|
53
|
-
import { Flex as
|
|
54
|
-
import { Spacing as
|
|
55
|
-
import { DUserReactiveService as
|
|
56
|
-
import { DUserView as
|
|
57
|
-
import { Menu as
|
|
58
|
-
import { DUserCard as
|
|
59
|
-
import { DUserList as
|
|
60
|
-
import { DUserInput as
|
|
61
|
-
import { setUserSession as
|
|
62
|
-
import { DOrganizationList as
|
|
63
|
-
import { DNamespaceProjectReactiveService as
|
|
64
|
-
import { DNamespaceProjectView as
|
|
65
|
-
import { DNamespaceProjectCard as
|
|
66
|
-
import { DNamespaceProjectList as
|
|
67
|
-
import { DResizableHandle as
|
|
68
|
-
import { DNamespaceRoleReactiveService as
|
|
69
|
-
import { DNamespaceRoleView as
|
|
70
|
-
import { DNamespaceRoleList as
|
|
71
|
-
import { DNamespaceRoleCard as
|
|
72
|
-
import { DRuntimeReactiveService as
|
|
73
|
-
import { DRuntimeView as
|
|
74
|
-
import { DRuntimeCard as
|
|
75
|
-
import { DRuntimeList as
|
|
76
|
-
import { Dialog as
|
|
77
|
-
import { CheckboxInput as
|
|
78
|
-
import { EmailInput as
|
|
79
|
-
import { Input as
|
|
80
|
-
import { InputDescription as
|
|
81
|
-
import { InputLabel as
|
|
82
|
-
import { InputMessage as
|
|
83
|
-
import { InputSuggestionMenuContent as
|
|
84
|
-
import { NumberInput as
|
|
85
|
-
import { PasswordInput as
|
|
86
|
-
import { PinInput as
|
|
87
|
-
import { RadioGroup as
|
|
88
|
-
import { RadioInput as
|
|
89
|
-
import { SwitchInput as
|
|
90
|
-
import { TextInput as
|
|
91
|
-
import { useForm as
|
|
92
|
-
import { Quote as
|
|
93
|
-
import { Row as
|
|
94
|
-
import { ScrollArea as
|
|
95
|
-
import { SegmentedControl as
|
|
96
|
-
import { Tab as
|
|
97
|
-
import { Toast as
|
|
98
|
-
import { Tooltip as
|
|
54
|
+
import { Flex as To } from "./components/flex/Flex.js";
|
|
55
|
+
import { Spacing as No } from "./components/spacing/Spacing.js";
|
|
56
|
+
import { DUserReactiveService as Po } from "./components/d-user/DUser.service.js";
|
|
57
|
+
import { DUserView as Ao } from "./components/d-user/DUser.view.js";
|
|
58
|
+
import { Menu as yo, MenuArrow as Oo, MenuContent as Uo, MenuGroup as Go, MenuItem as jo, MenuLabel as zo, MenuPortal as Bo, MenuSeparator as ho, MenuSub as Eo, MenuSubContent as Ho, MenuSubTrigger as Wo, MenuTrigger as ko } from "./components/menu/Menu.js";
|
|
59
|
+
import { DUserCard as Qo } from "./components/d-user/DUserCard.js";
|
|
60
|
+
import { DUserList as Jo } from "./components/d-user/DUserList.js";
|
|
61
|
+
import { DUserInput as Xo } from "./components/d-user/DUserInput.js";
|
|
62
|
+
import { setUserSession as Zo, useUserSession as $o } from "./components/d-user/DUser.session.hook.js";
|
|
63
|
+
import { DOrganizationList as or } from "./components/d-organization/DOrganizationList.js";
|
|
64
|
+
import { DNamespaceProjectReactiveService as tr } from "./components/d-project/DNamespaceProject.service.js";
|
|
65
|
+
import { DNamespaceProjectView as ir } from "./components/d-project/DNamespaceProject.view.js";
|
|
66
|
+
import { DNamespaceProjectCard as ar } from "./components/d-project/DNamespaceProjectCard.js";
|
|
67
|
+
import { DNamespaceProjectList as xr } from "./components/d-project/DNamespaceProjectList.js";
|
|
68
|
+
import { DResizableHandle as lr, DResizablePanel as cr, DResizablePanelGroup as sr } from "./components/d-resizable/DResizable.js";
|
|
69
|
+
import { DNamespaceRoleReactiveService as Dr } from "./components/d-role/DNamespaceRole.service.js";
|
|
70
|
+
import { DNamespaceRoleView as Sr } from "./components/d-role/DNamespaceRole.view.js";
|
|
71
|
+
import { DNamespaceRoleList as wr } from "./components/d-role/DNamespaceRoleList.js";
|
|
72
|
+
import { DNamespaceRoleCard as Cr } from "./components/d-role/DNamespaceRoleCard.js";
|
|
73
|
+
import { DRuntimeReactiveService as Rr } from "./components/d-runtime/DRuntime.service.js";
|
|
74
|
+
import { DRuntimeView as Tr } from "./components/d-runtime/DRuntime.view.js";
|
|
75
|
+
import { DRuntimeCard as Nr } from "./components/d-runtime/DRuntimeCard.js";
|
|
76
|
+
import { DRuntimeList as Pr } from "./components/d-runtime/DRuntimeList.js";
|
|
77
|
+
import { Dialog as Ar, DialogClose as Lr, DialogContent as yr, DialogDescription as Or, DialogFooter as Ur, DialogHeader as Gr, DialogOverlay as jr, DialogPortal as zr, DialogTitle as Br, DialogTrigger as hr } from "./components/dialog/Dialog.js";
|
|
78
|
+
import { CheckboxInput as Hr } from "./components/form/CheckboxInput.js";
|
|
79
|
+
import { EmailInput as kr, emailValidation as _r } from "./components/form/EmailInput.js";
|
|
80
|
+
import { Input as qr } from "./components/form/Input.js";
|
|
81
|
+
import { InputDescription as Kr } from "./components/form/InputDescription.js";
|
|
82
|
+
import { InputLabel as Yr } from "./components/form/InputLabel.js";
|
|
83
|
+
import { InputMessage as $r } from "./components/form/InputMessage.js";
|
|
84
|
+
import { InputSuggestionMenuContent as ot, InputSuggestionMenuContentItems as rt } from "./components/form/InputSuggestion.js";
|
|
85
|
+
import { NumberInput as pt } from "./components/form/NumberInput.js";
|
|
86
|
+
import { PasswordInput as mt } from "./components/form/PasswordInput.js";
|
|
87
|
+
import { PinInput as nt, PinInputField as xt, PinInputHiddenField as ft } from "./components/form/PinInput.js";
|
|
88
|
+
import { RadioGroup as ct } from "./components/form/RadioGroup.js";
|
|
89
|
+
import { RadioInput as ut } from "./components/form/RadioInput.js";
|
|
90
|
+
import { SwitchInput as gt } from "./components/form/SwitchInput.js";
|
|
91
|
+
import { TextInput as dt } from "./components/form/TextInput.js";
|
|
92
|
+
import { useForm as vt } from "./components/form/useForm.js";
|
|
93
|
+
import { Quote as Ft } from "./components/quote/Quote.js";
|
|
94
|
+
import { Row as It } from "./components/row/Row.js";
|
|
95
|
+
import { ScrollArea as bt, ScrollAreaCorner as Nt, ScrollAreaScrollbar as Mt, ScrollAreaThumb as Pt, ScrollAreaViewport as Vt } from "./components/scroll-area/ScrollArea.js";
|
|
96
|
+
import { SegmentedControl as Lt, SegmentedControlItem as yt } from "./components/segmented-control/SegmentedControl.js";
|
|
97
|
+
import { Tab as Ut, TabContent as Gt, TabList as jt, TabTrigger as zt } from "./components/tab/Tab.js";
|
|
98
|
+
import { Toast as ht, toast as Et } from "./components/toast/Toast.js";
|
|
99
|
+
import { Tooltip as Wt, TooltipArrow as kt, TooltipContent as _t, TooltipPortal as Qt, TooltipTrigger as qt } from "./components/tooltip/Tooltip.js";
|
|
99
100
|
export {
|
|
100
101
|
m as Alert,
|
|
101
|
-
n as
|
|
102
|
-
f as
|
|
103
|
-
c as
|
|
104
|
-
u as
|
|
105
|
-
g as
|
|
106
|
-
d as
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
L as
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
J as
|
|
124
|
-
X as
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
se as
|
|
133
|
-
|
|
134
|
-
ge as
|
|
135
|
-
|
|
136
|
-
Ie as
|
|
137
|
-
be as
|
|
138
|
-
Me as
|
|
139
|
-
Ve as
|
|
140
|
-
|
|
141
|
-
ze as
|
|
142
|
-
|
|
143
|
-
Oe as
|
|
144
|
-
|
|
145
|
-
ar as
|
|
146
|
-
|
|
147
|
-
tr as
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
Dr as
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
Qe as
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
Nr as
|
|
162
|
-
|
|
163
|
-
Rr as
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
Po as
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
qr as
|
|
189
|
-
Kr as
|
|
190
|
-
Yr as
|
|
191
|
-
$r as
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
ho as
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
mt as
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
ct as
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
It as
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
Vt as
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
_t as
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
po as
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
102
|
+
n as AuroraBackground,
|
|
103
|
+
f as Avatar,
|
|
104
|
+
c as Badge,
|
|
105
|
+
u as Breadcrumb,
|
|
106
|
+
g as Button,
|
|
107
|
+
d as ButtonGroup,
|
|
108
|
+
v as Card,
|
|
109
|
+
Hr as CheckboxInput,
|
|
110
|
+
F as Col,
|
|
111
|
+
co as Colors,
|
|
112
|
+
I as Command,
|
|
113
|
+
T as CommandDialog,
|
|
114
|
+
b as CommandEmpty,
|
|
115
|
+
N as CommandGroup,
|
|
116
|
+
M as CommandInput,
|
|
117
|
+
P as CommandItem,
|
|
118
|
+
V as CommandList,
|
|
119
|
+
A as CommandSeparator,
|
|
120
|
+
L as CommandShortcut,
|
|
121
|
+
O as Container,
|
|
122
|
+
Xe as ContextStore,
|
|
123
|
+
Ye as ContextStoreProvider,
|
|
124
|
+
J as DFlow,
|
|
125
|
+
X as DFlowControl,
|
|
126
|
+
Z as DFlowDataTypeReactiveService,
|
|
127
|
+
re as DFlowFolder,
|
|
128
|
+
te as DFlowFolderGroup,
|
|
129
|
+
pe as DFlowFolderItem,
|
|
130
|
+
me as DFlowFunctionReactiveService,
|
|
131
|
+
le as DFlowMiniMap,
|
|
132
|
+
E as DFlowReactiveService,
|
|
133
|
+
se as DFlowReactiveSuggestionService,
|
|
134
|
+
De as DFlowSuggestion,
|
|
135
|
+
ge as DFlowSuggestionType,
|
|
136
|
+
de as DFlowTypeReactiveService,
|
|
137
|
+
Ie as DFlowValidation,
|
|
138
|
+
be as DFullScreen,
|
|
139
|
+
Me as DLayout,
|
|
140
|
+
Ve as DNamespaceLicenseReactiveService,
|
|
141
|
+
Le as DNamespaceLicenseView,
|
|
142
|
+
ze as DNamespaceMemberCard,
|
|
143
|
+
he as DNamespaceMemberList,
|
|
144
|
+
Oe as DNamespaceMemberReactiveService,
|
|
145
|
+
Ge as DNamespaceMemberView,
|
|
146
|
+
ar as DNamespaceProjectCard,
|
|
147
|
+
xr as DNamespaceProjectList,
|
|
148
|
+
tr as DNamespaceProjectReactiveService,
|
|
149
|
+
ir as DNamespaceProjectView,
|
|
150
|
+
He as DNamespaceReactiveService,
|
|
151
|
+
Cr as DNamespaceRoleCard,
|
|
152
|
+
wr as DNamespaceRoleList,
|
|
153
|
+
Dr as DNamespaceRoleReactiveService,
|
|
154
|
+
Sr as DNamespaceRoleView,
|
|
155
|
+
ke as DNamespaceView,
|
|
156
|
+
or as DOrganizationList,
|
|
157
|
+
Qe as DOrganizationReactiveService,
|
|
158
|
+
Je as DOrganizationView,
|
|
159
|
+
lr as DResizableHandle,
|
|
160
|
+
cr as DResizablePanel,
|
|
161
|
+
sr as DResizablePanelGroup,
|
|
162
|
+
Nr as DRuntimeCard,
|
|
163
|
+
Pr as DRuntimeList,
|
|
164
|
+
Rr as DRuntimeReactiveService,
|
|
165
|
+
Tr as DRuntimeView,
|
|
166
|
+
Qo as DUserCard,
|
|
167
|
+
Xo as DUserInput,
|
|
168
|
+
Jo as DUserList,
|
|
169
|
+
Po as DUserReactiveService,
|
|
170
|
+
Ao as DUserView,
|
|
171
|
+
ee as DataTypeView,
|
|
172
|
+
Ar as Dialog,
|
|
173
|
+
Lr as DialogClose,
|
|
174
|
+
yr as DialogContent,
|
|
175
|
+
Or as DialogDescription,
|
|
176
|
+
Ur as DialogFooter,
|
|
177
|
+
Gr as DialogHeader,
|
|
178
|
+
jr as DialogOverlay,
|
|
179
|
+
zr as DialogPortal,
|
|
180
|
+
Br as DialogTitle,
|
|
181
|
+
hr as DialogTrigger,
|
|
182
|
+
kr as EmailInput,
|
|
183
|
+
W as FLOW_EDGE_RAINBOW,
|
|
184
|
+
To as Flex,
|
|
185
|
+
G as FlowSettingView,
|
|
186
|
+
ve as FlowTypeView,
|
|
187
|
+
j as FlowView,
|
|
188
|
+
ne as FunctionDefinitionView,
|
|
189
|
+
qr as Input,
|
|
190
|
+
Kr as InputDescription,
|
|
191
|
+
Yr as InputLabel,
|
|
192
|
+
$r as InputMessage,
|
|
193
|
+
ot as InputSuggestionMenuContent,
|
|
194
|
+
rt as InputSuggestionMenuContentItems,
|
|
195
|
+
oo as InspectionSeverity,
|
|
196
|
+
yo as Menu,
|
|
197
|
+
Oo as MenuArrow,
|
|
198
|
+
Uo as MenuContent,
|
|
199
|
+
Go as MenuGroup,
|
|
200
|
+
jo as MenuItem,
|
|
201
|
+
zo as MenuLabel,
|
|
202
|
+
Bo as MenuPortal,
|
|
203
|
+
ho as MenuSeparator,
|
|
204
|
+
Eo as MenuSub,
|
|
205
|
+
Ho as MenuSubContent,
|
|
206
|
+
Wo as MenuSubTrigger,
|
|
207
|
+
ko as MenuTrigger,
|
|
208
|
+
z as NodeFunctionView,
|
|
209
|
+
B as NodeParameterView,
|
|
210
|
+
to as NonReactiveArrayService,
|
|
211
|
+
pt as NumberInput,
|
|
212
|
+
mo as ObjectService,
|
|
213
|
+
xe as ParameterDefinitionView,
|
|
214
|
+
mt as PasswordInput,
|
|
215
|
+
nt as PinInput,
|
|
216
|
+
xt as PinInputField,
|
|
217
|
+
ft as PinInputHiddenField,
|
|
218
|
+
Ft as Quote,
|
|
219
|
+
ct as RadioGroup,
|
|
220
|
+
ut as RadioInput,
|
|
221
|
+
xo as ReactiveArrayService,
|
|
222
|
+
It as Row,
|
|
223
|
+
bt as ScrollArea,
|
|
224
|
+
Nt as ScrollAreaCorner,
|
|
225
|
+
Mt as ScrollAreaScrollbar,
|
|
226
|
+
Pt as ScrollAreaThumb,
|
|
227
|
+
Vt as ScrollAreaViewport,
|
|
228
|
+
Lt as SegmentedControl,
|
|
229
|
+
yt as SegmentedControlItem,
|
|
230
|
+
No as Spacing,
|
|
231
|
+
gt as SwitchInput,
|
|
232
|
+
Ut as Tab,
|
|
233
|
+
Gt as TabContent,
|
|
234
|
+
jt as TabList,
|
|
235
|
+
zt as TabTrigger,
|
|
236
|
+
Ro as Text,
|
|
237
|
+
dt as TextInput,
|
|
238
|
+
ht as Toast,
|
|
239
|
+
Wt as Tooltip,
|
|
240
|
+
kt as TooltipArrow,
|
|
241
|
+
_t as TooltipContent,
|
|
242
|
+
Qt as TooltipPortal,
|
|
243
|
+
qt as TooltipTrigger,
|
|
244
|
+
po as createNonReactiveArrayService,
|
|
245
|
+
ao as createObjectService,
|
|
246
|
+
_r as emailValidation,
|
|
247
|
+
uo as getChild,
|
|
248
|
+
Do as getContent,
|
|
249
|
+
go as getPositionAroundTarget,
|
|
250
|
+
So as getPositioning,
|
|
251
|
+
wo as getWindowPositioning,
|
|
252
|
+
vo as mergeCode0Props,
|
|
253
|
+
Co as parseUnit,
|
|
254
|
+
Zo as setUserSession,
|
|
255
|
+
Et as toast,
|
|
256
|
+
Fe as useDFlowValidations,
|
|
257
|
+
k as useFlowEdges,
|
|
258
|
+
Q as useFlowNodes,
|
|
259
|
+
vt as useForm,
|
|
260
|
+
fo as useReactiveArrayService,
|
|
261
|
+
Ze as useService,
|
|
262
|
+
$e as useStore,
|
|
263
|
+
$o as useUserSession
|
|
262
264
|
};
|
package/dist/utils/generics.js
CHANGED
|
@@ -193,7 +193,7 @@ function x(e, n) {
|
|
|
193
193
|
const i = e.config, t = n.config;
|
|
194
194
|
return i.key !== t.key ? !1 : S(i.dataTypeIdentifier, t.dataTypeIdentifier);
|
|
195
195
|
}
|
|
196
|
-
case "
|
|
196
|
+
case "INPUT_TYPES": {
|
|
197
197
|
const i = e.config, a = n.config.inputTypes ?? [], c = i.inputTypes ?? [];
|
|
198
198
|
return a.every((s) => c.some((r) => S(r.dataTypeIdentifier, s.dataTypeIdentifier)));
|
|
199
199
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code0-tech/pictor",
|
|
3
|
-
"version": "0.0.0-mvp.
|
|
3
|
+
"version": "0.0.0-mvp.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A simple template for a custom React component library",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@babel/plugin-proposal-decorators": "^7.28.0",
|
|
22
22
|
"@babel/plugin-transform-class-properties": "^7.27.1",
|
|
23
23
|
"@code0-tech/definition-reader": "^0.0.18",
|
|
24
|
-
"@code0-tech/sagittarius-graphql-types": "^0.0.0-
|
|
24
|
+
"@code0-tech/sagittarius-graphql-types": "^0.0.0-c63274fdd34593b8aa24f9f977659fd3d6270150",
|
|
25
25
|
"@dagrejs/dagre": "^2.0.0",
|
|
26
26
|
"@mdx-js/react": "^3.1.1",
|
|
27
27
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"types": "dist/index.d.ts",
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"@ariakit/react": "^0.4.5",
|
|
97
|
-
"@code0-tech/sagittarius-graphql-types": "^0.0.0-
|
|
97
|
+
"@code0-tech/sagittarius-graphql-types": "^0.0.0-c63274fdd34593b8aa24f9f977659fd3d6270150",
|
|
98
98
|
"@radix-ui/react-checkbox": "^1.3.2",
|
|
99
99
|
"@radix-ui/react-dialog": "^1.1.14",
|
|
100
100
|
"@radix-ui/react-dropdown-menu": "^2.1.15",
|