@code0-tech/pictor 0.0.0-mvp.3 → 0.0.0-mvp.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/compiler-runtime.js +5 -0
- package/dist/_virtual/compiler-runtime2.js +4 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/react-compiler-runtime.development.js +4 -0
- package/dist/_virtual/react-compiler-runtime.production.js +4 -0
- package/dist/_virtual/react-contenteditable.js +7 -0
- package/dist/_virtual/react-contenteditable2.js +4 -0
- package/dist/_virtual/react-dom-server-legacy.browser.development.js +4 -0
- package/dist/_virtual/react-dom-server-legacy.browser.production.js +4 -0
- package/dist/_virtual/react-dom-server.browser.development.js +4 -0
- package/dist/_virtual/react-dom-server.browser.production.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/server.browser.js +5 -0
- package/dist/_virtual/server.browser2.js +4 -0
- package/dist/assets/components/alert/Alert.style.css +1 -0
- package/dist/assets/components/aurora/Aurora.style.css +1 -0
- package/dist/assets/components/avatar/Avatar.style.css +1 -0
- package/dist/assets/components/badge/Badge.style.css +1 -0
- package/dist/assets/{Breadcrumb.css → components/breadcrumb/Breadcrumb.style.css} +1 -1
- package/dist/assets/components/button/Button.style.css +1 -0
- package/dist/assets/components/button-group/ButtonGroup.style.css +1 -0
- package/dist/assets/components/card/Card.style.css +1 -0
- package/dist/assets/components/command/Command.style.css +1 -0
- package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
- package/dist/assets/components/d-flow/DFlow.style.css +1 -0
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
- package/dist/assets/components/d-flow-function/DFlowFunctionDefaultCard.style.css +1 -0
- package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +1 -0
- package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +1 -0
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +1 -0
- package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +1 -0
- package/dist/assets/components/d-layout/DLayout.style.css +1 -0
- package/dist/assets/components/d-resizable/DResizable.style.css +1 -0
- package/dist/assets/components/dialog/Dialog.style.css +1 -0
- package/dist/assets/components/file-tabs/FileTabs.style.css +1 -0
- package/dist/assets/components/form/Input.style.css +1 -0
- package/dist/assets/components/menu/Menu.style.css +1 -0
- package/dist/assets/{ScrollArea.css → components/scroll-area/ScrollArea.style.css} +1 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -0
- package/dist/assets/components/spacing/Spacing.style.css +1 -0
- package/dist/assets/components/tab/Tab.style.css +1 -0
- package/dist/assets/components/text/Text.style.css +1 -0
- package/dist/assets/components/toast/Toast.style.css +1 -0
- package/dist/assets/components/tooltip/Tooltip.style.css +1 -0
- package/dist/assets/{DFlow.css → node_modules/@xyflow/react/dist/style.css} +1 -1
- package/dist/components/alert/Alert.d.ts +7 -0
- package/dist/components/alert/Alert.js +38 -0
- package/dist/components/aurora/Aurora.d.ts +5 -0
- package/dist/components/aurora/Aurora.js +23 -0
- package/dist/components/avatar/Avatar.js +9 -9
- package/dist/components/badge/Badge.d.ts +2 -1
- package/dist/components/badge/Badge.js +58 -17
- package/dist/components/breadcrumb/Breadcrumb.js +16 -28
- package/dist/components/button/Button.d.ts +3 -2
- package/dist/components/button/Button.js +23 -20
- package/dist/components/button-group/ButtonGroup.js +12 -11
- package/dist/components/card/Card.d.ts +2 -1
- package/dist/components/card/Card.js +25 -22
- package/dist/components/card/CardSection.d.ts +1 -0
- package/dist/components/card/CardSection.js +18 -12
- package/dist/components/col/Col.js +9 -8
- package/dist/components/command/Command.js +19 -18
- package/dist/components/container/Container.js +12 -11
- package/dist/components/context-menu/ContextMenu.d.ts +31 -0
- package/dist/components/context-menu/ContextMenu.js +191 -0
- package/dist/components/d-application/DApplication.service.d.ts +5 -0
- package/dist/components/d-application/DApplication.service.js +9 -0
- package/dist/components/d-flow/DFlow.d.ts +7 -3
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +3 -2
- package/dist/components/d-flow/DFlow.edges.hook.js +100 -136
- package/dist/components/d-flow/DFlow.js +313 -258
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +6 -2
- package/dist/components/d-flow/DFlow.nodes.hook.js +102 -121
- package/dist/components/d-flow/DFlow.service.d.ts +17 -7
- package/dist/components/d-flow/DFlow.service.js +132 -7
- package/dist/components/d-flow/DFlow.util.d.ts +4 -0
- package/dist/components/d-flow/DFlow.util.js +63 -0
- package/dist/components/d-flow/{edge/DFlowEdge.d.ts → DFlowEdge.d.ts} +5 -3
- package/dist/components/d-flow/DFlowEdge.js +69 -0
- package/dist/components/d-flow/index.d.ts +1 -10
- package/dist/components/d-flow/index.js +9 -44
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +14 -0
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +96 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +13 -4
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +76 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +1 -1
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +222 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +229 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js +3 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +246 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +10 -0
- package/dist/components/d-flow-file/DFlowTabDefault.d.ts +7 -0
- package/dist/components/d-flow-file/DFlowTabDefault.js +104 -0
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
- package/dist/components/d-flow-file/DFlowTabTrigger.js +64 -0
- package/dist/components/d-flow-file/DFlowTabs.d.ts +8 -0
- package/dist/components/d-flow-file/DFlowTabs.js +132 -0
- package/dist/components/d-flow-file/index.d.ts +1 -0
- package/dist/components/d-flow-file/index.js +4 -0
- package/dist/components/d-flow-folder/DFlowFolder.d.ts +33 -0
- package/dist/components/d-flow-folder/DFlowFolder.js +208 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +45 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +9 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +76 -0
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +10 -0
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +55 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +50 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +10 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
- package/dist/components/d-flow-folder/index.d.ts +4 -0
- package/dist/components/d-flow-folder/index.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +8 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.return.hook.d.ts +2 -2
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +9 -0
- package/dist/components/d-flow-function/DFlowFunction.service.d.ts +11 -0
- package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +24 -9
- package/dist/components/d-flow-function/DFlowFunction.view.js +139 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +117 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.d.ts +13 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.js +68 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts +3 -4
- package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +43 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +78 -0
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
- package/dist/components/d-flow-input/DFlowInputDataType.js +437 -0
- package/dist/components/d-flow-input/DFlowInputDefault.d.ts +10 -0
- package/dist/components/d-flow-input/DFlowInputDefault.js +128 -0
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +7 -0
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +24 -0
- package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +11 -0
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +44 -0
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +11 -0
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +33 -0
- package/dist/components/d-flow-panel/DFlowExport.d.ts +6 -0
- package/dist/components/d-flow-panel/DFlowExport.js +32 -0
- package/dist/components/d-flow-panel/DFlowMiniMap.js +33 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +6 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.js +72 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +4 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +47 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +2 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.js +94 -0
- package/dist/components/d-flow-panel/index.d.ts +5 -0
- package/dist/components/d-flow-panel/index.js +12 -0
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +34 -0
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +50 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +133 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +24 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +14 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +4 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +72 -0
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.js +12 -11
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js +5 -5
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionSearchInput.d.ts +1 -1
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +35 -0
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +44 -0
- package/dist/components/d-flow-suggestion/index.d.ts +1 -0
- package/dist/components/d-flow-suggestion/index.js +4 -0
- package/dist/components/d-flow-type/DFlowType.service.d.ts +11 -0
- package/dist/components/d-flow-type/DFlowType.service.js +12 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +10 -4
- package/dist/components/d-flow-type/DFlowType.view.js +85 -0
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +2 -0
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +18 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +22 -0
- package/dist/components/d-flow-validation/DFlowValidation.js +66 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +58 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.js +8 -0
- package/dist/components/{d-flow/validation → d-flow-validation}/index.js +2 -2
- package/dist/components/d-fullscreen/DFullScreen.d.ts +1 -2
- package/dist/components/d-fullscreen/DFullScreen.js +24 -18
- package/dist/components/d-layout/DLayout.js +27 -26
- package/dist/components/d-license/DNamespaceLicense.service.d.ts +11 -0
- package/dist/components/d-license/DNamespaceLicense.service.js +12 -0
- package/dist/components/d-license/index.d.ts +2 -0
- package/dist/components/d-license/index.js +6 -0
- package/dist/components/d-member/DNamespaceMember.service.d.ts +13 -0
- package/dist/components/d-member/DNamespaceMember.service.js +17 -0
- package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.d.ts +4 -1
- package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.js +16 -11
- package/dist/components/d-member/DNamespaceMemberCard.d.ts +10 -0
- package/dist/components/d-member/DNamespaceMemberCard.js +16 -0
- package/dist/components/d-member/DNamespaceMemberContent.d.ts +10 -0
- package/dist/components/d-member/DNamespaceMemberContent.js +224 -0
- package/dist/components/d-member/DNamespaceMemberList.d.ts +12 -0
- package/dist/components/d-member/DNamespaceMemberList.js +23 -0
- package/dist/components/d-member/index.d.ts +4 -0
- package/dist/components/d-member/index.js +10 -0
- package/dist/components/d-namespace/DNamespace.service.d.ts +1 -1
- package/dist/components/d-namespace/DNamespace.service.js +7 -6
- package/dist/components/d-namespace/index.d.ts +0 -10
- package/dist/components/d-namespace/index.js +4 -33
- package/dist/components/d-organization/DOrganization.service.d.ts +3 -3
- package/dist/components/d-organization/DOrganization.service.js +8 -7
- package/dist/components/d-organization/DOrganization.view.d.ts +4 -1
- package/dist/components/d-organization/DOrganization.view.js +21 -18
- package/dist/components/d-organization/DOrganizationCard.d.ts +4 -3
- package/dist/components/d-organization/DOrganizationCard.js +13 -60
- package/dist/components/d-organization/DOrganizationList.d.ts +10 -0
- package/dist/components/d-organization/DOrganizationList.js +23 -0
- package/dist/components/d-organization/DOrganizationMenu.js +5 -5
- package/dist/components/d-organization/DOrganizatonContent.d.ts +10 -0
- package/dist/components/d-organization/DOrganizatonContent.js +101 -0
- package/dist/components/d-organization/index.d.ts +1 -0
- package/dist/components/d-organization/index.js +30 -10
- package/dist/components/d-project/DNamespaceProject.service.d.ts +12 -0
- package/dist/components/d-project/DNamespaceProject.service.js +12 -0
- package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.d.ts +4 -1
- package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.js +13 -10
- package/dist/components/d-project/DNamespaceProjectCard.d.ts +9 -0
- package/dist/components/d-project/DNamespaceProjectCard.js +17 -0
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +10 -0
- package/dist/components/d-project/DNamespaceProjectContent.js +71 -0
- package/dist/components/d-project/DNamespaceProjectList.d.ts +11 -0
- package/dist/components/d-project/DNamespaceProjectList.js +25 -0
- package/dist/components/d-project/DNamespaceProjectMenu.d.ts +13 -0
- package/dist/components/d-project/DNamespaceProjectMenu.js +57 -0
- package/dist/components/d-project/index.d.ts +5 -0
- package/dist/components/d-project/index.js +26 -0
- package/dist/components/d-resizable/DResizable.d.ts +4 -4
- package/dist/components/d-resizable/DResizable.js +26 -23
- package/dist/components/d-role/DNamespaceRole.service.d.ts +13 -0
- package/dist/components/d-role/DNamespaceRole.service.js +12 -0
- package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.d.ts +4 -1
- package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.js +8 -4
- package/dist/components/d-role/DNamespaceRoleCard.d.ts +11 -0
- package/dist/components/d-role/DNamespaceRoleCard.js +17 -0
- package/dist/components/d-role/DNamespaceRoleContent.d.ts +10 -0
- package/dist/components/d-role/DNamespaceRoleContent.js +162 -0
- package/dist/components/d-role/DNamespaceRoleList.d.ts +12 -0
- package/dist/components/d-role/DNamespaceRoleList.js +24 -0
- package/dist/components/d-role/DNamespaceRolePermissions.d.ts +5 -0
- package/dist/components/d-role/DNamespaceRolePermissions.js +123 -0
- package/dist/components/d-role/index.d.ts +4 -0
- package/dist/components/d-role/index.js +10 -0
- package/dist/components/d-runtime/DRuntime.service.d.ts +5 -2
- package/dist/components/d-runtime/DRuntime.service.js +2 -4
- package/dist/components/d-runtime/DRuntime.view.d.ts +4 -1
- package/dist/components/d-runtime/DRuntime.view.js +6 -3
- package/dist/components/d-runtime/DRuntimeCard.d.ts +9 -0
- package/dist/components/d-runtime/DRuntimeCard.js +18 -0
- package/dist/components/d-runtime/DRuntimeContent.d.ts +9 -0
- package/dist/components/d-runtime/DRuntimeContent.js +45 -0
- package/dist/components/d-runtime/DRuntimeList.d.ts +12 -0
- package/dist/components/d-runtime/DRuntimeList.js +28 -0
- package/dist/components/d-runtime/index.d.ts +2 -0
- package/dist/components/d-runtime/index.js +6 -2
- package/dist/components/d-user/DUser.service.d.ts +3 -4
- package/dist/components/d-user/DUser.service.js +9 -9
- package/dist/components/d-user/DUser.session.hook.d.ts +3 -0
- package/dist/components/d-user/DUser.session.hook.js +16 -0
- package/dist/components/d-user/DUser.view.d.ts +4 -1
- package/dist/components/d-user/DUser.view.js +13 -10
- package/dist/components/d-user/DUserCard.d.ts +8 -0
- package/dist/components/d-user/DUserCard.js +15 -0
- package/dist/components/d-user/DUserContent.d.ts +8 -0
- package/dist/components/d-user/DUserContent.js +84 -0
- package/dist/components/d-user/DUserInput.d.ts +7 -0
- package/dist/components/d-user/DUserInput.js +100 -0
- package/dist/components/d-user/DUserList.d.ts +9 -0
- package/dist/components/d-user/DUserList.js +22 -0
- package/dist/components/d-user/DUserMenu.js +20 -19
- package/dist/components/d-user/index.d.ts +4 -0
- package/dist/components/d-user/index.js +17 -8
- package/dist/components/dialog/Dialog.d.ts +2 -1
- package/dist/components/dialog/Dialog.js +69 -60
- package/dist/components/file-tabs/FileTabs.js +41 -40
- package/dist/components/file-tabs/FileTabs.service.d.ts +5 -1
- package/dist/components/file-tabs/FileTabs.service.js +74 -26
- package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
- package/dist/components/flex/Flex.js +2 -2
- package/dist/components/form/CheckboxInput.js +62 -53
- package/dist/components/form/EmailInput.js +11 -10
- package/dist/components/form/Input.d.ts +18 -5
- package/dist/components/form/Input.js +333 -139
- package/dist/components/form/Input.syntax.hook.d.ts +10 -0
- package/dist/components/form/Input.syntax.hook.js +14 -0
- package/dist/components/form/Input.utils.d.ts +10 -0
- package/dist/components/form/Input.utils.js +38 -0
- package/dist/components/form/InputContentEditable.hook.d.ts +40 -0
- package/dist/components/form/InputContentEditable.hook.js +471 -0
- package/dist/components/form/InputDescription.js +1 -1
- package/dist/components/form/InputLabel.js +1 -1
- package/dist/components/form/InputMessage.js +1 -1
- package/dist/components/form/InputSuggestion.d.ts +16 -8
- package/dist/components/form/InputSuggestion.js +189 -73
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +11 -10
- package/dist/components/form/PinInput.js +2 -2
- package/dist/components/form/RadioGroup.js +2 -2
- package/dist/components/form/RadioInput.js +2 -2
- package/dist/components/form/SwitchInput.js +7 -7
- package/dist/components/form/TextInput.js +12 -11
- package/dist/components/form/index.js +26 -27
- package/dist/components/form/useForm.d.ts +3 -1
- package/dist/components/form/useForm.js +53 -33
- package/dist/components/menu/Menu.d.ts +7 -3
- package/dist/components/menu/Menu.js +24 -24
- package/dist/components/quote/Quote.js +32 -36
- package/dist/components/row/Row.js +10 -9
- package/dist/components/scroll-area/ScrollArea.js +18 -17
- package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
- package/dist/components/segmented-control/SegmentedControl.js +19 -16
- package/dist/components/spacing/Spacing.d.ts +6 -0
- package/dist/components/spacing/Spacing.js +23 -0
- package/dist/components/tab/Tab.d.ts +11 -0
- package/dist/components/tab/Tab.js +40 -0
- package/dist/components/text/Text.js +2 -2
- package/dist/components/toast/Toast.d.ts +13 -0
- package/dist/components/toast/Toast.js +62 -0
- package/dist/components/tooltip/Tooltip.js +36 -35
- package/dist/index.d.ts +17 -0
- package/dist/index.js +264 -216
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/fast-deep-equal/index.js +31 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/object-assign/index.js +49 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
- package/dist/node_modules/prop-types/index.js +17 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +87 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +70 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +14 -0
- package/dist/node_modules/react/compiler-runtime.js +10 -0
- package/dist/node_modules/react-contenteditable/lib/react-contenteditable.js +132 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +6235 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +4096 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +6753 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +4645 -0
- package/dist/node_modules/react-dom/server.browser.js +15 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/dist/utils/arrayService.d.ts +2 -2
- package/dist/utils/contextStore.js +1 -1
- package/dist/utils/generics.d.ts +7 -6
- package/dist/utils/generics.js +136 -124
- package/dist/utils/index.js +22 -21
- package/dist/utils/inspection.d.ts +4 -2
- package/dist/utils/inspection.js +27 -2
- package/dist/utils/objectStore.js +15 -15
- package/dist/utils/reactiveArrayService.d.ts +3 -3
- package/dist/utils/reactiveArrayService.js +53 -43
- package/dist/utils/types.d.ts +2 -2
- package/package.json +38 -33
- package/dist/DFlowDataType.service-Dz8pQUeO.js +0 -793
- package/dist/assets/Avatar.css +0 -1
- package/dist/assets/Badge.css +0 -1
- package/dist/assets/Button.css +0 -1
- package/dist/assets/ButtonGroup.css +0 -1
- package/dist/assets/Card.css +0 -1
- package/dist/assets/Command.css +0 -1
- package/dist/assets/DFlowFolder.css +0 -1
- package/dist/assets/DFlowFunctionDefaultCard.css +0 -1
- package/dist/assets/DFlowInputDataType.css +0 -1
- package/dist/assets/DFlowMiniMap.css +0 -1
- package/dist/assets/DFlowSuggestionSearchInput.css +0 -1
- package/dist/assets/DFlowValidation.css +0 -1
- package/dist/assets/DLayout.css +0 -1
- package/dist/assets/DResizable.css +0 -1
- package/dist/assets/Dialog.css +0 -1
- package/dist/assets/FileTabs.css +0 -1
- package/dist/assets/Input.css +0 -1
- package/dist/assets/Menu.css +0 -1
- package/dist/assets/SegmentedControl.css +0 -1
- package/dist/assets/Text.css +0 -1
- package/dist/assets/Tooltip.css +0 -1
- package/dist/compiler-runtime-BNHg76kC.js +0 -36
- package/dist/components/d-flow/DFlow.view.d.ts +0 -109
- package/dist/components/d-flow/DFlow.view.js +0 -213
- package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
- package/dist/components/d-flow/control/DFlowControl.js +0 -77
- package/dist/components/d-flow/control/index.d.ts +0 -1
- package/dist/components/d-flow/control/index.js +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
- package/dist/components/d-flow/data-type/DFlowDataType.service.js +0 -7
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -6
- package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -6
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -6
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -7
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.js +0 -8
- package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
- package/dist/components/d-flow/folder/DFlowFolder.d.ts +0 -19
- package/dist/components/d-flow/folder/DFlowFolder.js +0 -118
- package/dist/components/d-flow/folder/index.d.ts +0 -1
- package/dist/components/d-flow/folder/index.js +0 -6
- package/dist/components/d-flow/function/DFlowFunction.input.hook.js +0 -9
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
- package/dist/components/d-flow/function/DFlowFunction.service.d.ts +0 -6
- package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -75
- package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
- package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -97
- package/dist/components/d-flow/input/DFlowInputDataType.js +0 -422
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -21
- package/dist/components/d-flow/minimap/index.d.ts +0 -1
- package/dist/components/d-flow/minimap/index.js +0 -4
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.d.ts +0 -33
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -151
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -21
- package/dist/components/d-flow/suggestion/index.d.ts +0 -2
- package/dist/components/d-flow/suggestion/index.js +0 -7
- package/dist/components/d-flow/tab/DFlowTabDefault.d.ts +0 -11
- package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -97
- package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
- package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
- package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
- package/dist/components/d-flow/type/DFlowType.service.d.ts +0 -6
- package/dist/components/d-flow/type/DFlowType.service.js +0 -9
- package/dist/components/d-flow/type/DFlowType.view.js +0 -69
- package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
- package/dist/components/d-flow/validation/DFlowValidation.js +0 -59
- package/dist/components/d-namespace/license/DNamespaceLicense.service.d.ts +0 -8
- package/dist/components/d-namespace/license/DNamespaceLicense.service.js +0 -11
- package/dist/components/d-namespace/member/DNamespaceMember.service.d.ts +0 -9
- package/dist/components/d-namespace/member/DNamespaceMember.service.js +0 -11
- package/dist/components/d-namespace/project/DNamespaceProject.service.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProject.service.js +0 -11
- package/dist/components/d-namespace/project/DNamespaceProjectCard.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProjectCard.js +0 -57
- package/dist/components/d-namespace/project/DNamespaceProjectMenu.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProjectMenu.js +0 -18
- package/dist/components/d-namespace/role/DNamespaceRole.service.d.ts +0 -10
- package/dist/components/d-namespace/role/DNamespaceRole.service.js +0 -11
- /package/dist/assets/{Col.css → components/col/Col.style.css} +0 -0
- /package/dist/assets/{Container.css → components/container/Container.style.css} +0 -0
- /package/dist/assets/{DFullScreen.css → components/d-fullscreen/DFullScreen.style.css} +0 -0
- /package/dist/assets/{Flex.css → components/flex/Flex.style.css} +0 -0
- /package/dist/assets/{Quote.css → components/quote/Quote.style.css} +0 -0
- /package/dist/assets/{Row.css → components/row/Row.style.css} +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
- /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +0 -0
- /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.d.ts +0 -0
- /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.js +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsxs as T, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import w from "react";
|
|
3
|
+
import { useService as d } from "../../utils/contextStore.js";
|
|
4
|
+
import "merge-props";
|
|
5
|
+
import "../d-flow/DFlow.js";
|
|
6
|
+
import { DFlowReactiveService as I } from "../d-flow/DFlow.service.js";
|
|
7
|
+
import "js-md5";
|
|
8
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
9
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
10
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
11
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
12
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
13
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
14
|
+
import { Flex as V } from "../flex/Flex.js";
|
|
15
|
+
import { DFlowTypeReactiveService as b } from "../d-flow-type/DFlowType.service.js";
|
|
16
|
+
import { useValueSuggestions as D } from "../d-flow-suggestion/DFlowValueSuggestions.hook.js";
|
|
17
|
+
import { useDataTypeSuggestions as F } from "../d-flow-suggestion/DFlowDataTypeSuggestions.hook.js";
|
|
18
|
+
import { toInputSuggestions as h } from "../d-flow-suggestion/DFlowSuggestionMenu.util.js";
|
|
19
|
+
import { DFlowInputDataType as x } from "../d-flow-input/DFlowInputDataType.js";
|
|
20
|
+
import { DFlowInputDefault as j } from "../d-flow-input/DFlowInputDefault.js";
|
|
21
|
+
const W = (s) => {
|
|
22
|
+
const {
|
|
23
|
+
instance: n
|
|
24
|
+
} = s, g = d(b), l = d(I), [, y] = w.useTransition(), o = g.getById(n.type?.id), m = {};
|
|
25
|
+
return o?.flowTypeSettings?.forEach((i) => {
|
|
26
|
+
const e = {
|
|
27
|
+
dataType: i.dataType
|
|
28
|
+
}, u = D(e), p = F(e);
|
|
29
|
+
m[i.identifier] = [...u, ...p].sort();
|
|
30
|
+
}), /* @__PURE__ */ T(V, { style: {
|
|
31
|
+
gap: ".7rem",
|
|
32
|
+
flexDirection: "column"
|
|
33
|
+
}, children: [
|
|
34
|
+
o?.inputType ? /* @__PURE__ */ c(x, { onDataTypeChange: (i) => {
|
|
35
|
+
n.inputType = i, l.update();
|
|
36
|
+
}, initialValue: n.inputType || o.inputType, blockingDataType: o.inputType }) : null,
|
|
37
|
+
o?.flowTypeSettings?.map((i) => {
|
|
38
|
+
const e = n.settings?.nodes?.find((t) => t?.flowSettingIdentifier == i.identifier), u = i.names[0]?.content ?? "", p = i?.descriptions[0]?.content ?? "", v = m[i.identifier];
|
|
39
|
+
if (!e) return null;
|
|
40
|
+
const S = (e.value?.__typename === "LiteralValue", typeof e?.value == "object" ? JSON.stringify(e?.value) : e?.value), r = (t) => {
|
|
41
|
+
y(async () => {
|
|
42
|
+
t?.__typename == "LiteralValue" ? await l.setSettingValue(s.instance.id, e.flowSettingIdentifier, t.value) : await l.setSettingValue(s.instance.id, e.flowSettingIdentifier, t);
|
|
43
|
+
});
|
|
44
|
+
}, f = (t) => {
|
|
45
|
+
try {
|
|
46
|
+
const a = JSON.parse(t.target.value);
|
|
47
|
+
if (a.__typename == "LiteralValue") {
|
|
48
|
+
r(a.value);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
r(a);
|
|
52
|
+
} catch {
|
|
53
|
+
r(t.target.value);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
return /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(j, { flowId: void 0, nodeId: void 0, parameterId: void 0, title: u, description: p, clearable: !0, defaultValue: S, onBlur: f, onClear: f, onSuggestionSelect: (t) => {
|
|
57
|
+
r(t.value);
|
|
58
|
+
}, suggestions: h(v) }, JSON.stringify(e.value)) });
|
|
59
|
+
})
|
|
60
|
+
] });
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
W as DFlowTabTrigger
|
|
64
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Flow, Namespace, NamespaceProject } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
export interface DFlowTabsProps {
|
|
4
|
+
flowId: Flow['id'];
|
|
5
|
+
namespaceId: Namespace['id'];
|
|
6
|
+
projectId: NamespaceProject['id'];
|
|
7
|
+
}
|
|
8
|
+
export declare const DFlowTabs: React.FC<DFlowTabsProps>;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { useService as u, useStore as g } from "../../utils/contextStore.js";
|
|
3
|
+
import l from "react";
|
|
4
|
+
import "merge-props";
|
|
5
|
+
import { FileTabsService as S } from "../file-tabs/FileTabs.service.js";
|
|
6
|
+
import { FileTabs as U, FileTabsContent as G, FileTabsList as H, FileTabsTrigger as J } from "../file-tabs/FileTabs.js";
|
|
7
|
+
import { Menu as x, MenuTrigger as w, MenuPortal as C, MenuContent as I, MenuLabel as m, MenuItem as c, MenuSeparator as v } from "../menu/Menu.js";
|
|
8
|
+
import { Button as M } from "../button/Button.js";
|
|
9
|
+
import { IconPlus as K, IconArrowUp as z, IconArrowDown as F, IconCornerDownLeft as L, IconDotsVertical as Q } from "@tabler/icons-react";
|
|
10
|
+
import { DLayout as X } from "../d-layout/DLayout.js";
|
|
11
|
+
import "../d-flow/DFlow.js";
|
|
12
|
+
import { DFlowReactiveService as A } from "../d-flow/DFlow.service.js";
|
|
13
|
+
import "js-md5";
|
|
14
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
15
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
16
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
17
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
18
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
19
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
20
|
+
import { DFlowTypeReactiveService as D } from "../d-flow-type/DFlowType.service.js";
|
|
21
|
+
import { Card as B } from "../card/Card.js";
|
|
22
|
+
import { Flex as n } from "../flex/Flex.js";
|
|
23
|
+
import { Badge as a } from "../badge/Badge.js";
|
|
24
|
+
import { Spacing as W } from "../spacing/Spacing.js";
|
|
25
|
+
const Se = (k) => {
|
|
26
|
+
const {
|
|
27
|
+
flowId: R,
|
|
28
|
+
namespaceId: $,
|
|
29
|
+
projectId: j
|
|
30
|
+
} = k, t = u(S), o = g(S), q = u(A), N = g(A), O = u(D), P = g(D), h = l.useId(), b = l.useMemo(() => q.getById(R, {
|
|
31
|
+
namespaceId: $,
|
|
32
|
+
projectId: j
|
|
33
|
+
}), [N]), p = l.useMemo(() => O.getById(b?.type?.id), [P, b]), T = l.useMemo(() => o.find((r) => r.active)?.id ?? t.getActiveTab()?.id, [o, t]), d = l.useMemo(() => {
|
|
34
|
+
if (p?.id)
|
|
35
|
+
return o.find((r) => r.id === p.id);
|
|
36
|
+
}, [o, p]), y = l.useMemo(() => o.filter((r) => r.show), [o, d]), V = l.useMemo(() => o.filter((r) => !r.show && r.id !== d?.id), [o, d]);
|
|
37
|
+
return l.useEffect(() => {
|
|
38
|
+
setTimeout(() => {
|
|
39
|
+
const s = document.querySelector('[data-id="' + h + '"]').querySelector(".file-tabs__list-content"), f = s.querySelector('[data-value="' + t.getActiveTab()?.id + '"]');
|
|
40
|
+
if (s && f) {
|
|
41
|
+
const E = f.offsetLeft + f.offsetWidth / 2 - s.offsetWidth / 2;
|
|
42
|
+
s.scrollLeft = 0, s.scrollBy({
|
|
43
|
+
left: E,
|
|
44
|
+
behavior: "smooth"
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}, 0);
|
|
48
|
+
}, [T, h]), /* @__PURE__ */ e(U, { "data-id": h, value: T, onValueChange: (r) => {
|
|
49
|
+
t.activateTab(r);
|
|
50
|
+
}, children: /* @__PURE__ */ e(X, { topContent: /* @__PURE__ */ e(H, { controls: /* @__PURE__ */ i(n, { children: [
|
|
51
|
+
/* @__PURE__ */ i(x, { children: [
|
|
52
|
+
/* @__PURE__ */ e(w, { asChild: !0, children: /* @__PURE__ */ e(M, { variant: "none", paddingSize: "xxs", color: "primary", children: /* @__PURE__ */ e(K, { size: 12 }) }) }),
|
|
53
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ i(I, { align: "start", sideOffset: 8, color: "secondary", children: [
|
|
54
|
+
/* @__PURE__ */ i(B, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: {
|
|
55
|
+
borderWidth: "2px"
|
|
56
|
+
}, children: [
|
|
57
|
+
/* @__PURE__ */ e(m, { children: "Starting Node" }),
|
|
58
|
+
d && /* @__PURE__ */ e(c, { onSelect: () => t.activateTab(d.id), children: d.children }),
|
|
59
|
+
/* @__PURE__ */ e(v, {}),
|
|
60
|
+
/* @__PURE__ */ e(m, { children: "Opened Nodes" }),
|
|
61
|
+
y.map((r) => /* @__PURE__ */ e(c, { onSelect: () => {
|
|
62
|
+
t.activateTab(r.id);
|
|
63
|
+
}, children: r.children }, `menu-${r.id}`)),
|
|
64
|
+
/* @__PURE__ */ e(v, {}),
|
|
65
|
+
/* @__PURE__ */ e(m, { children: "Available Node" }),
|
|
66
|
+
V.map((r) => /* @__PURE__ */ e(c, { onSelect: () => {
|
|
67
|
+
t.activateTab(r.id);
|
|
68
|
+
}, children: r.children }, `menu-${r.id}`))
|
|
69
|
+
] }),
|
|
70
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ i(n, { style: {
|
|
71
|
+
gap: ".35rem"
|
|
72
|
+
}, children: [
|
|
73
|
+
/* @__PURE__ */ i(n, { align: "center", style: {
|
|
74
|
+
gap: "0.35rem"
|
|
75
|
+
}, children: [
|
|
76
|
+
/* @__PURE__ */ i(n, { children: [
|
|
77
|
+
/* @__PURE__ */ e(a, { border: !0, children: /* @__PURE__ */ e(z, { size: 12 }) }),
|
|
78
|
+
/* @__PURE__ */ e(a, { border: !0, children: /* @__PURE__ */ e(F, { size: 12 }) })
|
|
79
|
+
] }),
|
|
80
|
+
"move"
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ e(W, { spacing: "xxs" }),
|
|
83
|
+
/* @__PURE__ */ i(n, { align: "center", style: {
|
|
84
|
+
gap: ".35rem"
|
|
85
|
+
}, children: [
|
|
86
|
+
/* @__PURE__ */ e(a, { border: !0, children: /* @__PURE__ */ e(L, { size: 12 }) }),
|
|
87
|
+
"select"
|
|
88
|
+
] })
|
|
89
|
+
] }) })
|
|
90
|
+
] }) })
|
|
91
|
+
] }),
|
|
92
|
+
/* @__PURE__ */ i(x, { children: [
|
|
93
|
+
/* @__PURE__ */ e(w, { asChild: !0, children: /* @__PURE__ */ e(M, { variant: "none", paddingSize: "xxs", color: "primary", children: /* @__PURE__ */ e(Q, { size: 12 }) }) }),
|
|
94
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ i(I, { align: "end", sideOffset: 8, color: "secondary", children: [
|
|
95
|
+
/* @__PURE__ */ i(B, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: {
|
|
96
|
+
borderWidth: "2px"
|
|
97
|
+
}, children: [
|
|
98
|
+
/* @__PURE__ */ e(c, { onClick: () => t.clearAll(), children: "Close all tabs" }),
|
|
99
|
+
/* @__PURE__ */ e(c, { onClick: () => t.clearWithoutActive(), children: "Close other tabs" }),
|
|
100
|
+
/* @__PURE__ */ e(v, {}),
|
|
101
|
+
/* @__PURE__ */ e(c, { onClick: () => t.clearLeft(), children: "Close all tabs to left" }),
|
|
102
|
+
/* @__PURE__ */ e(c, { onClick: () => t.clearRight(), children: "Close all tabs to right" })
|
|
103
|
+
] }),
|
|
104
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ i(n, { style: {
|
|
105
|
+
gap: ".35rem"
|
|
106
|
+
}, children: [
|
|
107
|
+
/* @__PURE__ */ i(n, { align: "center", style: {
|
|
108
|
+
gap: "0.35rem"
|
|
109
|
+
}, children: [
|
|
110
|
+
/* @__PURE__ */ i(n, { children: [
|
|
111
|
+
/* @__PURE__ */ e(a, { border: !0, children: /* @__PURE__ */ e(z, { size: 12 }) }),
|
|
112
|
+
/* @__PURE__ */ e(a, { border: !0, children: /* @__PURE__ */ e(F, { size: 12 }) })
|
|
113
|
+
] }),
|
|
114
|
+
"move"
|
|
115
|
+
] }),
|
|
116
|
+
/* @__PURE__ */ e(W, { spacing: "xxs" }),
|
|
117
|
+
/* @__PURE__ */ i(n, { align: "center", style: {
|
|
118
|
+
gap: ".35rem"
|
|
119
|
+
}, children: [
|
|
120
|
+
/* @__PURE__ */ e(a, { border: !0, children: /* @__PURE__ */ e(L, { size: 12 }) }),
|
|
121
|
+
"select"
|
|
122
|
+
] })
|
|
123
|
+
] }) })
|
|
124
|
+
] }) })
|
|
125
|
+
] })
|
|
126
|
+
] }), children: y.map((r, s) => r.show && /* @__PURE__ */ e(J, { closable: r.closeable, value: r.id, onClose: () => {
|
|
127
|
+
t.removeTabById(r.id);
|
|
128
|
+
}, children: r.children }, `trigger-${r.id}`)) }), children: o.map((r) => /* @__PURE__ */ e(G, { value: r.id, children: r.content }, `content-${r.id}`)) }) });
|
|
129
|
+
};
|
|
130
|
+
export {
|
|
131
|
+
Se as DFlowTabs
|
|
132
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DFlowTabs';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Code0Component } from '../../utils';
|
|
3
|
+
import { Flow, FlowType, Namespace, NamespaceProject, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
import { DFlowFolderContextMenuGroupData, DFlowFolderContextMenuItemData } from './DFlowFolderContextMenu';
|
|
5
|
+
export interface DFlowFolderProps {
|
|
6
|
+
activeFlowId: Scalars["FlowID"]["output"];
|
|
7
|
+
namespaceId: Namespace['id'];
|
|
8
|
+
projectId: NamespaceProject['id'];
|
|
9
|
+
onRename?: (contextData: DFlowFolderContextMenuGroupData | DFlowFolderContextMenuItemData) => void;
|
|
10
|
+
onDelete?: (contextData: DFlowFolderContextMenuGroupData | DFlowFolderContextMenuItemData) => void;
|
|
11
|
+
onCreate?: (type: FlowType['id']) => void;
|
|
12
|
+
onSelect?: (flow: Flow) => void;
|
|
13
|
+
}
|
|
14
|
+
export type DFlowFolderHandle = {
|
|
15
|
+
openAll: () => void;
|
|
16
|
+
closeAll: () => void;
|
|
17
|
+
openActivePath: () => void;
|
|
18
|
+
};
|
|
19
|
+
export interface DFlowFolderGroupProps extends DFlowFolderProps, Omit<Code0Component<HTMLDivElement>, "onSelect"> {
|
|
20
|
+
name: string;
|
|
21
|
+
children: React.ReactElement<DFlowFolderItemProps> | React.ReactElement<DFlowFolderItemProps>[] | React.ReactElement<DFlowFolderGroupProps> | React.ReactElement<DFlowFolderGroupProps>[];
|
|
22
|
+
defaultOpen?: boolean;
|
|
23
|
+
flows: Flow[];
|
|
24
|
+
}
|
|
25
|
+
export interface DFlowFolderItemProps extends DFlowFolderProps, Omit<Code0Component<HTMLDivElement>, "onSelect"> {
|
|
26
|
+
name: string;
|
|
27
|
+
path: string;
|
|
28
|
+
active?: boolean;
|
|
29
|
+
flow: Flow;
|
|
30
|
+
}
|
|
31
|
+
export declare const DFlowFolder: React.ForwardRefExoticComponent<DFlowFolderProps & React.RefAttributes<DFlowFolderHandle>>;
|
|
32
|
+
export declare const DFlowFolderGroup: React.FC<DFlowFolderGroupProps>;
|
|
33
|
+
export declare const DFlowFolderItem: React.FC<DFlowFolderItemProps>;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { jsxs as R, Fragment as B, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { c as E } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import '../../assets/components/d-flow-folder/DFlowFolder.style.css';/* empty css */
|
|
4
|
+
import p from "react";
|
|
5
|
+
import { useService as V, useStore as q } from "../../utils/contextStore.js";
|
|
6
|
+
import { mergeCode0Props as N } from "../../utils/utils.js";
|
|
7
|
+
import { IconFolderOpen as J, IconFolderFilled as K, IconChevronDown as L, IconChevronRight as Q, IconFile as U } from "@tabler/icons-react";
|
|
8
|
+
import "../d-flow/DFlow.js";
|
|
9
|
+
import { DFlowReactiveService as z } from "../d-flow/DFlow.service.js";
|
|
10
|
+
import { hashToColor as W } from "../d-flow/DFlow.util.js";
|
|
11
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
12
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
13
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
14
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
15
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
16
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
17
|
+
import { ScrollArea as X, ScrollAreaViewport as Y, ScrollAreaScrollbar as Z, ScrollAreaThumb as ee } from "../scroll-area/ScrollArea.js";
|
|
18
|
+
import { Flex as T } from "../flex/Flex.js";
|
|
19
|
+
import { Text as G } from "../text/Text.js";
|
|
20
|
+
import { Button as te } from "../button/Button.js";
|
|
21
|
+
import { DFlowFolderContextMenu as H } from "./DFlowFolderContextMenu.js";
|
|
22
|
+
const Oe = p.forwardRef((I, e) => {
|
|
23
|
+
const {
|
|
24
|
+
activeFlowId: s,
|
|
25
|
+
namespaceId: d,
|
|
26
|
+
projectId: v
|
|
27
|
+
} = I, D = V(z), h = q(z), u = (l) => l.replace(/^\/+|\/+$/g, "").split("/").filter(Boolean), f = p.useMemo(() => (D.values?.({
|
|
28
|
+
namespaceId: d,
|
|
29
|
+
projectId: v
|
|
30
|
+
}) ?? []).filter((r) => !!r?.name), [h]), w = p.useMemo(() => {
|
|
31
|
+
const l = f.find((r) => r.id === s);
|
|
32
|
+
return l?.name ? u(l.name) : [];
|
|
33
|
+
}, [f, s]), C = p.useMemo(() => {
|
|
34
|
+
const l = {
|
|
35
|
+
name: "",
|
|
36
|
+
path: "",
|
|
37
|
+
children: {}
|
|
38
|
+
};
|
|
39
|
+
for (const r of f) {
|
|
40
|
+
const c = u(r.name);
|
|
41
|
+
if (c.length === 0) continue;
|
|
42
|
+
let o = l, t = "";
|
|
43
|
+
for (let i = 0; i < c.length; i++) {
|
|
44
|
+
const n = c[i];
|
|
45
|
+
t = t ? `${t}/${n}` : n, i === c.length - 1 ? o.children[n] ? o.children[n].flow = r : o.children[n] = {
|
|
46
|
+
name: n,
|
|
47
|
+
path: t,
|
|
48
|
+
children: {},
|
|
49
|
+
flow: r
|
|
50
|
+
} : (o.children[n] || (o.children[n] = {
|
|
51
|
+
name: n,
|
|
52
|
+
path: t,
|
|
53
|
+
children: {}
|
|
54
|
+
}), o = o.children[n]);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return l;
|
|
58
|
+
}, [f]), P = p.useCallback((l) => l ? l.split("/").filter(Boolean).every((c, o) => w[o] === c) : !1, [w]), [S, _] = p.useState("default"), [m, F] = p.useState(0), g = p.useCallback(() => {
|
|
59
|
+
_("allOpen"), F((l) => l + 1);
|
|
60
|
+
}, []), k = p.useCallback(() => {
|
|
61
|
+
_("allClosed"), F((l) => l + 1);
|
|
62
|
+
}, []), y = p.useCallback(() => {
|
|
63
|
+
_("activePath"), F((l) => l + 1);
|
|
64
|
+
}, []);
|
|
65
|
+
p.useImperativeHandle(e, () => ({
|
|
66
|
+
openAll: g,
|
|
67
|
+
closeAll: k,
|
|
68
|
+
openActivePath: y
|
|
69
|
+
}), [g, k, y]);
|
|
70
|
+
const b = p.useCallback((l) => S === "allOpen" ? !0 : S === "allClosed" ? !1 : P(l), [P, S]), x = p.useCallback((l) => {
|
|
71
|
+
const r = Object.values(l), c = r.filter((t) => !t.flow), o = r.filter((t) => !!t.flow);
|
|
72
|
+
return c.sort((t, i) => t.name.localeCompare(i.name)), o.sort((t, i) => t.name.localeCompare(i.name)), /* @__PURE__ */ R(B, { children: [
|
|
73
|
+
c.map((t) => /* @__PURE__ */ a(le, { name: t.name, flows: Object.values(t.children).map((i) => i.flow), defaultOpen: b(t.path), ...I, children: x(t.children) }, `${t.path}-${m}`)),
|
|
74
|
+
o.map((t) => /* @__PURE__ */ a(oe, { name: t.name, path: t.path, flow: t.flow, active: t.flow.id === s, "data-flow-id": t.flow.id ?? void 0, ...I }, t.flow.id ?? t.path))
|
|
75
|
+
] });
|
|
76
|
+
}, [s, b, m]);
|
|
77
|
+
return /* @__PURE__ */ R(X, { h: "100%", children: [
|
|
78
|
+
/* @__PURE__ */ a(Y, { children: /* @__PURE__ */ a("div", { className: "d-folder__root", children: x(C.children) }) }),
|
|
79
|
+
/* @__PURE__ */ a(Z, { orientation: "vertical", children: /* @__PURE__ */ a(ee, {}) })
|
|
80
|
+
] });
|
|
81
|
+
}), le = (I) => {
|
|
82
|
+
const e = E.c(37), {
|
|
83
|
+
name: s,
|
|
84
|
+
flows: d,
|
|
85
|
+
defaultOpen: v,
|
|
86
|
+
children: D,
|
|
87
|
+
onCreate: h,
|
|
88
|
+
onDelete: u,
|
|
89
|
+
onRename: f,
|
|
90
|
+
activeFlowId: w,
|
|
91
|
+
namespaceId: C,
|
|
92
|
+
projectId: P,
|
|
93
|
+
...S
|
|
94
|
+
} = I, _ = v === void 0 ? !1 : v, [m, F] = p.useState(_);
|
|
95
|
+
let g;
|
|
96
|
+
e[0] !== w || e[1] !== C || e[2] !== h || e[3] !== u || e[4] !== f || e[5] !== P ? (g = {
|
|
97
|
+
onCreate: h,
|
|
98
|
+
onDelete: u,
|
|
99
|
+
onRename: f,
|
|
100
|
+
activeFlowId: w,
|
|
101
|
+
namespaceId: C,
|
|
102
|
+
projectId: P
|
|
103
|
+
}, e[0] = w, e[1] = C, e[2] = h, e[3] = u, e[4] = f, e[5] = P, e[6] = g) : g = e[6];
|
|
104
|
+
const k = g, y = H;
|
|
105
|
+
let b;
|
|
106
|
+
e[7] !== d || e[8] !== s ? (b = {
|
|
107
|
+
name: s,
|
|
108
|
+
flow: d,
|
|
109
|
+
type: "folder"
|
|
110
|
+
}, e[7] = d, e[8] = s, e[9] = b) : b = e[9];
|
|
111
|
+
let x;
|
|
112
|
+
e[10] === Symbol.for("react.memo_cache_sentinel") ? (x = () => F(ne), e[10] = x) : x = e[10];
|
|
113
|
+
const l = N("d-folder", S);
|
|
114
|
+
let r;
|
|
115
|
+
e[11] === Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
116
|
+
gap: "0.35rem"
|
|
117
|
+
}, e[11] = r) : r = e[11];
|
|
118
|
+
let c;
|
|
119
|
+
e[12] !== m ? (c = m ? /* @__PURE__ */ a(J, { size: 12 }) : /* @__PURE__ */ a(K, { size: 12 }), e[12] = m, e[13] = c) : c = e[13];
|
|
120
|
+
let o;
|
|
121
|
+
e[14] !== s ? (o = /* @__PURE__ */ a(G, { children: s }), e[14] = s, e[15] = o) : o = e[15];
|
|
122
|
+
let t;
|
|
123
|
+
e[16] !== c || e[17] !== o ? (t = /* @__PURE__ */ R(T, { align: "center", style: r, children: [
|
|
124
|
+
c,
|
|
125
|
+
o
|
|
126
|
+
] }), e[16] = c, e[17] = o, e[18] = t) : t = e[18];
|
|
127
|
+
let i;
|
|
128
|
+
e[19] === Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
129
|
+
gap: "0.35rem"
|
|
130
|
+
}, e[19] = i) : i = e[19];
|
|
131
|
+
let n;
|
|
132
|
+
e[20] !== m ? (n = /* @__PURE__ */ a(T, { align: "center", style: i, children: /* @__PURE__ */ a(te, { p: "0", variant: "none", children: m ? /* @__PURE__ */ a(L, { size: 12 }) : /* @__PURE__ */ a(Q, { size: 12 }) }) }), e[20] = m, e[21] = n) : n = e[21];
|
|
133
|
+
let A;
|
|
134
|
+
e[22] !== n || e[23] !== x || e[24] !== l || e[25] !== t ? (A = /* @__PURE__ */ R("div", { onClick: x, ...l, children: [
|
|
135
|
+
t,
|
|
136
|
+
n
|
|
137
|
+
] }), e[22] = n, e[23] = x, e[24] = l, e[25] = t, e[26] = A) : A = e[26];
|
|
138
|
+
let O;
|
|
139
|
+
e[27] !== y || e[28] !== k || e[29] !== A || e[30] !== b ? (O = /* @__PURE__ */ a(y, { contextData: b, ...k, children: A }), e[27] = y, e[28] = k, e[29] = A, e[30] = b, e[31] = O) : O = e[31];
|
|
140
|
+
const $ = m ? D : null;
|
|
141
|
+
let M;
|
|
142
|
+
e[32] !== $ ? (M = /* @__PURE__ */ a("div", { className: "d-folder__content", children: $ }), e[32] = $, e[33] = M) : M = e[33];
|
|
143
|
+
let j;
|
|
144
|
+
return e[34] !== O || e[35] !== M ? (j = /* @__PURE__ */ R(B, { children: [
|
|
145
|
+
O,
|
|
146
|
+
M
|
|
147
|
+
] }), e[34] = O, e[35] = M, e[36] = j) : j = e[36], j;
|
|
148
|
+
}, oe = (I) => {
|
|
149
|
+
const e = E.c(38);
|
|
150
|
+
let s, d, v, D, h, u, f, w;
|
|
151
|
+
if (e[0] !== I) {
|
|
152
|
+
const {
|
|
153
|
+
name: k,
|
|
154
|
+
path: y,
|
|
155
|
+
flow: b,
|
|
156
|
+
onSelect: x,
|
|
157
|
+
active: l,
|
|
158
|
+
onCreate: r,
|
|
159
|
+
onDelete: c,
|
|
160
|
+
onRename: o,
|
|
161
|
+
activeFlowId: t,
|
|
162
|
+
namespaceId: i,
|
|
163
|
+
projectId: n,
|
|
164
|
+
...A
|
|
165
|
+
} = I;
|
|
166
|
+
v = k, h = y, d = b, D = x;
|
|
167
|
+
let O;
|
|
168
|
+
e[9] !== t || e[10] !== i || e[11] !== r || e[12] !== c || e[13] !== o || e[14] !== n ? (O = {
|
|
169
|
+
onCreate: r,
|
|
170
|
+
onDelete: c,
|
|
171
|
+
onRename: o,
|
|
172
|
+
activeFlowId: t,
|
|
173
|
+
namespaceId: i,
|
|
174
|
+
projectId: n
|
|
175
|
+
}, e[9] = t, e[10] = i, e[11] = r, e[12] = c, e[13] = o, e[14] = n, e[15] = O) : O = e[15];
|
|
176
|
+
const $ = O;
|
|
177
|
+
s = H, e[16] !== d || e[17] !== h ? (f = {
|
|
178
|
+
name: h,
|
|
179
|
+
flow: d,
|
|
180
|
+
type: "item"
|
|
181
|
+
}, e[16] = d, e[17] = h, e[18] = f) : f = e[18], w = $, u = N(`d-folder__item ${l ? "d-folder__item--active" : ""}`, A), e[0] = I, e[1] = s, e[2] = d, e[3] = v, e[4] = D, e[5] = h, e[6] = u, e[7] = f, e[8] = w;
|
|
182
|
+
} else
|
|
183
|
+
s = e[1], d = e[2], v = e[3], D = e[4], h = e[5], u = e[6], f = e[7], w = e[8];
|
|
184
|
+
let C;
|
|
185
|
+
e[19] !== d || e[20] !== D ? (C = () => D?.(d), e[19] = d, e[20] = D, e[21] = C) : C = e[21];
|
|
186
|
+
const P = h + v;
|
|
187
|
+
let S;
|
|
188
|
+
e[22] !== P ? (S = W(P), e[22] = P, e[23] = S) : S = e[23];
|
|
189
|
+
let _;
|
|
190
|
+
e[24] !== S ? (_ = /* @__PURE__ */ a(U, { color: S, size: 12 }), e[24] = S, e[25] = _) : _ = e[25];
|
|
191
|
+
let m;
|
|
192
|
+
e[26] !== v ? (m = /* @__PURE__ */ a(G, { children: v }), e[26] = v, e[27] = m) : m = e[27];
|
|
193
|
+
let F;
|
|
194
|
+
e[28] !== u || e[29] !== C || e[30] !== _ || e[31] !== m ? (F = /* @__PURE__ */ R("div", { ...u, onClick: C, children: [
|
|
195
|
+
_,
|
|
196
|
+
m
|
|
197
|
+
] }), e[28] = u, e[29] = C, e[30] = _, e[31] = m, e[32] = F) : F = e[32];
|
|
198
|
+
let g;
|
|
199
|
+
return e[33] !== s || e[34] !== f || e[35] !== w || e[36] !== F ? (g = /* @__PURE__ */ a(s, { contextData: f, ...w, children: F }), e[33] = s, e[34] = f, e[35] = w, e[36] = F, e[37] = g) : g = e[37], g;
|
|
200
|
+
};
|
|
201
|
+
function ne(I) {
|
|
202
|
+
return !I;
|
|
203
|
+
}
|
|
204
|
+
export {
|
|
205
|
+
Oe as DFlowFolder,
|
|
206
|
+
le as DFlowFolderGroup,
|
|
207
|
+
oe as DFlowFolderItem
|
|
208
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DFlowFolderProps } from './DFlowFolder';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { Flow } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
export interface DFlowFolderContextMenuGroupData {
|
|
5
|
+
name: string;
|
|
6
|
+
flow: Flow[];
|
|
7
|
+
type: "folder";
|
|
8
|
+
}
|
|
9
|
+
export interface DFlowFolderContextMenuItemData {
|
|
10
|
+
name: string;
|
|
11
|
+
flow: Flow;
|
|
12
|
+
type: "item";
|
|
13
|
+
}
|
|
14
|
+
export interface DFlowFolderContextMenuProps extends DFlowFolderProps {
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
contextData: DFlowFolderContextMenuGroupData | DFlowFolderContextMenuItemData;
|
|
17
|
+
}
|
|
18
|
+
export declare const DFlowFolderContextMenu: React.FC<DFlowFolderContextMenuProps>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as e, Fragment as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import h from "react";
|
|
3
|
+
import { ContextMenu as x, ContextMenuTrigger as s, ContextMenuPortal as C, ContextMenuContent as p, ContextMenuSub as S, ContextMenuSubTrigger as f, ContextMenuSubContent as M, ContextMenuItem as r, ContextMenuSeparator as g } from "../context-menu/ContextMenu.js";
|
|
4
|
+
import { Flex as v } from "../flex/Flex.js";
|
|
5
|
+
import { Text as i } from "../text/Text.js";
|
|
6
|
+
import { IconChevronRight as w, IconEdit as D, IconTrash as F } from "@tabler/icons-react";
|
|
7
|
+
import { useService as R, useStore as T } from "../../utils/contextStore.js";
|
|
8
|
+
import "merge-props";
|
|
9
|
+
import { DFlowTypeReactiveService as c } from "../d-flow-type/DFlowType.service.js";
|
|
10
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
11
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
12
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
13
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
14
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
15
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
16
|
+
import "js-md5";
|
|
17
|
+
const K = (t) => {
|
|
18
|
+
const {
|
|
19
|
+
children: l
|
|
20
|
+
} = t, m = R(c), d = T(c), u = h.useMemo(() => m.values(), [d]);
|
|
21
|
+
return /* @__PURE__ */ e(a, { children: /* @__PURE__ */ n(x, { children: [
|
|
22
|
+
/* @__PURE__ */ e(s, { asChild: !0, children: l }),
|
|
23
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ n(S, { children: [
|
|
24
|
+
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ n(v, { align: "center", justify: "space-between", w: "100%", children: [
|
|
25
|
+
/* @__PURE__ */ e(i, { children: "New flow" }),
|
|
26
|
+
/* @__PURE__ */ e(w, { size: 12 })
|
|
27
|
+
] }) }),
|
|
28
|
+
/* @__PURE__ */ e(M, { children: u.map((o) => /* @__PURE__ */ e(r, { onSelect: () => {
|
|
29
|
+
t.onCreate?.(o.id);
|
|
30
|
+
}, children: o.names[0]?.content ?? o.id }, o.id)) }),
|
|
31
|
+
/* @__PURE__ */ e(g, {}),
|
|
32
|
+
/* @__PURE__ */ n(r, { onSelect: () => t.onRename?.(t.contextData), children: [
|
|
33
|
+
/* @__PURE__ */ e(D, { size: 12, color: "purple" }),
|
|
34
|
+
/* @__PURE__ */ e(i, { children: "Rename" })
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ n(r, { onSelect: () => t.onDelete?.(t.contextData), children: [
|
|
37
|
+
/* @__PURE__ */ e(F, { size: 12, color: "red" }),
|
|
38
|
+
/* @__PURE__ */ e(i, { children: "Delete" })
|
|
39
|
+
] })
|
|
40
|
+
] }) }) })
|
|
41
|
+
] }) });
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
K as DFlowFolderContextMenu
|
|
45
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FlowType } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
export interface DFlowFolderCreateDialogProps {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
onOpenChange?: (open: boolean) => void;
|
|
6
|
+
flowTypeId: FlowType['id'];
|
|
7
|
+
onCreate?: (name: string, type: FlowType['id']) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const DFlowFolderCreateDialog: React.FC<DFlowFolderCreateDialogProps>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsx as o, jsxs as w } from "react/jsx-runtime";
|
|
2
|
+
import { c as O } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import y from "react";
|
|
4
|
+
import "@radix-ui/react-checkbox";
|
|
5
|
+
import "merge-props";
|
|
6
|
+
import "@tabler/icons-react";
|
|
7
|
+
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
8
|
+
import "../form/EmailInput.js";
|
|
9
|
+
import "../form/Input.js";
|
|
10
|
+
import "../form/InputSuggestion.js";
|
|
11
|
+
import "../form/NumberInput.js";
|
|
12
|
+
import "../form/PasswordInput.js";
|
|
13
|
+
import "@radix-ui/react-one-time-password-field";
|
|
14
|
+
import "@radix-ui/react-radio-group";
|
|
15
|
+
import "../form/SwitchInput.js";
|
|
16
|
+
import "../form/TextInput.js";
|
|
17
|
+
import { useForm as S } from "../form/useForm.js";
|
|
18
|
+
import { DialogClose as I, DialogPortal as j, DialogContent as v, Dialog as N } from "../dialog/Dialog.js";
|
|
19
|
+
import { Flex as P } from "../flex/Flex.js";
|
|
20
|
+
import { Button as F } from "../button/Button.js";
|
|
21
|
+
import { DFlowFolderItemPathInput as k } from "./DFlowFolderItemPathInput.js";
|
|
22
|
+
const te = (t) => {
|
|
23
|
+
const e = O.c(23), {
|
|
24
|
+
open: m
|
|
25
|
+
} = t, [g, b] = y.useState(m);
|
|
26
|
+
let c;
|
|
27
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
28
|
+
name: ""
|
|
29
|
+
}, e[0] = c) : c = e[0];
|
|
30
|
+
const x = c;
|
|
31
|
+
let s, f;
|
|
32
|
+
e[1] !== m ? (s = () => {
|
|
33
|
+
b(m);
|
|
34
|
+
}, f = [m], e[1] = m, e[2] = s, e[3] = f) : (s = e[2], f = e[3]), y.useEffect(s, f);
|
|
35
|
+
let u;
|
|
36
|
+
e[4] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
37
|
+
name: B
|
|
38
|
+
}, e[4] = u) : u = e[4];
|
|
39
|
+
let p;
|
|
40
|
+
e[5] !== t ? (p = {
|
|
41
|
+
initialValues: x,
|
|
42
|
+
validate: u,
|
|
43
|
+
onSubmit: (_) => {
|
|
44
|
+
t.onCreate?.(_.name, t.flowTypeId), t.onOpenChange?.(!1);
|
|
45
|
+
}
|
|
46
|
+
}, e[5] = t, e[6] = p) : p = e[6];
|
|
47
|
+
const [C, D] = S(p);
|
|
48
|
+
let i;
|
|
49
|
+
e[7] !== t ? (i = (_) => {
|
|
50
|
+
t.onOpenChange?.(_);
|
|
51
|
+
}, e[7] = t, e[8] = i) : i = e[8];
|
|
52
|
+
let l;
|
|
53
|
+
e[9] !== C ? (l = C.getInputProps("name"), e[9] = C, e[10] = l) : l = e[10];
|
|
54
|
+
let n;
|
|
55
|
+
e[11] !== l ? (n = /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(k, { description: "You can choose a name here and only use alphanumeric names.", title: "Name of the flow", ...l }) }), e[11] = l, e[12] = n) : n = e[12];
|
|
56
|
+
let h;
|
|
57
|
+
e[13] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ o(I, { asChild: !0, children: /* @__PURE__ */ o(F, { color: "secondary", children: "No, go back!" }) }), e[13] = h) : h = e[13];
|
|
58
|
+
let r;
|
|
59
|
+
e[14] !== D ? (r = /* @__PURE__ */ w(P, { justify: "space-between", align: "center", children: [
|
|
60
|
+
h,
|
|
61
|
+
/* @__PURE__ */ o(F, { color: "success", onClick: D, children: "Yes, create!" })
|
|
62
|
+
] }), e[14] = D, e[15] = r) : r = e[15];
|
|
63
|
+
let a;
|
|
64
|
+
e[16] !== n || e[17] !== r ? (a = /* @__PURE__ */ o(j, { children: /* @__PURE__ */ w(v, { autoFocus: !0, showCloseButton: !0, title: "Create new flow", children: [
|
|
65
|
+
n,
|
|
66
|
+
r
|
|
67
|
+
] }) }), e[16] = n, e[17] = r, e[18] = a) : a = e[18];
|
|
68
|
+
let d;
|
|
69
|
+
return e[19] !== g || e[20] !== a || e[21] !== i ? (d = /* @__PURE__ */ o(N, { open: g, onOpenChange: i, children: a }), e[19] = g, e[20] = a, e[21] = i, e[22] = d) : d = e[22], d;
|
|
70
|
+
};
|
|
71
|
+
function B(t) {
|
|
72
|
+
return t ? null : "Name is required";
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
te as DFlowFolderCreateDialog
|
|
76
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DFlowFolderContextMenuGroupData, DFlowFolderContextMenuItemData } from './DFlowFolderContextMenu';
|
|
3
|
+
import { Flow } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
export interface DFlowFolderDeleteDialogProps {
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
contextData: DFlowFolderContextMenuGroupData | DFlowFolderContextMenuItemData;
|
|
8
|
+
onDelete?: (flow: Flow) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const DFlowFolderDeleteDialog: React.FC<DFlowFolderDeleteDialogProps>;
|