@code0-tech/pictor 0.0.0-mvp.45 → 0.0.0-mvp.47
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/components/avatar/Avatar.js +6 -7
- package/dist/components/data-table/DataTableFilterInput.js +5 -3
- package/dist/components/editor/Editor.js +29 -30
- package/dist/components/form/InputSuggestion.js +29 -29
- package/dist/components/form/useForm.d.ts +3 -3
- package/dist/components/form/useForm.js +16 -16
- package/dist/components/{d-fullscreen/DFullScreen.d.ts → fullscreen/FullScreen.d.ts} +2 -2
- package/dist/components/{d-fullscreen/DFullScreen.js → fullscreen/FullScreen.js} +2 -2
- package/dist/components/{d-layout/DLayout.d.ts → layout/Layout.d.ts} +2 -2
- package/dist/components/{d-layout/DLayout.js → layout/Layout.js} +11 -11
- package/dist/components/menu/Menu.js +8 -8
- package/dist/components/resizable/Resizable.d.ts +12 -0
- package/dist/components/{d-resizable/DResizable.js → resizable/Resizable.js} +7 -7
- package/dist/components/tab/Tab.js +4 -4
- package/dist/components/toast/Toast.js +1 -1
- package/dist/index.d.ts +0 -20
- package/dist/index.js +152 -273
- package/dist/node_modules/prettier/plugins/babel.js +6674 -6685
- package/dist/node_modules/prettier/plugins/estree.js +2830 -2628
- package/dist/node_modules/prettier/standalone.js +1657 -1440
- package/package.json +29 -29
- package/dist/assets/components/d-flow/DFlow.style.css +0 -1
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +0 -1
- package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +0 -1
- package/dist/assets/components/d-flow-node/DFlowNode.style.css +0 -1
- package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +0 -1
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +0 -1
- package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +0 -1
- package/dist/assets/node_modules/@xyflow/react/dist/style.css +0 -1
- package/dist/assets/node_modules/ldrs/dist/react/LineWobble.css +0 -1
- package/dist/components/d-application/DApplication.service.d.ts +0 -9
- package/dist/components/d-application/DApplication.service.js +0 -10
- package/dist/components/d-flow/DFlow.d.ts +0 -9
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +0 -4
- package/dist/components/d-flow/DFlow.edges.hook.js +0 -110
- package/dist/components/d-flow/DFlow.js +0 -484
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +0 -4
- package/dist/components/d-flow/DFlow.nodes.hook.js +0 -128
- package/dist/components/d-flow/DFlow.service.d.ts +0 -21
- package/dist/components/d-flow/DFlow.service.js +0 -148
- package/dist/components/d-flow/DFlow.util.d.ts +0 -4
- package/dist/components/d-flow/DFlow.util.js +0 -63
- package/dist/components/d-flow/DFlow.view.d.ts +0 -4
- package/dist/components/d-flow/DFlow.view.js +0 -1
- package/dist/components/d-flow/DFlowEdge.d.ts +0 -12
- package/dist/components/d-flow/DFlowEdge.js +0 -69
- package/dist/components/d-flow/index.d.ts +0 -4
- package/dist/components/d-flow/index.js +0 -10
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +0 -15
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +0 -203
- package/dist/components/d-flow-data-type/DFlowDataType.view.d.ts +0 -41
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +0 -76
- package/dist/components/d-flow-data-type/index.d.ts +0 -2
- package/dist/components/d-flow-data-type/index.js +0 -6
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -222
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -229
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -4
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.d.ts +0 -8
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.js +0 -217
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.d.ts +0 -4
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +0 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -250
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.d.ts +0 -8
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.js +0 -10
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.d.ts +0 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +0 -10
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.d.ts +0 -4
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.js +0 -214
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.d.ts +0 -4
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.js +0 -1
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.d.ts +0 -3
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.js +0 -5
- package/dist/components/d-flow-file/DFlowTabDefault.d.ts +0 -7
- package/dist/components/d-flow-file/DFlowTabDefault.js +0 -105
- package/dist/components/d-flow-file/DFlowTabTrigger.d.ts +0 -6
- package/dist/components/d-flow-file/DFlowTabTrigger.js +0 -75
- package/dist/components/d-flow-file/DFlowTabs.d.ts +0 -8
- package/dist/components/d-flow-file/DFlowTabs.js +0 -84
- package/dist/components/d-flow-file/index.d.ts +0 -1
- package/dist/components/d-flow-file/index.js +0 -4
- package/dist/components/d-flow-folder/DFlowFolder.d.ts +0 -36
- package/dist/components/d-flow-folder/DFlowFolder.js +0 -273
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +0 -18
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +0 -53
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +0 -9
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +0 -115
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +0 -10
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +0 -64
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +0 -5
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +0 -51
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +0 -10
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +0 -59
- package/dist/components/d-flow-folder/index.d.ts +0 -4
- package/dist/components/d-flow-folder/index.js +0 -13
- package/dist/components/d-flow-function/DFlowFunction.input.hook.d.ts +0 -5
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +0 -8
- package/dist/components/d-flow-function/DFlowFunction.return.hook.d.ts +0 -5
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +0 -9
- package/dist/components/d-flow-function/DFlowFunction.service.d.ts +0 -11
- package/dist/components/d-flow-function/DFlowFunction.service.js +0 -13
- package/dist/components/d-flow-function/DFlowFunction.view.d.ts +0 -81
- package/dist/components/d-flow-function/DFlowFunction.view.js +0 -139
- package/dist/components/d-flow-function/index.d.ts +0 -2
- package/dist/components/d-flow-function/index.js +0 -7
- package/dist/components/d-flow-input/DFlowInputDataType.d.ts +0 -15
- package/dist/components/d-flow-input/DFlowInputDataType.js +0 -131
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.d.ts +0 -9
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +0 -102
- package/dist/components/d-flow-input/DFlowInputDefault.d.ts +0 -10
- package/dist/components/d-flow-input/DFlowInputDefault.js +0 -129
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +0 -7
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +0 -24
- package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +0 -47
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +0 -33
- package/dist/components/d-flow-node/DFlowNode.d.ts +0 -10
- package/dist/components/d-flow-node/DFlowNode.js +0 -1
- package/dist/components/d-flow-node/DFlowNode.return.hook.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNode.return.hook.js +0 -27
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.js +0 -118
- package/dist/components/d-flow-node/DFlowNodeGroupCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeGroupCard.js +0 -69
- package/dist/components/d-flow-node/DFlowNodeTriggerCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeTriggerCard.js +0 -66
- package/dist/components/d-flow-panel/DFlowExport.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowExport.js +0 -33
- package/dist/components/d-flow-panel/DFlowMiniMap.d.ts +0 -2
- package/dist/components/d-flow-panel/DFlowMiniMap.js +0 -15
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowPanelControl.js +0 -51
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +0 -4
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +0 -38
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +0 -2
- package/dist/components/d-flow-panel/DFlowPanelSize.js +0 -89
- package/dist/components/d-flow-panel/DFlowPanelUpdate.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowPanelUpdate.js +0 -77
- package/dist/components/d-flow-panel/index.d.ts +0 -5
- package/dist/components/d-flow-panel/index.js +0 -12
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +0 -34
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +0 -50
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +0 -132
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +0 -28
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +0 -14
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +0 -4
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.d.ts +0 -8
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +0 -73
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.js +0 -43
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.d.ts +0 -2
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.js +0 -69
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.d.ts +0 -6
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.js +0 -21
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.d.ts +0 -7
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +0 -36
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +0 -44
- package/dist/components/d-flow-suggestion/index.d.ts +0 -1
- package/dist/components/d-flow-suggestion/index.js +0 -4
- package/dist/components/d-flow-type/DFlowType.service.d.ts +0 -11
- package/dist/components/d-flow-type/DFlowType.service.js +0 -13
- package/dist/components/d-flow-type/DFlowType.view.d.ts +0 -44
- package/dist/components/d-flow-type/DFlowType.view.js +0 -93
- package/dist/components/d-flow-type/index.d.ts +0 -2
- package/dist/components/d-flow-type/index.js +0 -6
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +0 -2
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +0 -18
- package/dist/components/d-flow-validation/DFlowValidation.d.ts +0 -6
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +0 -23
- package/dist/components/d-flow-validation/DFlowValidation.js +0 -67
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +0 -3
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +0 -58
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +0 -4
- package/dist/components/d-flow-validation/DValueValidation.hook.js +0 -9
- package/dist/components/d-flow-validation/index.d.ts +0 -2
- package/dist/components/d-flow-validation/index.js +0 -6
- package/dist/components/d-license/DNamespaceLicense.service.d.ts +0 -11
- package/dist/components/d-license/DNamespaceLicense.service.js +0 -13
- package/dist/components/d-license/DNamespaceLicense.view.d.ts +0 -26
- package/dist/components/d-license/DNamespaceLicense.view.js +0 -57
- package/dist/components/d-license/index.d.ts +0 -2
- package/dist/components/d-license/index.js +0 -6
- package/dist/components/d-member/DNamespaceMember.service.d.ts +0 -13
- package/dist/components/d-member/DNamespaceMember.service.js +0 -18
- package/dist/components/d-member/DNamespaceMember.view.d.ts +0 -29
- package/dist/components/d-member/DNamespaceMember.view.js +0 -62
- package/dist/components/d-member/DNamespaceMemberCard.d.ts +0 -10
- package/dist/components/d-member/DNamespaceMemberCard.js +0 -16
- package/dist/components/d-member/DNamespaceMemberContent.d.ts +0 -10
- package/dist/components/d-member/DNamespaceMemberContent.js +0 -225
- package/dist/components/d-member/DNamespaceMemberList.d.ts +0 -12
- package/dist/components/d-member/DNamespaceMemberList.js +0 -24
- package/dist/components/d-member/index.d.ts +0 -4
- package/dist/components/d-member/index.js +0 -10
- package/dist/components/d-namespace/DNamespace.service.d.ts +0 -6
- package/dist/components/d-namespace/DNamespace.service.js +0 -13
- package/dist/components/d-namespace/DNamespace.view.d.ts +0 -32
- package/dist/components/d-namespace/DNamespace.view.js +0 -65
- package/dist/components/d-namespace/index.d.ts +0 -2
- package/dist/components/d-namespace/index.js +0 -6
- package/dist/components/d-organization/DOrganization.service.d.ts +0 -8
- package/dist/components/d-organization/DOrganization.service.js +0 -13
- package/dist/components/d-organization/DOrganization.view.d.ts +0 -23
- package/dist/components/d-organization/DOrganization.view.js +0 -55
- package/dist/components/d-organization/DOrganizationCard.d.ts +0 -11
- package/dist/components/d-organization/DOrganizationCard.js +0 -16
- package/dist/components/d-organization/DOrganizationList.d.ts +0 -10
- package/dist/components/d-organization/DOrganizationList.js +0 -24
- package/dist/components/d-organization/DOrganizationMenu.d.ts +0 -9
- package/dist/components/d-organization/DOrganizationMenu.js +0 -18
- package/dist/components/d-organization/DOrganizatonContent.d.ts +0 -10
- package/dist/components/d-organization/DOrganizatonContent.js +0 -102
- package/dist/components/d-organization/index.d.ts +0 -5
- package/dist/components/d-organization/index.js +0 -40
- package/dist/components/d-project/DNamespaceProject.service.d.ts +0 -13
- package/dist/components/d-project/DNamespaceProject.service.js +0 -13
- package/dist/components/d-project/DNamespaceProject.view.d.ts +0 -44
- package/dist/components/d-project/DNamespaceProject.view.js +0 -78
- package/dist/components/d-project/DNamespaceProjectCard.d.ts +0 -9
- package/dist/components/d-project/DNamespaceProjectCard.js +0 -17
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +0 -10
- package/dist/components/d-project/DNamespaceProjectContent.js +0 -72
- package/dist/components/d-project/DNamespaceProjectList.d.ts +0 -11
- package/dist/components/d-project/DNamespaceProjectList.js +0 -26
- package/dist/components/d-project/DNamespaceProjectMenu.d.ts +0 -13
- package/dist/components/d-project/DNamespaceProjectMenu.js +0 -57
- package/dist/components/d-project/index.d.ts +0 -5
- package/dist/components/d-project/index.js +0 -27
- package/dist/components/d-resizable/DResizable.d.ts +0 -12
- package/dist/components/d-role/DNamespaceRole.service.d.ts +0 -13
- package/dist/components/d-role/DNamespaceRole.service.js +0 -13
- package/dist/components/d-role/DNamespaceRole.view.d.ts +0 -29
- package/dist/components/d-role/DNamespaceRole.view.js +0 -61
- package/dist/components/d-role/DNamespaceRoleCard.d.ts +0 -11
- package/dist/components/d-role/DNamespaceRoleCard.js +0 -17
- package/dist/components/d-role/DNamespaceRoleContent.d.ts +0 -10
- package/dist/components/d-role/DNamespaceRoleContent.js +0 -163
- package/dist/components/d-role/DNamespaceRoleList.d.ts +0 -12
- package/dist/components/d-role/DNamespaceRoleList.js +0 -25
- package/dist/components/d-role/DNamespaceRolePermissions.d.ts +0 -5
- package/dist/components/d-role/DNamespaceRolePermissions.js +0 -123
- package/dist/components/d-role/index.d.ts +0 -4
- package/dist/components/d-role/index.js +0 -10
- package/dist/components/d-runtime/DRuntime.service.d.ts +0 -12
- package/dist/components/d-runtime/DRuntime.service.js +0 -9
- package/dist/components/d-runtime/DRuntime.view.d.ts +0 -41
- package/dist/components/d-runtime/DRuntime.view.js +0 -76
- package/dist/components/d-runtime/DRuntimeCard.d.ts +0 -9
- package/dist/components/d-runtime/DRuntimeCard.js +0 -18
- package/dist/components/d-runtime/DRuntimeContent.d.ts +0 -9
- package/dist/components/d-runtime/DRuntimeContent.js +0 -46
- package/dist/components/d-runtime/DRuntimeList.d.ts +0 -12
- package/dist/components/d-runtime/DRuntimeList.js +0 -29
- package/dist/components/d-runtime/index.d.ts +0 -4
- package/dist/components/d-runtime/index.js +0 -10
- package/dist/components/d-user/DUser.service.d.ts +0 -20
- package/dist/components/d-user/DUser.service.js +0 -18
- package/dist/components/d-user/DUser.session.hook.d.ts +0 -3
- package/dist/components/d-user/DUser.session.hook.js +0 -16
- package/dist/components/d-user/DUser.view.d.ts +0 -55
- package/dist/components/d-user/DUser.view.js +0 -103
- package/dist/components/d-user/DUserCard.d.ts +0 -8
- package/dist/components/d-user/DUserCard.js +0 -15
- package/dist/components/d-user/DUserContent.d.ts +0 -8
- package/dist/components/d-user/DUserContent.js +0 -52
- package/dist/components/d-user/DUserInput.d.ts +0 -7
- package/dist/components/d-user/DUserInput.js +0 -101
- package/dist/components/d-user/DUserList.d.ts +0 -9
- package/dist/components/d-user/DUserList.js +0 -23
- package/dist/components/d-user/DUserMenu.d.ts +0 -8
- package/dist/components/d-user/DUserMenu.js +0 -30
- package/dist/components/d-user/index.d.ts +0 -7
- package/dist/components/d-user/index.js +0 -27
- package/dist/node_modules/ldrs/dist/react/LineWobble.js +0 -6
- package/dist/utils/generics.d.ts +0 -21
- package/dist/utils/generics.js +0 -385
- /package/dist/assets/components/{d-fullscreen/DFullScreen.style.css → fullscreen/FullScreen.style.css} +0 -0
- /package/dist/assets/components/{d-layout/DLayout.style.css → layout/Layout.style.css} +0 -0
- /package/dist/assets/components/{d-resizable/DResizable.style.css → resizable/Resizable.style.css} +0 -0
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, jsx as e, Fragment as y } from "react/jsx-runtime";
|
|
2
|
-
import g from "react";
|
|
3
|
-
import { Flex as o } from "../flex/Flex.js";
|
|
4
|
-
import { useService as a, useStore as d } from "../../utils/contextStore.js";
|
|
5
|
-
import "merge-props";
|
|
6
|
-
import "js-md5";
|
|
7
|
-
import { DNamespaceRoleReactiveService as x } from "./DNamespaceRole.service.js";
|
|
8
|
-
import { Text as n } from "../text/Text.js";
|
|
9
|
-
import { Button as u } from "../button/Button.js";
|
|
10
|
-
import { IconFolders as G, IconUsers as H, IconEdit as J } from "@tabler/icons-react";
|
|
11
|
-
import { DNamespaceRolePermissions as K } from "./DNamespaceRolePermissions.js";
|
|
12
|
-
import { DNamespaceMemberReactiveService as f } from "../d-member/DNamespaceMember.service.js";
|
|
13
|
-
import "../../_virtual/compiler-runtime.js";
|
|
14
|
-
import { Card as b } from "../card/Card.js";
|
|
15
|
-
import { DUserReactiveService as v } from "../d-user/DUser.service.js";
|
|
16
|
-
import '../../assets/components/dialog/Dialog.style.css';import '../../assets/components/form/Input.style.css';import '../../assets/components/menu/Menu.style.css';/* empty css */
|
|
17
|
-
import "@radix-ui/react-dropdown-menu";
|
|
18
|
-
import { Avatar as S } from "../avatar/Avatar.js";
|
|
19
|
-
import { Badge as m } from "../badge/Badge.js";
|
|
20
|
-
import p from "../card/CardSection.js";
|
|
21
|
-
import "@radix-ui/react-checkbox";
|
|
22
|
-
/* empty css */
|
|
23
|
-
import "../form/EmailInput.js";
|
|
24
|
-
import "../form/Input.js";
|
|
25
|
-
import "../form/InputSuggestion.js";
|
|
26
|
-
import "../form/NumberInput.js";
|
|
27
|
-
import "../form/PasswordInput.js";
|
|
28
|
-
import "@radix-ui/react-one-time-password-field";
|
|
29
|
-
import "@radix-ui/react-radio-group";
|
|
30
|
-
import "../form/SwitchInput.js";
|
|
31
|
-
import "../form/TextInput.js";
|
|
32
|
-
import { Spacing as z } from "../spacing/Spacing.js";
|
|
33
|
-
import { Tooltip as R, TooltipTrigger as A, TooltipPortal as j, TooltipContent as D, TooltipArrow as C } from "../tooltip/Tooltip.js";
|
|
34
|
-
import "@radix-ui/react-dialog";
|
|
35
|
-
/* empty css */
|
|
36
|
-
import { DNamespaceProjectReactiveService as P } from "../d-project/DNamespaceProject.service.js";
|
|
37
|
-
const Pe = (w) => {
|
|
38
|
-
const {
|
|
39
|
-
roleId: h,
|
|
40
|
-
onSetting: I = () => {
|
|
41
|
-
},
|
|
42
|
-
onMembersViewMore: M = () => {
|
|
43
|
-
},
|
|
44
|
-
onProjectsViewMore: N = () => {
|
|
45
|
-
}
|
|
46
|
-
} = w, T = a(x), k = d(x), B = a(P), V = d(P), F = a(f), U = d(f), E = a(v), W = d(v), i = g.useMemo(() => T.getById(h), [k, h]), s = g.useMemo(() => B.values({
|
|
47
|
-
namespaceId: i?.namespace?.id
|
|
48
|
-
}).filter((t) => i?.assignedProjects?.nodes?.map((l) => l?.id).includes(t.id)), [V, i]), c = g.useMemo(() => F.values({
|
|
49
|
-
namespaceId: i?.namespace?.id
|
|
50
|
-
}).filter((t) => t.roles?.nodes?.map((l) => l?.id).includes(i?.id)), [U, W, h]), q = i?.userAbilities?.deleteNamespaceRole || i?.userAbilities?.updateNamespaceRole || i?.userAbilities?.assignRoleAbilities || i?.userAbilities?.assignRoleProjects;
|
|
51
|
-
return /* @__PURE__ */ r(o, { align: "center", style: {
|
|
52
|
-
gap: "1.3rem"
|
|
53
|
-
}, justify: "space-between", children: [
|
|
54
|
-
/* @__PURE__ */ r(o, { align: "center", style: {
|
|
55
|
-
gap: "1.3rem"
|
|
56
|
-
}, children: [
|
|
57
|
-
/* @__PURE__ */ e(n, { size: "lg", hierarchy: "primary", display: "block", children: i?.name }),
|
|
58
|
-
/* @__PURE__ */ r(o, { style: {
|
|
59
|
-
flexDirection: "column",
|
|
60
|
-
gap: "0.35rem"
|
|
61
|
-
}, children: [
|
|
62
|
-
/* @__PURE__ */ e(n, { size: "xs", hierarchy: "tertiary", children: "Permissions" }),
|
|
63
|
-
/* @__PURE__ */ e(K, { abilities: i?.abilities })
|
|
64
|
-
] })
|
|
65
|
-
] }),
|
|
66
|
-
/* @__PURE__ */ r(o, { align: "center", style: {
|
|
67
|
-
gap: "1.3rem"
|
|
68
|
-
}, children: [
|
|
69
|
-
/* @__PURE__ */ r(o, { style: {
|
|
70
|
-
flexDirection: "column",
|
|
71
|
-
gap: "0.35rem"
|
|
72
|
-
}, children: [
|
|
73
|
-
/* @__PURE__ */ e(n, { size: "xs", hierarchy: "tertiary", children: "Usage" }),
|
|
74
|
-
/* @__PURE__ */ r(o, { align: "center", style: {
|
|
75
|
-
gap: "0.35rem"
|
|
76
|
-
}, children: [
|
|
77
|
-
/* @__PURE__ */ r(R, { children: [
|
|
78
|
-
/* @__PURE__ */ e(A, { asChild: !0, children: /* @__PURE__ */ r(m, { border: !0, style: {
|
|
79
|
-
verticalAlign: "middle"
|
|
80
|
-
}, children: [
|
|
81
|
-
/* @__PURE__ */ e(G, { size: 16 }),
|
|
82
|
-
/* @__PURE__ */ e(n, { hierarchy: "tertiary", size: "xs", children: s.length })
|
|
83
|
-
] }) }),
|
|
84
|
-
/* @__PURE__ */ e(j, { children: /* @__PURE__ */ r(D, { side: "bottom", maw: "200px", children: [
|
|
85
|
-
/* @__PURE__ */ e(n, { children: "Assigned projects" }),
|
|
86
|
-
/* @__PURE__ */ e(C, {}),
|
|
87
|
-
s.length > 0 ? /* @__PURE__ */ r(y, { children: [
|
|
88
|
-
/* @__PURE__ */ e(z, { spacing: "xxs" }),
|
|
89
|
-
/* @__PURE__ */ r(b, { paddingSize: "xs", mb: -0.35, mx: -0.7, style: {
|
|
90
|
-
borderWidth: "2px"
|
|
91
|
-
}, children: [
|
|
92
|
-
s.slice(0, 1).map((t) => /* @__PURE__ */ e(p, { border: !0, children: /* @__PURE__ */ r(o, { align: "center", style: {
|
|
93
|
-
gap: "0.7rem"
|
|
94
|
-
}, children: [
|
|
95
|
-
/* @__PURE__ */ e(S, { bg: "transparent", identifier: t?.name ?? "" }),
|
|
96
|
-
/* @__PURE__ */ r(o, { style: {
|
|
97
|
-
flexDirection: "column",
|
|
98
|
-
gap: "0.35rem"
|
|
99
|
-
}, children: [
|
|
100
|
-
/* @__PURE__ */ e(n, { size: "xs", hierarchy: "secondary", children: t?.name }),
|
|
101
|
-
/* @__PURE__ */ e(n, { size: "xs", hierarchy: "tertiary", children: t?.description })
|
|
102
|
-
] })
|
|
103
|
-
] }) }, t.id)),
|
|
104
|
-
i && s.slice(1, s.length).length > 0 ? /* @__PURE__ */ e(p, { border: !0, display: "flex", p: 0.35, justify: "center", hover: !0, children: /* @__PURE__ */ r(u, { paddingSize: "xxs", variant: "none", onClick: () => N(i), children: [
|
|
105
|
-
/* @__PURE__ */ e(n, { size: "xs", children: "View more" }),
|
|
106
|
-
/* @__PURE__ */ e(m, { border: !0, children: s.slice(1, s.length).length })
|
|
107
|
-
] }) }) : null
|
|
108
|
-
] })
|
|
109
|
-
] }) : null
|
|
110
|
-
] }) })
|
|
111
|
-
] }),
|
|
112
|
-
/* @__PURE__ */ r(R, { children: [
|
|
113
|
-
/* @__PURE__ */ e(A, { asChild: !0, children: /* @__PURE__ */ r(m, { border: !0, style: {
|
|
114
|
-
verticalAlign: "middle"
|
|
115
|
-
}, children: [
|
|
116
|
-
/* @__PURE__ */ e(H, { size: 16 }),
|
|
117
|
-
/* @__PURE__ */ e(n, { hierarchy: "tertiary", size: "xs", children: c.length })
|
|
118
|
-
] }) }),
|
|
119
|
-
/* @__PURE__ */ e(j, { children: /* @__PURE__ */ r(D, { side: "bottom", maw: "200px", children: [
|
|
120
|
-
/* @__PURE__ */ e(n, { children: "Assigned members" }),
|
|
121
|
-
/* @__PURE__ */ e(C, {}),
|
|
122
|
-
c.length > 0 ? /* @__PURE__ */ r(y, { children: [
|
|
123
|
-
/* @__PURE__ */ e(z, { spacing: "xxs" }),
|
|
124
|
-
/* @__PURE__ */ r(b, { paddingSize: "xs", mb: -0.35, mx: -0.7, style: {
|
|
125
|
-
borderWidth: "2px"
|
|
126
|
-
}, children: [
|
|
127
|
-
c.slice(0, 1).map((t) => {
|
|
128
|
-
const l = E.getById(t.user?.id);
|
|
129
|
-
return /* @__PURE__ */ e(p, { border: !0, children: /* @__PURE__ */ r(o, { align: "center", style: {
|
|
130
|
-
gap: "0.7rem"
|
|
131
|
-
}, children: [
|
|
132
|
-
/* @__PURE__ */ e(S, { bg: "transparent", identifier: l?.username ?? "" }),
|
|
133
|
-
/* @__PURE__ */ r(o, { style: {
|
|
134
|
-
flexDirection: "column",
|
|
135
|
-
gap: "0.35rem"
|
|
136
|
-
}, children: [
|
|
137
|
-
/* @__PURE__ */ r(n, { size: "xs", hierarchy: "secondary", children: [
|
|
138
|
-
"@",
|
|
139
|
-
l?.username
|
|
140
|
-
] }),
|
|
141
|
-
/* @__PURE__ */ e(n, { size: "xs", hierarchy: "tertiary", children: l?.email })
|
|
142
|
-
] })
|
|
143
|
-
] }) }, t.id);
|
|
144
|
-
}),
|
|
145
|
-
i && c.slice(1, c.length).length > 0 ? /* @__PURE__ */ e(p, { border: !0, display: "flex", p: 0.35, justify: "center", hover: !0, children: /* @__PURE__ */ r(u, { paddingSize: "xxs", variant: "none", onClick: () => M(i), children: [
|
|
146
|
-
/* @__PURE__ */ e(n, { size: "xs", children: "View more" }),
|
|
147
|
-
/* @__PURE__ */ e(m, { border: !0, children: c.length - 1 })
|
|
148
|
-
] }) }) : null
|
|
149
|
-
] })
|
|
150
|
-
] }) : null
|
|
151
|
-
] }) })
|
|
152
|
-
] })
|
|
153
|
-
] })
|
|
154
|
-
] }),
|
|
155
|
-
q && /* @__PURE__ */ e(u, { color: "secondary", variant: "filled", onClick: (t) => {
|
|
156
|
-
t.stopPropagation(), I(i);
|
|
157
|
-
}, children: /* @__PURE__ */ e(J, { size: 16 }) })
|
|
158
|
-
] })
|
|
159
|
-
] });
|
|
160
|
-
};
|
|
161
|
-
export {
|
|
162
|
-
Pe as DNamespaceRoleContent
|
|
163
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Namespace } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { Card } from '../card/Card';
|
|
4
|
-
import { DNamespaceRoleView } from './DNamespaceRole.view';
|
|
5
|
-
export interface DNamespaceRoleListProps extends Omit<Card, "children" | "onSelect"> {
|
|
6
|
-
namespaceId: Namespace["id"];
|
|
7
|
-
filter?: (role: DNamespaceRoleView, index: number) => boolean;
|
|
8
|
-
onSetting?: (role: DNamespaceRoleView) => void;
|
|
9
|
-
onMembersViewMore?: (role: DNamespaceRoleView) => void;
|
|
10
|
-
onProjectsViewMore?: (role: DNamespaceRoleView) => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const DNamespaceRoleList: React.FC<DNamespaceRoleListProps>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { DNamespaceRoleContent as f } from "./DNamespaceRoleContent.js";
|
|
3
|
-
import u from "react";
|
|
4
|
-
import { Card as S } from "../card/Card.js";
|
|
5
|
-
import { useService as v, useStore as R } from "../../utils/contextStore.js";
|
|
6
|
-
import "merge-props";
|
|
7
|
-
import "js-md5";
|
|
8
|
-
import { DNamespaceRoleReactiveService as t } from "./DNamespaceRole.service.js";
|
|
9
|
-
import M from "../card/CardSection.js";
|
|
10
|
-
const V = (i) => {
|
|
11
|
-
const {
|
|
12
|
-
namespaceId: o,
|
|
13
|
-
filter: m = () => !0,
|
|
14
|
-
onSetting: s,
|
|
15
|
-
onProjectsViewMore: c,
|
|
16
|
-
onMembersViewMore: n,
|
|
17
|
-
...p
|
|
18
|
-
} = i, a = v(t), d = R(t), l = u.useMemo(() => a.values({
|
|
19
|
-
namespaceId: o
|
|
20
|
-
}), [d, o]);
|
|
21
|
-
return /* @__PURE__ */ r(S, { ...p, children: l.filter(m).map((e) => e.id && /* @__PURE__ */ r(M, { border: !0, children: /* @__PURE__ */ r(f, { onSetting: s, onProjectsViewMore: c, onMembersViewMore: n, roleId: e?.id }) }, e.id)) });
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
V as DNamespaceRoleList
|
|
25
|
-
};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { jsx as i, jsxs as s, Fragment as l } from "react/jsx-runtime";
|
|
2
|
-
import m from "react";
|
|
3
|
-
import { Flex as A } from "../flex/Flex.js";
|
|
4
|
-
import { Text as c } from "../text/Text.js";
|
|
5
|
-
import { Badge as a } from "../badge/Badge.js";
|
|
6
|
-
import { IconCheck as T } from "@tabler/icons-react";
|
|
7
|
-
import { Tooltip as _, TooltipTrigger as u, TooltipPortal as C, TooltipContent as R, TooltipArrow as f } from "../tooltip/Tooltip.js";
|
|
8
|
-
const h = {
|
|
9
|
-
ASSIGN_MEMBER_ROLES: "members",
|
|
10
|
-
INVITE_MEMBER: "members",
|
|
11
|
-
DELETE_MEMBER: "members",
|
|
12
|
-
CREATE_NAMESPACE_PROJECT: "projects",
|
|
13
|
-
UPDATE_NAMESPACE_PROJECT: "projects",
|
|
14
|
-
DELETE_NAMESPACE_PROJECT: "projects",
|
|
15
|
-
ASSIGN_ROLE_PROJECTS: "projects",
|
|
16
|
-
READ_NAMESPACE_PROJECT: "projects",
|
|
17
|
-
CREATE_NAMESPACE_ROLE: "roles",
|
|
18
|
-
UPDATE_NAMESPACE_ROLE: "roles",
|
|
19
|
-
ASSIGN_ROLE_ABILITIES: "roles",
|
|
20
|
-
CREATE_RUNTIME: "runtimes",
|
|
21
|
-
UPDATE_RUNTIME: "runtimes",
|
|
22
|
-
DELETE_RUNTIME: "runtimes",
|
|
23
|
-
ROTATE_RUNTIME_TOKEN: "runtimes",
|
|
24
|
-
ASSIGN_PROJECT_RUNTIMES: "runtimes",
|
|
25
|
-
CREATE_FLOW: "flows",
|
|
26
|
-
UPDATE_FLOW: "flows",
|
|
27
|
-
DELETE_FLOW: "flows",
|
|
28
|
-
CREATE_NAMESPACE_LICENSE: "license",
|
|
29
|
-
READ_NAMESPACE_LICENSE: "license",
|
|
30
|
-
DELETE_NAMESPACE_LICENSE: "license",
|
|
31
|
-
UPDATE_ORGANIZATION: "organization",
|
|
32
|
-
DELETE_ORGANIZATION: "organization",
|
|
33
|
-
NAMESPACE_ADMINISTRATOR: "admin"
|
|
34
|
-
}, p = {
|
|
35
|
-
members: "members",
|
|
36
|
-
projects: "projects",
|
|
37
|
-
roles: "roles",
|
|
38
|
-
runtimes: "runtimes",
|
|
39
|
-
flows: "flows",
|
|
40
|
-
license: "licenses",
|
|
41
|
-
organization: "the organization",
|
|
42
|
-
admin: "everything"
|
|
43
|
-
};
|
|
44
|
-
function N(e) {
|
|
45
|
-
return e.startsWith("CREATE_") ? "create" : e.startsWith("UPDATE_") ? "update" : e.startsWith("DELETE_") ? "delete" : e.startsWith("ASSIGN_") ? "assign" : e.startsWith("READ_") ? "read" : "manage";
|
|
46
|
-
}
|
|
47
|
-
function d(e) {
|
|
48
|
-
const r = Array.from(new Set(e));
|
|
49
|
-
return r.length === 1 ? r[0] : "manage";
|
|
50
|
-
}
|
|
51
|
-
function S(e) {
|
|
52
|
-
if (!e || e.length === 0) return [];
|
|
53
|
-
const r = /* @__PURE__ */ new Map();
|
|
54
|
-
for (const n of e) {
|
|
55
|
-
const o = h[n];
|
|
56
|
-
if (!o) continue;
|
|
57
|
-
const t = r.get(o) ?? [];
|
|
58
|
-
t.push(n), r.set(o, t);
|
|
59
|
-
}
|
|
60
|
-
return Array.from(r.entries()).map(([n, o]) => {
|
|
61
|
-
const t = o.map(N), E = d(t);
|
|
62
|
-
return {
|
|
63
|
-
category: n,
|
|
64
|
-
label: p[n],
|
|
65
|
-
abilities: o,
|
|
66
|
-
action: E
|
|
67
|
-
};
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
function g(e) {
|
|
71
|
-
if (e.length === 0) return "No special permissions.";
|
|
72
|
-
const r = (t) => /* @__PURE__ */ s(l, { children: [
|
|
73
|
-
t.action,
|
|
74
|
-
" ",
|
|
75
|
-
/* @__PURE__ */ s(_, { children: [
|
|
76
|
-
/* @__PURE__ */ i(u, { asChild: !0, children: /* @__PURE__ */ i(a, { color: "info", style: {
|
|
77
|
-
verticalAlign: "middle"
|
|
78
|
-
}, children: /* @__PURE__ */ i(c, { style: {
|
|
79
|
-
color: "inherit"
|
|
80
|
-
}, children: t.label }) }) }),
|
|
81
|
-
/* @__PURE__ */ i(C, { children: /* @__PURE__ */ s(R, { side: "bottom", children: [
|
|
82
|
-
/* @__PURE__ */ i(A, { style: {
|
|
83
|
-
flexDirection: "column",
|
|
84
|
-
gap: "0.25rem"
|
|
85
|
-
}, children: t.abilities.map((E) => /* @__PURE__ */ s(A, { align: "center", style: {
|
|
86
|
-
gap: "0.35rem"
|
|
87
|
-
}, children: [
|
|
88
|
-
/* @__PURE__ */ i(T, { size: 16 }),
|
|
89
|
-
/* @__PURE__ */ i(c, { size: "xs", children: E })
|
|
90
|
-
] }, E)) }),
|
|
91
|
-
/* @__PURE__ */ i(f, {})
|
|
92
|
-
] }) })
|
|
93
|
-
] })
|
|
94
|
-
] });
|
|
95
|
-
if (e.length === 1) {
|
|
96
|
-
const t = e[0];
|
|
97
|
-
return /* @__PURE__ */ s(l, { children: [
|
|
98
|
-
"Can ",
|
|
99
|
-
r(t)
|
|
100
|
-
] });
|
|
101
|
-
}
|
|
102
|
-
const n = e.slice(0, -1), o = e[e.length - 1];
|
|
103
|
-
return /* @__PURE__ */ s(l, { children: [
|
|
104
|
-
"Can",
|
|
105
|
-
" ",
|
|
106
|
-
n.map((t, E) => /* @__PURE__ */ s(m.Fragment, { children: [
|
|
107
|
-
E > 0 && ", ",
|
|
108
|
-
r(t)
|
|
109
|
-
] }, t.category)),
|
|
110
|
-
" ",
|
|
111
|
-
"and ",
|
|
112
|
-
r(o)
|
|
113
|
-
] });
|
|
114
|
-
}
|
|
115
|
-
const b = (e) => {
|
|
116
|
-
const {
|
|
117
|
-
abilities: r
|
|
118
|
-
} = e, n = m.useMemo(() => S(r), [r]);
|
|
119
|
-
return /* @__PURE__ */ i(c, { size: "sm", hierarchy: "secondary", children: g(n) });
|
|
120
|
-
};
|
|
121
|
-
export {
|
|
122
|
-
b as DNamespaceRolePermissions
|
|
123
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DNamespaceRoleReactiveService as a } from "./DNamespaceRole.service.js";
|
|
2
|
-
import { DNamespaceRoleView as m } from "./DNamespaceRole.view.js";
|
|
3
|
-
import { DNamespaceRoleList as c } from "./DNamespaceRoleList.js";
|
|
4
|
-
import { DNamespaceRoleCard as s } from "./DNamespaceRoleCard.js";
|
|
5
|
-
export {
|
|
6
|
-
s as DNamespaceRoleCard,
|
|
7
|
-
c as DNamespaceRoleList,
|
|
8
|
-
a as DNamespaceRoleReactiveService,
|
|
9
|
-
m as DNamespaceRoleView
|
|
10
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReactiveArrayService } from '../../utils/reactiveArrayService';
|
|
2
|
-
import { DRuntimeView } from './DRuntime.view';
|
|
3
|
-
import { Namespace, Runtime, RuntimesCreateInput, RuntimesCreatePayload, RuntimesDeleteInput, RuntimesDeletePayload, RuntimesRotateTokenInput, RuntimesRotateTokenPayload } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
export type DRuntimeDependencies = {
|
|
5
|
-
namespaceId: Namespace['id'];
|
|
6
|
-
};
|
|
7
|
-
export declare abstract class DRuntimeReactiveService extends ReactiveArrayService<DRuntimeView, DRuntimeDependencies> {
|
|
8
|
-
getById(id: Runtime['id']): DRuntimeView | undefined;
|
|
9
|
-
abstract runtimeCreate(payload: RuntimesCreateInput): Promise<RuntimesCreatePayload | undefined>;
|
|
10
|
-
abstract runtimeDelete(payload: RuntimesDeleteInput): Promise<RuntimesDeletePayload | undefined>;
|
|
11
|
-
abstract runtimeRotateToken(payload: RuntimesRotateTokenInput): Promise<RuntimesRotateTokenPayload | undefined>;
|
|
12
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { DataTypeConnection, FlowTypeConnection, Maybe, Namespace, NamespaceProjectConnection, Runtime, RuntimeStatusType, RuntimeUserAbilities, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
export declare class DRuntimeView {
|
|
3
|
-
/** Time when this Runtime was created */
|
|
4
|
-
private readonly _createdAt?;
|
|
5
|
-
/** DataTypes of the runtime */
|
|
6
|
-
private readonly _dataTypes?;
|
|
7
|
-
/** The description for the runtime if present */
|
|
8
|
-
private readonly _description?;
|
|
9
|
-
/** FlowTypes of the runtime */
|
|
10
|
-
private readonly _flowTypes?;
|
|
11
|
-
/** Global ID of this Runtime */
|
|
12
|
-
private readonly _id?;
|
|
13
|
-
/** The name for the runtime */
|
|
14
|
-
private readonly _name?;
|
|
15
|
-
/** The parent namespace for the runtime */
|
|
16
|
-
private readonly _namespace?;
|
|
17
|
-
/** Projects associated with the runtime */
|
|
18
|
-
private readonly _projects?;
|
|
19
|
-
/** The status of the runtime */
|
|
20
|
-
private readonly _status?;
|
|
21
|
-
/** Token belonging to the runtime, only present on creation */
|
|
22
|
-
private readonly _token?;
|
|
23
|
-
/** Time when this Runtime was last updated */
|
|
24
|
-
private readonly _updatedAt?;
|
|
25
|
-
/** Abilities for the current user on this Runtime */
|
|
26
|
-
private readonly _userAbilities?;
|
|
27
|
-
constructor(payload: Runtime);
|
|
28
|
-
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
29
|
-
get dataTypes(): Maybe<DataTypeConnection> | undefined;
|
|
30
|
-
get description(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
31
|
-
get flowTypes(): Maybe<FlowTypeConnection> | undefined;
|
|
32
|
-
get id(): Maybe<Scalars["RuntimeID"]["output"]> | undefined;
|
|
33
|
-
get name(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
34
|
-
get namespace(): Maybe<Namespace> | undefined;
|
|
35
|
-
get projects(): Maybe<NamespaceProjectConnection> | undefined;
|
|
36
|
-
get status(): Maybe<RuntimeStatusType> | undefined;
|
|
37
|
-
get token(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
38
|
-
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
39
|
-
get userAbilities(): Maybe<RuntimeUserAbilities> | undefined;
|
|
40
|
-
json(): Runtime;
|
|
41
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
function i(e, t, s) {
|
|
2
|
-
return (t = n(t)) in e ? Object.defineProperty(e, t, { value: s, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = s, e;
|
|
3
|
-
}
|
|
4
|
-
function n(e) {
|
|
5
|
-
var t = o(e, "string");
|
|
6
|
-
return typeof t == "symbol" ? t : t + "";
|
|
7
|
-
}
|
|
8
|
-
function o(e, t) {
|
|
9
|
-
if (typeof e != "object" || !e) return e;
|
|
10
|
-
var s = e[Symbol.toPrimitive];
|
|
11
|
-
if (s !== void 0) {
|
|
12
|
-
var r = s.call(e, t);
|
|
13
|
-
if (typeof r != "object") return r;
|
|
14
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
|
-
}
|
|
16
|
-
return (t === "string" ? String : Number)(e);
|
|
17
|
-
}
|
|
18
|
-
class u {
|
|
19
|
-
constructor(t) {
|
|
20
|
-
i(this, "_createdAt", void 0), i(this, "_dataTypes", void 0), i(this, "_description", void 0), i(this, "_flowTypes", void 0), i(this, "_id", void 0), i(this, "_name", void 0), i(this, "_namespace", void 0), i(this, "_projects", void 0), i(this, "_status", void 0), i(this, "_token", void 0), i(this, "_updatedAt", void 0), i(this, "_userAbilities", void 0), this._createdAt = t.createdAt, this._dataTypes = t.dataTypes, this._description = t.description, this._flowTypes = t.flowTypes, this._id = t.id, this._name = t.name, this._namespace = t.namespace, this._projects = t.projects, this._status = t.status, this._token = t.token, this._updatedAt = t.updatedAt, this._userAbilities = t.userAbilities;
|
|
21
|
-
}
|
|
22
|
-
get createdAt() {
|
|
23
|
-
return this._createdAt;
|
|
24
|
-
}
|
|
25
|
-
get dataTypes() {
|
|
26
|
-
return this._dataTypes;
|
|
27
|
-
}
|
|
28
|
-
get description() {
|
|
29
|
-
return this._description;
|
|
30
|
-
}
|
|
31
|
-
get flowTypes() {
|
|
32
|
-
return this._flowTypes;
|
|
33
|
-
}
|
|
34
|
-
get id() {
|
|
35
|
-
return this._id;
|
|
36
|
-
}
|
|
37
|
-
get name() {
|
|
38
|
-
return this._name;
|
|
39
|
-
}
|
|
40
|
-
get namespace() {
|
|
41
|
-
return this._namespace;
|
|
42
|
-
}
|
|
43
|
-
get projects() {
|
|
44
|
-
return this._projects;
|
|
45
|
-
}
|
|
46
|
-
get status() {
|
|
47
|
-
return this._status;
|
|
48
|
-
}
|
|
49
|
-
get token() {
|
|
50
|
-
return this._token;
|
|
51
|
-
}
|
|
52
|
-
get updatedAt() {
|
|
53
|
-
return this._updatedAt;
|
|
54
|
-
}
|
|
55
|
-
get userAbilities() {
|
|
56
|
-
return this._userAbilities;
|
|
57
|
-
}
|
|
58
|
-
json() {
|
|
59
|
-
return {
|
|
60
|
-
createdAt: this._createdAt,
|
|
61
|
-
dataTypes: this._dataTypes,
|
|
62
|
-
description: this._description,
|
|
63
|
-
flowTypes: this._flowTypes,
|
|
64
|
-
id: this._id,
|
|
65
|
-
name: this._name,
|
|
66
|
-
namespace: this._namespace,
|
|
67
|
-
projects: this._projects,
|
|
68
|
-
status: this._status,
|
|
69
|
-
token: this._token,
|
|
70
|
-
updatedAt: this._updatedAt
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
export {
|
|
75
|
-
u as DRuntimeView
|
|
76
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Runtime } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { DRuntimeView } from './DRuntime.view';
|
|
4
|
-
export interface DRuntimeCardProps {
|
|
5
|
-
runtimeId: Runtime['id'];
|
|
6
|
-
onSetting?: (runtime: DRuntimeView) => void;
|
|
7
|
-
minimized?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const DRuntimeCard: React.FC<DRuntimeCardProps>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as d } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import { Card as p } from "../card/Card.js";
|
|
4
|
-
import { DRuntimeContent as f } from "./DRuntimeContent.js";
|
|
5
|
-
const R = (s) => {
|
|
6
|
-
const t = d.c(4), {
|
|
7
|
-
runtimeId: o,
|
|
8
|
-
minimized: m,
|
|
9
|
-
onSetting: r
|
|
10
|
-
} = s, n = m === void 0 ? !1 : m, e = r === void 0 ? u : r;
|
|
11
|
-
let i;
|
|
12
|
-
return t[0] !== n || t[1] !== e || t[2] !== o ? (i = /* @__PURE__ */ c(p, { children: /* @__PURE__ */ c(f, { minimized: n, runtimeId: o, onSetting: e }) }), t[0] = n, t[1] = e, t[2] = o, t[3] = i) : i = t[3], i;
|
|
13
|
-
};
|
|
14
|
-
function u() {
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
R as DRuntimeCard
|
|
18
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Runtime } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { DRuntimeView } from './DRuntime.view';
|
|
4
|
-
export interface DRuntimeContentProps {
|
|
5
|
-
runtimeId: Runtime['id'];
|
|
6
|
-
onSetting?: (runtime: DRuntimeView) => void;
|
|
7
|
-
minimized?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const DRuntimeContent: React.FC<DRuntimeContentProps>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import h from "react";
|
|
3
|
-
import { Text as n } from "../text/Text.js";
|
|
4
|
-
import { Flex as i } from "../flex/Flex.js";
|
|
5
|
-
import { IconEdit as y } from "@tabler/icons-react";
|
|
6
|
-
import { Button as f } from "../button/Button.js";
|
|
7
|
-
import { useService as g, useStore as C } from "../../utils/contextStore.js";
|
|
8
|
-
import "merge-props";
|
|
9
|
-
import "js-md5";
|
|
10
|
-
import { DRuntimeReactiveService as l } from "./DRuntime.service.js";
|
|
11
|
-
import { Badge as s } from "../badge/Badge.js";
|
|
12
|
-
const I = (m) => {
|
|
13
|
-
const {
|
|
14
|
-
runtimeId: o,
|
|
15
|
-
minimized: c = !1,
|
|
16
|
-
onSetting: a = () => {
|
|
17
|
-
}
|
|
18
|
-
} = m, d = g(l), p = C(l), r = h.useMemo(() => d.getById(o), [p, o]);
|
|
19
|
-
return /* @__PURE__ */ t(i, { justify: "space-between", align: "center", style: {
|
|
20
|
-
gap: "1.3rem"
|
|
21
|
-
}, children: [
|
|
22
|
-
c ? /* @__PURE__ */ e(i, { align: "center", style: {
|
|
23
|
-
gap: "0.7rem"
|
|
24
|
-
}, children: /* @__PURE__ */ e(n, { size: "md", hierarchy: "secondary", display: "block", children: r?.name }) }) : /* @__PURE__ */ t(i, { style: {
|
|
25
|
-
flexDirection: "column",
|
|
26
|
-
gap: "0.35rem"
|
|
27
|
-
}, children: [
|
|
28
|
-
/* @__PURE__ */ e(n, { size: "lg", hierarchy: "secondary", display: "block", children: r?.name }),
|
|
29
|
-
/* @__PURE__ */ e(n, { size: "sm", hierarchy: "tertiary", display: "block", children: r?.description })
|
|
30
|
-
] }),
|
|
31
|
-
/* @__PURE__ */ t(i, { align: "center", style: {
|
|
32
|
-
gap: "1.3rem"
|
|
33
|
-
}, children: [
|
|
34
|
-
/* @__PURE__ */ e(i, { align: "center", style: {
|
|
35
|
-
gap: "0.35rem",
|
|
36
|
-
flexWrap: "wrap"
|
|
37
|
-
}, children: r?.status === "CONNECTED" ? /* @__PURE__ */ e(s, { color: "success", children: "CONNECTED" }) : /* @__PURE__ */ e(s, { color: "error", children: "DISCONNECTED" }) }),
|
|
38
|
-
!c && (r?.userAbilities?.deleteRuntime || r?.userAbilities?.updateRuntime || r?.userAbilities?.rotateRuntimeToken) ? /* @__PURE__ */ e(f, { color: "secondary", variant: "filled", onClick: (u) => {
|
|
39
|
-
u.stopPropagation(), a(r);
|
|
40
|
-
}, children: /* @__PURE__ */ e(y, { size: 16 }) }) : null
|
|
41
|
-
] })
|
|
42
|
-
] });
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
I as DRuntimeContent
|
|
46
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Namespace } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
import { DRuntimeView } from './DRuntime.view';
|
|
3
|
-
import { Card } from '../card/Card';
|
|
4
|
-
import { default as React } from 'react';
|
|
5
|
-
export interface DRuntimeListProps extends Omit<Card, "children" | "onSelect"> {
|
|
6
|
-
namespaceId?: Namespace["id"];
|
|
7
|
-
filter?: (runtime: DRuntimeView, index: number) => boolean;
|
|
8
|
-
onSelect?: (runtime: DRuntimeView) => void;
|
|
9
|
-
onSetting?: (runtime: DRuntimeView) => void;
|
|
10
|
-
minimized?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare const DRuntimeList: React.FC<DRuntimeListProps>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Card as a } from "../card/Card.js";
|
|
3
|
-
import S from "react";
|
|
4
|
-
import { useService as l, useStore as v } from "../../utils/contextStore.js";
|
|
5
|
-
import "merge-props";
|
|
6
|
-
import "js-md5";
|
|
7
|
-
import { DRuntimeReactiveService as m } from "./DRuntime.service.js";
|
|
8
|
-
import R from "../card/CardSection.js";
|
|
9
|
-
import { DRuntimeContent as C } from "./DRuntimeContent.js";
|
|
10
|
-
const L = (n) => {
|
|
11
|
-
const {
|
|
12
|
-
namespaceId: t,
|
|
13
|
-
minimized: i = !1,
|
|
14
|
-
filter: c = () => !0,
|
|
15
|
-
onSetting: s,
|
|
16
|
-
onSelect: o,
|
|
17
|
-
...d
|
|
18
|
-
} = n, p = l(m), u = v(m), f = S.useMemo(() => p.values({
|
|
19
|
-
namespaceId: t
|
|
20
|
-
}), [u, t]);
|
|
21
|
-
return /* @__PURE__ */ r(a, { ...d, ...i ? {
|
|
22
|
-
paddingSize: "sm"
|
|
23
|
-
} : {}, children: f.filter(c).map((e) => e.id && /* @__PURE__ */ r(R, { border: !0, hover: !0, onClick: () => {
|
|
24
|
-
o && o(e);
|
|
25
|
-
}, children: /* @__PURE__ */ r(C, { minimized: i, onSetting: s, runtimeId: e?.id }) }, e.id)) });
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
L as DRuntimeList
|
|
29
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DRuntimeReactiveService as t } from "./DRuntime.service.js";
|
|
2
|
-
import { DRuntimeView as m } from "./DRuntime.view.js";
|
|
3
|
-
import { DRuntimeCard as R } from "./DRuntimeCard.js";
|
|
4
|
-
import { DRuntimeList as n } from "./DRuntimeList.js";
|
|
5
|
-
export {
|
|
6
|
-
R as DRuntimeCard,
|
|
7
|
-
n as DRuntimeList,
|
|
8
|
-
t as DRuntimeReactiveService,
|
|
9
|
-
m as DRuntimeView
|
|
10
|
-
};
|