@code0-tech/pictor 0.0.0-mvp.3 → 0.0.0-mvp.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/compiler-runtime.js +5 -0
- package/dist/_virtual/compiler-runtime2.js +4 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/react-compiler-runtime.development.js +4 -0
- package/dist/_virtual/react-compiler-runtime.production.js +4 -0
- package/dist/_virtual/react-contenteditable.js +7 -0
- package/dist/_virtual/react-contenteditable2.js +4 -0
- package/dist/_virtual/react-dom-server-legacy.browser.development.js +4 -0
- package/dist/_virtual/react-dom-server-legacy.browser.production.js +4 -0
- package/dist/_virtual/react-dom-server.browser.development.js +4 -0
- package/dist/_virtual/react-dom-server.browser.production.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/server.browser.js +5 -0
- package/dist/_virtual/server.browser2.js +4 -0
- package/dist/assets/components/alert/Alert.style.css +1 -0
- package/dist/assets/components/aurora/Aurora.style.css +1 -0
- package/dist/assets/components/avatar/Avatar.style.css +1 -0
- package/dist/assets/components/badge/Badge.style.css +1 -0
- package/dist/assets/{Breadcrumb.css → components/breadcrumb/Breadcrumb.style.css} +1 -1
- package/dist/assets/components/button/Button.style.css +1 -0
- package/dist/assets/components/button-group/ButtonGroup.style.css +1 -0
- package/dist/assets/components/card/Card.style.css +1 -0
- package/dist/assets/components/command/Command.style.css +1 -0
- package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
- package/dist/assets/components/d-flow/DFlow.style.css +1 -0
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
- package/dist/assets/components/d-flow-function/DFlowFunctionDefaultCard.style.css +1 -0
- package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +1 -0
- package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +1 -0
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +1 -0
- package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +1 -0
- package/dist/assets/components/d-layout/DLayout.style.css +1 -0
- package/dist/assets/components/d-resizable/DResizable.style.css +1 -0
- package/dist/assets/components/dialog/Dialog.style.css +1 -0
- package/dist/assets/components/file-tabs/FileTabs.style.css +1 -0
- package/dist/assets/components/form/Input.style.css +1 -0
- package/dist/assets/components/menu/Menu.style.css +1 -0
- package/dist/assets/{ScrollArea.css → components/scroll-area/ScrollArea.style.css} +1 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -0
- package/dist/assets/components/spacing/Spacing.style.css +1 -0
- package/dist/assets/components/tab/Tab.style.css +1 -0
- package/dist/assets/components/text/Text.style.css +1 -0
- package/dist/assets/components/toast/Toast.style.css +1 -0
- package/dist/assets/components/tooltip/Tooltip.style.css +1 -0
- package/dist/assets/{DFlow.css → node_modules/@xyflow/react/dist/style.css} +1 -1
- package/dist/components/alert/Alert.d.ts +7 -0
- package/dist/components/alert/Alert.js +38 -0
- package/dist/components/aurora/Aurora.d.ts +5 -0
- package/dist/components/aurora/Aurora.js +23 -0
- package/dist/components/avatar/Avatar.js +9 -9
- package/dist/components/badge/Badge.d.ts +2 -1
- package/dist/components/badge/Badge.js +58 -17
- package/dist/components/breadcrumb/Breadcrumb.js +16 -28
- package/dist/components/button/Button.d.ts +3 -2
- package/dist/components/button/Button.js +23 -20
- package/dist/components/button-group/ButtonGroup.js +12 -11
- package/dist/components/card/Card.d.ts +2 -1
- package/dist/components/card/Card.js +25 -22
- package/dist/components/card/CardSection.d.ts +1 -0
- package/dist/components/card/CardSection.js +18 -12
- package/dist/components/col/Col.js +9 -8
- package/dist/components/command/Command.js +19 -18
- package/dist/components/container/Container.js +12 -11
- package/dist/components/context-menu/ContextMenu.d.ts +31 -0
- package/dist/components/context-menu/ContextMenu.js +191 -0
- package/dist/components/d-application/DApplication.service.d.ts +5 -0
- package/dist/components/d-application/DApplication.service.js +9 -0
- package/dist/components/d-flow/DFlow.d.ts +7 -3
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +3 -2
- package/dist/components/d-flow/DFlow.edges.hook.js +100 -136
- package/dist/components/d-flow/DFlow.js +313 -258
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +6 -2
- package/dist/components/d-flow/DFlow.nodes.hook.js +102 -121
- package/dist/components/d-flow/DFlow.service.d.ts +17 -7
- package/dist/components/d-flow/DFlow.service.js +132 -7
- package/dist/components/d-flow/DFlow.util.d.ts +4 -0
- package/dist/components/d-flow/DFlow.util.js +63 -0
- package/dist/components/d-flow/{edge/DFlowEdge.d.ts → DFlowEdge.d.ts} +5 -3
- package/dist/components/d-flow/DFlowEdge.js +69 -0
- package/dist/components/d-flow/index.d.ts +1 -10
- package/dist/components/d-flow/index.js +9 -44
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +14 -0
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +96 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +13 -4
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +76 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +1 -1
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +222 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +229 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js +3 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +246 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +10 -0
- package/dist/components/d-flow-file/DFlowTabDefault.d.ts +7 -0
- package/dist/components/d-flow-file/DFlowTabDefault.js +104 -0
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
- package/dist/components/d-flow-file/DFlowTabTrigger.js +64 -0
- package/dist/components/d-flow-file/DFlowTabs.d.ts +8 -0
- package/dist/components/d-flow-file/DFlowTabs.js +132 -0
- package/dist/components/d-flow-file/index.d.ts +1 -0
- package/dist/components/d-flow-file/index.js +4 -0
- package/dist/components/d-flow-folder/DFlowFolder.d.ts +33 -0
- package/dist/components/d-flow-folder/DFlowFolder.js +208 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +45 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +9 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +76 -0
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +10 -0
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +55 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +50 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +10 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
- package/dist/components/d-flow-folder/index.d.ts +4 -0
- package/dist/components/d-flow-folder/index.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +8 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.return.hook.d.ts +2 -2
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +9 -0
- package/dist/components/d-flow-function/DFlowFunction.service.d.ts +11 -0
- package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +24 -9
- package/dist/components/d-flow-function/DFlowFunction.view.js +139 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +117 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.d.ts +13 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.js +68 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts +3 -4
- package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +43 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +78 -0
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
- package/dist/components/d-flow-input/DFlowInputDataType.js +437 -0
- package/dist/components/d-flow-input/DFlowInputDefault.d.ts +10 -0
- package/dist/components/d-flow-input/DFlowInputDefault.js +128 -0
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +7 -0
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +24 -0
- package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +11 -0
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +44 -0
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +11 -0
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +33 -0
- package/dist/components/d-flow-panel/DFlowExport.d.ts +6 -0
- package/dist/components/d-flow-panel/DFlowExport.js +32 -0
- package/dist/components/d-flow-panel/DFlowMiniMap.js +33 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +6 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.js +72 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +4 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +47 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +2 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.js +94 -0
- package/dist/components/d-flow-panel/index.d.ts +5 -0
- package/dist/components/d-flow-panel/index.js +12 -0
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +34 -0
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +50 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +133 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +24 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +14 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +4 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +72 -0
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.js +12 -11
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js +5 -5
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionSearchInput.d.ts +1 -1
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +35 -0
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +44 -0
- package/dist/components/d-flow-suggestion/index.d.ts +1 -0
- package/dist/components/d-flow-suggestion/index.js +4 -0
- package/dist/components/d-flow-type/DFlowType.service.d.ts +11 -0
- package/dist/components/d-flow-type/DFlowType.service.js +12 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +10 -4
- package/dist/components/d-flow-type/DFlowType.view.js +85 -0
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +2 -0
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +18 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +22 -0
- package/dist/components/d-flow-validation/DFlowValidation.js +66 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +58 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.js +8 -0
- package/dist/components/{d-flow/validation → d-flow-validation}/index.js +2 -2
- package/dist/components/d-fullscreen/DFullScreen.d.ts +1 -2
- package/dist/components/d-fullscreen/DFullScreen.js +24 -18
- package/dist/components/d-layout/DLayout.js +27 -26
- package/dist/components/d-license/DNamespaceLicense.service.d.ts +11 -0
- package/dist/components/d-license/DNamespaceLicense.service.js +12 -0
- package/dist/components/d-license/index.d.ts +2 -0
- package/dist/components/d-license/index.js +6 -0
- package/dist/components/d-member/DNamespaceMember.service.d.ts +13 -0
- package/dist/components/d-member/DNamespaceMember.service.js +17 -0
- package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.d.ts +4 -1
- package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.js +16 -11
- package/dist/components/d-member/DNamespaceMemberCard.d.ts +10 -0
- package/dist/components/d-member/DNamespaceMemberCard.js +16 -0
- package/dist/components/d-member/DNamespaceMemberContent.d.ts +10 -0
- package/dist/components/d-member/DNamespaceMemberContent.js +224 -0
- package/dist/components/d-member/DNamespaceMemberList.d.ts +12 -0
- package/dist/components/d-member/DNamespaceMemberList.js +23 -0
- package/dist/components/d-member/index.d.ts +4 -0
- package/dist/components/d-member/index.js +10 -0
- package/dist/components/d-namespace/DNamespace.service.d.ts +1 -1
- package/dist/components/d-namespace/DNamespace.service.js +7 -6
- package/dist/components/d-namespace/index.d.ts +0 -10
- package/dist/components/d-namespace/index.js +4 -33
- package/dist/components/d-organization/DOrganization.service.d.ts +3 -3
- package/dist/components/d-organization/DOrganization.service.js +8 -7
- package/dist/components/d-organization/DOrganization.view.d.ts +4 -1
- package/dist/components/d-organization/DOrganization.view.js +21 -18
- package/dist/components/d-organization/DOrganizationCard.d.ts +4 -3
- package/dist/components/d-organization/DOrganizationCard.js +13 -60
- package/dist/components/d-organization/DOrganizationList.d.ts +10 -0
- package/dist/components/d-organization/DOrganizationList.js +23 -0
- package/dist/components/d-organization/DOrganizationMenu.js +5 -5
- package/dist/components/d-organization/DOrganizatonContent.d.ts +10 -0
- package/dist/components/d-organization/DOrganizatonContent.js +101 -0
- package/dist/components/d-organization/index.d.ts +1 -0
- package/dist/components/d-organization/index.js +30 -10
- package/dist/components/d-project/DNamespaceProject.service.d.ts +12 -0
- package/dist/components/d-project/DNamespaceProject.service.js +12 -0
- package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.d.ts +4 -1
- package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.js +13 -10
- package/dist/components/d-project/DNamespaceProjectCard.d.ts +9 -0
- package/dist/components/d-project/DNamespaceProjectCard.js +17 -0
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +10 -0
- package/dist/components/d-project/DNamespaceProjectContent.js +71 -0
- package/dist/components/d-project/DNamespaceProjectList.d.ts +11 -0
- package/dist/components/d-project/DNamespaceProjectList.js +25 -0
- package/dist/components/d-project/DNamespaceProjectMenu.d.ts +13 -0
- package/dist/components/d-project/DNamespaceProjectMenu.js +57 -0
- package/dist/components/d-project/index.d.ts +5 -0
- package/dist/components/d-project/index.js +26 -0
- package/dist/components/d-resizable/DResizable.d.ts +4 -4
- package/dist/components/d-resizable/DResizable.js +26 -23
- package/dist/components/d-role/DNamespaceRole.service.d.ts +13 -0
- package/dist/components/d-role/DNamespaceRole.service.js +12 -0
- package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.d.ts +4 -1
- package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.js +8 -4
- package/dist/components/d-role/DNamespaceRoleCard.d.ts +11 -0
- package/dist/components/d-role/DNamespaceRoleCard.js +17 -0
- package/dist/components/d-role/DNamespaceRoleContent.d.ts +10 -0
- package/dist/components/d-role/DNamespaceRoleContent.js +162 -0
- package/dist/components/d-role/DNamespaceRoleList.d.ts +12 -0
- package/dist/components/d-role/DNamespaceRoleList.js +24 -0
- package/dist/components/d-role/DNamespaceRolePermissions.d.ts +5 -0
- package/dist/components/d-role/DNamespaceRolePermissions.js +123 -0
- package/dist/components/d-role/index.d.ts +4 -0
- package/dist/components/d-role/index.js +10 -0
- package/dist/components/d-runtime/DRuntime.service.d.ts +5 -2
- package/dist/components/d-runtime/DRuntime.service.js +2 -4
- package/dist/components/d-runtime/DRuntime.view.d.ts +4 -1
- package/dist/components/d-runtime/DRuntime.view.js +6 -3
- package/dist/components/d-runtime/DRuntimeCard.d.ts +9 -0
- package/dist/components/d-runtime/DRuntimeCard.js +18 -0
- package/dist/components/d-runtime/DRuntimeContent.d.ts +9 -0
- package/dist/components/d-runtime/DRuntimeContent.js +45 -0
- package/dist/components/d-runtime/DRuntimeList.d.ts +12 -0
- package/dist/components/d-runtime/DRuntimeList.js +28 -0
- package/dist/components/d-runtime/index.d.ts +2 -0
- package/dist/components/d-runtime/index.js +6 -2
- package/dist/components/d-user/DUser.service.d.ts +3 -4
- package/dist/components/d-user/DUser.service.js +9 -9
- package/dist/components/d-user/DUser.session.hook.d.ts +3 -0
- package/dist/components/d-user/DUser.session.hook.js +16 -0
- package/dist/components/d-user/DUser.view.d.ts +4 -1
- package/dist/components/d-user/DUser.view.js +13 -10
- package/dist/components/d-user/DUserCard.d.ts +8 -0
- package/dist/components/d-user/DUserCard.js +15 -0
- package/dist/components/d-user/DUserContent.d.ts +8 -0
- package/dist/components/d-user/DUserContent.js +84 -0
- package/dist/components/d-user/DUserInput.d.ts +7 -0
- package/dist/components/d-user/DUserInput.js +100 -0
- package/dist/components/d-user/DUserList.d.ts +9 -0
- package/dist/components/d-user/DUserList.js +22 -0
- package/dist/components/d-user/DUserMenu.js +20 -19
- package/dist/components/d-user/index.d.ts +4 -0
- package/dist/components/d-user/index.js +17 -8
- package/dist/components/dialog/Dialog.d.ts +2 -1
- package/dist/components/dialog/Dialog.js +69 -60
- package/dist/components/file-tabs/FileTabs.js +41 -40
- package/dist/components/file-tabs/FileTabs.service.d.ts +5 -1
- package/dist/components/file-tabs/FileTabs.service.js +74 -26
- package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
- package/dist/components/flex/Flex.js +2 -2
- package/dist/components/form/CheckboxInput.js +62 -53
- package/dist/components/form/EmailInput.js +11 -10
- package/dist/components/form/Input.d.ts +18 -5
- package/dist/components/form/Input.js +333 -139
- package/dist/components/form/Input.syntax.hook.d.ts +10 -0
- package/dist/components/form/Input.syntax.hook.js +14 -0
- package/dist/components/form/Input.utils.d.ts +10 -0
- package/dist/components/form/Input.utils.js +38 -0
- package/dist/components/form/InputContentEditable.hook.d.ts +40 -0
- package/dist/components/form/InputContentEditable.hook.js +471 -0
- package/dist/components/form/InputDescription.js +1 -1
- package/dist/components/form/InputLabel.js +1 -1
- package/dist/components/form/InputMessage.js +1 -1
- package/dist/components/form/InputSuggestion.d.ts +16 -8
- package/dist/components/form/InputSuggestion.js +189 -73
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +11 -10
- package/dist/components/form/PinInput.js +2 -2
- package/dist/components/form/RadioGroup.js +2 -2
- package/dist/components/form/RadioInput.js +2 -2
- package/dist/components/form/SwitchInput.js +7 -7
- package/dist/components/form/TextInput.js +12 -11
- package/dist/components/form/index.js +26 -27
- package/dist/components/form/useForm.d.ts +3 -1
- package/dist/components/form/useForm.js +53 -33
- package/dist/components/menu/Menu.d.ts +7 -3
- package/dist/components/menu/Menu.js +24 -24
- package/dist/components/quote/Quote.js +32 -36
- package/dist/components/row/Row.js +10 -9
- package/dist/components/scroll-area/ScrollArea.js +18 -17
- package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
- package/dist/components/segmented-control/SegmentedControl.js +19 -16
- package/dist/components/spacing/Spacing.d.ts +6 -0
- package/dist/components/spacing/Spacing.js +23 -0
- package/dist/components/tab/Tab.d.ts +11 -0
- package/dist/components/tab/Tab.js +40 -0
- package/dist/components/text/Text.js +2 -2
- package/dist/components/toast/Toast.d.ts +13 -0
- package/dist/components/toast/Toast.js +62 -0
- package/dist/components/tooltip/Tooltip.js +36 -35
- package/dist/index.d.ts +17 -0
- package/dist/index.js +264 -216
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/fast-deep-equal/index.js +31 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/object-assign/index.js +49 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
- package/dist/node_modules/prop-types/index.js +17 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +87 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +70 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +14 -0
- package/dist/node_modules/react/compiler-runtime.js +10 -0
- package/dist/node_modules/react-contenteditable/lib/react-contenteditable.js +132 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +6235 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +4096 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +6753 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +4645 -0
- package/dist/node_modules/react-dom/server.browser.js +15 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/dist/utils/arrayService.d.ts +2 -2
- package/dist/utils/contextStore.js +1 -1
- package/dist/utils/generics.d.ts +7 -6
- package/dist/utils/generics.js +136 -124
- package/dist/utils/index.js +22 -21
- package/dist/utils/inspection.d.ts +4 -2
- package/dist/utils/inspection.js +27 -2
- package/dist/utils/objectStore.js +15 -15
- package/dist/utils/reactiveArrayService.d.ts +3 -3
- package/dist/utils/reactiveArrayService.js +53 -43
- package/dist/utils/types.d.ts +2 -2
- package/package.json +38 -33
- package/dist/DFlowDataType.service-Dz8pQUeO.js +0 -793
- package/dist/assets/Avatar.css +0 -1
- package/dist/assets/Badge.css +0 -1
- package/dist/assets/Button.css +0 -1
- package/dist/assets/ButtonGroup.css +0 -1
- package/dist/assets/Card.css +0 -1
- package/dist/assets/Command.css +0 -1
- package/dist/assets/DFlowFolder.css +0 -1
- package/dist/assets/DFlowFunctionDefaultCard.css +0 -1
- package/dist/assets/DFlowInputDataType.css +0 -1
- package/dist/assets/DFlowMiniMap.css +0 -1
- package/dist/assets/DFlowSuggestionSearchInput.css +0 -1
- package/dist/assets/DFlowValidation.css +0 -1
- package/dist/assets/DLayout.css +0 -1
- package/dist/assets/DResizable.css +0 -1
- package/dist/assets/Dialog.css +0 -1
- package/dist/assets/FileTabs.css +0 -1
- package/dist/assets/Input.css +0 -1
- package/dist/assets/Menu.css +0 -1
- package/dist/assets/SegmentedControl.css +0 -1
- package/dist/assets/Text.css +0 -1
- package/dist/assets/Tooltip.css +0 -1
- package/dist/compiler-runtime-BNHg76kC.js +0 -36
- package/dist/components/d-flow/DFlow.view.d.ts +0 -109
- package/dist/components/d-flow/DFlow.view.js +0 -213
- package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
- package/dist/components/d-flow/control/DFlowControl.js +0 -77
- package/dist/components/d-flow/control/index.d.ts +0 -1
- package/dist/components/d-flow/control/index.js +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
- package/dist/components/d-flow/data-type/DFlowDataType.service.js +0 -7
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -6
- package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -6
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -6
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -7
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.js +0 -8
- package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
- package/dist/components/d-flow/folder/DFlowFolder.d.ts +0 -19
- package/dist/components/d-flow/folder/DFlowFolder.js +0 -118
- package/dist/components/d-flow/folder/index.d.ts +0 -1
- package/dist/components/d-flow/folder/index.js +0 -6
- package/dist/components/d-flow/function/DFlowFunction.input.hook.js +0 -9
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
- package/dist/components/d-flow/function/DFlowFunction.service.d.ts +0 -6
- package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -75
- package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
- package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -97
- package/dist/components/d-flow/input/DFlowInputDataType.js +0 -422
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -21
- package/dist/components/d-flow/minimap/index.d.ts +0 -1
- package/dist/components/d-flow/minimap/index.js +0 -4
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.d.ts +0 -33
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -151
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -21
- package/dist/components/d-flow/suggestion/index.d.ts +0 -2
- package/dist/components/d-flow/suggestion/index.js +0 -7
- package/dist/components/d-flow/tab/DFlowTabDefault.d.ts +0 -11
- package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -97
- package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
- package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
- package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
- package/dist/components/d-flow/type/DFlowType.service.d.ts +0 -6
- package/dist/components/d-flow/type/DFlowType.service.js +0 -9
- package/dist/components/d-flow/type/DFlowType.view.js +0 -69
- package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
- package/dist/components/d-flow/validation/DFlowValidation.js +0 -59
- package/dist/components/d-namespace/license/DNamespaceLicense.service.d.ts +0 -8
- package/dist/components/d-namespace/license/DNamespaceLicense.service.js +0 -11
- package/dist/components/d-namespace/member/DNamespaceMember.service.d.ts +0 -9
- package/dist/components/d-namespace/member/DNamespaceMember.service.js +0 -11
- package/dist/components/d-namespace/project/DNamespaceProject.service.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProject.service.js +0 -11
- package/dist/components/d-namespace/project/DNamespaceProjectCard.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProjectCard.js +0 -57
- package/dist/components/d-namespace/project/DNamespaceProjectMenu.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProjectMenu.js +0 -18
- package/dist/components/d-namespace/role/DNamespaceRole.service.d.ts +0 -10
- package/dist/components/d-namespace/role/DNamespaceRole.service.js +0 -11
- /package/dist/assets/{Col.css → components/col/Col.style.css} +0 -0
- /package/dist/assets/{Container.css → components/container/Container.style.css} +0 -0
- /package/dist/assets/{DFullScreen.css → components/d-fullscreen/DFullScreen.style.css} +0 -0
- /package/dist/assets/{Flex.css → components/flex/Flex.style.css} +0 -0
- /package/dist/assets/{Quote.css → components/quote/Quote.style.css} +0 -0
- /package/dist/assets/{Row.css → components/row/Row.style.css} +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
- /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +0 -0
- /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.d.ts +0 -0
- /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.js +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as o, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { c as b } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { DialogClose as x, DialogPortal as v, DialogContent as j, Dialog as F } from "../dialog/Dialog.js";
|
|
4
|
+
import { Text as g } from "../text/Text.js";
|
|
5
|
+
import { Badge as R } from "../badge/Badge.js";
|
|
6
|
+
import { Flex as S } from "../flex/Flex.js";
|
|
7
|
+
import { Button as w } from "../button/Button.js";
|
|
8
|
+
import B from "react";
|
|
9
|
+
const Y = (t) => {
|
|
10
|
+
const e = b.c(18), {
|
|
11
|
+
open: _
|
|
12
|
+
} = t, [s, C] = B.useState(_);
|
|
13
|
+
let a;
|
|
14
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (a = (u) => C(u), e[0] = a) : a = e[0];
|
|
15
|
+
const d = t.contextData.type == "item" ? "Remove flow" : "Remove folder", h = t.contextData.type == "item" ? "Are you sure you want to remove flow" : "Are you sure you want to remove folder";
|
|
16
|
+
let c;
|
|
17
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
18
|
+
color: "inherit"
|
|
19
|
+
}, e[1] = c) : c = e[1];
|
|
20
|
+
let l;
|
|
21
|
+
e[2] !== t.contextData.name ? (l = /* @__PURE__ */ o(R, { color: "info", children: /* @__PURE__ */ o(g, { size: "md", style: c, children: t.contextData.name }) }), e[2] = t.contextData.name, e[3] = l) : l = e[3];
|
|
22
|
+
const D = t.contextData.type == "folder" ? ", all flows and sub-folders inside " : "";
|
|
23
|
+
let n;
|
|
24
|
+
e[4] !== h || e[5] !== l || e[6] !== D ? (n = /* @__PURE__ */ y(g, { size: "md", hierarchy: "secondary", children: [
|
|
25
|
+
h,
|
|
26
|
+
" ",
|
|
27
|
+
" ",
|
|
28
|
+
l,
|
|
29
|
+
" ",
|
|
30
|
+
" ",
|
|
31
|
+
D,
|
|
32
|
+
"from the this project?"
|
|
33
|
+
] }), e[4] = h, e[5] = l, e[6] = D, e[7] = n) : n = e[7];
|
|
34
|
+
let m;
|
|
35
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ o(x, { asChild: !0, children: /* @__PURE__ */ o(w, { color: "secondary", children: "No, go back!" }) }), e[8] = m) : m = e[8];
|
|
36
|
+
let i;
|
|
37
|
+
e[9] !== t ? (i = /* @__PURE__ */ y(S, { justify: "space-between", align: "center", children: [
|
|
38
|
+
m,
|
|
39
|
+
/* @__PURE__ */ o(x, { asChild: !0, children: /* @__PURE__ */ o(w, { color: "error", onClick: () => {
|
|
40
|
+
t.contextData.type === "item" ? t.onDelete?.(t.contextData.flow) : t.contextData.type === "folder" && t.contextData.flow.forEach((u) => {
|
|
41
|
+
t.onDelete?.(u);
|
|
42
|
+
});
|
|
43
|
+
}, children: "Yes, remove!" }) })
|
|
44
|
+
] }), e[9] = t, e[10] = i) : i = e[10];
|
|
45
|
+
let r;
|
|
46
|
+
e[11] !== d || e[12] !== n || e[13] !== i ? (r = /* @__PURE__ */ o(v, { children: /* @__PURE__ */ y(j, { autoFocus: !0, showCloseButton: !0, title: d, children: [
|
|
47
|
+
n,
|
|
48
|
+
i
|
|
49
|
+
] }) }), e[11] = d, e[12] = n, e[13] = i, e[14] = r) : r = e[14];
|
|
50
|
+
let f;
|
|
51
|
+
return e[15] !== s || e[16] !== r ? (f = /* @__PURE__ */ o(F, { open: s, onOpenChange: a, children: r }), e[15] = s, e[16] = r, e[17] = f) : f = e[17], f;
|
|
52
|
+
};
|
|
53
|
+
export {
|
|
54
|
+
Y as DFlowFolderDeleteDialog
|
|
55
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import "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 { TextInput as c } from "../form/TextInput.js";
|
|
17
|
+
import { Badge as h } from "../badge/Badge.js";
|
|
18
|
+
const R = (e) => {
|
|
19
|
+
const r = l.c(4);
|
|
20
|
+
let t;
|
|
21
|
+
r[0] !== e ? ({
|
|
22
|
+
...t
|
|
23
|
+
} = e, r[0] = e, r[1] = t) : t = r[1];
|
|
24
|
+
const o = a;
|
|
25
|
+
let n;
|
|
26
|
+
return r[2] !== t ? (n = /* @__PURE__ */ p(c, { transformSyntax: o, ...t }), r[2] = t, r[3] = n) : n = r[3], n;
|
|
27
|
+
};
|
|
28
|
+
function f(e) {
|
|
29
|
+
const r = [];
|
|
30
|
+
let t = "";
|
|
31
|
+
return e.split("").forEach((o) => o === "/" ? (t && r.push(t), t = "", r.push("/")) : (t = t + o, t)), t && r.push(t), r;
|
|
32
|
+
}
|
|
33
|
+
function a(e, r) {
|
|
34
|
+
const o = f(e ?? "");
|
|
35
|
+
let n = 0;
|
|
36
|
+
return o.map((m, i) => {
|
|
37
|
+
const s = {
|
|
38
|
+
type: o.length - 1 !== i ? "block" : "text",
|
|
39
|
+
value: m,
|
|
40
|
+
start: n,
|
|
41
|
+
end: n + m.length,
|
|
42
|
+
visualLength: o.length - 1 !== i ? 1 : m.length,
|
|
43
|
+
content: o.length - 1 !== i ? /* @__PURE__ */ p(h, { color: m == "/" ? "warning" : "info", children: m }) : m
|
|
44
|
+
};
|
|
45
|
+
return n = n + m.length, [s];
|
|
46
|
+
}).flat();
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
R as DFlowFolderItemPathInput
|
|
50
|
+
};
|
|
@@ -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 DFlowFolderRenameDialogProps {
|
|
5
|
+
contextData: DFlowFolderContextMenuGroupData | DFlowFolderContextMenuItemData;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
onOpenChange?: (open: boolean) => void;
|
|
8
|
+
onRename?: (flow: Flow, newName: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const DFlowFolderRenameDialog: React.FC<DFlowFolderRenameDialogProps>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as t, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import i from "react";
|
|
3
|
+
import { Dialog as f, DialogPortal as D, DialogContent as g, DialogClose as m } from "../dialog/Dialog.js";
|
|
4
|
+
import { DFlowFolderItemPathInput as x } from "./DFlowFolderItemPathInput.js";
|
|
5
|
+
import { Flex as w } from "../flex/Flex.js";
|
|
6
|
+
import { Button as l } from "../button/Button.js";
|
|
7
|
+
import "../../_virtual/compiler-runtime.js";
|
|
8
|
+
import "@radix-ui/react-checkbox";
|
|
9
|
+
import "merge-props";
|
|
10
|
+
import "@tabler/icons-react";
|
|
11
|
+
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
12
|
+
import "../form/EmailInput.js";
|
|
13
|
+
import "../form/Input.js";
|
|
14
|
+
import "../form/InputSuggestion.js";
|
|
15
|
+
import "../form/NumberInput.js";
|
|
16
|
+
import "../form/PasswordInput.js";
|
|
17
|
+
import "@radix-ui/react-one-time-password-field";
|
|
18
|
+
import "@radix-ui/react-radio-group";
|
|
19
|
+
import "../form/SwitchInput.js";
|
|
20
|
+
import "../form/TextInput.js";
|
|
21
|
+
import { useForm as C } from "../form/useForm.js";
|
|
22
|
+
const G = (e) => {
|
|
23
|
+
const {
|
|
24
|
+
open: a
|
|
25
|
+
} = e, [c, h] = i.useState(a), u = i.useMemo(() => ({
|
|
26
|
+
path: e.contextData.name
|
|
27
|
+
}), []);
|
|
28
|
+
i.useEffect(() => {
|
|
29
|
+
h(a);
|
|
30
|
+
}, [a]);
|
|
31
|
+
const [s, d] = C({
|
|
32
|
+
initialValues: u,
|
|
33
|
+
validate: {
|
|
34
|
+
path: (o) => null
|
|
35
|
+
},
|
|
36
|
+
onSubmit: (o) => {
|
|
37
|
+
e.contextData.type === "item" ? e.onRename?.(e.contextData.flow, o.path) : e.contextData.type === "folder" && e.contextData.flow.forEach((n) => {
|
|
38
|
+
const p = n.name?.replace(e.contextData.name, o.path) ?? n.name;
|
|
39
|
+
e.onRename?.(n, p);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
return /* @__PURE__ */ t(f, { open: c, onOpenChange: (o) => {
|
|
44
|
+
e.onOpenChange?.(o);
|
|
45
|
+
}, children: /* @__PURE__ */ t(D, { children: /* @__PURE__ */ r(g, { autoFocus: !0, showCloseButton: !0, title: e.contextData.type == "item" ? "Rename flow" : "Rename folder", children: [
|
|
46
|
+
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(x, { description: "You can choose a new name here and only use alphanumeric names.", title: e.contextData.type == "item" ? "Name of the flow" : "Name of the folder", ...s.getInputProps("path") }) }),
|
|
47
|
+
/* @__PURE__ */ r(w, { justify: "space-between", align: "center", children: [
|
|
48
|
+
/* @__PURE__ */ t(m, { asChild: !0, children: /* @__PURE__ */ t(l, { color: "secondary", children: "No, go back!" }) }),
|
|
49
|
+
/* @__PURE__ */ t(m, { asChild: !0, children: /* @__PURE__ */ t(l, { color: "success", onClick: d, children: "Yes, save!" }) })
|
|
50
|
+
] })
|
|
51
|
+
] }) }) });
|
|
52
|
+
};
|
|
53
|
+
export {
|
|
54
|
+
G as DFlowFolderRenameDialog
|
|
55
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DFlowFolder as l, DFlowFolderGroup as r, DFlowFolderItem as F } from "./DFlowFolder.js";
|
|
2
|
+
import { DFlowFolderDeleteDialog as t } from "./DFlowFolderDeleteDialog.js";
|
|
3
|
+
import { DFlowFolderCreateDialog as m } from "./DFlowFolderCreateDialog.js";
|
|
4
|
+
import { DFlowFolderRenameDialog as a } from "./DFlowFolderRenameDialog.js";
|
|
5
|
+
export {
|
|
6
|
+
l as DFlowFolder,
|
|
7
|
+
m as DFlowFolderCreateDialog,
|
|
8
|
+
t as DFlowFolderDeleteDialog,
|
|
9
|
+
r as DFlowFolderGroup,
|
|
10
|
+
F as DFlowFolderItem,
|
|
11
|
+
a as DFlowFolderRenameDialog
|
|
12
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FunctionDefinitionView } from './DFlowFunction.view';
|
|
2
|
-
import { DFlowDataTypeReactiveService } from '../data-type
|
|
2
|
+
import { DFlowDataTypeReactiveService } from '../d-flow-data-type';
|
|
3
3
|
import { DataTypeIdentifier, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
4
|
export declare const useInputType: (type: DataTypeIdentifier, func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService: DFlowDataTypeReactiveService) => DataTypeIdentifier | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FunctionDefinitionView } from './DFlowFunction.view';
|
|
2
|
-
import { DFlowDataTypeReactiveService } from '../data-type
|
|
2
|
+
import { DFlowDataTypeReactiveService } from '../d-flow-data-type';
|
|
3
3
|
import { DataTypeIdentifier, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
export declare const useReturnType: (func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService
|
|
4
|
+
export declare const useReturnType: (func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService: DFlowDataTypeReactiveService) => DataTypeIdentifier | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactiveArrayService } from '../../utils';
|
|
2
|
+
import { FunctionDefinitionView } from './DFlowFunction.view';
|
|
3
|
+
import { FunctionDefinition, Namespace, NamespaceProject, Runtime } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
export type DFlowFunctionDependencies = {
|
|
5
|
+
namespaceId: Namespace['id'];
|
|
6
|
+
projectId: NamespaceProject['id'];
|
|
7
|
+
runtimeId: Runtime['id'];
|
|
8
|
+
};
|
|
9
|
+
export declare abstract class DFlowFunctionReactiveService extends ReactiveArrayService<FunctionDefinitionView, DFlowFunctionDependencies> {
|
|
10
|
+
getById(id: FunctionDefinition['id'], dependencies?: DFlowFunctionDependencies): FunctionDefinitionView | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../../utils/contextStore.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { ReactiveArrayService as t } from "../../utils/reactiveArrayService.js";
|
|
4
|
+
import "merge-props";
|
|
5
|
+
class p extends t {
|
|
6
|
+
getById(e, i) {
|
|
7
|
+
return this.values(i).find((r) => r.id === e);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
p as DFlowFunctionReactiveService
|
|
12
|
+
};
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import { DataTypeIdentifier, FunctionDefinition, Maybe, ParameterDefinition, RuntimeFunctionDefinition, Scalars,
|
|
1
|
+
import { DataTypeIdentifier, DataTypeIdentifierConnection, FunctionDefinition, Maybe, ParameterDefinition, RuntimeFunctionDefinition, Scalars, Translation } from '@code0-tech/sagittarius-graphql-types';
|
|
2
2
|
export declare class FunctionDefinitionView {
|
|
3
|
+
/** Name of the function */
|
|
4
|
+
private readonly _aliases?;
|
|
3
5
|
/** Time when this FunctionDefinition was created */
|
|
4
6
|
private readonly _createdAt?;
|
|
7
|
+
/** All data type identifiers used within this Node Function */
|
|
8
|
+
private readonly _dataTypeIdentifiers?;
|
|
5
9
|
/** Deprecation message of the function */
|
|
6
10
|
private readonly _deprecationMessages?;
|
|
7
11
|
/** Description of the function */
|
|
8
12
|
private readonly _descriptions?;
|
|
13
|
+
/** Display message of the function */
|
|
14
|
+
private readonly _displayMessages?;
|
|
9
15
|
/** Documentation of the function */
|
|
10
16
|
private readonly _documentations?;
|
|
11
17
|
/** Generic keys of the function */
|
|
12
18
|
private readonly _genericKeys?;
|
|
13
19
|
/** Global ID of this FunctionDefinition */
|
|
14
20
|
private readonly _id?;
|
|
21
|
+
/** Identifier of the function */
|
|
22
|
+
private readonly _identifier?;
|
|
15
23
|
/** Name of the function */
|
|
16
24
|
private readonly _names?;
|
|
17
25
|
/** Parameters of the function */
|
|
@@ -25,13 +33,17 @@ export declare class FunctionDefinitionView {
|
|
|
25
33
|
/** Time when this FunctionDefinition was last updated */
|
|
26
34
|
private readonly _updatedAt?;
|
|
27
35
|
constructor(object: FunctionDefinition);
|
|
36
|
+
get aliases(): Maybe<Array<Translation>> | undefined;
|
|
28
37
|
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
29
|
-
get
|
|
30
|
-
get
|
|
31
|
-
get
|
|
38
|
+
get dataTypeIdentifiers(): Maybe<DataTypeIdentifierConnection> | undefined;
|
|
39
|
+
get deprecationMessages(): Maybe<Array<Translation>> | undefined;
|
|
40
|
+
get descriptions(): Maybe<Array<Translation>> | undefined;
|
|
41
|
+
get displayMessages(): Maybe<Array<Translation>> | undefined;
|
|
42
|
+
get documentations(): Maybe<Array<Translation>> | undefined;
|
|
32
43
|
get genericKeys(): Maybe<Array<Scalars["String"]["output"]>> | undefined;
|
|
33
44
|
get id(): Maybe<Scalars["FunctionDefinitionID"]["output"]> | undefined;
|
|
34
|
-
get
|
|
45
|
+
get identifier(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
46
|
+
get names(): Maybe<Array<Translation>> | undefined;
|
|
35
47
|
get parameterDefinitions(): Maybe<ParameterDefinitionView[]> | undefined;
|
|
36
48
|
get returnType(): Maybe<DataTypeIdentifier> | undefined;
|
|
37
49
|
get runtimeFunctionDefinition(): Maybe<RuntimeFunctionDefinition> | undefined;
|
|
@@ -50,17 +62,20 @@ export declare class ParameterDefinitionView {
|
|
|
50
62
|
private readonly _documentations?;
|
|
51
63
|
/** Global ID of this ParameterDefinition */
|
|
52
64
|
private readonly _id?;
|
|
65
|
+
/** Identifier of the parameter */
|
|
66
|
+
private readonly _identifier?;
|
|
53
67
|
/** Name of the parameter */
|
|
54
68
|
private readonly _names?;
|
|
55
69
|
/** Time when this ParameterDefinition was last updated */
|
|
56
70
|
private readonly _updatedAt?;
|
|
57
|
-
constructor(object: ParameterDefinition);
|
|
71
|
+
constructor(object: ParameterDefinition, dataTypeIdentifiers: DataTypeIdentifier[]);
|
|
58
72
|
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
59
73
|
get dataTypeIdentifier(): Maybe<DataTypeIdentifier> | undefined;
|
|
60
|
-
get descriptions(): Maybe<
|
|
61
|
-
get documentations(): Maybe<
|
|
74
|
+
get descriptions(): Maybe<Array<Translation>> | undefined;
|
|
75
|
+
get documentations(): Maybe<Array<Translation>> | undefined;
|
|
62
76
|
get id(): Maybe<Scalars["ParameterDefinitionID"]["output"]> | undefined;
|
|
63
|
-
get
|
|
77
|
+
get identifier(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
78
|
+
get names(): Maybe<Array<Translation>> | undefined;
|
|
64
79
|
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
65
80
|
json(): ParameterDefinition;
|
|
66
81
|
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { resolveDataTypeIdentifiers as d, attachDataTypeIdentifiers as n } from "../d-flow/DFlow.util.js";
|
|
2
|
+
function t(e, i, s) {
|
|
3
|
+
return (i = a(i)) in e ? Object.defineProperty(e, i, { value: s, enumerable: !0, configurable: !0, writable: !0 }) : e[i] = s, e;
|
|
4
|
+
}
|
|
5
|
+
function a(e) {
|
|
6
|
+
var i = o(e, "string");
|
|
7
|
+
return typeof i == "symbol" ? i : i + "";
|
|
8
|
+
}
|
|
9
|
+
function o(e, i) {
|
|
10
|
+
if (typeof e != "object" || !e) return e;
|
|
11
|
+
var s = e[Symbol.toPrimitive];
|
|
12
|
+
if (s !== void 0) {
|
|
13
|
+
var r = s.call(e, i);
|
|
14
|
+
if (typeof r != "object") return r;
|
|
15
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
16
|
+
}
|
|
17
|
+
return (i === "string" ? String : Number)(e);
|
|
18
|
+
}
|
|
19
|
+
class u {
|
|
20
|
+
constructor(i) {
|
|
21
|
+
t(this, "_aliases", void 0), t(this, "_createdAt", void 0), t(this, "_dataTypeIdentifiers", void 0), t(this, "_deprecationMessages", void 0), t(this, "_descriptions", void 0), t(this, "_displayMessages", void 0), t(this, "_documentations", void 0), t(this, "_genericKeys", void 0), t(this, "_id", void 0), t(this, "_identifier", void 0), t(this, "_names", void 0), t(this, "_parameterDefinitions", void 0), t(this, "_returnType", void 0), t(this, "_runtimeFunctionDefinition", void 0), t(this, "_throwsError", void 0), t(this, "_updatedAt", void 0);
|
|
22
|
+
const s = d(i.dataTypeIdentifiers?.nodes ?? []);
|
|
23
|
+
this._aliases = i.aliases, this._createdAt = i.createdAt, this._dataTypeIdentifiers = i.dataTypeIdentifiers, this._deprecationMessages = i.deprecationMessages, this._descriptions = i.descriptions, this._displayMessages = i.displayMessages, this._documentations = i.documentations, this._genericKeys = i.genericKeys, this._id = i.id, this._identifier = i.identifier, this._names = i.names, this._parameterDefinitions = i.parameterDefinitions?.nodes?.map((r) => new h(r, s)) ?? void 0, this._returnType = n(s, i.returnType), this._runtimeFunctionDefinition = i.runtimeFunctionDefinition, this._throwsError = i.throwsError, this._updatedAt = i.updatedAt;
|
|
24
|
+
}
|
|
25
|
+
get aliases() {
|
|
26
|
+
return this._aliases;
|
|
27
|
+
}
|
|
28
|
+
get createdAt() {
|
|
29
|
+
return this._createdAt;
|
|
30
|
+
}
|
|
31
|
+
get dataTypeIdentifiers() {
|
|
32
|
+
return this._dataTypeIdentifiers;
|
|
33
|
+
}
|
|
34
|
+
get deprecationMessages() {
|
|
35
|
+
return this._deprecationMessages;
|
|
36
|
+
}
|
|
37
|
+
get descriptions() {
|
|
38
|
+
return this._descriptions;
|
|
39
|
+
}
|
|
40
|
+
get displayMessages() {
|
|
41
|
+
return this._displayMessages;
|
|
42
|
+
}
|
|
43
|
+
get documentations() {
|
|
44
|
+
return this._documentations;
|
|
45
|
+
}
|
|
46
|
+
get genericKeys() {
|
|
47
|
+
return this._genericKeys;
|
|
48
|
+
}
|
|
49
|
+
get id() {
|
|
50
|
+
return this._id;
|
|
51
|
+
}
|
|
52
|
+
get identifier() {
|
|
53
|
+
return this._identifier;
|
|
54
|
+
}
|
|
55
|
+
get names() {
|
|
56
|
+
return this._names;
|
|
57
|
+
}
|
|
58
|
+
get parameterDefinitions() {
|
|
59
|
+
return this._parameterDefinitions;
|
|
60
|
+
}
|
|
61
|
+
get returnType() {
|
|
62
|
+
return this._returnType;
|
|
63
|
+
}
|
|
64
|
+
get runtimeFunctionDefinition() {
|
|
65
|
+
return this._runtimeFunctionDefinition;
|
|
66
|
+
}
|
|
67
|
+
get throwsError() {
|
|
68
|
+
return this._throwsError;
|
|
69
|
+
}
|
|
70
|
+
get updatedAt() {
|
|
71
|
+
return this._updatedAt;
|
|
72
|
+
}
|
|
73
|
+
json() {
|
|
74
|
+
return {
|
|
75
|
+
aliases: this._aliases,
|
|
76
|
+
createdAt: this._createdAt,
|
|
77
|
+
deprecationMessages: this._deprecationMessages,
|
|
78
|
+
displayMessages: this._displayMessages,
|
|
79
|
+
descriptions: this._descriptions,
|
|
80
|
+
documentations: this._documentations,
|
|
81
|
+
genericKeys: this._genericKeys,
|
|
82
|
+
id: this._id,
|
|
83
|
+
identifier: this._identifier,
|
|
84
|
+
names: this._names,
|
|
85
|
+
parameterDefinitions: this._parameterDefinitions ? {
|
|
86
|
+
nodes: this._parameterDefinitions.map((i) => i.json())
|
|
87
|
+
} : void 0,
|
|
88
|
+
returnType: this._returnType,
|
|
89
|
+
runtimeFunctionDefinition: this._runtimeFunctionDefinition,
|
|
90
|
+
throwsError: this._throwsError,
|
|
91
|
+
updatedAt: this._updatedAt,
|
|
92
|
+
dataTypeIdentifiers: this._dataTypeIdentifiers
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
class h {
|
|
97
|
+
constructor(i, s) {
|
|
98
|
+
t(this, "_createdAt", void 0), t(this, "_dataTypeIdentifier", void 0), t(this, "_descriptions", void 0), t(this, "_documentations", void 0), t(this, "_id", void 0), t(this, "_identifier", void 0), t(this, "_names", void 0), t(this, "_updatedAt", void 0), this._createdAt = i.createdAt, this._dataTypeIdentifier = n(s, i.dataTypeIdentifier), this._descriptions = i.descriptions, this._documentations = i.documentations, this._id = i.id, this._identifier = i.identifier, this._names = i.names, this._updatedAt = i.updatedAt;
|
|
99
|
+
}
|
|
100
|
+
get createdAt() {
|
|
101
|
+
return this._createdAt;
|
|
102
|
+
}
|
|
103
|
+
get dataTypeIdentifier() {
|
|
104
|
+
return this._dataTypeIdentifier;
|
|
105
|
+
}
|
|
106
|
+
get descriptions() {
|
|
107
|
+
return this._descriptions;
|
|
108
|
+
}
|
|
109
|
+
get documentations() {
|
|
110
|
+
return this._documentations;
|
|
111
|
+
}
|
|
112
|
+
get id() {
|
|
113
|
+
return this._id;
|
|
114
|
+
}
|
|
115
|
+
get identifier() {
|
|
116
|
+
return this._identifier;
|
|
117
|
+
}
|
|
118
|
+
get names() {
|
|
119
|
+
return this._names;
|
|
120
|
+
}
|
|
121
|
+
get updatedAt() {
|
|
122
|
+
return this._updatedAt;
|
|
123
|
+
}
|
|
124
|
+
json() {
|
|
125
|
+
return {
|
|
126
|
+
createdAt: this._createdAt,
|
|
127
|
+
dataTypeIdentifier: this._dataTypeIdentifier,
|
|
128
|
+
descriptions: this._descriptions,
|
|
129
|
+
documentations: this._documentations,
|
|
130
|
+
id: this._id,
|
|
131
|
+
names: this._names,
|
|
132
|
+
updatedAt: this._updatedAt
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
export {
|
|
137
|
+
u as FunctionDefinitionView,
|
|
138
|
+
h as ParameterDefinitionView
|
|
139
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Code0Component } from '
|
|
1
|
+
import { Code0Component } from '../../utils';
|
|
2
2
|
import { Node, NodeProps } from '@xyflow/react';
|
|
3
|
-
import { NodeFunctionView } from '../DFlow.view';
|
|
4
3
|
import { default as React } from 'react';
|
|
5
|
-
import { Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
import { NodeFunction, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
6
5
|
export interface DFlowFunctionDefaultCardDataProps extends Omit<Code0Component<HTMLDivElement>, "scope"> {
|
|
7
|
-
|
|
6
|
+
nodeId: NodeFunction['id'];
|
|
8
7
|
flowId: Scalars["FlowID"]["output"];
|
|
9
8
|
isParameter: boolean;
|
|
9
|
+
linkingId?: string;
|
|
10
10
|
depth: number;
|
|
11
11
|
scope: number[];
|
|
12
12
|
index: number;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsxs as m, jsx as t, Fragment as E } from "react/jsx-runtime";
|
|
2
|
+
import { useService as v, useStore as w } from "../../utils/contextStore.js";
|
|
3
|
+
import { underlineBySeverity as H } from "../../utils/inspection.js";
|
|
4
|
+
import c, { memo as X } from "react";
|
|
5
|
+
import "merge-props";
|
|
6
|
+
import { useStore as h, useReactFlow as Y, Handle as g, Position as f } from "@xyflow/react";
|
|
7
|
+
import { Card as q } from "../card/Card.js";
|
|
8
|
+
import '../../assets/components/d-flow-function/DFlowFunctionDefaultCard.style.css';/* empty css */
|
|
9
|
+
import { Flex as G } from "../flex/Flex.js";
|
|
10
|
+
import { IconNote as F } from "@tabler/icons-react";
|
|
11
|
+
import { Text as y } from "../text/Text.js";
|
|
12
|
+
import { DFlowFunctionReactiveService as D } from "./DFlowFunction.service.js";
|
|
13
|
+
import { useNodeValidation as J } from "../d-flow-validation/DNodeValidation.hook.js";
|
|
14
|
+
import "../d-flow/DFlow.js";
|
|
15
|
+
import { DFlowReactiveService as T } from "../d-flow/DFlow.service.js";
|
|
16
|
+
import { hashToColor as B } from "../d-flow/DFlow.util.js";
|
|
17
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
18
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
19
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
20
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
21
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
22
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
23
|
+
import { FileTabsService as N } from "../file-tabs/FileTabs.service.js";
|
|
24
|
+
import { DFlowTabDefault as K } from "../d-flow-file/DFlowTabDefault.js";
|
|
25
|
+
import { Badge as O } from "../badge/Badge.js";
|
|
26
|
+
import { DFlowInputLiteralBadge as Q } from "../d-flow-input/DFlowInputLiteralBadge.js";
|
|
27
|
+
import { DFlowInputReferenceBadge as U } from "../d-flow-input/DFlowInputReferenceBadge.js";
|
|
28
|
+
import { DFlowInputNodeBadge as Z } from "../d-flow-input/DFlowInputNodeBadge.js";
|
|
29
|
+
const Be = X((d) => {
|
|
30
|
+
const {
|
|
31
|
+
data: e,
|
|
32
|
+
id: p,
|
|
33
|
+
width: C = 0,
|
|
34
|
+
height: M = 0
|
|
35
|
+
} = d, R = h((o) => o.width), z = h((o) => o.height), P = Y(), u = v(N), I = w(N), V = v(T), b = w(T), k = v(D), S = w(D), r = c.useMemo(() => V.getNodeById(e.flowId, e.nodeId), [b, e]), l = c.useMemo(() => r ? k.getById(r.functionDefinition?.id) : void 0, [S, e, r]), $ = J(e.nodeId, e.flowId), x = c.useMemo(() => I.find((o) => o.active)?.id, [I, u]), A = h((o) => {
|
|
36
|
+
const i = o.nodes.filter((n) => n.parentId === d.parentId);
|
|
37
|
+
let a;
|
|
38
|
+
return i.forEach((n) => {
|
|
39
|
+
const s = n.data?.index ?? 1 / 0, _ = a?.data?.index ?? 1 / 0;
|
|
40
|
+
(!a || s < _) && (a = n);
|
|
41
|
+
}), a;
|
|
42
|
+
}), L = (o) => o.split(/(\$\{[^}]+\})/).filter(Boolean).flatMap((i) => i.startsWith("${") ? [i.slice(2, -1)] : i.split(/(\s*,\s*)/).filter(Boolean).flatMap((a) => a.trim() === "," ? [","] : a.trim() ? [a.trim()] : [])), W = c.useMemo(() => L(l?.displayMessages[0]?.content ?? "").map((o) => {
|
|
43
|
+
const i = r?.parameters?.nodes?.find((s) => l?.parameterDefinitions?.find((j) => j.id == s?.id)?.identifier == o), a = $?.filter((s) => s.parameterId === i?.id), n = a?.length ? H[a[0].type] : {};
|
|
44
|
+
if (i) {
|
|
45
|
+
switch (i?.value?.__typename) {
|
|
46
|
+
case "LiteralValue":
|
|
47
|
+
return /* @__PURE__ */ t("div", { style: {
|
|
48
|
+
...n,
|
|
49
|
+
display: "inline-block"
|
|
50
|
+
}, children: /* @__PURE__ */ t(Q, { value: i.value }) });
|
|
51
|
+
case "ReferenceValue":
|
|
52
|
+
return /* @__PURE__ */ t("div", { style: {
|
|
53
|
+
...n,
|
|
54
|
+
display: "inline-block"
|
|
55
|
+
}, children: /* @__PURE__ */ t(U, { flowId: d.data.flowId, value: i.value }) });
|
|
56
|
+
case "NodeFunctionIdWrapper":
|
|
57
|
+
return /* @__PURE__ */ m("div", { style: {
|
|
58
|
+
...n,
|
|
59
|
+
display: "inline-block"
|
|
60
|
+
}, children: [
|
|
61
|
+
/* @__PURE__ */ t(Z, { value: i.value, flowId: d.data.flowId }),
|
|
62
|
+
/* @__PURE__ */ t(g, { type: "target", position: f.Right, id: `param-${i?.id}`, isConnectable: !1, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target" }, i?.id)
|
|
63
|
+
] });
|
|
64
|
+
}
|
|
65
|
+
return /* @__PURE__ */ t(O, { style: {
|
|
66
|
+
verticalAlign: "middle"
|
|
67
|
+
}, border: !0, children: /* @__PURE__ */ t(y, { size: "sm", children: o }) });
|
|
68
|
+
}
|
|
69
|
+
return " " + String(o) + " ";
|
|
70
|
+
}), [b, S, e, l]);
|
|
71
|
+
return c.useEffect(() => {
|
|
72
|
+
r?.id && u.registerTab({
|
|
73
|
+
id: r.id,
|
|
74
|
+
active: !1,
|
|
75
|
+
closeable: !0,
|
|
76
|
+
children: /* @__PURE__ */ m(E, { children: [
|
|
77
|
+
/* @__PURE__ */ t(F, { color: B(e.nodeId), size: 12 }),
|
|
78
|
+
/* @__PURE__ */ t(y, { size: "sm", children: l?.names[0]?.content })
|
|
79
|
+
] }),
|
|
80
|
+
content: /* @__PURE__ */ t(K, { flowId: d.data.flowId, node: r })
|
|
81
|
+
});
|
|
82
|
+
}, [r?.id, l, e]), /* @__PURE__ */ m(q, { "data-flow-refernce": p, paddingSize: "xs", py: e.isParameter ? "0.35" : void 0, outline: A.id === p, borderColor: x == r?.id ? "info" : void 0, className: x == r?.id ? "d-flow-viewport-default-card--active" : void 0, color: "primary", onClick: () => {
|
|
83
|
+
P.setViewport({
|
|
84
|
+
x: R / 2 + d.positionAbsoluteX * -1 - C / 2,
|
|
85
|
+
y: z / 2 + d.positionAbsoluteY * -1 - M / 2,
|
|
86
|
+
zoom: 1
|
|
87
|
+
}, {
|
|
88
|
+
duration: 250
|
|
89
|
+
}), u.activateTab(r?.id);
|
|
90
|
+
}, style: {
|
|
91
|
+
position: "relative"
|
|
92
|
+
}, children: [
|
|
93
|
+
/* @__PURE__ */ t(g, { isConnectable: !1, draggable: !1, type: "target", className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target", style: {
|
|
94
|
+
...e.isParameter ? {
|
|
95
|
+
right: "2px"
|
|
96
|
+
} : {
|
|
97
|
+
top: "2px"
|
|
98
|
+
}
|
|
99
|
+
}, position: e.isParameter ? f.Right : f.Top }),
|
|
100
|
+
/* @__PURE__ */ t(g, { isConnectable: !1, type: "source", style: {
|
|
101
|
+
...e.isParameter ? {
|
|
102
|
+
left: "2px"
|
|
103
|
+
} : {
|
|
104
|
+
bottom: "2px"
|
|
105
|
+
}
|
|
106
|
+
}, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--source", position: e.isParameter ? f.Left : f.Bottom }),
|
|
107
|
+
/* @__PURE__ */ m(G, { align: "center", style: {
|
|
108
|
+
gap: "0.7rem"
|
|
109
|
+
}, children: [
|
|
110
|
+
/* @__PURE__ */ t(F, { color: B(e.nodeId), size: 16 }),
|
|
111
|
+
/* @__PURE__ */ t(y, { size: "md", children: W })
|
|
112
|
+
] })
|
|
113
|
+
] }, p);
|
|
114
|
+
});
|
|
115
|
+
export {
|
|
116
|
+
Be as DFlowFunctionDefaultCard
|
|
117
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
3
|
+
import { Code0Component } from '../../utils';
|
|
4
|
+
export interface DFlowFunctionGroupCardDataProps extends Omit<Code0Component<HTMLDivElement>, "scope"> {
|
|
5
|
+
isParameter: boolean;
|
|
6
|
+
linkingId: string;
|
|
7
|
+
flowId: string;
|
|
8
|
+
depth: number;
|
|
9
|
+
scope: number[];
|
|
10
|
+
color?: string;
|
|
11
|
+
}
|
|
12
|
+
export type DFlowFunctionGroupCardProps = NodeProps<Node<DFlowFunctionGroupCardDataProps>>;
|
|
13
|
+
export declare const DFlowFunctionGroupCard: React.FC<DFlowFunctionGroupCardProps>;
|