@code0-tech/pictor 0.0.0-mvp.25 → 0.0.0-mvp.27
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/assets/components/badge/Badge.style.css +1 -1
- package/dist/assets/components/button/Button.style.css +1 -1
- package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
- package/dist/assets/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.style.css +1 -1
- 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-layout/DLayout.style.css +1 -1
- package/dist/assets/components/d-resizable/DResizable.style.css +1 -1
- package/dist/assets/components/file-tabs/FileTabs.style.css +1 -1
- package/dist/assets/components/form/Input.style.css +1 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -1
- package/dist/components/avatar/Avatar.js +7 -7
- package/dist/components/badge/Badge.d.ts +1 -1
- package/dist/components/badge/Badge.js +57 -17
- package/dist/components/breadcrumb/Breadcrumb.js +5 -5
- package/dist/components/button/Button.js +8 -8
- 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 +5 -3
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +2 -1
- package/dist/components/d-flow/DFlow.edges.hook.js +98 -136
- package/dist/components/d-flow/DFlow.js +214 -199
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +5 -1
- package/dist/components/d-flow/DFlow.nodes.hook.js +101 -123
- package/dist/components/d-flow/DFlow.service.d.ts +12 -7
- package/dist/components/d-flow/DFlow.service.js +117 -7
- 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 +9 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.service.js +12 -10
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +8 -2
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +71 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.js +3 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.js +4 -4
- 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/tab → d-flow-file}/DFlowTabDefault.d.ts +2 -3
- package/dist/components/d-flow-file/DFlowTabDefault.js +139 -0
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
- package/dist/components/d-flow-file/DFlowTabTrigger.js +75 -0
- package/dist/components/d-flow-file/DFlowTabs.d.ts +6 -0
- package/dist/components/d-flow-file/DFlowTabs.js +128 -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 → d-flow-folder}/DFlowFolder.d.ts +11 -5
- package/dist/components/d-flow-folder/DFlowFolder.js +158 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +69 -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/DFlowFolderItemPathInput.d.ts +5 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +49 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +9 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.js +1 -1
- 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 → d-flow-function}/DFlowFunction.service.d.ts +1 -1
- package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +12 -0
- package/dist/components/d-flow-function/DFlowFunction.view.js +132 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +120 -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 +48 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +71 -0
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.js +175 -165
- 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 +70 -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 → d-flow-suggestion}/DFlowSuggestion.hook.d.ts +0 -15
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +161 -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 +83 -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 +1 -1
- 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/index.d.ts +1 -0
- package/dist/components/d-flow-suggestion/index.js +4 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.service.d.ts +1 -1
- package/dist/components/d-flow-type/DFlowType.service.js +12 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +6 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.js +16 -10
- 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 +62 -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.js +2 -2
- package/dist/components/d-member/DNamespaceMemberContent.js +140 -92
- package/dist/components/d-member/DNamespaceMemberList.js +5 -5
- package/dist/components/d-organization/DOrganizationList.js +7 -7
- package/dist/components/d-organization/DOrganizationMenu.js +5 -5
- package/dist/components/d-organization/DOrganizatonContent.js +29 -29
- package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
- package/dist/components/d-project/DNamespaceProjectList.js +5 -5
- package/dist/components/d-project/DNamespaceProjectMenu.js +51 -22
- package/dist/components/d-project/index.js +10 -9
- package/dist/components/d-resizable/DResizable.js +18 -17
- package/dist/components/d-role/DNamespaceRoleContent.js +11 -11
- package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
- package/dist/components/d-runtime/DRuntimeContent.js +10 -10
- package/dist/components/d-runtime/DRuntimeList.js +7 -7
- package/dist/components/d-user/DUser.session.hook.js +2 -2
- package/dist/components/d-user/DUserContent.js +19 -19
- package/dist/components/d-user/DUserInput.js +9 -9
- package/dist/components/d-user/DUserList.js +9 -9
- package/dist/components/file-tabs/FileTabs.js +2 -2
- package/dist/components/file-tabs/FileTabs.service.d.ts +5 -0
- package/dist/components/file-tabs/FileTabs.service.js +68 -16
- package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
- package/dist/components/form/CheckboxInput.js +4 -4
- package/dist/components/form/EmailInput.js +12 -12
- package/dist/components/form/Input.js +220 -206
- package/dist/components/form/Input.selection.hook.js +9 -9
- package/dist/components/form/Input.syntax.hook.js +7 -7
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +6 -6
- package/dist/components/form/SwitchInput.js +7 -7
- package/dist/components/form/TextInput.js +10 -10
- package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
- package/dist/components/segmented-control/SegmentedControl.js +14 -12
- package/dist/index.d.ts +8 -0
- package/dist/index.js +117 -117
- 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/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
- 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/generics.d.ts +5 -6
- package/dist/utils/generics.js +2 -2
- package/dist/utils/objectStore.js +15 -15
- package/dist/utils/reactiveArrayService.js +5 -5
- package/package.json +7 -4
- package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +0 -1
- package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +0 -1
- package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +0 -1
- package/dist/components/d-flow/DFlow.view.d.ts +0 -113
- package/dist/components/d-flow/DFlow.view.js +0 -248
- package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
- package/dist/components/d-flow/control/DFlowControl.js +0 -81
- 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.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 -20
- package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -243
- package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
- package/dist/components/d-flow/export/DFlowExport.js +0 -24
- package/dist/components/d-flow/folder/DFlowFolder.js +0 -119
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
- 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 -74
- 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 -93
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -22
- 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.js +0 -150
- 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 -35
- 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.js +0 -103
- 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.js +0 -9
- 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 -60
- /package/dist/assets/components/{d-flow/input → d-flow-input}/DFlowInputDataType.style.css +0 -0
- /package/dist/assets/components/{d-flow/validation → d-flow-validation}/DFlowValidation.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}/index.js +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/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.js +0 -0
- /package/dist/components/{d-flow/folder → d-flow-folder}/index.d.ts +0 -0
- /package/dist/components/{d-flow/folder → d-flow-folder}/index.js +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/export → d-flow-panel}/DFlowExport.d.ts +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
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as r, jsx as e, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { Flex as
|
|
4
|
-
import { useService as
|
|
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
5
|
import "merge-props";
|
|
6
|
-
import { DNamespaceMemberReactiveService as
|
|
7
|
-
import { DUserReactiveService as
|
|
8
|
-
import { Menu as
|
|
9
|
-
import { Avatar as
|
|
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
10
|
import { Text as o } from "../text/Text.js";
|
|
11
11
|
import "../../_virtual/compiler-runtime.js";
|
|
12
|
-
import { Card as
|
|
13
|
-
import { Badge as
|
|
14
|
-
import { IconTrash as
|
|
15
|
-
import { Button as
|
|
16
|
-
import
|
|
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
17
|
import "@radix-ui/react-checkbox";
|
|
18
|
-
import '../../assets/components/
|
|
18
|
+
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
19
19
|
import "../form/EmailInput.js";
|
|
20
20
|
import "../form/Input.js";
|
|
21
21
|
import "../form/InputSuggestion.js";
|
|
@@ -25,152 +25,200 @@ import "@radix-ui/react-one-time-password-field";
|
|
|
25
25
|
import "@radix-ui/react-radio-group";
|
|
26
26
|
import "../form/SwitchInput.js";
|
|
27
27
|
import "../form/TextInput.js";
|
|
28
|
-
|
|
29
|
-
import { DNamespaceRoleReactiveService as
|
|
30
|
-
import { DNamespaceRolePermissions as
|
|
31
|
-
import { Tooltip as
|
|
32
|
-
import { Dialog as
|
|
33
|
-
const
|
|
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
34
|
const {
|
|
35
|
-
memberId:
|
|
36
|
-
onAssignRole:
|
|
35
|
+
memberId: S,
|
|
36
|
+
onAssignRole: V = () => {
|
|
37
37
|
},
|
|
38
|
-
onRemove:
|
|
38
|
+
onRemove: q = () => {
|
|
39
39
|
}
|
|
40
|
-
} =
|
|
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
41
|
namespaceId: t?.namespace?.id
|
|
42
|
-
})) || [], [
|
|
42
|
+
})) || [], [Q, t]), [g, z] = a.useState(p), [X, A] = a.useState(!1), [Z, R] = a.useState(!1), D = C.values({
|
|
43
43
|
namespaceId: t?.namespace?.id
|
|
44
|
-
}).filter((
|
|
45
|
-
return /* @__PURE__ */ r(
|
|
44
|
+
}).filter((n) => !g.find((d) => d?.id === n.id));
|
|
45
|
+
return /* @__PURE__ */ r(i, { align: "center", style: {
|
|
46
46
|
gap: "1.3rem"
|
|
47
47
|
}, justify: "space-between", children: [
|
|
48
|
-
/* @__PURE__ */ e(
|
|
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
49
|
/* @__PURE__ */ r(o, { size: "md", hierarchy: "secondary", children: [
|
|
50
50
|
"Are you sure you want to remove ",
|
|
51
51
|
" ",
|
|
52
|
-
/* @__PURE__ */ e(
|
|
52
|
+
/* @__PURE__ */ e(l, { color: "info", children: /* @__PURE__ */ r(o, { size: "md", style: {
|
|
53
53
|
color: "inherit"
|
|
54
54
|
}, children: [
|
|
55
55
|
"@",
|
|
56
|
-
|
|
56
|
+
c?.username
|
|
57
57
|
] }) }),
|
|
58
58
|
" ",
|
|
59
59
|
" ",
|
|
60
60
|
"from the namespace members?"
|
|
61
61
|
] }),
|
|
62
|
-
/* @__PURE__ */ r(
|
|
63
|
-
/* @__PURE__ */ e(
|
|
64
|
-
/* @__PURE__ */ e(
|
|
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
65
|
] })
|
|
66
66
|
] }) }) }),
|
|
67
|
-
/* @__PURE__ */ e(
|
|
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
68
|
/* @__PURE__ */ e(o, { size: "md", hierarchy: "tertiary", children: "Assign, remove and manage the roles of a active member" }),
|
|
69
|
-
/* @__PURE__ */ r(
|
|
70
|
-
|
|
69
|
+
/* @__PURE__ */ r(v, { paddingSize: "xs", color: "secondary", children: [
|
|
70
|
+
g.map((n) => /* @__PURE__ */ e(P, { border: !0, children: /* @__PURE__ */ r(i, { style: {
|
|
71
71
|
gap: "0.7rem"
|
|
72
72
|
}, align: "center", justify: "space-between", children: [
|
|
73
|
-
/* @__PURE__ */ r(
|
|
73
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
74
74
|
gap: "1.3rem"
|
|
75
75
|
}, children: [
|
|
76
|
-
/* @__PURE__ */ e(o, { hierarchy: "primary", children:
|
|
77
|
-
/* @__PURE__ */ e(
|
|
76
|
+
/* @__PURE__ */ e(o, { hierarchy: "primary", children: n?.name }),
|
|
77
|
+
/* @__PURE__ */ e(x, { abilities: n?.abilities })
|
|
78
78
|
] }),
|
|
79
|
-
/* @__PURE__ */ e(
|
|
80
|
-
|
|
81
|
-
}, children: /* @__PURE__ */ e(
|
|
82
|
-
] }) },
|
|
83
|
-
/* @__PURE__ */ r(
|
|
84
|
-
/* @__PURE__ */ e(
|
|
85
|
-
/* @__PURE__ */ e(
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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"
|
|
92
107
|
}, children: [
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
+
] }) })
|
|
98
122
|
] }) })
|
|
99
123
|
] })
|
|
100
124
|
] }),
|
|
101
|
-
/* @__PURE__ */ r(
|
|
102
|
-
/* @__PURE__ */ e(
|
|
103
|
-
/* @__PURE__ */ e(
|
|
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!" }) })
|
|
104
128
|
] })
|
|
105
129
|
] }) }) }),
|
|
106
|
-
/* @__PURE__ */ r(
|
|
130
|
+
/* @__PURE__ */ r(i, { style: {
|
|
107
131
|
gap: "1.3rem"
|
|
108
132
|
}, align: "center", children: [
|
|
109
|
-
/* @__PURE__ */ r(
|
|
133
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
110
134
|
gap: ".7rem"
|
|
111
135
|
}, children: [
|
|
112
|
-
/* @__PURE__ */ e(
|
|
113
|
-
/* @__PURE__ */ r(
|
|
136
|
+
/* @__PURE__ */ e(ee, { identifier: c?.username, bg: "transparent" }),
|
|
137
|
+
/* @__PURE__ */ r(i, { style: {
|
|
114
138
|
flexDirection: "column",
|
|
115
139
|
gap: "0.35rem"
|
|
116
140
|
}, children: [
|
|
117
141
|
/* @__PURE__ */ r(o, { size: "md", hierarchy: "primary", children: [
|
|
118
142
|
"@",
|
|
119
|
-
|
|
143
|
+
c?.username
|
|
120
144
|
] }),
|
|
121
|
-
/* @__PURE__ */ e(o, { size: "sm", hierarchy: "tertiary", children:
|
|
145
|
+
/* @__PURE__ */ e(o, { size: "sm", hierarchy: "tertiary", children: c?.email })
|
|
122
146
|
] })
|
|
123
147
|
] }),
|
|
124
|
-
|
|
148
|
+
p.length > 0 ? /* @__PURE__ */ r(i, { style: {
|
|
125
149
|
flexDirection: "column",
|
|
126
150
|
gap: "0.35rem"
|
|
127
151
|
}, children: [
|
|
128
152
|
/* @__PURE__ */ e(o, { size: "xs", hierarchy: "tertiary", children: "Assigned roles" }),
|
|
129
|
-
/* @__PURE__ */ e(
|
|
153
|
+
/* @__PURE__ */ e(i, { align: "center", style: {
|
|
130
154
|
gap: "0.35rem"
|
|
131
|
-
}, children:
|
|
132
|
-
/* @__PURE__ */ e(
|
|
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: {
|
|
133
157
|
color: "inherit"
|
|
134
|
-
}, hierarchy: "tertiary", children:
|
|
135
|
-
/* @__PURE__ */ e(
|
|
136
|
-
/* @__PURE__ */ e(
|
|
137
|
-
/* @__PURE__ */ e(
|
|
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, {})
|
|
138
162
|
] }) })
|
|
139
163
|
] })) })
|
|
140
164
|
] }) : null
|
|
141
165
|
] }),
|
|
142
|
-
/* @__PURE__ */ r(
|
|
166
|
+
/* @__PURE__ */ r(i, { align: "center", style: {
|
|
143
167
|
gap: "1.3rem"
|
|
144
168
|
}, children: [
|
|
145
|
-
/* @__PURE__ */ e(
|
|
169
|
+
/* @__PURE__ */ e(i, { style: {
|
|
146
170
|
flexDirection: "column",
|
|
147
171
|
gap: "0.35rem"
|
|
148
|
-
}, children: /* @__PURE__ */ r(
|
|
172
|
+
}, children: /* @__PURE__ */ r(i, { style: {
|
|
149
173
|
gap: "0.35rem"
|
|
150
174
|
}, align: "center", children: [
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
/* @__PURE__ */ e(
|
|
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 }),
|
|
154
178
|
/* @__PURE__ */ e(o, { hierarchy: "tertiary", children: "Email verified" })
|
|
155
179
|
] }) : null
|
|
156
180
|
] }) }),
|
|
157
|
-
t?.userAbilities?.deleteMember || t?.userAbilities?.assignMemberRoles ? /* @__PURE__ */ r(
|
|
158
|
-
/* @__PURE__ */ e(
|
|
159
|
-
/* @__PURE__ */ e(
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
/* @__PURE__ */ e(
|
|
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
|
+
] })
|
|
164
196
|
] }),
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
+
] }) })
|
|
169
217
|
] }) })
|
|
170
218
|
] }) : null
|
|
171
219
|
] })
|
|
172
220
|
] });
|
|
173
221
|
};
|
|
174
222
|
export {
|
|
175
|
-
|
|
223
|
+
Ve as DNamespaceMemberContent
|
|
176
224
|
};
|
|
@@ -6,18 +6,18 @@ import { DNamespaceMemberReactiveService as t } from "./DNamespaceMember.service
|
|
|
6
6
|
import { Card as v } from "../card/Card.js";
|
|
7
7
|
import S from "../card/CardSection.js";
|
|
8
8
|
import { DNamespaceMemberContent as b } from "./DNamespaceMemberContent.js";
|
|
9
|
-
const
|
|
9
|
+
const _ = (m) => {
|
|
10
10
|
const {
|
|
11
11
|
namespaceId: o,
|
|
12
12
|
filter: i = () => !0,
|
|
13
13
|
onRemove: s,
|
|
14
14
|
onAssignRole: c,
|
|
15
|
-
...
|
|
16
|
-
} = m,
|
|
15
|
+
...a
|
|
16
|
+
} = m, n = u(t), p = l(t), d = f.useMemo(() => n.values({
|
|
17
17
|
namespaceId: o
|
|
18
18
|
}), [p, o]);
|
|
19
|
-
return /* @__PURE__ */ r(v, { ...
|
|
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
20
|
};
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
_ as DNamespaceMemberList
|
|
23
23
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import p from "react";
|
|
3
3
|
import { Card as u } from "../card/Card.js";
|
|
4
|
-
import { useService as
|
|
4
|
+
import { useService as l, useStore as S } from "../../utils/contextStore.js";
|
|
5
5
|
import "merge-props";
|
|
6
6
|
import { DOrganizationReactiveService as e } from "./DOrganization.service.js";
|
|
7
7
|
import v from "../card/CardSection.js";
|
|
8
8
|
import { DOrganizationContent as g } from "./DOrganizatonContent.js";
|
|
9
|
-
const
|
|
10
|
-
const n =
|
|
9
|
+
const _ = (i) => {
|
|
10
|
+
const n = l(e), m = S(e), a = p.useMemo(() => n.values(), [m]), {
|
|
11
11
|
filter: c = () => !0,
|
|
12
12
|
onLeave: s,
|
|
13
13
|
onSetting: f,
|
|
14
14
|
onSelect: t,
|
|
15
|
-
...
|
|
15
|
+
...d
|
|
16
16
|
} = i;
|
|
17
|
-
return /* @__PURE__ */ o(u, { ...
|
|
17
|
+
return /* @__PURE__ */ o(u, { ...d, children: a.filter(c).map((r) => r.id && /* @__PURE__ */ o(v, { border: !0, hover: !0, onClick: () => {
|
|
18
18
|
t && t(r);
|
|
19
19
|
}, children: /* @__PURE__ */ o(g, { onLeave: s, onSetting: f, organizationId: r?.id }) }, r.id)) });
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
_ as DOrganizationList
|
|
23
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 {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import n from "react";
|
|
3
3
|
import { useStore as c, useService as s } from "../../utils/contextStore.js";
|
|
4
4
|
import "merge-props";
|
|
5
|
-
import { Text as
|
|
6
|
-
import { DOrganizationReactiveService as
|
|
7
|
-
import {
|
|
8
|
-
import { Flex as
|
|
9
|
-
import { Button as
|
|
5
|
+
import { Text as a } from "../text/Text.js";
|
|
6
|
+
import { DOrganizationReactiveService as v } from "./DOrganization.service.js";
|
|
7
|
+
import { IconFolders as k, IconUsers as L, IconServer as N, IconEdit as w, IconLogout as F } from "@tabler/icons-react";
|
|
8
|
+
import { Flex as i } from "../flex/Flex.js";
|
|
9
|
+
import { Button as S } from "../button/Button.js";
|
|
10
10
|
import { Spacing as P } from "../spacing/Spacing.js";
|
|
11
|
-
import { Avatar as
|
|
12
|
-
import { DUserReactiveService as
|
|
11
|
+
import { Avatar as _ } from "../avatar/Avatar.js";
|
|
12
|
+
import { DUserReactiveService as b } from "../d-user/DUser.service.js";
|
|
13
13
|
import "../../_virtual/compiler-runtime.js";
|
|
14
14
|
import '../../assets/components/dialog/Dialog.style.css';import '../../assets/components/tooltip/Tooltip.style.css';import '../../assets/components/form/Input.style.css';import '../../assets/components/card/Card.style.css';import '../../assets/components/menu/Menu.style.css';/* empty css */
|
|
15
15
|
import "@radix-ui/react-dropdown-menu";
|
|
16
16
|
/* empty css */
|
|
17
|
-
import { useUserSession as
|
|
17
|
+
import { useUserSession as E } from "../d-user/DUser.session.hook.js";
|
|
18
18
|
import { Badge as d } from "../badge/Badge.js";
|
|
19
19
|
import "@radix-ui/react-checkbox";
|
|
20
20
|
/* empty css */
|
|
@@ -27,7 +27,7 @@ import "@radix-ui/react-one-time-password-field";
|
|
|
27
27
|
import "@radix-ui/react-radio-group";
|
|
28
28
|
import "../form/SwitchInput.js";
|
|
29
29
|
import "../form/TextInput.js";
|
|
30
|
-
import { DNamespaceReactiveService as
|
|
30
|
+
import { DNamespaceReactiveService as z } from "../d-namespace/DNamespace.service.js";
|
|
31
31
|
import { DNamespaceMemberReactiveService as x } from "../d-member/DNamespaceMember.service.js";
|
|
32
32
|
import "@radix-ui/react-tooltip";
|
|
33
33
|
/* empty css */
|
|
@@ -35,59 +35,59 @@ import "@radix-ui/react-dialog";
|
|
|
35
35
|
/* empty css */
|
|
36
36
|
const Ie = (I) => {
|
|
37
37
|
const {
|
|
38
|
-
organizationId:
|
|
38
|
+
organizationId: m,
|
|
39
39
|
onLeave: M = () => {
|
|
40
40
|
},
|
|
41
41
|
onSetting: j = () => {
|
|
42
42
|
}
|
|
43
|
-
} = I, B = c(
|
|
44
|
-
return /* @__PURE__ */ i
|
|
43
|
+
} = I, B = c(v), C = s(v), D = c(z), $ = s(z), A = c(x), R = s(x), U = s(b), O = c(b), u = E(), p = n.useMemo(() => U.getById(u?.user?.id), [O, u]), r = n.useMemo(() => m ? C.getById(m) : null, [B, m]), o = n.useMemo(() => r ? $.getById(r.namespace?.id) : null, [D, r]), g = n.useMemo(() => o && p ? R.getByNamespaceIdAndUserId(o.id, p.id) : null, [A, o, p]), h = o?.projects?.count, f = o?.members?.count, y = o?.runtimes?.count;
|
|
44
|
+
return /* @__PURE__ */ t(i, { align: "center", style: {
|
|
45
45
|
gap: "1.3rem"
|
|
46
46
|
}, justify: "space-between", children: [
|
|
47
|
-
/* @__PURE__ */ i
|
|
47
|
+
/* @__PURE__ */ t(i, { align: "center", style: {
|
|
48
48
|
gap: "1.3rem"
|
|
49
49
|
}, children: [
|
|
50
|
-
/* @__PURE__ */ e(
|
|
51
|
-
/* @__PURE__ */ i
|
|
50
|
+
/* @__PURE__ */ e(_, { bg: "transparent", identifier: r?.name ?? "" }),
|
|
51
|
+
/* @__PURE__ */ t(i, { style: {
|
|
52
52
|
flexDirection: "column"
|
|
53
53
|
}, children: [
|
|
54
|
-
/* @__PURE__ */ e(
|
|
54
|
+
/* @__PURE__ */ e(a, { size: "lg", hierarchy: "primary", display: "block", children: r?.name }),
|
|
55
55
|
/* @__PURE__ */ e(P, { spacing: "xxs" }),
|
|
56
|
-
/* @__PURE__ */ i
|
|
56
|
+
/* @__PURE__ */ t(i, { align: "center", style: {
|
|
57
57
|
gap: "0.35rem",
|
|
58
58
|
flexWrap: "wrap"
|
|
59
59
|
}, children: [
|
|
60
|
-
/* @__PURE__ */ e(d, {
|
|
60
|
+
/* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ t(i, { align: "center", style: {
|
|
61
61
|
gap: "0.35rem"
|
|
62
62
|
}, children: [
|
|
63
63
|
/* @__PURE__ */ e(k, { size: 16 }),
|
|
64
|
-
/* @__PURE__ */ e(
|
|
64
|
+
/* @__PURE__ */ e(a, { size: "xs", hierarchy: "tertiary", children: `${h ?? 0} project${(h ?? 0) !== 1 ? "s" : ""}` })
|
|
65
65
|
] }) }),
|
|
66
|
-
/* @__PURE__ */ e(d, {
|
|
66
|
+
/* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ t(i, { align: "center", style: {
|
|
67
67
|
gap: "0.35rem"
|
|
68
68
|
}, children: [
|
|
69
69
|
/* @__PURE__ */ e(L, { size: 16 }),
|
|
70
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ t(a, { size: "xs", hierarchy: "tertiary", children: [
|
|
71
71
|
" ",
|
|
72
|
-
`${
|
|
72
|
+
`${f ?? 0} member${(f ?? 0) !== 1 ? "s" : ""}`
|
|
73
73
|
] })
|
|
74
74
|
] }) }),
|
|
75
|
-
/* @__PURE__ */ e(d, {
|
|
75
|
+
/* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ t(i, { align: "center", style: {
|
|
76
76
|
gap: "0.35rem"
|
|
77
77
|
}, children: [
|
|
78
78
|
/* @__PURE__ */ e(N, { size: 16 }),
|
|
79
|
-
/* @__PURE__ */ e(
|
|
79
|
+
/* @__PURE__ */ e(a, { size: "xs", hierarchy: "tertiary", children: `${y ?? 0} runtime${(y ?? 0) !== 1 ? "s" : ""}` })
|
|
80
80
|
] }) })
|
|
81
81
|
] })
|
|
82
82
|
] })
|
|
83
83
|
] }),
|
|
84
|
-
/* @__PURE__ */ i
|
|
85
|
-
gap: "0.
|
|
84
|
+
/* @__PURE__ */ t(i, { align: "center", style: {
|
|
85
|
+
gap: "0.7rem"
|
|
86
86
|
}, children: [
|
|
87
|
-
r?.userAbilities?.deleteOrganization || r?.userAbilities?.updateOrganization ? /* @__PURE__ */ e(
|
|
87
|
+
r?.userAbilities?.deleteOrganization || r?.userAbilities?.updateOrganization ? /* @__PURE__ */ e(S, { variant: "filled", color: "secondary", onClick: (l) => {
|
|
88
88
|
l.stopPropagation(), j(r);
|
|
89
89
|
}, children: /* @__PURE__ */ e(w, { size: 16 }) }) : null,
|
|
90
|
-
|
|
90
|
+
g && g.userAbilities?.deleteMember ? /* @__PURE__ */ t(S, { variant: "filled", color: "error", onClick: (l) => {
|
|
91
91
|
l.stopPropagation(), r && M(r);
|
|
92
92
|
}, children: [
|
|
93
93
|
/* @__PURE__ */ e(F, { size: 16 }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useService as
|
|
2
|
+
import { useService as m } from "../../utils/contextStore.js";
|
|
3
3
|
import p from "react";
|
|
4
4
|
import "merge-props";
|
|
5
5
|
import { Flex as t } from "../flex/Flex.js";
|
|
@@ -12,13 +12,13 @@ import { DRuntimeReactiveService as b } from "../d-runtime/DRuntime.service.js";
|
|
|
12
12
|
import "../../_virtual/compiler-runtime.js";
|
|
13
13
|
import '../../assets/components/card/Card.style.css';/* empty css */
|
|
14
14
|
import { Button as S } from "../button/Button.js";
|
|
15
|
-
const
|
|
15
|
+
const G = (d) => {
|
|
16
16
|
const {
|
|
17
17
|
projectId: s,
|
|
18
18
|
onSetting: u = () => {
|
|
19
19
|
},
|
|
20
20
|
minimized: o = !1
|
|
21
|
-
} = d, l =
|
|
21
|
+
} = d, l = m(y), h = o ? null : m(b), r = p.useMemo(() => l.getById(s), [l, s]), a = o ? null : p.useMemo(() => r ? h.getById(r.primaryRuntime?.id) : null, [r]);
|
|
22
22
|
return /* @__PURE__ */ i(t, { align: "center", style: {
|
|
23
23
|
gap: "1.3rem"
|
|
24
24
|
}, justify: "space-between", children: [
|
|
@@ -54,9 +54,9 @@ const T = (d) => {
|
|
|
54
54
|
/* @__PURE__ */ e(v, { size: 16 }),
|
|
55
55
|
/* @__PURE__ */ e(n, { size: "xs", children: r?.runtimes?.count ?? 0 })
|
|
56
56
|
] }),
|
|
57
|
-
|
|
57
|
+
a && /* @__PURE__ */ i(c, { border: !0, children: [
|
|
58
58
|
/* @__PURE__ */ e(z, { size: 16 }),
|
|
59
|
-
/* @__PURE__ */ e(n, { size: "xs", children:
|
|
59
|
+
/* @__PURE__ */ e(n, { size: "xs", children: a.name })
|
|
60
60
|
] })
|
|
61
61
|
] })
|
|
62
62
|
] }),
|
|
@@ -67,5 +67,5 @@ const T = (d) => {
|
|
|
67
67
|
] });
|
|
68
68
|
};
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
G as DNamespaceProjectContent
|
|
71
71
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import f from "react";
|
|
3
3
|
import { Card as u } from "../card/Card.js";
|
|
4
|
-
import { useService as
|
|
4
|
+
import { useService as l, useStore as S } from "../../utils/contextStore.js";
|
|
5
5
|
import "merge-props";
|
|
6
6
|
import { DNamespaceProjectReactiveService as i } from "./DNamespaceProject.service.js";
|
|
7
7
|
import v from "../card/CardSection.js";
|
|
8
8
|
import { DNamespaceProjectContent as j } from "./DNamespaceProjectContent.js";
|
|
9
|
-
const
|
|
9
|
+
const _ = (c) => {
|
|
10
10
|
const {
|
|
11
11
|
namespaceId: t,
|
|
12
12
|
filter: m = () => !0,
|
|
13
13
|
onSetting: s,
|
|
14
14
|
onSelect: o,
|
|
15
15
|
...n
|
|
16
|
-
} = c,
|
|
16
|
+
} = c, a = l(i), p = S(i), d = f.useMemo(() => a.values({
|
|
17
17
|
namespaceId: t
|
|
18
|
-
}), [
|
|
18
|
+
}), [p, t]);
|
|
19
19
|
return /* @__PURE__ */ r(u, { ...n, children: d.filter(m).map((e) => e.id && /* @__PURE__ */ r(v, { border: !0, hover: !0, onClick: () => {
|
|
20
20
|
o && o(e);
|
|
21
21
|
}, children: /* @__PURE__ */ r(j, { onSetting: s, projectId: e?.id }) }, e.id)) });
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
_ as DNamespaceProjectList
|
|
25
25
|
};
|