@code0-tech/pictor 0.0.0-mvp.26 → 0.0.0-mvp.27
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/assets/components/badge/Badge.style.css +1 -1
- package/dist/assets/components/button/Button.style.css +1 -1
- package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
- package/dist/assets/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.style.css +1 -1
- package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +1 -0
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +1 -0
- package/dist/assets/components/d-layout/DLayout.style.css +1 -1
- package/dist/assets/components/d-resizable/DResizable.style.css +1 -1
- package/dist/assets/components/file-tabs/FileTabs.style.css +1 -1
- package/dist/assets/components/form/Input.style.css +1 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -1
- package/dist/components/avatar/Avatar.js +7 -7
- package/dist/components/badge/Badge.d.ts +1 -1
- package/dist/components/badge/Badge.js +57 -17
- package/dist/components/breadcrumb/Breadcrumb.js +5 -5
- package/dist/components/button/Button.js +8 -8
- package/dist/components/context-menu/ContextMenu.d.ts +31 -0
- package/dist/components/context-menu/ContextMenu.js +191 -0
- package/dist/components/d-application/DApplication.service.d.ts +5 -0
- package/dist/components/d-application/DApplication.service.js +9 -0
- package/dist/components/d-flow/DFlow.d.ts +5 -3
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +2 -1
- package/dist/components/d-flow/DFlow.edges.hook.js +98 -136
- package/dist/components/d-flow/DFlow.js +214 -199
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +5 -1
- package/dist/components/d-flow/DFlow.nodes.hook.js +101 -123
- package/dist/components/d-flow/DFlow.service.d.ts +12 -7
- package/dist/components/d-flow/DFlow.service.js +117 -7
- package/dist/components/d-flow/{edge/DFlowEdge.d.ts → DFlowEdge.d.ts} +5 -3
- package/dist/components/d-flow/DFlowEdge.js +69 -0
- package/dist/components/d-flow/index.d.ts +1 -10
- package/dist/components/d-flow/index.js +9 -44
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +9 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.service.js +12 -10
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +8 -2
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +71 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.js +3 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.js +4 -4
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js +3 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +246 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.d.ts +2 -3
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabDefault.d.ts +2 -3
- package/dist/components/d-flow-file/DFlowTabDefault.js +139 -0
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
- package/dist/components/d-flow-file/DFlowTabTrigger.js +75 -0
- package/dist/components/d-flow-file/DFlowTabs.d.ts +6 -0
- package/dist/components/d-flow-file/DFlowTabs.js +128 -0
- package/dist/components/d-flow-file/index.d.ts +1 -0
- package/dist/components/d-flow-file/index.js +4 -0
- package/dist/components/{d-flow/folder → d-flow-folder}/DFlowFolder.d.ts +11 -5
- package/dist/components/d-flow-folder/DFlowFolder.js +158 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +69 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +9 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +76 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +49 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +9 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.js +1 -1
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.return.hook.d.ts +2 -2
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +9 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.service.d.ts +1 -1
- package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +12 -0
- package/dist/components/d-flow-function/DFlowFunction.view.js +132 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +120 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.d.ts +13 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.js +68 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts +3 -4
- package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +48 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +71 -0
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.js +175 -165
- package/dist/components/d-flow-panel/DFlowExport.js +32 -0
- package/dist/components/d-flow-panel/DFlowMiniMap.js +33 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +6 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.js +70 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +4 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +47 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +2 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.js +94 -0
- package/dist/components/d-flow-panel/index.d.ts +5 -0
- package/dist/components/d-flow-panel/index.js +12 -0
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestion.hook.d.ts +0 -15
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +161 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +14 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +4 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +83 -0
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.js +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js +5 -5
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionSearchInput.d.ts +1 -1
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +35 -0
- package/dist/components/d-flow-suggestion/index.d.ts +1 -0
- package/dist/components/d-flow-suggestion/index.js +4 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.service.d.ts +1 -1
- package/dist/components/d-flow-type/DFlowType.service.js +12 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +6 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.js +16 -10
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +2 -0
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +18 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +22 -0
- package/dist/components/d-flow-validation/DFlowValidation.js +66 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +62 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.js +8 -0
- package/dist/components/{d-flow/validation → d-flow-validation}/index.js +2 -2
- package/dist/components/d-fullscreen/DFullScreen.js +2 -2
- package/dist/components/d-member/DNamespaceMemberList.js +5 -5
- package/dist/components/d-organization/DOrganizationList.js +7 -7
- package/dist/components/d-organization/DOrganizationMenu.js +5 -5
- package/dist/components/d-organization/DOrganizatonContent.js +22 -22
- package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
- package/dist/components/d-project/DNamespaceProjectList.js +5 -5
- package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
- package/dist/components/d-resizable/DResizable.js +18 -17
- package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
- package/dist/components/d-runtime/DRuntimeList.js +7 -7
- package/dist/components/d-user/DUser.session.hook.js +2 -2
- package/dist/components/d-user/DUserContent.js +13 -13
- package/dist/components/d-user/DUserInput.js +9 -9
- package/dist/components/d-user/DUserList.js +9 -9
- package/dist/components/file-tabs/FileTabs.js +2 -2
- package/dist/components/file-tabs/FileTabs.service.d.ts +5 -0
- package/dist/components/file-tabs/FileTabs.service.js +68 -16
- package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
- package/dist/components/form/CheckboxInput.js +4 -4
- package/dist/components/form/EmailInput.js +12 -12
- package/dist/components/form/Input.js +220 -206
- package/dist/components/form/Input.selection.hook.js +9 -9
- package/dist/components/form/Input.syntax.hook.js +7 -7
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +6 -6
- package/dist/components/form/SwitchInput.js +7 -7
- package/dist/components/form/TextInput.js +10 -10
- package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
- package/dist/components/segmented-control/SegmentedControl.js +14 -12
- package/dist/index.d.ts +8 -0
- package/dist/index.js +117 -117
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/dist/utils/generics.d.ts +5 -6
- package/dist/utils/generics.js +2 -2
- package/dist/utils/objectStore.js +15 -15
- package/dist/utils/reactiveArrayService.js +5 -5
- package/package.json +7 -4
- package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +0 -1
- package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +0 -1
- package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +0 -1
- package/dist/components/d-flow/DFlow.view.d.ts +0 -113
- package/dist/components/d-flow/DFlow.view.js +0 -248
- package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
- package/dist/components/d-flow/control/DFlowControl.js +0 -81
- package/dist/components/d-flow/control/index.d.ts +0 -1
- package/dist/components/d-flow/control/index.js +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -20
- package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -243
- package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
- package/dist/components/d-flow/export/DFlowExport.js +0 -24
- package/dist/components/d-flow/folder/DFlowFolder.js +0 -119
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
- package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -74
- package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
- package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -93
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -22
- package/dist/components/d-flow/minimap/index.d.ts +0 -1
- package/dist/components/d-flow/minimap/index.js +0 -4
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -150
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -35
- package/dist/components/d-flow/suggestion/index.d.ts +0 -2
- package/dist/components/d-flow/suggestion/index.js +0 -7
- package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -103
- package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
- package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
- package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
- package/dist/components/d-flow/type/DFlowType.service.js +0 -9
- package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
- package/dist/components/d-flow/validation/DFlowValidation.js +0 -60
- /package/dist/assets/components/{d-flow/input → d-flow-input}/DFlowInputDataType.style.css +0 -0
- /package/dist/assets/components/{d-flow/validation → d-flow-validation}/DFlowValidation.style.css +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.js +0 -0
- /package/dist/components/{d-flow/folder → d-flow-folder}/index.d.ts +0 -0
- /package/dist/components/{d-flow/folder → d-flow-folder}/index.js +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
- /package/dist/components/{d-flow/export → d-flow-panel}/DFlowExport.d.ts +0 -0
- /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +0 -0
|
@@ -1,139 +1,117 @@
|
|
|
1
|
-
import { useService as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { useService as b, useStore as B } from "../../utils/contextStore.js";
|
|
2
|
+
import w from "react";
|
|
3
|
+
import "merge-props";
|
|
4
|
+
import { DFlowReactiveService as M } from "./DFlow.service.js";
|
|
5
|
+
import { DFlowFunctionReactiveService as C } from "../d-flow-function/DFlowFunction.service.js";
|
|
6
|
+
import { DFlowDataTypeReactiveService as _ } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
7
|
+
import { md5 as H } from "js-md5";
|
|
8
|
+
const J = /* @__PURE__ */ new Map([["std", "default"]]), V = (i, d) => {
|
|
9
|
+
if (!d || i.size === 0) return "";
|
|
10
|
+
const g = /[:._\-\/\s]+/, c = d.trim().toLowerCase();
|
|
11
|
+
let s = null, y = -1 / 0;
|
|
12
|
+
for (const [f, r] of i.entries()) {
|
|
13
|
+
const t = f.trim().toLowerCase();
|
|
14
|
+
if (c === t)
|
|
15
|
+
return r;
|
|
16
|
+
let o = 0;
|
|
17
|
+
if (c.startsWith(t)) {
|
|
18
|
+
o = 2e3 + t.length * 2;
|
|
19
|
+
const l = c.charAt(t.length);
|
|
20
|
+
(l === "" || g.test(l)) && (o += 200);
|
|
19
21
|
} else {
|
|
20
|
-
const
|
|
21
|
-
let
|
|
22
|
-
for (;
|
|
23
|
-
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
const h =
|
|
27
|
-
(h === "" ||
|
|
22
|
+
const l = Math.min(c.length, t.length);
|
|
23
|
+
let n = 0;
|
|
24
|
+
for (; n < l && c.charCodeAt(n) === t.charCodeAt(n); )
|
|
25
|
+
n++;
|
|
26
|
+
if (n > 0) {
|
|
27
|
+
o = 1e3 + n;
|
|
28
|
+
const h = c.charAt(n), I = t.charAt(n);
|
|
29
|
+
(h === "" || g.test(h) || I === "" || g.test(I)) && (o += 50);
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
|
-
|
|
32
|
+
o > y ? (y = o, s = f) : (o === y && s !== null && f.length > s.length || o === y && s === null) && (s = f);
|
|
31
33
|
}
|
|
32
|
-
return
|
|
33
|
-
},
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
x: 0,
|
|
47
|
-
y: 0
|
|
48
|
-
},
|
|
49
|
-
draggable: !1,
|
|
50
|
-
data: {
|
|
51
|
-
instance: t,
|
|
52
|
-
flowId: s
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
const m = (e, o = !1, B, y = 0, D = [0], c, N = v, S = n) => {
|
|
56
|
-
const p = `${e.id}-${l++}`, C = ++I;
|
|
57
|
-
i.push({
|
|
58
|
-
id: p,
|
|
59
|
-
type: K(R, e.functionDefinition?.identifier),
|
|
34
|
+
return s !== null ? i.get(s) : "";
|
|
35
|
+
}, ee = (i) => {
|
|
36
|
+
const d = b(M), g = B(M), c = b(C), s = B(C), y = b(_), f = B(_), r = w.useMemo(() => d.getById(i), [i, g]);
|
|
37
|
+
return w.useMemo(() => {
|
|
38
|
+
if (!r) return [];
|
|
39
|
+
const t = [];
|
|
40
|
+
let o = 0;
|
|
41
|
+
const l = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), h = (e, a = l) => (a.has(e) || a.set(e, c.getById(e)), a.get(e)), I = (e, a = n) => (a.has(e) || a.set(e, y.getDataType(e)), a.get(e));
|
|
42
|
+
let k = 0;
|
|
43
|
+
const A = () => ++k;
|
|
44
|
+
let R = 0;
|
|
45
|
+
t.push({
|
|
46
|
+
id: `${r.id}`,
|
|
47
|
+
type: "trigger",
|
|
60
48
|
position: {
|
|
61
49
|
x: 0,
|
|
62
50
|
y: 0
|
|
63
51
|
},
|
|
64
52
|
draggable: !1,
|
|
65
|
-
parentId: c,
|
|
66
|
-
extent: c ? "parent" : void 0,
|
|
67
53
|
data: {
|
|
68
|
-
instance:
|
|
69
|
-
|
|
70
|
-
flowId: s,
|
|
71
|
-
linkingId: o ? B : void 0,
|
|
72
|
-
scope: D,
|
|
73
|
-
// scope is now a PATH (number[])
|
|
74
|
-
depth: y,
|
|
75
|
-
// structural depth (0 at root, +1 per group)
|
|
76
|
-
index: C
|
|
77
|
-
// global node level
|
|
78
|
-
}
|
|
79
|
-
}), !e.nextNodeId && !o && i.push({
|
|
80
|
-
id: `${p}-suggestion`,
|
|
81
|
-
type: "suggestion",
|
|
82
|
-
position: {
|
|
83
|
-
x: 0,
|
|
84
|
-
y: 0
|
|
85
|
-
},
|
|
86
|
-
draggable: !1,
|
|
87
|
-
extent: c ? "parent" : void 0,
|
|
88
|
-
parentId: c,
|
|
89
|
-
data: {
|
|
90
|
-
flowId: s,
|
|
91
|
-
parentFunction: e
|
|
54
|
+
instance: r,
|
|
55
|
+
flowId: i
|
|
92
56
|
}
|
|
93
57
|
});
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}), m(g.value, !1, void 0, y + 1, w, b, N, S);
|
|
58
|
+
const S = (e, a = !1, E, v = 0, N = [0], p, D = l, x = n) => {
|
|
59
|
+
const m = `${e.id}-${o++}`, W = ++R;
|
|
60
|
+
t.push({
|
|
61
|
+
id: m,
|
|
62
|
+
type: V(J, e.functionDefinition?.identifier),
|
|
63
|
+
position: {
|
|
64
|
+
x: 0,
|
|
65
|
+
y: 0
|
|
66
|
+
},
|
|
67
|
+
draggable: !1,
|
|
68
|
+
parentId: p,
|
|
69
|
+
extent: p ? "parent" : void 0,
|
|
70
|
+
data: {
|
|
71
|
+
nodeId: e.id,
|
|
72
|
+
isParameter: a,
|
|
73
|
+
flowId: i,
|
|
74
|
+
linkingId: a ? E : void 0,
|
|
75
|
+
scope: N,
|
|
76
|
+
// scope is now a PATH (number[])
|
|
77
|
+
depth: v,
|
|
78
|
+
// structural depth (0 at root, +1 per group)
|
|
79
|
+
index: W
|
|
80
|
+
// global node level
|
|
118
81
|
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
82
|
+
});
|
|
83
|
+
const K = h(e.functionDefinition?.id, D);
|
|
84
|
+
e.parameters?.nodes?.forEach((u) => {
|
|
85
|
+
const F = K?.parameterDefinitions.find((T) => T.id == u?.runtimeParameter?.id)?.dataTypeIdentifier;
|
|
86
|
+
if ((F ? I(F, x) : void 0)?.variant === "NODE") {
|
|
87
|
+
if (u?.value && u.value.__typename === "NodeFunctionIdWrapper") {
|
|
88
|
+
const T = `${m}-group-${o++}`, $ = [...N, A()], L = H(`${m}-param-${JSON.stringify(u)}`), O = (z) => parseInt(z.slice(0, 8), 16) % 360;
|
|
89
|
+
t.push({
|
|
90
|
+
id: T,
|
|
91
|
+
type: "group",
|
|
92
|
+
position: {
|
|
93
|
+
x: 0,
|
|
94
|
+
y: 0
|
|
95
|
+
},
|
|
96
|
+
draggable: !1,
|
|
97
|
+
parentId: p,
|
|
98
|
+
extent: p ? "parent" : void 0,
|
|
99
|
+
data: {
|
|
100
|
+
isParameter: !0,
|
|
101
|
+
linkingId: m,
|
|
102
|
+
flowId: i,
|
|
103
|
+
depth: v + 1,
|
|
104
|
+
scope: $,
|
|
105
|
+
color: `hsl(${O(L)}, 100%, 72%)`
|
|
106
|
+
}
|
|
107
|
+
}), S(d.getNodeById(i, u.value.id), !1, void 0, v + 1, $, T, D, x);
|
|
108
|
+
}
|
|
109
|
+
} else u?.value && u.value.__typename === "NodeFunctionIdWrapper" && S(d.getNodeById(i, u.value.id), !0, m, v, N, p, D, x);
|
|
110
|
+
}), e.nextNodeId && S(d.getNodeById(r.id, e.nextNodeId), !1, void 0, v, N, p, D, x);
|
|
111
|
+
};
|
|
112
|
+
return r.startingNodeId && S(d.getNodeById(r.id, r.startingNodeId), !1, void 0, 0, [0], void 0, l, n), t;
|
|
113
|
+
}, [r, g, s, f]);
|
|
136
114
|
};
|
|
137
115
|
export {
|
|
138
|
-
|
|
116
|
+
ee as useFlowNodes
|
|
139
117
|
};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { ReactiveArrayService } from '../../utils';
|
|
2
|
+
import { Flow, FlowInput, FlowSetting, LiteralValue, NamespacesProjectsFlowsCreateInput, NamespacesProjectsFlowsCreatePayload, NamespacesProjectsFlowsDeleteInput, NamespacesProjectsFlowsDeletePayload, NamespacesProjectsFlowsUpdateInput, NamespacesProjectsFlowsUpdatePayload, NodeFunction, NodeParameter, ReferenceValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
export declare abstract class DFlowReactiveService extends ReactiveArrayService<Flow> {
|
|
4
|
+
getById(id: Flow['id']): Flow | undefined;
|
|
5
|
+
protected removeParameterNode(flow: Flow, parameter: NodeParameter): void;
|
|
6
|
+
getNodeById(flowId: Flow['id'], nodeId: NodeFunction['id']): NodeFunction | undefined;
|
|
7
|
+
getPayloadById(flowId: Flow['id']): FlowInput | undefined;
|
|
8
|
+
deleteNodeById(flowId: Flow['id'], nodeId: NodeFunction['id']): Promise<void>;
|
|
9
|
+
addNextNodeById(flowId: Flow['id'], parentNodeId: NodeFunction['id'] | null, nextNode: NodeFunction): Promise<void>;
|
|
10
|
+
setSettingValue(flowId: Flow['id'], settingId: FlowSetting['id'], value: FlowSetting['value']): Promise<void>;
|
|
11
|
+
setParameterValue(flowId: Flow['id'], nodeId: NodeFunction['id'], parameterId: NodeParameter['id'], value?: LiteralValue | ReferenceValue | NodeFunction): Promise<void>;
|
|
7
12
|
abstract flowCreate(payload: NamespacesProjectsFlowsCreateInput): Promise<NamespacesProjectsFlowsCreatePayload | undefined>;
|
|
8
|
-
/** Deletes a namespace project. */
|
|
9
13
|
abstract flowDelete(payload: NamespacesProjectsFlowsDeleteInput): Promise<NamespacesProjectsFlowsDeletePayload | undefined>;
|
|
14
|
+
abstract flowUpdate(payload: NamespacesProjectsFlowsUpdateInput): Promise<NamespacesProjectsFlowsUpdatePayload | undefined>;
|
|
10
15
|
}
|
|
@@ -1,11 +1,121 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import "../../utils/contextStore.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { ReactiveArrayService as I } from "../../utils/reactiveArrayService.js";
|
|
4
|
+
import "merge-props";
|
|
5
|
+
class m extends I {
|
|
6
|
+
getById(n) {
|
|
7
|
+
return this.values().find((t) => t.id === n);
|
|
8
|
+
}
|
|
9
|
+
removeParameterNode(n, t) {
|
|
10
|
+
if (t?.value?.__typename === "NodeFunctionIdWrapper") {
|
|
11
|
+
const i = n?.nodes?.nodes?.find((e) => e?.id === t.value?.id);
|
|
12
|
+
if (i) {
|
|
13
|
+
n.nodes.nodes = n.nodes.nodes.filter((d) => d?.id !== t.value?.id);
|
|
14
|
+
let e = i.nextNodeId;
|
|
15
|
+
for (; e; ) {
|
|
16
|
+
const d = n.nodes.nodes.find((o) => o?.id === e);
|
|
17
|
+
d ? (n.nodes.nodes = n.nodes.nodes.filter((o) => o?.id !== e), e = d.nextNodeId) : e = null;
|
|
18
|
+
}
|
|
19
|
+
i.parameters?.nodes?.forEach((d) => {
|
|
20
|
+
this.removeParameterNode(n, d);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
getNodeById(n, t) {
|
|
26
|
+
return this.getById(n)?.nodes?.nodes?.find((i) => i?.id === t);
|
|
27
|
+
}
|
|
28
|
+
getPayloadById(n) {
|
|
29
|
+
const t = this.getById(n), i = (e) => ({
|
|
30
|
+
...e?.dataType ? {
|
|
31
|
+
dataTypeId: e?.dataType?.id
|
|
32
|
+
} : {},
|
|
33
|
+
...e?.genericKey ? {
|
|
34
|
+
genericKey: e?.genericKey
|
|
35
|
+
} : {},
|
|
36
|
+
...e?.genericType ? {
|
|
37
|
+
genericType: {
|
|
38
|
+
dataTypeId: e?.genericType?.dataType?.id,
|
|
39
|
+
genericMappers: e?.genericType?.genericMappers?.map((d) => ({
|
|
40
|
+
target: d.target,
|
|
41
|
+
sourceDataTypeIdentifiers: d.sourceDataTypeIdentifiers?.map(i) ?? []
|
|
42
|
+
})) ?? []
|
|
43
|
+
}
|
|
44
|
+
} : {}
|
|
45
|
+
});
|
|
46
|
+
return {
|
|
47
|
+
name: t?.name,
|
|
48
|
+
type: t?.type?.id,
|
|
49
|
+
settings: t?.settings?.nodes?.map((e) => ({
|
|
50
|
+
flowSettingIdentifier: e?.flowSettingIdentifier,
|
|
51
|
+
value: e?.value
|
|
52
|
+
})),
|
|
53
|
+
nodes: t?.nodes?.nodes?.map((e) => ({
|
|
54
|
+
id: e?.id,
|
|
55
|
+
nextNodeId: e?.nextNodeId,
|
|
56
|
+
parameters: e?.parameters?.nodes?.map((d) => ({
|
|
57
|
+
runtimeParameterDefinitionId: d?.runtimeParameter?.id,
|
|
58
|
+
value: d?.value?.__typename === "NodeFunctionIdWrapper" ? {
|
|
59
|
+
nodeFunctionId: d.value.id
|
|
60
|
+
} : d?.value?.__typename === "LiteralValue" ? {
|
|
61
|
+
literalValue: d.value.value
|
|
62
|
+
} : {
|
|
63
|
+
referenceValue: {
|
|
64
|
+
dataTypeIdentifier: i((d?.value).dataTypeIdentifier),
|
|
65
|
+
depth: (d?.value).depth,
|
|
66
|
+
node: (d?.value).node,
|
|
67
|
+
nodeFunctionId: (d?.value).nodeFunctionId,
|
|
68
|
+
referencePath: (d?.value).referencePath,
|
|
69
|
+
scope: (d?.value).scope
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
})) ?? [],
|
|
73
|
+
runtimeFunctionId: e?.functionDefinition?.runtimeFunctionDefinition?.id
|
|
74
|
+
})) ?? [],
|
|
75
|
+
startingNodeId: t?.startingNodeId
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
async deleteNodeById(n, t) {
|
|
79
|
+
const i = this.getById(n), e = this.getNodeById(n, t), d = i?.nodes?.nodes?.find((s) => s?.nextNodeId === t), o = this.values().findIndex((s) => s.id === n);
|
|
80
|
+
!i || !e || (i.nodes.nodes = i.nodes.nodes.filter((s) => s?.id !== t), e.parameters?.nodes?.forEach((s) => this.removeParameterNode(i, s)), d ? d.nextNodeId = e.nextNodeId : i.startingNodeId = e.nextNodeId ?? void 0, this.set(o, i));
|
|
81
|
+
}
|
|
82
|
+
async addNextNodeById(n, t, i) {
|
|
83
|
+
const e = this.getById(n), d = this.values().findIndex((u) => u.id === n), o = t ? this.getNodeById(n, t) : void 0;
|
|
84
|
+
if (!e || t && !o) return;
|
|
85
|
+
const r = `gid://sagittarius/NodeFunction/${Math.max(0, ...e.nodes?.nodes?.map((u) => Number(u?.id?.match(/NodeFunction\/(\d+)$/)?.[1] ?? 0)) ?? [0]) + 1}`, a = {
|
|
86
|
+
...i,
|
|
87
|
+
id: r
|
|
88
|
+
};
|
|
89
|
+
o && o.nextNodeId ? a.nextNodeId = o.nextNodeId : !o && e.startingNodeId && (a.nextNodeId = e.startingNodeId), e.nodes?.nodes?.push(a), o ? o.nextNodeId = a.id : e.startingNodeId = a.id, this.set(d, e);
|
|
90
|
+
}
|
|
91
|
+
async setSettingValue(n, t, i) {
|
|
92
|
+
const e = this.getById(n), d = this.values().findIndex((s) => s.id === n);
|
|
93
|
+
if (!e) return;
|
|
94
|
+
const o = e.settings?.nodes?.find((s) => s?.id === t);
|
|
95
|
+
o && (o.value = i, this.set(d, e));
|
|
96
|
+
}
|
|
97
|
+
async setParameterValue(n, t, i, e) {
|
|
98
|
+
const d = this.getById(n), o = this.values().findIndex((a) => a.id === n);
|
|
99
|
+
if (!d) return;
|
|
100
|
+
const s = this.getNodeById(n, t);
|
|
101
|
+
if (!s) return;
|
|
102
|
+
const r = s.parameters?.nodes?.find((a) => a?.id === i);
|
|
103
|
+
if (r) {
|
|
104
|
+
if (this.removeParameterNode(d, r), e?.__typename === "NodeFunction") {
|
|
105
|
+
const a = Math.max(0, ...d.nodes?.nodes?.map((c) => Number(c?.id?.match(/NodeFunction\/(\d+)$/)?.[1] ?? 0)) ?? [0]), u = {
|
|
106
|
+
...e,
|
|
107
|
+
id: `gid://sagittarius/NodeFunction/${a + 1}`
|
|
108
|
+
};
|
|
109
|
+
d.nodes?.nodes?.push(u), r.value = {
|
|
110
|
+
id: `gid://sagittarius/NodeFunction/${a + 1}`,
|
|
111
|
+
__typename: "NodeFunctionIdWrapper"
|
|
112
|
+
};
|
|
113
|
+
} else
|
|
114
|
+
r.value = e;
|
|
115
|
+
this.set(o, d);
|
|
116
|
+
}
|
|
7
117
|
}
|
|
8
118
|
}
|
|
9
119
|
export {
|
|
10
|
-
|
|
120
|
+
m as DFlowReactiveService
|
|
11
121
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { Code0Component } from '
|
|
1
|
+
import { Code0Component } from '../../utils';
|
|
2
2
|
import { Edge, EdgeProps } from '@xyflow/react';
|
|
3
3
|
import { default as React } from 'react';
|
|
4
|
+
import { Flow, NodeFunction } from '@code0-tech/sagittarius-graphql-types';
|
|
4
5
|
export interface DFlowEdgeDataProps extends Code0Component<HTMLDivElement> {
|
|
5
6
|
color?: string;
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
type: 'parameter' | 'suggestion' | 'group' | 'default';
|
|
8
|
+
parentNodeId?: NodeFunction['id'] | null;
|
|
9
|
+
flowId: Flow['id'];
|
|
8
10
|
}
|
|
9
11
|
export type DFlowEdgeProps = EdgeProps<Edge<DFlowEdgeDataProps>>;
|
|
10
12
|
export declare const DFlowEdge: React.FC<DFlowEdgeProps>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx as a, jsxs as L, Fragment as U } from "react/jsx-runtime";
|
|
2
|
+
import { c as z } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { Position as P, getSmoothStepPath as D, BaseEdge as G, EdgeLabelRenderer as T } from "@xyflow/react";
|
|
4
|
+
import { memo as W } from "react";
|
|
5
|
+
import { Badge as q } from "../badge/Badge.js";
|
|
6
|
+
const Q = W((E) => {
|
|
7
|
+
const t = z.c(42);
|
|
8
|
+
let n, s, i, d, e, o, r, l;
|
|
9
|
+
if (t[0] !== E) {
|
|
10
|
+
const {
|
|
11
|
+
sourceX: O,
|
|
12
|
+
sourceY: S,
|
|
13
|
+
targetX: j,
|
|
14
|
+
targetY: v,
|
|
15
|
+
id: w,
|
|
16
|
+
data: C,
|
|
17
|
+
label: F,
|
|
18
|
+
style: A,
|
|
19
|
+
...I
|
|
20
|
+
} = E;
|
|
21
|
+
e = O, o = S, r = j, l = v, s = w, n = C, i = F, d = I, t[0] = E, t[1] = n, t[2] = s, t[3] = i, t[4] = d, t[5] = e, t[6] = o, t[7] = r, t[8] = l;
|
|
22
|
+
} else
|
|
23
|
+
n = t[1], s = t[2], i = t[3], d = t[4], e = t[5], o = t[6], r = t[7], l = t[8];
|
|
24
|
+
const X = n?.type === "parameter" ? P.Left : P.Bottom, Y = n?.type === "parameter" ? P.Right : P.Top;
|
|
25
|
+
let h;
|
|
26
|
+
t[9] !== e || t[10] !== o || t[11] !== X || t[12] !== Y || t[13] !== r || t[14] !== l ? (h = D({
|
|
27
|
+
sourceX: e,
|
|
28
|
+
sourceY: o,
|
|
29
|
+
sourcePosition: X,
|
|
30
|
+
targetX: r,
|
|
31
|
+
targetY: l,
|
|
32
|
+
targetPosition: Y,
|
|
33
|
+
borderRadius: 16,
|
|
34
|
+
stepPosition: 0.5
|
|
35
|
+
}), t[9] = e, t[10] = o, t[11] = X, t[12] = Y, t[13] = r, t[14] = l, t[15] = h) : h = t[15];
|
|
36
|
+
const [$, R, k] = h, x = n?.color ?? "#ffffff", y = `dflow-edge-gradient-${s}`;
|
|
37
|
+
let c, p;
|
|
38
|
+
t[16] !== x ? (c = /* @__PURE__ */ a("stop", { offset: "0", stopColor: x, stopOpacity: 0.75 }), p = /* @__PURE__ */ a("stop", { offset: "1", stopColor: x, stopOpacity: 0.25 }), t[16] = x, t[17] = c, t[18] = p) : (c = t[17], p = t[18]);
|
|
39
|
+
let f;
|
|
40
|
+
t[19] !== y || t[20] !== e || t[21] !== o || t[22] !== c || t[23] !== p || t[24] !== r || t[25] !== l ? (f = /* @__PURE__ */ a("defs", { children: /* @__PURE__ */ L("linearGradient", { id: y, x1: e, y1: o, x2: r, y2: l, gradientUnits: "userSpaceOnUse", children: [
|
|
41
|
+
c,
|
|
42
|
+
p
|
|
43
|
+
] }) }), t[19] = y, t[20] = e, t[21] = o, t[22] = c, t[23] = p, t[24] = r, t[25] = l, t[26] = f) : f = t[26];
|
|
44
|
+
const B = `url(#${y})`;
|
|
45
|
+
let m;
|
|
46
|
+
t[27] !== B ? (m = {
|
|
47
|
+
stroke: B,
|
|
48
|
+
strokeWidth: "2px",
|
|
49
|
+
strokeLinecap: "round"
|
|
50
|
+
}, t[27] = B, t[28] = m) : m = t[28];
|
|
51
|
+
let g;
|
|
52
|
+
t[29] !== $ || t[30] !== s || t[31] !== d || t[32] !== m ? (g = /* @__PURE__ */ a(G, { id: s, path: $, ...d, style: m }), t[29] = $, t[30] = s, t[31] = d, t[32] = m, t[33] = g) : g = t[33];
|
|
53
|
+
let u;
|
|
54
|
+
t[34] !== i || t[35] !== R || t[36] !== k ? (u = i ? /* @__PURE__ */ a(T, { children: /* @__PURE__ */ a("div", { style: {
|
|
55
|
+
position: "absolute",
|
|
56
|
+
transform: `translate(-50%, -50%) translate(${R}px, ${k}px)`,
|
|
57
|
+
pointerEvents: "all",
|
|
58
|
+
zIndex: 100
|
|
59
|
+
}, children: /* @__PURE__ */ a(q, { color: "primary", border: !0, children: i }) }) }) : null, t[34] = i, t[35] = R, t[36] = k, t[37] = u) : u = t[37];
|
|
60
|
+
let b;
|
|
61
|
+
return t[38] !== f || t[39] !== g || t[40] !== u ? (b = /* @__PURE__ */ L(U, { children: [
|
|
62
|
+
f,
|
|
63
|
+
g,
|
|
64
|
+
u
|
|
65
|
+
] }), t[38] = f, t[39] = g, t[40] = u, t[41] = b) : b = t[41], b;
|
|
66
|
+
});
|
|
67
|
+
export {
|
|
68
|
+
Q as DFlowEdge
|
|
69
|
+
};
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
export * from './DFlow
|
|
1
|
+
export * from './DFlow';
|
|
2
2
|
export * from './DFlow.service';
|
|
3
3
|
export * from './DFlow.edges.hook';
|
|
4
4
|
export * from './DFlow.nodes.hook';
|
|
5
|
-
export * from './DFlow';
|
|
6
|
-
export * from './control/index';
|
|
7
|
-
export * from './data-type/index';
|
|
8
|
-
export * from './folder/index';
|
|
9
|
-
export * from './function/index';
|
|
10
|
-
export * from './minimap/index';
|
|
11
|
-
export * from './suggestion/index';
|
|
12
|
-
export * from './type/index';
|
|
13
|
-
export * from './validation/index';
|
|
@@ -1,46 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DFlowReactiveService as
|
|
3
|
-
import { FLOW_EDGE_RAINBOW as
|
|
4
|
-
import { useFlowNodes as
|
|
5
|
-
import { DFlow as x } from "./DFlow.js";
|
|
6
|
-
import { DFlowControl as u } from "./control/DFlowControl.js";
|
|
7
|
-
import { DFlowDataTypeReactiveService as V } from "./data-type/DFlowDataType.service.js";
|
|
8
|
-
import { DataTypeView as s } from "./data-type/DFlowDataType.view.js";
|
|
9
|
-
import { DFlowFolder as g, DFlowFolderGroup as R, DFlowFolderItem as y } from "./folder/DFlowFolder.js";
|
|
10
|
-
import { DFlowFunctionReactiveService as N } from "./function/DFlowFunction.service.js";
|
|
11
|
-
import { FunctionDefinitionView as G, ParameterDefinitionView as I } from "./function/DFlowFunction.view.js";
|
|
12
|
-
import { DFlowMiniMap as O } from "./minimap/DFlowMiniMap.js";
|
|
13
|
-
import { DFlowReactiveSuggestionService as W } from "./suggestion/DFlowSuggestion.service.js";
|
|
14
|
-
import { DFlowSuggestion as A, DFlowSuggestionType as B } from "./suggestion/DFlowSuggestion.view.js";
|
|
15
|
-
import { DFlowTypeReactiveService as L } from "./type/DFlowType.service.js";
|
|
16
|
-
import { FlowTypeView as h } from "./type/DFlowType.view.js";
|
|
17
|
-
import { useDFlowValidations as k } from "./validation/DFlowValidation.hook.js";
|
|
18
|
-
import { DFlowValidation as z } from "./validation/DFlowValidation.js";
|
|
1
|
+
import { DFlow as r } from "./DFlow.js";
|
|
2
|
+
import { DFlowReactiveService as F } from "./DFlow.service.js";
|
|
3
|
+
import { FLOW_EDGE_RAINBOW as l, useFlowEdges as m } from "./DFlow.edges.hook.js";
|
|
4
|
+
import { useFlowNodes as s } from "./DFlow.nodes.hook.js";
|
|
19
5
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
y as DFlowFolderItem,
|
|
26
|
-
N as DFlowFunctionReactiveService,
|
|
27
|
-
O as DFlowMiniMap,
|
|
28
|
-
l as DFlowReactiveService,
|
|
29
|
-
W as DFlowReactiveSuggestionService,
|
|
30
|
-
A as DFlowSuggestion,
|
|
31
|
-
B as DFlowSuggestionType,
|
|
32
|
-
L as DFlowTypeReactiveService,
|
|
33
|
-
z as DFlowValidation,
|
|
34
|
-
s as DataTypeView,
|
|
35
|
-
m as FLOW_EDGE_RAINBOW,
|
|
36
|
-
r as FlowSettingView,
|
|
37
|
-
h as FlowTypeView,
|
|
38
|
-
t as FlowView,
|
|
39
|
-
G as FunctionDefinitionView,
|
|
40
|
-
i as NodeFunctionView,
|
|
41
|
-
w as NodeParameterView,
|
|
42
|
-
I as ParameterDefinitionView,
|
|
43
|
-
k as useDFlowValidations,
|
|
44
|
-
f as useFlowEdges,
|
|
45
|
-
a as useFlowNodes
|
|
6
|
+
r as DFlow,
|
|
7
|
+
F as DFlowReactiveService,
|
|
8
|
+
l as FLOW_EDGE_RAINBOW,
|
|
9
|
+
m as useFlowEdges,
|
|
10
|
+
s as useFlowNodes
|
|
46
11
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactiveArrayService } from '../../utils';
|
|
2
|
+
import { DataTypeView } from './DFlowDataType.view';
|
|
3
|
+
import { DataTypeIdentifier, Flow, Maybe, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
export declare abstract class DFlowDataTypeReactiveService extends ReactiveArrayService<DataTypeView> {
|
|
5
|
+
getDataType(type: DataTypeIdentifier): DataTypeView | undefined;
|
|
6
|
+
getDataTypeFromValue(value: NodeParameterValue, flow?: Flow): DataTypeView | undefined;
|
|
7
|
+
getTypeFromValue(value: NodeParameterValue, flow?: Flow): Maybe<DataTypeIdentifier> | undefined;
|
|
8
|
+
hasDataTypes(types: DataTypeIdentifier[]): boolean;
|
|
9
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import "../../utils/contextStore.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { ReactiveArrayService as s } from "../../utils/reactiveArrayService.js";
|
|
4
|
+
import "merge-props";
|
|
5
|
+
import { resolveType as y } from "../../utils/generics.js";
|
|
6
|
+
import { useValueValidation as f } from "../d-flow-validation/DValueValidation.hook.js";
|
|
7
|
+
class D extends s {
|
|
6
8
|
getDataType(e) {
|
|
7
9
|
if (!e || e.genericKey) return;
|
|
8
10
|
const i = e.dataType?.identifier ?? e.genericType?.dataType?.identifier, t = e.dataType?.id ?? e.genericType?.dataType?.id;
|
|
@@ -32,7 +34,7 @@ class l extends s {
|
|
|
32
34
|
}
|
|
33
35
|
});
|
|
34
36
|
}
|
|
35
|
-
const t = this.values().filter((r) => r.identifier === "OBJECT" || e.__typename === "
|
|
37
|
+
const t = this.values().filter((r) => r.identifier === "OBJECT" || e.__typename === "NodeFunctionIdWrapper" && (r.variant != "NODE" || !i) ? !1 : f(e, r, this, i));
|
|
36
38
|
return t[t.length - 1];
|
|
37
39
|
}
|
|
38
40
|
getTypeFromValue(e, i) {
|
|
@@ -45,7 +47,7 @@ class l extends s {
|
|
|
45
47
|
}
|
|
46
48
|
};
|
|
47
49
|
const r = t.genericKeys.map((a) => {
|
|
48
|
-
const n = t.rules?.nodes?.find((d) => "dataTypeIdentifier" in (d?.config ?? {}) && d?.config?.dataTypeIdentifier?.genericKey == a || "inputTypes" in (d?.config ?? {}) && d.config.inputTypes?.some((
|
|
50
|
+
const n = t.rules?.nodes?.find((d) => "dataTypeIdentifier" in (d?.config ?? {}) && d?.config?.dataTypeIdentifier?.genericKey == a || "inputTypes" in (d?.config ?? {}) && d.config.inputTypes?.some((T) => T.dataTypeIdentifier?.genericKey == a));
|
|
49
51
|
return n && n.variant == "CONTAINS_TYPE" && "value" in e && e?.value && t.variant === "ARRAY" ? {
|
|
50
52
|
sourceDataTypeIdentifiers: [this.getTypeFromValue({
|
|
51
53
|
__typename: "LiteralValue",
|
|
@@ -68,7 +70,7 @@ class l extends s {
|
|
|
68
70
|
}],
|
|
69
71
|
target: a
|
|
70
72
|
} : null;
|
|
71
|
-
}).filter((a) => !!a),
|
|
73
|
+
}).filter((a) => !!a), p = r.length > 0 ? {
|
|
72
74
|
genericType: {
|
|
73
75
|
dataType: {
|
|
74
76
|
id: t.id
|
|
@@ -80,12 +82,12 @@ class l extends s {
|
|
|
80
82
|
id: t.id
|
|
81
83
|
}
|
|
82
84
|
};
|
|
83
|
-
return y(
|
|
85
|
+
return y(p, this);
|
|
84
86
|
}
|
|
85
87
|
hasDataTypes(e) {
|
|
86
88
|
return e.every((i) => this.values().find((t) => t.id === (i.genericType?.dataType?.id ?? i.dataType?.id)));
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
91
|
export {
|
|
90
|
-
|
|
92
|
+
D as DFlowDataTypeReactiveService
|
|
91
93
|
};
|