@code0-tech/pictor 0.0.0-mvp.45 → 0.0.0-mvp.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/avatar/Avatar.js +6 -7
- package/dist/components/data-table/DataTableFilterInput.js +5 -3
- package/dist/components/editor/Editor.js +29 -30
- package/dist/components/form/InputSuggestion.js +29 -29
- package/dist/components/form/useForm.d.ts +3 -3
- package/dist/components/form/useForm.js +16 -16
- package/dist/components/{d-fullscreen/DFullScreen.d.ts → fullscreen/FullScreen.d.ts} +2 -2
- package/dist/components/{d-fullscreen/DFullScreen.js → fullscreen/FullScreen.js} +2 -2
- package/dist/components/{d-layout/DLayout.d.ts → layout/Layout.d.ts} +2 -2
- package/dist/components/{d-layout/DLayout.js → layout/Layout.js} +11 -11
- package/dist/components/menu/Menu.js +8 -8
- package/dist/components/resizable/Resizable.d.ts +12 -0
- package/dist/components/{d-resizable/DResizable.js → resizable/Resizable.js} +7 -7
- package/dist/components/tab/Tab.js +4 -4
- package/dist/components/toast/Toast.js +1 -1
- package/dist/index.d.ts +0 -20
- package/dist/index.js +152 -273
- package/dist/node_modules/prettier/plugins/babel.js +6674 -6685
- package/dist/node_modules/prettier/plugins/estree.js +2830 -2628
- package/dist/node_modules/prettier/standalone.js +1657 -1440
- package/package.json +29 -29
- package/dist/assets/components/d-flow/DFlow.style.css +0 -1
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +0 -1
- package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +0 -1
- package/dist/assets/components/d-flow-node/DFlowNode.style.css +0 -1
- package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +0 -1
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +0 -1
- package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +0 -1
- package/dist/assets/node_modules/@xyflow/react/dist/style.css +0 -1
- package/dist/assets/node_modules/ldrs/dist/react/LineWobble.css +0 -1
- package/dist/components/d-application/DApplication.service.d.ts +0 -9
- package/dist/components/d-application/DApplication.service.js +0 -10
- package/dist/components/d-flow/DFlow.d.ts +0 -9
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +0 -4
- package/dist/components/d-flow/DFlow.edges.hook.js +0 -110
- package/dist/components/d-flow/DFlow.js +0 -484
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +0 -4
- package/dist/components/d-flow/DFlow.nodes.hook.js +0 -128
- package/dist/components/d-flow/DFlow.service.d.ts +0 -21
- package/dist/components/d-flow/DFlow.service.js +0 -148
- package/dist/components/d-flow/DFlow.util.d.ts +0 -4
- package/dist/components/d-flow/DFlow.util.js +0 -63
- package/dist/components/d-flow/DFlow.view.d.ts +0 -4
- package/dist/components/d-flow/DFlow.view.js +0 -1
- package/dist/components/d-flow/DFlowEdge.d.ts +0 -12
- package/dist/components/d-flow/DFlowEdge.js +0 -69
- package/dist/components/d-flow/index.d.ts +0 -4
- package/dist/components/d-flow/index.js +0 -10
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +0 -15
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +0 -203
- package/dist/components/d-flow-data-type/DFlowDataType.view.d.ts +0 -41
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +0 -76
- package/dist/components/d-flow-data-type/index.d.ts +0 -2
- package/dist/components/d-flow-data-type/index.js +0 -6
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -222
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -229
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -4
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.d.ts +0 -8
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.js +0 -217
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.d.ts +0 -4
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +0 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -250
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.d.ts +0 -8
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.js +0 -10
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.d.ts +0 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +0 -10
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.d.ts +0 -4
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.js +0 -214
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.d.ts +0 -4
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.js +0 -1
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.d.ts +0 -3
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.js +0 -5
- package/dist/components/d-flow-file/DFlowTabDefault.d.ts +0 -7
- package/dist/components/d-flow-file/DFlowTabDefault.js +0 -105
- package/dist/components/d-flow-file/DFlowTabTrigger.d.ts +0 -6
- package/dist/components/d-flow-file/DFlowTabTrigger.js +0 -75
- package/dist/components/d-flow-file/DFlowTabs.d.ts +0 -8
- package/dist/components/d-flow-file/DFlowTabs.js +0 -84
- package/dist/components/d-flow-file/index.d.ts +0 -1
- package/dist/components/d-flow-file/index.js +0 -4
- package/dist/components/d-flow-folder/DFlowFolder.d.ts +0 -36
- package/dist/components/d-flow-folder/DFlowFolder.js +0 -273
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +0 -18
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +0 -53
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +0 -9
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +0 -115
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +0 -10
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +0 -64
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +0 -5
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +0 -51
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +0 -10
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +0 -59
- package/dist/components/d-flow-folder/index.d.ts +0 -4
- package/dist/components/d-flow-folder/index.js +0 -13
- package/dist/components/d-flow-function/DFlowFunction.input.hook.d.ts +0 -5
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +0 -8
- package/dist/components/d-flow-function/DFlowFunction.return.hook.d.ts +0 -5
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +0 -9
- package/dist/components/d-flow-function/DFlowFunction.service.d.ts +0 -11
- package/dist/components/d-flow-function/DFlowFunction.service.js +0 -13
- package/dist/components/d-flow-function/DFlowFunction.view.d.ts +0 -81
- package/dist/components/d-flow-function/DFlowFunction.view.js +0 -139
- package/dist/components/d-flow-function/index.d.ts +0 -2
- package/dist/components/d-flow-function/index.js +0 -7
- package/dist/components/d-flow-input/DFlowInputDataType.d.ts +0 -15
- package/dist/components/d-flow-input/DFlowInputDataType.js +0 -131
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.d.ts +0 -9
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +0 -102
- package/dist/components/d-flow-input/DFlowInputDefault.d.ts +0 -10
- package/dist/components/d-flow-input/DFlowInputDefault.js +0 -129
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +0 -7
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +0 -24
- package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +0 -47
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +0 -33
- package/dist/components/d-flow-node/DFlowNode.d.ts +0 -10
- package/dist/components/d-flow-node/DFlowNode.js +0 -1
- package/dist/components/d-flow-node/DFlowNode.return.hook.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNode.return.hook.js +0 -27
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.js +0 -118
- package/dist/components/d-flow-node/DFlowNodeGroupCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeGroupCard.js +0 -69
- package/dist/components/d-flow-node/DFlowNodeTriggerCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeTriggerCard.js +0 -66
- package/dist/components/d-flow-panel/DFlowExport.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowExport.js +0 -33
- package/dist/components/d-flow-panel/DFlowMiniMap.d.ts +0 -2
- package/dist/components/d-flow-panel/DFlowMiniMap.js +0 -15
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowPanelControl.js +0 -51
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +0 -4
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +0 -38
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +0 -2
- package/dist/components/d-flow-panel/DFlowPanelSize.js +0 -89
- package/dist/components/d-flow-panel/DFlowPanelUpdate.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowPanelUpdate.js +0 -77
- package/dist/components/d-flow-panel/index.d.ts +0 -5
- package/dist/components/d-flow-panel/index.js +0 -12
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +0 -34
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +0 -50
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +0 -132
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +0 -28
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +0 -14
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +0 -4
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.d.ts +0 -8
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +0 -73
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.js +0 -43
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.d.ts +0 -2
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.js +0 -69
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.d.ts +0 -6
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.js +0 -21
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.d.ts +0 -7
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +0 -36
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +0 -44
- package/dist/components/d-flow-suggestion/index.d.ts +0 -1
- package/dist/components/d-flow-suggestion/index.js +0 -4
- package/dist/components/d-flow-type/DFlowType.service.d.ts +0 -11
- package/dist/components/d-flow-type/DFlowType.service.js +0 -13
- package/dist/components/d-flow-type/DFlowType.view.d.ts +0 -44
- package/dist/components/d-flow-type/DFlowType.view.js +0 -93
- package/dist/components/d-flow-type/index.d.ts +0 -2
- package/dist/components/d-flow-type/index.js +0 -6
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +0 -2
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +0 -18
- package/dist/components/d-flow-validation/DFlowValidation.d.ts +0 -6
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +0 -23
- package/dist/components/d-flow-validation/DFlowValidation.js +0 -67
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +0 -3
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +0 -58
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +0 -4
- package/dist/components/d-flow-validation/DValueValidation.hook.js +0 -9
- package/dist/components/d-flow-validation/index.d.ts +0 -2
- package/dist/components/d-flow-validation/index.js +0 -6
- package/dist/components/d-license/DNamespaceLicense.service.d.ts +0 -11
- package/dist/components/d-license/DNamespaceLicense.service.js +0 -13
- package/dist/components/d-license/DNamespaceLicense.view.d.ts +0 -26
- package/dist/components/d-license/DNamespaceLicense.view.js +0 -57
- package/dist/components/d-license/index.d.ts +0 -2
- package/dist/components/d-license/index.js +0 -6
- package/dist/components/d-member/DNamespaceMember.service.d.ts +0 -13
- package/dist/components/d-member/DNamespaceMember.service.js +0 -18
- package/dist/components/d-member/DNamespaceMember.view.d.ts +0 -29
- package/dist/components/d-member/DNamespaceMember.view.js +0 -62
- package/dist/components/d-member/DNamespaceMemberCard.d.ts +0 -10
- package/dist/components/d-member/DNamespaceMemberCard.js +0 -16
- package/dist/components/d-member/DNamespaceMemberContent.d.ts +0 -10
- package/dist/components/d-member/DNamespaceMemberContent.js +0 -225
- package/dist/components/d-member/DNamespaceMemberList.d.ts +0 -12
- package/dist/components/d-member/DNamespaceMemberList.js +0 -24
- package/dist/components/d-member/index.d.ts +0 -4
- package/dist/components/d-member/index.js +0 -10
- package/dist/components/d-namespace/DNamespace.service.d.ts +0 -6
- package/dist/components/d-namespace/DNamespace.service.js +0 -13
- package/dist/components/d-namespace/DNamespace.view.d.ts +0 -32
- package/dist/components/d-namespace/DNamespace.view.js +0 -65
- package/dist/components/d-namespace/index.d.ts +0 -2
- package/dist/components/d-namespace/index.js +0 -6
- package/dist/components/d-organization/DOrganization.service.d.ts +0 -8
- package/dist/components/d-organization/DOrganization.service.js +0 -13
- package/dist/components/d-organization/DOrganization.view.d.ts +0 -23
- package/dist/components/d-organization/DOrganization.view.js +0 -55
- package/dist/components/d-organization/DOrganizationCard.d.ts +0 -11
- package/dist/components/d-organization/DOrganizationCard.js +0 -16
- package/dist/components/d-organization/DOrganizationList.d.ts +0 -10
- package/dist/components/d-organization/DOrganizationList.js +0 -24
- package/dist/components/d-organization/DOrganizationMenu.d.ts +0 -9
- package/dist/components/d-organization/DOrganizationMenu.js +0 -18
- package/dist/components/d-organization/DOrganizatonContent.d.ts +0 -10
- package/dist/components/d-organization/DOrganizatonContent.js +0 -102
- package/dist/components/d-organization/index.d.ts +0 -5
- package/dist/components/d-organization/index.js +0 -40
- package/dist/components/d-project/DNamespaceProject.service.d.ts +0 -13
- package/dist/components/d-project/DNamespaceProject.service.js +0 -13
- package/dist/components/d-project/DNamespaceProject.view.d.ts +0 -44
- package/dist/components/d-project/DNamespaceProject.view.js +0 -78
- package/dist/components/d-project/DNamespaceProjectCard.d.ts +0 -9
- package/dist/components/d-project/DNamespaceProjectCard.js +0 -17
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +0 -10
- package/dist/components/d-project/DNamespaceProjectContent.js +0 -72
- package/dist/components/d-project/DNamespaceProjectList.d.ts +0 -11
- package/dist/components/d-project/DNamespaceProjectList.js +0 -26
- package/dist/components/d-project/DNamespaceProjectMenu.d.ts +0 -13
- package/dist/components/d-project/DNamespaceProjectMenu.js +0 -57
- package/dist/components/d-project/index.d.ts +0 -5
- package/dist/components/d-project/index.js +0 -27
- package/dist/components/d-resizable/DResizable.d.ts +0 -12
- package/dist/components/d-role/DNamespaceRole.service.d.ts +0 -13
- package/dist/components/d-role/DNamespaceRole.service.js +0 -13
- package/dist/components/d-role/DNamespaceRole.view.d.ts +0 -29
- package/dist/components/d-role/DNamespaceRole.view.js +0 -61
- package/dist/components/d-role/DNamespaceRoleCard.d.ts +0 -11
- package/dist/components/d-role/DNamespaceRoleCard.js +0 -17
- package/dist/components/d-role/DNamespaceRoleContent.d.ts +0 -10
- package/dist/components/d-role/DNamespaceRoleContent.js +0 -163
- package/dist/components/d-role/DNamespaceRoleList.d.ts +0 -12
- package/dist/components/d-role/DNamespaceRoleList.js +0 -25
- package/dist/components/d-role/DNamespaceRolePermissions.d.ts +0 -5
- package/dist/components/d-role/DNamespaceRolePermissions.js +0 -123
- package/dist/components/d-role/index.d.ts +0 -4
- package/dist/components/d-role/index.js +0 -10
- package/dist/components/d-runtime/DRuntime.service.d.ts +0 -12
- package/dist/components/d-runtime/DRuntime.service.js +0 -9
- package/dist/components/d-runtime/DRuntime.view.d.ts +0 -41
- package/dist/components/d-runtime/DRuntime.view.js +0 -76
- package/dist/components/d-runtime/DRuntimeCard.d.ts +0 -9
- package/dist/components/d-runtime/DRuntimeCard.js +0 -18
- package/dist/components/d-runtime/DRuntimeContent.d.ts +0 -9
- package/dist/components/d-runtime/DRuntimeContent.js +0 -46
- package/dist/components/d-runtime/DRuntimeList.d.ts +0 -12
- package/dist/components/d-runtime/DRuntimeList.js +0 -29
- package/dist/components/d-runtime/index.d.ts +0 -4
- package/dist/components/d-runtime/index.js +0 -10
- package/dist/components/d-user/DUser.service.d.ts +0 -20
- package/dist/components/d-user/DUser.service.js +0 -18
- package/dist/components/d-user/DUser.session.hook.d.ts +0 -3
- package/dist/components/d-user/DUser.session.hook.js +0 -16
- package/dist/components/d-user/DUser.view.d.ts +0 -55
- package/dist/components/d-user/DUser.view.js +0 -103
- package/dist/components/d-user/DUserCard.d.ts +0 -8
- package/dist/components/d-user/DUserCard.js +0 -15
- package/dist/components/d-user/DUserContent.d.ts +0 -8
- package/dist/components/d-user/DUserContent.js +0 -52
- package/dist/components/d-user/DUserInput.d.ts +0 -7
- package/dist/components/d-user/DUserInput.js +0 -101
- package/dist/components/d-user/DUserList.d.ts +0 -9
- package/dist/components/d-user/DUserList.js +0 -23
- package/dist/components/d-user/DUserMenu.d.ts +0 -8
- package/dist/components/d-user/DUserMenu.js +0 -30
- package/dist/components/d-user/index.d.ts +0 -7
- package/dist/components/d-user/index.js +0 -27
- package/dist/node_modules/ldrs/dist/react/LineWobble.js +0 -6
- package/dist/utils/generics.d.ts +0 -21
- package/dist/utils/generics.js +0 -385
- /package/dist/assets/components/{d-fullscreen/DFullScreen.style.css → fullscreen/FullScreen.style.css} +0 -0
- /package/dist/assets/components/{d-layout/DLayout.style.css → layout/Layout.style.css} +0 -0
- /package/dist/assets/components/{d-resizable/DResizable.style.css → resizable/Resizable.style.css} +0 -0
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import I from "react";
|
|
3
|
-
import "../../_virtual/compiler-runtime.js";
|
|
4
|
-
import "@radix-ui/react-checkbox";
|
|
5
|
-
import "merge-props";
|
|
6
|
-
import "js-md5";
|
|
7
|
-
import "@tabler/icons-react";
|
|
8
|
-
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
9
|
-
import "../form/EmailInput.js";
|
|
10
|
-
import "../form/Input.js";
|
|
11
|
-
import "../form/InputSuggestion.js";
|
|
12
|
-
import "../form/NumberInput.js";
|
|
13
|
-
import "../form/PasswordInput.js";
|
|
14
|
-
import "@radix-ui/react-one-time-password-field";
|
|
15
|
-
import "@radix-ui/react-radio-group";
|
|
16
|
-
import "../form/SwitchInput.js";
|
|
17
|
-
import { TextInput as B } from "../form/TextInput.js";
|
|
18
|
-
import { MenuItem as D } from "../menu/Menu.js";
|
|
19
|
-
import { Text as b } from "../text/Text.js";
|
|
20
|
-
import { DFlowSuggestionMenuFooter as T } from "../d-flow-suggestion/DFlowSuggestionMenuFooter.js";
|
|
21
|
-
import { toInputSuggestions as x } from "../d-flow-suggestion/DFlowSuggestionMenu.util.js";
|
|
22
|
-
import { useService as S } from "../../utils/contextStore.js";
|
|
23
|
-
import { DFlowFunctionReactiveService as O } from "../d-flow-function/DFlowFunction.service.js";
|
|
24
|
-
import "../d-flow/DFlow.js";
|
|
25
|
-
import { DFlowReactiveService as h } from "../d-flow/DFlow.service.js";
|
|
26
|
-
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
27
|
-
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
28
|
-
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
29
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
30
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
31
|
-
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
32
|
-
import "../d-flow-data-type/variants/DFlowDataTypeNodeVariant.js";
|
|
33
|
-
import { useSuggestions as R } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
|
|
34
|
-
import { DFlowInputNodeBadge as j } from "./DFlowInputNodeBadge.js";
|
|
35
|
-
import { DFlowInputReferenceBadge as L } from "./DFlowInputReferenceBadge.js";
|
|
36
|
-
import { DFlowTypeReactiveService as $ } from "../d-flow-type/DFlowType.service.js";
|
|
37
|
-
const k = (d) => {
|
|
38
|
-
const o = [];
|
|
39
|
-
let p = "", m = "", n = 0, s = "", r = !1;
|
|
40
|
-
const f = () => {
|
|
41
|
-
p && o.push(p), p = "";
|
|
42
|
-
}, l = (e) => {
|
|
43
|
-
try {
|
|
44
|
-
return JSON.parse(e);
|
|
45
|
-
} catch {
|
|
46
|
-
try {
|
|
47
|
-
return JSON.parse(e.replace(/'/g, '"').replace(/([{,]\s*)([A-Za-z_$][\w$]*)(\s*:)/g, '$1"$2"$3'));
|
|
48
|
-
} catch {
|
|
49
|
-
return {};
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
return d.split("").forEach((e) => {
|
|
54
|
-
if (n > 0) {
|
|
55
|
-
if (m += e, r) {
|
|
56
|
-
r = !1;
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
if (e === "\\") {
|
|
60
|
-
r = !0;
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
if (s) {
|
|
64
|
-
e === s && (s = "");
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
if (e === '"' || e === "'") {
|
|
68
|
-
s = e;
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
e === "{" && n++, e === "}" && n--, n === 0 && (o.push(l(m)), m = "");
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
if (e === "{") {
|
|
75
|
-
f(), n = 1, m = "{";
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
p += e;
|
|
79
|
-
}), f(), o;
|
|
80
|
-
}, St = (d) => {
|
|
81
|
-
const {
|
|
82
|
-
flowId: o,
|
|
83
|
-
nodeId: p,
|
|
84
|
-
parameterId: m,
|
|
85
|
-
...n
|
|
86
|
-
} = d, s = S(O), r = S(h), f = S($), l = I.useMemo(() => r.getById(o), [r, o]), e = n.suggestions || R(o, p, m), F = I.useCallback((g) => {
|
|
87
|
-
const w = g == null ? g : String(g ?? "");
|
|
88
|
-
let u = 0;
|
|
89
|
-
const y = (t) => {
|
|
90
|
-
const i = {
|
|
91
|
-
type: "text",
|
|
92
|
-
value: t,
|
|
93
|
-
start: u,
|
|
94
|
-
end: u + t.length,
|
|
95
|
-
visualLength: t.length,
|
|
96
|
-
content: t
|
|
97
|
-
};
|
|
98
|
-
return u += t.length, i;
|
|
99
|
-
}, a = (t, i) => {
|
|
100
|
-
const N = {
|
|
101
|
-
type: "block",
|
|
102
|
-
value: i,
|
|
103
|
-
start: u,
|
|
104
|
-
end: u + JSON.stringify(i).length,
|
|
105
|
-
visualLength: 1,
|
|
106
|
-
content: t
|
|
107
|
-
};
|
|
108
|
-
return u += JSON.stringify(i).length, N;
|
|
109
|
-
};
|
|
110
|
-
return k(w).map((t) => {
|
|
111
|
-
if (typeof t != "object")
|
|
112
|
-
return y(t);
|
|
113
|
-
if (t?.__typename === "NodeFunctionIdWrapper" || t?.__typename === "NodeFunction") {
|
|
114
|
-
const i = t?.__typename === "NodeFunction" ? t : r.getNodeById(o, t.id);
|
|
115
|
-
return a(/* @__PURE__ */ c(j, { value: t, flowId: o, definition: s.getById(i?.functionDefinition.id) }), t);
|
|
116
|
-
}
|
|
117
|
-
if (t?.__typename === "ReferenceValue") {
|
|
118
|
-
const i = t.nodeFunctionId === "gid://sagittarius/NodeFunction/-1" ? f.getById(l?.type?.id) : s.getById(r.getNodeById(o, t.nodeFunctionId)?.functionDefinition?.id);
|
|
119
|
-
return a(/* @__PURE__ */ c(L, { flowId: o, definition: i, value: t }), t);
|
|
120
|
-
}
|
|
121
|
-
return t?.__typename === "LiteralValue" ? y(t.value) : y(t);
|
|
122
|
-
});
|
|
123
|
-
}, [s, r]);
|
|
124
|
-
return /* @__PURE__ */ c(B, { suggestionsEmptyState: /* @__PURE__ */ c(D, { children: /* @__PURE__ */ c(b, { children: "No suggestion found" }) }), suggestionsFooter: /* @__PURE__ */ c(T, {}), filterSuggestionsByLastToken: !0, enforceUniqueSuggestions: !0, validationUsesSyntax: !0, transformSyntax: F, suggestions: n.suggestions ? n.suggestions : x(e), ...n });
|
|
125
|
-
};
|
|
126
|
-
export {
|
|
127
|
-
St as DFlowInputDefault,
|
|
128
|
-
k as splitTextAndObjects
|
|
129
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { BadgeType } from '../badge/Badge';
|
|
3
|
-
import { LiteralValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
export interface DFlowInputLiteralBadgeProps extends Omit<BadgeType, 'value' | 'children'> {
|
|
5
|
-
value: LiteralValue;
|
|
6
|
-
}
|
|
7
|
-
export declare const DFlowInputLiteralBadge: React.FC<DFlowInputLiteralBadgeProps>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { c as n } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import { Badge as a } from "../badge/Badge.js";
|
|
4
|
-
import { Text as f } from "../text/Text.js";
|
|
5
|
-
const x = (m) => {
|
|
6
|
-
const e = n.c(9);
|
|
7
|
-
let t, r;
|
|
8
|
-
e[0] !== m ? ({
|
|
9
|
-
value: r,
|
|
10
|
-
...t
|
|
11
|
-
} = m, e[0] = m, e[1] = t, e[2] = r) : (t = e[1], r = e[2]);
|
|
12
|
-
let i;
|
|
13
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
14
|
-
verticalAlign: "middle"
|
|
15
|
-
}, e[3] = i) : i = e[3];
|
|
16
|
-
const c = String(r.value);
|
|
17
|
-
let l;
|
|
18
|
-
e[4] !== c ? (l = /* @__PURE__ */ s(f, { size: "sm", children: c }), e[4] = c, e[5] = l) : l = e[5];
|
|
19
|
-
let o;
|
|
20
|
-
return e[6] !== t || e[7] !== l ? (o = /* @__PURE__ */ s(a, { style: i, color: "secondary", ...t, children: l }), e[6] = t, e[7] = l, e[8] = o) : o = e[8], o;
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
x as DFlowInputLiteralBadge
|
|
24
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BadgeType } from '../badge/Badge';
|
|
2
|
-
import { Flow, NodeFunction, NodeFunctionIdWrapper } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
import { default as React } from 'react';
|
|
4
|
-
import { FunctionDefinitionView } from '../d-flow-function';
|
|
5
|
-
import { FlowTypeView } from '../d-flow-type';
|
|
6
|
-
export interface DFlowInputNodeBadgeProps extends Omit<BadgeType, 'value' | 'children'> {
|
|
7
|
-
value: NodeFunction | NodeFunctionIdWrapper;
|
|
8
|
-
flowId: Flow['id'];
|
|
9
|
-
definition?: FunctionDefinitionView | FlowTypeView;
|
|
10
|
-
}
|
|
11
|
-
export declare const DFlowInputNodeBadge: React.FC<DFlowInputNodeBadgeProps>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsxs as B, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { Badge as T } from "../badge/Badge.js";
|
|
3
|
-
import p from "react";
|
|
4
|
-
import { IconBolt as N, IconNote as h } from "@tabler/icons-react";
|
|
5
|
-
import { Text as x } from "../text/Text.js";
|
|
6
|
-
import { useService as n, useStore as m } from "../../utils/contextStore.js";
|
|
7
|
-
import "merge-props";
|
|
8
|
-
import "js-md5";
|
|
9
|
-
import { DFlowFunctionReactiveService as f } from "../d-flow-function/DFlowFunction.service.js";
|
|
10
|
-
import { hashToColor as D } from "../d-flow/DFlow.util.js";
|
|
11
|
-
import "../d-flow/DFlow.js";
|
|
12
|
-
import { DFlowReactiveService as d } from "../d-flow/DFlow.service.js";
|
|
13
|
-
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
14
|
-
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
15
|
-
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
16
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
17
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
18
|
-
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
19
|
-
import "../d-flow-data-type/variants/DFlowDataTypeNodeVariant.js";
|
|
20
|
-
import { DFlowTypeReactiveService as l } from "../d-flow-type/DFlowType.service.js";
|
|
21
|
-
import { FlowTypeView as R } from "../d-flow-type/DFlowType.view.js";
|
|
22
|
-
const X = (a) => {
|
|
23
|
-
const {
|
|
24
|
-
value: e,
|
|
25
|
-
flowId: c,
|
|
26
|
-
definition: o,
|
|
27
|
-
...u
|
|
28
|
-
} = a, w = o || n(f), y = o || m(f), s = o || n(d), g = o || m(d), v = o || n(l), S = o || m(l), t = e.__typename === "NodeFunctionIdWrapper" && e.id === "gid://sagittarius/NodeFunction/-1", r = p.useMemo(() => {
|
|
29
|
-
if (t && !o) {
|
|
30
|
-
const I = s.getById(c);
|
|
31
|
-
return v.getById(I?.type?.id);
|
|
32
|
-
}
|
|
33
|
-
return e.__typename === "NodeFunction" || o ? e : s.getNodeById(c, e.id);
|
|
34
|
-
}, [g, S]), F = p.useMemo(() => o ? o.names?.[0]?.content : t && r instanceof R ? r.names?.[0]?.content : w.getById(r?.functionDefinition?.id)?.names?.[0]?.content, [y, r]);
|
|
35
|
-
return /* @__PURE__ */ B(T, { style: {
|
|
36
|
-
verticalAlign: "middle",
|
|
37
|
-
textWrap: "nowrap"
|
|
38
|
-
}, color: t ? "info" : D(e.id || ""), border: !0, ...u, children: [
|
|
39
|
-
t ? /* @__PURE__ */ i(N, { size: 12 }) : /* @__PURE__ */ i(h, { size: 12 }),
|
|
40
|
-
/* @__PURE__ */ i(x, { size: "sm", style: {
|
|
41
|
-
color: "inherit"
|
|
42
|
-
}, children: String(F) })
|
|
43
|
-
] });
|
|
44
|
-
};
|
|
45
|
-
export {
|
|
46
|
-
X as DFlowInputNodeBadge
|
|
47
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BadgeType } from '../badge/Badge';
|
|
2
|
-
import { Flow, ReferenceValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
import { default as React } from 'react';
|
|
4
|
-
import { FunctionDefinitionView } from '../d-flow-function';
|
|
5
|
-
import { FlowTypeView } from '../d-flow-type';
|
|
6
|
-
export interface DFlowInputReferenceBadge extends Omit<BadgeType, 'value' | 'children'> {
|
|
7
|
-
value: ReferenceValue;
|
|
8
|
-
flowId: Flow['id'];
|
|
9
|
-
definition?: FunctionDefinitionView | FlowTypeView;
|
|
10
|
-
}
|
|
11
|
-
export declare const DFlowInputReferenceBadge: React.FC<DFlowInputReferenceBadge>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { Badge as c } from "../badge/Badge.js";
|
|
3
|
-
import m from "react";
|
|
4
|
-
import { Text as a } from "../text/Text.js";
|
|
5
|
-
import { Flex as f } from "../flex/Flex.js";
|
|
6
|
-
import { DFlowInputNodeBadge as u } from "./DFlowInputNodeBadge.js";
|
|
7
|
-
import { IconVariable as s } from "@tabler/icons-react";
|
|
8
|
-
const T = (t) => {
|
|
9
|
-
const {
|
|
10
|
-
value: e,
|
|
11
|
-
flowId: r,
|
|
12
|
-
definition: o,
|
|
13
|
-
...d
|
|
14
|
-
} = t, p = m.useMemo(() => e.nodeFunctionId && r ? /* @__PURE__ */ i(f, { align: "center", display: "inline-flex", children: [
|
|
15
|
-
/* @__PURE__ */ n(u, { definition: o, value: {
|
|
16
|
-
id: e.nodeFunctionId,
|
|
17
|
-
__typename: "NodeFunctionIdWrapper"
|
|
18
|
-
}, flowId: r }),
|
|
19
|
-
"inputTypeIdentifier" in e && e.inputTypeIdentifier ? "." + e.inputTypeIdentifier : "",
|
|
20
|
-
e.referencePath ? "." + (e.referencePath?.map((l) => l.path).join(".") ?? "") : ""
|
|
21
|
-
] }) : "undefineds", [e]);
|
|
22
|
-
return /* @__PURE__ */ i(c, { style: {
|
|
23
|
-
verticalAlign: "middle"
|
|
24
|
-
}, color: "warning", py: "0", border: !0, ...d, children: [
|
|
25
|
-
/* @__PURE__ */ n(s, { size: 12 }),
|
|
26
|
-
/* @__PURE__ */ n(a, { size: "sm", style: {
|
|
27
|
-
color: "inherit"
|
|
28
|
-
}, children: p })
|
|
29
|
-
] });
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
T as DFlowInputReferenceBadge
|
|
33
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Code0Component } from '../../utils';
|
|
2
|
-
import { Flow, NodeFunction } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
export interface DFlowNodeProps extends Record<string, unknown>, Code0Component<HTMLDivElement> {
|
|
4
|
-
nodeId: NodeFunction['id'];
|
|
5
|
-
flowId: Flow['id'];
|
|
6
|
-
color: string;
|
|
7
|
-
parentNodeId?: NodeFunction['id'];
|
|
8
|
-
isParameter?: boolean;
|
|
9
|
-
index?: number;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DataTypeIdentifier, Flow, NodeFunction } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
import { DFlowFunctionReactiveService } from '../d-flow-function';
|
|
3
|
-
import { DFlowDataTypeReactiveService } from '../d-flow-data-type';
|
|
4
|
-
export declare const useReturnTypes: (flowId: Flow["id"]) => Map<NodeFunction["id"], DataTypeIdentifier | null>;
|
|
5
|
-
export declare function getReturnTypesForFlow(flow: Flow, functionService: DFlowFunctionReactiveService, dataTypeService: DFlowDataTypeReactiveService): Map<NodeFunction['id'], DataTypeIdentifier | null>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { resolveGenericKeys as v, replaceGenericKeysInType as S } from "../../utils/generics.js";
|
|
2
|
-
import { useService as p, useStore as u } from "../../utils/contextStore.js";
|
|
3
|
-
import T from "react";
|
|
4
|
-
import "merge-props";
|
|
5
|
-
import "js-md5";
|
|
6
|
-
import { DFlowFunctionReactiveService as m } from "../d-flow-function/DFlowFunction.service.js";
|
|
7
|
-
import { DFlowDataTypeReactiveService as w } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
8
|
-
import "../d-flow/DFlow.js";
|
|
9
|
-
import { DFlowReactiveService as a } from "../d-flow/DFlow.service.js";
|
|
10
|
-
const h = (t) => {
|
|
11
|
-
const r = p(a), n = u(a), c = p(m), o = u(m), e = p(w);
|
|
12
|
-
return T.useMemo(() => {
|
|
13
|
-
const i = r.getById(t);
|
|
14
|
-
return d(i, c, e);
|
|
15
|
-
}, [t, n, o, e]);
|
|
16
|
-
};
|
|
17
|
-
function d(t, r, n) {
|
|
18
|
-
const c = t?.nodes?.nodes, o = /* @__PURE__ */ new Map();
|
|
19
|
-
return c?.forEach((e) => {
|
|
20
|
-
const i = e?.parameters?.nodes?.map((y) => y?.value) ?? [], s = r.getById(e?.functionDefinition?.id), f = v(s, i, n, r), l = s?.returnType ? S(s.returnType, f) : null;
|
|
21
|
-
e?.id && o.set(e.id, l);
|
|
22
|
-
}), o;
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
d as getReturnTypesForFlow,
|
|
26
|
-
h as useReturnTypes
|
|
27
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { DFlowNodeProps } from './DFlowNode';
|
|
4
|
-
export type DFlowNodeDefaultCardProps = NodeProps<Node<DFlowNodeProps>>;
|
|
5
|
-
export declare const DFlowNodeDefaultCard: React.FC<DFlowNodeDefaultCardProps>;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { jsxs as p, jsx as e, Fragment as j } from "react/jsx-runtime";
|
|
2
|
-
import { useService as v, useStore as w } from "../../utils/contextStore.js";
|
|
3
|
-
import { underlineBySeverity as E } from "../../utils/inspection.js";
|
|
4
|
-
import c, { memo as H } from "react";
|
|
5
|
-
import "merge-props";
|
|
6
|
-
import "js-md5";
|
|
7
|
-
import { useStore as h, useReactFlow as X, Handle as g, Position as m } from "@xyflow/react";
|
|
8
|
-
import { Card as Y } from "../card/Card.js";
|
|
9
|
-
import '../../assets/components/d-flow-node/DFlowNode.style.css';/* empty css */
|
|
10
|
-
import { Flex as q } from "../flex/Flex.js";
|
|
11
|
-
import { IconNote as D } from "@tabler/icons-react";
|
|
12
|
-
import { Text as y } from "../text/Text.js";
|
|
13
|
-
import { DFlowFunctionReactiveService as F } from "../d-flow-function/DFlowFunction.service.js";
|
|
14
|
-
import { useNodeValidation as G } from "../d-flow-validation/DNodeValidation.hook.js";
|
|
15
|
-
import "../d-flow/DFlow.js";
|
|
16
|
-
import { DFlowReactiveService as _ } from "../d-flow/DFlow.service.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 "../d-flow-data-type/variants/DFlowDataTypeNodeVariant.js";
|
|
24
|
-
import { FileTabsService as T } from "../file-tabs/FileTabs.service.js";
|
|
25
|
-
import { DFlowTabDefault as J } from "../d-flow-file/DFlowTabDefault.js";
|
|
26
|
-
import { Badge as K } from "../badge/Badge.js";
|
|
27
|
-
import { DFlowInputLiteralBadge as O } from "../d-flow-input/DFlowInputLiteralBadge.js";
|
|
28
|
-
import { DFlowInputReferenceBadge as Q } from "../d-flow-input/DFlowInputReferenceBadge.js";
|
|
29
|
-
import { DFlowInputNodeBadge as U } from "../d-flow-input/DFlowInputNodeBadge.js";
|
|
30
|
-
const Be = H((l) => {
|
|
31
|
-
const {
|
|
32
|
-
data: t,
|
|
33
|
-
id: u,
|
|
34
|
-
width: B = 0,
|
|
35
|
-
height: N = 0
|
|
36
|
-
} = l, M = h((r) => r.width), R = h((r) => r.height), z = X(), f = v(T), C = w(T), P = v(_), I = w(_), V = v(F), b = w(F), i = c.useMemo(() => P.getNodeById(t.flowId, t.nodeId), [I, t]), d = c.useMemo(() => i ? V.getById(i.functionDefinition?.id) : void 0, [b, t, i]), $ = G(t.nodeId, t.flowId), S = c.useMemo(() => f.getActiveTab()?.id, [C, f]), k = h((r) => {
|
|
37
|
-
const o = r.nodes.filter((a) => a.parentId === l.parentId);
|
|
38
|
-
let n;
|
|
39
|
-
return o.forEach((a) => {
|
|
40
|
-
const s = a.data?.index ?? 1 / 0, x = n?.data?.index ?? 1 / 0;
|
|
41
|
-
(!n || s < x) && (n = a);
|
|
42
|
-
}), n;
|
|
43
|
-
}), A = (r) => r.split(/(\$\{[^}]+\})/).filter(Boolean).flatMap((o) => o.startsWith("${") ? [o.slice(2, -1)] : o.split(/(\s*,\s*)/).filter(Boolean).flatMap((n) => n.trim() === "," ? [","] : n.trim() ? [n.trim()] : [])), L = c.useMemo(() => A(d?.displayMessages[0]?.content ?? "").map((r) => {
|
|
44
|
-
const o = i?.parameters?.nodes?.find((s) => d?.parameterDefinitions?.find((W) => W.id == s?.parameterDefinition?.id)?.identifier == r), n = $?.filter((s) => s.parameterId === o?.id), a = n?.length ? E[n[0].type] : {};
|
|
45
|
-
if (o) {
|
|
46
|
-
switch (o?.value?.__typename) {
|
|
47
|
-
case "LiteralValue":
|
|
48
|
-
return /* @__PURE__ */ e("div", { style: {
|
|
49
|
-
...a,
|
|
50
|
-
display: "inline-block"
|
|
51
|
-
}, children: /* @__PURE__ */ e(O, { value: o.value }) });
|
|
52
|
-
case "ReferenceValue":
|
|
53
|
-
return /* @__PURE__ */ e("div", { style: {
|
|
54
|
-
...a,
|
|
55
|
-
display: "inline-block"
|
|
56
|
-
}, children: /* @__PURE__ */ e(Q, { flowId: l.data.flowId, value: o.value }) });
|
|
57
|
-
case "NodeFunctionIdWrapper":
|
|
58
|
-
return /* @__PURE__ */ p("div", { style: {
|
|
59
|
-
...a,
|
|
60
|
-
display: "inline-block"
|
|
61
|
-
}, children: [
|
|
62
|
-
/* @__PURE__ */ e(U, { value: o.value, flowId: l.data.flowId }),
|
|
63
|
-
/* @__PURE__ */ e(g, { type: "target", position: m.Right, id: `param-${o?.id}`, isConnectable: !1, className: "d-flow-node__handle d-flow-node__handle--target" }, o?.id)
|
|
64
|
-
] });
|
|
65
|
-
}
|
|
66
|
-
return /* @__PURE__ */ e(K, { style: {
|
|
67
|
-
verticalAlign: "middle"
|
|
68
|
-
}, border: !0, children: /* @__PURE__ */ e(y, { size: "sm", children: r }) });
|
|
69
|
-
}
|
|
70
|
-
return " " + String(r) + " ";
|
|
71
|
-
}), [I, b, t, d]);
|
|
72
|
-
return c.useEffect(() => {
|
|
73
|
-
i?.id && f.registerTab({
|
|
74
|
-
id: i.id,
|
|
75
|
-
active: !1,
|
|
76
|
-
closeable: !0,
|
|
77
|
-
children: /* @__PURE__ */ p(j, { children: [
|
|
78
|
-
/* @__PURE__ */ e(D, { color: t.color, size: 12 }),
|
|
79
|
-
/* @__PURE__ */ e(y, { size: "sm", children: d?.names[0]?.content })
|
|
80
|
-
] }),
|
|
81
|
-
content: /* @__PURE__ */ e(J, { flowId: l.data.flowId, node: i })
|
|
82
|
-
});
|
|
83
|
-
}, [i?.id, d, t]), /* @__PURE__ */ p(Y, { "data-flow-refernce": u, paddingSize: "xs", py: "0.35", outline: k.id === u, borderColor: S == i?.id ? "info" : void 0, className: `d-flow-node ${S == i?.id ? "d-flow-node--active" : void 0}`, color: "primary", onClick: () => {
|
|
84
|
-
z.setViewport({
|
|
85
|
-
x: M / 2 + l.positionAbsoluteX * -1 - B / 2,
|
|
86
|
-
y: R / 2 + l.positionAbsoluteY * -1 - N / 2,
|
|
87
|
-
zoom: 1
|
|
88
|
-
}, {
|
|
89
|
-
duration: 250
|
|
90
|
-
}), f.activateTab(i?.id);
|
|
91
|
-
}, style: {
|
|
92
|
-
position: "relative"
|
|
93
|
-
}, children: [
|
|
94
|
-
/* @__PURE__ */ e(g, { isConnectable: !1, draggable: !1, type: "target", className: "d-flow-node__handle d-flow-node__handle--target", style: {
|
|
95
|
-
...t.isParameter ? {
|
|
96
|
-
right: "2px"
|
|
97
|
-
} : {
|
|
98
|
-
top: "2px"
|
|
99
|
-
}
|
|
100
|
-
}, position: t.isParameter ? m.Right : m.Top }),
|
|
101
|
-
/* @__PURE__ */ e(g, { isConnectable: !1, type: "source", style: {
|
|
102
|
-
...t.isParameter ? {
|
|
103
|
-
left: "2px"
|
|
104
|
-
} : {
|
|
105
|
-
bottom: "2px"
|
|
106
|
-
}
|
|
107
|
-
}, className: "d-flow-node__handle d-flow-node__handle--source", position: t.isParameter ? m.Left : m.Bottom }),
|
|
108
|
-
/* @__PURE__ */ p(q, { align: "center", style: {
|
|
109
|
-
gap: "0.7rem"
|
|
110
|
-
}, children: [
|
|
111
|
-
/* @__PURE__ */ e(D, { color: t.color, size: 16 }),
|
|
112
|
-
/* @__PURE__ */ e(y, { size: "md", children: L })
|
|
113
|
-
] })
|
|
114
|
-
] }, u);
|
|
115
|
-
});
|
|
116
|
-
export {
|
|
117
|
-
Be as DFlowNodeDefaultCard
|
|
118
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Node, NodeProps } from '@xyflow/react';
|
|
3
|
-
import { DFlowNodeProps } from './DFlowNode';
|
|
4
|
-
export type DFlowNodeGroupCardProps = NodeProps<Node<DFlowNodeProps>>;
|
|
5
|
-
export declare const DFlowNodeGroupCard: React.FC<DFlowNodeGroupCardProps>;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { jsx as i, jsxs as u } from "react/jsx-runtime";
|
|
2
|
-
import { c as h } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import { memo as g } from "react";
|
|
4
|
-
import { Handle as f, Position as p } from "@xyflow/react";
|
|
5
|
-
import { Card as y } from "../card/Card.js";
|
|
6
|
-
const R = g((s) => {
|
|
7
|
-
const o = h.c(10), {
|
|
8
|
-
data: t,
|
|
9
|
-
id: e
|
|
10
|
-
} = s;
|
|
11
|
-
let r;
|
|
12
|
-
o[0] !== t.color ? (r = _(t.color, 9), o[0] = t.color, o[1] = r) : r = o[1];
|
|
13
|
-
const a = `2px dashed ${x(t.color, 0.1)}`;
|
|
14
|
-
let n;
|
|
15
|
-
o[2] !== r || o[3] !== a ? (n = {
|
|
16
|
-
background: r,
|
|
17
|
-
border: a
|
|
18
|
-
}, o[2] = r, o[3] = a, o[4] = n) : n = o[4];
|
|
19
|
-
let l;
|
|
20
|
-
o[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ i(f, { type: "target", position: p.Top, className: "d-flow-node__handle d-flow-node__handle--target", isConnectable: !1, draggable: !1, style: {
|
|
21
|
-
top: "0px",
|
|
22
|
-
left: "50%",
|
|
23
|
-
transform: "translateX(-50%)"
|
|
24
|
-
} }), o[5] = l) : l = o[5];
|
|
25
|
-
let c;
|
|
26
|
-
o[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ i(f, { type: "source", position: p.Bottom, className: "d-flow-node__handle d-flow-node__handle--source", isConnectable: !1, draggable: !1, style: {
|
|
27
|
-
bottom: "0px",
|
|
28
|
-
left: "50%",
|
|
29
|
-
transform: "translateX(-50%)"
|
|
30
|
-
} }), o[6] = c) : c = o[6];
|
|
31
|
-
let d;
|
|
32
|
-
return o[7] !== e || o[8] !== n ? (d = /* @__PURE__ */ u(y, { w: "100%", h: "100%", style: n, children: [
|
|
33
|
-
l,
|
|
34
|
-
c
|
|
35
|
-
] }, e), o[7] = e, o[8] = n, o[9] = d) : d = o[9], d;
|
|
36
|
-
}), b = (s) => Math.min(Math.max(s, 0), 1), m = (s) => {
|
|
37
|
-
if (typeof document > "u")
|
|
38
|
-
return {
|
|
39
|
-
r: 0,
|
|
40
|
-
g: 0,
|
|
41
|
-
b: 0,
|
|
42
|
-
a: 1
|
|
43
|
-
};
|
|
44
|
-
const o = document.createElement("span");
|
|
45
|
-
o.style.color = s, document.body.appendChild(o);
|
|
46
|
-
const t = getComputedStyle(o).color;
|
|
47
|
-
document.body.removeChild(o);
|
|
48
|
-
const e = t.match(/rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*,\s*([\d.]+))?\s*\)/);
|
|
49
|
-
return e ? {
|
|
50
|
-
r: Math.round(Number(e[1])),
|
|
51
|
-
g: Math.round(Number(e[2])),
|
|
52
|
-
b: Math.round(Number(e[3])),
|
|
53
|
-
a: e[4] !== void 0 ? Number(e[4]) : 1
|
|
54
|
-
} : {
|
|
55
|
-
r: 0,
|
|
56
|
-
g: 0,
|
|
57
|
-
b: 0,
|
|
58
|
-
a: 1
|
|
59
|
-
};
|
|
60
|
-
}, _ = (s, o) => {
|
|
61
|
-
const t = b(o * 0.1), e = m(s), r = m("#030014"), a = (n, l) => Math.round(n * (1 - t) + l * t);
|
|
62
|
-
return `rgb(${a(e.r, r.r)}, ${a(e.g, r.g)}, ${a(e.b, r.b)})`;
|
|
63
|
-
}, x = (s, o) => {
|
|
64
|
-
const t = m(s);
|
|
65
|
-
return `rgba(${t.r}, ${t.g}, ${t.b}, ${b(o)})`;
|
|
66
|
-
};
|
|
67
|
-
export {
|
|
68
|
-
R as DFlowNodeGroupCard
|
|
69
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Node, NodeProps } from '@xyflow/react';
|
|
3
|
-
import { DFlowNodeProps } from './DFlowNode';
|
|
4
|
-
export type DFlowNodeTriggerCardProps = NodeProps<Node<DFlowNodeProps>>;
|
|
5
|
-
export declare const DFlowNodeTriggerCard: React.FC<DFlowNodeTriggerCardProps>;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as c, Fragment as B } from "react/jsx-runtime";
|
|
2
|
-
import l, { memo as I } from "react";
|
|
3
|
-
import { useReactFlow as C, useStore as d, Handle as D, Position as R } from "@xyflow/react";
|
|
4
|
-
import { Text as f } from "../text/Text.js";
|
|
5
|
-
import { useService as a, useStore as p } from "../../utils/contextStore.js";
|
|
6
|
-
import { FileTabsService as _ } from "../file-tabs/FileTabs.service.js";
|
|
7
|
-
import { Card as A } from "../card/Card.js";
|
|
8
|
-
import { Flex as M } from "../flex/Flex.js";
|
|
9
|
-
import { IconBolt as w } from "@tabler/icons-react";
|
|
10
|
-
import { DFlowTabTrigger as N } from "../d-flow-file/DFlowTabTrigger.js";
|
|
11
|
-
import { DFlowTypeReactiveService as h } from "../d-flow-type/DFlowType.service.js";
|
|
12
|
-
import "merge-props";
|
|
13
|
-
import "js-md5";
|
|
14
|
-
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
15
|
-
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
16
|
-
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
17
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
18
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
19
|
-
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
20
|
-
import "../d-flow-data-type/variants/DFlowDataTypeNodeVariant.js";
|
|
21
|
-
import { Badge as j } from "../badge/Badge.js";
|
|
22
|
-
import "../d-flow/DFlow.js";
|
|
23
|
-
import { DFlowReactiveService as g } from "../d-flow/DFlow.service.js";
|
|
24
|
-
const ne = I((i) => {
|
|
25
|
-
const {
|
|
26
|
-
data: n,
|
|
27
|
-
id: m
|
|
28
|
-
} = i, r = a(_), u = C(), v = a(h), S = p(h), b = a(g), y = p(g), t = l.useMemo(() => b.getById(n.flowId), [y, n]), e = l.useMemo(() => t ? v.getById(t.type?.id) : void 0, [S, t]), T = i.width ?? 0, x = i.height ?? 0, F = d((s) => s.width), z = d((s) => s.height);
|
|
29
|
-
return l.useEffect(() => {
|
|
30
|
-
!e?.id || !t || r.registerTab({
|
|
31
|
-
id: e?.id,
|
|
32
|
-
active: !0,
|
|
33
|
-
closeable: !0,
|
|
34
|
-
children: /* @__PURE__ */ c(B, { children: [
|
|
35
|
-
/* @__PURE__ */ o(w, { size: 12 }),
|
|
36
|
-
/* @__PURE__ */ o(f, { size: "sm", children: e?.names[0]?.content })
|
|
37
|
-
] }),
|
|
38
|
-
content: /* @__PURE__ */ o(N, { instance: t }),
|
|
39
|
-
show: !0
|
|
40
|
-
});
|
|
41
|
-
}, [e, n.instance, r, t]), /* @__PURE__ */ c(A, { variant: "normal", color: "info", paddingSize: "xs", "data-flow-refernce": m, className: `d-flow-node ${r.getActiveTab()?.id == e?.id ? "d-flow-node--active" : void 0}`, onClick: () => {
|
|
42
|
-
u.setViewport({
|
|
43
|
-
x: F / 2 + i.positionAbsoluteX * -1 - T / 2,
|
|
44
|
-
y: z / 2 + i.positionAbsoluteY * -1 - x / 2,
|
|
45
|
-
zoom: 1
|
|
46
|
-
}, {
|
|
47
|
-
duration: 250
|
|
48
|
-
}), r.activateTab(e?.id);
|
|
49
|
-
}, children: [
|
|
50
|
-
/* @__PURE__ */ o(j, { color: "info", pos: "absolute", top: "-0.35rem", left: "50%", style: {
|
|
51
|
-
transform: "translate(-50%, -100%)"
|
|
52
|
-
}, children: "Starting node" }),
|
|
53
|
-
/* @__PURE__ */ c(M, { style: {
|
|
54
|
-
gap: "0.7rem"
|
|
55
|
-
}, align: "center", children: [
|
|
56
|
-
/* @__PURE__ */ o(w, { size: 16 }),
|
|
57
|
-
/* @__PURE__ */ o(f, { display: "block", children: e?.displayMessages[0]?.content ?? e?.id })
|
|
58
|
-
] }),
|
|
59
|
-
/* @__PURE__ */ o(D, { isConnectable: !1, type: "source", style: {
|
|
60
|
-
bottom: "2px"
|
|
61
|
-
}, className: "d-flow-node__handle d-flow-node__handle--source", position: R.Bottom })
|
|
62
|
-
] }, m);
|
|
63
|
-
});
|
|
64
|
-
export {
|
|
65
|
-
ne as DFlowNodeTriggerCard
|
|
66
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import c from "react";
|
|
3
|
-
import { Panel as u } from "@xyflow/react";
|
|
4
|
-
import { useService as w, useStore as b } from "../../utils/contextStore.js";
|
|
5
|
-
import "merge-props";
|
|
6
|
-
import "js-md5";
|
|
7
|
-
import "../d-flow/DFlow.js";
|
|
8
|
-
import { DFlowReactiveService as m } from "../d-flow/DFlow.service.js";
|
|
9
|
-
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
10
|
-
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
11
|
-
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
12
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
13
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
14
|
-
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
15
|
-
import "../d-flow-data-type/variants/DFlowDataTypeNodeVariant.js";
|
|
16
|
-
import { Button as x } from "../button/Button.js";
|
|
17
|
-
const I = (p) => {
|
|
18
|
-
const {
|
|
19
|
-
flowId: r
|
|
20
|
-
} = p, l = w(m), s = b(m), t = c.useMemo(() => l.getById(r), [s, r]), a = c.useCallback(() => {
|
|
21
|
-
if (!t) return;
|
|
22
|
-
const e = t;
|
|
23
|
-
if (!e) return;
|
|
24
|
-
const f = JSON.stringify(e, null, 2), d = new Blob([f], {
|
|
25
|
-
type: "application/json"
|
|
26
|
-
}), i = URL.createObjectURL(d), o = document.createElement("a");
|
|
27
|
-
o.href = i, o.download = `flow-${t.name}.json`, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(i);
|
|
28
|
-
}, [t]);
|
|
29
|
-
return /* @__PURE__ */ n(u, { position: "top-right", children: /* @__PURE__ */ n(x, { paddingSize: "xxs", onClick: a, children: "Export flow" }) });
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
I as DFlowExport
|
|
33
|
-
};
|