@code0-tech/pictor 0.0.0-mvp.3 → 0.0.0-mvp.30
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/_commonjsHelpers.js +6 -0
- package/dist/_virtual/compiler-runtime.js +5 -0
- package/dist/_virtual/compiler-runtime2.js +4 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.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/_virtual/react-contenteditable.js +7 -0
- package/dist/_virtual/react-contenteditable2.js +4 -0
- package/dist/_virtual/react-dom-server-legacy.browser.development.js +4 -0
- package/dist/_virtual/react-dom-server-legacy.browser.production.js +4 -0
- package/dist/_virtual/react-dom-server.browser.development.js +4 -0
- package/dist/_virtual/react-dom-server.browser.production.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/server.browser.js +5 -0
- package/dist/_virtual/server.browser2.js +4 -0
- package/dist/assets/components/alert/Alert.style.css +1 -0
- package/dist/assets/components/aurora/Aurora.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/{Breadcrumb.css → components/breadcrumb/Breadcrumb.style.css} +1 -1
- package/dist/assets/components/button/Button.style.css +1 -0
- package/dist/assets/components/button-group/ButtonGroup.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/context-menu/ContextMenu.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-panel/DFlowMiniMap.style.css +1 -0
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.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/aurora/Aurora.d.ts +5 -0
- package/dist/components/aurora/Aurora.js +23 -0
- package/dist/components/avatar/Avatar.js +9 -9
- package/dist/components/badge/Badge.d.ts +2 -1
- package/dist/components/badge/Badge.js +58 -17
- package/dist/components/breadcrumb/Breadcrumb.js +16 -28
- package/dist/components/button/Button.d.ts +3 -2
- package/dist/components/button/Button.js +23 -20
- package/dist/components/button-group/ButtonGroup.js +12 -11
- 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/context-menu/ContextMenu.d.ts +31 -0
- package/dist/components/context-menu/ContextMenu.js +191 -0
- package/dist/components/d-application/DApplication.service.d.ts +5 -0
- package/dist/components/d-application/DApplication.service.js +9 -0
- package/dist/components/d-flow/DFlow.d.ts +7 -3
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +3 -2
- package/dist/components/d-flow/DFlow.edges.hook.js +100 -136
- package/dist/components/d-flow/DFlow.js +313 -258
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +6 -2
- package/dist/components/d-flow/DFlow.nodes.hook.js +102 -121
- package/dist/components/d-flow/DFlow.service.d.ts +17 -7
- package/dist/components/d-flow/DFlow.service.js +132 -7
- package/dist/components/d-flow/DFlow.util.d.ts +4 -0
- package/dist/components/d-flow/DFlow.util.js +63 -0
- package/dist/components/d-flow/{edge/DFlowEdge.d.ts → DFlowEdge.d.ts} +5 -3
- package/dist/components/d-flow/DFlowEdge.js +69 -0
- package/dist/components/d-flow/index.d.ts +1 -10
- package/dist/components/d-flow/index.js +9 -44
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +14 -0
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +96 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +13 -4
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +76 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +1 -1
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +222 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +229 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js +3 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +246 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +10 -0
- package/dist/components/d-flow-file/DFlowTabDefault.d.ts +7 -0
- package/dist/components/d-flow-file/DFlowTabDefault.js +104 -0
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
- package/dist/components/d-flow-file/DFlowTabTrigger.js +64 -0
- package/dist/components/d-flow-file/DFlowTabs.d.ts +8 -0
- package/dist/components/d-flow-file/DFlowTabs.js +132 -0
- package/dist/components/d-flow-file/index.d.ts +1 -0
- package/dist/components/d-flow-file/index.js +4 -0
- package/dist/components/d-flow-folder/DFlowFolder.d.ts +33 -0
- package/dist/components/d-flow-folder/DFlowFolder.js +208 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +45 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +9 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +76 -0
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +10 -0
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +55 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +50 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +10 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
- package/dist/components/d-flow-folder/index.d.ts +4 -0
- package/dist/components/d-flow-folder/index.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +8 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.return.hook.d.ts +2 -2
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +9 -0
- package/dist/components/d-flow-function/DFlowFunction.service.d.ts +11 -0
- package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +24 -9
- package/dist/components/d-flow-function/DFlowFunction.view.js +139 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +117 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.d.ts +13 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.js +68 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts +3 -4
- package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +43 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +78 -0
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
- package/dist/components/d-flow-input/DFlowInputDataType.js +437 -0
- package/dist/components/d-flow-input/DFlowInputDefault.d.ts +10 -0
- package/dist/components/d-flow-input/DFlowInputDefault.js +128 -0
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +7 -0
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +24 -0
- package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +11 -0
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +44 -0
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +11 -0
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +33 -0
- package/dist/components/d-flow-panel/DFlowExport.d.ts +6 -0
- package/dist/components/d-flow-panel/DFlowExport.js +32 -0
- package/dist/components/d-flow-panel/DFlowMiniMap.js +33 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +6 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.js +72 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +4 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +47 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +2 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.js +94 -0
- package/dist/components/d-flow-panel/index.d.ts +5 -0
- package/dist/components/d-flow-panel/index.js +12 -0
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +34 -0
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +50 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +133 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +24 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +14 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +4 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +72 -0
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.js +12 -11
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js +5 -5
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionSearchInput.d.ts +1 -1
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +35 -0
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +44 -0
- package/dist/components/d-flow-suggestion/index.d.ts +1 -0
- package/dist/components/d-flow-suggestion/index.js +4 -0
- package/dist/components/d-flow-type/DFlowType.service.d.ts +11 -0
- package/dist/components/d-flow-type/DFlowType.service.js +12 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +10 -4
- package/dist/components/d-flow-type/DFlowType.view.js +85 -0
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +2 -0
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +18 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +22 -0
- package/dist/components/d-flow-validation/DFlowValidation.js +66 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +58 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.js +8 -0
- package/dist/components/{d-flow/validation → d-flow-validation}/index.js +2 -2
- 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 +17 -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 +16 -11
- package/dist/components/d-member/DNamespaceMemberCard.d.ts +10 -0
- package/dist/components/d-member/DNamespaceMemberCard.js +16 -0
- package/dist/components/d-member/DNamespaceMemberContent.d.ts +10 -0
- package/dist/components/d-member/DNamespaceMemberContent.js +224 -0
- package/dist/components/d-member/DNamespaceMemberList.d.ts +12 -0
- package/dist/components/d-member/DNamespaceMemberList.js +23 -0
- package/dist/components/d-member/index.d.ts +4 -0
- package/dist/components/d-member/index.js +10 -0
- package/dist/components/d-namespace/DNamespace.service.d.ts +1 -1
- package/dist/components/d-namespace/DNamespace.service.js +7 -6
- 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 +8 -7
- 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 +4 -3
- package/dist/components/d-organization/DOrganizationCard.js +13 -60
- package/dist/components/d-organization/DOrganizationList.d.ts +10 -0
- package/dist/components/d-organization/DOrganizationList.js +23 -0
- package/dist/components/d-organization/DOrganizationMenu.js +5 -5
- package/dist/components/d-organization/DOrganizatonContent.d.ts +10 -0
- package/dist/components/d-organization/DOrganizatonContent.js +101 -0
- package/dist/components/d-organization/index.d.ts +1 -0
- package/dist/components/d-organization/index.js +30 -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-project/DNamespaceProjectCard.d.ts +9 -0
- package/dist/components/d-project/DNamespaceProjectCard.js +17 -0
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +10 -0
- package/dist/components/d-project/DNamespaceProjectContent.js +71 -0
- package/dist/components/d-project/DNamespaceProjectList.d.ts +11 -0
- package/dist/components/d-project/DNamespaceProjectList.js +25 -0
- package/dist/components/d-project/DNamespaceProjectMenu.d.ts +13 -0
- package/dist/components/d-project/DNamespaceProjectMenu.js +57 -0
- package/dist/components/d-project/index.d.ts +5 -0
- package/dist/components/d-project/index.js +26 -0
- package/dist/components/d-resizable/DResizable.d.ts +4 -4
- package/dist/components/d-resizable/DResizable.js +26 -23
- 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-namespace/role → d-role}/DNamespaceRole.view.d.ts +4 -1
- package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.js +8 -4
- package/dist/components/d-role/DNamespaceRoleCard.d.ts +11 -0
- package/dist/components/d-role/DNamespaceRoleCard.js +17 -0
- package/dist/components/d-role/DNamespaceRoleContent.d.ts +10 -0
- package/dist/components/d-role/DNamespaceRoleContent.js +162 -0
- package/dist/components/d-role/DNamespaceRoleList.d.ts +12 -0
- package/dist/components/d-role/DNamespaceRoleList.js +24 -0
- package/dist/components/d-role/DNamespaceRolePermissions.d.ts +5 -0
- package/dist/components/d-role/DNamespaceRolePermissions.js +123 -0
- package/dist/components/d-role/index.d.ts +4 -0
- package/dist/components/d-role/index.js +10 -0
- package/dist/components/d-runtime/DRuntime.service.d.ts +5 -2
- package/dist/components/d-runtime/DRuntime.service.js +2 -4
- 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 +9 -0
- package/dist/components/d-runtime/DRuntimeCard.js +18 -0
- package/dist/components/d-runtime/DRuntimeContent.d.ts +9 -0
- package/dist/components/d-runtime/DRuntimeContent.js +45 -0
- package/dist/components/d-runtime/DRuntimeList.d.ts +12 -0
- package/dist/components/d-runtime/DRuntimeList.js +28 -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 +3 -4
- package/dist/components/d-user/DUser.service.js +9 -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 +8 -0
- package/dist/components/d-user/DUserCard.js +15 -0
- package/dist/components/d-user/DUserContent.d.ts +8 -0
- package/dist/components/d-user/DUserContent.js +84 -0
- package/dist/components/d-user/DUserInput.d.ts +7 -0
- package/dist/components/d-user/DUserInput.js +100 -0
- package/dist/components/d-user/DUserList.d.ts +9 -0
- package/dist/components/d-user/DUserList.js +22 -0
- package/dist/components/d-user/DUserMenu.js +20 -19
- package/dist/components/d-user/index.d.ts +4 -0
- package/dist/components/d-user/index.js +17 -8
- package/dist/components/dialog/Dialog.d.ts +2 -1
- package/dist/components/dialog/Dialog.js +69 -60
- package/dist/components/file-tabs/FileTabs.js +41 -40
- package/dist/components/file-tabs/FileTabs.service.d.ts +5 -1
- package/dist/components/file-tabs/FileTabs.service.js +74 -26
- package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
- package/dist/components/flex/Flex.js +2 -2
- package/dist/components/form/CheckboxInput.js +62 -53
- package/dist/components/form/EmailInput.js +11 -10
- package/dist/components/form/Input.d.ts +18 -5
- package/dist/components/form/Input.js +333 -139
- package/dist/components/form/Input.syntax.hook.d.ts +10 -0
- package/dist/components/form/Input.syntax.hook.js +14 -0
- package/dist/components/form/Input.utils.d.ts +10 -0
- package/dist/components/form/Input.utils.js +38 -0
- package/dist/components/form/InputContentEditable.hook.d.ts +40 -0
- package/dist/components/form/InputContentEditable.hook.js +471 -0
- 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.d.ts +16 -8
- package/dist/components/form/InputSuggestion.js +189 -73
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +11 -10
- 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/SwitchInput.js +7 -7
- package/dist/components/form/TextInput.js +12 -11
- package/dist/components/form/index.js +26 -27
- package/dist/components/form/useForm.d.ts +3 -1
- package/dist/components/form/useForm.js +53 -33
- package/dist/components/menu/Menu.d.ts +7 -3
- package/dist/components/menu/Menu.js +24 -24
- 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.d.ts +1 -1
- package/dist/components/segmented-control/SegmentedControl.js +19 -16
- 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 +36 -35
- package/dist/index.d.ts +17 -0
- package/dist/index.js +264 -216
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/fast-deep-equal/index.js +31 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/object-assign/index.js +49 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
- package/dist/node_modules/prop-types/index.js +17 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +87 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +70 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- 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/node_modules/react-contenteditable/lib/react-contenteditable.js +132 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +6235 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +4096 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +6753 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +4645 -0
- package/dist/node_modules/react-dom/server.browser.js +15 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/dist/utils/arrayService.d.ts +2 -2
- package/dist/utils/contextStore.js +1 -1
- package/dist/utils/generics.d.ts +7 -6
- package/dist/utils/generics.js +136 -124
- package/dist/utils/index.js +22 -21
- package/dist/utils/inspection.d.ts +4 -2
- package/dist/utils/inspection.js +27 -2
- package/dist/utils/objectStore.js +15 -15
- package/dist/utils/reactiveArrayService.d.ts +3 -3
- package/dist/utils/reactiveArrayService.js +53 -43
- package/dist/utils/types.d.ts +2 -2
- package/package.json +38 -33
- 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/ButtonGroup.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/DFlowSuggestionSearchInput.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-flow/DFlow.view.d.ts +0 -109
- package/dist/components/d-flow/DFlow.view.js +0 -213
- package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
- package/dist/components/d-flow/control/DFlowControl.js +0 -77
- package/dist/components/d-flow/control/index.d.ts +0 -1
- package/dist/components/d-flow/control/index.js +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
- package/dist/components/d-flow/data-type/DFlowDataType.service.js +0 -7
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -6
- package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -6
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -6
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -7
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.js +0 -8
- package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
- package/dist/components/d-flow/folder/DFlowFolder.d.ts +0 -19
- package/dist/components/d-flow/folder/DFlowFolder.js +0 -118
- package/dist/components/d-flow/folder/index.d.ts +0 -1
- package/dist/components/d-flow/folder/index.js +0 -6
- package/dist/components/d-flow/function/DFlowFunction.input.hook.js +0 -9
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
- package/dist/components/d-flow/function/DFlowFunction.service.d.ts +0 -6
- package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -75
- package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
- package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -97
- package/dist/components/d-flow/input/DFlowInputDataType.js +0 -422
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -21
- package/dist/components/d-flow/minimap/index.d.ts +0 -1
- package/dist/components/d-flow/minimap/index.js +0 -4
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.d.ts +0 -33
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -151
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -21
- package/dist/components/d-flow/suggestion/index.d.ts +0 -2
- package/dist/components/d-flow/suggestion/index.js +0 -7
- package/dist/components/d-flow/tab/DFlowTabDefault.d.ts +0 -11
- package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -97
- package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
- package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
- package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
- package/dist/components/d-flow/type/DFlowType.service.d.ts +0 -6
- package/dist/components/d-flow/type/DFlowType.service.js +0 -9
- package/dist/components/d-flow/type/DFlowType.view.js +0 -69
- package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
- package/dist/components/d-flow/validation/DFlowValidation.js +0 -59
- 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.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProjectCard.js +0 -57
- package/dist/components/d-namespace/project/DNamespaceProjectMenu.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProjectMenu.js +0 -18
- 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/{Col.css → components/col/Col.style.css} +0 -0
- /package/dist/assets/{Container.css → components/container/Container.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-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
- /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Maybe, Namespace, NamespaceProjectConnection, NamespaceRole, NamespaceRoleAbility, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
1
|
+
import { Maybe, Namespace, NamespaceProjectConnection, NamespaceRole, NamespaceRoleAbility, NamespaceRoleUserAbilities, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
2
2
|
export declare class DNamespaceRoleView {
|
|
3
3
|
/** The abilities the role is granted */
|
|
4
4
|
private readonly _abilities?;
|
|
@@ -14,6 +14,8 @@ export declare class DNamespaceRoleView {
|
|
|
14
14
|
private readonly _namespace?;
|
|
15
15
|
/** Time when this NamespaceRole was last updated */
|
|
16
16
|
private readonly _updatedAt?;
|
|
17
|
+
/** Abilities for the current user on this NamespaceRole */
|
|
18
|
+
private readonly _userAbilities?;
|
|
17
19
|
constructor(payload: NamespaceRole);
|
|
18
20
|
get abilities(): Maybe<Array<NamespaceRoleAbility>> | undefined;
|
|
19
21
|
get assignedProjects(): Maybe<NamespaceProjectConnection> | undefined;
|
|
@@ -22,5 +24,6 @@ export declare class DNamespaceRoleView {
|
|
|
22
24
|
get name(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
23
25
|
get namespace(): Maybe<Namespace> | undefined;
|
|
24
26
|
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
27
|
+
get userAbilities(): Maybe<NamespaceRoleUserAbilities> | undefined;
|
|
25
28
|
json(): NamespaceRole;
|
|
26
29
|
}
|
|
@@ -15,9 +15,9 @@ function a(t, e) {
|
|
|
15
15
|
}
|
|
16
16
|
return (e === "string" ? String : Number)(t);
|
|
17
17
|
}
|
|
18
|
-
class
|
|
18
|
+
class u {
|
|
19
19
|
constructor(e) {
|
|
20
|
-
i(this, "_abilities", void 0), i(this, "_assignedProjects", void 0), 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), this._abilities = e.abilities, this._assignedProjects = e.assignedProjects, this._createdAt = e.createdAt, this._id = e.id, this._name = e.name, this._namespace = e.namespace, this._updatedAt = e.updatedAt;
|
|
20
|
+
i(this, "_abilities", void 0), i(this, "_assignedProjects", void 0), 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._abilities = e.abilities, this._assignedProjects = e.assignedProjects, 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 abilities() {
|
|
23
23
|
return this._abilities;
|
|
@@ -40,6 +40,9 @@ class d {
|
|
|
40
40
|
get updatedAt() {
|
|
41
41
|
return this._updatedAt;
|
|
42
42
|
}
|
|
43
|
+
get userAbilities() {
|
|
44
|
+
return this._userAbilities;
|
|
45
|
+
}
|
|
43
46
|
json() {
|
|
44
47
|
return {
|
|
45
48
|
abilities: this._abilities,
|
|
@@ -48,10 +51,11 @@ class d {
|
|
|
48
51
|
id: this._id,
|
|
49
52
|
name: this._name,
|
|
50
53
|
namespace: this._namespace,
|
|
51
|
-
updatedAt: this._updatedAt
|
|
54
|
+
updatedAt: this._updatedAt,
|
|
55
|
+
userAbilities: this._userAbilities
|
|
52
56
|
};
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
export {
|
|
56
|
-
|
|
60
|
+
u as DNamespaceRoleView
|
|
57
61
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DNamespaceRoleView } from './DNamespaceRole.view';
|
|
3
|
+
import { Card } from '../card/Card';
|
|
4
|
+
import { NamespaceRole } from '@code0-tech/sagittarius-graphql-types';
|
|
5
|
+
export interface DNamespaceRoleCardProps extends Omit<Card, "children" | "onSelect"> {
|
|
6
|
+
roleId: NamespaceRole['id'];
|
|
7
|
+
onSetting?: (role: DNamespaceRoleView) => void;
|
|
8
|
+
onMembersViewMore?: (role: DNamespaceRoleView) => void;
|
|
9
|
+
onProjectsViewMore?: (role: DNamespaceRoleView) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const DNamespaceRoleCard: React.FC<DNamespaceRoleCardProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { Card as p } from "../card/Card.js";
|
|
4
|
+
import { DNamespaceRoleContent as a } from "./DNamespaceRoleContent.js";
|
|
5
|
+
const C = (s) => {
|
|
6
|
+
const e = c.c(5), {
|
|
7
|
+
roleId: r,
|
|
8
|
+
onSetting: t,
|
|
9
|
+
onMembersViewMore: m,
|
|
10
|
+
onProjectsViewMore: n
|
|
11
|
+
} = s;
|
|
12
|
+
let o;
|
|
13
|
+
return e[0] !== m || e[1] !== n || e[2] !== t || e[3] !== r ? (o = /* @__PURE__ */ i(p, { children: /* @__PURE__ */ i(a, { onSetting: t, onMembersViewMore: m, onProjectsViewMore: n, roleId: r }) }), e[0] = m, e[1] = n, e[2] = t, e[3] = r, e[4] = o) : o = e[4], o;
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
C as DNamespaceRoleCard
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DNamespaceRoleView } from './DNamespaceRole.view';
|
|
3
|
+
import { NamespaceRole } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
export interface DNamespaceRoleContentProps {
|
|
5
|
+
roleId: NamespaceRole["id"];
|
|
6
|
+
onSetting?: (role: DNamespaceRoleView) => void;
|
|
7
|
+
onMembersViewMore?: (role: DNamespaceRoleView) => void;
|
|
8
|
+
onProjectsViewMore?: (role: DNamespaceRoleView) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const DNamespaceRoleContent: React.FC<DNamespaceRoleContentProps>;
|
|
@@ -0,0 +1,162 @@
|
|
|
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 { DNamespaceRoleReactiveService as x } from "./DNamespaceRole.service.js";
|
|
7
|
+
import { Text as n } from "../text/Text.js";
|
|
8
|
+
import { Button as u } from "../button/Button.js";
|
|
9
|
+
import { IconFolders as G, IconUsers as H, IconEdit as J } from "@tabler/icons-react";
|
|
10
|
+
import { DNamespaceRolePermissions as K } from "./DNamespaceRolePermissions.js";
|
|
11
|
+
import { DNamespaceMemberReactiveService as f } from "../d-member/DNamespaceMember.service.js";
|
|
12
|
+
import "../../_virtual/compiler-runtime.js";
|
|
13
|
+
import { Card as b } from "../card/Card.js";
|
|
14
|
+
import { DUserReactiveService as v } from "../d-user/DUser.service.js";
|
|
15
|
+
import '../../assets/components/dialog/Dialog.style.css';import '../../assets/components/form/Input.style.css';import '../../assets/components/menu/Menu.style.css';/* empty css */
|
|
16
|
+
import "@radix-ui/react-dropdown-menu";
|
|
17
|
+
import { Avatar as S } from "../avatar/Avatar.js";
|
|
18
|
+
import { Badge as m } from "../badge/Badge.js";
|
|
19
|
+
import p from "../card/CardSection.js";
|
|
20
|
+
import "@radix-ui/react-checkbox";
|
|
21
|
+
/* empty css */
|
|
22
|
+
import "../form/EmailInput.js";
|
|
23
|
+
import "../form/Input.js";
|
|
24
|
+
import "../form/InputSuggestion.js";
|
|
25
|
+
import "../form/NumberInput.js";
|
|
26
|
+
import "../form/PasswordInput.js";
|
|
27
|
+
import "@radix-ui/react-one-time-password-field";
|
|
28
|
+
import "@radix-ui/react-radio-group";
|
|
29
|
+
import "../form/SwitchInput.js";
|
|
30
|
+
import "../form/TextInput.js";
|
|
31
|
+
import { Spacing as z } from "../spacing/Spacing.js";
|
|
32
|
+
import { Tooltip as R, TooltipTrigger as A, TooltipPortal as j, TooltipContent as D, TooltipArrow as C } from "../tooltip/Tooltip.js";
|
|
33
|
+
import "@radix-ui/react-dialog";
|
|
34
|
+
/* empty css */
|
|
35
|
+
import { DNamespaceProjectReactiveService as P } from "../d-project/DNamespaceProject.service.js";
|
|
36
|
+
const Ce = (w) => {
|
|
37
|
+
const {
|
|
38
|
+
roleId: h,
|
|
39
|
+
onSetting: I = () => {
|
|
40
|
+
},
|
|
41
|
+
onMembersViewMore: M = () => {
|
|
42
|
+
},
|
|
43
|
+
onProjectsViewMore: N = () => {
|
|
44
|
+
}
|
|
45
|
+
} = 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({
|
|
46
|
+
namespaceId: i?.namespace?.id
|
|
47
|
+
}).filter((t) => i?.assignedProjects?.nodes?.map((l) => l?.id).includes(t.id)), [V, i]), c = g.useMemo(() => F.values({
|
|
48
|
+
namespaceId: i?.namespace?.id
|
|
49
|
+
}).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;
|
|
50
|
+
return /* @__PURE__ */ r(o, { align: "center", style: {
|
|
51
|
+
gap: "1.3rem"
|
|
52
|
+
}, justify: "space-between", children: [
|
|
53
|
+
/* @__PURE__ */ r(o, { align: "center", style: {
|
|
54
|
+
gap: "1.3rem"
|
|
55
|
+
}, children: [
|
|
56
|
+
/* @__PURE__ */ e(n, { size: "lg", hierarchy: "primary", display: "block", children: i?.name }),
|
|
57
|
+
/* @__PURE__ */ r(o, { style: {
|
|
58
|
+
flexDirection: "column",
|
|
59
|
+
gap: "0.35rem"
|
|
60
|
+
}, children: [
|
|
61
|
+
/* @__PURE__ */ e(n, { size: "xs", hierarchy: "tertiary", children: "Permissions" }),
|
|
62
|
+
/* @__PURE__ */ e(K, { abilities: i?.abilities })
|
|
63
|
+
] })
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ r(o, { align: "center", style: {
|
|
66
|
+
gap: "1.3rem"
|
|
67
|
+
}, children: [
|
|
68
|
+
/* @__PURE__ */ r(o, { style: {
|
|
69
|
+
flexDirection: "column",
|
|
70
|
+
gap: "0.35rem"
|
|
71
|
+
}, children: [
|
|
72
|
+
/* @__PURE__ */ e(n, { size: "xs", hierarchy: "tertiary", children: "Usage" }),
|
|
73
|
+
/* @__PURE__ */ r(o, { align: "center", style: {
|
|
74
|
+
gap: "0.35rem"
|
|
75
|
+
}, children: [
|
|
76
|
+
/* @__PURE__ */ r(R, { children: [
|
|
77
|
+
/* @__PURE__ */ e(A, { asChild: !0, children: /* @__PURE__ */ r(m, { border: !0, style: {
|
|
78
|
+
verticalAlign: "middle"
|
|
79
|
+
}, children: [
|
|
80
|
+
/* @__PURE__ */ e(G, { size: 16 }),
|
|
81
|
+
/* @__PURE__ */ e(n, { hierarchy: "tertiary", size: "xs", children: s.length })
|
|
82
|
+
] }) }),
|
|
83
|
+
/* @__PURE__ */ e(j, { children: /* @__PURE__ */ r(D, { side: "bottom", maw: "200px", children: [
|
|
84
|
+
/* @__PURE__ */ e(n, { children: "Assigned projects" }),
|
|
85
|
+
/* @__PURE__ */ e(C, {}),
|
|
86
|
+
s.length > 0 ? /* @__PURE__ */ r(y, { children: [
|
|
87
|
+
/* @__PURE__ */ e(z, { spacing: "xxs" }),
|
|
88
|
+
/* @__PURE__ */ r(b, { paddingSize: "xs", mb: -0.35, mx: -0.7, style: {
|
|
89
|
+
borderWidth: "2px"
|
|
90
|
+
}, children: [
|
|
91
|
+
s.slice(0, 1).map((t) => /* @__PURE__ */ e(p, { border: !0, children: /* @__PURE__ */ r(o, { align: "center", style: {
|
|
92
|
+
gap: "0.7rem"
|
|
93
|
+
}, children: [
|
|
94
|
+
/* @__PURE__ */ e(S, { bg: "transparent", identifier: t?.name ?? "" }),
|
|
95
|
+
/* @__PURE__ */ r(o, { style: {
|
|
96
|
+
flexDirection: "column",
|
|
97
|
+
gap: "0.35rem"
|
|
98
|
+
}, children: [
|
|
99
|
+
/* @__PURE__ */ e(n, { size: "xs", hierarchy: "secondary", children: t?.name }),
|
|
100
|
+
/* @__PURE__ */ e(n, { size: "xs", hierarchy: "tertiary", children: t?.description })
|
|
101
|
+
] })
|
|
102
|
+
] }) }, t.id)),
|
|
103
|
+
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: [
|
|
104
|
+
/* @__PURE__ */ e(n, { size: "xs", children: "View more" }),
|
|
105
|
+
/* @__PURE__ */ e(m, { border: !0, children: s.slice(1, s.length).length })
|
|
106
|
+
] }) }) : null
|
|
107
|
+
] })
|
|
108
|
+
] }) : null
|
|
109
|
+
] }) })
|
|
110
|
+
] }),
|
|
111
|
+
/* @__PURE__ */ r(R, { children: [
|
|
112
|
+
/* @__PURE__ */ e(A, { asChild: !0, children: /* @__PURE__ */ r(m, { border: !0, style: {
|
|
113
|
+
verticalAlign: "middle"
|
|
114
|
+
}, children: [
|
|
115
|
+
/* @__PURE__ */ e(H, { size: 16 }),
|
|
116
|
+
/* @__PURE__ */ e(n, { hierarchy: "tertiary", size: "xs", children: c.length })
|
|
117
|
+
] }) }),
|
|
118
|
+
/* @__PURE__ */ e(j, { children: /* @__PURE__ */ r(D, { side: "bottom", maw: "200px", children: [
|
|
119
|
+
/* @__PURE__ */ e(n, { children: "Assigned members" }),
|
|
120
|
+
/* @__PURE__ */ e(C, {}),
|
|
121
|
+
c.length > 0 ? /* @__PURE__ */ r(y, { children: [
|
|
122
|
+
/* @__PURE__ */ e(z, { spacing: "xxs" }),
|
|
123
|
+
/* @__PURE__ */ r(b, { paddingSize: "xs", mb: -0.35, mx: -0.7, style: {
|
|
124
|
+
borderWidth: "2px"
|
|
125
|
+
}, children: [
|
|
126
|
+
c.slice(0, 1).map((t) => {
|
|
127
|
+
const l = E.getById(t.user?.id);
|
|
128
|
+
return /* @__PURE__ */ e(p, { border: !0, children: /* @__PURE__ */ r(o, { align: "center", style: {
|
|
129
|
+
gap: "0.7rem"
|
|
130
|
+
}, children: [
|
|
131
|
+
/* @__PURE__ */ e(S, { bg: "transparent", identifier: l?.username ?? "" }),
|
|
132
|
+
/* @__PURE__ */ r(o, { style: {
|
|
133
|
+
flexDirection: "column",
|
|
134
|
+
gap: "0.35rem"
|
|
135
|
+
}, children: [
|
|
136
|
+
/* @__PURE__ */ r(n, { size: "xs", hierarchy: "secondary", children: [
|
|
137
|
+
"@",
|
|
138
|
+
l?.username
|
|
139
|
+
] }),
|
|
140
|
+
/* @__PURE__ */ e(n, { size: "xs", hierarchy: "tertiary", children: l?.email })
|
|
141
|
+
] })
|
|
142
|
+
] }) }, t.id);
|
|
143
|
+
}),
|
|
144
|
+
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: [
|
|
145
|
+
/* @__PURE__ */ e(n, { size: "xs", children: "View more" }),
|
|
146
|
+
/* @__PURE__ */ e(m, { border: !0, children: c.length - 1 })
|
|
147
|
+
] }) }) : null
|
|
148
|
+
] })
|
|
149
|
+
] }) : null
|
|
150
|
+
] }) })
|
|
151
|
+
] })
|
|
152
|
+
] })
|
|
153
|
+
] }),
|
|
154
|
+
q && /* @__PURE__ */ e(u, { color: "secondary", variant: "filled", onClick: (t) => {
|
|
155
|
+
t.stopPropagation(), I(i);
|
|
156
|
+
}, children: /* @__PURE__ */ e(J, { size: 16 }) })
|
|
157
|
+
] })
|
|
158
|
+
] });
|
|
159
|
+
};
|
|
160
|
+
export {
|
|
161
|
+
Ce as DNamespaceRoleContent
|
|
162
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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>;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { DNamespaceRoleReactiveService as t } from "./DNamespaceRole.service.js";
|
|
8
|
+
import M from "../card/CardSection.js";
|
|
9
|
+
const I = (i) => {
|
|
10
|
+
const {
|
|
11
|
+
namespaceId: o,
|
|
12
|
+
filter: m = () => !0,
|
|
13
|
+
onSetting: s,
|
|
14
|
+
onProjectsViewMore: c,
|
|
15
|
+
onMembersViewMore: n,
|
|
16
|
+
...a
|
|
17
|
+
} = i, p = v(t), d = R(t), l = u.useMemo(() => p.values({
|
|
18
|
+
namespaceId: o
|
|
19
|
+
}), [d, o]);
|
|
20
|
+
return /* @__PURE__ */ r(S, { ...a, 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)) });
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
I as DNamespaceRoleList
|
|
24
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { jsx as i, jsxs as s, Fragment as l } from "react/jsx-runtime";
|
|
2
|
+
import a from "react";
|
|
3
|
+
import { Flex as A } from "../flex/Flex.js";
|
|
4
|
+
import { Text as c } from "../text/Text.js";
|
|
5
|
+
import { Badge as m } 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(m, { 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(a.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 = a.useMemo(() => S(r), [r]);
|
|
119
|
+
return /* @__PURE__ */ i(c, { size: "sm", hierarchy: "secondary", children: g(n) });
|
|
120
|
+
};
|
|
121
|
+
export {
|
|
122
|
+
b as DNamespaceRolePermissions
|
|
123
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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,7 +1,10 @@
|
|
|
1
1
|
import { ReactiveArrayService } from '../../utils/reactiveArrayService';
|
|
2
2
|
import { DRuntimeView } from './DRuntime.view';
|
|
3
|
-
import { Runtime, RuntimesCreateInput, RuntimesCreatePayload, RuntimesDeleteInput, RuntimesDeletePayload, RuntimesRotateTokenInput, RuntimesRotateTokenPayload } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
export
|
|
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> {
|
|
5
8
|
getById(id: Runtime['id']): DRuntimeView | undefined;
|
|
6
9
|
abstract runtimeCreate(payload: RuntimesCreateInput): Promise<RuntimesCreatePayload | undefined>;
|
|
7
10
|
abstract runtimeDelete(payload: RuntimesDeleteInput): Promise<RuntimesDeletePayload | undefined>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ReactiveArrayService as r } from "../../utils/reactiveArrayService.js";
|
|
2
2
|
class c extends r {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
getById(e) {
|
|
6
|
-
return this.values().find((i) => i.id === e);
|
|
3
|
+
getById(i) {
|
|
4
|
+
return this.values().find((e) => e && e.id === i);
|
|
7
5
|
}
|
|
8
6
|
}
|
|
9
7
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTypeConnection, FlowTypeConnection, Maybe, Namespace, NamespaceProjectConnection, Runtime, RuntimeStatusType, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
1
|
+
import { DataTypeConnection, FlowTypeConnection, Maybe, Namespace, NamespaceProjectConnection, Runtime, RuntimeStatusType, RuntimeUserAbilities, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
2
2
|
export declare class DRuntimeView {
|
|
3
3
|
/** Time when this Runtime was created */
|
|
4
4
|
private readonly _createdAt?;
|
|
@@ -22,6 +22,8 @@ export declare class DRuntimeView {
|
|
|
22
22
|
private readonly _token?;
|
|
23
23
|
/** Time when this Runtime was last updated */
|
|
24
24
|
private readonly _updatedAt?;
|
|
25
|
+
/** Abilities for the current user on this Runtime */
|
|
26
|
+
private readonly _userAbilities?;
|
|
25
27
|
constructor(payload: Runtime);
|
|
26
28
|
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
27
29
|
get dataTypes(): Maybe<DataTypeConnection> | undefined;
|
|
@@ -34,5 +36,6 @@ export declare class DRuntimeView {
|
|
|
34
36
|
get status(): Maybe<RuntimeStatusType> | undefined;
|
|
35
37
|
get token(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
36
38
|
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
39
|
+
get userAbilities(): Maybe<RuntimeUserAbilities> | undefined;
|
|
37
40
|
json(): Runtime;
|
|
38
41
|
}
|
|
@@ -15,9 +15,9 @@ function o(e, t) {
|
|
|
15
15
|
}
|
|
16
16
|
return (t === "string" ? String : Number)(e);
|
|
17
17
|
}
|
|
18
|
-
class
|
|
18
|
+
class u {
|
|
19
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), 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;
|
|
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
21
|
}
|
|
22
22
|
get createdAt() {
|
|
23
23
|
return this._createdAt;
|
|
@@ -52,6 +52,9 @@ class a {
|
|
|
52
52
|
get updatedAt() {
|
|
53
53
|
return this._updatedAt;
|
|
54
54
|
}
|
|
55
|
+
get userAbilities() {
|
|
56
|
+
return this._userAbilities;
|
|
57
|
+
}
|
|
55
58
|
json() {
|
|
56
59
|
return {
|
|
57
60
|
createdAt: this._createdAt,
|
|
@@ -69,5 +72,5 @@ class a {
|
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
export {
|
|
72
|
-
|
|
75
|
+
u as DRuntimeView
|
|
73
76
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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>;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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>;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { DRuntimeReactiveService as l } from "./DRuntime.service.js";
|
|
10
|
+
import { Badge as s } from "../badge/Badge.js";
|
|
11
|
+
const T = (m) => {
|
|
12
|
+
const {
|
|
13
|
+
runtimeId: o,
|
|
14
|
+
minimized: c = !1,
|
|
15
|
+
onSetting: a = () => {
|
|
16
|
+
}
|
|
17
|
+
} = m, d = g(l), p = C(l), r = h.useMemo(() => d.getById(o), [p, o]);
|
|
18
|
+
return /* @__PURE__ */ t(i, { justify: "space-between", align: "center", style: {
|
|
19
|
+
gap: "1.3rem"
|
|
20
|
+
}, children: [
|
|
21
|
+
c ? /* @__PURE__ */ e(i, { align: "center", style: {
|
|
22
|
+
gap: "0.7rem"
|
|
23
|
+
}, children: /* @__PURE__ */ e(n, { size: "md", hierarchy: "secondary", display: "block", children: r?.name }) }) : /* @__PURE__ */ t(i, { style: {
|
|
24
|
+
flexDirection: "column",
|
|
25
|
+
gap: "0.35rem"
|
|
26
|
+
}, children: [
|
|
27
|
+
/* @__PURE__ */ e(n, { size: "lg", hierarchy: "secondary", display: "block", children: r?.name }),
|
|
28
|
+
/* @__PURE__ */ e(n, { size: "sm", hierarchy: "tertiary", display: "block", children: r?.description })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ t(i, { align: "center", style: {
|
|
31
|
+
gap: "1.3rem"
|
|
32
|
+
}, children: [
|
|
33
|
+
/* @__PURE__ */ e(i, { align: "center", style: {
|
|
34
|
+
gap: "0.35rem",
|
|
35
|
+
flexWrap: "wrap"
|
|
36
|
+
}, children: r?.status === "CONNECTED" ? /* @__PURE__ */ e(s, { color: "success", children: "CONNECTED" }) : /* @__PURE__ */ e(s, { color: "error", children: "DISCONNECTED" }) }),
|
|
37
|
+
!c && (r?.userAbilities?.deleteRuntime || r?.userAbilities?.updateRuntime || r?.userAbilities?.rotateRuntimeToken) ? /* @__PURE__ */ e(f, { color: "secondary", variant: "filled", onClick: (u) => {
|
|
38
|
+
u.stopPropagation(), a(r);
|
|
39
|
+
}, children: /* @__PURE__ */ e(y, { size: 16 }) }) : null
|
|
40
|
+
] })
|
|
41
|
+
] });
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
T as DRuntimeContent
|
|
45
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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>;
|