@code0-tech/pictor 0.0.0-mvp.46 → 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 +14 -15
- 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/package.json +18 -18
- 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 -156
- 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 -231
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -235
- 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 -106
- 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/DFlowInput.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInput.js +0 -29
- 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 -5
- 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/DFlowInputObject.d.ts +0 -10
- package/dist/components/d-flow-input/DFlowInputObject.js +0 -83
- package/dist/components/d-flow-input/DFlowInputObjectEditDialog.d.ts +0 -16
- package/dist/components/d-flow-input/DFlowInputObjectEditDialog.js +0 -118
- package/dist/components/d-flow-input/DFlowInputObjectTree.d.ts +0 -16
- package/dist/components/d-flow-input/DFlowInputObjectTree.js +0 -99
- 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/DFlowNodeReference.return.hook.d.ts +0 -4
- package/dist/components/d-flow-node/DFlowNodeReference.return.hook.js +0 -77
- 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 -133
- 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 -66
- 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 -63
- 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 -373
- /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,118 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import c from "react";
|
|
3
|
-
import { Dialog as F, DialogPortal as I, DialogOverlay as G, DialogContent as H, DialogClose as L } from "../dialog/Dialog.js";
|
|
4
|
-
import { DLayout as B } from "../d-layout/DLayout.js";
|
|
5
|
-
import { Flex as N } from "../flex/Flex.js";
|
|
6
|
-
import { Text as X } from "../text/Text.js";
|
|
7
|
-
import { DResizablePanelGroup as q, DResizablePanel as v, DResizableHandle as J } from "../d-resizable/DResizable.js";
|
|
8
|
-
import { ScrollArea as K, ScrollAreaViewport as M, ScrollAreaScrollbar as S, ScrollAreaThumb as C } from "../scroll-area/ScrollArea.js";
|
|
9
|
-
import { Spacing as b } from "../spacing/Spacing.js";
|
|
10
|
-
import { Button as Q } from "../button/Button.js";
|
|
11
|
-
import { IconX as U } from "@tabler/icons-react";
|
|
12
|
-
import { Editor as W } from "../editor/Editor.js";
|
|
13
|
-
import { DFlowInputObjectTree as Y } from "./DFlowInputObjectTree.js";
|
|
14
|
-
function O(r, i) {
|
|
15
|
-
if (!r || !Array.isArray(i) || i.length === 0) return r?.value;
|
|
16
|
-
let e = r.value;
|
|
17
|
-
for (const n of i)
|
|
18
|
-
if (e && typeof e == "object" && n in e)
|
|
19
|
-
e = e[n];
|
|
20
|
-
else
|
|
21
|
-
return;
|
|
22
|
-
return e;
|
|
23
|
-
}
|
|
24
|
-
function m(r, i, e) {
|
|
25
|
-
if (!r) return null;
|
|
26
|
-
if (i.length === 0) return {
|
|
27
|
-
...r,
|
|
28
|
-
value: e
|
|
29
|
-
};
|
|
30
|
-
const [n, ...u] = i;
|
|
31
|
-
if (Array.isArray(r.value)) {
|
|
32
|
-
const l = Number(n), s = [...r.value];
|
|
33
|
-
return u.length > 0 && typeof s[l] == "object" && s[l] !== null ? s[l] = m({
|
|
34
|
-
...r,
|
|
35
|
-
value: s[l]
|
|
36
|
-
}, u, e)?.value : s[l] = e, {
|
|
37
|
-
...r,
|
|
38
|
-
value: s
|
|
39
|
-
};
|
|
40
|
-
} else if (typeof r.value == "object" && r.value !== null) {
|
|
41
|
-
const l = {
|
|
42
|
-
...r.value
|
|
43
|
-
};
|
|
44
|
-
return u.length > 0 && typeof l[n] == "object" && l[n] !== null ? l[n] = m({
|
|
45
|
-
...r,
|
|
46
|
-
value: l[n]
|
|
47
|
-
}, u, e)?.value : l[n] = e, {
|
|
48
|
-
...r,
|
|
49
|
-
value: l
|
|
50
|
-
};
|
|
51
|
-
} else
|
|
52
|
-
return {
|
|
53
|
-
...r,
|
|
54
|
-
value: e
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
const ue = (r) => {
|
|
58
|
-
const {
|
|
59
|
-
open: i,
|
|
60
|
-
entry: e,
|
|
61
|
-
value: n,
|
|
62
|
-
onObjectChange: u,
|
|
63
|
-
onOpenChange: l
|
|
64
|
-
} = r, [s, E] = c.useState(i), [w, A] = c.useState({}), [f, g] = c.useState(e?.path ?? []), [h, y] = c.useState(n), [x, k] = c.useState(O(n, e?.path ?? [])), d = c.useRef(null);
|
|
65
|
-
c.useEffect(() => {
|
|
66
|
-
k(O(h, f));
|
|
67
|
-
}, [f]), c.useEffect(() => {
|
|
68
|
-
g(e?.path ?? []), y(n);
|
|
69
|
-
}, [e]), c.useEffect(() => {
|
|
70
|
-
E(i);
|
|
71
|
-
}, [i]);
|
|
72
|
-
const D = (o, a) => {
|
|
73
|
-
A((j) => ({
|
|
74
|
-
...j,
|
|
75
|
-
[o.join(".")]: a
|
|
76
|
-
}));
|
|
77
|
-
}, z = (o) => {
|
|
78
|
-
d.current && clearTimeout(d.current), d.current = setTimeout(() => {
|
|
79
|
-
g(o.path ?? []);
|
|
80
|
-
}, 200);
|
|
81
|
-
}, P = (o, a) => {
|
|
82
|
-
d.current && clearTimeout(d.current), D(o, !a);
|
|
83
|
-
}, R = (o) => {
|
|
84
|
-
const a = m(h, f, o);
|
|
85
|
-
y(a), u?.(a);
|
|
86
|
-
}, T = () => null, V = {};
|
|
87
|
-
return /* @__PURE__ */ t(F, { open: s, onOpenChange: (o) => l?.(o), children: /* @__PURE__ */ p(I, { children: [
|
|
88
|
-
/* @__PURE__ */ t(G, {}),
|
|
89
|
-
/* @__PURE__ */ t(H, { "aria-describedby": "DFlowInputObjectEditDialog", onPointerDownOutside: (o) => {
|
|
90
|
-
const a = o.target;
|
|
91
|
-
(a.closest("[data-slot=resizable-handle]") || a.closest("[data-slot=resizable-panel]")) && o.preventDefault();
|
|
92
|
-
}, w: "75%", h: "75%", style: {
|
|
93
|
-
padding: "2px"
|
|
94
|
-
}, children: /* @__PURE__ */ t(B, { layoutGap: 0, showLayoutSplitter: !1, topContent: /* @__PURE__ */ p(N, { style: {
|
|
95
|
-
gap: ".7rem"
|
|
96
|
-
}, p: 0.7, justify: "space-between", align: "center", children: [
|
|
97
|
-
/* @__PURE__ */ t(X, { children: e?.key ?? "Edit Object" }),
|
|
98
|
-
/* @__PURE__ */ t(L, { asChild: !0, children: /* @__PURE__ */ t(Q, { variant: "filled", color: "tertiary", paddingSize: "xxs", children: /* @__PURE__ */ t(U, { size: 13 }) }) })
|
|
99
|
-
] }), children: /* @__PURE__ */ p(q, { style: {
|
|
100
|
-
borderRadius: "1rem"
|
|
101
|
-
}, children: [
|
|
102
|
-
/* @__PURE__ */ t(v, { color: "primary", children: /* @__PURE__ */ p(K, { h: "100%", w: "100%", type: "scroll", children: [
|
|
103
|
-
/* @__PURE__ */ p(M, { px: 1, children: [
|
|
104
|
-
/* @__PURE__ */ t(b, { spacing: "md" }),
|
|
105
|
-
/* @__PURE__ */ t(Y, { object: h, onEntryClick: z, collapsedState: w, setCollapsedState: D, activePath: f, onDoubleClick: P }),
|
|
106
|
-
/* @__PURE__ */ t(b, { spacing: "md" })
|
|
107
|
-
] }),
|
|
108
|
-
/* @__PURE__ */ t(S, { orientation: "vertical", children: /* @__PURE__ */ t(C, {}) }),
|
|
109
|
-
/* @__PURE__ */ t(S, { orientation: "horizontal", children: /* @__PURE__ */ t(C, {}) })
|
|
110
|
-
] }) }),
|
|
111
|
-
/* @__PURE__ */ t(J, {}),
|
|
112
|
-
/* @__PURE__ */ t(v, { color: "primary", children: /* @__PURE__ */ t(W, { suggestions: T, tokenHighlights: V, language: "json", initialValue: x, onChange: R }) })
|
|
113
|
-
] }) }) })
|
|
114
|
-
] }) });
|
|
115
|
-
};
|
|
116
|
-
export {
|
|
117
|
-
ue as default
|
|
118
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { EditableObjectEntry } from './DFlowInputObject';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { LiteralValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
export interface DFlowInputObjectTreeProps {
|
|
5
|
-
object: LiteralValue;
|
|
6
|
-
parentKey?: string;
|
|
7
|
-
isRoot?: boolean;
|
|
8
|
-
onEntryClick: (entry: EditableObjectEntry) => void;
|
|
9
|
-
collapsedState: Record<string, boolean>;
|
|
10
|
-
setCollapsedState: (path: string[], collapsed: boolean) => void;
|
|
11
|
-
path?: string[];
|
|
12
|
-
activePath?: string[] | null;
|
|
13
|
-
onDoubleClick?: (path: string[], isCollapsed: boolean) => void;
|
|
14
|
-
parentColor?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const DFlowInputObjectTree: React.FC<DFlowInputObjectTreeProps>;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as u } from "react/jsx-runtime";
|
|
2
|
-
import N from "react";
|
|
3
|
-
import { IconChevronUp as w, IconChevronDown as R } from "@tabler/icons-react";
|
|
4
|
-
import { Flex as j } from "../flex/Flex.js";
|
|
5
|
-
import { Text as a } from "../text/Text.js";
|
|
6
|
-
import "../../utils/contextStore.js";
|
|
7
|
-
import { hashToColor as I } from "../../utils/utils.js";
|
|
8
|
-
import { Badge as A } from "../badge/Badge.js";
|
|
9
|
-
const F = (O) => {
|
|
10
|
-
const {
|
|
11
|
-
object: g,
|
|
12
|
-
parentKey: v,
|
|
13
|
-
isRoot: p = !v,
|
|
14
|
-
onEntryClick: _,
|
|
15
|
-
collapsedState: d,
|
|
16
|
-
setCollapsedState: y,
|
|
17
|
-
path: m = [],
|
|
18
|
-
activePath: i = null,
|
|
19
|
-
onDoubleClick: x,
|
|
20
|
-
parentColor: E
|
|
21
|
-
} = O, o = p ? g?.value : g;
|
|
22
|
-
if (typeof o != "object" || o === null) return null;
|
|
23
|
-
const n = N.useRef(null), S = 250, T = (e) => {
|
|
24
|
-
n.current && clearTimeout(n.current), n.current = setTimeout(() => {
|
|
25
|
-
_(e), n.current = null;
|
|
26
|
-
}, S);
|
|
27
|
-
}, k = (e, r) => {
|
|
28
|
-
n.current && (clearTimeout(n.current), n.current = null), x ? x(e, r) : y(e, !r);
|
|
29
|
-
};
|
|
30
|
-
N.useEffect(() => {
|
|
31
|
-
const e = m ?? [], r = (p ? ["root"] : e).join(".");
|
|
32
|
-
e.length > 1 && d[r] === void 0 && y(e.length === 0 ? ["root"] : e, !0);
|
|
33
|
-
}, [m, p, d, y]);
|
|
34
|
-
const W = () => {
|
|
35
|
-
const e = [...m], r = "root", l = d[r] || !1, h = typeof o == "object" && o !== null && (Array.isArray(o) ? o.length > 0 : Object.keys(o).length > 0), c = Array.isArray(i) && i.length === 0 && v === void 0;
|
|
36
|
-
return /* @__PURE__ */ u("div", { onClick: (s) => {
|
|
37
|
-
s.stopPropagation(), T({
|
|
38
|
-
key: r,
|
|
39
|
-
value: g,
|
|
40
|
-
path: e
|
|
41
|
-
});
|
|
42
|
-
}, onDoubleClick: (s) => {
|
|
43
|
-
s.stopPropagation(), k(e, l);
|
|
44
|
-
}, "aria-selected": c || void 0, children: [
|
|
45
|
-
/* @__PURE__ */ u(j, { align: "center", style: {
|
|
46
|
-
gap: ".35rem",
|
|
47
|
-
textWrap: "nowrap"
|
|
48
|
-
}, "aria-selected": c || void 0, className: "rule", children: [
|
|
49
|
-
h ? l ? /* @__PURE__ */ t(w, { size: 13 }) : /* @__PURE__ */ t(R, { size: 13 }) : null,
|
|
50
|
-
/* @__PURE__ */ t(a, { hierarchy: "tertiary", children: Array.isArray(o) ? "is a list of" : "is a nested object" })
|
|
51
|
-
] }),
|
|
52
|
-
!l && /* @__PURE__ */ t("ul", { children: z })
|
|
53
|
-
] });
|
|
54
|
-
}, z = Array.isArray(o) || o && typeof o == "object" ? Object.entries(o).map(([e, r]) => {
|
|
55
|
-
const l = [...m, e], h = l.join("."), c = d[h] || !1, b = i && i.length > 0 && l.join(".") === i.join("."), s = E ?? I("root"), f = typeof r == "object" && r !== null && (Array.isArray(r) ? r.length > 0 : Object.keys(r ?? {}).length > 0), K = f ? I(h) : s, B = f ? /* @__PURE__ */ u(j, { align: "center", style: {
|
|
56
|
-
gap: ".35rem",
|
|
57
|
-
textWrap: "nowrap"
|
|
58
|
-
}, className: "rule", "aria-selected": b || void 0, children: [
|
|
59
|
-
f ? c ? /* @__PURE__ */ t(w, { size: 13 }) : /* @__PURE__ */ t(R, { size: 13 }) : null,
|
|
60
|
-
/* @__PURE__ */ t(A, { border: !0, color: K, style: {
|
|
61
|
-
verticalAlign: "middle"
|
|
62
|
-
}, children: /* @__PURE__ */ t(a, { size: "xs", style: {
|
|
63
|
-
color: "inherit"
|
|
64
|
-
}, children: e }) }),
|
|
65
|
-
/* @__PURE__ */ t(a, { hierarchy: "tertiary", children: Array.isArray(r) ? "is a list of" : "is a nested object" })
|
|
66
|
-
] }) : /* @__PURE__ */ u(j, { align: "center", style: {
|
|
67
|
-
gap: ".35rem",
|
|
68
|
-
textWrap: "nowrap"
|
|
69
|
-
}, className: "rule", "aria-selected": b || void 0, children: [
|
|
70
|
-
/* @__PURE__ */ t(A, { border: !0, color: s, style: {
|
|
71
|
-
verticalAlign: "middle"
|
|
72
|
-
}, children: /* @__PURE__ */ t(a, { size: "xs", style: {
|
|
73
|
-
color: "inherit"
|
|
74
|
-
}, children: e }) }),
|
|
75
|
-
/* @__PURE__ */ t(a, { hierarchy: "tertiary", children: "has value" }),
|
|
76
|
-
/* @__PURE__ */ t(A, { border: !0, color: "tertiary", style: {
|
|
77
|
-
verticalAlign: "middle"
|
|
78
|
-
}, children: /* @__PURE__ */ t(a, { size: "xs", style: {
|
|
79
|
-
color: "inherit"
|
|
80
|
-
}, children: String(r) }) })
|
|
81
|
-
] });
|
|
82
|
-
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ u("div", { onClick: (C) => {
|
|
83
|
-
C.stopPropagation(), T({
|
|
84
|
-
key: e,
|
|
85
|
-
value: r,
|
|
86
|
-
path: l
|
|
87
|
-
});
|
|
88
|
-
}, onDoubleClick: (C) => {
|
|
89
|
-
C.stopPropagation(), k(l, c);
|
|
90
|
-
}, children: [
|
|
91
|
-
B,
|
|
92
|
-
f && !c ? /* @__PURE__ */ t(F, { object: r, parentKey: e, isRoot: !1, onEntryClick: _, collapsedState: d, setCollapsedState: y, path: l, activePath: i, parentColor: K }) : null
|
|
93
|
-
] }) }, h);
|
|
94
|
-
}) : null, D = W(), P = ((D && p ? [D] : z) ?? []).filter(Boolean);
|
|
95
|
-
return P.length === 0 ? null : /* @__PURE__ */ t("ul", { children: P });
|
|
96
|
-
};
|
|
97
|
-
export {
|
|
98
|
-
F as DFlowInputObjectTree
|
|
99
|
-
};
|
|
@@ -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 r } from "react/jsx-runtime";
|
|
2
|
-
import { Badge as m } from "../badge/Badge.js";
|
|
3
|
-
import a from "react";
|
|
4
|
-
import { Text as c } 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: n,
|
|
12
|
-
definition: o,
|
|
13
|
-
...d
|
|
14
|
-
} = t, p = a.useMemo(() => n ? /* @__PURE__ */ i(f, { align: "center", display: "inline-flex", children: [
|
|
15
|
-
/* @__PURE__ */ r(u, { definition: o, value: {
|
|
16
|
-
id: e.nodeFunctionId,
|
|
17
|
-
__typename: "NodeFunctionIdWrapper"
|
|
18
|
-
}, flowId: n }),
|
|
19
|
-
"inputTypeIdentifier" in e && e.inputTypeIdentifier ? "." + e.inputTypeIdentifier : "",
|
|
20
|
-
e.referencePath ? "." + (e.referencePath?.map((l) => l.path).join(".") ?? "") : ""
|
|
21
|
-
] }) : "undefined", [e]);
|
|
22
|
-
return /* @__PURE__ */ i(m, { style: {
|
|
23
|
-
verticalAlign: "middle"
|
|
24
|
-
}, color: "warning", py: "0", border: !0, ...d, children: [
|
|
25
|
-
/* @__PURE__ */ r(s, { size: 12 }),
|
|
26
|
-
/* @__PURE__ */ r(c, { 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,4 +0,0 @@
|
|
|
1
|
-
import { DataTypeIdentifier, FlowType, NodeFunction, ReferenceValue } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
import { DFlowFunctionReactiveService, FunctionDefinitionView } from '../d-flow-function';
|
|
3
|
-
import { DFlowDataTypeReactiveService } from '../d-flow-data-type';
|
|
4
|
-
export declare const getReferenceType: (reference: ReferenceValue, dataTypeService: DFlowDataTypeReactiveService, functionService: DFlowFunctionReactiveService, functionDefinition?: FunctionDefinitionView, node?: NodeFunction, flowType?: FlowType) => DataTypeIdentifier | undefined;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { resolveGenericKeys as M, targetForGenericKey as T, replaceGenericKeysInType as h, resolveType as m } from "../../utils/generics.js";
|
|
2
|
-
const G = (e, o, c, D, f, y) => {
|
|
3
|
-
let t, g = /* @__PURE__ */ new Map();
|
|
4
|
-
if (e.nodeFunctionId && (e.inputIndex === void 0 || e.parameterIndex === void 0)) {
|
|
5
|
-
const n = D;
|
|
6
|
-
if (n && n.returnType) {
|
|
7
|
-
if (t = n.returnType, f && f.parameters && n.parameterDefinitions) {
|
|
8
|
-
const r = f.parameters.nodes?.map((a) => a?.value).filter(Boolean);
|
|
9
|
-
if (g = M(n, r, o, c), t) {
|
|
10
|
-
const a = T(n, t), l = new Map(Array.from(g.entries()).filter(([, i]) => i && i.__typename === "DataTypeIdentifier")), p = new Map([...l.entries()].map(([i, u]) => [a.get(i) ?? i, u]));
|
|
11
|
-
t = h(t, p);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
t = t ? m(t, o) : void 0;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
if (e.nodeFunctionId && e.inputIndex !== void 0 && e.inputIndex !== null && e.parameterIndex !== void 0 && e.parameterIndex !== null) {
|
|
18
|
-
const n = D;
|
|
19
|
-
if (n && n.parameterDefinitions) {
|
|
20
|
-
const r = n.parameterDefinitions[e.parameterIndex];
|
|
21
|
-
if (r && r.dataTypeIdentifier) {
|
|
22
|
-
const a = o.getDataType(r.dataTypeIdentifier);
|
|
23
|
-
if (a && a.rules?.nodes) {
|
|
24
|
-
const l = a.rules.nodes.find((p) => p?.variant === "INPUT_TYPES");
|
|
25
|
-
if (l && l.config) {
|
|
26
|
-
const p = l.config;
|
|
27
|
-
if (Array.isArray(p.inputTypes) && e.inputIndex !== void 0 && e.inputIndex !== null) {
|
|
28
|
-
const i = p.inputTypes[e.inputIndex];
|
|
29
|
-
if (i && i.dataTypeIdentifier) {
|
|
30
|
-
if (t = i.dataTypeIdentifier, f && f.parameters && n.parameterDefinitions && t) {
|
|
31
|
-
const u = f.parameters.nodes?.map((d) => d?.value).filter(Boolean);
|
|
32
|
-
g = M(n, u, o, c);
|
|
33
|
-
const s = T(n, t), I = new Map(Array.from(g.entries()).filter(([, d]) => d && d.__typename === "DataTypeIdentifier")), v = new Map([...I.entries()].map(([d, _]) => [s.get(d) ?? d, _]));
|
|
34
|
-
t = h(t, v);
|
|
35
|
-
}
|
|
36
|
-
t = t ? m(t, o) : void 0;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
if (!t) {
|
|
42
|
-
if (t = r.dataTypeIdentifier, f && f.parameters && n.parameterDefinitions && t) {
|
|
43
|
-
const l = f.parameters.nodes?.map((s) => s?.value).filter(Boolean);
|
|
44
|
-
g = M(n, l, o, c);
|
|
45
|
-
const p = T(n, t), i = new Map(Array.from(g.entries()).filter(([, s]) => s && s.__typename === "DataTypeIdentifier")), u = new Map([...i.entries()].map(([s, I]) => [p.get(s) ?? s, I]));
|
|
46
|
-
t = h(t, u);
|
|
47
|
-
}
|
|
48
|
-
t = t ? m(t, o) : void 0;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
!e.nodeFunctionId && y && y.inputType && (t = {
|
|
54
|
-
dataType: y.inputType
|
|
55
|
-
}, t = t ? m(t, o) : void 0);
|
|
56
|
-
function x(n, r) {
|
|
57
|
-
if (!n || !r || r.length === 0) return n;
|
|
58
|
-
const [a, ...l] = r, p = n.dataType ? o.getDataType(n) : n.genericType?.dataType;
|
|
59
|
-
if (!p || !p.rules?.nodes) return n;
|
|
60
|
-
const i = p.rules.nodes.find((s) => s?.variant === "CONTAINS_KEY" && s.config?.key === a.path);
|
|
61
|
-
if (!i || !i.config) return n;
|
|
62
|
-
const u = i.config;
|
|
63
|
-
return u.dataTypeIdentifier ? x(u.dataTypeIdentifier, l) : n;
|
|
64
|
-
}
|
|
65
|
-
if (t && e.referencePath && e.referencePath.length > 0) {
|
|
66
|
-
const n = e.referencePath.map((a) => ({
|
|
67
|
-
path: typeof a.path == "string" ? a.path : void 0
|
|
68
|
-
})).filter((a) => !!a.path);
|
|
69
|
-
if (n.length !== e.referencePath.length) return t ? m(t, o) : void 0;
|
|
70
|
-
const r = x(t, n);
|
|
71
|
-
return r ? m(r, o) : void 0;
|
|
72
|
-
}
|
|
73
|
-
return t ? m(t, o) : void 0;
|
|
74
|
-
};
|
|
75
|
-
export {
|
|
76
|
-
G as getReferenceType
|
|
77
|
-
};
|
|
@@ -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>;
|