@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
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import a from "react";
|
|
3
|
+
import { Flex as i } from "../flex/Flex.js";
|
|
4
|
+
import { useService as y, useStore as f } from "../../utils/contextStore.js";
|
|
5
|
+
import "merge-props";
|
|
6
|
+
import { DNamespaceMemberReactiveService as M } from "./DNamespaceMember.service.js";
|
|
7
|
+
import { DUserReactiveService as I } from "../d-user/DUser.service.js";
|
|
8
|
+
import { Menu as w, MenuTrigger as T, MenuPortal as O, MenuContent as j, MenuLabel as m, MenuItem as b, MenuSeparator as _ } from "../menu/Menu.js";
|
|
9
|
+
import { Avatar as ee } from "../avatar/Avatar.js";
|
|
10
|
+
import { Text as o } from "../text/Text.js";
|
|
11
|
+
import "../../_virtual/compiler-runtime.js";
|
|
12
|
+
import { Card as v } from "../card/Card.js";
|
|
13
|
+
import { Badge as l } from "../badge/Badge.js";
|
|
14
|
+
import { IconTrash as re, IconArrowUp as B, IconArrowDown as k, IconCornerDownLeft as N, IconMailCheck as ie, IconDots as ne, IconUserOff as oe, IconUserCog as te } from "@tabler/icons-react";
|
|
15
|
+
import { Button as s } from "../button/Button.js";
|
|
16
|
+
import P from "../card/CardSection.js";
|
|
17
|
+
import "@radix-ui/react-checkbox";
|
|
18
|
+
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
19
|
+
import "../form/EmailInput.js";
|
|
20
|
+
import "../form/Input.js";
|
|
21
|
+
import "../form/InputSuggestion.js";
|
|
22
|
+
import "../form/NumberInput.js";
|
|
23
|
+
import "../form/PasswordInput.js";
|
|
24
|
+
import "@radix-ui/react-one-time-password-field";
|
|
25
|
+
import "@radix-ui/react-radio-group";
|
|
26
|
+
import "../form/SwitchInput.js";
|
|
27
|
+
import "../form/TextInput.js";
|
|
28
|
+
import { Spacing as U } from "../spacing/Spacing.js";
|
|
29
|
+
import { DNamespaceRoleReactiveService as F } from "../d-role/DNamespaceRole.service.js";
|
|
30
|
+
import { DNamespaceRolePermissions as x } from "../d-role/DNamespaceRolePermissions.js";
|
|
31
|
+
import { Tooltip as le, TooltipTrigger as se, TooltipPortal as ce, TooltipContent as ae, TooltipArrow as de } from "../tooltip/Tooltip.js";
|
|
32
|
+
import { Dialog as L, DialogPortal as W, DialogContent as Y, DialogClose as h } from "../dialog/Dialog.js";
|
|
33
|
+
const Ve = (E) => {
|
|
34
|
+
const {
|
|
35
|
+
memberId: S,
|
|
36
|
+
onAssignRole: V = () => {
|
|
37
|
+
},
|
|
38
|
+
onRemove: q = () => {
|
|
39
|
+
}
|
|
40
|
+
} = E, G = y(M), H = f(M), J = y(I), K = f(I), C = y(F), Q = f(F), t = a.useMemo(() => G.getById(S), [H, S]), c = a.useMemo(() => J.getById(t?.user?.id), [K, t]), p = a.useMemo(() => t?.roles?.nodes?.map((n) => C.getById(n?.id, {
|
|
41
|
+
namespaceId: t?.namespace?.id
|
|
42
|
+
})) || [], [Q, t]), [g, z] = a.useState(p), [X, A] = a.useState(!1), [Z, R] = a.useState(!1), D = C.values({
|
|
43
|
+
namespaceId: t?.namespace?.id
|
|
44
|
+
}).filter((n) => !g.find((d) => d?.id === n.id));
|
|
45
|
+
return /* @__PURE__ */ r(i, { align: "center", style: {
|
|
46
|
+
gap: "1.3rem"
|
|
47
|
+
}, justify: "space-between", children: [
|
|
48
|
+
/* @__PURE__ */ e(L, { open: X, onOpenChange: (n) => A(n), children: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ r(Y, { showCloseButton: !0, title: "Remove member", children: [
|
|
49
|
+
/* @__PURE__ */ r(o, { size: "md", hierarchy: "secondary", children: [
|
|
50
|
+
"Are you sure you want to remove ",
|
|
51
|
+
" ",
|
|
52
|
+
/* @__PURE__ */ e(l, { color: "info", children: /* @__PURE__ */ r(o, { size: "md", style: {
|
|
53
|
+
color: "inherit"
|
|
54
|
+
}, children: [
|
|
55
|
+
"@",
|
|
56
|
+
c?.username
|
|
57
|
+
] }) }),
|
|
58
|
+
" ",
|
|
59
|
+
" ",
|
|
60
|
+
"from the namespace members?"
|
|
61
|
+
] }),
|
|
62
|
+
/* @__PURE__ */ r(i, { justify: "space-between", align: "center", children: [
|
|
63
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(s, { color: "secondary", children: "No, go back!" }) }),
|
|
64
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(s, { color: "error", onClick: () => q(t), children: "Yes, remove!" }) })
|
|
65
|
+
] })
|
|
66
|
+
] }) }) }),
|
|
67
|
+
/* @__PURE__ */ e(L, { open: Z, onOpenChange: (n) => R(n), children: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ r(Y, { autoFocus: !0, showCloseButton: !0, title: "Assign roles", children: [
|
|
68
|
+
/* @__PURE__ */ e(o, { size: "md", hierarchy: "tertiary", children: "Assign, remove and manage the roles of a active member" }),
|
|
69
|
+
/* @__PURE__ */ r(v, { paddingSize: "xs", color: "secondary", children: [
|
|
70
|
+
g.map((n) => /* @__PURE__ */ e(P, { border: !0, children: /* @__PURE__ */ r(i, { style: {
|
|
71
|
+
gap: "0.7rem"
|
|
72
|
+
}, align: "center", justify: "space-between", children: [
|
|
73
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
74
|
+
gap: "1.3rem"
|
|
75
|
+
}, children: [
|
|
76
|
+
/* @__PURE__ */ e(o, { hierarchy: "primary", children: n?.name }),
|
|
77
|
+
/* @__PURE__ */ e(x, { abilities: n?.abilities })
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ e(s, { color: "error", variant: "filled", paddingSize: "xxs", onClick: () => {
|
|
80
|
+
z((d) => d.filter((u) => u?.id != n?.id));
|
|
81
|
+
}, children: /* @__PURE__ */ e(re, { size: 16 }) })
|
|
82
|
+
] }) }, n?.id)),
|
|
83
|
+
/* @__PURE__ */ r(w, { children: [
|
|
84
|
+
/* @__PURE__ */ e(T, { asChild: !0, children: /* @__PURE__ */ e(P, { hover: !0, p: 0.35, border: !0, display: "flex", justify: "center", children: /* @__PURE__ */ e(s, { paddingSize: "xxs", variant: "none", children: "Assign roles" }) }) }),
|
|
85
|
+
/* @__PURE__ */ e(O, { children: /* @__PURE__ */ r(j, { side: "bottom", sideOffset: 8, align: "center", color: "secondary", maw: "300px", children: [
|
|
86
|
+
/* @__PURE__ */ r(v, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: {
|
|
87
|
+
borderWidth: "2px"
|
|
88
|
+
}, children: [
|
|
89
|
+
/* @__PURE__ */ e(m, { children: "Roles to add" }),
|
|
90
|
+
D.map((n, d) => /* @__PURE__ */ r($, { children: [
|
|
91
|
+
/* @__PURE__ */ e(b, { onSelect: () => {
|
|
92
|
+
z((u) => [...u, n]);
|
|
93
|
+
}, children: /* @__PURE__ */ r(i, { align: "center", style: {
|
|
94
|
+
gap: "1.3rem"
|
|
95
|
+
}, children: [
|
|
96
|
+
/* @__PURE__ */ e(o, { hierarchy: "primary", children: n?.name }),
|
|
97
|
+
/* @__PURE__ */ e(x, { abilities: n?.abilities })
|
|
98
|
+
] }) }),
|
|
99
|
+
d < D.length - 1 && /* @__PURE__ */ e(_, {})
|
|
100
|
+
] }))
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ r(i, { style: {
|
|
103
|
+
gap: ".35rem"
|
|
104
|
+
}, children: [
|
|
105
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
106
|
+
gap: "0.35rem"
|
|
107
|
+
}, children: [
|
|
108
|
+
/* @__PURE__ */ r(i, { children: [
|
|
109
|
+
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(B, { size: 12 }) }),
|
|
110
|
+
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(k, { size: 12 }) })
|
|
111
|
+
] }),
|
|
112
|
+
"move"
|
|
113
|
+
] }),
|
|
114
|
+
/* @__PURE__ */ e(U, { spacing: "xxs" }),
|
|
115
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
116
|
+
gap: ".35rem"
|
|
117
|
+
}, children: [
|
|
118
|
+
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(N, { size: 12 }) }),
|
|
119
|
+
"insert"
|
|
120
|
+
] })
|
|
121
|
+
] }) })
|
|
122
|
+
] }) })
|
|
123
|
+
] })
|
|
124
|
+
] }),
|
|
125
|
+
/* @__PURE__ */ r(i, { justify: "space-between", align: "center", children: [
|
|
126
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(s, { color: "secondary", children: "No, go back!" }) }),
|
|
127
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(s, { onClick: () => V(t, g), color: "success", children: "Yes, save!" }) })
|
|
128
|
+
] })
|
|
129
|
+
] }) }) }),
|
|
130
|
+
/* @__PURE__ */ r(i, { style: {
|
|
131
|
+
gap: "1.3rem"
|
|
132
|
+
}, align: "center", children: [
|
|
133
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
134
|
+
gap: ".7rem"
|
|
135
|
+
}, children: [
|
|
136
|
+
/* @__PURE__ */ e(ee, { identifier: c?.username, bg: "transparent" }),
|
|
137
|
+
/* @__PURE__ */ r(i, { style: {
|
|
138
|
+
flexDirection: "column",
|
|
139
|
+
gap: "0.35rem"
|
|
140
|
+
}, children: [
|
|
141
|
+
/* @__PURE__ */ r(o, { size: "md", hierarchy: "primary", children: [
|
|
142
|
+
"@",
|
|
143
|
+
c?.username
|
|
144
|
+
] }),
|
|
145
|
+
/* @__PURE__ */ e(o, { size: "sm", hierarchy: "tertiary", children: c?.email })
|
|
146
|
+
] })
|
|
147
|
+
] }),
|
|
148
|
+
p.length > 0 ? /* @__PURE__ */ r(i, { style: {
|
|
149
|
+
flexDirection: "column",
|
|
150
|
+
gap: "0.35rem"
|
|
151
|
+
}, children: [
|
|
152
|
+
/* @__PURE__ */ e(o, { size: "xs", hierarchy: "tertiary", children: "Assigned roles" }),
|
|
153
|
+
/* @__PURE__ */ e(i, { align: "center", style: {
|
|
154
|
+
gap: "0.35rem"
|
|
155
|
+
}, children: p.map((n) => /* @__PURE__ */ r(le, { children: [
|
|
156
|
+
/* @__PURE__ */ e(se, { asChild: !0, children: /* @__PURE__ */ e(l, { color: "info", children: /* @__PURE__ */ e(o, { style: {
|
|
157
|
+
color: "inherit"
|
|
158
|
+
}, hierarchy: "tertiary", children: n?.name }) }) }),
|
|
159
|
+
/* @__PURE__ */ e(ce, { children: /* @__PURE__ */ r(ae, { side: "bottom", children: [
|
|
160
|
+
/* @__PURE__ */ e(x, { abilities: n?.abilities }),
|
|
161
|
+
/* @__PURE__ */ e(de, {})
|
|
162
|
+
] }) })
|
|
163
|
+
] })) })
|
|
164
|
+
] }) : null
|
|
165
|
+
] }),
|
|
166
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
167
|
+
gap: "1.3rem"
|
|
168
|
+
}, children: [
|
|
169
|
+
/* @__PURE__ */ e(i, { style: {
|
|
170
|
+
flexDirection: "column",
|
|
171
|
+
gap: "0.35rem"
|
|
172
|
+
}, children: /* @__PURE__ */ r(i, { style: {
|
|
173
|
+
gap: "0.35rem"
|
|
174
|
+
}, align: "center", children: [
|
|
175
|
+
c?.admin ? /* @__PURE__ */ e(l, { border: !0, color: "primary", children: /* @__PURE__ */ e(o, { hierarchy: "tertiary", children: "Owner" }) }) : null,
|
|
176
|
+
c?.emailVerifiedAt ? /* @__PURE__ */ r(l, { border: !0, color: "primary", children: [
|
|
177
|
+
/* @__PURE__ */ e(ie, { size: 16 }),
|
|
178
|
+
/* @__PURE__ */ e(o, { hierarchy: "tertiary", children: "Email verified" })
|
|
179
|
+
] }) : null
|
|
180
|
+
] }) }),
|
|
181
|
+
t?.userAbilities?.deleteMember || t?.userAbilities?.assignMemberRoles ? /* @__PURE__ */ r(w, { children: [
|
|
182
|
+
/* @__PURE__ */ e(T, { asChild: !0, children: /* @__PURE__ */ e(s, { variant: "filled", color: "secondary", children: /* @__PURE__ */ e(ne, { size: 16 }) }) }),
|
|
183
|
+
/* @__PURE__ */ e(O, { children: /* @__PURE__ */ r(j, { align: "end", side: "bottom", sideOffset: 8, color: "secondary", children: [
|
|
184
|
+
/* @__PURE__ */ r(v, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: {
|
|
185
|
+
borderWidth: "2px"
|
|
186
|
+
}, children: [
|
|
187
|
+
/* @__PURE__ */ e(m, { children: "Actions" }),
|
|
188
|
+
t?.userAbilities?.deleteMember && /* @__PURE__ */ r(b, { onSelect: () => A(!0), children: [
|
|
189
|
+
/* @__PURE__ */ e(oe, { size: 16 }),
|
|
190
|
+
/* @__PURE__ */ e(o, { children: "Remove member" })
|
|
191
|
+
] }),
|
|
192
|
+
t?.userAbilities?.assignMemberRoles && /* @__PURE__ */ r(b, { onSelect: () => R(!0), children: [
|
|
193
|
+
/* @__PURE__ */ e(te, { size: 16 }),
|
|
194
|
+
/* @__PURE__ */ e(o, { children: "Assign role" })
|
|
195
|
+
] })
|
|
196
|
+
] }),
|
|
197
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ r(i, { style: {
|
|
198
|
+
gap: ".35rem"
|
|
199
|
+
}, children: [
|
|
200
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
201
|
+
gap: "0.35rem"
|
|
202
|
+
}, children: [
|
|
203
|
+
/* @__PURE__ */ r(i, { children: [
|
|
204
|
+
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(B, { size: 12 }) }),
|
|
205
|
+
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(k, { size: 12 }) })
|
|
206
|
+
] }),
|
|
207
|
+
"move"
|
|
208
|
+
] }),
|
|
209
|
+
/* @__PURE__ */ e(U, { spacing: "xxs" }),
|
|
210
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
211
|
+
gap: ".35rem"
|
|
212
|
+
}, children: [
|
|
213
|
+
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(N, { size: 12 }) }),
|
|
214
|
+
"perform"
|
|
215
|
+
] })
|
|
216
|
+
] }) })
|
|
217
|
+
] }) })
|
|
218
|
+
] }) : null
|
|
219
|
+
] })
|
|
220
|
+
] });
|
|
221
|
+
};
|
|
222
|
+
export {
|
|
223
|
+
Ve as DNamespaceMemberContent
|
|
224
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Namespace } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
import { Card } from '../card/Card';
|
|
4
|
+
import { DNamespaceMemberView } from './DNamespaceMember.view';
|
|
5
|
+
import { DNamespaceRoleView } from '../d-role';
|
|
6
|
+
export interface DNamespaceMemberListProps extends Omit<Card, "children" | "onSelect"> {
|
|
7
|
+
namespaceId: Namespace["id"];
|
|
8
|
+
filter?: (runtime: DNamespaceMemberView, index: number) => boolean;
|
|
9
|
+
onRemove?: (member: DNamespaceMemberView) => void;
|
|
10
|
+
onAssignRole?: (member: DNamespaceMemberView, roles: DNamespaceRoleView[]) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const DNamespaceMemberList: React.FC<DNamespaceMemberListProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import f from "react";
|
|
3
|
+
import { useService as u, useStore as l } from "../../utils/contextStore.js";
|
|
4
|
+
import "merge-props";
|
|
5
|
+
import { DNamespaceMemberReactiveService as t } from "./DNamespaceMember.service.js";
|
|
6
|
+
import { Card as v } from "../card/Card.js";
|
|
7
|
+
import S from "../card/CardSection.js";
|
|
8
|
+
import { DNamespaceMemberContent as b } from "./DNamespaceMemberContent.js";
|
|
9
|
+
const _ = (m) => {
|
|
10
|
+
const {
|
|
11
|
+
namespaceId: o,
|
|
12
|
+
filter: i = () => !0,
|
|
13
|
+
onRemove: s,
|
|
14
|
+
onAssignRole: c,
|
|
15
|
+
...a
|
|
16
|
+
} = m, n = u(t), p = l(t), d = f.useMemo(() => n.values({
|
|
17
|
+
namespaceId: o
|
|
18
|
+
}), [p, o]);
|
|
19
|
+
return /* @__PURE__ */ r(v, { ...a, children: d.filter(i).map((e) => e && e.id && /* @__PURE__ */ r(S, { border: !0, children: /* @__PURE__ */ r(b, { onRemove: s, onAssignRole: c, memberId: e?.id }) }, e.id)) });
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
_ as DNamespaceMemberList
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DNamespaceMemberReactiveService as m } from "./DNamespaceMember.service.js";
|
|
2
|
+
import { DNamespaceMemberView as o } from "./DNamespaceMember.view.js";
|
|
3
|
+
import { DNamespaceMemberCard as c } from "./DNamespaceMemberCard.js";
|
|
4
|
+
import { DNamespaceMemberList as s } from "./DNamespaceMemberList.js";
|
|
5
|
+
export {
|
|
6
|
+
c as DNamespaceMemberCard,
|
|
7
|
+
s as DNamespaceMemberList,
|
|
8
|
+
m as DNamespaceMemberReactiveService,
|
|
9
|
+
o as DNamespaceMemberView
|
|
10
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Namespace } from '@code0-tech/sagittarius-graphql-types';
|
|
2
2
|
import { DNamespaceView } from './DNamespace.view';
|
|
3
|
-
import { ReactiveArrayService } from '../../utils
|
|
3
|
+
import { ReactiveArrayService } from '../../utils';
|
|
4
4
|
export declare abstract class DNamespaceReactiveService extends ReactiveArrayService<DNamespaceView> {
|
|
5
5
|
getById(id: Namespace['id']): DNamespaceView | undefined;
|
|
6
6
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import "../../utils/contextStore.js";
|
|
2
|
+
import "react";
|
|
1
3
|
import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return this.values().find((r) => r.id === e);
|
|
4
|
+
import "merge-props";
|
|
5
|
+
class p extends i {
|
|
6
|
+
getById(r) {
|
|
7
|
+
return this.values().find((e) => e && e.id === r);
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
p as DNamespaceReactiveService
|
|
11
12
|
};
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
export * from './license/DNamespaceLicense.service';
|
|
2
|
-
export * from './license/DNamespaceLicense.view';
|
|
3
|
-
export * from './member/DNamespaceMember.service';
|
|
4
|
-
export * from './member/DNamespaceMember.view';
|
|
5
|
-
export * from './project/DNamespaceProject.service';
|
|
6
|
-
export * from './project/DNamespaceProject.view';
|
|
7
|
-
export * from './project/DNamespaceProjectCard';
|
|
8
|
-
export * from './project/DNamespaceProjectMenu';
|
|
9
|
-
export * from './role/DNamespaceRole.service';
|
|
10
|
-
export * from './role/DNamespaceRole.view';
|
|
11
1
|
export * from './DNamespace.service';
|
|
12
2
|
export * from './DNamespace.view';
|
|
@@ -1,35 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { DNamespaceMemberReactiveService as b } from "./member/DNamespaceMember.service.js";
|
|
4
|
-
import { DNamespaceMemberView as l } from "./member/DNamespaceMember.view.js";
|
|
5
|
-
import { DNamespaceProjectReactiveService as L } from "./project/DNamespaceProject.service.js";
|
|
6
|
-
import { DNamespaceProjectView as P } from "./project/DNamespaceProject.view.js";
|
|
7
|
-
import "react/jsx-runtime";
|
|
8
|
-
import "react";
|
|
9
|
-
import "../../compiler-runtime-BNHg76kC.js";
|
|
10
|
-
import '../../assets/Menu.css';import '../../assets/Badge.css';import '../../assets/Flex.css';import '../../assets/Text.css';import '../../assets/Card.css';/* empty css */
|
|
11
|
-
import "merge-props";
|
|
12
|
-
/* empty css */
|
|
13
|
-
import "@tabler/icons-react";
|
|
14
|
-
import "../../utils/contextStore.js";
|
|
15
|
-
/* empty css */
|
|
16
|
-
import "../button/Button.js";
|
|
17
|
-
/* empty css */
|
|
18
|
-
import { DNamespaceReactiveService as g } from "./DNamespace.service.js";
|
|
19
|
-
/* empty css */
|
|
20
|
-
import "@radix-ui/react-dropdown-menu";
|
|
21
|
-
import { DNamespaceRoleReactiveService as k } from "./role/DNamespaceRole.service.js";
|
|
22
|
-
import { DNamespaceRoleView as u } from "./role/DNamespaceRole.view.js";
|
|
23
|
-
import { DNamespaceView as z } from "./DNamespace.view.js";
|
|
1
|
+
import { DNamespaceReactiveService as r } from "./DNamespace.service.js";
|
|
2
|
+
import { DNamespaceView as m } from "./DNamespace.view.js";
|
|
24
3
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
b as DNamespaceMemberReactiveService,
|
|
28
|
-
l as DNamespaceMemberView,
|
|
29
|
-
L as DNamespaceProjectReactiveService,
|
|
30
|
-
P as DNamespaceProjectView,
|
|
31
|
-
g as DNamespaceReactiveService,
|
|
32
|
-
k as DNamespaceRoleReactiveService,
|
|
33
|
-
u as DNamespaceRoleView,
|
|
34
|
-
z as DNamespaceView
|
|
4
|
+
r as DNamespaceReactiveService,
|
|
5
|
+
m as DNamespaceView
|
|
35
6
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ReactiveArrayService } from '../../utils
|
|
1
|
+
import { ReactiveArrayService } from '../../utils';
|
|
2
2
|
import { DOrganizationView } from './DOrganization.view';
|
|
3
|
-
import { OrganizationsCreateInput, OrganizationsCreatePayload, OrganizationsDeleteInput, OrganizationsDeletePayload
|
|
3
|
+
import { Organization, OrganizationsCreateInput, OrganizationsCreatePayload, OrganizationsDeleteInput, OrganizationsDeletePayload } from '@code0-tech/sagittarius-graphql-types';
|
|
4
4
|
export declare abstract class DOrganizationReactiveService extends ReactiveArrayService<DOrganizationView> {
|
|
5
|
-
getById(id:
|
|
5
|
+
getById(id: Organization["id"]): DOrganizationView | undefined;
|
|
6
6
|
abstract organizationCreate(payload: OrganizationsCreateInput): Promise<OrganizationsCreatePayload | undefined>;
|
|
7
7
|
abstract organizationDelete(payload: OrganizationsDeleteInput): Promise<OrganizationsDeletePayload | undefined>;
|
|
8
8
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import "../../utils/contextStore.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
|
|
4
|
+
import "merge-props";
|
|
5
|
+
class p extends i {
|
|
6
|
+
getById(r) {
|
|
7
|
+
return this.values().find((e) => e && e.id === r);
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
p as DOrganizationReactiveService
|
|
11
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Maybe, Namespace, Organization, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
1
|
+
import { Maybe, Namespace, Organization, OrganizationUserAbilities, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
2
2
|
export declare class DOrganizationView {
|
|
3
3
|
private readonly _createdAt?;
|
|
4
4
|
/** Global ID of this Organization */
|
|
@@ -9,12 +9,15 @@ export declare class DOrganizationView {
|
|
|
9
9
|
private readonly _namespace?;
|
|
10
10
|
/** Time when this Organization was last updated */
|
|
11
11
|
private readonly _updatedAt?;
|
|
12
|
+
/** Abilities for the current user on this Organization */
|
|
13
|
+
private readonly _userAbilities?;
|
|
12
14
|
constructor(payload: Organization);
|
|
13
15
|
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
14
16
|
get id(): Maybe<Scalars["OrganizationID"]["output"] | undefined>;
|
|
15
17
|
get name(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
16
18
|
get namespace(): Maybe<Namespace> | undefined;
|
|
17
19
|
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
20
|
+
get userAbilities(): Maybe<OrganizationUserAbilities> | undefined;
|
|
18
21
|
set name(value: Maybe<Scalars["String"]["output"]>);
|
|
19
22
|
json(): Organization;
|
|
20
23
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
function
|
|
2
|
-
return (
|
|
1
|
+
function i(t, e, r) {
|
|
2
|
+
return (e = n(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
3
3
|
}
|
|
4
|
-
function
|
|
5
|
-
var
|
|
6
|
-
return typeof
|
|
4
|
+
function n(t) {
|
|
5
|
+
var e = a(t, "string");
|
|
6
|
+
return typeof e == "symbol" ? e : e + "";
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
if (typeof
|
|
10
|
-
var
|
|
11
|
-
if (
|
|
12
|
-
var
|
|
13
|
-
if (typeof
|
|
8
|
+
function a(t, e) {
|
|
9
|
+
if (typeof t != "object" || !t) return t;
|
|
10
|
+
var r = t[Symbol.toPrimitive];
|
|
11
|
+
if (r !== void 0) {
|
|
12
|
+
var s = r.call(t, e);
|
|
13
|
+
if (typeof s != "object") return s;
|
|
14
14
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
15
|
}
|
|
16
|
-
return (
|
|
16
|
+
return (e === "string" ? String : Number)(t);
|
|
17
17
|
}
|
|
18
|
-
class
|
|
19
|
-
constructor(
|
|
20
|
-
|
|
18
|
+
class u {
|
|
19
|
+
constructor(e) {
|
|
20
|
+
i(this, "_createdAt", void 0), i(this, "_id", void 0), i(this, "_name", void 0), i(this, "_namespace", void 0), i(this, "_updatedAt", void 0), i(this, "_userAbilities", void 0), this._createdAt = e.createdAt, this._id = e.id, this._name = e.name, this._namespace = e.namespace, this._updatedAt = e.updatedAt, this._userAbilities = e.userAbilities;
|
|
21
21
|
}
|
|
22
22
|
get createdAt() {
|
|
23
23
|
return this._createdAt;
|
|
@@ -34,8 +34,11 @@ class d {
|
|
|
34
34
|
get updatedAt() {
|
|
35
35
|
return this._updatedAt;
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
this.
|
|
37
|
+
get userAbilities() {
|
|
38
|
+
return this._userAbilities;
|
|
39
|
+
}
|
|
40
|
+
set name(e) {
|
|
41
|
+
this._name = e;
|
|
39
42
|
}
|
|
40
43
|
json() {
|
|
41
44
|
return {
|
|
@@ -48,5 +51,5 @@ class d {
|
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
export {
|
|
51
|
-
|
|
54
|
+
u as DOrganizationView
|
|
52
55
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { Code0Component } from '../../utils
|
|
2
|
+
import { Code0Component } from '../../utils';
|
|
3
3
|
import { Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
import { DOrganizationView } from './DOrganization.view';
|
|
4
5
|
export interface DOrganizationCardProps extends Code0Component<HTMLDivElement> {
|
|
5
6
|
organizationId: Scalars['OrganizationID']['output'];
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
onSetting?: (organization: DOrganizationView) => void;
|
|
8
|
+
onLeave?: (organization: DOrganizationView) => void;
|
|
8
9
|
}
|
|
9
10
|
declare const DOrganizationCard: React.FC<DOrganizationCardProps>;
|
|
10
11
|
export default DOrganizationCard;
|
|
@@ -1,63 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { Card as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import { DNamespaceLicenseReactiveService as h } from "../d-namespace/license/DNamespaceLicense.service.js";
|
|
14
|
-
const K = (z) => {
|
|
15
|
-
const {
|
|
16
|
-
organizationId: n,
|
|
17
|
-
onSettingsClick: S = () => {
|
|
18
|
-
},
|
|
19
|
-
onLeaveClick: y = () => {
|
|
20
|
-
}
|
|
21
|
-
} = z, v = t(f), x = c(f), C = t(g), I = c(g), b = t(h);
|
|
22
|
-
c(h);
|
|
23
|
-
const o = x.getById(n);
|
|
24
|
-
if (!o?.namespace?.id) return;
|
|
25
|
-
const m = I.getById(o?.namespace?.id), l = o?.namespace?.projects?.count, p = m?.members?.count, d = m?.runtimes?.count;
|
|
26
|
-
return j.useMemo(() => /* @__PURE__ */ r(k, { maw: "400px", children: [
|
|
27
|
-
/* @__PURE__ */ r(a, { align: "center", style: {
|
|
28
|
-
gap: "0.7rem"
|
|
29
|
-
}, justify: "space-between", children: [
|
|
30
|
-
/* @__PURE__ */ e(i, { size: "lg", hierarchy: "primary", display: "block", children: o?.name }),
|
|
31
|
-
/* @__PURE__ */ r(a, { align: "center", style: {
|
|
32
|
-
gap: "0.35rem"
|
|
33
|
-
}, children: [
|
|
34
|
-
/* @__PURE__ */ e(u, { color: "secondary", onClick: () => S(n), children: /* @__PURE__ */ e($, { size: 16 }) }),
|
|
35
|
-
/* @__PURE__ */ r(u, { color: "error", onClick: () => y(n), children: [
|
|
36
|
-
/* @__PURE__ */ e(B, { size: 16 }),
|
|
37
|
-
" Leave"
|
|
38
|
-
] })
|
|
39
|
-
] })
|
|
40
|
-
] }),
|
|
41
|
-
/* @__PURE__ */ e(i, { size: "sm", hierarchy: "tertiary", display: "block", children: o?.name }),
|
|
42
|
-
/* @__PURE__ */ e(w, { border: !0, children: /* @__PURE__ */ r(a, { align: "center", style: {
|
|
43
|
-
gap: "0.35rem",
|
|
44
|
-
flexWrap: "wrap"
|
|
45
|
-
}, children: [
|
|
46
|
-
/* @__PURE__ */ r(s, { color: "info", children: [
|
|
47
|
-
/* @__PURE__ */ e(D, { size: 18 }),
|
|
48
|
-
/* @__PURE__ */ e(i, { size: "xs", children: `${l ?? 0} project${(l ?? 0) !== 1 ? "s" : ""}` })
|
|
49
|
-
] }),
|
|
50
|
-
/* @__PURE__ */ r(s, { color: "info", children: [
|
|
51
|
-
/* @__PURE__ */ e(L, { size: 18 }),
|
|
52
|
-
/* @__PURE__ */ e(i, { size: "xs", children: `${p ?? 0} member${(p ?? 0) !== 1 ? "s" : ""}` })
|
|
53
|
-
] }),
|
|
54
|
-
/* @__PURE__ */ r(s, { color: "info", children: [
|
|
55
|
-
/* @__PURE__ */ e(R, { size: 18 }),
|
|
56
|
-
/* @__PURE__ */ e(i, { size: "xs", children: `${d ?? 0} runtime${(d ?? 0) !== 1 ? "s" : ""}` })
|
|
57
|
-
] })
|
|
58
|
-
] }) })
|
|
59
|
-
] }), [v, C, b]);
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as m } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { Card as s } from "../card/Card.js";
|
|
4
|
+
import { DOrganizationContent as c } from "./DOrganizatonContent.js";
|
|
5
|
+
const g = (a) => {
|
|
6
|
+
const o = m.c(4), {
|
|
7
|
+
organizationId: r,
|
|
8
|
+
onLeave: n,
|
|
9
|
+
onSetting: i
|
|
10
|
+
} = a;
|
|
11
|
+
let t;
|
|
12
|
+
return o[0] !== n || o[1] !== i || o[2] !== r ? (t = /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(c, { onLeave: n, onSetting: i, organizationId: r }) }), o[0] = n, o[1] = i, o[2] = r, o[3] = t) : t = o[3], t;
|
|
60
13
|
};
|
|
61
14
|
export {
|
|
62
|
-
|
|
15
|
+
g as default
|
|
63
16
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Card } from '../card/Card';
|
|
3
|
+
import { DOrganizationView } from './DOrganization.view';
|
|
4
|
+
export interface DOrganizationListProps extends Omit<Card, "children" | "onSelect"> {
|
|
5
|
+
filter?: (organizations: DOrganizationView, index: number) => boolean;
|
|
6
|
+
onSetting?: (organization: DOrganizationView) => void;
|
|
7
|
+
onLeave?: (organization: DOrganizationView) => void;
|
|
8
|
+
onSelect?: (organization: DOrganizationView) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const DOrganizationList: React.FC<DOrganizationListProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import p from "react";
|
|
3
|
+
import { Card as u } from "../card/Card.js";
|
|
4
|
+
import { useService as l, useStore as S } from "../../utils/contextStore.js";
|
|
5
|
+
import "merge-props";
|
|
6
|
+
import { DOrganizationReactiveService as e } from "./DOrganization.service.js";
|
|
7
|
+
import v from "../card/CardSection.js";
|
|
8
|
+
import { DOrganizationContent as g } from "./DOrganizatonContent.js";
|
|
9
|
+
const _ = (i) => {
|
|
10
|
+
const n = l(e), m = S(e), a = p.useMemo(() => n.values(), [m]), {
|
|
11
|
+
filter: c = () => !0,
|
|
12
|
+
onLeave: s,
|
|
13
|
+
onSetting: f,
|
|
14
|
+
onSelect: t,
|
|
15
|
+
...d
|
|
16
|
+
} = i;
|
|
17
|
+
return /* @__PURE__ */ o(u, { ...d, children: a.filter(c).map((r) => r.id && /* @__PURE__ */ o(v, { border: !0, hover: !0, onClick: () => {
|
|
18
|
+
t && t(r);
|
|
19
|
+
}, children: /* @__PURE__ */ o(g, { onLeave: s, onSetting: f, organizationId: r?.id }) }, r.id)) });
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
_ as DOrganizationList
|
|
23
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { Menu as
|
|
2
|
+
import u from "react";
|
|
3
|
+
import { Menu as d, MenuTrigger as s, MenuPortal as l, MenuContent as f, MenuItem as g } from "../menu/Menu.js";
|
|
4
4
|
import { Button as h } from "../button/Button.js";
|
|
5
5
|
import { DOrganizationReactiveService as i } from "./DOrganization.service.js";
|
|
6
6
|
import { useService as o } from "../../utils/contextStore.js";
|
|
7
7
|
const x = (n) => {
|
|
8
8
|
const r = o(i), a = o(i), c = r.getById(n.organizationId);
|
|
9
|
-
return
|
|
10
|
-
/* @__PURE__ */ e(
|
|
9
|
+
return u.useMemo(() => /* @__PURE__ */ m(d, { ...n, children: [
|
|
10
|
+
/* @__PURE__ */ e(s, { asChild: !0, children: /* @__PURE__ */ e(h, { variant: "none", style: {
|
|
11
11
|
background: "transparent"
|
|
12
12
|
}, children: c?.name }) }),
|
|
13
|
-
/* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(
|
|
13
|
+
/* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(f, { side: "bottom", align: "start", sideOffset: 0, children: r.values().map((t) => /* @__PURE__ */ e(g, { onSelect: () => n.onOrganizationSelect(t.id), children: t.name }, t.id)) }) })
|
|
14
14
|
] }), [a]);
|
|
15
15
|
};
|
|
16
16
|
export {
|