@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,50 @@
|
|
|
1
|
+
import s from "react";
|
|
2
|
+
import { useService as F, useStore as v } from "../../utils/contextStore.js";
|
|
3
|
+
import "merge-props";
|
|
4
|
+
import { DFlowDataTypeReactiveService as g } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
5
|
+
import "js-md5";
|
|
6
|
+
import { DFlowSuggestionType as A } from "./DFlowSuggestion.view.js";
|
|
7
|
+
import { DFlowFunctionReactiveService as S } from "../d-flow-function/DFlowFunction.service.js";
|
|
8
|
+
import { replaceGenericsAndSortType as f, resolveType as d, isMatchingType as M } from "../../utils/generics.js";
|
|
9
|
+
const P = (t, u = []) => {
|
|
10
|
+
const r = F(g), c = F(S), m = v(g), y = v(S), p = s.useMemo(() => t ? r?.getDataType(t) : void 0, [t, r, m]), i = s.useMemo(() => t ? f(d(t, r), u) : void 0, [t, r, m, u]);
|
|
11
|
+
return s.useMemo(() => c.values().filter((e) => {
|
|
12
|
+
if (!t || !i) return !0;
|
|
13
|
+
if (e.runtimeFunctionDefinition?.identifier == "std::control::return" && t) return !1;
|
|
14
|
+
if (p?.variant === "NODE") return !0;
|
|
15
|
+
if (!e.returnType || !e.genericKeys) return !1;
|
|
16
|
+
const o = f(d(e.returnType, r), e.genericKeys);
|
|
17
|
+
return M(i, o);
|
|
18
|
+
}).sort((e, o) => {
|
|
19
|
+
const [n, T, C] = e.runtimeFunctionDefinition.identifier.split("::"), [D, N, h] = o.runtimeFunctionDefinition.identifier.split("::"), a = n.localeCompare(D);
|
|
20
|
+
if (a !== 0) return a;
|
|
21
|
+
const l = T.localeCompare(N);
|
|
22
|
+
return l !== 0 ? l : C.localeCompare(h);
|
|
23
|
+
}).map((e) => {
|
|
24
|
+
const o = {
|
|
25
|
+
__typename: "NodeFunction",
|
|
26
|
+
id: "gid://sagittarius/NodeFunction/1",
|
|
27
|
+
functionDefinition: {
|
|
28
|
+
id: e.id,
|
|
29
|
+
runtimeFunctionDefinition: e.runtimeFunctionDefinition
|
|
30
|
+
},
|
|
31
|
+
parameters: {
|
|
32
|
+
nodes: e.parameterDefinitions?.map((n) => ({
|
|
33
|
+
id: n.id,
|
|
34
|
+
runtimeParameter: {
|
|
35
|
+
id: n.id
|
|
36
|
+
}
|
|
37
|
+
})) ?? []
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return {
|
|
41
|
+
path: [],
|
|
42
|
+
type: A.FUNCTION,
|
|
43
|
+
displayText: [e.names[0]?.content],
|
|
44
|
+
value: o
|
|
45
|
+
};
|
|
46
|
+
}), [p, t, r, c, y, i]);
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
P as useFunctionSuggestions
|
|
50
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DFlowSuggestion } from './DFlowSuggestion.view';
|
|
2
|
+
import { DataTypeIdentifier, Flow, NodeFunction } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
export declare const useReferenceSuggestions: (flowId: Flow["id"], nodeId?: NodeFunction["id"], dataTypeIdentifier?: DataTypeIdentifier, genericKeys?: string[]) => DFlowSuggestion[];
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import l from "react";
|
|
2
|
+
import { useService as F, useStore as N } from "../../utils/contextStore.js";
|
|
3
|
+
import "merge-props";
|
|
4
|
+
import { DFlowDataTypeReactiveService as h } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
5
|
+
import "js-md5";
|
|
6
|
+
import { DFlowSuggestionType as $ } from "./DFlowSuggestion.view.js";
|
|
7
|
+
import { replaceGenericsAndSortType as W, resolveType as C, isMatchingType as K, resolveGenericKeys as V, targetForGenericKey as A, replaceGenericKeysInType as Y } from "../../utils/generics.js";
|
|
8
|
+
import { DFlowFunctionReactiveService as E } from "../d-flow-function/DFlowFunction.service.js";
|
|
9
|
+
import "../d-flow/DFlow.js";
|
|
10
|
+
import { DFlowReactiveService as x } from "../d-flow/DFlow.service.js";
|
|
11
|
+
import { useReturnType as k } from "../d-flow-function/DFlowFunction.return.hook.js";
|
|
12
|
+
const oe = (n, t, o, m = []) => {
|
|
13
|
+
const y = F(h), r = N(h), v = F(x), g = N(x), M = P(n), D = l.useMemo(() => t ? M?.find((i) => i.nodeFunctionId === t) : void 0, [M, t]), a = l.useMemo(() => t ? v.getNodeById(n, t)?.parameters?.nodes?.map((s) => s?.value).filter((s) => s?.__typename === "NodeFunctionIdWrapper") ?? [] : [], [n, t, v, g]), u = l.useMemo(() => o ? W(C(o, y), m) : void 0, [o, y, r, m]), T = J(n);
|
|
14
|
+
return l.useMemo(() => {
|
|
15
|
+
if (!u || !D) return [];
|
|
16
|
+
const {
|
|
17
|
+
depth: i,
|
|
18
|
+
scope: s,
|
|
19
|
+
node: d
|
|
20
|
+
} = D;
|
|
21
|
+
return T.flatMap((e) => {
|
|
22
|
+
if (e.node === null || e.node === void 0) return [];
|
|
23
|
+
if (e.depth === null || e.depth === void 0) return [];
|
|
24
|
+
if (e.scope === null || e.scope === void 0) return [];
|
|
25
|
+
const c = e.parameterIndex !== void 0 && e.inputTypeIndex !== void 0, I = c ? e.scope?.every((f, B) => s?.[B] === f) : !0;
|
|
26
|
+
if (c && !I) return [];
|
|
27
|
+
if (a.some((f) => f.id === e.nodeFunctionId)) return [];
|
|
28
|
+
if (!c && e.node >= d) return [];
|
|
29
|
+
if (e.depth > i) return [];
|
|
30
|
+
if (e.scope.some((f) => !s.includes(f))) return [];
|
|
31
|
+
const R = W(C(e.dataTypeIdentifier, y), []);
|
|
32
|
+
return K(u, R) ? [{
|
|
33
|
+
path: [],
|
|
34
|
+
type: $.REF_OBJECT,
|
|
35
|
+
displayText: [`${e.depth}-${e.scope}-${e.node || ""}-${e.referencePath?.map((f) => f.path).join(".") ?? ""}`],
|
|
36
|
+
value: e
|
|
37
|
+
}] : [];
|
|
38
|
+
});
|
|
39
|
+
}, [y, D, a, T, u]);
|
|
40
|
+
}, J = (n) => {
|
|
41
|
+
const t = F(h);
|
|
42
|
+
N(h);
|
|
43
|
+
const o = F(E), m = F(x), y = N(x), r = l.useMemo(() => m.getById(n), [n, y]), v = P(n), g = l.useMemo(() => r?.nodes?.nodes?.map((a) => {
|
|
44
|
+
const u = a?.parameters?.nodes?.map((d) => d?.value) ?? [], T = o.getById(a?.functionDefinition?.id), i = k(T, u, t), s = v?.find((d) => d.nodeFunctionId === a?.id);
|
|
45
|
+
return i && s ? w(s, i, t) : {};
|
|
46
|
+
}) ?? [], [r]), M = l.useMemo(() => w({
|
|
47
|
+
node: 0,
|
|
48
|
+
depth: 0,
|
|
49
|
+
nodeFunctionId: "gid://sagittarius/NodeFunction/-1",
|
|
50
|
+
scope: [0]
|
|
51
|
+
}, {
|
|
52
|
+
dataType: r?.inputType
|
|
53
|
+
}), [r]);
|
|
54
|
+
return [...l.useMemo(() => r?.nodes?.nodes?.length ? r.nodes.nodes.flatMap((a) => {
|
|
55
|
+
const u = o.getById(a?.functionDefinition?.id);
|
|
56
|
+
if (!u) return [];
|
|
57
|
+
const T = a?.parameters?.nodes?.map((i) => i?.value).filter(Boolean) ?? [];
|
|
58
|
+
return (u.parameterDefinitions ?? []).flatMap((i, s) => {
|
|
59
|
+
const d = i?.dataTypeIdentifier;
|
|
60
|
+
if (!d) return [];
|
|
61
|
+
const e = t.getDataType(d);
|
|
62
|
+
if (!e || e.variant !== "NODE") return [];
|
|
63
|
+
const c = a?.parameters?.nodes?.find((p) => p?.id === i?.id);
|
|
64
|
+
if (!c?.value || c.value.__typename !== "NodeFunctionIdWrapper") return [];
|
|
65
|
+
const I = v?.find((p) => c?.value?.__typename === "NodeFunctionIdWrapper" && p.nodeFunctionId === c.value?.id);
|
|
66
|
+
if (!I) return [];
|
|
67
|
+
const R = e.rules?.nodes?.filter((p) => p?.variant === "INPUT_TYPES") ?? [], f = V(u, T, t), B = A(u, d), S = new Map([...f].map(([p, G]) => [B.get(p) ?? p, G]));
|
|
68
|
+
return R.flatMap((p) => (p?.config?.inputTypes ?? []).flatMap((O, j) => {
|
|
69
|
+
const b = Y(O.dataTypeIdentifier, S);
|
|
70
|
+
return b ? w({
|
|
71
|
+
...I,
|
|
72
|
+
nodeFunctionId: a?.id,
|
|
73
|
+
parameterIndex: s,
|
|
74
|
+
inputTypeIndex: j,
|
|
75
|
+
inputTypeIdentifier: O.inputIdentifier
|
|
76
|
+
}, b, t) : [];
|
|
77
|
+
}));
|
|
78
|
+
});
|
|
79
|
+
}) : [], [r, v, o, t]), ...M, ...g].flat();
|
|
80
|
+
}, w = (n, t, o) => {
|
|
81
|
+
const m = o ? o.getDataType(t) : t.dataType ?? t.genericType?.dataType;
|
|
82
|
+
return m ? [...m.rules?.nodes?.map((r) => {
|
|
83
|
+
if (r?.variant === "CONTAINS_KEY")
|
|
84
|
+
return t ? w({
|
|
85
|
+
...n,
|
|
86
|
+
referencePath: [...n.referencePath ?? [], {
|
|
87
|
+
path: r.config.key
|
|
88
|
+
}]
|
|
89
|
+
}, r.config.dataTypeIdentifier) : void 0;
|
|
90
|
+
}).flat().filter((r) => !!r) ?? [], {
|
|
91
|
+
__typename: "ReferenceValue",
|
|
92
|
+
dataTypeIdentifier: t,
|
|
93
|
+
nodeFunctionId: n.nodeFunctionId,
|
|
94
|
+
...n
|
|
95
|
+
}] : [];
|
|
96
|
+
}, P = (n) => {
|
|
97
|
+
const t = F(h), o = F(x), m = F(E), y = N(x), r = N(E), v = N(h), g = l.useMemo(() => o.getById(n), [n, y]);
|
|
98
|
+
return l.useMemo(() => {
|
|
99
|
+
if (!t || !o || !m || !g?.startingNodeId) return;
|
|
100
|
+
let M = 0;
|
|
101
|
+
const D = () => ++M;
|
|
102
|
+
let a = 0;
|
|
103
|
+
const u = () => ++a, T = [], i = (s, d, e) => {
|
|
104
|
+
if (!s) return;
|
|
105
|
+
let c = s.__typename === "NodeFunctionIdWrapper" ? o.getNodeById(n, s.id) : s;
|
|
106
|
+
for (; c; ) {
|
|
107
|
+
const I = m.getById(c.functionDefinition?.id);
|
|
108
|
+
if (!I) break;
|
|
109
|
+
if (c.parameters && I.parameterDefinitions)
|
|
110
|
+
for (const f of I.parameterDefinitions) {
|
|
111
|
+
const B = t.getDataType(f.dataTypeIdentifier), S = c.parameters?.nodes?.find((p) => p?.id === f.id);
|
|
112
|
+
if (B?.variant === "NODE") {
|
|
113
|
+
if (S?.value && S.value.__typename === "NodeFunctionIdWrapper") {
|
|
114
|
+
const p = [...e, D()];
|
|
115
|
+
i(S.value, d + 1, p);
|
|
116
|
+
}
|
|
117
|
+
} else S?.value && S.value.__typename === "NodeFunctionIdWrapper" && i(S.value, d, e);
|
|
118
|
+
}
|
|
119
|
+
const R = u();
|
|
120
|
+
T.push({
|
|
121
|
+
node: R,
|
|
122
|
+
depth: d,
|
|
123
|
+
scope: e,
|
|
124
|
+
nodeFunctionId: c.id
|
|
125
|
+
}), c = o.getNodeById(g.id, c.nextNodeId);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
return i(o.getNodeById(g.id, g.startingNodeId), 0, [0]), T;
|
|
129
|
+
}, [t, g, n, o, m, v, y, r]) ?? [];
|
|
130
|
+
};
|
|
131
|
+
export {
|
|
132
|
+
oe as useReferenceSuggestions
|
|
133
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DFlowSuggestion } from './DFlowSuggestion.view';
|
|
2
|
+
import { Flow, NodeFunction, NodeParameter } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
export declare const useSuggestions: (flowId: Flow["id"], nodeId?: NodeFunction["id"], parameterId?: NodeParameter["id"]) => DFlowSuggestion[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useService as f, useStore as p } from "../../utils/contextStore.js";
|
|
2
|
+
import o from "react";
|
|
3
|
+
import "merge-props";
|
|
4
|
+
import { DFlowFunctionReactiveService as g } from "../d-flow-function/DFlowFunction.service.js";
|
|
5
|
+
import "js-md5";
|
|
6
|
+
import "../d-flow/DFlow.js";
|
|
7
|
+
import { DFlowReactiveService as a } from "../d-flow/DFlow.service.js";
|
|
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 { useValueSuggestions as M } from "./DFlowValueSuggestions.hook.js";
|
|
15
|
+
import { useReferenceSuggestions as R } from "./DFlowReferenceSuggestions.hook.js";
|
|
16
|
+
import { useFunctionSuggestions as T } from "./DFlowFunctionSuggestions.hook.js";
|
|
17
|
+
import { useDataTypeSuggestions as B } from "./DFlowDataTypeSuggestions.hook.js";
|
|
18
|
+
const J = (e, t, n) => {
|
|
19
|
+
const c = f(g), u = f(a), S = p(g), D = p(a), r = o.useMemo(() => u.getNodeById(e, t), [e, u, D, t]), s = o.useMemo(() => r?.functionDefinition?.id ? c.getById(r.functionDefinition.id) : void 0, [S, c, r?.functionDefinition?.id]), i = o.useMemo(() => s?.parameterDefinitions?.find((F) => F.id === n), [s?.parameterDefinitions, n])?.dataTypeIdentifier, m = s?.genericKeys ?? [], v = M(i), y = B(i), d = R(e, t, i, m), l = T(i, m);
|
|
20
|
+
return o.useMemo(() => [...v, ...y, ...d, ...l].sort(), [e, t, n]);
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
J as useSuggestions
|
|
24
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LiteralValue, NodeFunction, ReferenceValue } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
+
export declare enum DFlowSuggestionType {
|
|
3
|
+
REF_OBJECT = 0,
|
|
4
|
+
VALUE = 1,
|
|
5
|
+
FUNCTION = 2,
|
|
6
|
+
FUNCTION_COMBINATION = 3,
|
|
7
|
+
DATA_TYPE = 4
|
|
8
|
+
}
|
|
9
|
+
export interface DFlowSuggestion {
|
|
10
|
+
displayText: string[];
|
|
11
|
+
path: number[];
|
|
12
|
+
value: LiteralValue | ReferenceValue | NodeFunction;
|
|
13
|
+
type: DFlowSuggestionType;
|
|
14
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as r, jsxs as F } from "react/jsx-runtime";
|
|
2
|
+
import { c as k } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { MenuTrigger as v, MenuSeparator as C, MenuPortal as A, Menu as E } from "../menu/Menu.js";
|
|
4
|
+
import y from "react";
|
|
5
|
+
import { DFlowSuggestionMenuFooter as B } from "./DFlowSuggestionMenuFooter.js";
|
|
6
|
+
import "@radix-ui/react-checkbox";
|
|
7
|
+
import "merge-props";
|
|
8
|
+
import "@tabler/icons-react";
|
|
9
|
+
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
10
|
+
import "../form/EmailInput.js";
|
|
11
|
+
import "../form/Input.js";
|
|
12
|
+
import { InputSuggestionMenuContentItems as L, InputSuggestionMenuContent as P } from "../form/InputSuggestion.js";
|
|
13
|
+
import "../form/NumberInput.js";
|
|
14
|
+
import "../form/PasswordInput.js";
|
|
15
|
+
import "@radix-ui/react-one-time-password-field";
|
|
16
|
+
import "@radix-ui/react-radio-group";
|
|
17
|
+
import "../form/SwitchInput.js";
|
|
18
|
+
import "../form/TextInput.js";
|
|
19
|
+
import { toInputSuggestions as U } from "./DFlowSuggestionMenu.util.js";
|
|
20
|
+
import { DFlowSuggestionMenuSearchBar as $ } from "./DFlowSuggestionMenuSearchBar.js";
|
|
21
|
+
const le = (R) => {
|
|
22
|
+
const e = k.c(25), {
|
|
23
|
+
suggestions: f,
|
|
24
|
+
triggerContent: M,
|
|
25
|
+
onSuggestionSelect: I
|
|
26
|
+
} = R;
|
|
27
|
+
let c;
|
|
28
|
+
e[0] !== f ? (c = f === void 0 ? [] : f, e[0] = f, e[1] = c) : c = e[1];
|
|
29
|
+
const t = c, D = I === void 0 ? q : I, _ = y.useRef(null), [w, x] = y.useState(t);
|
|
30
|
+
let g, p;
|
|
31
|
+
e[2] !== t ? (g = () => {
|
|
32
|
+
x(t);
|
|
33
|
+
}, p = [t], e[2] = t, e[3] = g, e[4] = p) : (g = e[3], p = e[4]), y.useEffect(g, p);
|
|
34
|
+
let i;
|
|
35
|
+
e[5] !== M ? (i = /* @__PURE__ */ r(v, { asChild: !0, children: M }), e[5] = M, e[6] = i) : i = e[6];
|
|
36
|
+
let s;
|
|
37
|
+
e[7] !== t ? (s = /* @__PURE__ */ r($, { onType: (o) => {
|
|
38
|
+
o.key === "ArrowDown" ? (o.preventDefault(), _.current?.focusFirstItem()) : o.key === "ArrowUp" && (o.preventDefault(), _.current?.focusLastItem());
|
|
39
|
+
const T = o.target.value;
|
|
40
|
+
return x(t.filter((b) => b.displayText.some((j) => j.includes(T)))), o.preventDefault(), !1;
|
|
41
|
+
} }), e[7] = t, e[8] = s) : s = e[8];
|
|
42
|
+
let a;
|
|
43
|
+
e[9] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ r(C, {}), e[9] = a) : a = e[9];
|
|
44
|
+
let n;
|
|
45
|
+
e[10] !== w ? (n = U(w), e[10] = w, e[11] = n) : n = e[11];
|
|
46
|
+
let l;
|
|
47
|
+
e[12] !== D ? (l = (o) => {
|
|
48
|
+
D(o.valueData);
|
|
49
|
+
}, e[12] = D, e[13] = l) : l = e[13];
|
|
50
|
+
let u;
|
|
51
|
+
e[14] !== n || e[15] !== l ? (u = /* @__PURE__ */ r(L, { ref: _, suggestions: n, onSuggestionSelect: l }), e[14] = n, e[15] = l, e[16] = u) : u = e[16];
|
|
52
|
+
let S, d;
|
|
53
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ r(C, {}), d = /* @__PURE__ */ r(B, {}), e[17] = S, e[18] = d) : (S = e[17], d = e[18]);
|
|
54
|
+
let m;
|
|
55
|
+
e[19] !== u || e[20] !== s ? (m = /* @__PURE__ */ r(A, { children: /* @__PURE__ */ F(P, { align: "center", children: [
|
|
56
|
+
s,
|
|
57
|
+
a,
|
|
58
|
+
u,
|
|
59
|
+
S,
|
|
60
|
+
d
|
|
61
|
+
] }) }), e[19] = u, e[20] = s, e[21] = m) : m = e[21];
|
|
62
|
+
let h;
|
|
63
|
+
return e[22] !== m || e[23] !== i ? (h = /* @__PURE__ */ F(E, { children: [
|
|
64
|
+
i,
|
|
65
|
+
m
|
|
66
|
+
] }), e[22] = m, e[23] = i, e[24] = h) : h = e[24], h;
|
|
67
|
+
};
|
|
68
|
+
function q() {
|
|
69
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
le as DFlowSuggestionMenu
|
|
72
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsx as o, jsxs as T, Fragment as d } from "react/jsx-runtime";
|
|
2
2
|
import { DFlowSuggestionType as e } from "./DFlowSuggestion.view.js";
|
|
3
|
-
import { IconCircleDot as c, IconCirclesRelation as
|
|
4
|
-
import { Text as
|
|
5
|
-
const
|
|
3
|
+
import { IconCircleDot as c, IconCirclesRelation as s, IconFileFunctionFilled as a } from "@tabler/icons-react";
|
|
4
|
+
import { Text as u } from "../text/Text.js";
|
|
5
|
+
const D = (p) => {
|
|
6
6
|
const f = {
|
|
7
7
|
[e.VALUE]: "Values",
|
|
8
8
|
[e.REF_OBJECT]: "Variables",
|
|
9
9
|
[e.DATA_TYPE]: "Datatypes"
|
|
10
10
|
};
|
|
11
|
-
return
|
|
11
|
+
return p.map((i) => {
|
|
12
12
|
const m = {
|
|
13
|
-
[e.FUNCTION]: /* @__PURE__ */ o(
|
|
14
|
-
[e.FUNCTION_COMBINATION]: /* @__PURE__ */ o(
|
|
15
|
-
[e.REF_OBJECT]: /* @__PURE__ */ o(
|
|
13
|
+
[e.FUNCTION]: /* @__PURE__ */ o(a, { color: "#70ffb2", size: 16 }),
|
|
14
|
+
[e.FUNCTION_COMBINATION]: /* @__PURE__ */ o(a, { color: "#70ffb2", size: 16 }),
|
|
15
|
+
[e.REF_OBJECT]: /* @__PURE__ */ o(s, { color: "#FFBE0B", size: 16 }),
|
|
16
16
|
[e.VALUE]: /* @__PURE__ */ o(c, { color: "#D90429", size: 16 }),
|
|
17
17
|
[e.DATA_TYPE]: /* @__PURE__ */ o(c, { color: "#D90429", size: 16 })
|
|
18
18
|
}, F = /* @__PURE__ */ T(d, { children: [
|
|
19
19
|
m[i.type],
|
|
20
|
-
/* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
|
|
20
|
+
/* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(u, { display: "flex", style: {
|
|
21
21
|
gap: ".5rem"
|
|
22
22
|
}, children: i.displayText.map((t, r) => /* @__PURE__ */ o("span", { children: t }, r)) }) })
|
|
23
23
|
] });
|
|
@@ -31,12 +31,13 @@ const O = (a) => {
|
|
|
31
31
|
}
|
|
32
32
|
return {
|
|
33
33
|
children: F,
|
|
34
|
-
|
|
34
|
+
insertMode: "replace",
|
|
35
|
+
valueData: i,
|
|
35
36
|
value: i.value,
|
|
36
|
-
|
|
37
|
+
groupBy: n
|
|
37
38
|
};
|
|
38
39
|
});
|
|
39
40
|
};
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
D as toInputSuggestions
|
|
42
43
|
};
|
package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as y } from "
|
|
3
|
-
import { MenuLabel as p } from "
|
|
2
|
+
import { c as y } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { MenuLabel as p } from "../menu/Menu.js";
|
|
4
4
|
import { IconCornerDownLeft as d, IconBulb as g, IconFileFunctionFilled as _, IconArrowsShuffle as b, IconCirclesRelation as u, IconCircleDot as x } from "@tabler/icons-react";
|
|
5
|
-
import { Text as f } from "
|
|
6
|
-
import { Flex as i } from "
|
|
7
|
-
import { TooltipTrigger as F, Tooltip as I, TooltipPortal as z, TooltipContent as S } from "
|
|
5
|
+
import { Text as f } from "../text/Text.js";
|
|
6
|
+
import { Flex as i } from "../flex/Flex.js";
|
|
7
|
+
import { TooltipTrigger as F, Tooltip as I, TooltipPortal as z, TooltipContent as S } from "../tooltip/Tooltip.js";
|
|
8
8
|
const O = () => {
|
|
9
9
|
const e = y.c(8);
|
|
10
10
|
let l;
|
package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { Code0Component } from '
|
|
2
|
+
import { Code0Component } from '../../utils';
|
|
3
3
|
export interface DFlowSuggestionMenuSearchBarProps extends Code0Component<HTMLDivElement> {
|
|
4
4
|
onType: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
5
5
|
}
|
package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { c as m } from "
|
|
2
|
+
import { c as m } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { DFlowSuggestionSearchInput as i } from "./DFlowSuggestionSearchInput.js";
|
|
4
4
|
import { IconSearch as s } from "@tabler/icons-react";
|
|
5
5
|
const p = (c) => {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import i from "react";
|
|
4
|
+
import "@radix-ui/react-checkbox";
|
|
5
|
+
import "merge-props";
|
|
6
|
+
import { IconX as s } from "@tabler/icons-react";
|
|
7
|
+
import '../../assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css';import '../../assets/components/form/Input.style.css';/* empty css */
|
|
8
|
+
import "../form/EmailInput.js";
|
|
9
|
+
import { Input as c } from "../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 { Button as l } from "../button/Button.js";
|
|
18
|
+
/* empty css */
|
|
19
|
+
import { clearInputElement as u } from "../form/Input.utils.js";
|
|
20
|
+
const D = i.forwardRef((p, t) => {
|
|
21
|
+
t = t || i.useRef(null);
|
|
22
|
+
const {
|
|
23
|
+
clearable: m = !1,
|
|
24
|
+
right: e,
|
|
25
|
+
...n
|
|
26
|
+
} = p, a = () => {
|
|
27
|
+
u(t.current);
|
|
28
|
+
}, r = [e];
|
|
29
|
+
return m && r.push(/* @__PURE__ */ o(l, { variant: "none", onClick: a, children: /* @__PURE__ */ o(s, { size: 13 }) })), /* @__PURE__ */ o(c, { wrapperComponent: {
|
|
30
|
+
className: "d-flow-suggestion-search-input"
|
|
31
|
+
}, right: r, type: "text", ref: t, ...n });
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
D as DFlowSuggestionSearchInput
|
|
35
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import n from "react";
|
|
2
|
+
import { useService as f, useStore as c } from "../../utils/contextStore.js";
|
|
3
|
+
import "merge-props";
|
|
4
|
+
import { DFlowDataTypeReactiveService as p } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
5
|
+
import "js-md5";
|
|
6
|
+
import { DFlowSuggestionType as u } from "./DFlowSuggestion.view.js";
|
|
7
|
+
const E = (r) => {
|
|
8
|
+
const s = f(p), m = c(p), i = n.useMemo(() => r ? s?.getDataType(r) : void 0, [r, s, m]);
|
|
9
|
+
return n.useMemo(() => {
|
|
10
|
+
if (!i) return [];
|
|
11
|
+
const a = [];
|
|
12
|
+
return i.rules?.nodes?.forEach((e) => {
|
|
13
|
+
if (e?.variant === "ITEM_OF_COLLECTION")
|
|
14
|
+
e.config.items?.forEach((t) => {
|
|
15
|
+
a.push({
|
|
16
|
+
path: [],
|
|
17
|
+
type: u.VALUE,
|
|
18
|
+
displayText: [t.toString()],
|
|
19
|
+
value: {
|
|
20
|
+
__typename: "LiteralValue",
|
|
21
|
+
value: t
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
else if (e?.variant === "NUMBER_RANGE") {
|
|
26
|
+
const t = e.config;
|
|
27
|
+
if (t.from === null || t.from === void 0 || t.to === null || t.to === void 0) return;
|
|
28
|
+
for (let o = t.from; o <= t.to; o += t.steps ?? 1)
|
|
29
|
+
a.push({
|
|
30
|
+
path: [],
|
|
31
|
+
type: u.VALUE,
|
|
32
|
+
displayText: [o.toString() ?? ""],
|
|
33
|
+
value: {
|
|
34
|
+
__typename: "LiteralValue",
|
|
35
|
+
value: String(o)
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}), a;
|
|
40
|
+
}, [i]);
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
E as useValueSuggestions
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DFlowSuggestion.view';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactiveArrayService } from '../../utils';
|
|
2
|
+
import { FlowTypeView } from './DFlowType.view';
|
|
3
|
+
import { FlowType, Namespace, NamespaceProject, Runtime } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
export type DFlowTypeDependencies = {
|
|
5
|
+
namespaceId: Namespace['id'];
|
|
6
|
+
projectId: NamespaceProject['id'];
|
|
7
|
+
runtimeId: Runtime['id'];
|
|
8
|
+
};
|
|
9
|
+
export declare abstract class DFlowTypeReactiveService extends ReactiveArrayService<FlowTypeView, DFlowTypeDependencies> {
|
|
10
|
+
getById(id: FlowType['id'], dependencies?: DFlowTypeDependencies): FlowTypeView | 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 s extends t {
|
|
6
|
+
getById(e, r) {
|
|
7
|
+
return this.values(r).find((i) => i.id === e);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
s as DFlowTypeReactiveService
|
|
12
|
+
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { DataType, FlowType, FlowTypeSetting, Maybe, Scalars,
|
|
1
|
+
import { DataType, FlowType, FlowTypeSetting, Maybe, Scalars, Translation } from '@code0-tech/sagittarius-graphql-types';
|
|
2
2
|
export declare class FlowTypeView {
|
|
3
|
+
/** Name of the function */
|
|
4
|
+
private readonly _aliases?;
|
|
3
5
|
/** Time when this FlowType was created */
|
|
4
6
|
private readonly _createdAt?;
|
|
5
7
|
/** Descriptions of the flow type */
|
|
6
8
|
private readonly _descriptions?;
|
|
9
|
+
/** Display message of the function */
|
|
10
|
+
private readonly _displayMessages?;
|
|
7
11
|
/** Editable status of the flow type */
|
|
8
12
|
private readonly _editable?;
|
|
9
13
|
/** Flow type settings of the flow type */
|
|
@@ -21,14 +25,16 @@ export declare class FlowTypeView {
|
|
|
21
25
|
/** Time when this FlowType was last updated */
|
|
22
26
|
private readonly _updatedAt?;
|
|
23
27
|
constructor(flowType: FlowType);
|
|
28
|
+
get aliases(): Maybe<Array<Translation>> | undefined;
|
|
24
29
|
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
25
|
-
get descriptions(): Maybe<
|
|
30
|
+
get descriptions(): Maybe<Array<Translation>> | undefined;
|
|
31
|
+
get displayMessages(): Maybe<Array<Translation>> | undefined;
|
|
26
32
|
get editable(): Maybe<Scalars["Boolean"]["output"]> | undefined;
|
|
27
33
|
get flowTypeSettings(): Maybe<Array<FlowTypeSetting>> | undefined;
|
|
28
|
-
get id(): Maybe<Scalars["
|
|
34
|
+
get id(): Maybe<Scalars["FlowTypeID"]["output"]> | undefined;
|
|
29
35
|
get identifier(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
30
36
|
get inputType(): Maybe<DataType> | undefined;
|
|
31
|
-
get names(): Maybe<
|
|
37
|
+
get names(): Maybe<Array<Translation>> | undefined;
|
|
32
38
|
get returnType(): Maybe<DataType> | undefined;
|
|
33
39
|
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
34
40
|
json(): FlowType;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import "../../utils/contextStore.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "merge-props";
|
|
4
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
5
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
6
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
7
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
8
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
9
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
10
|
+
import { DataTypeView as n } from "../d-flow-data-type/DFlowDataType.view.js";
|
|
11
|
+
function e(i, t, s) {
|
|
12
|
+
return (t = d(t)) in i ? Object.defineProperty(i, t, { value: s, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = s, i;
|
|
13
|
+
}
|
|
14
|
+
function d(i) {
|
|
15
|
+
var t = p(i, "string");
|
|
16
|
+
return typeof t == "symbol" ? t : t + "";
|
|
17
|
+
}
|
|
18
|
+
function p(i, t) {
|
|
19
|
+
if (typeof i != "object" || !i) return i;
|
|
20
|
+
var s = i[Symbol.toPrimitive];
|
|
21
|
+
if (s !== void 0) {
|
|
22
|
+
var r = s.call(i, t);
|
|
23
|
+
if (typeof r != "object") return r;
|
|
24
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
25
|
+
}
|
|
26
|
+
return (t === "string" ? String : Number)(i);
|
|
27
|
+
}
|
|
28
|
+
class v {
|
|
29
|
+
constructor(t) {
|
|
30
|
+
e(this, "_aliases", void 0), e(this, "_createdAt", void 0), e(this, "_descriptions", void 0), e(this, "_displayMessages", void 0), e(this, "_editable", void 0), e(this, "_flowTypeSettings", void 0), e(this, "_id", void 0), e(this, "_identifier", void 0), e(this, "_inputType", void 0), e(this, "_names", void 0), e(this, "_returnType", void 0), e(this, "_updatedAt", void 0), this._aliases = t.aliases, this._createdAt = t.createdAt, this._descriptions = t.descriptions, this._displayMessages = t.displayMessages, this._editable = t.editable, this._flowTypeSettings = t.flowTypeSettings, this._id = t.id, this._identifier = t.identifier, this._inputType = t.inputType ? new n(t.inputType).json : void 0, this._names = t.names, this._returnType = t.returnType ? new n(t.returnType).json : void 0, this._updatedAt = t.updatedAt, console.log(JSON.stringify(this.inputType)), console.log(this.inputType);
|
|
31
|
+
}
|
|
32
|
+
get aliases() {
|
|
33
|
+
return this._aliases;
|
|
34
|
+
}
|
|
35
|
+
get createdAt() {
|
|
36
|
+
return this._createdAt;
|
|
37
|
+
}
|
|
38
|
+
get descriptions() {
|
|
39
|
+
return this._descriptions;
|
|
40
|
+
}
|
|
41
|
+
get displayMessages() {
|
|
42
|
+
return this._displayMessages;
|
|
43
|
+
}
|
|
44
|
+
get editable() {
|
|
45
|
+
return this._editable;
|
|
46
|
+
}
|
|
47
|
+
get flowTypeSettings() {
|
|
48
|
+
return this._flowTypeSettings;
|
|
49
|
+
}
|
|
50
|
+
get id() {
|
|
51
|
+
return this._id;
|
|
52
|
+
}
|
|
53
|
+
get identifier() {
|
|
54
|
+
return this._identifier;
|
|
55
|
+
}
|
|
56
|
+
get inputType() {
|
|
57
|
+
return this._inputType;
|
|
58
|
+
}
|
|
59
|
+
get names() {
|
|
60
|
+
return this._names;
|
|
61
|
+
}
|
|
62
|
+
get returnType() {
|
|
63
|
+
return this._returnType;
|
|
64
|
+
}
|
|
65
|
+
get updatedAt() {
|
|
66
|
+
return this._updatedAt;
|
|
67
|
+
}
|
|
68
|
+
json() {
|
|
69
|
+
return {
|
|
70
|
+
createdAt: this._createdAt,
|
|
71
|
+
descriptions: this._descriptions,
|
|
72
|
+
editable: this._editable,
|
|
73
|
+
flowTypeSettings: this._flowTypeSettings,
|
|
74
|
+
id: this._id,
|
|
75
|
+
identifier: this._identifier,
|
|
76
|
+
inputType: this._inputType,
|
|
77
|
+
names: this._names,
|
|
78
|
+
returnType: this._returnType,
|
|
79
|
+
updatedAt: this._updatedAt
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export {
|
|
84
|
+
v as FlowTypeView
|
|
85
|
+
};
|