@code0-tech/pictor 0.0.0-mvp.23 → 0.0.0-mvp.25
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/assets/components/form/Input.style.css +1 -1
- 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-member/DNamespaceMember.service.js +7 -7
- package/dist/components/d-namespace/DNamespace.service.js +2 -2
- package/dist/components/d-organization/DOrganization.service.js +5 -5
- package/dist/components/d-project/DNamespaceProject.service.js +5 -5
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +1 -0
- package/dist/components/d-project/DNamespaceProjectContent.js +42 -35
- package/dist/components/d-project/DNamespaceProjectMenu.d.ts +7 -3
- package/dist/components/d-project/DNamespaceProjectMenu.js +23 -13
- package/dist/components/d-project/index.js +16 -9
- package/dist/components/d-role/DNamespaceRole.service.js +2 -2
- package/dist/components/d-role/DNamespaceRole.view.js +2 -1
- package/dist/components/d-role/DNamespaceRoleContent.js +30 -24
- package/dist/components/d-role/DNamespaceRolePermissions.js +31 -37
- package/dist/components/d-runtime/DRuntime.service.js +2 -2
- package/dist/components/d-user/DUser.service.d.ts +1 -1
- package/dist/components/d-user/DUser.service.js +9 -6
- package/dist/components/d-user/DUserInput.d.ts +2 -0
- package/dist/components/d-user/DUserInput.js +21 -20
- package/dist/components/form/CheckboxInput.js +61 -52
- package/dist/components/form/useForm.js +7 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +256 -254
- package/dist/utils/generics.js +1 -1
- package/package.json +4 -4
|
@@ -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%}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.input{display:flex;z-index:1;align-items:stretch;box-sizing:border-box}.input{background:#1c1a2c;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box}.input:hover{background:#ffffff26}.input:active,.input:focus,.input[aria-selected=true]{background:#fff3;outline:none}.input{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border-radius:1rem}.input:has(.input__control:focus){background:#fff3;outline:none}.input--not-valid{background:#180016;border:1px solid rgba(217,4,41,.1);color:#ffffffbf;position:relative;box-sizing:border-box}.input__syntax{position:absolute;z-index:-1;overflow:hidden;font-size:.8rem;color:#ffffff80;white-space:pre;padding:.7rem;box-sizing:border-box;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none}.input__syntax-caret{display:inline-block;width:1px;height:1rem;background:#ffffffb3;vertical-align:text-bottom;animation:caret-blink 1s steps(1) infinite;pointer-events:none}@keyframes caret-blink{0%,50%{opacity:1}50.01%,to{opacity:0}}.input__syntax-char{pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none}.input__syntax-char--selected{background:#ffffff1a;padding:4px 0}.input__syntax-block{user-select:none;-webkit-user-select:none;-moz-user-select:none}.input__syntax-block--selected{background:#ffffff1a;padding:4px 0}.input__left,.input__right{display:flex;align-items:stretch;margin:.175rem;gap:.7rem}.input__left>button,.input__right>button{height:100%;padding-left:0;padding-right:0}.input__left--action,.input__right--action{padding:0}.input__left--placeholder,.input__right--placeholder{background:#030014;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border-radius:.825rem;padding:.7rem}.input__left{padding-left:.7rem}.input__left--icon{align-items:center}.input__right{padding-right:.7rem}.input__right--icon{align-items:center}.input__control{background:none;border:none;outline:none;padding:.7rem;flex:1;width:100%;
|
|
1
|
+
.input{display:flex;z-index:1;align-items:stretch;box-sizing:border-box}.input{background:#1c1a2c;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box}.input:hover{background:#ffffff26}.input:active,.input:focus,.input[aria-selected=true]{background:#fff3;outline:none}.input{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border-radius:1rem}.input:has(.input__control:focus){background:#fff3;outline:none}.input--not-valid{background:#180016;border:1px solid rgba(217,4,41,.1);color:#ffffffbf;position:relative;box-sizing:border-box}.input__syntax{position:absolute;z-index:-1;overflow:hidden;font-size:.8rem;color:#ffffff80;white-space:pre;padding:.7rem;box-sizing:border-box;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none}.input__syntax-caret{display:inline-block;width:1px;height:1rem;background:#ffffffb3;vertical-align:text-bottom;animation:caret-blink 1s steps(1) infinite;pointer-events:none}@keyframes caret-blink{0%,50%{opacity:1}50.01%,to{opacity:0}}.input__syntax-char{pointer-events:none;user-select:none;-webkit-user-select:none;-moz-user-select:none}.input__syntax-char--selected{background:#ffffff1a;padding:4px 0}.input__syntax-block{user-select:none;-webkit-user-select:none;-moz-user-select:none}.input__syntax-block--selected{background:#ffffff1a;padding:4px 0}.input__left,.input__right{display:flex;align-items:stretch;margin:.175rem;gap:.7rem}.input__left>button,.input__right>button{height:100%;padding-left:0;padding-right:0}.input__left--action,.input__right--action{padding:0}.input__left--placeholder,.input__right--placeholder{background:#030014;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border-radius:.825rem;padding:.7rem}.input__left{padding-left:.7rem}.input__left--icon{align-items:center}.input__right{padding-right:.7rem}.input__right--icon{align-items:center}.input__control{background:none;border:none;outline:none;padding:.7rem;flex:1;width:100%;font-size:.8rem;box-sizing:border-box;color:#ffffff80}.input__control{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.input__control--syntax{color:transparent;caret-color:transparent}.input__control--syntax::selection{background:transparent}.input__label{text-transform:uppercase;color:#ffffff80;font-size:.7rem;display:block}.input__label{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.input__description{color:#ffffff80;font-size:.8rem;margin:.35rem 0 .7rem;display:block}.input__description{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.input__message{padding:.7rem;z-index:0;display:flex;align-items:center;font-size:.7rem;gap:.35rem;margin-top:.7rem}.input__message{background:#180016;border:1px solid rgba(217,4,41,.1);color:#ffffffbf;position:relative;box-sizing:border-box;border-radius:1rem;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.input__message>svg{width:.8rem;height:.8rem}.pin-input{display:flex;justify-content:space-between;gap:.7rem;position:relative;background:transparent}.pin-input__field{flex:1;width:100%;aspect-ratio:1/1;text-align:center}.number-input::-webkit-outer-spin-button,.number-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number-input[type=number]{-moz-appearance:textfield}.radio-input{background:transparent!important;border:none!important;display:flex;align-items:center;box-sizing:border-box;gap:.35rem;position:relative}.radio-input__button{top:-1px;width:18px;height:18px;padding:.35rem}.radio-input__button{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.radio-input__button:active,.radio-input__button:focus,.radio-input__button[aria-selected=true]{background:#353343;outline:none}.radio-input__button{background:#1c1a2c;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box}.radio-input__button:disabled,.radio-input__button[data-disabled],.radio-input__button[aria-disabled=true],.radio-input__button--disabled{cursor:not-allowed;opacity:25%;pointer-events:unset}.radio-input__button{border-radius:1rem}.radio-input__button[data-state=checked]{background:#353343;outline:none}.radio-input__indicator{height:100%;position:relative;display:block;aspect-ratio:1/1}.radio-input__indicator[data-state=checked]{background-color:#70ffb2}.radio-input__indicator[data-state=checked]{border-radius:1rem}.radio-button{padding:0;display:inline-flex}.checkbox-input{background:transparent!important;border:none!important;align-items:center;box-sizing:border-box;gap:.35rem;padding:.35rem 0}.checkbox-input__button{aspect-ratio:1/1;width:1.3rem;height:1.3rem;display:flex;align-items:center;justify-content:center;border-radius:.35rem;cursor:pointer}.checkbox-input__button{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.checkbox-input__button:active,.checkbox-input__button:focus,.checkbox-input__button[aria-selected=true]{background:#353343;outline:none}.checkbox-input__button{background:#1c1a2c;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box}.checkbox-input__button:disabled,.checkbox-input__button[data-disabled],.checkbox-input__button[aria-disabled=true],.checkbox-input__button--disabled{cursor:not-allowed;opacity:25%;pointer-events:unset}.checkbox-input__button[data-state=checked]{background:#193334;outline:none}.checkbox-input__indicator{position:relative;display:flex;align-items:center;justify-content:center;top:1px}.switch-input{background:transparent!important;border:none!important}.switch-input .input__control{position:relative;box-sizing:border-box;padding:0;width:.9rem;height:.9rem;appearance:none;outline:none;cursor:pointer;background-color:transparent;border-radius:50%}.switch-input .input__control:checked:after{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translate(22px);-webkit-transition:.4s;transition:.4s}.switch-input .input__control:checked:before{background:#0e1a24;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box;position:absolute;width:2.6rem;height:1.25rem}.switch-input .input__control:after{width:.9rem;height:.9rem;background-color:#fff;border-radius:50%;position:absolute;content:"";-webkit-transition:.4s;transition:.4s}.switch-input .input__control:before{content:"";z-index:-1;-webkit-transition:.4s;transition:.4s;top:-.175rem;left:-.175rem}.switch-input .input__control:before{background:#1c1a2c;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box;border-radius:1rem;position:absolute;width:2.6rem;height:1.25rem}
|
|
@@ -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;
|
|
@@ -2,16 +2,16 @@ import "../../utils/contextStore.js";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { ReactiveArrayService as t } from "../../utils/reactiveArrayService.js";
|
|
4
4
|
import "merge-props";
|
|
5
|
-
class
|
|
6
|
-
getById(
|
|
7
|
-
return this.values(
|
|
5
|
+
class n extends t {
|
|
6
|
+
getById(i, r) {
|
|
7
|
+
return this.values(r).find((e) => e && e.id === i);
|
|
8
8
|
}
|
|
9
|
-
getByNamespaceIdAndUserId(
|
|
9
|
+
getByNamespaceIdAndUserId(i, r) {
|
|
10
10
|
return this.values({
|
|
11
|
-
namespaceId:
|
|
12
|
-
}).find((
|
|
11
|
+
namespaceId: i
|
|
12
|
+
}).find((e) => e.namespace?.id === i && e.user?.id === r);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
n as DNamespaceMemberReactiveService
|
|
17
17
|
};
|
|
@@ -3,8 +3,8 @@ import "react";
|
|
|
3
3
|
import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
|
|
4
4
|
import "merge-props";
|
|
5
5
|
class p extends i {
|
|
6
|
-
getById(
|
|
7
|
-
return this.values().find((
|
|
6
|
+
getById(r) {
|
|
7
|
+
return this.values().find((e) => e && e.id === r);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../utils/contextStore.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { ReactiveArrayService as
|
|
3
|
+
import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
|
|
4
4
|
import "merge-props";
|
|
5
|
-
class
|
|
6
|
-
getById(
|
|
7
|
-
return this.values().find((
|
|
5
|
+
class p extends i {
|
|
6
|
+
getById(r) {
|
|
7
|
+
return this.values().find((e) => e && e.id === r);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
p as DOrganizationReactiveService
|
|
12
12
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../utils/contextStore.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { ReactiveArrayService as
|
|
3
|
+
import { ReactiveArrayService as t } from "../../utils/reactiveArrayService.js";
|
|
4
4
|
import "merge-props";
|
|
5
|
-
class
|
|
6
|
-
getById(
|
|
7
|
-
return this.values(
|
|
5
|
+
class p extends t {
|
|
6
|
+
getById(r, i) {
|
|
7
|
+
return this.values(i).find((e) => e && e.id === r);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
p as DNamespaceProjectReactiveService
|
|
12
12
|
};
|
|
@@ -5,5 +5,6 @@ import { DNamespaceProjectView } from './DNamespaceProject.view';
|
|
|
5
5
|
export interface DNamespaceProjectContentProps extends Code0Component<HTMLDivElement> {
|
|
6
6
|
projectId: NamespaceProject["id"];
|
|
7
7
|
onSetting?: (project: DNamespaceProjectView) => void;
|
|
8
|
+
minimized?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare const DNamespaceProjectContent: React.FC<DNamespaceProjectContentProps>;
|
|
@@ -1,61 +1,68 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useService as a } from "../../utils/contextStore.js";
|
|
3
|
-
import
|
|
3
|
+
import p from "react";
|
|
4
4
|
import "merge-props";
|
|
5
5
|
import { Flex as t } from "../flex/Flex.js";
|
|
6
|
-
import { DNamespaceProjectReactiveService as
|
|
7
|
-
import { Avatar as
|
|
8
|
-
import { Text as
|
|
6
|
+
import { DNamespaceProjectReactiveService as y } from "./DNamespaceProject.service.js";
|
|
7
|
+
import { Avatar as g } from "../avatar/Avatar.js";
|
|
8
|
+
import { Text as n } from "../text/Text.js";
|
|
9
9
|
import { Badge as c } from "../badge/Badge.js";
|
|
10
|
-
import { IconGitFork as
|
|
11
|
-
import { DRuntimeReactiveService as
|
|
10
|
+
import { IconGitFork as x, IconServer as v, IconServerSpark as z, IconEdit as j } from "@tabler/icons-react";
|
|
11
|
+
import { DRuntimeReactiveService as b } from "../d-runtime/DRuntime.service.js";
|
|
12
12
|
import "../../_virtual/compiler-runtime.js";
|
|
13
13
|
import '../../assets/components/card/Card.style.css';/* empty css */
|
|
14
|
-
import { Button as
|
|
15
|
-
const T = (
|
|
14
|
+
import { Button as S } from "../button/Button.js";
|
|
15
|
+
const T = (d) => {
|
|
16
16
|
const {
|
|
17
|
-
projectId:
|
|
18
|
-
onSetting:
|
|
19
|
-
}
|
|
20
|
-
|
|
17
|
+
projectId: s,
|
|
18
|
+
onSetting: u = () => {
|
|
19
|
+
},
|
|
20
|
+
minimized: o = !1
|
|
21
|
+
} = d, l = a(y), h = o ? null : a(b), r = p.useMemo(() => l.getById(s), [l, s]), m = o ? null : p.useMemo(() => r ? h.getById(r.primaryRuntime?.id) : null, [r]);
|
|
21
22
|
return /* @__PURE__ */ i(t, { align: "center", style: {
|
|
22
23
|
gap: "1.3rem"
|
|
23
24
|
}, justify: "space-between", children: [
|
|
24
25
|
/* @__PURE__ */ i(t, { align: "center", style: {
|
|
25
|
-
gap: "
|
|
26
|
+
gap: "0.7rem"
|
|
26
27
|
}, children: [
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ e(g, { bg: "transparent", identifier: r?.name ?? "" }),
|
|
28
29
|
/* @__PURE__ */ i(t, { style: {
|
|
29
30
|
flexDirection: "column",
|
|
30
31
|
gap: "0.35rem"
|
|
31
32
|
}, children: [
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ e(n, { size: o ? "xs" : "md", hierarchy: "secondary", display: "block", children: r?.name }),
|
|
34
|
+
/* @__PURE__ */ e(n, { size: o ? "xs" : "sm", hierarchy: "tertiary", display: "block", children: r?.description })
|
|
34
35
|
] })
|
|
35
36
|
] }),
|
|
36
|
-
/* @__PURE__ */ i(t, { align: "center", style: {
|
|
37
|
+
o ? null : /* @__PURE__ */ i(t, { align: "center", style: {
|
|
37
38
|
gap: "1.3rem"
|
|
38
39
|
}, children: [
|
|
39
|
-
/* @__PURE__ */ i(t, {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
/* @__PURE__ */ i(t, { style: {
|
|
41
|
+
flexDirection: "column",
|
|
42
|
+
gap: "0.35rem"
|
|
42
43
|
}, children: [
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
|
|
44
|
+
/* @__PURE__ */ e(n, { size: "xs", hierarchy: "tertiary", children: "Usage" }),
|
|
45
|
+
/* @__PURE__ */ i(t, { align: "center", style: {
|
|
46
|
+
gap: "0.35rem",
|
|
47
|
+
flexWrap: "wrap"
|
|
48
|
+
}, children: [
|
|
49
|
+
/* @__PURE__ */ i(c, { border: !0, children: [
|
|
50
|
+
/* @__PURE__ */ e(x, { size: 16 }),
|
|
51
|
+
/* @__PURE__ */ e(n, { size: "xs", children: r?.flows?.count ?? 0 })
|
|
52
|
+
] }),
|
|
53
|
+
/* @__PURE__ */ i(c, { border: !0, children: [
|
|
54
|
+
/* @__PURE__ */ e(v, { size: 16 }),
|
|
55
|
+
/* @__PURE__ */ e(n, { size: "xs", children: r?.runtimes?.count ?? 0 })
|
|
56
|
+
] }),
|
|
57
|
+
m && /* @__PURE__ */ i(c, { border: !0, children: [
|
|
58
|
+
/* @__PURE__ */ e(z, { size: 16 }),
|
|
59
|
+
/* @__PURE__ */ e(n, { size: "xs", children: m.name })
|
|
60
|
+
] })
|
|
54
61
|
] })
|
|
55
62
|
] }),
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}, children: /* @__PURE__ */
|
|
63
|
+
r?.userAbilities?.deleteNamespaceProject || r?.userAbilities?.updateNamespaceProject ? /* @__PURE__ */ e(S, { color: "secondary", variant: "filled", onClick: (f) => {
|
|
64
|
+
f.stopPropagation(), u(r);
|
|
65
|
+
}, children: /* @__PURE__ */ e(j, { size: 16 }) }) : null
|
|
59
66
|
] })
|
|
60
67
|
] });
|
|
61
68
|
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { MenuProps } from '../menu/Menu';
|
|
3
|
-
import { Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
import { Namespace, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
import { DNamespaceProjectView } from './DNamespaceProject.view';
|
|
4
5
|
export interface DNamespaceProjectMenuProps extends MenuProps {
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
onProjectSelect: (project: DNamespaceProjectView) => void;
|
|
7
|
+
namespaceId: Namespace["id"];
|
|
8
|
+
filter?: (project: DNamespaceProjectView, index: number) => boolean;
|
|
9
|
+
projectId?: Scalars['NamespaceProjectID']['output'];
|
|
10
|
+
children?: React.ReactNode;
|
|
7
11
|
}
|
|
8
12
|
declare const DNamespaceProjectMenu: React.FC<DNamespaceProjectMenuProps>;
|
|
9
13
|
export default DNamespaceProjectMenu;
|