@code0-tech/pictor 0.0.0-mvp.46 → 0.0.0-mvp.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/avatar/Avatar.js +6 -7
- package/dist/components/data-table/DataTableFilterInput.js +5 -3
- package/dist/components/editor/Editor.js +14 -15
- package/dist/components/{d-fullscreen/DFullScreen.d.ts → fullscreen/FullScreen.d.ts} +2 -2
- package/dist/components/{d-fullscreen/DFullScreen.js → fullscreen/FullScreen.js} +2 -2
- package/dist/components/{d-layout/DLayout.d.ts → layout/Layout.d.ts} +2 -2
- package/dist/components/{d-layout/DLayout.js → layout/Layout.js} +11 -11
- package/dist/components/menu/Menu.js +8 -8
- package/dist/components/resizable/Resizable.d.ts +12 -0
- package/dist/components/{d-resizable/DResizable.js → resizable/Resizable.js} +7 -7
- package/dist/components/tab/Tab.js +4 -4
- package/dist/components/toast/Toast.js +1 -1
- package/dist/index.d.ts +0 -20
- package/dist/index.js +152 -273
- package/package.json +18 -18
- package/dist/assets/components/d-flow/DFlow.style.css +0 -1
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +0 -1
- package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +0 -1
- package/dist/assets/components/d-flow-node/DFlowNode.style.css +0 -1
- package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +0 -1
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +0 -1
- package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +0 -1
- package/dist/assets/node_modules/@xyflow/react/dist/style.css +0 -1
- package/dist/assets/node_modules/ldrs/dist/react/LineWobble.css +0 -1
- package/dist/components/d-application/DApplication.service.d.ts +0 -9
- package/dist/components/d-application/DApplication.service.js +0 -10
- package/dist/components/d-flow/DFlow.d.ts +0 -9
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +0 -4
- package/dist/components/d-flow/DFlow.edges.hook.js +0 -110
- package/dist/components/d-flow/DFlow.js +0 -484
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +0 -4
- package/dist/components/d-flow/DFlow.nodes.hook.js +0 -128
- package/dist/components/d-flow/DFlow.service.d.ts +0 -21
- package/dist/components/d-flow/DFlow.service.js +0 -156
- package/dist/components/d-flow/DFlow.util.d.ts +0 -4
- package/dist/components/d-flow/DFlow.util.js +0 -63
- package/dist/components/d-flow/DFlow.view.d.ts +0 -4
- package/dist/components/d-flow/DFlow.view.js +0 -1
- package/dist/components/d-flow/DFlowEdge.d.ts +0 -12
- package/dist/components/d-flow/DFlowEdge.js +0 -69
- package/dist/components/d-flow/index.d.ts +0 -4
- package/dist/components/d-flow/index.js +0 -10
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +0 -15
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +0 -203
- package/dist/components/d-flow-data-type/DFlowDataType.view.d.ts +0 -41
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +0 -76
- package/dist/components/d-flow-data-type/index.d.ts +0 -2
- package/dist/components/d-flow-data-type/index.js +0 -6
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -231
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -235
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -4
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.d.ts +0 -8
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.js +0 -217
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.d.ts +0 -4
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +0 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -250
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.d.ts +0 -8
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.js +0 -10
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.d.ts +0 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +0 -10
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.d.ts +0 -4
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.js +0 -214
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.d.ts +0 -4
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.js +0 -1
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.d.ts +0 -3
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.js +0 -5
- package/dist/components/d-flow-file/DFlowTabDefault.d.ts +0 -7
- package/dist/components/d-flow-file/DFlowTabDefault.js +0 -106
- package/dist/components/d-flow-file/DFlowTabTrigger.d.ts +0 -6
- package/dist/components/d-flow-file/DFlowTabTrigger.js +0 -75
- package/dist/components/d-flow-file/DFlowTabs.d.ts +0 -8
- package/dist/components/d-flow-file/DFlowTabs.js +0 -84
- package/dist/components/d-flow-file/index.d.ts +0 -1
- package/dist/components/d-flow-file/index.js +0 -4
- package/dist/components/d-flow-folder/DFlowFolder.d.ts +0 -36
- package/dist/components/d-flow-folder/DFlowFolder.js +0 -273
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +0 -18
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +0 -53
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +0 -9
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +0 -115
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +0 -10
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +0 -64
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +0 -5
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +0 -51
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +0 -10
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +0 -59
- package/dist/components/d-flow-folder/index.d.ts +0 -4
- package/dist/components/d-flow-folder/index.js +0 -13
- package/dist/components/d-flow-function/DFlowFunction.input.hook.d.ts +0 -5
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +0 -8
- package/dist/components/d-flow-function/DFlowFunction.return.hook.d.ts +0 -5
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +0 -9
- package/dist/components/d-flow-function/DFlowFunction.service.d.ts +0 -11
- package/dist/components/d-flow-function/DFlowFunction.service.js +0 -13
- package/dist/components/d-flow-function/DFlowFunction.view.d.ts +0 -81
- package/dist/components/d-flow-function/DFlowFunction.view.js +0 -139
- package/dist/components/d-flow-function/index.d.ts +0 -2
- package/dist/components/d-flow-function/index.js +0 -7
- package/dist/components/d-flow-input/DFlowInput.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInput.js +0 -29
- package/dist/components/d-flow-input/DFlowInputDataType.d.ts +0 -15
- package/dist/components/d-flow-input/DFlowInputDataType.js +0 -131
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.d.ts +0 -9
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +0 -102
- package/dist/components/d-flow-input/DFlowInputDefault.d.ts +0 -5
- package/dist/components/d-flow-input/DFlowInputDefault.js +0 -129
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +0 -7
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +0 -24
- package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +0 -47
- package/dist/components/d-flow-input/DFlowInputObject.d.ts +0 -10
- package/dist/components/d-flow-input/DFlowInputObject.js +0 -83
- package/dist/components/d-flow-input/DFlowInputObjectEditDialog.d.ts +0 -16
- package/dist/components/d-flow-input/DFlowInputObjectEditDialog.js +0 -118
- package/dist/components/d-flow-input/DFlowInputObjectTree.d.ts +0 -16
- package/dist/components/d-flow-input/DFlowInputObjectTree.js +0 -99
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +0 -33
- package/dist/components/d-flow-node/DFlowNode.d.ts +0 -10
- package/dist/components/d-flow-node/DFlowNode.js +0 -1
- package/dist/components/d-flow-node/DFlowNode.return.hook.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNode.return.hook.js +0 -27
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.js +0 -118
- package/dist/components/d-flow-node/DFlowNodeGroupCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeGroupCard.js +0 -69
- package/dist/components/d-flow-node/DFlowNodeReference.return.hook.d.ts +0 -4
- package/dist/components/d-flow-node/DFlowNodeReference.return.hook.js +0 -77
- package/dist/components/d-flow-node/DFlowNodeTriggerCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeTriggerCard.js +0 -66
- package/dist/components/d-flow-panel/DFlowExport.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowExport.js +0 -33
- package/dist/components/d-flow-panel/DFlowMiniMap.d.ts +0 -2
- package/dist/components/d-flow-panel/DFlowMiniMap.js +0 -15
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowPanelControl.js +0 -51
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +0 -4
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +0 -38
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +0 -2
- package/dist/components/d-flow-panel/DFlowPanelSize.js +0 -89
- package/dist/components/d-flow-panel/DFlowPanelUpdate.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowPanelUpdate.js +0 -77
- package/dist/components/d-flow-panel/index.d.ts +0 -5
- package/dist/components/d-flow-panel/index.js +0 -12
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +0 -34
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +0 -50
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +0 -133
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +0 -28
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +0 -14
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +0 -4
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.d.ts +0 -8
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +0 -66
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.js +0 -43
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.d.ts +0 -2
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.js +0 -69
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.d.ts +0 -6
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.js +0 -21
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.d.ts +0 -7
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +0 -36
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +0 -44
- package/dist/components/d-flow-suggestion/index.d.ts +0 -1
- package/dist/components/d-flow-suggestion/index.js +0 -4
- package/dist/components/d-flow-type/DFlowType.service.d.ts +0 -11
- package/dist/components/d-flow-type/DFlowType.service.js +0 -13
- package/dist/components/d-flow-type/DFlowType.view.d.ts +0 -44
- package/dist/components/d-flow-type/DFlowType.view.js +0 -93
- package/dist/components/d-flow-type/index.d.ts +0 -2
- package/dist/components/d-flow-type/index.js +0 -6
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +0 -2
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +0 -18
- package/dist/components/d-flow-validation/DFlowValidation.d.ts +0 -6
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +0 -23
- package/dist/components/d-flow-validation/DFlowValidation.js +0 -67
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +0 -3
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +0 -63
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +0 -4
- package/dist/components/d-flow-validation/DValueValidation.hook.js +0 -9
- package/dist/components/d-flow-validation/index.d.ts +0 -2
- package/dist/components/d-flow-validation/index.js +0 -6
- package/dist/components/d-license/DNamespaceLicense.service.d.ts +0 -11
- package/dist/components/d-license/DNamespaceLicense.service.js +0 -13
- package/dist/components/d-license/DNamespaceLicense.view.d.ts +0 -26
- package/dist/components/d-license/DNamespaceLicense.view.js +0 -57
- package/dist/components/d-license/index.d.ts +0 -2
- package/dist/components/d-license/index.js +0 -6
- package/dist/components/d-member/DNamespaceMember.service.d.ts +0 -13
- package/dist/components/d-member/DNamespaceMember.service.js +0 -18
- package/dist/components/d-member/DNamespaceMember.view.d.ts +0 -29
- package/dist/components/d-member/DNamespaceMember.view.js +0 -62
- package/dist/components/d-member/DNamespaceMemberCard.d.ts +0 -10
- package/dist/components/d-member/DNamespaceMemberCard.js +0 -16
- package/dist/components/d-member/DNamespaceMemberContent.d.ts +0 -10
- package/dist/components/d-member/DNamespaceMemberContent.js +0 -225
- package/dist/components/d-member/DNamespaceMemberList.d.ts +0 -12
- package/dist/components/d-member/DNamespaceMemberList.js +0 -24
- package/dist/components/d-member/index.d.ts +0 -4
- package/dist/components/d-member/index.js +0 -10
- package/dist/components/d-namespace/DNamespace.service.d.ts +0 -6
- package/dist/components/d-namespace/DNamespace.service.js +0 -13
- package/dist/components/d-namespace/DNamespace.view.d.ts +0 -32
- package/dist/components/d-namespace/DNamespace.view.js +0 -65
- package/dist/components/d-namespace/index.d.ts +0 -2
- package/dist/components/d-namespace/index.js +0 -6
- package/dist/components/d-organization/DOrganization.service.d.ts +0 -8
- package/dist/components/d-organization/DOrganization.service.js +0 -13
- package/dist/components/d-organization/DOrganization.view.d.ts +0 -23
- package/dist/components/d-organization/DOrganization.view.js +0 -55
- package/dist/components/d-organization/DOrganizationCard.d.ts +0 -11
- package/dist/components/d-organization/DOrganizationCard.js +0 -16
- package/dist/components/d-organization/DOrganizationList.d.ts +0 -10
- package/dist/components/d-organization/DOrganizationList.js +0 -24
- package/dist/components/d-organization/DOrganizationMenu.d.ts +0 -9
- package/dist/components/d-organization/DOrganizationMenu.js +0 -18
- package/dist/components/d-organization/DOrganizatonContent.d.ts +0 -10
- package/dist/components/d-organization/DOrganizatonContent.js +0 -102
- package/dist/components/d-organization/index.d.ts +0 -5
- package/dist/components/d-organization/index.js +0 -40
- package/dist/components/d-project/DNamespaceProject.service.d.ts +0 -13
- package/dist/components/d-project/DNamespaceProject.service.js +0 -13
- package/dist/components/d-project/DNamespaceProject.view.d.ts +0 -44
- package/dist/components/d-project/DNamespaceProject.view.js +0 -78
- package/dist/components/d-project/DNamespaceProjectCard.d.ts +0 -9
- package/dist/components/d-project/DNamespaceProjectCard.js +0 -17
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +0 -10
- package/dist/components/d-project/DNamespaceProjectContent.js +0 -72
- package/dist/components/d-project/DNamespaceProjectList.d.ts +0 -11
- package/dist/components/d-project/DNamespaceProjectList.js +0 -26
- package/dist/components/d-project/DNamespaceProjectMenu.d.ts +0 -13
- package/dist/components/d-project/DNamespaceProjectMenu.js +0 -57
- package/dist/components/d-project/index.d.ts +0 -5
- package/dist/components/d-project/index.js +0 -27
- package/dist/components/d-resizable/DResizable.d.ts +0 -12
- package/dist/components/d-role/DNamespaceRole.service.d.ts +0 -13
- package/dist/components/d-role/DNamespaceRole.service.js +0 -13
- package/dist/components/d-role/DNamespaceRole.view.d.ts +0 -29
- package/dist/components/d-role/DNamespaceRole.view.js +0 -61
- package/dist/components/d-role/DNamespaceRoleCard.d.ts +0 -11
- package/dist/components/d-role/DNamespaceRoleCard.js +0 -17
- package/dist/components/d-role/DNamespaceRoleContent.d.ts +0 -10
- package/dist/components/d-role/DNamespaceRoleContent.js +0 -163
- package/dist/components/d-role/DNamespaceRoleList.d.ts +0 -12
- package/dist/components/d-role/DNamespaceRoleList.js +0 -25
- package/dist/components/d-role/DNamespaceRolePermissions.d.ts +0 -5
- package/dist/components/d-role/DNamespaceRolePermissions.js +0 -123
- package/dist/components/d-role/index.d.ts +0 -4
- package/dist/components/d-role/index.js +0 -10
- package/dist/components/d-runtime/DRuntime.service.d.ts +0 -12
- package/dist/components/d-runtime/DRuntime.service.js +0 -9
- package/dist/components/d-runtime/DRuntime.view.d.ts +0 -41
- package/dist/components/d-runtime/DRuntime.view.js +0 -76
- package/dist/components/d-runtime/DRuntimeCard.d.ts +0 -9
- package/dist/components/d-runtime/DRuntimeCard.js +0 -18
- package/dist/components/d-runtime/DRuntimeContent.d.ts +0 -9
- package/dist/components/d-runtime/DRuntimeContent.js +0 -46
- package/dist/components/d-runtime/DRuntimeList.d.ts +0 -12
- package/dist/components/d-runtime/DRuntimeList.js +0 -29
- package/dist/components/d-runtime/index.d.ts +0 -4
- package/dist/components/d-runtime/index.js +0 -10
- package/dist/components/d-user/DUser.service.d.ts +0 -20
- package/dist/components/d-user/DUser.service.js +0 -18
- package/dist/components/d-user/DUser.session.hook.d.ts +0 -3
- package/dist/components/d-user/DUser.session.hook.js +0 -16
- package/dist/components/d-user/DUser.view.d.ts +0 -55
- package/dist/components/d-user/DUser.view.js +0 -103
- package/dist/components/d-user/DUserCard.d.ts +0 -8
- package/dist/components/d-user/DUserCard.js +0 -15
- package/dist/components/d-user/DUserContent.d.ts +0 -8
- package/dist/components/d-user/DUserContent.js +0 -52
- package/dist/components/d-user/DUserInput.d.ts +0 -7
- package/dist/components/d-user/DUserInput.js +0 -101
- package/dist/components/d-user/DUserList.d.ts +0 -9
- package/dist/components/d-user/DUserList.js +0 -23
- package/dist/components/d-user/DUserMenu.d.ts +0 -8
- package/dist/components/d-user/DUserMenu.js +0 -30
- package/dist/components/d-user/index.d.ts +0 -7
- package/dist/components/d-user/index.js +0 -27
- package/dist/node_modules/ldrs/dist/react/LineWobble.js +0 -6
- package/dist/utils/generics.d.ts +0 -21
- package/dist/utils/generics.js +0 -373
- /package/dist/assets/components/{d-fullscreen/DFullScreen.style.css → fullscreen/FullScreen.style.css} +0 -0
- /package/dist/assets/components/{d-layout/DLayout.style.css → layout/Layout.style.css} +0 -0
- /package/dist/assets/components/{d-resizable/DResizable.style.css → resizable/Resizable.style.css} +0 -0
|
@@ -1,225 +0,0 @@
|
|
|
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 "js-md5";
|
|
7
|
-
import { DNamespaceMemberReactiveService as M } from "./DNamespaceMember.service.js";
|
|
8
|
-
import { DUserReactiveService as I } from "../d-user/DUser.service.js";
|
|
9
|
-
import { Menu as w, MenuTrigger as T, MenuPortal as O, MenuContent as j, MenuLabel as m, MenuItem as b, MenuSeparator as _ } from "../menu/Menu.js";
|
|
10
|
-
import { Avatar as ee } from "../avatar/Avatar.js";
|
|
11
|
-
import { Text as o } from "../text/Text.js";
|
|
12
|
-
import "../../_virtual/compiler-runtime.js";
|
|
13
|
-
import { Card as v } from "../card/Card.js";
|
|
14
|
-
import { Badge as l } from "../badge/Badge.js";
|
|
15
|
-
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";
|
|
16
|
-
import { Button as s } from "../button/Button.js";
|
|
17
|
-
import P from "../card/CardSection.js";
|
|
18
|
-
import "@radix-ui/react-checkbox";
|
|
19
|
-
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
20
|
-
import "../form/EmailInput.js";
|
|
21
|
-
import "../form/Input.js";
|
|
22
|
-
import "../form/InputSuggestion.js";
|
|
23
|
-
import "../form/NumberInput.js";
|
|
24
|
-
import "../form/PasswordInput.js";
|
|
25
|
-
import "@radix-ui/react-one-time-password-field";
|
|
26
|
-
import "@radix-ui/react-radio-group";
|
|
27
|
-
import "../form/SwitchInput.js";
|
|
28
|
-
import "../form/TextInput.js";
|
|
29
|
-
import { Spacing as U } from "../spacing/Spacing.js";
|
|
30
|
-
import { DNamespaceRoleReactiveService as F } from "../d-role/DNamespaceRole.service.js";
|
|
31
|
-
import { DNamespaceRolePermissions as x } from "../d-role/DNamespaceRolePermissions.js";
|
|
32
|
-
import { Tooltip as le, TooltipTrigger as se, TooltipPortal as ce, TooltipContent as ae, TooltipArrow as de } from "../tooltip/Tooltip.js";
|
|
33
|
-
import { Dialog as L, DialogPortal as W, DialogContent as Y, DialogClose as h } from "../dialog/Dialog.js";
|
|
34
|
-
const qe = (E) => {
|
|
35
|
-
const {
|
|
36
|
-
memberId: S,
|
|
37
|
-
onAssignRole: V = () => {
|
|
38
|
-
},
|
|
39
|
-
onRemove: q = () => {
|
|
40
|
-
}
|
|
41
|
-
} = 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, {
|
|
42
|
-
namespaceId: t?.namespace?.id
|
|
43
|
-
})) || [], [Q, t]), [g, z] = a.useState(p), [X, A] = a.useState(!1), [Z, R] = a.useState(!1), D = C.values({
|
|
44
|
-
namespaceId: t?.namespace?.id
|
|
45
|
-
}).filter((n) => !g.find((d) => d?.id === n.id));
|
|
46
|
-
return /* @__PURE__ */ r(i, { align: "center", style: {
|
|
47
|
-
gap: "1.3rem"
|
|
48
|
-
}, justify: "space-between", children: [
|
|
49
|
-
/* @__PURE__ */ e(L, { open: X, onOpenChange: (n) => A(n), children: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ r(Y, { showCloseButton: !0, title: "Remove member", children: [
|
|
50
|
-
/* @__PURE__ */ r(o, { size: "md", hierarchy: "secondary", children: [
|
|
51
|
-
"Are you sure you want to remove ",
|
|
52
|
-
" ",
|
|
53
|
-
/* @__PURE__ */ e(l, { color: "info", children: /* @__PURE__ */ r(o, { size: "md", style: {
|
|
54
|
-
color: "inherit"
|
|
55
|
-
}, children: [
|
|
56
|
-
"@",
|
|
57
|
-
c?.username
|
|
58
|
-
] }) }),
|
|
59
|
-
" ",
|
|
60
|
-
" ",
|
|
61
|
-
"from the namespace members?"
|
|
62
|
-
] }),
|
|
63
|
-
/* @__PURE__ */ r(i, { justify: "space-between", align: "center", children: [
|
|
64
|
-
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(s, { color: "secondary", children: "No, go back!" }) }),
|
|
65
|
-
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(s, { color: "error", onClick: () => q(t), children: "Yes, remove!" }) })
|
|
66
|
-
] })
|
|
67
|
-
] }) }) }),
|
|
68
|
-
/* @__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: [
|
|
69
|
-
/* @__PURE__ */ e(o, { size: "md", hierarchy: "tertiary", children: "Assign, remove and manage the roles of a active member" }),
|
|
70
|
-
/* @__PURE__ */ r(v, { paddingSize: "xs", color: "secondary", children: [
|
|
71
|
-
g.map((n) => /* @__PURE__ */ e(P, { border: !0, children: /* @__PURE__ */ r(i, { style: {
|
|
72
|
-
gap: "0.7rem"
|
|
73
|
-
}, align: "center", justify: "space-between", children: [
|
|
74
|
-
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
75
|
-
gap: "1.3rem"
|
|
76
|
-
}, children: [
|
|
77
|
-
/* @__PURE__ */ e(o, { hierarchy: "primary", children: n?.name }),
|
|
78
|
-
/* @__PURE__ */ e(x, { abilities: n?.abilities })
|
|
79
|
-
] }),
|
|
80
|
-
/* @__PURE__ */ e(s, { color: "error", variant: "filled", paddingSize: "xxs", onClick: () => {
|
|
81
|
-
z((d) => d.filter((u) => u?.id != n?.id));
|
|
82
|
-
}, children: /* @__PURE__ */ e(re, { size: 16 }) })
|
|
83
|
-
] }) }, n?.id)),
|
|
84
|
-
/* @__PURE__ */ r(w, { children: [
|
|
85
|
-
/* @__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" }) }) }),
|
|
86
|
-
/* @__PURE__ */ e(O, { children: /* @__PURE__ */ r(j, { side: "bottom", sideOffset: 8, align: "center", color: "secondary", maw: "300px", children: [
|
|
87
|
-
/* @__PURE__ */ r(v, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: {
|
|
88
|
-
borderWidth: "2px"
|
|
89
|
-
}, children: [
|
|
90
|
-
/* @__PURE__ */ e(m, { children: "Roles to add" }),
|
|
91
|
-
D.map((n, d) => /* @__PURE__ */ r($, { children: [
|
|
92
|
-
/* @__PURE__ */ e(b, { onSelect: () => {
|
|
93
|
-
z((u) => [...u, n]);
|
|
94
|
-
}, children: /* @__PURE__ */ r(i, { align: "center", style: {
|
|
95
|
-
gap: "1.3rem"
|
|
96
|
-
}, children: [
|
|
97
|
-
/* @__PURE__ */ e(o, { hierarchy: "primary", children: n?.name }),
|
|
98
|
-
/* @__PURE__ */ e(x, { abilities: n?.abilities })
|
|
99
|
-
] }) }),
|
|
100
|
-
d < D.length - 1 && /* @__PURE__ */ e(_, {})
|
|
101
|
-
] }))
|
|
102
|
-
] }),
|
|
103
|
-
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ r(i, { style: {
|
|
104
|
-
gap: ".35rem"
|
|
105
|
-
}, children: [
|
|
106
|
-
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
107
|
-
gap: "0.35rem"
|
|
108
|
-
}, children: [
|
|
109
|
-
/* @__PURE__ */ r(i, { children: [
|
|
110
|
-
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(B, { size: 12 }) }),
|
|
111
|
-
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(k, { size: 12 }) })
|
|
112
|
-
] }),
|
|
113
|
-
"move"
|
|
114
|
-
] }),
|
|
115
|
-
/* @__PURE__ */ e(U, { spacing: "xxs" }),
|
|
116
|
-
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
117
|
-
gap: ".35rem"
|
|
118
|
-
}, children: [
|
|
119
|
-
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(N, { size: 12 }) }),
|
|
120
|
-
"insert"
|
|
121
|
-
] })
|
|
122
|
-
] }) })
|
|
123
|
-
] }) })
|
|
124
|
-
] })
|
|
125
|
-
] }),
|
|
126
|
-
/* @__PURE__ */ r(i, { justify: "space-between", align: "center", children: [
|
|
127
|
-
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(s, { color: "secondary", children: "No, go back!" }) }),
|
|
128
|
-
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(s, { onClick: () => V(t, g), color: "success", children: "Yes, save!" }) })
|
|
129
|
-
] })
|
|
130
|
-
] }) }) }),
|
|
131
|
-
/* @__PURE__ */ r(i, { style: {
|
|
132
|
-
gap: "1.3rem"
|
|
133
|
-
}, align: "center", children: [
|
|
134
|
-
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
135
|
-
gap: ".7rem"
|
|
136
|
-
}, children: [
|
|
137
|
-
/* @__PURE__ */ e(ee, { identifier: c?.username, bg: "transparent" }),
|
|
138
|
-
/* @__PURE__ */ r(i, { style: {
|
|
139
|
-
flexDirection: "column",
|
|
140
|
-
gap: "0.35rem"
|
|
141
|
-
}, children: [
|
|
142
|
-
/* @__PURE__ */ r(o, { size: "md", hierarchy: "primary", children: [
|
|
143
|
-
"@",
|
|
144
|
-
c?.username
|
|
145
|
-
] }),
|
|
146
|
-
/* @__PURE__ */ e(o, { size: "sm", hierarchy: "tertiary", children: c?.email })
|
|
147
|
-
] })
|
|
148
|
-
] }),
|
|
149
|
-
p.length > 0 ? /* @__PURE__ */ r(i, { style: {
|
|
150
|
-
flexDirection: "column",
|
|
151
|
-
gap: "0.35rem"
|
|
152
|
-
}, children: [
|
|
153
|
-
/* @__PURE__ */ e(o, { size: "xs", hierarchy: "tertiary", children: "Assigned roles" }),
|
|
154
|
-
/* @__PURE__ */ e(i, { align: "center", style: {
|
|
155
|
-
gap: "0.35rem"
|
|
156
|
-
}, children: p.map((n) => /* @__PURE__ */ r(le, { children: [
|
|
157
|
-
/* @__PURE__ */ e(se, { asChild: !0, children: /* @__PURE__ */ e(l, { color: "info", children: /* @__PURE__ */ e(o, { style: {
|
|
158
|
-
color: "inherit"
|
|
159
|
-
}, hierarchy: "tertiary", children: n?.name }) }) }),
|
|
160
|
-
/* @__PURE__ */ e(ce, { children: /* @__PURE__ */ r(ae, { side: "bottom", children: [
|
|
161
|
-
/* @__PURE__ */ e(x, { abilities: n?.abilities }),
|
|
162
|
-
/* @__PURE__ */ e(de, {})
|
|
163
|
-
] }) })
|
|
164
|
-
] })) })
|
|
165
|
-
] }) : null
|
|
166
|
-
] }),
|
|
167
|
-
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
168
|
-
gap: "1.3rem"
|
|
169
|
-
}, children: [
|
|
170
|
-
/* @__PURE__ */ e(i, { style: {
|
|
171
|
-
flexDirection: "column",
|
|
172
|
-
gap: "0.35rem"
|
|
173
|
-
}, children: /* @__PURE__ */ r(i, { style: {
|
|
174
|
-
gap: "0.35rem"
|
|
175
|
-
}, align: "center", children: [
|
|
176
|
-
c?.admin ? /* @__PURE__ */ e(l, { border: !0, color: "primary", children: /* @__PURE__ */ e(o, { hierarchy: "tertiary", children: "Owner" }) }) : null,
|
|
177
|
-
c?.emailVerifiedAt ? /* @__PURE__ */ r(l, { border: !0, color: "primary", children: [
|
|
178
|
-
/* @__PURE__ */ e(ie, { size: 16 }),
|
|
179
|
-
/* @__PURE__ */ e(o, { hierarchy: "tertiary", children: "Email verified" })
|
|
180
|
-
] }) : null
|
|
181
|
-
] }) }),
|
|
182
|
-
t?.userAbilities?.deleteMember || t?.userAbilities?.assignMemberRoles ? /* @__PURE__ */ r(w, { children: [
|
|
183
|
-
/* @__PURE__ */ e(T, { asChild: !0, children: /* @__PURE__ */ e(s, { variant: "filled", color: "secondary", children: /* @__PURE__ */ e(ne, { size: 16 }) }) }),
|
|
184
|
-
/* @__PURE__ */ e(O, { children: /* @__PURE__ */ r(j, { align: "end", side: "bottom", sideOffset: 8, color: "secondary", children: [
|
|
185
|
-
/* @__PURE__ */ r(v, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: {
|
|
186
|
-
borderWidth: "2px"
|
|
187
|
-
}, children: [
|
|
188
|
-
/* @__PURE__ */ e(m, { children: "Actions" }),
|
|
189
|
-
t?.userAbilities?.deleteMember && /* @__PURE__ */ r(b, { onSelect: () => A(!0), children: [
|
|
190
|
-
/* @__PURE__ */ e(oe, { size: 16 }),
|
|
191
|
-
/* @__PURE__ */ e(o, { children: "Remove member" })
|
|
192
|
-
] }),
|
|
193
|
-
t?.userAbilities?.assignMemberRoles && /* @__PURE__ */ r(b, { onSelect: () => R(!0), children: [
|
|
194
|
-
/* @__PURE__ */ e(te, { size: 16 }),
|
|
195
|
-
/* @__PURE__ */ e(o, { children: "Assign role" })
|
|
196
|
-
] })
|
|
197
|
-
] }),
|
|
198
|
-
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ r(i, { style: {
|
|
199
|
-
gap: ".35rem"
|
|
200
|
-
}, children: [
|
|
201
|
-
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
202
|
-
gap: "0.35rem"
|
|
203
|
-
}, children: [
|
|
204
|
-
/* @__PURE__ */ r(i, { children: [
|
|
205
|
-
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(B, { size: 12 }) }),
|
|
206
|
-
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(k, { size: 12 }) })
|
|
207
|
-
] }),
|
|
208
|
-
"move"
|
|
209
|
-
] }),
|
|
210
|
-
/* @__PURE__ */ e(U, { spacing: "xxs" }),
|
|
211
|
-
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
212
|
-
gap: ".35rem"
|
|
213
|
-
}, children: [
|
|
214
|
-
/* @__PURE__ */ e(l, { border: !0, children: /* @__PURE__ */ e(N, { size: 12 }) }),
|
|
215
|
-
"perform"
|
|
216
|
-
] })
|
|
217
|
-
] }) })
|
|
218
|
-
] }) })
|
|
219
|
-
] }) : null
|
|
220
|
-
] })
|
|
221
|
-
] });
|
|
222
|
-
};
|
|
223
|
-
export {
|
|
224
|
-
qe as DNamespaceMemberContent
|
|
225
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
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>;
|
|
@@ -1,24 +0,0 @@
|
|
|
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 "js-md5";
|
|
6
|
-
import { DNamespaceMemberReactiveService as t } from "./DNamespaceMember.service.js";
|
|
7
|
-
import { Card as v } from "../card/Card.js";
|
|
8
|
-
import S from "../card/CardSection.js";
|
|
9
|
-
import { DNamespaceMemberContent as b } from "./DNamespaceMemberContent.js";
|
|
10
|
-
const j = (m) => {
|
|
11
|
-
const {
|
|
12
|
-
namespaceId: o,
|
|
13
|
-
filter: i = () => !0,
|
|
14
|
-
onRemove: s,
|
|
15
|
-
onAssignRole: c,
|
|
16
|
-
...n
|
|
17
|
-
} = m, p = u(t), a = l(t), d = f.useMemo(() => p.values({
|
|
18
|
-
namespaceId: o
|
|
19
|
-
}), [a, o]);
|
|
20
|
-
return /* @__PURE__ */ r(v, { ...n, children: d.filter(i).map((e) => e && e.id && /* @__PURE__ */ r(S, { border: !0, children: /* @__PURE__ */ r(b, { onRemove: s, onAssignRole: c, memberId: e?.id }) }, e.id)) });
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
j as DNamespaceMemberList
|
|
24
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
import { Namespace } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
import { DNamespaceView } from './DNamespace.view';
|
|
3
|
-
import { ReactiveArrayService } from '../../utils';
|
|
4
|
-
export declare abstract class DNamespaceReactiveService extends ReactiveArrayService<DNamespaceView> {
|
|
5
|
-
getById(id: Namespace['id']): DNamespaceView | undefined;
|
|
6
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "../../utils/contextStore.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
|
|
4
|
-
import "merge-props";
|
|
5
|
-
import "js-md5";
|
|
6
|
-
class s extends i {
|
|
7
|
-
getById(r) {
|
|
8
|
-
return this.values().find((e) => e && e.id === r);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
s as DNamespaceReactiveService
|
|
13
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Maybe, Namespace, NamespaceLicenseConnection, NamespaceMemberConnection, NamespaceParent, NamespaceProjectConnection, NamespaceRoleConnection, RuntimeConnection, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
export declare class DNamespaceView {
|
|
3
|
-
/** Time when this Namespace was created */
|
|
4
|
-
private readonly _createdAt?;
|
|
5
|
-
/** Global ID of this Namespace */
|
|
6
|
-
private readonly _id?;
|
|
7
|
-
/** Members of the namespace */
|
|
8
|
-
private readonly _members?;
|
|
9
|
-
/** Licenses of the namespace */
|
|
10
|
-
private readonly _namespaceLicenses?;
|
|
11
|
-
/** Parent of this namespace */
|
|
12
|
-
private readonly _parent?;
|
|
13
|
-
/** Projects of the namespace */
|
|
14
|
-
private readonly _projects?;
|
|
15
|
-
/** Roles of the namespace */
|
|
16
|
-
private readonly _roles?;
|
|
17
|
-
/** Runtime of the namespace */
|
|
18
|
-
private readonly _runtimes?;
|
|
19
|
-
/** Time when this Namespace was last updated */
|
|
20
|
-
private readonly _updatedAt?;
|
|
21
|
-
constructor(payload: Namespace);
|
|
22
|
-
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
23
|
-
get id(): Maybe<Scalars["NamespaceID"]["output"]> | undefined;
|
|
24
|
-
get members(): Maybe<NamespaceMemberConnection> | undefined;
|
|
25
|
-
get namespaceLicenses(): Maybe<NamespaceLicenseConnection> | undefined;
|
|
26
|
-
get parent(): Maybe<NamespaceParent> | undefined;
|
|
27
|
-
get projects(): Maybe<NamespaceProjectConnection> | undefined;
|
|
28
|
-
get roles(): Maybe<NamespaceRoleConnection> | undefined;
|
|
29
|
-
get runtimes(): Maybe<RuntimeConnection> | undefined;
|
|
30
|
-
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
31
|
-
json(): Namespace;
|
|
32
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
function r(t, e, i) {
|
|
2
|
-
return (e = n(e)) in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
3
|
-
}
|
|
4
|
-
function n(t) {
|
|
5
|
-
var e = u(t, "string");
|
|
6
|
-
return typeof e == "symbol" ? e : e + "";
|
|
7
|
-
}
|
|
8
|
-
function u(t, e) {
|
|
9
|
-
if (typeof t != "object" || !t) return t;
|
|
10
|
-
var i = t[Symbol.toPrimitive];
|
|
11
|
-
if (i !== void 0) {
|
|
12
|
-
var s = i.call(t, e);
|
|
13
|
-
if (typeof s != "object") return s;
|
|
14
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
|
-
}
|
|
16
|
-
return (e === "string" ? String : Number)(t);
|
|
17
|
-
}
|
|
18
|
-
class c {
|
|
19
|
-
constructor(e) {
|
|
20
|
-
r(this, "_createdAt", void 0), r(this, "_id", void 0), r(this, "_members", void 0), r(this, "_namespaceLicenses", void 0), r(this, "_parent", void 0), r(this, "_projects", void 0), r(this, "_roles", void 0), r(this, "_runtimes", void 0), r(this, "_updatedAt", void 0), this._createdAt = e.createdAt, this._id = e.id, this._members = e.members, this._namespaceLicenses = e.namespaceLicenses, this._parent = e.parent, this._projects = e.projects, this._roles = e.roles, this._runtimes = e.runtimes, this._updatedAt = e.updatedAt;
|
|
21
|
-
}
|
|
22
|
-
get createdAt() {
|
|
23
|
-
return this._createdAt;
|
|
24
|
-
}
|
|
25
|
-
get id() {
|
|
26
|
-
return this._id;
|
|
27
|
-
}
|
|
28
|
-
get members() {
|
|
29
|
-
return this._members;
|
|
30
|
-
}
|
|
31
|
-
get namespaceLicenses() {
|
|
32
|
-
return this._namespaceLicenses;
|
|
33
|
-
}
|
|
34
|
-
get parent() {
|
|
35
|
-
return this._parent;
|
|
36
|
-
}
|
|
37
|
-
get projects() {
|
|
38
|
-
return this._projects;
|
|
39
|
-
}
|
|
40
|
-
get roles() {
|
|
41
|
-
return this._roles;
|
|
42
|
-
}
|
|
43
|
-
get runtimes() {
|
|
44
|
-
return this._runtimes;
|
|
45
|
-
}
|
|
46
|
-
get updatedAt() {
|
|
47
|
-
return this._updatedAt;
|
|
48
|
-
}
|
|
49
|
-
json() {
|
|
50
|
-
return {
|
|
51
|
-
createdAt: this._createdAt,
|
|
52
|
-
id: this._id,
|
|
53
|
-
members: this._members,
|
|
54
|
-
namespaceLicenses: this._namespaceLicenses,
|
|
55
|
-
parent: this._parent,
|
|
56
|
-
projects: this._projects,
|
|
57
|
-
roles: this._roles,
|
|
58
|
-
runtimes: this._runtimes,
|
|
59
|
-
updatedAt: this._updatedAt
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
export {
|
|
64
|
-
c as DNamespaceView
|
|
65
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactiveArrayService } from '../../utils';
|
|
2
|
-
import { DOrganizationView } from './DOrganization.view';
|
|
3
|
-
import { Organization, OrganizationsCreateInput, OrganizationsCreatePayload, OrganizationsDeleteInput, OrganizationsDeletePayload } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
export declare abstract class DOrganizationReactiveService extends ReactiveArrayService<DOrganizationView> {
|
|
5
|
-
getById(id: Organization["id"]): DOrganizationView | undefined;
|
|
6
|
-
abstract organizationCreate(payload: OrganizationsCreateInput): Promise<OrganizationsCreatePayload | undefined>;
|
|
7
|
-
abstract organizationDelete(payload: OrganizationsDeleteInput): Promise<OrganizationsDeletePayload | undefined>;
|
|
8
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "../../utils/contextStore.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
|
|
4
|
-
import "merge-props";
|
|
5
|
-
import "js-md5";
|
|
6
|
-
class s extends i {
|
|
7
|
-
getById(r) {
|
|
8
|
-
return this.values().find((e) => e && e.id === r);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
s as DOrganizationReactiveService
|
|
13
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Maybe, Namespace, Organization, OrganizationUserAbilities, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
export declare class DOrganizationView {
|
|
3
|
-
private readonly _createdAt?;
|
|
4
|
-
/** Global ID of this Organization */
|
|
5
|
-
private readonly _id?;
|
|
6
|
-
/** Name of the organization */
|
|
7
|
-
private _name?;
|
|
8
|
-
/** Namespace of this organization */
|
|
9
|
-
private readonly _namespace?;
|
|
10
|
-
/** Time when this Organization was last updated */
|
|
11
|
-
private readonly _updatedAt?;
|
|
12
|
-
/** Abilities for the current user on this Organization */
|
|
13
|
-
private readonly _userAbilities?;
|
|
14
|
-
constructor(payload: Organization);
|
|
15
|
-
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
16
|
-
get id(): Maybe<Scalars["OrganizationID"]["output"] | undefined>;
|
|
17
|
-
get name(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
18
|
-
get namespace(): Maybe<Namespace> | undefined;
|
|
19
|
-
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
20
|
-
get userAbilities(): Maybe<OrganizationUserAbilities> | undefined;
|
|
21
|
-
set name(value: Maybe<Scalars["String"]["output"]>);
|
|
22
|
-
json(): Organization;
|
|
23
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
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
|
-
}
|
|
4
|
-
function n(t) {
|
|
5
|
-
var e = a(t, "string");
|
|
6
|
-
return typeof e == "symbol" ? e : e + "";
|
|
7
|
-
}
|
|
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
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
|
-
}
|
|
16
|
-
return (e === "string" ? String : Number)(t);
|
|
17
|
-
}
|
|
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
|
-
}
|
|
22
|
-
get createdAt() {
|
|
23
|
-
return this._createdAt;
|
|
24
|
-
}
|
|
25
|
-
get id() {
|
|
26
|
-
return this._id;
|
|
27
|
-
}
|
|
28
|
-
get name() {
|
|
29
|
-
return this._name;
|
|
30
|
-
}
|
|
31
|
-
get namespace() {
|
|
32
|
-
return this._namespace;
|
|
33
|
-
}
|
|
34
|
-
get updatedAt() {
|
|
35
|
-
return this._updatedAt;
|
|
36
|
-
}
|
|
37
|
-
get userAbilities() {
|
|
38
|
-
return this._userAbilities;
|
|
39
|
-
}
|
|
40
|
-
set name(e) {
|
|
41
|
-
this._name = e;
|
|
42
|
-
}
|
|
43
|
-
json() {
|
|
44
|
-
return {
|
|
45
|
-
createdAt: this._createdAt,
|
|
46
|
-
id: this._id,
|
|
47
|
-
name: this._name,
|
|
48
|
-
namespace: this._namespace,
|
|
49
|
-
updatedAt: this._updatedAt
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
export {
|
|
54
|
-
u as DOrganizationView
|
|
55
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Code0Component } from '../../utils';
|
|
3
|
-
import { Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
import { DOrganizationView } from './DOrganization.view';
|
|
5
|
-
export interface DOrganizationCardProps extends Code0Component<HTMLDivElement> {
|
|
6
|
-
organizationId: Scalars['OrganizationID']['output'];
|
|
7
|
-
onSetting?: (organization: DOrganizationView) => void;
|
|
8
|
-
onLeave?: (organization: DOrganizationView) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const DOrganizationCard: React.FC<DOrganizationCardProps>;
|
|
11
|
-
export default DOrganizationCard;
|
|
@@ -1,16 +0,0 @@
|
|
|
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;
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
g as default
|
|
16
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import d from "react";
|
|
3
|
-
import { Card as u } from "../card/Card.js";
|
|
4
|
-
import { useService as S, useStore as l } from "../../utils/contextStore.js";
|
|
5
|
-
import "merge-props";
|
|
6
|
-
import "js-md5";
|
|
7
|
-
import { DOrganizationReactiveService as e } from "./DOrganization.service.js";
|
|
8
|
-
import v from "../card/CardSection.js";
|
|
9
|
-
import { DOrganizationContent as g } from "./DOrganizatonContent.js";
|
|
10
|
-
const j = (i) => {
|
|
11
|
-
const n = S(e), m = l(e), a = d.useMemo(() => n.values(), [m]), {
|
|
12
|
-
filter: c = () => !0,
|
|
13
|
-
onLeave: s,
|
|
14
|
-
onSetting: p,
|
|
15
|
-
onSelect: t,
|
|
16
|
-
...f
|
|
17
|
-
} = i;
|
|
18
|
-
return /* @__PURE__ */ o(u, { ...f, children: a.filter(c).map((r) => r.id && /* @__PURE__ */ o(v, { border: !0, hover: !0, onClick: () => {
|
|
19
|
-
t && t(r);
|
|
20
|
-
}, children: /* @__PURE__ */ o(g, { onLeave: s, onSetting: p, organizationId: r?.id }) }, r.id)) });
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
j as DOrganizationList
|
|
24
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { MenuProps } from '../menu/Menu';
|
|
3
|
-
import { Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
export interface DOrganizationMenuProps extends MenuProps {
|
|
5
|
-
organizationId: Scalars["OrganizationID"]["input"];
|
|
6
|
-
onOrganizationSelect: (id: Scalars["OrganizationID"]["input"]) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const DOrganizationMenu: React.FC<DOrganizationMenuProps>;
|
|
9
|
-
export default DOrganizationMenu;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import s from "react";
|
|
3
|
-
import { Menu as u, MenuTrigger as d, MenuPortal as l, MenuContent as g, MenuItem as f } from "../menu/Menu.js";
|
|
4
|
-
import { Button as h } from "../button/Button.js";
|
|
5
|
-
import { DOrganizationReactiveService as i } from "./DOrganization.service.js";
|
|
6
|
-
import { useService as o } from "../../utils/contextStore.js";
|
|
7
|
-
const x = (n) => {
|
|
8
|
-
const r = o(i), a = o(i), c = r.getById(n.organizationId);
|
|
9
|
-
return s.useMemo(() => /* @__PURE__ */ m(u, { ...n, children: [
|
|
10
|
-
/* @__PURE__ */ e(d, { asChild: !0, children: /* @__PURE__ */ e(h, { variant: "none", style: {
|
|
11
|
-
background: "transparent"
|
|
12
|
-
}, children: c?.name }) }),
|
|
13
|
-
/* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(g, { side: "bottom", align: "start", sideOffset: 0, children: r.values().map((t) => /* @__PURE__ */ e(f, { onSelect: () => n.onOrganizationSelect(t.id), children: t.name }, t.id)) }) })
|
|
14
|
-
] }), [a]);
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
x as default
|
|
18
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Code0Component } from '../../utils';
|
|
3
|
-
import { Organization } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
import { DOrganizationView } from './DOrganization.view';
|
|
5
|
-
export interface DOrganizationCardProps extends Code0Component<HTMLDivElement> {
|
|
6
|
-
organizationId: Organization['id'];
|
|
7
|
-
onSetting?: (organization: DOrganizationView) => void;
|
|
8
|
-
onLeave?: (organization: DOrganizationView) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const DOrganizationContent: React.FC<DOrganizationCardProps>;
|