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