@code0-tech/pictor 0.0.0-mvp.26 → 0.0.0-mvp.28
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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import c from "react";
|
|
3
|
+
import { Panel as u } from "@xyflow/react";
|
|
4
|
+
import { useService as w, useStore as b } from "../../utils/contextStore.js";
|
|
5
|
+
import "merge-props";
|
|
6
|
+
import "../d-flow/DFlow.js";
|
|
7
|
+
import { DFlowReactiveService as m } from "../d-flow/DFlow.service.js";
|
|
8
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
9
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
10
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
11
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
12
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
13
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
14
|
+
import "js-md5";
|
|
15
|
+
import { Button as x } from "../button/Button.js";
|
|
16
|
+
const F = (p) => {
|
|
17
|
+
const {
|
|
18
|
+
flowId: e
|
|
19
|
+
} = p, l = w(m), s = b(m), t = c.useMemo(() => l.getById(e), [s, e]), a = c.useCallback(() => {
|
|
20
|
+
if (!t) return;
|
|
21
|
+
const r = t;
|
|
22
|
+
if (!r) return;
|
|
23
|
+
const f = JSON.stringify(r, null, 2), d = new Blob([f], {
|
|
24
|
+
type: "application/json"
|
|
25
|
+
}), i = URL.createObjectURL(d), o = document.createElement("a");
|
|
26
|
+
o.href = i, o.download = `flow-${t.name}.json`, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(i);
|
|
27
|
+
}, [t]);
|
|
28
|
+
return /* @__PURE__ */ n(u, { position: "top-right", children: /* @__PURE__ */ n(x, { paddingSize: "xxs", onClick: a, children: "Export flow" }) });
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
F as DFlowExport
|
|
32
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as a } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { useNodes as d, Panel as h, MiniMap as s } from "@xyflow/react";
|
|
4
|
+
import "../d-flow/DFlow.js";
|
|
5
|
+
import "../../utils/contextStore.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "merge-props";
|
|
8
|
+
import { FLOW_EDGE_RAINBOW as p } from "../d-flow/DFlow.edges.hook.js";
|
|
9
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
10
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
11
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
12
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
13
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
14
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
15
|
+
import "js-md5";
|
|
16
|
+
import '../../assets/components/d-flow-panel/DFlowMiniMap.style.css';/* empty css */
|
|
17
|
+
const F = (c) => {
|
|
18
|
+
const i = a.c(2), m = d();
|
|
19
|
+
let o;
|
|
20
|
+
return i[0] !== m ? (o = /* @__PURE__ */ e(h, { position: "bottom-right", children: /* @__PURE__ */ e(s, { offsetScale: 0, pannable: !0, zoomable: !0, className: "d-flow-viewport-mini-map", nodeComponent: (t) => {
|
|
21
|
+
const r = m.find((n) => n.id === t.id);
|
|
22
|
+
if (!r || r.type == "suggestion")
|
|
23
|
+
return null;
|
|
24
|
+
if (r.type == "group") {
|
|
25
|
+
const n = r.data?.depth ?? 0, l = p[n % p.length];
|
|
26
|
+
return /* @__PURE__ */ e("rect", { width: t.width, height: t.height, rx: 50, ry: 50, fill: l, fillOpacity: 0.05, stroke: l, strokeWidth: 2, "stroke-dasharray": "20", className: "d-flow-viewport-mini-map__group", x: t.x, y: t.y });
|
|
27
|
+
}
|
|
28
|
+
return /* @__PURE__ */ e("rect", { width: t.width, height: t.height, x: t.x, rx: 25, ry: 25, fill: "rgb(28.2, 25.5, 43.5)", y: t.y });
|
|
29
|
+
} }) }), i[0] = m, i[1] = o) : o = i[1], o;
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
F as DFlowMiniMap
|
|
33
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as o, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import l from "react";
|
|
3
|
+
import { ButtonGroup as N } from "../button-group/ButtonGroup.js";
|
|
4
|
+
import { Button as a } from "../button/Button.js";
|
|
5
|
+
import { IconTrash as C, IconPlus as I } from "@tabler/icons-react";
|
|
6
|
+
import { Panel as B } from "@xyflow/react";
|
|
7
|
+
import { useService as m, useStore as F } from "../../utils/contextStore.js";
|
|
8
|
+
import "merge-props";
|
|
9
|
+
import { FileTabsService as u } from "../file-tabs/FileTabs.service.js";
|
|
10
|
+
import "../d-flow/DFlow.js";
|
|
11
|
+
import { DFlowReactiveService as z } from "../d-flow/DFlow.service.js";
|
|
12
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
13
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
14
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
15
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
16
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
17
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
18
|
+
import "js-md5";
|
|
19
|
+
import { Tooltip as f, TooltipTrigger as h, TooltipPortal as v, TooltipContent as T, TooltipArrow as x } from "../tooltip/Tooltip.js";
|
|
20
|
+
import { Text as d } from "../text/Text.js";
|
|
21
|
+
import { Badge as S } from "../badge/Badge.js";
|
|
22
|
+
import { DFlowSuggestionMenu as P } from "../d-flow-suggestion/DFlowSuggestionMenu.js";
|
|
23
|
+
import { useSuggestions as _ } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
|
|
24
|
+
const eo = (w) => {
|
|
25
|
+
const {
|
|
26
|
+
flowId: r
|
|
27
|
+
} = w, s = m(u), p = F(u), i = m(z), [, c] = l.useTransition(), e = l.useMemo(() => p.find((n) => n.active), [p, s]), g = _(void 0, [], r, 0, [0], 0), y = l.useCallback(() => {
|
|
28
|
+
e && (c(async () => {
|
|
29
|
+
await i.deleteNodeById(e.content.props.flowId, e.content.props.node.id);
|
|
30
|
+
}), s.deleteById(e.id));
|
|
31
|
+
}, [e, i]), b = l.useCallback((n) => {
|
|
32
|
+
r && n.value.__typename === "NodeFunction" && "node" in e.content.props ? c(async () => {
|
|
33
|
+
await i.addNextNodeById(r, e.content.props.node.id ?? void 0, n.value);
|
|
34
|
+
}) : c(async () => {
|
|
35
|
+
await i.addNextNodeById(r, null, n.value);
|
|
36
|
+
});
|
|
37
|
+
}, [r, i, e]);
|
|
38
|
+
return /* @__PURE__ */ o(B, { position: "bottom-center", children: /* @__PURE__ */ t(N, { children: [
|
|
39
|
+
/* @__PURE__ */ t(f, { children: [
|
|
40
|
+
/* @__PURE__ */ o(h, { asChild: !0, children: /* @__PURE__ */ o(a, { color: "info", paddingSize: "xxs", variant: "none", "aria-selected": !0, children: "Execute flow" }) }),
|
|
41
|
+
/* @__PURE__ */ o(v, { children: /* @__PURE__ */ t(T, { maw: "300px", children: [
|
|
42
|
+
/* @__PURE__ */ t(d, { children: [
|
|
43
|
+
"To execute this flow you can call the following endpoint ",
|
|
44
|
+
" ",
|
|
45
|
+
" ",
|
|
46
|
+
/* @__PURE__ */ o("br", {}),
|
|
47
|
+
/* @__PURE__ */ o(S, { children: /* @__PURE__ */ o(d, { children: "POST" }) }),
|
|
48
|
+
/* @__PURE__ */ o(S, { color: "info", border: !0, children: /* @__PURE__ */ o(d, { style: {
|
|
49
|
+
color: "inherit"
|
|
50
|
+
}, children: "localhost:6212/72hsa13/users/get" }) })
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ o(x, {})
|
|
53
|
+
] }) })
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ t(f, { children: [
|
|
56
|
+
/* @__PURE__ */ o(h, { asChild: !0, children: /* @__PURE__ */ o(a, { disabled: !e, onClick: y, paddingSize: "xxs", variant: "none", color: "primary", children: /* @__PURE__ */ o(C, { size: 16 }) }) }),
|
|
57
|
+
/* @__PURE__ */ o(v, { children: /* @__PURE__ */ t(T, { children: [
|
|
58
|
+
/* @__PURE__ */ o(d, { children: "Select a node to delete it" }),
|
|
59
|
+
/* @__PURE__ */ o(x, {})
|
|
60
|
+
] }) })
|
|
61
|
+
] }),
|
|
62
|
+
/* @__PURE__ */ o(P, { suggestions: g, onSuggestionSelect: b, triggerContent: /* @__PURE__ */ t(a, { disabled: !e, paddingSize: "xxs", variant: "none", color: "primary", children: [
|
|
63
|
+
/* @__PURE__ */ o(I, { size: 16 }),
|
|
64
|
+
"Next node"
|
|
65
|
+
] }) })
|
|
66
|
+
] }) });
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
eo as DFlowPanelControl
|
|
70
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as y } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { SegmentedControlItem as m, SegmentedControl as _ } from "../segmented-control/SegmentedControl.js";
|
|
4
|
+
import { IconLayoutDistributeHorizontal as b, IconLayoutDistributeVertical as x, IconLayout as S } from "@tabler/icons-react";
|
|
5
|
+
import { Panel as z } from "@xyflow/react";
|
|
6
|
+
import { TooltipTrigger as s, Tooltip as d, TooltipPortal as h, TooltipContent as f, TooltipArrow as p } from "../tooltip/Tooltip.js";
|
|
7
|
+
import { Text as u } from "../text/Text.js";
|
|
8
|
+
const V = (T) => {
|
|
9
|
+
const l = y.c(6);
|
|
10
|
+
let o;
|
|
11
|
+
l[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ e(s, { asChild: !0, children: /* @__PURE__ */ e(m, { value: "horizontal", display: "flex", children: /* @__PURE__ */ e(b, { size: 16 }) }) }), l[0] = o) : o = l[0];
|
|
12
|
+
let r;
|
|
13
|
+
l[1] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ t(d, { children: [
|
|
14
|
+
o,
|
|
15
|
+
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ t(f, { children: [
|
|
16
|
+
/* @__PURE__ */ e(p, {}),
|
|
17
|
+
/* @__PURE__ */ e(u, { children: "Vertical layout" })
|
|
18
|
+
] }) })
|
|
19
|
+
] }), l[1] = r) : r = l[1];
|
|
20
|
+
let i;
|
|
21
|
+
l[2] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ e(s, { asChild: !0, children: /* @__PURE__ */ e(m, { disabled: !0, value: "vertical", display: "flex", children: /* @__PURE__ */ e(x, { size: 16 }) }) }), l[2] = i) : i = l[2];
|
|
22
|
+
let n;
|
|
23
|
+
l[3] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ t(d, { children: [
|
|
24
|
+
i,
|
|
25
|
+
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ t(f, { children: [
|
|
26
|
+
/* @__PURE__ */ e(p, {}),
|
|
27
|
+
/* @__PURE__ */ e(u, { children: "Horizontal layout" })
|
|
28
|
+
] }) })
|
|
29
|
+
] }), l[3] = n) : n = l[3];
|
|
30
|
+
let c;
|
|
31
|
+
l[4] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ e(s, { asChild: !0, children: /* @__PURE__ */ e(m, { disabled: !0, value: "manual", display: "flex", children: /* @__PURE__ */ e(S, { size: 16 }) }) }), l[4] = c) : c = l[4];
|
|
32
|
+
let a;
|
|
33
|
+
return l[5] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ e(z, { position: "top-center", children: /* @__PURE__ */ t(_, { type: "single", defaultValue: "horizontal", children: [
|
|
34
|
+
r,
|
|
35
|
+
n,
|
|
36
|
+
/* @__PURE__ */ t(d, { children: [
|
|
37
|
+
c,
|
|
38
|
+
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ t(f, { children: [
|
|
39
|
+
/* @__PURE__ */ e(p, {}),
|
|
40
|
+
/* @__PURE__ */ e(u, { children: "Manual layout" })
|
|
41
|
+
] }) })
|
|
42
|
+
] })
|
|
43
|
+
] }) }), l[5] = a) : a = l[5], a;
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
V as DFlowPanelLayout
|
|
47
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { jsx as o, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import { c as R } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { useViewport as V, useReactFlow as v, Panel as E } from "@xyflow/react";
|
|
4
|
+
import { ButtonGroup as G } from "../button-group/ButtonGroup.js";
|
|
5
|
+
import { Button as M } from "../button/Button.js";
|
|
6
|
+
import { IconPlus as T, IconMinus as Z, IconFocusCentered as $ } from "@tabler/icons-react";
|
|
7
|
+
import { Badge as q } from "../badge/Badge.js";
|
|
8
|
+
import { Flex as O } from "../flex/Flex.js";
|
|
9
|
+
import { Text as A } from "../text/Text.js";
|
|
10
|
+
const Y = () => {
|
|
11
|
+
const e = R.c(40), F = V(), t = v();
|
|
12
|
+
let d;
|
|
13
|
+
e[0] !== t ? (d = () => {
|
|
14
|
+
t.zoomIn();
|
|
15
|
+
}, e[0] = t, e[1] = d) : d = e[1];
|
|
16
|
+
const P = d;
|
|
17
|
+
let p;
|
|
18
|
+
e[2] !== t ? (p = () => {
|
|
19
|
+
t.zoomOut();
|
|
20
|
+
}, e[2] = t, e[3] = p) : p = e[3];
|
|
21
|
+
const k = p;
|
|
22
|
+
let h;
|
|
23
|
+
e[4] !== t ? (h = () => {
|
|
24
|
+
t.fitView();
|
|
25
|
+
}, e[4] = t, e[5] = h) : h = e[5];
|
|
26
|
+
const B = h;
|
|
27
|
+
let y;
|
|
28
|
+
e[6] !== F.zoom ? (y = () => Math.round(F.zoom * 100), e[6] = F.zoom, e[7] = y) : y = e[7];
|
|
29
|
+
const j = y;
|
|
30
|
+
let _;
|
|
31
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
32
|
+
flexDirection: "column",
|
|
33
|
+
gap: "1rem"
|
|
34
|
+
}, e[8] = _) : _ = e[8];
|
|
35
|
+
let u;
|
|
36
|
+
e[9] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
37
|
+
gap: ".7rem"
|
|
38
|
+
}, e[9] = u) : u = e[9];
|
|
39
|
+
let b;
|
|
40
|
+
e[10] === Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
41
|
+
border: "none"
|
|
42
|
+
}, e[10] = b) : b = e[10];
|
|
43
|
+
let l;
|
|
44
|
+
e[11] !== P ? (l = () => P(), e[11] = P, e[12] = l) : l = e[12];
|
|
45
|
+
let z;
|
|
46
|
+
e[13] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ o(T, { size: 15 }), e[13] = z) : z = e[13];
|
|
47
|
+
let r;
|
|
48
|
+
e[14] !== l ? (r = /* @__PURE__ */ o(M, { style: b, paddingSize: "xxs", color: "secondary", onClick: l, children: z }), e[14] = l, e[15] = r) : r = e[15];
|
|
49
|
+
let x;
|
|
50
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (x = {
|
|
51
|
+
border: "none"
|
|
52
|
+
}, e[16] = x) : x = e[16];
|
|
53
|
+
let i;
|
|
54
|
+
e[17] !== k ? (i = () => k(), e[17] = k, e[18] = i) : i = e[18];
|
|
55
|
+
let S;
|
|
56
|
+
e[19] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ o(Z, { size: 15 }), e[19] = S) : S = e[19];
|
|
57
|
+
let n;
|
|
58
|
+
e[20] !== i ? (n = /* @__PURE__ */ o(M, { style: x, paddingSize: "xxs", color: "secondary", onClick: i, children: S }), e[20] = i, e[21] = n) : n = e[21];
|
|
59
|
+
let g;
|
|
60
|
+
e[22] === Symbol.for("react.memo_cache_sentinel") ? (g = {
|
|
61
|
+
border: "none"
|
|
62
|
+
}, e[22] = g) : g = e[22];
|
|
63
|
+
let c;
|
|
64
|
+
e[23] !== B ? (c = () => B(), e[23] = B, e[24] = c) : c = e[24];
|
|
65
|
+
let w;
|
|
66
|
+
e[25] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ o($, { size: 15 }), e[25] = w) : w = e[25];
|
|
67
|
+
let s;
|
|
68
|
+
e[26] !== c ? (s = /* @__PURE__ */ o(M, { style: g, paddingSize: "xxs", color: "secondary", onClick: c, children: w }), e[26] = c, e[27] = s) : s = e[27];
|
|
69
|
+
let m;
|
|
70
|
+
e[28] !== n || e[29] !== s || e[30] !== r ? (m = /* @__PURE__ */ D(G, { children: [
|
|
71
|
+
r,
|
|
72
|
+
n,
|
|
73
|
+
s
|
|
74
|
+
] }), e[28] = n, e[29] = s, e[30] = r, e[31] = m) : m = e[31];
|
|
75
|
+
let I;
|
|
76
|
+
e[32] === Symbol.for("react.memo_cache_sentinel") ? (I = {
|
|
77
|
+
border: "none"
|
|
78
|
+
}, e[32] = I) : I = e[32];
|
|
79
|
+
let f;
|
|
80
|
+
e[33] !== j ? (f = j(), e[33] = j, e[34] = f) : f = e[34];
|
|
81
|
+
let a;
|
|
82
|
+
e[35] !== f ? (a = /* @__PURE__ */ o(q, { color: "primary", style: I, children: /* @__PURE__ */ D(A, { children: [
|
|
83
|
+
f,
|
|
84
|
+
"%"
|
|
85
|
+
] }) }), e[35] = f, e[36] = a) : a = e[36];
|
|
86
|
+
let C;
|
|
87
|
+
return e[37] !== m || e[38] !== a ? (C = /* @__PURE__ */ o(E, { position: "bottom-left", children: /* @__PURE__ */ o(O, { style: _, children: /* @__PURE__ */ D(O, { align: "center", style: u, children: [
|
|
88
|
+
m,
|
|
89
|
+
a
|
|
90
|
+
] }) }) }), e[37] = m, e[38] = a, e[39] = C) : C = e[39], C;
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
Y as DFlowPanelSize
|
|
94
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DFlowPanelSize as e } from "./DFlowPanelSize.js";
|
|
2
|
+
import { DFlowPanelControl as t } from "./DFlowPanelControl.js";
|
|
3
|
+
import { DFlowExport as x } from "./DFlowExport.js";
|
|
4
|
+
import { DFlowMiniMap as f } from "./DFlowMiniMap.js";
|
|
5
|
+
import { DFlowPanelLayout as n } from "./DFlowPanelLayout.js";
|
|
6
|
+
export {
|
|
7
|
+
x as DFlowExport,
|
|
8
|
+
f as DFlowMiniMap,
|
|
9
|
+
t as DFlowPanelControl,
|
|
10
|
+
n as DFlowPanelLayout,
|
|
11
|
+
e as DFlowPanelSize
|
|
12
|
+
};
|
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
import { DFlowSuggestion, DFlowSuggestionType } from './DFlowSuggestion.view';
|
|
2
2
|
import { DataTypeIdentifier, Flow, ReferenceValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
3
|
export declare const useSuggestions: (type: DataTypeIdentifier | undefined, genericKeys: string[] | undefined, flowId: Flow["id"], depth?: number, scope?: number[], node?: number, suggestionTypes?: DFlowSuggestionType[]) => DFlowSuggestion[];
|
|
4
|
-
/**
|
|
5
|
-
* React hook that produces a stable MD5 hash for a given Type, deeply resolving:
|
|
6
|
-
* - All type aliases (via DFlowDataTypeReactiveService) at any level of nesting
|
|
7
|
-
* - All occurrences of any provided generic_keys (can be any string) as "GENERIC"
|
|
8
|
-
* - All generic_mapper/type fields, rules/config.type fields, and parent fields, recursively
|
|
9
|
-
* - All object keys sorted for stable, order-independent hashing
|
|
10
|
-
*
|
|
11
|
-
* This ensures semantically equivalent types—regardless of alias, generic key naming, or structural nesting—
|
|
12
|
-
* always produce the same hash, making this suitable for caching, deduplication, and fast comparison.
|
|
13
|
-
*
|
|
14
|
-
* @param type The Type to hash (either a string or a GenericType object)
|
|
15
|
-
* @param generic_keys (optional) Array of string keys that should be normalized as generics (can be any string)
|
|
16
|
-
* @returns MD5 hash string if type/service available, otherwise undefined
|
|
17
|
-
*/
|
|
18
|
-
export declare const useTypeHash: (type: DataTypeIdentifier, generic_keys?: string[]) => string | undefined;
|
|
19
4
|
/**
|
|
20
5
|
* Walks the flow starting at its startingNode (depth-first, left-to-right) and collects
|
|
21
6
|
* all RefObjects (variables/outputs) with contextual metadata:
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { useService as _ } from "../../utils/contextStore.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "merge-props";
|
|
4
|
+
import { DFlowDataTypeReactiveService as C } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
5
|
+
import { DFlowSuggestionType as i } from "./DFlowSuggestion.view.js";
|
|
6
|
+
import { DFlowFunctionReactiveService as B } from "../d-flow-function/DFlowFunction.service.js";
|
|
7
|
+
import { replaceGenericsAndSortType as h, resolveType as A, isMatchingType as S } from "../../utils/generics.js";
|
|
8
|
+
import "../d-flow/DFlow.js";
|
|
9
|
+
import { DFlowReactiveService as V } from "../d-flow/DFlow.service.js";
|
|
10
|
+
import "js-md5";
|
|
11
|
+
import { useReturnType as x } from "../d-flow-function/DFlowFunction.return.hook.js";
|
|
12
|
+
import { useInputType as b } from "../d-flow-function/DFlowFunction.input.hook.js";
|
|
13
|
+
const z = (s, l, T, E = 0, y = [0], I = 1, N = [i.REF_OBJECT, i.VALUE, i.FUNCTION, i.FUNCTION_COMBINATION, i.DATA_TYPE]) => {
|
|
14
|
+
const v = _(C), D = _(B), g = s ? v?.getDataType(s) : void 0, m = s ? h(A(s, v), l) : void 0, o = [];
|
|
15
|
+
return g && N.includes(i.VALUE) && g.rules?.nodes?.forEach((r) => {
|
|
16
|
+
if (r?.variant === "ITEM_OF_COLLECTION")
|
|
17
|
+
r.config.items?.forEach((e) => {
|
|
18
|
+
const t = {
|
|
19
|
+
path: [],
|
|
20
|
+
type: i.VALUE,
|
|
21
|
+
displayText: [e.toString()],
|
|
22
|
+
value: {
|
|
23
|
+
__typename: "LiteralValue",
|
|
24
|
+
value: e
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
o.push(t);
|
|
28
|
+
});
|
|
29
|
+
else if (r?.variant === "NUMBER_RANGE") {
|
|
30
|
+
const e = r.config, t = {
|
|
31
|
+
path: [],
|
|
32
|
+
type: i.VALUE,
|
|
33
|
+
displayText: [e.from?.toString() ?? ""],
|
|
34
|
+
value: {
|
|
35
|
+
__typename: "LiteralValue",
|
|
36
|
+
value: e.from
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
o.push(t);
|
|
40
|
+
}
|
|
41
|
+
}), g && g.variant === "DATA_TYPE" && N.includes(i.DATA_TYPE) && v.values().forEach((r) => {
|
|
42
|
+
const e = {
|
|
43
|
+
path: [],
|
|
44
|
+
type: i.DATA_TYPE,
|
|
45
|
+
displayText: [r.name?.nodes[0]?.content],
|
|
46
|
+
/*@ts-ignore*/
|
|
47
|
+
value: r.json
|
|
48
|
+
};
|
|
49
|
+
o.push(e);
|
|
50
|
+
}), N.includes(i.FUNCTION_COMBINATION) && D.values().filter((e) => {
|
|
51
|
+
if (!s || !m) return !0;
|
|
52
|
+
if (e.runtimeFunctionDefinition?.identifier == "RETURN" && s) return !1;
|
|
53
|
+
if (g?.variant === "NODE") return !0;
|
|
54
|
+
if (!e.returnType || !e.genericKeys) return !1;
|
|
55
|
+
const t = h(A(e.returnType, v), e.genericKeys);
|
|
56
|
+
return S(m, t);
|
|
57
|
+
}).sort((e, t) => {
|
|
58
|
+
const [a, d, c] = e.runtimeFunctionDefinition.identifier.split("::"), [u, n, p] = t.runtimeFunctionDefinition.identifier.split("::"), f = a.localeCompare(u);
|
|
59
|
+
if (f !== 0) return f;
|
|
60
|
+
const F = d.localeCompare(n);
|
|
61
|
+
return F !== 0 ? F : c.localeCompare(p);
|
|
62
|
+
}).forEach((e) => {
|
|
63
|
+
const t = {
|
|
64
|
+
__typename: "NodeFunction",
|
|
65
|
+
id: "gid://sagittarius/NodeFunction/1",
|
|
66
|
+
functionDefinition: {
|
|
67
|
+
id: e.id,
|
|
68
|
+
runtimeFunctionDefinition: e.runtimeFunctionDefinition
|
|
69
|
+
},
|
|
70
|
+
parameters: {
|
|
71
|
+
nodes: e.parameterDefinitions?.map((d) => ({
|
|
72
|
+
id: d.id,
|
|
73
|
+
runtimeParameter: {
|
|
74
|
+
id: d.id
|
|
75
|
+
}
|
|
76
|
+
})) ?? []
|
|
77
|
+
}
|
|
78
|
+
}, a = {
|
|
79
|
+
path: [],
|
|
80
|
+
type: i.FUNCTION,
|
|
81
|
+
displayText: [e.names?.nodes[0]?.content],
|
|
82
|
+
value: t
|
|
83
|
+
};
|
|
84
|
+
o.push(a);
|
|
85
|
+
}), N.includes(i.REF_OBJECT) && (s ? L(T) : []).forEach((e) => {
|
|
86
|
+
if ((e?.node ?? 0) >= I || (e?.depth ?? 0) > E || (e?.scope ?? []).some((d) => !y.includes(d)) || !m) return;
|
|
87
|
+
const t = h(A(e.dataTypeIdentifier, v), []);
|
|
88
|
+
if (!S(m, t)) return;
|
|
89
|
+
const a = {
|
|
90
|
+
path: [],
|
|
91
|
+
type: i.REF_OBJECT,
|
|
92
|
+
displayText: [`${e.depth}-${e.scope}-${e.node || ""}`],
|
|
93
|
+
value: e
|
|
94
|
+
};
|
|
95
|
+
o.push(a);
|
|
96
|
+
}), o.sort();
|
|
97
|
+
}, L = (s) => {
|
|
98
|
+
const l = _(C), T = _(V), E = _(B), y = [];
|
|
99
|
+
if (!l || !T || !E) return y;
|
|
100
|
+
const I = T.values().find((o) => o.id === s);
|
|
101
|
+
if (!I?.startingNodeId) return y;
|
|
102
|
+
let N = 0;
|
|
103
|
+
const v = () => ++N;
|
|
104
|
+
let D = 0;
|
|
105
|
+
const g = () => ++D, m = (o, r, e) => {
|
|
106
|
+
if (!o) return;
|
|
107
|
+
let t = o.__typename === "NodeFunctionIdWrapper" ? T.getNodeById(s, o.id) : o;
|
|
108
|
+
for (; t; ) {
|
|
109
|
+
const a = E.getById(t.functionDefinition?.id);
|
|
110
|
+
if (!a) break;
|
|
111
|
+
const d = g();
|
|
112
|
+
if (t.parameters && a.parameterDefinitions)
|
|
113
|
+
for (const c of a.parameterDefinitions) {
|
|
114
|
+
const u = l.getDataType(c.dataTypeIdentifier);
|
|
115
|
+
if (!u || u.variant === "NODE") continue;
|
|
116
|
+
const n = u.rules?.nodes?.filter((p) => p?.variant === "INPUT_TYPES") ?? [];
|
|
117
|
+
if (n.length) {
|
|
118
|
+
const f = t.parameters?.nodes?.find((O) => O?.id === c.id)?.value, F = f !== void 0 ? f?.__typename === "NodeFunctionIdWrapper" ? [f] : [f] : [];
|
|
119
|
+
for (const O of n) {
|
|
120
|
+
const U = O?.config, R = b(U.dataTypeIdentifier, a, F, l);
|
|
121
|
+
R && y.push({
|
|
122
|
+
__typename: "ReferenceValue",
|
|
123
|
+
dataTypeIdentifier: R,
|
|
124
|
+
depth: r,
|
|
125
|
+
scope: e,
|
|
126
|
+
node: d
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
{
|
|
132
|
+
const c = t.parameters?.nodes?.map((n) => n?.value).filter((n) => n !== void 0) ?? [], u = x(a, c, l);
|
|
133
|
+
u && y.push({
|
|
134
|
+
__typename: "ReferenceValue",
|
|
135
|
+
dataTypeIdentifier: u,
|
|
136
|
+
depth: r,
|
|
137
|
+
scope: e,
|
|
138
|
+
node: d
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
if (t.parameters && a.parameterDefinitions)
|
|
142
|
+
for (const c of a.parameterDefinitions)
|
|
143
|
+
if (l.getDataType(c.dataTypeIdentifier)?.variant === "NODE") {
|
|
144
|
+
const n = t.parameters?.nodes?.find((p) => p?.id === c.id);
|
|
145
|
+
if (n?.value && n.value.__typename === "NodeFunctionIdWrapper") {
|
|
146
|
+
const p = n.value, f = [...e, v()];
|
|
147
|
+
m(p, r + 1, f);
|
|
148
|
+
}
|
|
149
|
+
} else {
|
|
150
|
+
const n = t.parameters?.nodes?.find((p) => p?.id === c.id);
|
|
151
|
+
n?.value && n.value.__typename === "NodeFunctionIdWrapper" && m(n.value, r, e);
|
|
152
|
+
}
|
|
153
|
+
t = T.getNodeById(I.id, t.nextNodeId);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
return m(T.getNodeById(I.id, I.startingNodeId), 0, [0]), y;
|
|
157
|
+
};
|
|
158
|
+
export {
|
|
159
|
+
L as useRefObjects,
|
|
160
|
+
z as useSuggestions
|
|
161
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LiteralValue, NodeFunction, ReferenceValue } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
+
export declare enum DFlowSuggestionType {
|
|
3
|
+
REF_OBJECT = 0,
|
|
4
|
+
VALUE = 1,
|
|
5
|
+
FUNCTION = 2,
|
|
6
|
+
FUNCTION_COMBINATION = 3,
|
|
7
|
+
DATA_TYPE = 4
|
|
8
|
+
}
|
|
9
|
+
export interface DFlowSuggestion {
|
|
10
|
+
displayText: string[];
|
|
11
|
+
path: number[];
|
|
12
|
+
value: LiteralValue | ReferenceValue | NodeFunction;
|
|
13
|
+
type: DFlowSuggestionType;
|
|
14
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { jsx as r, jsxs as T } from "react/jsx-runtime";
|
|
2
|
+
import { c as _ } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { MenuTrigger as B, MenuSeparator as A, MenuPortal as L, Menu as O } from "../menu/Menu.js";
|
|
4
|
+
import b from "react";
|
|
5
|
+
import { DFlowSuggestionMenuFooter as P } from "./DFlowSuggestionMenuFooter.js";
|
|
6
|
+
import "@radix-ui/react-checkbox";
|
|
7
|
+
import "merge-props";
|
|
8
|
+
import "@tabler/icons-react";
|
|
9
|
+
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
10
|
+
import "../form/EmailInput.js";
|
|
11
|
+
import "../form/Input.js";
|
|
12
|
+
import { InputSuggestionMenuContentItems as U, InputSuggestionMenuContent as $ } from "../form/InputSuggestion.js";
|
|
13
|
+
import "../form/NumberInput.js";
|
|
14
|
+
import "../form/PasswordInput.js";
|
|
15
|
+
import "@radix-ui/react-one-time-password-field";
|
|
16
|
+
import "@radix-ui/react-radio-group";
|
|
17
|
+
import "../form/SwitchInput.js";
|
|
18
|
+
import "../form/TextInput.js";
|
|
19
|
+
import { toInputSuggestions as q } from "./DFlowSuggestionMenu.util.js";
|
|
20
|
+
import { DFlowSuggestionMenuSearchBar as v } from "./DFlowSuggestionMenuSearchBar.js";
|
|
21
|
+
import { useStoreApi as z } from "@xyflow/react";
|
|
22
|
+
const ce = (R) => {
|
|
23
|
+
const e = _.c(28), {
|
|
24
|
+
suggestions: c,
|
|
25
|
+
triggerContent: M,
|
|
26
|
+
onSuggestionSelect: x
|
|
27
|
+
} = R;
|
|
28
|
+
let p;
|
|
29
|
+
e[0] !== c ? (p = c === void 0 ? [] : c, e[0] = c, e[1] = p) : p = e[1];
|
|
30
|
+
const o = p, w = x === void 0 ? G : x, y = z(), C = b.useRef(null), [I, F] = b.useState(o);
|
|
31
|
+
let g, a;
|
|
32
|
+
e[2] !== o ? (g = () => {
|
|
33
|
+
F(o);
|
|
34
|
+
}, a = [o], e[2] = o, e[3] = g, e[4] = a) : (g = e[3], a = e[4]), b.useEffect(g, a);
|
|
35
|
+
let s;
|
|
36
|
+
e[5] !== y ? (s = (t) => {
|
|
37
|
+
setTimeout(() => {
|
|
38
|
+
y.setState({
|
|
39
|
+
nodesDraggable: !t,
|
|
40
|
+
nodesConnectable: !t,
|
|
41
|
+
elementsSelectable: !t
|
|
42
|
+
});
|
|
43
|
+
}, 250);
|
|
44
|
+
}, e[5] = y, e[6] = s) : s = e[6];
|
|
45
|
+
let i;
|
|
46
|
+
e[7] !== M ? (i = /* @__PURE__ */ r(B, { asChild: !0, children: M }), e[7] = M, e[8] = i) : i = e[8];
|
|
47
|
+
let n;
|
|
48
|
+
e[9] !== o ? (n = /* @__PURE__ */ r(v, { onType: (t) => {
|
|
49
|
+
t.key === "ArrowDown" ? (t.preventDefault(), C.current?.focusFirstItem()) : t.key === "ArrowUp" && (t.preventDefault(), C.current?.focusLastItem());
|
|
50
|
+
const j = t.target.value;
|
|
51
|
+
return F(o.filter((k) => k.displayText.some((E) => E.includes(j)))), t.preventDefault(), !1;
|
|
52
|
+
} }), e[9] = o, e[10] = n) : n = e[10];
|
|
53
|
+
let S;
|
|
54
|
+
e[11] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ r(A, {}), e[11] = S) : S = e[11];
|
|
55
|
+
let l;
|
|
56
|
+
e[12] !== I ? (l = q(I), e[12] = I, e[13] = l) : l = e[13];
|
|
57
|
+
let u;
|
|
58
|
+
e[14] !== w ? (u = (t) => {
|
|
59
|
+
w(t.valueData);
|
|
60
|
+
}, e[14] = w, e[15] = u) : u = e[15];
|
|
61
|
+
let m;
|
|
62
|
+
e[16] !== u || e[17] !== l ? (m = /* @__PURE__ */ r(U, { ref: C, suggestions: l, onSuggestionSelect: u }), e[16] = u, e[17] = l, e[18] = m) : m = e[18];
|
|
63
|
+
let d, h;
|
|
64
|
+
e[19] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ r(A, {}), h = /* @__PURE__ */ r(P, {}), e[19] = d, e[20] = h) : (d = e[19], h = e[20]);
|
|
65
|
+
let f;
|
|
66
|
+
e[21] !== m || e[22] !== n ? (f = /* @__PURE__ */ r(L, { children: /* @__PURE__ */ T($, { align: "center", children: [
|
|
67
|
+
n,
|
|
68
|
+
S,
|
|
69
|
+
m,
|
|
70
|
+
d,
|
|
71
|
+
h
|
|
72
|
+
] }) }), e[21] = m, e[22] = n, e[23] = f) : f = e[23];
|
|
73
|
+
let D;
|
|
74
|
+
return e[24] !== f || e[25] !== s || e[26] !== i ? (D = /* @__PURE__ */ T(O, { onOpenChange: s, children: [
|
|
75
|
+
i,
|
|
76
|
+
f
|
|
77
|
+
] }), e[24] = f, e[25] = s, e[26] = i, e[27] = D) : D = e[27], D;
|
|
78
|
+
};
|
|
79
|
+
function G() {
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
ce as DFlowSuggestionMenu
|
|
83
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as T, Fragment as d } from "react/jsx-runtime";
|
|
2
2
|
import { DFlowSuggestionType as e } from "./DFlowSuggestion.view.js";
|
|
3
3
|
import { IconCircleDot as c, IconCirclesRelation as u, IconFileFunctionFilled as a } from "@tabler/icons-react";
|
|
4
|
-
import { Text as I } from "
|
|
4
|
+
import { Text as I } from "../text/Text.js";
|
|
5
5
|
const D = (p) => {
|
|
6
6
|
const f = {
|
|
7
7
|
[e.VALUE]: "Values",
|
package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as y } from "
|
|
3
|
-
import { MenuLabel as p } from "
|
|
2
|
+
import { c as y } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { MenuLabel as p } from "../menu/Menu.js";
|
|
4
4
|
import { IconCornerDownLeft as d, IconBulb as g, IconFileFunctionFilled as _, IconArrowsShuffle as b, IconCirclesRelation as u, IconCircleDot as x } from "@tabler/icons-react";
|
|
5
|
-
import { Text as f } from "
|
|
6
|
-
import { Flex as i } from "
|
|
7
|
-
import { TooltipTrigger as F, Tooltip as I, TooltipPortal as z, TooltipContent as S } from "
|
|
5
|
+
import { Text as f } from "../text/Text.js";
|
|
6
|
+
import { Flex as i } from "../flex/Flex.js";
|
|
7
|
+
import { TooltipTrigger as F, Tooltip as I, TooltipPortal as z, TooltipContent as S } from "../tooltip/Tooltip.js";
|
|
8
8
|
const O = () => {
|
|
9
9
|
const e = y.c(8);
|
|
10
10
|
let l;
|
package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { Code0Component } from '
|
|
2
|
+
import { Code0Component } from '../../utils';
|
|
3
3
|
export interface DFlowSuggestionMenuSearchBarProps extends Code0Component<HTMLDivElement> {
|
|
4
4
|
onType: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
5
5
|
}
|