@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,29 +0,0 @@
|
|
|
1
|
-
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import e from "react";
|
|
3
|
-
import { DFlowInputDefault as R } from "./DFlowInputDefault.js";
|
|
4
|
-
import { useService as a, useStore as c } from "../../utils/contextStore.js";
|
|
5
|
-
import "merge-props";
|
|
6
|
-
import "js-md5";
|
|
7
|
-
import "../d-flow/DFlow.js";
|
|
8
|
-
import { DFlowReactiveService as u } from "../d-flow/DFlow.service.js";
|
|
9
|
-
import { DFlowFunctionReactiveService as D } from "../d-flow-function/DFlowFunction.service.js";
|
|
10
|
-
import { DFlowDataTypeReactiveService as l } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
11
|
-
import { DFlowInputObject as M } from "./DFlowInputObject.js";
|
|
12
|
-
const Y = (v) => {
|
|
13
|
-
const {
|
|
14
|
-
flowId: t,
|
|
15
|
-
nodeId: o,
|
|
16
|
-
parameterId: i,
|
|
17
|
-
...m
|
|
18
|
-
} = v, S = a(u), w = c(u), y = a(l), I = c(l), T = a(D), F = c(D), r = e.useMemo(() => S.getNodeById(t, o), [w, t, o]), p = e.useMemo(() => r?.parameters?.nodes?.find((n) => n?.id === i), [r, i]), s = e.useMemo(() => T.getById(r?.functionDefinition?.id), [F, r]), f = e.useMemo(() => s?.parameterDefinitions?.find((n) => n.id === p?.parameterDefinition?.id), [s, p]);
|
|
19
|
-
switch (e.useMemo(() => y.getDataType(f?.dataTypeIdentifier), [I, f])?.variant) {
|
|
20
|
-
case "ARRAY":
|
|
21
|
-
case "OBJECT":
|
|
22
|
-
return /* @__PURE__ */ d(M, { flowId: t, nodeId: o, parameterId: i, ...m });
|
|
23
|
-
default:
|
|
24
|
-
return /* @__PURE__ */ d(R, { flowId: t, nodeId: o, parameterId: i, ...m });
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
Y as DFlowInput
|
|
29
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ValidationProps } from '../form';
|
|
2
|
-
import { DataTypeIdentifier, DataTypeRule, Maybe } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
import { default as React } from 'react';
|
|
4
|
-
export interface DFlowInputDataTypeProps extends ValidationProps<DataTypeIdentifier> {
|
|
5
|
-
onChange?: (value: DataTypeIdentifier | null) => void;
|
|
6
|
-
description?: string;
|
|
7
|
-
label?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface DFlowInputDataTypeRuleTreeProps {
|
|
10
|
-
dataTypeIdentifier: DataTypeIdentifier;
|
|
11
|
-
parentRule?: Maybe<DataTypeRule>;
|
|
12
|
-
isRoot?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const DFlowInputDataType: React.FC<DFlowInputDataTypeProps>;
|
|
15
|
-
export declare const DFlowInputDataTypeRuleTree: React.FC<DFlowInputDataTypeRuleTreeProps>;
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e, Fragment as F } from "react/jsx-runtime";
|
|
2
|
-
import "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import m from "react";
|
|
4
|
-
import "@radix-ui/react-checkbox";
|
|
5
|
-
import { InputLabel as O } from "../form/InputLabel.js";
|
|
6
|
-
import { InputDescription as _ } from "../form/InputDescription.js";
|
|
7
|
-
import "merge-props";
|
|
8
|
-
import "js-md5";
|
|
9
|
-
import { IconEdit as Y } from "@tabler/icons-react";
|
|
10
|
-
import '../../assets/components/d-flow-input/DFlowInputDataType.style.css';import '../../assets/components/form/Input.style.css';/* empty css */
|
|
11
|
-
import "../form/EmailInput.js";
|
|
12
|
-
import "../form/Input.js";
|
|
13
|
-
import "../form/InputSuggestion.js";
|
|
14
|
-
import "../form/NumberInput.js";
|
|
15
|
-
import "../form/PasswordInput.js";
|
|
16
|
-
import "@radix-ui/react-one-time-password-field";
|
|
17
|
-
import "@radix-ui/react-radio-group";
|
|
18
|
-
import "../form/SwitchInput.js";
|
|
19
|
-
import "../form/TextInput.js";
|
|
20
|
-
import { Card as K } from "../card/Card.js";
|
|
21
|
-
import { Flex as u } from "../flex/Flex.js";
|
|
22
|
-
import { Text as c } from "../text/Text.js";
|
|
23
|
-
import { Badge as C } from "../badge/Badge.js";
|
|
24
|
-
import { Button as V } from "../button/Button.js";
|
|
25
|
-
import j from "../card/CardSection.js";
|
|
26
|
-
/* empty css */
|
|
27
|
-
import { hashToColor as B } from "../d-flow/DFlow.util.js";
|
|
28
|
-
import { useService as P, useStore as R } from "../../utils/contextStore.js";
|
|
29
|
-
import { DFlowDataTypeReactiveService as I } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
30
|
-
import { DFlowInputDataTypeEditDialog as W } from "./DFlowInputDataTypeEditDialog.js";
|
|
31
|
-
const Ie = (f) => {
|
|
32
|
-
const {
|
|
33
|
-
initialValue: i,
|
|
34
|
-
defaultValue: o,
|
|
35
|
-
value: p,
|
|
36
|
-
label: s,
|
|
37
|
-
description: D
|
|
38
|
-
} = f, r = p ?? i ?? o ?? null, h = P(I), g = R(I), [E, d] = m.useState(!1), t = m.useMemo(() => h.getDataType(r), [g, r]);
|
|
39
|
-
return /* @__PURE__ */ a("div", { children: [
|
|
40
|
-
/* @__PURE__ */ e(W, { dataTypeIdentifier: r, open: E, onDataTypeChange: f.onChange, onOpenChange: (n) => d(n) }),
|
|
41
|
-
/* @__PURE__ */ e(O, { children: s }),
|
|
42
|
-
/* @__PURE__ */ e(_, { children: D }),
|
|
43
|
-
/* @__PURE__ */ a(K, { color: "secondary", paddingSize: "xs", children: [
|
|
44
|
-
/* @__PURE__ */ a(u, { style: {
|
|
45
|
-
gap: ".7rem"
|
|
46
|
-
}, align: "center", justify: "space-between", children: [
|
|
47
|
-
/* @__PURE__ */ e(u, { style: {
|
|
48
|
-
gap: ".35rem"
|
|
49
|
-
}, align: "center", children: /* @__PURE__ */ e(c, { children: t?.name?.[0].content ?? "Unnamed Data Type" }) }),
|
|
50
|
-
/* @__PURE__ */ e(u, { style: {
|
|
51
|
-
gap: ".35rem"
|
|
52
|
-
}, align: "center", children: /* @__PURE__ */ e(V, { paddingSize: "xxs", variant: "filled", color: "tertiary", onClick: () => d(!0), children: /* @__PURE__ */ e(Y, { size: 13 }) }) })
|
|
53
|
-
] }),
|
|
54
|
-
/* @__PURE__ */ e(K, { paddingSize: "xs", mt: 0.7, mb: -0.55, mx: -0.55, children: /* @__PURE__ */ e(S, { dataTypeIdentifier: r }) })
|
|
55
|
-
] })
|
|
56
|
-
] });
|
|
57
|
-
}, S = (f) => {
|
|
58
|
-
const {
|
|
59
|
-
dataTypeIdentifier: i,
|
|
60
|
-
parentRule: o,
|
|
61
|
-
isRoot: p = !o
|
|
62
|
-
} = f, s = P(I), D = R(I), r = m.useMemo(() => {
|
|
63
|
-
const t = i.genericType?.genericMappers ?? [];
|
|
64
|
-
return new Map(t.map((n) => [n.target, n]));
|
|
65
|
-
}, [i]), h = m.useMemo(() => i.genericKey ? r.get(i.genericKey)?.sourceDataTypeIdentifiers?.map((n) => s.getDataType(n)) ?? [] : [s.getDataType(i)], [D, i, r]), g = m.useCallback((t) => t ? t.genericKey ? r.get(t.genericKey)?.sourceDataTypeIdentifiers?.[0] ?? null : t : null, [r]), d = m.useMemo(() => h.flatMap((t, n) => {
|
|
66
|
-
const N = t?.rules?.nodes ?? [];
|
|
67
|
-
return N.length ? N.map((l, k) => {
|
|
68
|
-
const x = `${n}-${k}`, w = l?.config?.dataTypeIdentifier, y = g(w);
|
|
69
|
-
if (l?.variant === "PARENT_TYPE" && y)
|
|
70
|
-
return /* @__PURE__ */ e(S, { dataTypeIdentifier: y, parentRule: l, isRoot: p }, x);
|
|
71
|
-
if (!y) return null;
|
|
72
|
-
const b = s.getDataType(y), M = b?.variant === "PRIMITIVE", A = b?.name?.[0]?.content;
|
|
73
|
-
let T = null;
|
|
74
|
-
if (l?.variant === "CONTAINS_KEY") {
|
|
75
|
-
const v = l?.config;
|
|
76
|
-
T = /* @__PURE__ */ a(u, { align: "center", style: {
|
|
77
|
-
gap: ".35rem",
|
|
78
|
-
textWrap: "nowrap"
|
|
79
|
-
}, className: "rule", children: [
|
|
80
|
-
/* @__PURE__ */ e(C, { border: !0, color: "tertiary", style: {
|
|
81
|
-
verticalAlign: "middle"
|
|
82
|
-
}, children: /* @__PURE__ */ e(c, { size: "xs", style: {
|
|
83
|
-
color: "inherit"
|
|
84
|
-
}, children: v?.key }) }),
|
|
85
|
-
/* @__PURE__ */ a(c, { hierarchy: "tertiary", children: [
|
|
86
|
-
o?.variant === "CONTAINS_KEY" ? "is a field inside" : "is a field",
|
|
87
|
-
M ? " of type" : ""
|
|
88
|
-
] }),
|
|
89
|
-
M && /* @__PURE__ */ e(C, { border: !0, color: B(A ?? ""), style: {
|
|
90
|
-
verticalAlign: "middle"
|
|
91
|
-
}, children: /* @__PURE__ */ e(c, { size: "xs", style: {
|
|
92
|
-
color: "inherit"
|
|
93
|
-
}, children: A }) })
|
|
94
|
-
] });
|
|
95
|
-
} else if (l?.variant === "CONTAINS_TYPE") {
|
|
96
|
-
const v = o?.config?.key;
|
|
97
|
-
T = /* @__PURE__ */ a(u, { align: "center", style: {
|
|
98
|
-
gap: ".35rem",
|
|
99
|
-
textWrap: "nowrap"
|
|
100
|
-
}, className: "rule", children: [
|
|
101
|
-
/* @__PURE__ */ e(c, { children: "Inside" }),
|
|
102
|
-
v && /* @__PURE__ */ e(C, { border: !0, color: "tertiary", style: {
|
|
103
|
-
verticalAlign: "middle"
|
|
104
|
-
}, children: /* @__PURE__ */ e(c, { size: "xs", style: {
|
|
105
|
-
color: "inherit"
|
|
106
|
-
}, children: v }) }),
|
|
107
|
-
/* @__PURE__ */ e(c, { hierarchy: "tertiary", ml: -0.35, children: ", each entity has" })
|
|
108
|
-
] });
|
|
109
|
-
}
|
|
110
|
-
const z = /* @__PURE__ */ e(S, { dataTypeIdentifier: y, parentRule: l });
|
|
111
|
-
return p ? /* @__PURE__ */ a(j, { border: !0, children: [
|
|
112
|
-
" ",
|
|
113
|
-
T,
|
|
114
|
-
" ",
|
|
115
|
-
z,
|
|
116
|
-
" "
|
|
117
|
-
] }, x) : /* @__PURE__ */ a("li", { children: [
|
|
118
|
-
" ",
|
|
119
|
-
T,
|
|
120
|
-
" ",
|
|
121
|
-
z,
|
|
122
|
-
" "
|
|
123
|
-
] }, x);
|
|
124
|
-
}) : [];
|
|
125
|
-
}), [h, p, g, s, o]).filter(Boolean);
|
|
126
|
-
return d.length === 0 ? null : p || o?.variant === "PARENT_TYPE" ? /* @__PURE__ */ e(F, { children: d }) : /* @__PURE__ */ e("ul", { children: d });
|
|
127
|
-
};
|
|
128
|
-
export {
|
|
129
|
-
Ie as DFlowInputDataType,
|
|
130
|
-
S as DFlowInputDataTypeRuleTree
|
|
131
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DataTypeIdentifier } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
export interface DFlowInputDataTypeEditDialogProps {
|
|
4
|
-
dataTypeIdentifier: DataTypeIdentifier;
|
|
5
|
-
open?: boolean;
|
|
6
|
-
onOpenChange?: (open: boolean) => void;
|
|
7
|
-
onDataTypeChange?: (dataTypeIdentifier: DataTypeIdentifier) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const DFlowInputDataTypeEditDialog: React.FC<DFlowInputDataTypeEditDialogProps>;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import a from "react";
|
|
3
|
-
import { Dialog as F, DialogPortal as B, DialogOverlay as O, DialogContent as P, DialogTitle as V, DialogClose as E } from "../dialog/Dialog.js";
|
|
4
|
-
import { DLayout as N } from "../d-layout/DLayout.js";
|
|
5
|
-
import { Flex as _ } from "../flex/Flex.js";
|
|
6
|
-
import { Text as j } from "../text/Text.js";
|
|
7
|
-
import { DResizablePanelGroup as A, DResizablePanel as u, DResizableHandle as L } from "../d-resizable/DResizable.js";
|
|
8
|
-
import { Editor as M } from "../editor/Editor.js";
|
|
9
|
-
import { DFlowInputDataTypeRuleTree as G } from "./DFlowInputDataType.js";
|
|
10
|
-
import { useService as H, useStore as k } from "../../utils/contextStore.js";
|
|
11
|
-
import "merge-props";
|
|
12
|
-
import "js-md5";
|
|
13
|
-
import { DFlowDataTypeReactiveService as y } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
14
|
-
import { hashToColor as s } from "../d-flow/DFlow.util.js";
|
|
15
|
-
import { ScrollArea as U, ScrollAreaViewport as X, ScrollAreaScrollbar as f, ScrollAreaThumb as h } from "../scroll-area/ScrollArea.js";
|
|
16
|
-
import { Spacing as g } from "../spacing/Spacing.js";
|
|
17
|
-
import { Badge as c } from "../badge/Badge.js";
|
|
18
|
-
import { syntaxTree as T } from "@codemirror/language";
|
|
19
|
-
import { Button as q } from "../button/Button.js";
|
|
20
|
-
import { IconX as J } from "@tabler/icons-react";
|
|
21
|
-
const ye = (i) => {
|
|
22
|
-
const {
|
|
23
|
-
open: l,
|
|
24
|
-
onOpenChange: D,
|
|
25
|
-
onDataTypeChange: b
|
|
26
|
-
} = i, p = H(y), m = k(y), [S, v] = a.useState(l), [n, d] = a.useState(i.dataTypeIdentifier);
|
|
27
|
-
a.useEffect(() => {
|
|
28
|
-
v(l), d(i.dataTypeIdentifier);
|
|
29
|
-
}, [l]);
|
|
30
|
-
const w = a.useMemo(() => p.getValueFromType(n), [m]), x = a.useMemo(() => p.getDataType(n), [m, n]), I = (t) => {
|
|
31
|
-
const r = t.matchBefore(/\w*/);
|
|
32
|
-
if (!r || r.from === r.to && !t.explicit)
|
|
33
|
-
return null;
|
|
34
|
-
const z = T(t.state).resolveInner(t.pos, -1), R = T(t.state).resolveInner(t.pos, 0);
|
|
35
|
-
return z.name === "Property" || R.name === "Property" ? {
|
|
36
|
-
from: r.from,
|
|
37
|
-
options: [{
|
|
38
|
-
label: "Text",
|
|
39
|
-
type: "type",
|
|
40
|
-
apply: '"Text"'
|
|
41
|
-
}, {
|
|
42
|
-
label: "Boolean",
|
|
43
|
-
type: "type",
|
|
44
|
-
apply: "true"
|
|
45
|
-
}, {
|
|
46
|
-
label: "Number",
|
|
47
|
-
type: "type",
|
|
48
|
-
apply: "1"
|
|
49
|
-
}]
|
|
50
|
-
} : null;
|
|
51
|
-
}, C = {
|
|
52
|
-
bool: ({
|
|
53
|
-
content: t
|
|
54
|
-
}) => /* @__PURE__ */ e(c, { color: s("Boolean"), border: !0, children: "Boolean" }),
|
|
55
|
-
string: ({
|
|
56
|
-
content: t
|
|
57
|
-
}) => /* @__PURE__ */ e(c, { color: s("Text"), border: !0, children: "Text" }, "Text"),
|
|
58
|
-
number: ({
|
|
59
|
-
content: t
|
|
60
|
-
}) => /* @__PURE__ */ e(c, { color: s("Number"), border: !0, children: "Number" }, "Number")
|
|
61
|
-
};
|
|
62
|
-
return /* @__PURE__ */ e(F, { open: S, onOpenChange: (t) => D?.(t), children: /* @__PURE__ */ o(B, { children: [
|
|
63
|
-
/* @__PURE__ */ e(O, {}),
|
|
64
|
-
/* @__PURE__ */ o(P, { "aria-describedby": "DFlowInputDataTypeEditDialog", onPointerDownOutside: (t) => {
|
|
65
|
-
const r = t.target;
|
|
66
|
-
(r.closest("[data-slot=resizable-handle]") || r.closest("[data-slot=resizable-panel]")) && t.preventDefault();
|
|
67
|
-
}, w: "75%", h: "75%", style: {
|
|
68
|
-
padding: "2px"
|
|
69
|
-
}, children: [
|
|
70
|
-
/* @__PURE__ */ e(V, {}),
|
|
71
|
-
/* @__PURE__ */ e(N, { layoutGap: 0, showLayoutSplitter: !1, topContent: /* @__PURE__ */ o(_, { style: {
|
|
72
|
-
gap: ".7rem"
|
|
73
|
-
}, p: 0.7, justify: "space-between", align: "center", children: [
|
|
74
|
-
/* @__PURE__ */ e(j, { children: x?.name?.[0].content ?? "Unnamed Data Type" }),
|
|
75
|
-
/* @__PURE__ */ e(E, { asChild: !0, children: /* @__PURE__ */ e(q, { variant: "filled", color: "tertiary", paddingSize: "xxs", children: /* @__PURE__ */ e(J, { size: 13 }) }) })
|
|
76
|
-
] }), children: /* @__PURE__ */ o(A, { style: {
|
|
77
|
-
borderRadius: "1rem"
|
|
78
|
-
}, children: [
|
|
79
|
-
/* @__PURE__ */ e(u, { color: "primary", children: /* @__PURE__ */ o(U, { h: "100%", w: "100%", type: "scroll", children: [
|
|
80
|
-
/* @__PURE__ */ o(X, { px: 1, children: [
|
|
81
|
-
/* @__PURE__ */ e(g, { spacing: "md" }),
|
|
82
|
-
/* @__PURE__ */ e(G, { dataTypeIdentifier: n }),
|
|
83
|
-
/* @__PURE__ */ e(g, { spacing: "md" })
|
|
84
|
-
] }),
|
|
85
|
-
/* @__PURE__ */ e(f, { orientation: "vertical", children: /* @__PURE__ */ e(h, {}) }),
|
|
86
|
-
/* @__PURE__ */ e(f, { orientation: "horizontal", children: /* @__PURE__ */ e(h, {}) })
|
|
87
|
-
] }) }),
|
|
88
|
-
/* @__PURE__ */ e(L, {}),
|
|
89
|
-
/* @__PURE__ */ e(u, { color: "primary", children: /* @__PURE__ */ e(M, { suggestions: I, tokenHighlights: C, language: "json", initialValue: w?.value, onChange: (t) => {
|
|
90
|
-
const r = p.getTypeFromValue({
|
|
91
|
-
__typename: "LiteralValue",
|
|
92
|
-
value: t
|
|
93
|
-
});
|
|
94
|
-
b?.(r), d(r);
|
|
95
|
-
} }) })
|
|
96
|
-
] }) })
|
|
97
|
-
] })
|
|
98
|
-
] }) });
|
|
99
|
-
};
|
|
100
|
-
export {
|
|
101
|
-
ye as DFlowInputDataTypeEditDialog
|
|
102
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DFlowInputProps } from './DFlowInput';
|
|
3
|
-
export type DFlowInputDefaultProps = DFlowInputProps;
|
|
4
|
-
export declare const splitTextAndObjects: (input: string) => (string | Record<string, any>)[];
|
|
5
|
-
export declare const DFlowInputDefault: React.FC<DFlowInputDefaultProps>;
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import I from "react";
|
|
3
|
-
import "../../_virtual/compiler-runtime.js";
|
|
4
|
-
import "@radix-ui/react-checkbox";
|
|
5
|
-
import "merge-props";
|
|
6
|
-
import "js-md5";
|
|
7
|
-
import "@tabler/icons-react";
|
|
8
|
-
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
9
|
-
import "../form/EmailInput.js";
|
|
10
|
-
import "../form/Input.js";
|
|
11
|
-
import "../form/InputSuggestion.js";
|
|
12
|
-
import "../form/NumberInput.js";
|
|
13
|
-
import "../form/PasswordInput.js";
|
|
14
|
-
import "@radix-ui/react-one-time-password-field";
|
|
15
|
-
import "@radix-ui/react-radio-group";
|
|
16
|
-
import "../form/SwitchInput.js";
|
|
17
|
-
import { TextInput as B } from "../form/TextInput.js";
|
|
18
|
-
import { MenuItem as D } from "../menu/Menu.js";
|
|
19
|
-
import { Text as b } from "../text/Text.js";
|
|
20
|
-
import { DFlowSuggestionMenuFooter as T } from "../d-flow-suggestion/DFlowSuggestionMenuFooter.js";
|
|
21
|
-
import { toInputSuggestions as x } from "../d-flow-suggestion/DFlowSuggestionMenu.util.js";
|
|
22
|
-
import { useService as S } from "../../utils/contextStore.js";
|
|
23
|
-
import { DFlowFunctionReactiveService as O } from "../d-flow-function/DFlowFunction.service.js";
|
|
24
|
-
import "../d-flow/DFlow.js";
|
|
25
|
-
import { DFlowReactiveService as h } from "../d-flow/DFlow.service.js";
|
|
26
|
-
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
27
|
-
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
28
|
-
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
29
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
30
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
31
|
-
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
32
|
-
import "../d-flow-data-type/variants/DFlowDataTypeNodeVariant.js";
|
|
33
|
-
import { useSuggestions as R } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
|
|
34
|
-
import { DFlowInputNodeBadge as j } from "./DFlowInputNodeBadge.js";
|
|
35
|
-
import { DFlowInputReferenceBadge as L } from "./DFlowInputReferenceBadge.js";
|
|
36
|
-
import { DFlowTypeReactiveService as $ } from "../d-flow-type/DFlowType.service.js";
|
|
37
|
-
const k = (d) => {
|
|
38
|
-
const o = [];
|
|
39
|
-
let p = "", m = "", n = 0, s = "", r = !1;
|
|
40
|
-
const f = () => {
|
|
41
|
-
p && o.push(p), p = "";
|
|
42
|
-
}, l = (e) => {
|
|
43
|
-
try {
|
|
44
|
-
return JSON.parse(e);
|
|
45
|
-
} catch {
|
|
46
|
-
try {
|
|
47
|
-
return JSON.parse(e.replace(/'/g, '"').replace(/([{,]\s*)([A-Za-z_$][\w$]*)(\s*:)/g, '$1"$2"$3'));
|
|
48
|
-
} catch {
|
|
49
|
-
return {};
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
return d.split("").forEach((e) => {
|
|
54
|
-
if (n > 0) {
|
|
55
|
-
if (m += e, r) {
|
|
56
|
-
r = !1;
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
if (e === "\\") {
|
|
60
|
-
r = !0;
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
if (s) {
|
|
64
|
-
e === s && (s = "");
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
if (e === '"' || e === "'") {
|
|
68
|
-
s = e;
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
e === "{" && n++, e === "}" && n--, n === 0 && (o.push(l(m)), m = "");
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
if (e === "{") {
|
|
75
|
-
f(), n = 1, m = "{";
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
p += e;
|
|
79
|
-
}), f(), o;
|
|
80
|
-
}, St = (d) => {
|
|
81
|
-
const {
|
|
82
|
-
flowId: o,
|
|
83
|
-
nodeId: p,
|
|
84
|
-
parameterId: m,
|
|
85
|
-
...n
|
|
86
|
-
} = d, s = S(O), r = S(h), f = S($), l = I.useMemo(() => r.getById(o), [r, o]), e = n.suggestions || R(o, p, m), F = I.useCallback((g) => {
|
|
87
|
-
const w = g == null ? g : String(g ?? "");
|
|
88
|
-
let u = 0;
|
|
89
|
-
const y = (t) => {
|
|
90
|
-
const i = {
|
|
91
|
-
type: "text",
|
|
92
|
-
value: t,
|
|
93
|
-
start: u,
|
|
94
|
-
end: u + t.length,
|
|
95
|
-
visualLength: t.length,
|
|
96
|
-
content: t
|
|
97
|
-
};
|
|
98
|
-
return u += t.length, i;
|
|
99
|
-
}, a = (t, i) => {
|
|
100
|
-
const N = {
|
|
101
|
-
type: "block",
|
|
102
|
-
value: i,
|
|
103
|
-
start: u,
|
|
104
|
-
end: u + JSON.stringify(i).length,
|
|
105
|
-
visualLength: 1,
|
|
106
|
-
content: t
|
|
107
|
-
};
|
|
108
|
-
return u += JSON.stringify(i).length, N;
|
|
109
|
-
};
|
|
110
|
-
return k(w).map((t) => {
|
|
111
|
-
if (typeof t != "object")
|
|
112
|
-
return y(t);
|
|
113
|
-
if (t?.__typename === "NodeFunctionIdWrapper" || t?.__typename === "NodeFunction") {
|
|
114
|
-
const i = t?.__typename === "NodeFunction" ? t : r.getNodeById(o, t.id);
|
|
115
|
-
return a(/* @__PURE__ */ c(j, { value: t, flowId: o, definition: s.getById(i?.functionDefinition.id) }), t);
|
|
116
|
-
}
|
|
117
|
-
if (t?.__typename === "ReferenceValue") {
|
|
118
|
-
const i = t.nodeFunctionId === "gid://sagittarius/NodeFunction/-1" ? f.getById(l?.type?.id) : s.getById(r.getNodeById(o, t.nodeFunctionId)?.functionDefinition?.id);
|
|
119
|
-
return a(/* @__PURE__ */ c(L, { flowId: o, definition: i, value: t }), t);
|
|
120
|
-
}
|
|
121
|
-
return t?.__typename === "LiteralValue" ? y(t.value) : y(t);
|
|
122
|
-
});
|
|
123
|
-
}, [s, r]);
|
|
124
|
-
return /* @__PURE__ */ c(B, { suggestionsEmptyState: /* @__PURE__ */ c(D, { children: /* @__PURE__ */ c(b, { children: "No suggestion found" }) }), suggestionsFooter: /* @__PURE__ */ c(T, {}), filterSuggestionsByLastToken: !0, enforceUniqueSuggestions: !0, validationUsesSyntax: !0, transformSyntax: F, suggestions: n.suggestions ? n.suggestions : x(e), ...n });
|
|
125
|
-
};
|
|
126
|
-
export {
|
|
127
|
-
St as DFlowInputDefault,
|
|
128
|
-
k as splitTextAndObjects
|
|
129
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { BadgeType } from '../badge/Badge';
|
|
3
|
-
import { LiteralValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
export interface DFlowInputLiteralBadgeProps extends Omit<BadgeType, 'value' | 'children'> {
|
|
5
|
-
value: LiteralValue;
|
|
6
|
-
}
|
|
7
|
-
export declare const DFlowInputLiteralBadge: React.FC<DFlowInputLiteralBadgeProps>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { c as n } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import { Badge as a } from "../badge/Badge.js";
|
|
4
|
-
import { Text as f } from "../text/Text.js";
|
|
5
|
-
const x = (m) => {
|
|
6
|
-
const e = n.c(9);
|
|
7
|
-
let t, r;
|
|
8
|
-
e[0] !== m ? ({
|
|
9
|
-
value: r,
|
|
10
|
-
...t
|
|
11
|
-
} = m, e[0] = m, e[1] = t, e[2] = r) : (t = e[1], r = e[2]);
|
|
12
|
-
let i;
|
|
13
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
14
|
-
verticalAlign: "middle"
|
|
15
|
-
}, e[3] = i) : i = e[3];
|
|
16
|
-
const c = String(r.value);
|
|
17
|
-
let l;
|
|
18
|
-
e[4] !== c ? (l = /* @__PURE__ */ s(f, { size: "sm", children: c }), e[4] = c, e[5] = l) : l = e[5];
|
|
19
|
-
let o;
|
|
20
|
-
return e[6] !== t || e[7] !== l ? (o = /* @__PURE__ */ s(a, { style: i, color: "secondary", ...t, children: l }), e[6] = t, e[7] = l, e[8] = o) : o = e[8], o;
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
x as DFlowInputLiteralBadge
|
|
24
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BadgeType } from '../badge/Badge';
|
|
2
|
-
import { Flow, NodeFunction, NodeFunctionIdWrapper } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
import { default as React } from 'react';
|
|
4
|
-
import { FunctionDefinitionView } from '../d-flow-function';
|
|
5
|
-
import { FlowTypeView } from '../d-flow-type';
|
|
6
|
-
export interface DFlowInputNodeBadgeProps extends Omit<BadgeType, 'value' | 'children'> {
|
|
7
|
-
value: NodeFunction | NodeFunctionIdWrapper;
|
|
8
|
-
flowId: Flow['id'];
|
|
9
|
-
definition?: FunctionDefinitionView | FlowTypeView;
|
|
10
|
-
}
|
|
11
|
-
export declare const DFlowInputNodeBadge: React.FC<DFlowInputNodeBadgeProps>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsxs as B, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { Badge as T } from "../badge/Badge.js";
|
|
3
|
-
import s from "react";
|
|
4
|
-
import { IconBolt as h, IconNote as x } from "@tabler/icons-react";
|
|
5
|
-
import { Text as D } from "../text/Text.js";
|
|
6
|
-
import { useService as n, useStore as m } from "../../utils/contextStore.js";
|
|
7
|
-
import "merge-props";
|
|
8
|
-
import "js-md5";
|
|
9
|
-
import { DFlowFunctionReactiveService as f } from "../d-flow-function/DFlowFunction.service.js";
|
|
10
|
-
import { hashToColor as N } from "../d-flow/DFlow.util.js";
|
|
11
|
-
import "../d-flow/DFlow.js";
|
|
12
|
-
import { DFlowReactiveService as d } from "../d-flow/DFlow.service.js";
|
|
13
|
-
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
14
|
-
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
15
|
-
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
16
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
17
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
18
|
-
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
19
|
-
import "../d-flow-data-type/variants/DFlowDataTypeNodeVariant.js";
|
|
20
|
-
import { DFlowTypeReactiveService as l } from "../d-flow-type/DFlowType.service.js";
|
|
21
|
-
import { FlowTypeView as R } from "../d-flow-type/DFlowType.view.js";
|
|
22
|
-
const X = (a) => {
|
|
23
|
-
const {
|
|
24
|
-
value: e,
|
|
25
|
-
flowId: c,
|
|
26
|
-
definition: o,
|
|
27
|
-
...u
|
|
28
|
-
} = a, w = o || n(f), y = o || m(f), p = o || n(d), v = o || m(d), S = o || n(l), g = o || m(l), t = e.__typename === "NodeFunctionIdWrapper" && !e.id, r = s.useMemo(() => {
|
|
29
|
-
if (t && !o) {
|
|
30
|
-
const F = p.getById(c);
|
|
31
|
-
return S.getById(F?.type?.id);
|
|
32
|
-
}
|
|
33
|
-
return e.__typename === "NodeFunction" || o ? e : p.getNodeById(c, e.id);
|
|
34
|
-
}, [v, g]), I = s.useMemo(() => o ? o.names?.[0]?.content : t && r instanceof R ? r.names?.[0]?.content : w.getById(r?.functionDefinition?.id)?.names?.[0]?.content, [y, r]);
|
|
35
|
-
return /* @__PURE__ */ B(T, { style: {
|
|
36
|
-
verticalAlign: "middle",
|
|
37
|
-
textWrap: "nowrap"
|
|
38
|
-
}, color: t ? "info" : N(e.id || ""), border: !0, ...u, children: [
|
|
39
|
-
t ? /* @__PURE__ */ i(h, { size: 12 }) : /* @__PURE__ */ i(x, { size: 12 }),
|
|
40
|
-
/* @__PURE__ */ i(D, { size: "sm", style: {
|
|
41
|
-
color: "inherit"
|
|
42
|
-
}, children: String(I) })
|
|
43
|
-
] });
|
|
44
|
-
};
|
|
45
|
-
export {
|
|
46
|
-
X as DFlowInputNodeBadge
|
|
47
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DFlowInputProps } from './DFlowInput';
|
|
3
|
-
import { LiteralValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
export interface EditableObjectEntry {
|
|
5
|
-
key: string;
|
|
6
|
-
value: LiteralValue | null;
|
|
7
|
-
path: string[];
|
|
8
|
-
}
|
|
9
|
-
export type DFlowInputObjectProps = DFlowInputProps;
|
|
10
|
-
export declare const DFlowInputObject: React.FC<DFlowInputObjectProps>;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { jsxs as m, Fragment as H, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import o from "react";
|
|
3
|
-
import { Card as h } from "../card/Card.js";
|
|
4
|
-
import { Flex as F } from "../flex/Flex.js";
|
|
5
|
-
import { Text as J } from "../text/Text.js";
|
|
6
|
-
import { Button as f } from "../button/Button.js";
|
|
7
|
-
import { IconAlignLeft as K, IconEdit as P, IconX as Q } from "@tabler/icons-react";
|
|
8
|
-
import U from "./DFlowInputObjectEditDialog.js";
|
|
9
|
-
import '../../assets/components/form/Input.style.css';import '../../assets/components/d-flow-input/DFlowInputDataType.style.css';/* empty css */
|
|
10
|
-
import { ButtonGroup as Y } from "../button-group/ButtonGroup.js";
|
|
11
|
-
import { DFlowInputObjectTree as Z } from "./DFlowInputObjectTree.js";
|
|
12
|
-
import { useService as g, useStore as S } from "../../utils/contextStore.js";
|
|
13
|
-
import "merge-props";
|
|
14
|
-
import "js-md5";
|
|
15
|
-
import "../d-flow/DFlow.js";
|
|
16
|
-
import { DFlowReactiveService as w } from "../d-flow/DFlow.service.js";
|
|
17
|
-
import { DFlowFunctionReactiveService as x } from "../d-flow-function/DFlowFunction.service.js";
|
|
18
|
-
import { DFlowDataTypeReactiveService as C } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
19
|
-
import { DFlowSuggestionMenu as $ } from "../d-flow-suggestion/DFlowSuggestionMenu.js";
|
|
20
|
-
import { useSuggestions as ee } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
|
|
21
|
-
import "../../_virtual/compiler-runtime.js";
|
|
22
|
-
import "@radix-ui/react-checkbox";
|
|
23
|
-
import { InputLabel as te } from "../form/InputLabel.js";
|
|
24
|
-
import { InputDescription as oe } from "../form/InputDescription.js";
|
|
25
|
-
import { InputMessage as ie } from "../form/InputMessage.js";
|
|
26
|
-
/* empty css */
|
|
27
|
-
import "../form/EmailInput.js";
|
|
28
|
-
import "../form/Input.js";
|
|
29
|
-
import "../form/InputSuggestion.js";
|
|
30
|
-
import "../form/NumberInput.js";
|
|
31
|
-
import "../form/PasswordInput.js";
|
|
32
|
-
import "@radix-ui/react-one-time-password-field";
|
|
33
|
-
import "@radix-ui/react-radio-group";
|
|
34
|
-
import "../form/SwitchInput.js";
|
|
35
|
-
import "../form/TextInput.js";
|
|
36
|
-
import { DFlowInputNodeBadge as re } from "./DFlowInputNodeBadge.js";
|
|
37
|
-
import { DFlowInputReferenceBadge as ne } from "./DFlowInputReferenceBadge.js";
|
|
38
|
-
const Xe = (V) => {
|
|
39
|
-
const {
|
|
40
|
-
flowId: n,
|
|
41
|
-
nodeId: s,
|
|
42
|
-
parameterId: d,
|
|
43
|
-
title: b,
|
|
44
|
-
description: j,
|
|
45
|
-
formValidation: a,
|
|
46
|
-
onChange: _
|
|
47
|
-
} = V, E = g(w), M = S(w), y = g(C), v = S(C), T = g(x), z = S(x), l = o.useMemo(() => E.getNodeById(n, s), [M, n, s]), r = o.useMemo(() => l?.parameters?.nodes?.find((t) => t?.id === d), [l, d]), D = o.useMemo(() => T.getById(l?.functionDefinition?.id), [z, l]), c = o.useMemo(() => D?.parameterDefinitions?.find((t) => t.id === r?.parameterDefinition?.id), [D, r]), O = o.useMemo(() => !r?.value || r?.value?.__typename === "LiteralValue" && r.value.value == null ? y.getValueFromType(c?.dataTypeIdentifier) : r?.value, [r, c, v]), R = ee(n, s, d), [i, u] = o.useState(O), [I, p] = o.useState(!1), [k, B] = o.useState(null), [L, N] = o.useState({}), A = (t, X) => {
|
|
48
|
-
N((q) => ({
|
|
49
|
-
...q,
|
|
50
|
-
[t.join(".")]: X
|
|
51
|
-
}));
|
|
52
|
-
}, G = (t) => {
|
|
53
|
-
B(t), p(!0);
|
|
54
|
-
}, W = o.useCallback(() => {
|
|
55
|
-
u(y.getValueFromType(c?.dataTypeIdentifier));
|
|
56
|
-
}, [r, c, v]);
|
|
57
|
-
return o.useEffect(() => {
|
|
58
|
-
a?.setValue(i), _?.();
|
|
59
|
-
}, [i]), /* @__PURE__ */ m(H, { children: [
|
|
60
|
-
i?.__typename === "LiteralValue" && /* @__PURE__ */ e(U, { open: I, entry: k, value: i, onOpenChange: (t) => p(t), onObjectChange: (t) => u(t ?? void 0) }, String(I)),
|
|
61
|
-
/* @__PURE__ */ e(te, { children: b }),
|
|
62
|
-
/* @__PURE__ */ e(oe, { children: j }),
|
|
63
|
-
/* @__PURE__ */ m(h, { color: "secondary", paddingSize: "xs", children: [
|
|
64
|
-
/* @__PURE__ */ m(F, { style: {
|
|
65
|
-
gap: ".7rem"
|
|
66
|
-
}, align: "center", justify: "space-between", children: [
|
|
67
|
-
/* @__PURE__ */ e(F, { style: {
|
|
68
|
-
gap: ".35rem"
|
|
69
|
-
}, align: "center", children: /* @__PURE__ */ e(J, { children: "Object" }) }),
|
|
70
|
-
/* @__PURE__ */ m(Y, { color: "primary", children: [
|
|
71
|
-
/* @__PURE__ */ e($, { suggestions: R, onSuggestionSelect: (t) => u(t.value), triggerContent: /* @__PURE__ */ e(f, { paddingSize: "xxs", variant: "filled", color: "secondary", onClick: () => p(!0), children: /* @__PURE__ */ e(K, { size: 13 }) }) }),
|
|
72
|
-
/* @__PURE__ */ e(f, { paddingSize: "xxs", variant: "filled", color: "secondary", onClick: () => p(!0), children: /* @__PURE__ */ e(P, { size: 13 }) }),
|
|
73
|
-
/* @__PURE__ */ e(f, { paddingSize: "xxs", variant: "filled", color: "secondary", onClick: W, children: /* @__PURE__ */ e(Q, { size: 13 }) })
|
|
74
|
-
] })
|
|
75
|
-
] }),
|
|
76
|
-
/* @__PURE__ */ e(h, { paddingSize: "xs", mt: 0.7, mb: -0.55, mx: -0.55, children: i?.__typename === "NodeFunction" || i?.__typename === "NodeFunctionIdWrapper" ? /* @__PURE__ */ e(re, { value: i, flowId: n }) : i?.__typename === "ReferenceValue" ? /* @__PURE__ */ e(ne, { value: i, flowId: n }) : /* @__PURE__ */ e(Z, { object: i, onEntryClick: G, collapsedState: L, setCollapsedState: A }) })
|
|
77
|
-
] }),
|
|
78
|
-
!a?.valid && a?.notValidMessage && /* @__PURE__ */ e(ie, { children: a.notValidMessage })
|
|
79
|
-
] });
|
|
80
|
-
};
|
|
81
|
-
export {
|
|
82
|
-
Xe as DFlowInputObject
|
|
83
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { LiteralValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
export interface EditableObjectEntry {
|
|
4
|
-
key: string;
|
|
5
|
-
value: LiteralValue | null;
|
|
6
|
-
path: string[];
|
|
7
|
-
}
|
|
8
|
-
export interface DFlowInputObjectEditDialogProps {
|
|
9
|
-
open: boolean;
|
|
10
|
-
entry: EditableObjectEntry | null;
|
|
11
|
-
value: LiteralValue | null;
|
|
12
|
-
onOpenChange?: (open: boolean) => void;
|
|
13
|
-
onObjectChange?: (object: LiteralValue | null) => void;
|
|
14
|
-
}
|
|
15
|
-
declare const DFlowInputObjectEditDialog: React.FC<DFlowInputObjectEditDialogProps>;
|
|
16
|
-
export default DFlowInputObjectEditDialog;
|