@code0-tech/pictor 0.0.0-mvp.2 → 0.0.0-mvp.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/compiler-runtime.js +5 -0
- package/dist/_virtual/compiler-runtime2.js +4 -0
- package/dist/_virtual/react-compiler-runtime.development.js +4 -0
- package/dist/_virtual/react-compiler-runtime.production.js +4 -0
- package/dist/assets/components/alert/Alert.style.css +1 -0
- package/dist/assets/components/avatar/Avatar.style.css +1 -0
- package/dist/assets/components/badge/Badge.style.css +1 -0
- package/dist/assets/components/button/Button.style.css +1 -0
- package/dist/assets/components/card/Card.style.css +1 -0
- package/dist/assets/components/command/Command.style.css +1 -0
- package/dist/assets/components/d-flow/DFlow.style.css +1 -0
- package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +1 -0
- package/dist/assets/components/d-flow/function/DFlowFunctionDefaultCard.style.css +1 -0
- package/dist/assets/components/d-flow/input/DFlowInputDataType.style.css +1 -0
- package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +1 -0
- package/dist/assets/components/d-flow/validation/DFlowValidation.style.css +1 -0
- package/dist/assets/components/d-layout/DLayout.style.css +1 -0
- package/dist/assets/components/d-resizable/DResizable.style.css +1 -0
- package/dist/assets/components/dialog/Dialog.style.css +1 -0
- package/dist/assets/components/file-tabs/FileTabs.style.css +1 -0
- package/dist/assets/components/form/Input.style.css +1 -0
- package/dist/assets/components/menu/Menu.style.css +1 -0
- package/dist/assets/{ScrollArea.css → components/scroll-area/ScrollArea.style.css} +1 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -0
- package/dist/assets/components/spacing/Spacing.style.css +1 -0
- package/dist/assets/components/tab/Tab.style.css +1 -0
- package/dist/assets/components/text/Text.style.css +1 -0
- package/dist/assets/components/toast/Toast.style.css +1 -0
- package/dist/assets/components/tooltip/Tooltip.style.css +1 -0
- package/dist/assets/{DFlow.css → node_modules/@xyflow/react/dist/style.css} +1 -1
- package/dist/components/alert/Alert.d.ts +7 -0
- package/dist/components/alert/Alert.js +38 -0
- package/dist/components/avatar/Avatar.js +2 -2
- package/dist/components/badge/Badge.js +2 -2
- package/dist/components/breadcrumb/Breadcrumb.js +16 -28
- package/dist/components/button/Button.d.ts +2 -1
- package/dist/components/button/Button.js +23 -20
- package/dist/components/button-group/ButtonGroup.js +6 -5
- package/dist/components/card/Card.d.ts +2 -1
- package/dist/components/card/Card.js +25 -22
- package/dist/components/card/CardSection.d.ts +1 -0
- package/dist/components/card/CardSection.js +18 -12
- package/dist/components/col/Col.js +9 -8
- package/dist/components/command/Command.js +19 -18
- package/dist/components/container/Container.js +12 -11
- package/dist/components/d-flow/DFlow.edges.hook.js +9 -10
- package/dist/components/d-flow/DFlow.js +6 -4
- package/dist/components/d-flow/DFlow.nodes.hook.js +18 -19
- package/dist/components/d-flow/control/DFlowControl.js +50 -46
- package/dist/components/d-flow/data-type/DFlowDataType.service.js +89 -5
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +18 -4
- package/dist/components/d-flow/data-type/index.js +1 -1
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.js +220 -4
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.js +227 -4
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeParentRule.js +1 -1
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +241 -5
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.js +8 -6
- package/dist/components/d-flow/edge/DFlowEdge.js +1 -1
- package/dist/components/d-flow/folder/DFlowFolder.js +16 -15
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +1 -1
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +19 -20
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +56 -56
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +1 -1
- package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +1 -1
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +72 -76
- package/dist/components/d-flow/index.js +8 -8
- package/dist/components/d-flow/input/DFlowInputDataType.js +201 -201
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +6 -5
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +61 -62
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +1 -1
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenuFooter.js +1 -1
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenuSearchBar.js +1 -1
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +9 -8
- package/dist/components/d-flow/tab/DFlowTabs.js +1 -1
- package/dist/components/d-flow/validation/DFlowValidation.js +15 -14
- package/dist/components/d-fullscreen/DFullScreen.d.ts +1 -2
- package/dist/components/d-fullscreen/DFullScreen.js +24 -18
- package/dist/components/d-layout/DLayout.js +27 -26
- package/dist/components/d-license/DNamespaceLicense.service.d.ts +11 -0
- package/dist/components/d-license/DNamespaceLicense.service.js +12 -0
- package/dist/components/d-license/index.d.ts +2 -0
- package/dist/components/d-license/index.js +6 -0
- package/dist/components/d-member/DNamespaceMember.service.d.ts +13 -0
- package/dist/components/d-member/DNamespaceMember.service.js +15 -0
- package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.d.ts +4 -1
- package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.js +4 -1
- package/dist/components/d-member/index.d.ts +2 -0
- package/dist/components/d-member/index.js +6 -0
- package/dist/components/d-namespace/DNamespace.service.d.ts +1 -1
- package/dist/components/d-namespace/DNamespace.service.js +5 -4
- package/dist/components/d-namespace/index.d.ts +0 -10
- package/dist/components/d-namespace/index.js +4 -33
- package/dist/components/d-organization/DOrganization.service.d.ts +3 -3
- package/dist/components/d-organization/DOrganization.service.js +5 -4
- package/dist/components/d-organization/DOrganization.view.d.ts +4 -1
- package/dist/components/d-organization/DOrganization.view.js +21 -18
- package/dist/components/d-organization/DOrganizationCard.d.ts +3 -3
- package/dist/components/d-organization/DOrganizationCard.js +13 -60
- package/dist/components/d-organization/DOrganizationList.d.ts +11 -0
- package/dist/components/d-organization/DOrganizationList.js +23 -0
- package/dist/components/d-organization/DOrganizatonContent.d.ts +9 -0
- package/dist/components/d-organization/DOrganizatonContent.js +86 -0
- package/dist/components/d-organization/index.d.ts +1 -0
- package/dist/components/d-organization/index.js +15 -10
- package/dist/components/d-project/DNamespaceProject.service.d.ts +12 -0
- package/dist/components/d-project/DNamespaceProject.service.js +12 -0
- package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.d.ts +4 -1
- package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.js +13 -10
- package/dist/components/{d-namespace/project → d-project}/DNamespaceProjectCard.d.ts +1 -1
- package/dist/components/d-project/DNamespaceProjectCard.js +15 -0
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +8 -0
- package/dist/components/d-project/DNamespaceProjectContent.js +70 -0
- package/dist/components/d-project/DNamespaceProjectList.d.ts +11 -0
- package/dist/components/d-project/DNamespaceProjectList.js +25 -0
- package/dist/components/{d-namespace/project → d-project}/DNamespaceProjectMenu.d.ts +1 -1
- package/dist/components/{d-namespace/project → d-project}/DNamespaceProjectMenu.js +3 -3
- package/dist/components/d-project/index.d.ts +5 -0
- package/dist/components/d-project/index.js +24 -0
- package/dist/components/d-resizable/DResizable.js +17 -16
- package/dist/components/d-role/DNamespaceRole.service.d.ts +13 -0
- package/dist/components/d-role/DNamespaceRole.service.js +12 -0
- package/dist/components/d-role/index.d.ts +2 -0
- package/dist/components/d-role/index.js +6 -0
- package/dist/components/d-runtime/DRuntime.service.d.ts +5 -2
- package/dist/components/d-runtime/DRuntime.service.js +0 -2
- package/dist/components/d-runtime/DRuntime.view.d.ts +4 -1
- package/dist/components/d-runtime/DRuntime.view.js +6 -3
- package/dist/components/d-runtime/DRuntimeCard.d.ts +7 -0
- package/dist/components/d-runtime/DRuntimeCard.js +17 -0
- package/dist/components/d-runtime/DRuntimeContent.d.ts +7 -0
- package/dist/components/d-runtime/DRuntimeContent.js +40 -0
- package/dist/components/d-runtime/DRuntimeList.d.ts +10 -0
- package/dist/components/d-runtime/DRuntimeList.js +22 -0
- package/dist/components/d-runtime/index.d.ts +2 -0
- package/dist/components/d-runtime/index.js +6 -2
- package/dist/components/d-user/DUser.service.d.ts +1 -3
- package/dist/components/d-user/DUser.service.js +3 -9
- package/dist/components/d-user/DUser.session.hook.d.ts +3 -0
- package/dist/components/d-user/DUser.session.hook.js +16 -0
- package/dist/components/d-user/DUser.view.d.ts +4 -1
- package/dist/components/d-user/DUser.view.js +13 -10
- package/dist/components/d-user/DUserCard.d.ts +7 -0
- package/dist/components/d-user/DUserCard.js +15 -0
- package/dist/components/d-user/DUserContent.d.ts +7 -0
- package/dist/components/d-user/DUserContent.js +84 -0
- package/dist/components/d-user/DUserList.d.ts +10 -0
- package/dist/components/d-user/DUserList.js +22 -0
- package/dist/components/d-user/DUserMenu.js +19 -19
- package/dist/components/d-user/index.d.ts +3 -0
- package/dist/components/d-user/index.js +15 -8
- package/dist/components/dialog/Dialog.js +18 -17
- package/dist/components/file-tabs/FileTabs.js +41 -40
- package/dist/components/flex/Flex.js +2 -2
- package/dist/components/form/CheckboxInput.js +2 -2
- package/dist/components/form/Input.js +1 -1
- package/dist/components/form/InputDescription.js +1 -1
- package/dist/components/form/InputLabel.js +1 -1
- package/dist/components/form/InputMessage.js +1 -1
- package/dist/components/form/InputSuggestion.js +1 -1
- package/dist/components/form/PinInput.js +2 -2
- package/dist/components/form/RadioGroup.js +2 -2
- package/dist/components/form/RadioInput.js +2 -2
- package/dist/components/form/useForm.d.ts +2 -1
- package/dist/components/form/useForm.js +66 -32
- package/dist/components/menu/Menu.js +2 -2
- package/dist/components/quote/Quote.js +32 -36
- package/dist/components/row/Row.js +10 -9
- package/dist/components/scroll-area/ScrollArea.js +18 -17
- package/dist/components/segmented-control/SegmentedControl.js +12 -11
- package/dist/components/spacing/Spacing.d.ts +6 -0
- package/dist/components/spacing/Spacing.js +23 -0
- package/dist/components/tab/Tab.d.ts +11 -0
- package/dist/components/tab/Tab.js +40 -0
- package/dist/components/text/Text.js +2 -2
- package/dist/components/toast/Toast.d.ts +13 -0
- package/dist/components/toast/Toast.js +62 -0
- package/dist/components/tooltip/Tooltip.js +10 -9
- package/dist/index.d.ts +8 -0
- package/dist/index.js +238 -210
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +14 -0
- package/dist/node_modules/react/compiler-runtime.js +10 -0
- package/dist/utils/arrayService.d.ts +2 -2
- package/dist/utils/contextStore.js +1 -1
- package/dist/utils/generics.js +88 -89
- package/dist/utils/reactiveArrayService.d.ts +3 -3
- package/dist/utils/reactiveArrayService.js +52 -42
- package/dist/utils/types.d.ts +2 -2
- package/package.json +31 -30
- package/dist/DFlowDataType.service-Dz8pQUeO.js +0 -793
- package/dist/assets/Avatar.css +0 -1
- package/dist/assets/Badge.css +0 -1
- package/dist/assets/Button.css +0 -1
- package/dist/assets/Card.css +0 -1
- package/dist/assets/Command.css +0 -1
- package/dist/assets/DFlowFolder.css +0 -1
- package/dist/assets/DFlowFunctionDefaultCard.css +0 -1
- package/dist/assets/DFlowInputDataType.css +0 -1
- package/dist/assets/DFlowMiniMap.css +0 -1
- package/dist/assets/DFlowValidation.css +0 -1
- package/dist/assets/DLayout.css +0 -1
- package/dist/assets/DResizable.css +0 -1
- package/dist/assets/Dialog.css +0 -1
- package/dist/assets/FileTabs.css +0 -1
- package/dist/assets/Input.css +0 -1
- package/dist/assets/Menu.css +0 -1
- package/dist/assets/SegmentedControl.css +0 -1
- package/dist/assets/Text.css +0 -1
- package/dist/assets/Tooltip.css +0 -1
- package/dist/compiler-runtime-BNHg76kC.js +0 -36
- package/dist/components/d-namespace/license/DNamespaceLicense.service.d.ts +0 -8
- package/dist/components/d-namespace/license/DNamespaceLicense.service.js +0 -11
- package/dist/components/d-namespace/member/DNamespaceMember.service.d.ts +0 -9
- package/dist/components/d-namespace/member/DNamespaceMember.service.js +0 -11
- package/dist/components/d-namespace/project/DNamespaceProject.service.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProject.service.js +0 -11
- package/dist/components/d-namespace/project/DNamespaceProjectCard.js +0 -57
- package/dist/components/d-namespace/role/DNamespaceRole.service.d.ts +0 -10
- package/dist/components/d-namespace/role/DNamespaceRole.service.js +0 -11
- /package/dist/assets/{Breadcrumb.css → components/breadcrumb/Breadcrumb.style.css} +0 -0
- /package/dist/assets/{ButtonGroup.css → components/button-group/ButtonGroup.style.css} +0 -0
- /package/dist/assets/{Col.css → components/col/Col.style.css} +0 -0
- /package/dist/assets/{Container.css → components/container/Container.style.css} +0 -0
- /package/dist/assets/{DFlowSuggestionSearchInput.css → components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css} +0 -0
- /package/dist/assets/{DFullScreen.css → components/d-fullscreen/DFullScreen.style.css} +0 -0
- /package/dist/assets/{Flex.css → components/flex/Flex.style.css} +0 -0
- /package/dist/assets/{Quote.css → components/quote/Quote.style.css} +0 -0
- /package/dist/assets/{Row.css → components/row/Row.style.css} +0 -0
- /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.d.ts +0 -0
- /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.js +0 -0
- /package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.d.ts +0 -0
- /package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Namespace } from '@code0-tech/sagittarius-graphql-types';
|
|
2
2
|
import { DNamespaceView } from './DNamespace.view';
|
|
3
|
-
import { ReactiveArrayService } from '../../utils
|
|
3
|
+
import { ReactiveArrayService } from '../../utils';
|
|
4
4
|
export declare abstract class DNamespaceReactiveService extends ReactiveArrayService<DNamespaceView> {
|
|
5
5
|
getById(id: Namespace['id']): DNamespaceView | undefined;
|
|
6
6
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import "../../utils/contextStore.js";
|
|
2
|
+
import "react";
|
|
1
3
|
import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//inject: either userId or organizationId because the namespaces query needs it
|
|
4
|
+
import "merge-props";
|
|
5
|
+
class p extends i {
|
|
5
6
|
getById(e) {
|
|
6
7
|
return this.values().find((r) => r.id === e);
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
p as DNamespaceReactiveService
|
|
11
12
|
};
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
export * from './license/DNamespaceLicense.service';
|
|
2
|
-
export * from './license/DNamespaceLicense.view';
|
|
3
|
-
export * from './member/DNamespaceMember.service';
|
|
4
|
-
export * from './member/DNamespaceMember.view';
|
|
5
|
-
export * from './project/DNamespaceProject.service';
|
|
6
|
-
export * from './project/DNamespaceProject.view';
|
|
7
|
-
export * from './project/DNamespaceProjectCard';
|
|
8
|
-
export * from './project/DNamespaceProjectMenu';
|
|
9
|
-
export * from './role/DNamespaceRole.service';
|
|
10
|
-
export * from './role/DNamespaceRole.view';
|
|
11
1
|
export * from './DNamespace.service';
|
|
12
2
|
export * from './DNamespace.view';
|
|
@@ -1,35 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { DNamespaceMemberReactiveService as b } from "./member/DNamespaceMember.service.js";
|
|
4
|
-
import { DNamespaceMemberView as l } from "./member/DNamespaceMember.view.js";
|
|
5
|
-
import { DNamespaceProjectReactiveService as L } from "./project/DNamespaceProject.service.js";
|
|
6
|
-
import { DNamespaceProjectView as P } from "./project/DNamespaceProject.view.js";
|
|
7
|
-
import "react/jsx-runtime";
|
|
8
|
-
import "react";
|
|
9
|
-
import "../../compiler-runtime-BNHg76kC.js";
|
|
10
|
-
import '../../assets/Menu.css';import '../../assets/Badge.css';import '../../assets/Flex.css';import '../../assets/Text.css';import '../../assets/Card.css';/* empty css */
|
|
11
|
-
import "merge-props";
|
|
12
|
-
/* empty css */
|
|
13
|
-
import "@tabler/icons-react";
|
|
14
|
-
import "../../utils/contextStore.js";
|
|
15
|
-
/* empty css */
|
|
16
|
-
import "../button/Button.js";
|
|
17
|
-
/* empty css */
|
|
18
|
-
import { DNamespaceReactiveService as g } from "./DNamespace.service.js";
|
|
19
|
-
/* empty css */
|
|
20
|
-
import "@radix-ui/react-dropdown-menu";
|
|
21
|
-
import { DNamespaceRoleReactiveService as k } from "./role/DNamespaceRole.service.js";
|
|
22
|
-
import { DNamespaceRoleView as u } from "./role/DNamespaceRole.view.js";
|
|
23
|
-
import { DNamespaceView as z } from "./DNamespace.view.js";
|
|
1
|
+
import { DNamespaceReactiveService as r } from "./DNamespace.service.js";
|
|
2
|
+
import { DNamespaceView as m } from "./DNamespace.view.js";
|
|
24
3
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
b as DNamespaceMemberReactiveService,
|
|
28
|
-
l as DNamespaceMemberView,
|
|
29
|
-
L as DNamespaceProjectReactiveService,
|
|
30
|
-
P as DNamespaceProjectView,
|
|
31
|
-
g as DNamespaceReactiveService,
|
|
32
|
-
k as DNamespaceRoleReactiveService,
|
|
33
|
-
u as DNamespaceRoleView,
|
|
34
|
-
z as DNamespaceView
|
|
4
|
+
r as DNamespaceReactiveService,
|
|
5
|
+
m as DNamespaceView
|
|
35
6
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ReactiveArrayService } from '../../utils
|
|
1
|
+
import { ReactiveArrayService } from '../../utils';
|
|
2
2
|
import { DOrganizationView } from './DOrganization.view';
|
|
3
|
-
import { OrganizationsCreateInput, OrganizationsCreatePayload, OrganizationsDeleteInput, OrganizationsDeletePayload
|
|
3
|
+
import { Organization, OrganizationsCreateInput, OrganizationsCreatePayload, OrganizationsDeleteInput, OrganizationsDeletePayload } from '@code0-tech/sagittarius-graphql-types';
|
|
4
4
|
export declare abstract class DOrganizationReactiveService extends ReactiveArrayService<DOrganizationView> {
|
|
5
|
-
getById(id:
|
|
5
|
+
getById(id: Organization["id"]): DOrganizationView | undefined;
|
|
6
6
|
abstract organizationCreate(payload: OrganizationsCreateInput): Promise<OrganizationsCreatePayload | undefined>;
|
|
7
7
|
abstract organizationDelete(payload: OrganizationsDeleteInput): Promise<OrganizationsDeletePayload | undefined>;
|
|
8
8
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import "../../utils/contextStore.js";
|
|
2
|
+
import "react";
|
|
1
3
|
import { ReactiveArrayService as r } from "../../utils/reactiveArrayService.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//no id's need to be injected here because the root query has a organizations field
|
|
4
|
+
import "merge-props";
|
|
5
|
+
class n extends r {
|
|
5
6
|
getById(e) {
|
|
6
7
|
return this.values().find((i) => i.id === e);
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
n as DOrganizationReactiveService
|
|
11
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Maybe, Namespace, Organization, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
1
|
+
import { Maybe, Namespace, Organization, OrganizationUserAbilities, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
2
2
|
export declare class DOrganizationView {
|
|
3
3
|
private readonly _createdAt?;
|
|
4
4
|
/** Global ID of this Organization */
|
|
@@ -9,12 +9,15 @@ export declare class DOrganizationView {
|
|
|
9
9
|
private readonly _namespace?;
|
|
10
10
|
/** Time when this Organization was last updated */
|
|
11
11
|
private readonly _updatedAt?;
|
|
12
|
+
/** Abilities for the current user on this Organization */
|
|
13
|
+
private readonly _userAbilities?;
|
|
12
14
|
constructor(payload: Organization);
|
|
13
15
|
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
14
16
|
get id(): Maybe<Scalars["OrganizationID"]["output"] | undefined>;
|
|
15
17
|
get name(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
16
18
|
get namespace(): Maybe<Namespace> | undefined;
|
|
17
19
|
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
20
|
+
get userAbilities(): Maybe<OrganizationUserAbilities> | undefined;
|
|
18
21
|
set name(value: Maybe<Scalars["String"]["output"]>);
|
|
19
22
|
json(): Organization;
|
|
20
23
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
function
|
|
2
|
-
return (
|
|
1
|
+
function i(t, e, r) {
|
|
2
|
+
return (e = n(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
3
3
|
}
|
|
4
|
-
function
|
|
5
|
-
var
|
|
6
|
-
return typeof
|
|
4
|
+
function n(t) {
|
|
5
|
+
var e = a(t, "string");
|
|
6
|
+
return typeof e == "symbol" ? e : e + "";
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
if (typeof
|
|
10
|
-
var
|
|
11
|
-
if (
|
|
12
|
-
var
|
|
13
|
-
if (typeof
|
|
8
|
+
function a(t, e) {
|
|
9
|
+
if (typeof t != "object" || !t) return t;
|
|
10
|
+
var r = t[Symbol.toPrimitive];
|
|
11
|
+
if (r !== void 0) {
|
|
12
|
+
var s = r.call(t, e);
|
|
13
|
+
if (typeof s != "object") return s;
|
|
14
14
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
15
|
}
|
|
16
|
-
return (
|
|
16
|
+
return (e === "string" ? String : Number)(t);
|
|
17
17
|
}
|
|
18
|
-
class
|
|
19
|
-
constructor(
|
|
20
|
-
|
|
18
|
+
class u {
|
|
19
|
+
constructor(e) {
|
|
20
|
+
i(this, "_createdAt", void 0), i(this, "_id", void 0), i(this, "_name", void 0), i(this, "_namespace", void 0), i(this, "_updatedAt", void 0), i(this, "_userAbilities", void 0), this._createdAt = e.createdAt, this._id = e.id, this._name = e.name, this._namespace = e.namespace, this._updatedAt = e.updatedAt, this._userAbilities = e.userAbilities;
|
|
21
21
|
}
|
|
22
22
|
get createdAt() {
|
|
23
23
|
return this._createdAt;
|
|
@@ -34,8 +34,11 @@ class d {
|
|
|
34
34
|
get updatedAt() {
|
|
35
35
|
return this._updatedAt;
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
this.
|
|
37
|
+
get userAbilities() {
|
|
38
|
+
return this._userAbilities;
|
|
39
|
+
}
|
|
40
|
+
set name(e) {
|
|
41
|
+
this._name = e;
|
|
39
42
|
}
|
|
40
43
|
json() {
|
|
41
44
|
return {
|
|
@@ -48,5 +51,5 @@ class d {
|
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
export {
|
|
51
|
-
|
|
54
|
+
u as DOrganizationView
|
|
52
55
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { Code0Component } from '../../utils
|
|
2
|
+
import { Code0Component } from '../../utils';
|
|
3
3
|
import { Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
4
4
|
export interface DOrganizationCardProps extends Code0Component<HTMLDivElement> {
|
|
5
5
|
organizationId: Scalars['OrganizationID']['output'];
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
onSetting?: (organizationId: Scalars['OrganizationID']['output']) => void;
|
|
7
|
+
onLeave?: (organizationId: Scalars['OrganizationID']['output']) => void;
|
|
8
8
|
}
|
|
9
9
|
declare const DOrganizationCard: React.FC<DOrganizationCardProps>;
|
|
10
10
|
export default DOrganizationCard;
|
|
@@ -1,63 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { Card as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import { DNamespaceLicenseReactiveService as h } from "../d-namespace/license/DNamespaceLicense.service.js";
|
|
14
|
-
const K = (z) => {
|
|
15
|
-
const {
|
|
16
|
-
organizationId: n,
|
|
17
|
-
onSettingsClick: S = () => {
|
|
18
|
-
},
|
|
19
|
-
onLeaveClick: y = () => {
|
|
20
|
-
}
|
|
21
|
-
} = z, v = t(f), x = c(f), C = t(g), I = c(g), b = t(h);
|
|
22
|
-
c(h);
|
|
23
|
-
const o = x.getById(n);
|
|
24
|
-
if (!o?.namespace?.id) return;
|
|
25
|
-
const m = I.getById(o?.namespace?.id), l = o?.namespace?.projects?.count, p = m?.members?.count, d = m?.runtimes?.count;
|
|
26
|
-
return j.useMemo(() => /* @__PURE__ */ r(k, { maw: "400px", children: [
|
|
27
|
-
/* @__PURE__ */ r(a, { align: "center", style: {
|
|
28
|
-
gap: "0.7rem"
|
|
29
|
-
}, justify: "space-between", children: [
|
|
30
|
-
/* @__PURE__ */ e(i, { size: "lg", hierarchy: "primary", display: "block", children: o?.name }),
|
|
31
|
-
/* @__PURE__ */ r(a, { align: "center", style: {
|
|
32
|
-
gap: "0.35rem"
|
|
33
|
-
}, children: [
|
|
34
|
-
/* @__PURE__ */ e(u, { color: "secondary", onClick: () => S(n), children: /* @__PURE__ */ e($, { size: 16 }) }),
|
|
35
|
-
/* @__PURE__ */ r(u, { color: "error", onClick: () => y(n), children: [
|
|
36
|
-
/* @__PURE__ */ e(B, { size: 16 }),
|
|
37
|
-
" Leave"
|
|
38
|
-
] })
|
|
39
|
-
] })
|
|
40
|
-
] }),
|
|
41
|
-
/* @__PURE__ */ e(i, { size: "sm", hierarchy: "tertiary", display: "block", children: o?.name }),
|
|
42
|
-
/* @__PURE__ */ e(w, { border: !0, children: /* @__PURE__ */ r(a, { align: "center", style: {
|
|
43
|
-
gap: "0.35rem",
|
|
44
|
-
flexWrap: "wrap"
|
|
45
|
-
}, children: [
|
|
46
|
-
/* @__PURE__ */ r(s, { color: "info", children: [
|
|
47
|
-
/* @__PURE__ */ e(D, { size: 18 }),
|
|
48
|
-
/* @__PURE__ */ e(i, { size: "xs", children: `${l ?? 0} project${(l ?? 0) !== 1 ? "s" : ""}` })
|
|
49
|
-
] }),
|
|
50
|
-
/* @__PURE__ */ r(s, { color: "info", children: [
|
|
51
|
-
/* @__PURE__ */ e(L, { size: 18 }),
|
|
52
|
-
/* @__PURE__ */ e(i, { size: "xs", children: `${p ?? 0} member${(p ?? 0) !== 1 ? "s" : ""}` })
|
|
53
|
-
] }),
|
|
54
|
-
/* @__PURE__ */ r(s, { color: "info", children: [
|
|
55
|
-
/* @__PURE__ */ e(R, { size: 18 }),
|
|
56
|
-
/* @__PURE__ */ e(i, { size: "xs", children: `${d ?? 0} runtime${(d ?? 0) !== 1 ? "s" : ""}` })
|
|
57
|
-
] })
|
|
58
|
-
] }) })
|
|
59
|
-
] }), [v, C, b]);
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as m } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { Card as s } from "../card/Card.js";
|
|
4
|
+
import { DOrganizationContent as c } from "./DOrganizatonContent.js";
|
|
5
|
+
const g = (a) => {
|
|
6
|
+
const o = m.c(4), {
|
|
7
|
+
organizationId: r,
|
|
8
|
+
onLeave: n,
|
|
9
|
+
onSetting: i
|
|
10
|
+
} = a;
|
|
11
|
+
let t;
|
|
12
|
+
return o[0] !== n || o[1] !== i || o[2] !== r ? (t = /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(c, { onLeave: n, onSetting: i, organizationId: r }) }), o[0] = n, o[1] = i, o[2] = r, o[3] = t) : t = o[3], t;
|
|
60
13
|
};
|
|
61
14
|
export {
|
|
62
|
-
|
|
15
|
+
g as default
|
|
63
16
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Card } from '../card/Card';
|
|
3
|
+
import { DOrganizationView } from './DOrganization.view';
|
|
4
|
+
import { Organization } from '@code0-tech/sagittarius-graphql-types';
|
|
5
|
+
export interface DOrganizationListProps extends Omit<Card, "children" | "onSelect"> {
|
|
6
|
+
filter?: (organizations: DOrganizationView, index: number) => boolean;
|
|
7
|
+
onSetting?: (organizationId: Organization['id']) => void;
|
|
8
|
+
onLeave?: (organizationId: Organization['id']) => void;
|
|
9
|
+
onSelect?: (organizationId: Organization['id']) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const DOrganizationList: React.FC<DOrganizationListProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import p from "react";
|
|
3
|
+
import { Card as u } from "../card/Card.js";
|
|
4
|
+
import { useService as S, useStore as l } from "../../utils/contextStore.js";
|
|
5
|
+
import "merge-props";
|
|
6
|
+
import { DOrganizationReactiveService as e } from "./DOrganization.service.js";
|
|
7
|
+
import v from "../card/CardSection.js";
|
|
8
|
+
import { DOrganizationContent as g } from "./DOrganizatonContent.js";
|
|
9
|
+
const b = (i) => {
|
|
10
|
+
const n = S(e), m = l(e), a = p.useMemo(() => n.values(), [m]), {
|
|
11
|
+
filter: c = () => !0,
|
|
12
|
+
onLeave: s,
|
|
13
|
+
onSetting: d,
|
|
14
|
+
onSelect: t,
|
|
15
|
+
...f
|
|
16
|
+
} = i;
|
|
17
|
+
return /* @__PURE__ */ o(u, { ...f, children: a.filter(c).map((r) => r.id && /* @__PURE__ */ o(v, { border: !0, hover: !0, onClick: () => {
|
|
18
|
+
t && t(r.id);
|
|
19
|
+
}, children: /* @__PURE__ */ o(g, { onLeave: s, onSetting: d, organizationId: r?.id }) }, r.id)) });
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
b as DOrganizationList
|
|
23
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Code0Component } from '../../utils';
|
|
3
|
+
import { Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
export interface DOrganizationCardProps extends Code0Component<HTMLDivElement> {
|
|
5
|
+
organizationId: Scalars['OrganizationID']['output'];
|
|
6
|
+
onSetting?: (organizationId: Scalars['OrganizationID']['output']) => void;
|
|
7
|
+
onLeave?: (organizationId: Scalars['OrganizationID']['output']) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const DOrganizationContent: React.FC<DOrganizationCardProps>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import c from "react";
|
|
3
|
+
import { useStore as s, useService as a } from "../../utils/contextStore.js";
|
|
4
|
+
import "merge-props";
|
|
5
|
+
import { Text as m } from "../text/Text.js";
|
|
6
|
+
import { DOrganizationReactiveService as f } from "./DOrganization.service.js";
|
|
7
|
+
import { IconFolder as k, IconUser as L, IconServer as N, IconSettings as w, IconLogout as F } from "@tabler/icons-react";
|
|
8
|
+
import { Flex as o } from "../flex/Flex.js";
|
|
9
|
+
import { Button as v } from "../button/Button.js";
|
|
10
|
+
import { Spacing as P } from "../spacing/Spacing.js";
|
|
11
|
+
import { Avatar as T } from "../avatar/Avatar.js";
|
|
12
|
+
import { DUserReactiveService as z } from "../d-user/DUser.service.js";
|
|
13
|
+
import "../../_virtual/compiler-runtime.js";
|
|
14
|
+
import '../../assets/components/card/Card.style.css';import '../../assets/components/menu/Menu.style.css';/* empty css */
|
|
15
|
+
import "@radix-ui/react-dropdown-menu";
|
|
16
|
+
/* empty css */
|
|
17
|
+
import { useUserSession as W } from "../d-user/DUser.session.hook.js";
|
|
18
|
+
import { Badge as d } from "../badge/Badge.js";
|
|
19
|
+
import { DNamespaceReactiveService as b } from "../d-namespace/DNamespace.service.js";
|
|
20
|
+
import { DNamespaceMemberReactiveService as x } from "../d-member/DNamespaceMember.service.js";
|
|
21
|
+
const ae = (I) => {
|
|
22
|
+
const {
|
|
23
|
+
organizationId: n,
|
|
24
|
+
onLeave: M = () => {
|
|
25
|
+
},
|
|
26
|
+
onSetting: j = () => {
|
|
27
|
+
}
|
|
28
|
+
} = I, B = s(f), C = a(f), D = s(b), $ = a(b), A = s(x), R = a(x), U = a(z), O = s(z), g = W(), l = c.useMemo(() => U.getById(g?.user?.id), [O, g]), t = c.useMemo(() => n ? C.getById(n) : null, [B, n]), i = c.useMemo(() => t ? $.getById(t.namespace?.id) : null, [D, t]), u = c.useMemo(() => i && l ? R.getByNamespaceIdAndUserId(i.id, l.id) : null, [A, i, l]), y = i?.projects?.count, h = i?.members?.count, S = i?.runtimes?.count;
|
|
29
|
+
return /* @__PURE__ */ r(o, { align: "center", style: {
|
|
30
|
+
gap: "1.3rem"
|
|
31
|
+
}, justify: "space-between", children: [
|
|
32
|
+
/* @__PURE__ */ r(o, { align: "center", style: {
|
|
33
|
+
gap: "1.3rem"
|
|
34
|
+
}, children: [
|
|
35
|
+
/* @__PURE__ */ e(T, { bg: "transparent", identifier: t?.name ?? "" }),
|
|
36
|
+
/* @__PURE__ */ r(o, { style: {
|
|
37
|
+
flexDirection: "column"
|
|
38
|
+
}, children: [
|
|
39
|
+
/* @__PURE__ */ e(m, { size: "lg", hierarchy: "primary", display: "block", children: t?.name }),
|
|
40
|
+
/* @__PURE__ */ e(P, { spacing: "xxs" }),
|
|
41
|
+
/* @__PURE__ */ r(o, { align: "center", style: {
|
|
42
|
+
gap: "0.35rem",
|
|
43
|
+
flexWrap: "wrap"
|
|
44
|
+
}, children: [
|
|
45
|
+
/* @__PURE__ */ e(d, { color: "secondary", children: /* @__PURE__ */ r(o, { align: "center", style: {
|
|
46
|
+
gap: "0.35rem"
|
|
47
|
+
}, children: [
|
|
48
|
+
/* @__PURE__ */ e(k, { size: 16 }),
|
|
49
|
+
/* @__PURE__ */ e(m, { size: "xs", hierarchy: "tertiary", children: `${y ?? 0} project${(y ?? 0) !== 1 ? "s" : ""}` })
|
|
50
|
+
] }) }),
|
|
51
|
+
/* @__PURE__ */ e(d, { color: "secondary", children: /* @__PURE__ */ r(o, { align: "center", style: {
|
|
52
|
+
gap: "0.35rem"
|
|
53
|
+
}, children: [
|
|
54
|
+
/* @__PURE__ */ e(L, { size: 16 }),
|
|
55
|
+
/* @__PURE__ */ r(m, { size: "xs", hierarchy: "tertiary", children: [
|
|
56
|
+
" ",
|
|
57
|
+
`${h ?? 0} member${(h ?? 0) !== 1 ? "s" : ""}`
|
|
58
|
+
] })
|
|
59
|
+
] }) }),
|
|
60
|
+
/* @__PURE__ */ e(d, { color: "secondary", children: /* @__PURE__ */ r(o, { align: "center", style: {
|
|
61
|
+
gap: "0.35rem"
|
|
62
|
+
}, children: [
|
|
63
|
+
/* @__PURE__ */ e(N, { size: 16 }),
|
|
64
|
+
/* @__PURE__ */ e(m, { size: "xs", hierarchy: "tertiary", children: `${S ?? 0} runtime${(S ?? 0) !== 1 ? "s" : ""}` })
|
|
65
|
+
] }) })
|
|
66
|
+
] })
|
|
67
|
+
] })
|
|
68
|
+
] }),
|
|
69
|
+
/* @__PURE__ */ r(o, { align: "center", style: {
|
|
70
|
+
gap: "0.35rem"
|
|
71
|
+
}, children: [
|
|
72
|
+
t?.userAbilities?.deleteOrganization || t?.userAbilities?.updateOrganization ? /* @__PURE__ */ e(v, { color: "secondary", onClick: (p) => {
|
|
73
|
+
p.stopPropagation(), j(n);
|
|
74
|
+
}, children: /* @__PURE__ */ e(w, { size: 16 }) }) : null,
|
|
75
|
+
u && u.userAbilities?.deleteMember ? /* @__PURE__ */ r(v, { color: "error", onClick: (p) => {
|
|
76
|
+
p.stopPropagation(), M(n);
|
|
77
|
+
}, children: [
|
|
78
|
+
/* @__PURE__ */ e(F, { size: 16 }),
|
|
79
|
+
" Leave"
|
|
80
|
+
] }) : null
|
|
81
|
+
] })
|
|
82
|
+
] });
|
|
83
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
ae as DOrganizationContent
|
|
86
|
+
};
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import { DOrganizationReactiveService as
|
|
2
|
-
import { DOrganizationView as
|
|
1
|
+
import { DOrganizationReactiveService as w } from "./DOrganization.service.js";
|
|
2
|
+
import { DOrganizationView as R } from "./DOrganization.view.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
|
+
import "../../_virtual/compiler-runtime.js";
|
|
5
|
+
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 */
|
|
4
6
|
import "react";
|
|
5
|
-
import "../../compiler-runtime-BNHg76kC.js";
|
|
6
|
-
import '../../assets/Menu.css';import '../../assets/Flex.css';import '../../assets/Badge.css';import '../../assets/Text.css';import '../../assets/Card.css';/* empty css */
|
|
7
7
|
import "merge-props";
|
|
8
|
-
/* empty css */
|
|
9
8
|
import "../../utils/contextStore.js";
|
|
9
|
+
/* empty css */
|
|
10
10
|
import "@tabler/icons-react";
|
|
11
|
-
/* empty css
|
|
12
|
-
/* empty css */
|
|
11
|
+
/* empty css */
|
|
13
12
|
import "../button/Button.js";
|
|
14
|
-
/* empty css
|
|
13
|
+
/* empty css */
|
|
14
|
+
import "js-md5";
|
|
15
|
+
/* empty css */
|
|
16
|
+
/* empty css */
|
|
15
17
|
import "@radix-ui/react-dropdown-menu";
|
|
18
|
+
/* empty css */
|
|
19
|
+
import { DOrganizationList as V } from "./DOrganizationList.js";
|
|
16
20
|
export {
|
|
17
|
-
|
|
18
|
-
w as
|
|
21
|
+
V as DOrganizationList,
|
|
22
|
+
w as DOrganizationReactiveService,
|
|
23
|
+
R as DOrganizationView
|
|
19
24
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Namespace, NamespaceProject, NamespacesProjectsAssignRuntimesInput, NamespacesProjectsAssignRuntimesPayload, NamespacesProjectsCreateInput, NamespacesProjectsCreatePayload, NamespacesProjectsDeleteInput, NamespacesProjectsDeletePayload } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
+
import { DNamespaceProjectView } from './DNamespaceProject.view';
|
|
3
|
+
import { ReactiveArrayService } from '../../utils';
|
|
4
|
+
export type DProjectDependencies = {
|
|
5
|
+
namespaceId: Namespace['id'];
|
|
6
|
+
};
|
|
7
|
+
export declare abstract class DNamespaceProjectReactiveService extends ReactiveArrayService<DNamespaceProjectView, DProjectDependencies> {
|
|
8
|
+
getById(id: NamespaceProject['id'], dependencies?: DProjectDependencies): DNamespaceProjectView | undefined;
|
|
9
|
+
abstract projectAssignRuntimes(payload: NamespacesProjectsAssignRuntimesInput): Promise<NamespacesProjectsAssignRuntimesPayload | undefined>;
|
|
10
|
+
abstract projectCreate(payload: NamespacesProjectsCreateInput): Promise<NamespacesProjectsCreatePayload | undefined>;
|
|
11
|
+
abstract projectDelete(payload: NamespacesProjectsDeleteInput): Promise<NamespacesProjectsDeletePayload | undefined>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../../utils/contextStore.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
|
|
4
|
+
import "merge-props";
|
|
5
|
+
class s extends i {
|
|
6
|
+
getById(e, r) {
|
|
7
|
+
return this.values(r).find((t) => t.id === e);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
s as DNamespaceProjectReactiveService
|
|
12
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Flow, FlowConnection, Maybe, Namespace, NamespaceProject, Runtime, RuntimeConnection, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
1
|
+
import { Flow, FlowConnection, Maybe, Namespace, NamespaceProject, NamespaceProjectUserAbilities, 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?;
|
|
@@ -20,6 +20,8 @@ export declare class DNamespaceProjectView {
|
|
|
20
20
|
private readonly _runtimes?;
|
|
21
21
|
/** Time when this NamespaceProject was last updated */
|
|
22
22
|
private readonly _updatedAt?;
|
|
23
|
+
/** Abilities for the current user on this NamespaceProject */
|
|
24
|
+
private readonly _userAbilities?;
|
|
23
25
|
constructor(payload: NamespaceProject);
|
|
24
26
|
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
25
27
|
get description(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
@@ -31,5 +33,6 @@ export declare class DNamespaceProjectView {
|
|
|
31
33
|
get primaryRuntime(): Maybe<Runtime> | undefined;
|
|
32
34
|
get runtimes(): Maybe<RuntimeConnection> | undefined;
|
|
33
35
|
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
36
|
+
get userAbilities(): Maybe<NamespaceProjectUserAbilities> | undefined;
|
|
34
37
|
json(): NamespaceProject;
|
|
35
38
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
function i
|
|
2
|
-
return (t = n(t)) in
|
|
1
|
+
function e(i, t, r) {
|
|
2
|
+
return (t = n(t)) in i ? Object.defineProperty(i, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = r, i;
|
|
3
3
|
}
|
|
4
|
-
function n(
|
|
5
|
-
var t = u(
|
|
4
|
+
function n(i) {
|
|
5
|
+
var t = u(i, "string");
|
|
6
6
|
return typeof t == "symbol" ? t : t + "";
|
|
7
7
|
}
|
|
8
|
-
function u(
|
|
9
|
-
if (typeof
|
|
10
|
-
var r =
|
|
8
|
+
function u(i, t) {
|
|
9
|
+
if (typeof i != "object" || !i) return i;
|
|
10
|
+
var r = i[Symbol.toPrimitive];
|
|
11
11
|
if (r !== void 0) {
|
|
12
|
-
var s = r.call(
|
|
12
|
+
var s = r.call(i, t);
|
|
13
13
|
if (typeof s != "object") return s;
|
|
14
14
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
15
|
}
|
|
16
|
-
return (t === "string" ? String : Number)(
|
|
16
|
+
return (t === "string" ? String : Number)(i);
|
|
17
17
|
}
|
|
18
18
|
class o {
|
|
19
19
|
constructor(t) {
|
|
20
|
-
|
|
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;
|
|
21
21
|
}
|
|
22
22
|
get createdAt() {
|
|
23
23
|
return this._createdAt;
|
|
@@ -49,6 +49,9 @@ class o {
|
|
|
49
49
|
get updatedAt() {
|
|
50
50
|
return this._updatedAt;
|
|
51
51
|
}
|
|
52
|
+
get userAbilities() {
|
|
53
|
+
return this._userAbilities;
|
|
54
|
+
}
|
|
52
55
|
json() {
|
|
53
56
|
return {
|
|
54
57
|
createdAt: this._createdAt,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { Code0Component } from '
|
|
2
|
+
import { Code0Component } from '../../utils';
|
|
3
3
|
import { Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
4
4
|
export interface DNamespaceProjectCardProps extends Code0Component<HTMLDivElement> {
|
|
5
5
|
projectId: Scalars['NamespaceProjectID']['output'];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as m } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { Card as s } from "../card/Card.js";
|
|
4
|
+
import { DNamespaceProjectContent as i } from "./DNamespaceProjectContent.js";
|
|
5
|
+
const d = (c) => {
|
|
6
|
+
const t = m.c(2), {
|
|
7
|
+
projectId: r,
|
|
8
|
+
onSettingsClick: n
|
|
9
|
+
} = c;
|
|
10
|
+
let o;
|
|
11
|
+
return t[0] !== r ? (o = /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(i, { projectId: r }) }), t[0] = r, t[1] = o) : o = t[1], o;
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
d as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Code0Component } from '../../utils';
|
|
2
|
+
import { NamespaceProject } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
export interface DNamespaceProjectContentProps extends Code0Component<HTMLDivElement> {
|
|
5
|
+
projectId: NamespaceProject["id"];
|
|
6
|
+
onSetting?: (projectId: NamespaceProject["id"]) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const DNamespaceProjectContent: React.FC<DNamespaceProjectContentProps>;
|