@code0-tech/pictor 0.0.0-mvp.43 → 0.0.0-mvp.45
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/avatar/Avatar.style.css +1 -1
- package/dist/assets/components/menu/Menu.style.css +1 -1
- package/dist/components/avatar/Avatar.d.ts +1 -0
- package/dist/components/avatar/Avatar.js +44 -48
- package/dist/components/d-application/DApplication.service.js +1 -0
- package/dist/components/d-flow/DFlow.edges.hook.js +3 -2
- package/dist/components/d-flow/DFlow.nodes.hook.js +16 -15
- package/dist/components/d-flow/DFlow.service.js +3 -2
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +8 -8
- package/dist/components/d-flow-file/DFlowTabDefault.js +1 -1
- package/dist/components/d-flow-file/DFlowTabTrigger.js +1 -1
- package/dist/components/d-flow-file/DFlowTabs.js +58 -106
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +1 -1
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +52 -50
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +43 -38
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +3 -2
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +26 -22
- package/dist/components/d-flow-function/DFlowFunction.service.js +3 -2
- package/dist/components/d-flow-input/DFlowInputDataType.js +15 -14
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +3 -2
- package/dist/components/d-flow-input/DFlowInputDefault.js +1 -1
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +1 -1
- package/dist/components/d-flow-node/DFlowNode.return.hook.js +1 -1
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.js +1 -1
- package/dist/components/d-flow-panel/DFlowExport.js +1 -1
- package/dist/components/d-flow-panel/DFlowPanelControl.js +1 -1
- package/dist/components/d-flow-panel/DFlowPanelUpdate.js +1 -1
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +1 -1
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +1 -1
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +1 -1
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +1 -1
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +6 -5
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +3 -2
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +1 -1
- package/dist/components/d-flow-type/DFlowType.service.d.ts +3 -3
- package/dist/components/d-flow-type/DFlowType.service.js +3 -2
- package/dist/components/d-flow-type/DFlowType.view.d.ts +4 -1
- package/dist/components/d-flow-type/DFlowType.view.js +16 -10
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +1 -1
- package/dist/components/d-flow-validation/DFlowValidation.js +3 -2
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +1 -1
- package/dist/components/d-license/DNamespaceLicense.service.js +3 -2
- package/dist/components/d-member/DNamespaceMember.service.js +1 -0
- package/dist/components/d-member/DNamespaceMemberContent.js +3 -2
- package/dist/components/d-member/DNamespaceMemberList.js +5 -4
- package/dist/components/d-namespace/DNamespace.service.js +3 -2
- package/dist/components/d-organization/DOrganization.service.js +3 -2
- package/dist/components/d-organization/DOrganizationList.js +7 -6
- package/dist/components/d-organization/DOrganizatonContent.js +3 -2
- package/dist/components/d-organization/index.js +9 -8
- package/dist/components/d-project/DNamespaceProject.service.js +3 -2
- package/dist/components/d-project/DNamespaceProject.view.d.ts +7 -1
- package/dist/components/d-project/DNamespaceProject.view.js +7 -1
- package/dist/components/d-project/DNamespaceProjectContent.js +3 -2
- package/dist/components/d-project/DNamespaceProjectList.js +3 -2
- package/dist/components/d-project/index.js +10 -9
- package/dist/components/d-role/DNamespaceRole.service.js +3 -2
- package/dist/components/d-role/DNamespaceRoleContent.js +3 -2
- package/dist/components/d-role/DNamespaceRoleList.js +6 -5
- package/dist/components/d-runtime/DRuntimeContent.js +3 -2
- package/dist/components/d-runtime/DRuntimeList.js +3 -2
- package/dist/components/d-user/DUser.service.js +3 -2
- package/dist/components/d-user/DUserContent.js +6 -5
- package/dist/components/d-user/DUserInput.js +3 -2
- package/dist/components/d-user/DUserList.js +5 -4
- package/dist/components/d-user/DUserMenu.js +5 -4
- package/dist/components/d-user/index.js +15 -14
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/index.js +25 -23
- package/dist/index.js +178 -181
- package/dist/utils/index.js +19 -24
- package/dist/utils/utils.d.ts +3 -18
- package/dist/utils/utils.js +101 -176
- package/package.json +16 -14
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import g from "react";
|
|
2
2
|
import { useService as I, useStore as N } from "../../utils/contextStore.js";
|
|
3
3
|
import "merge-props";
|
|
4
|
-
import { DFlowDataTypeReactiveService as x } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
5
4
|
import "js-md5";
|
|
5
|
+
import { DFlowDataTypeReactiveService as x } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
6
6
|
import { DFlowSuggestionType as A } from "./DFlowSuggestion.view.js";
|
|
7
7
|
import { replaceGenericsAndSortType as C, resolveType as P, isMatchingType as V, resolveGenericKeys as Y, targetForGenericKey as k, replaceGenericKeysInType as J } from "../../utils/generics.js";
|
|
8
8
|
import { DFlowFunctionReactiveService as O } from "../d-flow-function/DFlowFunction.service.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useService as p, useStore as a } from "../../utils/contextStore.js";
|
|
2
2
|
import n from "react";
|
|
3
3
|
import "merge-props";
|
|
4
|
-
import { DFlowFunctionReactiveService as g } from "../d-flow-function/DFlowFunction.service.js";
|
|
5
4
|
import "js-md5";
|
|
5
|
+
import { DFlowFunctionReactiveService as g } from "../d-flow-function/DFlowFunction.service.js";
|
|
6
6
|
import "../d-flow/DFlow.js";
|
|
7
7
|
import { DFlowReactiveService as S } from "../d-flow/DFlow.service.js";
|
|
8
8
|
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
@@ -5,6 +5,7 @@ import I from "react";
|
|
|
5
5
|
import { DFlowSuggestionMenuFooter as B } from "./DFlowSuggestionMenuFooter.js";
|
|
6
6
|
import "@radix-ui/react-checkbox";
|
|
7
7
|
import "merge-props";
|
|
8
|
+
import "js-md5";
|
|
8
9
|
import "@tabler/icons-react";
|
|
9
10
|
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
10
11
|
import "../form/EmailInput.js";
|
|
@@ -18,7 +19,7 @@ import "../form/SwitchInput.js";
|
|
|
18
19
|
import "../form/TextInput.js";
|
|
19
20
|
import { toInputSuggestions as U } from "./DFlowSuggestionMenu.util.js";
|
|
20
21
|
import { DFlowSuggestionMenuSearchBar as $ } from "./DFlowSuggestionMenuSearchBar.js";
|
|
21
|
-
const
|
|
22
|
+
const ue = (R) => {
|
|
22
23
|
const e = k.c(25), {
|
|
23
24
|
suggestions: f,
|
|
24
25
|
triggerContent: M,
|
|
@@ -27,10 +28,10 @@ const le = (R) => {
|
|
|
27
28
|
let c;
|
|
28
29
|
e[0] !== f ? (c = f === void 0 ? [] : f, e[0] = f, e[1] = c) : c = e[1];
|
|
29
30
|
const t = c, D = x === void 0 ? q : x, w = I.useRef(null), [y, F] = I.useState(t);
|
|
30
|
-
let
|
|
31
|
-
e[2] !== t ? (
|
|
31
|
+
let p, g;
|
|
32
|
+
e[2] !== t ? (p = () => {
|
|
32
33
|
F(t);
|
|
33
|
-
},
|
|
34
|
+
}, g = [t], e[2] = t, e[3] = p, e[4] = g) : (p = e[3], g = e[4]), I.useEffect(p, g);
|
|
34
35
|
let i;
|
|
35
36
|
e[5] !== M ? (i = /* @__PURE__ */ r(v, { asChild: !0, children: M }), e[5] = M, e[6] = i) : i = e[6];
|
|
36
37
|
let s;
|
|
@@ -68,5 +69,5 @@ const le = (R) => {
|
|
|
68
69
|
function q() {
|
|
69
70
|
}
|
|
70
71
|
export {
|
|
71
|
-
|
|
72
|
+
ue as DFlowSuggestionMenu
|
|
72
73
|
};
|
|
@@ -3,6 +3,7 @@ import "../../_virtual/compiler-runtime.js";
|
|
|
3
3
|
import i from "react";
|
|
4
4
|
import "@radix-ui/react-checkbox";
|
|
5
5
|
import "merge-props";
|
|
6
|
+
import "js-md5";
|
|
6
7
|
import { IconX as a } from "@tabler/icons-react";
|
|
7
8
|
import '../../assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css';import '../../assets/components/form/Input.style.css';/* empty css */
|
|
8
9
|
import "../form/EmailInput.js";
|
|
@@ -17,7 +18,7 @@ import "../form/TextInput.js";
|
|
|
17
18
|
import { Button as l } from "../button/Button.js";
|
|
18
19
|
/* empty css */
|
|
19
20
|
import { clearInputElement as u } from "../form/Input.utils.js";
|
|
20
|
-
const
|
|
21
|
+
const F = i.forwardRef((p, t) => {
|
|
21
22
|
t = t || i.useRef(null);
|
|
22
23
|
const {
|
|
23
24
|
clearable: m = !1,
|
|
@@ -31,5 +32,5 @@ const E = i.forwardRef((p, t) => {
|
|
|
31
32
|
}, right: r, type: "text", ref: t, ...n });
|
|
32
33
|
});
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
F as DFlowSuggestionSearchInput
|
|
35
36
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import n from "react";
|
|
2
2
|
import { useService as c, useStore as f } from "../../utils/contextStore.js";
|
|
3
3
|
import "merge-props";
|
|
4
|
-
import { DFlowDataTypeReactiveService as p } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
5
4
|
import "js-md5";
|
|
5
|
+
import { DFlowDataTypeReactiveService as p } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
6
6
|
import { DFlowSuggestionType as u } from "./DFlowSuggestion.view.js";
|
|
7
7
|
const T = (r) => {
|
|
8
8
|
const a = c(p), m = f(p), i = n.useMemo(() => r ? a?.getDataType(r) : void 0, [r, a, m]);
|
|
@@ -2,9 +2,9 @@ import { ReactiveArrayService } from '../../utils';
|
|
|
2
2
|
import { FlowTypeView } from './DFlowType.view';
|
|
3
3
|
import { FlowType, Namespace, NamespaceProject, Runtime } from '@code0-tech/sagittarius-graphql-types';
|
|
4
4
|
export type DFlowTypeDependencies = {
|
|
5
|
-
namespaceId
|
|
6
|
-
projectId
|
|
7
|
-
runtimeId
|
|
5
|
+
namespaceId?: Namespace['id'];
|
|
6
|
+
projectId?: NamespaceProject['id'];
|
|
7
|
+
runtimeId?: Runtime['id'];
|
|
8
8
|
};
|
|
9
9
|
export declare abstract class DFlowTypeReactiveService extends ReactiveArrayService<FlowTypeView, DFlowTypeDependencies> {
|
|
10
10
|
getById(id: FlowType['id'], dependencies?: DFlowTypeDependencies): FlowTypeView | undefined;
|
|
@@ -2,11 +2,12 @@ import "../../utils/contextStore.js";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { ReactiveArrayService as t } from "../../utils/reactiveArrayService.js";
|
|
4
4
|
import "merge-props";
|
|
5
|
-
|
|
5
|
+
import "js-md5";
|
|
6
|
+
class v extends t {
|
|
6
7
|
getById(e, r) {
|
|
7
8
|
return this.values(r).find((i) => i.id === e);
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
v as DFlowTypeReactiveService
|
|
12
13
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataType, FlowType, FlowTypeSetting, Maybe, Scalars, Translation } from '@code0-tech/sagittarius-graphql-types';
|
|
1
|
+
import { DataType, FlowType, FlowTypeSetting, Maybe, Runtime, Scalars, Translation } from '@code0-tech/sagittarius-graphql-types';
|
|
2
2
|
export declare class FlowTypeView {
|
|
3
3
|
/** Name of the function */
|
|
4
4
|
private readonly _aliases?;
|
|
@@ -22,6 +22,8 @@ export declare class FlowTypeView {
|
|
|
22
22
|
private readonly _names?;
|
|
23
23
|
/** Return type of the flow type */
|
|
24
24
|
private readonly _returnType?;
|
|
25
|
+
/** Runtime of the flow type */
|
|
26
|
+
private readonly _runtime?;
|
|
25
27
|
/** Time when this FlowType was last updated */
|
|
26
28
|
private readonly _updatedAt?;
|
|
27
29
|
constructor(flowType: FlowType);
|
|
@@ -36,6 +38,7 @@ export declare class FlowTypeView {
|
|
|
36
38
|
get inputType(): Maybe<DataType> | undefined;
|
|
37
39
|
get names(): Maybe<Array<Translation>> | undefined;
|
|
38
40
|
get returnType(): Maybe<DataType> | undefined;
|
|
41
|
+
get runtime(): Maybe<Runtime> | undefined;
|
|
39
42
|
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
40
43
|
json(): FlowType;
|
|
41
44
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "../../utils/contextStore.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "merge-props";
|
|
4
|
+
import "js-md5";
|
|
4
5
|
import { DataTypeView as n } from "../d-flow-data-type/DFlowDataType.view.js";
|
|
5
6
|
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
6
7
|
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
@@ -9,9 +10,8 @@ import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
|
9
10
|
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
10
11
|
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
11
12
|
import "../d-flow-data-type/variants/DFlowDataTypeNodeVariant.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return (t = d(t)) in i ? Object.defineProperty(i, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = r, i;
|
|
13
|
+
function e(i, t, s) {
|
|
14
|
+
return (t = d(t)) in i ? Object.defineProperty(i, t, { value: s, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = s, i;
|
|
15
15
|
}
|
|
16
16
|
function d(i) {
|
|
17
17
|
var t = a(i, "string");
|
|
@@ -19,17 +19,17 @@ function d(i) {
|
|
|
19
19
|
}
|
|
20
20
|
function a(i, t) {
|
|
21
21
|
if (typeof i != "object" || !i) return i;
|
|
22
|
-
var
|
|
23
|
-
if (
|
|
24
|
-
var
|
|
25
|
-
if (typeof
|
|
22
|
+
var s = i[Symbol.toPrimitive];
|
|
23
|
+
if (s !== void 0) {
|
|
24
|
+
var r = s.call(i, t);
|
|
25
|
+
if (typeof r != "object") return r;
|
|
26
26
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
27
27
|
}
|
|
28
28
|
return (t === "string" ? String : Number)(i);
|
|
29
29
|
}
|
|
30
|
-
class
|
|
30
|
+
class A {
|
|
31
31
|
constructor(t) {
|
|
32
|
-
e(this, "_aliases", void 0), e(this, "_createdAt", void 0), e(this, "_descriptions", void 0), e(this, "_displayMessages", void 0), e(this, "_editable", void 0), e(this, "_flowTypeSettings", void 0), e(this, "_id", void 0), e(this, "_identifier", void 0), e(this, "_inputType", void 0), e(this, "_names", void 0), e(this, "_returnType", void 0), e(this, "_updatedAt", void 0), this._aliases = t.aliases, this._createdAt = t.createdAt, this._descriptions = t.descriptions, this._displayMessages = t.displayMessages, this._editable = t.editable, this._flowTypeSettings = t.flowTypeSettings, this._id = t.id, this._identifier = t.identifier, this._inputType = t.inputType ? new n(t.inputType).json : void 0, this._names = t.names, this._returnType = t.returnType ? new n(t.returnType).json : void 0, this._updatedAt = t.updatedAt;
|
|
32
|
+
e(this, "_aliases", void 0), e(this, "_createdAt", void 0), e(this, "_descriptions", void 0), e(this, "_displayMessages", void 0), e(this, "_editable", void 0), e(this, "_flowTypeSettings", void 0), e(this, "_id", void 0), e(this, "_identifier", void 0), e(this, "_inputType", void 0), e(this, "_names", void 0), e(this, "_returnType", void 0), e(this, "_runtime", void 0), e(this, "_updatedAt", void 0), this._aliases = t.aliases, this._createdAt = t.createdAt, this._descriptions = t.descriptions, this._displayMessages = t.displayMessages, this._editable = t.editable, this._flowTypeSettings = t.flowTypeSettings, this._id = t.id, this._identifier = t.identifier, this._inputType = t.inputType ? new n(t.inputType).json : void 0, this._names = t.names, this._returnType = t.returnType ? new n(t.returnType).json : void 0, this._runtime = t.runtime, this._updatedAt = t.updatedAt;
|
|
33
33
|
}
|
|
34
34
|
get aliases() {
|
|
35
35
|
return this._aliases;
|
|
@@ -64,13 +64,18 @@ class f {
|
|
|
64
64
|
get returnType() {
|
|
65
65
|
return this._returnType;
|
|
66
66
|
}
|
|
67
|
+
get runtime() {
|
|
68
|
+
return this._runtime;
|
|
69
|
+
}
|
|
67
70
|
get updatedAt() {
|
|
68
71
|
return this._updatedAt;
|
|
69
72
|
}
|
|
70
73
|
json() {
|
|
71
74
|
return {
|
|
75
|
+
aliases: this._aliases,
|
|
72
76
|
createdAt: this._createdAt,
|
|
73
77
|
descriptions: this._descriptions,
|
|
78
|
+
displayMessages: this._displayMessages,
|
|
74
79
|
editable: this._editable,
|
|
75
80
|
flowTypeSettings: this._flowTypeSettings,
|
|
76
81
|
id: this._id,
|
|
@@ -78,10 +83,11 @@ class f {
|
|
|
78
83
|
inputType: this._inputType,
|
|
79
84
|
names: this._names,
|
|
80
85
|
returnType: this._returnType,
|
|
86
|
+
runtime: this._runtime,
|
|
81
87
|
updatedAt: this._updatedAt
|
|
82
88
|
};
|
|
83
89
|
}
|
|
84
90
|
}
|
|
85
91
|
export {
|
|
86
|
-
|
|
92
|
+
A as FlowTypeView
|
|
87
93
|
};
|
|
@@ -2,9 +2,9 @@ import { c as m } from "../../_virtual/compiler-runtime.js";
|
|
|
2
2
|
import { useService as p, useStore as c } from "../../utils/contextStore.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "merge-props";
|
|
5
|
+
import "js-md5";
|
|
5
6
|
import "../d-flow/DFlow.js";
|
|
6
7
|
import { DFlowReactiveService as i } from "../d-flow/DFlow.service.js";
|
|
7
|
-
import "js-md5";
|
|
8
8
|
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
9
9
|
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
10
10
|
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
@@ -6,12 +6,13 @@ import "../../utils/contextStore.js";
|
|
|
6
6
|
import { InspectionSeverity as l } from "../../utils/inspection.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "merge-props";
|
|
9
|
+
import "js-md5";
|
|
9
10
|
import { Badge as p } from "../badge/Badge.js";
|
|
10
11
|
import { IconExclamationCircle as u, IconAlertTriangle as d, IconMessageExclamation as g } from "@tabler/icons-react";
|
|
11
12
|
import '../../assets/components/d-flow-validation/DFlowValidation.style.css';/* empty css */
|
|
12
13
|
import { Text as h } from "../text/Text.js";
|
|
13
14
|
import { useFlowValidation as R } from "./DFlowValidation.hook.js";
|
|
14
|
-
const
|
|
15
|
+
const C = (e) => {
|
|
15
16
|
const n = s.c(4), {
|
|
16
17
|
flowId: a
|
|
17
18
|
} = e, t = R(a);
|
|
@@ -62,5 +63,5 @@ function _(e) {
|
|
|
62
63
|
return e.type === l.GRAMMAR;
|
|
63
64
|
}
|
|
64
65
|
export {
|
|
65
|
-
|
|
66
|
+
C as DFlowValidation
|
|
66
67
|
};
|
|
@@ -4,10 +4,10 @@ import { DataTypeView as C } from "../d-flow-data-type/DFlowDataType.view.js";
|
|
|
4
4
|
import { useService as V, useStore as _ } from "../../utils/contextStore.js";
|
|
5
5
|
import { InspectionSeverity as P } from "../../utils/inspection.js";
|
|
6
6
|
import "merge-props";
|
|
7
|
+
import "js-md5";
|
|
7
8
|
import { resolveGenericKeys as U, replaceGenericKeysInType as q, replaceGenericKeysInDataTypeObject as z } from "../../utils/generics.js";
|
|
8
9
|
import { useReturnType as H } from "../d-flow-function/DFlowFunction.return.hook.js";
|
|
9
10
|
import { DFlowFunctionReactiveService as G } from "../d-flow-function/DFlowFunction.service.js";
|
|
10
|
-
import "js-md5";
|
|
11
11
|
import { useDataTypeValidation as O } from "./DDataTypeValidation.hook.js";
|
|
12
12
|
import { useValueValidation as w } from "./DValueValidation.hook.js";
|
|
13
13
|
import "../d-flow/DFlow.js";
|
|
@@ -2,11 +2,12 @@ import "../../utils/contextStore.js";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { ReactiveArrayService as t } from "../../utils/reactiveArrayService.js";
|
|
4
4
|
import "merge-props";
|
|
5
|
-
|
|
5
|
+
import "js-md5";
|
|
6
|
+
class v extends t {
|
|
6
7
|
getById(e, i) {
|
|
7
8
|
return this.values(i).find((r) => r.id === e);
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
v as DNamespaceLicenseReactiveService
|
|
12
13
|
};
|
|
@@ -2,6 +2,7 @@ import "../../utils/contextStore.js";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { ReactiveArrayService as t } from "../../utils/reactiveArrayService.js";
|
|
4
4
|
import "merge-props";
|
|
5
|
+
import "js-md5";
|
|
5
6
|
class n extends t {
|
|
6
7
|
getById(i, r) {
|
|
7
8
|
return this.values(r).find((e) => e && e.id === i);
|
|
@@ -3,6 +3,7 @@ import a from "react";
|
|
|
3
3
|
import { Flex as i } from "../flex/Flex.js";
|
|
4
4
|
import { useService as y, useStore as f } from "../../utils/contextStore.js";
|
|
5
5
|
import "merge-props";
|
|
6
|
+
import "js-md5";
|
|
6
7
|
import { DNamespaceMemberReactiveService as M } from "./DNamespaceMember.service.js";
|
|
7
8
|
import { DUserReactiveService as I } from "../d-user/DUser.service.js";
|
|
8
9
|
import { Menu as w, MenuTrigger as T, MenuPortal as O, MenuContent as j, MenuLabel as m, MenuItem as b, MenuSeparator as _ } from "../menu/Menu.js";
|
|
@@ -30,7 +31,7 @@ import { DNamespaceRoleReactiveService as F } from "../d-role/DNamespaceRole.ser
|
|
|
30
31
|
import { DNamespaceRolePermissions as x } from "../d-role/DNamespaceRolePermissions.js";
|
|
31
32
|
import { Tooltip as le, TooltipTrigger as se, TooltipPortal as ce, TooltipContent as ae, TooltipArrow as de } from "../tooltip/Tooltip.js";
|
|
32
33
|
import { Dialog as L, DialogPortal as W, DialogContent as Y, DialogClose as h } from "../dialog/Dialog.js";
|
|
33
|
-
const
|
|
34
|
+
const qe = (E) => {
|
|
34
35
|
const {
|
|
35
36
|
memberId: S,
|
|
36
37
|
onAssignRole: V = () => {
|
|
@@ -220,5 +221,5 @@ const Ve = (E) => {
|
|
|
220
221
|
] });
|
|
221
222
|
};
|
|
222
223
|
export {
|
|
223
|
-
|
|
224
|
+
qe as DNamespaceMemberContent
|
|
224
225
|
};
|
|
@@ -2,22 +2,23 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import f from "react";
|
|
3
3
|
import { useService as u, useStore as l } from "../../utils/contextStore.js";
|
|
4
4
|
import "merge-props";
|
|
5
|
+
import "js-md5";
|
|
5
6
|
import { DNamespaceMemberReactiveService as t } from "./DNamespaceMember.service.js";
|
|
6
7
|
import { Card as v } from "../card/Card.js";
|
|
7
8
|
import S from "../card/CardSection.js";
|
|
8
9
|
import { DNamespaceMemberContent as b } from "./DNamespaceMemberContent.js";
|
|
9
|
-
const
|
|
10
|
+
const j = (m) => {
|
|
10
11
|
const {
|
|
11
12
|
namespaceId: o,
|
|
12
13
|
filter: i = () => !0,
|
|
13
14
|
onRemove: s,
|
|
14
15
|
onAssignRole: c,
|
|
15
16
|
...n
|
|
16
|
-
} = m,
|
|
17
|
+
} = m, p = u(t), a = l(t), d = f.useMemo(() => p.values({
|
|
17
18
|
namespaceId: o
|
|
18
|
-
}), [
|
|
19
|
+
}), [a, o]);
|
|
19
20
|
return /* @__PURE__ */ r(v, { ...n, children: d.filter(i).map((e) => e && e.id && /* @__PURE__ */ r(S, { border: !0, children: /* @__PURE__ */ r(b, { onRemove: s, onAssignRole: c, memberId: e?.id }) }, e.id)) });
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
j as DNamespaceMemberList
|
|
23
24
|
};
|
|
@@ -2,11 +2,12 @@ import "../../utils/contextStore.js";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
|
|
4
4
|
import "merge-props";
|
|
5
|
-
|
|
5
|
+
import "js-md5";
|
|
6
|
+
class s extends i {
|
|
6
7
|
getById(r) {
|
|
7
8
|
return this.values().find((e) => e && e.id === r);
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
s as DNamespaceReactiveService
|
|
12
13
|
};
|
|
@@ -2,11 +2,12 @@ import "../../utils/contextStore.js";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
|
|
4
4
|
import "merge-props";
|
|
5
|
-
|
|
5
|
+
import "js-md5";
|
|
6
|
+
class s extends i {
|
|
6
7
|
getById(r) {
|
|
7
8
|
return this.values().find((e) => e && e.id === r);
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
s as DOrganizationReactiveService
|
|
12
13
|
};
|
|
@@ -3,21 +3,22 @@ import d from "react";
|
|
|
3
3
|
import { Card as u } from "../card/Card.js";
|
|
4
4
|
import { useService as S, useStore as l } from "../../utils/contextStore.js";
|
|
5
5
|
import "merge-props";
|
|
6
|
+
import "js-md5";
|
|
6
7
|
import { DOrganizationReactiveService as e } from "./DOrganization.service.js";
|
|
7
8
|
import v from "../card/CardSection.js";
|
|
8
9
|
import { DOrganizationContent as g } from "./DOrganizatonContent.js";
|
|
9
|
-
const
|
|
10
|
+
const j = (i) => {
|
|
10
11
|
const n = S(e), m = l(e), a = d.useMemo(() => n.values(), [m]), {
|
|
11
12
|
filter: c = () => !0,
|
|
12
13
|
onLeave: s,
|
|
13
|
-
onSetting:
|
|
14
|
+
onSetting: p,
|
|
14
15
|
onSelect: t,
|
|
15
|
-
...
|
|
16
|
+
...f
|
|
16
17
|
} = i;
|
|
17
|
-
return /* @__PURE__ */ o(u, { ...
|
|
18
|
+
return /* @__PURE__ */ o(u, { ...f, children: a.filter(c).map((r) => r.id && /* @__PURE__ */ o(v, { border: !0, hover: !0, onClick: () => {
|
|
18
19
|
t && t(r);
|
|
19
|
-
}, children: /* @__PURE__ */ o(g, { onLeave: s, onSetting:
|
|
20
|
+
}, children: /* @__PURE__ */ o(g, { onLeave: s, onSetting: p, organizationId: r?.id }) }, r.id)) });
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
j as DOrganizationList
|
|
23
24
|
};
|
|
@@ -2,6 +2,7 @@ import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import n from "react";
|
|
3
3
|
import { useStore as c, useService as s } from "../../utils/contextStore.js";
|
|
4
4
|
import "merge-props";
|
|
5
|
+
import "js-md5";
|
|
5
6
|
import { Text as m } from "../text/Text.js";
|
|
6
7
|
import { DOrganizationReactiveService as v } from "./DOrganization.service.js";
|
|
7
8
|
import { IconFolders as k, IconUsers as L, IconServer as N, IconEdit as w, IconLogout as F } from "@tabler/icons-react";
|
|
@@ -33,7 +34,7 @@ import "@radix-ui/react-tooltip";
|
|
|
33
34
|
/* empty css */
|
|
34
35
|
import "@radix-ui/react-dialog";
|
|
35
36
|
/* empty css */
|
|
36
|
-
const
|
|
37
|
+
const Me = (I) => {
|
|
37
38
|
const {
|
|
38
39
|
organizationId: a,
|
|
39
40
|
onLeave: M = () => {
|
|
@@ -97,5 +98,5 @@ const Ie = (I) => {
|
|
|
97
98
|
] });
|
|
98
99
|
};
|
|
99
100
|
export {
|
|
100
|
-
|
|
101
|
+
Me as DOrganizationContent
|
|
101
102
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { DOrganizationReactiveService as
|
|
2
|
-
import { DOrganizationView as
|
|
1
|
+
import { DOrganizationReactiveService as C } from "./DOrganization.service.js";
|
|
2
|
+
import { DOrganizationView as F } from "./DOrganization.view.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "../../_virtual/compiler-runtime.js";
|
|
5
5
|
import '../../assets/components/dialog/Dialog.style.css';import '../../assets/components/tooltip/Tooltip.style.css';import '../../assets/components/form/Input.style.css';import '../../assets/components/badge/Badge.style.css';import '../../assets/components/menu/Menu.style.css';import '../../assets/components/avatar/Avatar.style.css';import '../../assets/components/spacing/Spacing.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 */
|
|
6
|
-
import "react";
|
|
7
6
|
import "merge-props";
|
|
7
|
+
import "js-md5";
|
|
8
|
+
import "react";
|
|
8
9
|
import "../../utils/contextStore.js";
|
|
9
10
|
/* empty css */
|
|
10
11
|
import "@tabler/icons-react";
|
|
11
12
|
/* empty css */
|
|
12
13
|
import "../button/Button.js";
|
|
13
14
|
/* empty css */
|
|
14
|
-
import "js-md5";
|
|
15
15
|
/* empty css */
|
|
16
|
+
import "avvvatars-react";
|
|
16
17
|
/* empty css */
|
|
17
18
|
import "@radix-ui/react-dropdown-menu";
|
|
18
19
|
/* empty css */
|
|
@@ -31,9 +32,9 @@ import "@radix-ui/react-tooltip";
|
|
|
31
32
|
/* empty css */
|
|
32
33
|
import "@radix-ui/react-dialog";
|
|
33
34
|
/* empty css */
|
|
34
|
-
import { DOrganizationList as
|
|
35
|
+
import { DOrganizationList as H } from "./DOrganizationList.js";
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
H as DOrganizationList,
|
|
38
|
+
C as DOrganizationReactiveService,
|
|
39
|
+
F as DOrganizationView
|
|
39
40
|
};
|
|
@@ -2,11 +2,12 @@ import "../../utils/contextStore.js";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { ReactiveArrayService as t } from "../../utils/reactiveArrayService.js";
|
|
4
4
|
import "merge-props";
|
|
5
|
-
|
|
5
|
+
import "js-md5";
|
|
6
|
+
class v extends t {
|
|
6
7
|
getById(r, i) {
|
|
7
8
|
return this.values(i).find((e) => e && e.id === r);
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
v as DNamespaceProjectReactiveService
|
|
12
13
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Flow, FlowConnection, Maybe, Namespace, NamespaceProject, NamespaceProjectUserAbilities, Runtime, RuntimeConnection, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
1
|
+
import { Flow, FlowConnection, Maybe, Namespace, NamespaceProject, NamespaceProjectUserAbilities, NamespaceRoleConnection, Runtime, RuntimeConnection, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
2
2
|
export declare class DNamespaceProjectView {
|
|
3
3
|
/** Time when this NamespaceProject was created */
|
|
4
4
|
private readonly _createdAt?;
|
|
@@ -16,8 +16,12 @@ export declare class DNamespaceProjectView {
|
|
|
16
16
|
private readonly _namespace?;
|
|
17
17
|
/** The primary runtime for the project */
|
|
18
18
|
private readonly _primaryRuntime?;
|
|
19
|
+
/** Roles assigned to this project */
|
|
20
|
+
private readonly _roles?;
|
|
19
21
|
/** Runtimes assigned to this project */
|
|
20
22
|
private readonly _runtimes?;
|
|
23
|
+
/** Slug of the project used in URLs to identify flows */
|
|
24
|
+
private readonly _slug?;
|
|
21
25
|
/** Time when this NamespaceProject was last updated */
|
|
22
26
|
private readonly _updatedAt?;
|
|
23
27
|
/** Abilities for the current user on this NamespaceProject */
|
|
@@ -31,7 +35,9 @@ export declare class DNamespaceProjectView {
|
|
|
31
35
|
get name(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
32
36
|
get namespace(): Maybe<Namespace> | undefined;
|
|
33
37
|
get primaryRuntime(): Maybe<Runtime> | undefined;
|
|
38
|
+
get roles(): Maybe<NamespaceRoleConnection> | undefined;
|
|
34
39
|
get runtimes(): Maybe<RuntimeConnection> | undefined;
|
|
40
|
+
get slug(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
35
41
|
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
36
42
|
get userAbilities(): Maybe<NamespaceProjectUserAbilities> | undefined;
|
|
37
43
|
json(): NamespaceProject;
|
|
@@ -17,7 +17,7 @@ function u(i, t) {
|
|
|
17
17
|
}
|
|
18
18
|
class o {
|
|
19
19
|
constructor(t) {
|
|
20
|
-
e(this, "_createdAt", void 0), e(this, "_description", void 0), e(this, "_flow", void 0), e(this, "_flows", void 0), e(this, "_id", void 0), e(this, "_name", void 0), e(this, "_namespace", void 0), e(this, "_primaryRuntime", void 0), e(this, "_runtimes", void 0), e(this, "_updatedAt", void 0), e(this, "_userAbilities", void 0), this._createdAt = t.createdAt, this._description = t.description, this._flow = t.flow, this._flows = t.flows, this._id = t.id, this._name = t.name, this._namespace = t.namespace, this._primaryRuntime = t.primaryRuntime, this._runtimes = t.runtimes, this._updatedAt = t.updatedAt, this._userAbilities = t.userAbilities;
|
|
20
|
+
e(this, "_createdAt", void 0), e(this, "_description", void 0), e(this, "_flow", void 0), e(this, "_flows", void 0), e(this, "_id", void 0), e(this, "_name", void 0), e(this, "_namespace", void 0), e(this, "_primaryRuntime", void 0), e(this, "_roles", void 0), e(this, "_runtimes", void 0), e(this, "_slug", void 0), e(this, "_updatedAt", void 0), e(this, "_userAbilities", void 0), this._createdAt = t.createdAt, this._description = t.description, this._flow = t.flow, this._flows = t.flows, this._id = t.id, this._name = t.name, this._namespace = t.namespace, this._primaryRuntime = t.primaryRuntime, this._roles = t.roles, this._runtimes = t.runtimes, this._slug = t.slug, this._updatedAt = t.updatedAt, this._userAbilities = t.userAbilities;
|
|
21
21
|
}
|
|
22
22
|
get createdAt() {
|
|
23
23
|
return this._createdAt;
|
|
@@ -43,9 +43,15 @@ class o {
|
|
|
43
43
|
get primaryRuntime() {
|
|
44
44
|
return this._primaryRuntime;
|
|
45
45
|
}
|
|
46
|
+
get roles() {
|
|
47
|
+
return this._roles;
|
|
48
|
+
}
|
|
46
49
|
get runtimes() {
|
|
47
50
|
return this._runtimes;
|
|
48
51
|
}
|
|
52
|
+
get slug() {
|
|
53
|
+
return this._slug;
|
|
54
|
+
}
|
|
49
55
|
get updatedAt() {
|
|
50
56
|
return this._updatedAt;
|
|
51
57
|
}
|
|
@@ -2,6 +2,7 @@ import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { useService as a } from "../../utils/contextStore.js";
|
|
3
3
|
import p from "react";
|
|
4
4
|
import "merge-props";
|
|
5
|
+
import "js-md5";
|
|
5
6
|
import { Flex as t } from "../flex/Flex.js";
|
|
6
7
|
import { DNamespaceProjectReactiveService as y } from "./DNamespaceProject.service.js";
|
|
7
8
|
import { Avatar as g } from "../avatar/Avatar.js";
|
|
@@ -12,7 +13,7 @@ import { DRuntimeReactiveService as b } from "../d-runtime/DRuntime.service.js";
|
|
|
12
13
|
import "../../_virtual/compiler-runtime.js";
|
|
13
14
|
import '../../assets/components/card/Card.style.css';/* empty css */
|
|
14
15
|
import { Button as S } from "../button/Button.js";
|
|
15
|
-
const
|
|
16
|
+
const U = (d) => {
|
|
16
17
|
const {
|
|
17
18
|
projectId: s,
|
|
18
19
|
onSetting: u = () => {
|
|
@@ -67,5 +68,5 @@ const T = (d) => {
|
|
|
67
68
|
] });
|
|
68
69
|
};
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
+
U as DNamespaceProjectContent
|
|
71
72
|
};
|
|
@@ -3,10 +3,11 @@ import f from "react";
|
|
|
3
3
|
import { Card as u } from "../card/Card.js";
|
|
4
4
|
import { useService as S, useStore as l } from "../../utils/contextStore.js";
|
|
5
5
|
import "merge-props";
|
|
6
|
+
import "js-md5";
|
|
6
7
|
import { DNamespaceProjectReactiveService as i } from "./DNamespaceProject.service.js";
|
|
7
8
|
import v from "../card/CardSection.js";
|
|
8
9
|
import { DNamespaceProjectContent as j } from "./DNamespaceProjectContent.js";
|
|
9
|
-
const
|
|
10
|
+
const g = (c) => {
|
|
10
11
|
const {
|
|
11
12
|
namespaceId: t,
|
|
12
13
|
filter: m = () => !0,
|
|
@@ -21,5 +22,5 @@ const b = (c) => {
|
|
|
21
22
|
}, children: /* @__PURE__ */ r(j, { onSetting: s, projectId: e?.id }) }, e.id)) });
|
|
22
23
|
};
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
g as DNamespaceProjectList
|
|
25
26
|
};
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { DNamespaceProjectReactiveService as
|
|
2
|
-
import { DNamespaceProjectView as
|
|
3
|
-
import { DNamespaceProjectCard as
|
|
4
|
-
import { DNamespaceProjectList as
|
|
1
|
+
import { DNamespaceProjectReactiveService as C } from "./DNamespaceProject.service.js";
|
|
2
|
+
import { DNamespaceProjectView as R } from "./DNamespaceProject.view.js";
|
|
3
|
+
import { DNamespaceProjectCard as V } from "./DNamespaceProjectCard.js";
|
|
4
|
+
import { DNamespaceProjectList as g } from "./DNamespaceProjectList.js";
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
import "react";
|
|
7
7
|
import "../../_virtual/compiler-runtime.js";
|
|
8
8
|
import '../../assets/components/spacing/Spacing.style.css';import '../../assets/components/card/Card.style.css';import '../../assets/components/badge/Badge.style.css';import '../../assets/components/text/Text.style.css';import '../../assets/components/avatar/Avatar.style.css';import '../../assets/components/flex/Flex.style.css';import '../../assets/components/menu/Menu.style.css';/* empty css */
|
|
9
9
|
import "merge-props";
|
|
10
|
+
import "js-md5";
|
|
10
11
|
import "@radix-ui/react-dropdown-menu";
|
|
11
12
|
import "../../utils/contextStore.js";
|
|
12
13
|
import "../button/Button.js";
|
|
13
14
|
/* empty css */
|
|
14
|
-
import "js-md5";
|
|
15
15
|
/* empty css */
|
|
16
|
+
import "avvvatars-react";
|
|
16
17
|
/* empty css */
|
|
17
18
|
/* empty css */
|
|
18
19
|
import "@tabler/icons-react";
|
|
19
20
|
/* empty css */
|
|
20
21
|
/* empty css */
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
V as DNamespaceProjectCard,
|
|
24
|
+
g as DNamespaceProjectList,
|
|
25
|
+
C as DNamespaceProjectReactiveService,
|
|
26
|
+
R as DNamespaceProjectView
|
|
26
27
|
};
|