@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
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import i from "react";
|
|
3
|
+
import { Dialog as f, DialogPortal as D, DialogContent as g, DialogClose as l } from "../dialog/Dialog.js";
|
|
4
|
+
import { DFlowFolderItemPathInput as x } from "./DFlowFolderItemPathInput.js";
|
|
5
|
+
import { Flex as w } from "../flex/Flex.js";
|
|
6
|
+
import { Button as c } from "../button/Button.js";
|
|
7
|
+
import "../../_virtual/compiler-runtime.js";
|
|
8
|
+
import "@radix-ui/react-checkbox";
|
|
9
|
+
import "merge-props";
|
|
10
|
+
import "@tabler/icons-react";
|
|
11
|
+
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
12
|
+
import "../form/EmailInput.js";
|
|
13
|
+
import "../form/Input.js";
|
|
14
|
+
import "../form/InputSuggestion.js";
|
|
15
|
+
import "../form/NumberInput.js";
|
|
16
|
+
import "../form/PasswordInput.js";
|
|
17
|
+
import "@radix-ui/react-one-time-password-field";
|
|
18
|
+
import "@radix-ui/react-radio-group";
|
|
19
|
+
import "../form/SwitchInput.js";
|
|
20
|
+
import "../form/TextInput.js";
|
|
21
|
+
import { useForm as C } from "../form/useForm.js";
|
|
22
|
+
const G = (e) => {
|
|
23
|
+
const {
|
|
24
|
+
open: a
|
|
25
|
+
} = e, [u, r] = i.useState(a), h = i.useMemo(() => ({
|
|
26
|
+
path: e.contextData.name
|
|
27
|
+
}), []);
|
|
28
|
+
i.useEffect(() => {
|
|
29
|
+
r(a);
|
|
30
|
+
}, [a]);
|
|
31
|
+
const [s, p] = C({
|
|
32
|
+
initialValues: h,
|
|
33
|
+
validate: {
|
|
34
|
+
path: (o) => null
|
|
35
|
+
},
|
|
36
|
+
onSubmit: (o) => {
|
|
37
|
+
e.contextData.type === "item" ? e.onRename?.(e.contextData.flow, o.path) : e.contextData.type === "group" && e.contextData.flows.forEach((n) => {
|
|
38
|
+
const d = n.name?.replace(e.contextData.name, o.path) ?? n.name;
|
|
39
|
+
e.onRename?.(n, d);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
return /* @__PURE__ */ t(f, { open: u, onOpenChange: (o) => {
|
|
44
|
+
e.onOpenChange?.(o), r(o);
|
|
45
|
+
}, children: /* @__PURE__ */ t(D, { children: /* @__PURE__ */ m(g, { autoFocus: !0, showCloseButton: !0, title: e.contextData.type == "item" ? "Rename flow" : "Rename folder", children: [
|
|
46
|
+
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(x, { description: "You can choose a new name here and only use alphanumeric names.", title: e.contextData.type == "item" ? "Name of the flow" : "Name of the folder", ...s.getInputProps("path") }) }),
|
|
47
|
+
/* @__PURE__ */ m(w, { justify: "space-between", align: "center", children: [
|
|
48
|
+
/* @__PURE__ */ t(l, { asChild: !0, children: /* @__PURE__ */ t(c, { color: "secondary", children: "No, go back!" }) }),
|
|
49
|
+
/* @__PURE__ */ t(l, { asChild: !0, children: /* @__PURE__ */ t(c, { color: "success", onClick: p, children: "Yes, save!" }) })
|
|
50
|
+
] })
|
|
51
|
+
] }) }) });
|
|
52
|
+
};
|
|
53
|
+
export {
|
|
54
|
+
G as DFlowFolderRenameDialog
|
|
55
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FunctionDefinitionView } from './DFlowFunction.view';
|
|
2
|
-
import { DFlowDataTypeReactiveService } from '../data-type
|
|
2
|
+
import { DFlowDataTypeReactiveService } from '../d-flow-data-type';
|
|
3
3
|
import { DataTypeIdentifier, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
4
|
export declare const useInputType: (type: DataTypeIdentifier, func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService: DFlowDataTypeReactiveService) => DataTypeIdentifier | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveGenericKeys as o, replaceGenericKeysInType as s } from "
|
|
1
|
+
import { resolveGenericKeys as o, replaceGenericKeysInType as s } from "../../utils/generics.js";
|
|
2
2
|
const c = (r, e, n, p) => {
|
|
3
3
|
if (!e.returnType) return null;
|
|
4
4
|
const t = o(e, n, p);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FunctionDefinitionView } from './DFlowFunction.view';
|
|
2
|
-
import { DFlowDataTypeReactiveService } from '../data-type
|
|
2
|
+
import { DFlowDataTypeReactiveService } from '../d-flow-data-type';
|
|
3
3
|
import { DataTypeIdentifier, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
export declare const useReturnType: (func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService
|
|
4
|
+
export declare const useReturnType: (func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService: DFlowDataTypeReactiveService) => DataTypeIdentifier | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactiveArrayService } from '
|
|
1
|
+
import { ReactiveArrayService } from '../../utils';
|
|
2
2
|
import { FunctionDefinitionView } from './DFlowFunction.view';
|
|
3
3
|
import { FunctionDefinition } from '@code0-tech/sagittarius-graphql-types';
|
|
4
4
|
export declare abstract class DFlowFunctionReactiveService extends ReactiveArrayService<FunctionDefinitionView> {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../../utils/contextStore.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { ReactiveArrayService as r } from "../../utils/reactiveArrayService.js";
|
|
4
|
+
import "merge-props";
|
|
5
|
+
class n extends r {
|
|
6
|
+
getById(e) {
|
|
7
|
+
return this.values().find((i) => i.id === e);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
n as DFlowFunctionReactiveService
|
|
12
|
+
};
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import { DataTypeIdentifier, FunctionDefinition, Maybe, ParameterDefinition, RuntimeFunctionDefinition, Scalars, TranslationConnection } from '@code0-tech/sagittarius-graphql-types';
|
|
2
2
|
export declare class FunctionDefinitionView {
|
|
3
|
+
/** Name of the function */
|
|
4
|
+
private readonly _aliases?;
|
|
3
5
|
/** Time when this FunctionDefinition was created */
|
|
4
6
|
private readonly _createdAt?;
|
|
5
7
|
/** Deprecation message of the function */
|
|
6
8
|
private readonly _deprecationMessages?;
|
|
7
9
|
/** Description of the function */
|
|
8
10
|
private readonly _descriptions?;
|
|
11
|
+
/** Display message of the function */
|
|
12
|
+
private readonly _displayMessages?;
|
|
9
13
|
/** Documentation of the function */
|
|
10
14
|
private readonly _documentations?;
|
|
11
15
|
/** Generic keys of the function */
|
|
12
16
|
private readonly _genericKeys?;
|
|
13
17
|
/** Global ID of this FunctionDefinition */
|
|
14
18
|
private readonly _id?;
|
|
19
|
+
/** Identifier of the function */
|
|
20
|
+
private readonly _identifier?;
|
|
15
21
|
/** Name of the function */
|
|
16
22
|
private readonly _names?;
|
|
17
23
|
/** Parameters of the function */
|
|
@@ -25,12 +31,15 @@ export declare class FunctionDefinitionView {
|
|
|
25
31
|
/** Time when this FunctionDefinition was last updated */
|
|
26
32
|
private readonly _updatedAt?;
|
|
27
33
|
constructor(object: FunctionDefinition);
|
|
34
|
+
get aliases(): Maybe<TranslationConnection> | undefined;
|
|
28
35
|
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
29
36
|
get deprecationMessages(): Maybe<TranslationConnection> | undefined;
|
|
30
37
|
get descriptions(): Maybe<TranslationConnection> | undefined;
|
|
38
|
+
get displayMessages(): Maybe<TranslationConnection> | undefined;
|
|
31
39
|
get documentations(): Maybe<TranslationConnection> | undefined;
|
|
32
40
|
get genericKeys(): Maybe<Array<Scalars["String"]["output"]>> | undefined;
|
|
33
41
|
get id(): Maybe<Scalars["FunctionDefinitionID"]["output"]> | undefined;
|
|
42
|
+
get identifier(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
34
43
|
get names(): Maybe<TranslationConnection> | undefined;
|
|
35
44
|
get parameterDefinitions(): Maybe<ParameterDefinitionView[]> | undefined;
|
|
36
45
|
get returnType(): Maybe<DataTypeIdentifier> | undefined;
|
|
@@ -50,6 +59,8 @@ export declare class ParameterDefinitionView {
|
|
|
50
59
|
private readonly _documentations?;
|
|
51
60
|
/** Global ID of this ParameterDefinition */
|
|
52
61
|
private readonly _id?;
|
|
62
|
+
/** Identifier of the parameter */
|
|
63
|
+
private readonly _identifier?;
|
|
53
64
|
/** Name of the parameter */
|
|
54
65
|
private readonly _names?;
|
|
55
66
|
/** Time when this ParameterDefinition was last updated */
|
|
@@ -60,6 +71,7 @@ export declare class ParameterDefinitionView {
|
|
|
60
71
|
get descriptions(): Maybe<TranslationConnection> | undefined;
|
|
61
72
|
get documentations(): Maybe<TranslationConnection> | undefined;
|
|
62
73
|
get id(): Maybe<Scalars["ParameterDefinitionID"]["output"]> | undefined;
|
|
74
|
+
get identifier(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
63
75
|
get names(): Maybe<TranslationConnection> | undefined;
|
|
64
76
|
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
65
77
|
json(): ParameterDefinition;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
function t(e, i, s) {
|
|
2
|
+
return (i = n(i)) in e ? Object.defineProperty(e, i, { value: s, enumerable: !0, configurable: !0, writable: !0 }) : e[i] = s, e;
|
|
3
|
+
}
|
|
4
|
+
function n(e) {
|
|
5
|
+
var i = d(e, "string");
|
|
6
|
+
return typeof i == "symbol" ? i : i + "";
|
|
7
|
+
}
|
|
8
|
+
function d(e, i) {
|
|
9
|
+
if (typeof e != "object" || !e) return e;
|
|
10
|
+
var s = e[Symbol.toPrimitive];
|
|
11
|
+
if (s !== void 0) {
|
|
12
|
+
var r = s.call(e, i);
|
|
13
|
+
if (typeof r != "object") return r;
|
|
14
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
|
+
}
|
|
16
|
+
return (i === "string" ? String : Number)(e);
|
|
17
|
+
}
|
|
18
|
+
class o {
|
|
19
|
+
constructor(i) {
|
|
20
|
+
t(this, "_aliases", void 0), t(this, "_createdAt", void 0), t(this, "_deprecationMessages", void 0), t(this, "_descriptions", void 0), t(this, "_displayMessages", void 0), t(this, "_documentations", void 0), t(this, "_genericKeys", void 0), t(this, "_id", void 0), t(this, "_identifier", void 0), t(this, "_names", void 0), t(this, "_parameterDefinitions", void 0), t(this, "_returnType", void 0), t(this, "_runtimeFunctionDefinition", void 0), t(this, "_throwsError", void 0), t(this, "_updatedAt", void 0), this._aliases = i.aliases, this._createdAt = i.createdAt, this._deprecationMessages = i.deprecationMessages, this._descriptions = i.descriptions, this._displayMessages = i.displayMessages, this._documentations = i.documentations, this._genericKeys = i.genericKeys, this._id = i.id, this._identifier = i.identifier, this._names = i.names, this._parameterDefinitions = i.parameterDefinitions?.nodes?.map((s) => new a(s)) ?? void 0, this._returnType = i.returnType, this._runtimeFunctionDefinition = i.runtimeFunctionDefinition, this._throwsError = i.throwsError, this._updatedAt = i.updatedAt;
|
|
21
|
+
}
|
|
22
|
+
get aliases() {
|
|
23
|
+
return this._aliases;
|
|
24
|
+
}
|
|
25
|
+
get createdAt() {
|
|
26
|
+
return this._createdAt;
|
|
27
|
+
}
|
|
28
|
+
get deprecationMessages() {
|
|
29
|
+
return this._deprecationMessages;
|
|
30
|
+
}
|
|
31
|
+
get descriptions() {
|
|
32
|
+
return this._descriptions;
|
|
33
|
+
}
|
|
34
|
+
get displayMessages() {
|
|
35
|
+
return this._displayMessages;
|
|
36
|
+
}
|
|
37
|
+
get documentations() {
|
|
38
|
+
return this._documentations;
|
|
39
|
+
}
|
|
40
|
+
get genericKeys() {
|
|
41
|
+
return this._genericKeys;
|
|
42
|
+
}
|
|
43
|
+
get id() {
|
|
44
|
+
return this._id;
|
|
45
|
+
}
|
|
46
|
+
get identifier() {
|
|
47
|
+
return this._identifier;
|
|
48
|
+
}
|
|
49
|
+
get names() {
|
|
50
|
+
return this._names;
|
|
51
|
+
}
|
|
52
|
+
get parameterDefinitions() {
|
|
53
|
+
return this._parameterDefinitions;
|
|
54
|
+
}
|
|
55
|
+
get returnType() {
|
|
56
|
+
return this._returnType;
|
|
57
|
+
}
|
|
58
|
+
get runtimeFunctionDefinition() {
|
|
59
|
+
return this._runtimeFunctionDefinition;
|
|
60
|
+
}
|
|
61
|
+
get throwsError() {
|
|
62
|
+
return this._throwsError;
|
|
63
|
+
}
|
|
64
|
+
get updatedAt() {
|
|
65
|
+
return this._updatedAt;
|
|
66
|
+
}
|
|
67
|
+
json() {
|
|
68
|
+
return {
|
|
69
|
+
aliases: this._aliases,
|
|
70
|
+
createdAt: this._createdAt,
|
|
71
|
+
deprecationMessages: this._deprecationMessages,
|
|
72
|
+
displayMessages: this._displayMessages,
|
|
73
|
+
descriptions: this._descriptions,
|
|
74
|
+
documentations: this._documentations,
|
|
75
|
+
genericKeys: this._genericKeys,
|
|
76
|
+
id: this._id,
|
|
77
|
+
identifier: this._identifier,
|
|
78
|
+
names: this._names,
|
|
79
|
+
parameterDefinitions: this._parameterDefinitions ? {
|
|
80
|
+
nodes: this._parameterDefinitions.map((i) => i.json())
|
|
81
|
+
} : void 0,
|
|
82
|
+
returnType: this._returnType,
|
|
83
|
+
runtimeFunctionDefinition: this._runtimeFunctionDefinition,
|
|
84
|
+
throwsError: this._throwsError,
|
|
85
|
+
updatedAt: this._updatedAt
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
class a {
|
|
90
|
+
constructor(i) {
|
|
91
|
+
t(this, "_createdAt", void 0), t(this, "_dataTypeIdentifier", void 0), t(this, "_descriptions", void 0), t(this, "_documentations", void 0), t(this, "_id", void 0), t(this, "_identifier", void 0), t(this, "_names", void 0), t(this, "_updatedAt", void 0), this._createdAt = i.createdAt, this._dataTypeIdentifier = i.dataTypeIdentifier, this._descriptions = i.descriptions, this._documentations = i.documentations, this._id = i.id, this._identifier = i.identifier, this._names = i.names, this._updatedAt = i.updatedAt;
|
|
92
|
+
}
|
|
93
|
+
get createdAt() {
|
|
94
|
+
return this._createdAt;
|
|
95
|
+
}
|
|
96
|
+
get dataTypeIdentifier() {
|
|
97
|
+
return this._dataTypeIdentifier;
|
|
98
|
+
}
|
|
99
|
+
get descriptions() {
|
|
100
|
+
return this._descriptions;
|
|
101
|
+
}
|
|
102
|
+
get documentations() {
|
|
103
|
+
return this._documentations;
|
|
104
|
+
}
|
|
105
|
+
get id() {
|
|
106
|
+
return this._id;
|
|
107
|
+
}
|
|
108
|
+
get identifier() {
|
|
109
|
+
return this._identifier;
|
|
110
|
+
}
|
|
111
|
+
get names() {
|
|
112
|
+
return this._names;
|
|
113
|
+
}
|
|
114
|
+
get updatedAt() {
|
|
115
|
+
return this._updatedAt;
|
|
116
|
+
}
|
|
117
|
+
json() {
|
|
118
|
+
return {
|
|
119
|
+
createdAt: this._createdAt,
|
|
120
|
+
dataTypeIdentifier: this._dataTypeIdentifier,
|
|
121
|
+
descriptions: this._descriptions,
|
|
122
|
+
documentations: this._documentations,
|
|
123
|
+
id: this._id,
|
|
124
|
+
names: this._names,
|
|
125
|
+
updatedAt: this._updatedAt
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
export {
|
|
130
|
+
o as FunctionDefinitionView,
|
|
131
|
+
a as ParameterDefinitionView
|
|
132
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Code0Component } from '
|
|
1
|
+
import { Code0Component } from '../../utils';
|
|
2
2
|
import { Node, NodeProps } from '@xyflow/react';
|
|
3
|
-
import { NodeFunctionView } from '../DFlow.view';
|
|
4
3
|
import { default as React } from 'react';
|
|
5
|
-
import { Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
import { NodeFunction, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
6
5
|
export interface DFlowFunctionDefaultCardDataProps extends Omit<Code0Component<HTMLDivElement>, "scope"> {
|
|
7
|
-
|
|
6
|
+
nodeId: NodeFunction['id'];
|
|
8
7
|
flowId: Scalars["FlowID"]["output"];
|
|
9
8
|
isParameter: boolean;
|
|
9
|
+
linkingId?: string;
|
|
10
10
|
depth: number;
|
|
11
11
|
scope: number[];
|
|
12
12
|
index: number;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { jsxs as m, jsx as o, Fragment as k } from "react/jsx-runtime";
|
|
2
|
+
import { useService as w, useStore as y } from "../../utils/contextStore.js";
|
|
3
|
+
import { InspectionSeverity as J } from "../../utils/inspection.js";
|
|
4
|
+
import f, { memo as X } from "react";
|
|
5
|
+
import "merge-props";
|
|
6
|
+
import { useStore as I, useReactFlow as Y, Handle as S, Position as p } from "@xyflow/react";
|
|
7
|
+
import { Card as q } from "../card/Card.js";
|
|
8
|
+
import '../../assets/components/d-flow-function/DFlowFunctionDefaultCard.style.css';/* empty css */
|
|
9
|
+
import { Flex as G } from "../flex/Flex.js";
|
|
10
|
+
import { IconFile as B } from "@tabler/icons-react";
|
|
11
|
+
import { Text as s } from "../text/Text.js";
|
|
12
|
+
import { DFlowFunctionReactiveService as N } from "./DFlowFunction.service.js";
|
|
13
|
+
import { useNodeValidation as K } from "../d-flow-validation/DNodeValidation.hook.js";
|
|
14
|
+
import "../d-flow/DFlow.js";
|
|
15
|
+
import { DFlowReactiveService as R } from "../d-flow/DFlow.service.js";
|
|
16
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
17
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
18
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
19
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
20
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
21
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
22
|
+
import { md5 as $ } from "js-md5";
|
|
23
|
+
import { FileTabsService as M } from "../file-tabs/FileTabs.service.js";
|
|
24
|
+
import { DFlowTabDefault as Q } from "../d-flow-file/DFlowTabDefault.js";
|
|
25
|
+
import { Badge as u } from "../badge/Badge.js";
|
|
26
|
+
const xe = X((l) => {
|
|
27
|
+
const {
|
|
28
|
+
data: i,
|
|
29
|
+
id: d,
|
|
30
|
+
width: C = 0,
|
|
31
|
+
height: A = 0
|
|
32
|
+
} = l, L = I((e) => e.width), P = I((e) => e.height), H = Y(), h = w(M), b = y(M), x = w(R), _ = y(R), F = w(N), D = y(N), n = f.useMemo(() => x.getNodeById(i.flowId, i.nodeId), [_, i]), c = f.useMemo(() => n ? F.getById(n.functionDefinition?.id) : void 0, [D, i, n]), V = K(i.nodeId, i.flowId), T = f.useMemo(() => b.find((e) => e.active)?.id, [b, h]), E = I((e) => {
|
|
33
|
+
const t = e.nodes.filter((a) => a.parentId === l.parentId);
|
|
34
|
+
let r;
|
|
35
|
+
return t.forEach((a) => {
|
|
36
|
+
const g = a.data?.index ?? 1 / 0, O = r?.data?.index ?? 1 / 0;
|
|
37
|
+
(!r || g < O) && (r = a);
|
|
38
|
+
}), r;
|
|
39
|
+
}), W = (e) => e.split(/(\$\{[^}]+\})/).filter(Boolean).flatMap((t) => t.startsWith("${") ? [t.slice(2, -1)] : t.split(/(\s*,\s*)/).filter(Boolean).flatMap((r) => r.trim() === "," ? [","] : r.trim() ? [r.trim()] : [])), z = $(d), v = (e) => parseInt(e.slice(0, 8), 16) % 360, j = f.useMemo(() => W(c?.displayMessages?.nodes[0]?.content ?? "").map((e) => {
|
|
40
|
+
const t = n?.parameters?.nodes?.find((r) => c?.parameterDefinitions?.find((g) => g.id == r?.id)?.identifier == e);
|
|
41
|
+
if (t) {
|
|
42
|
+
switch (t?.value?.__typename) {
|
|
43
|
+
case "LiteralValue":
|
|
44
|
+
return /* @__PURE__ */ o(u, { style: {
|
|
45
|
+
verticalAlign: "middle"
|
|
46
|
+
}, color: "secondary", children: /* @__PURE__ */ o(s, { size: "sm", children: String(t?.value?.value) }) });
|
|
47
|
+
case "ReferenceValue":
|
|
48
|
+
return /* @__PURE__ */ o(u, { style: {
|
|
49
|
+
verticalAlign: "middle"
|
|
50
|
+
}, children: /* @__PURE__ */ m(s, { size: "sm", children: [
|
|
51
|
+
String(t?.value.node),
|
|
52
|
+
"-",
|
|
53
|
+
String(t?.value.depth),
|
|
54
|
+
"-",
|
|
55
|
+
String(t?.value.scope)
|
|
56
|
+
] }) });
|
|
57
|
+
case "NodeFunctionIdWrapper":
|
|
58
|
+
const r = $(`${d}-param-${JSON.stringify(t)}`), a = x.getNodeById(l.data.flowId, t.value.id);
|
|
59
|
+
return /* @__PURE__ */ m(u, { style: {
|
|
60
|
+
verticalAlign: "middle"
|
|
61
|
+
}, color: `hsl(${v(r)}, 100%, 72%)`, border: !0, pos: "relative", children: [
|
|
62
|
+
/* @__PURE__ */ o(s, { size: "sm", style: {
|
|
63
|
+
color: "inherit"
|
|
64
|
+
}, children: String(F.getById(a?.functionDefinition?.id)?.names?.nodes[0]?.content) }),
|
|
65
|
+
/* @__PURE__ */ o(S, { type: "target", position: p.Bottom, id: `param-${t?.id}`, isConnectable: !1, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target" }, t?.id)
|
|
66
|
+
] });
|
|
67
|
+
}
|
|
68
|
+
return /* @__PURE__ */ o(u, { style: {
|
|
69
|
+
verticalAlign: "middle"
|
|
70
|
+
}, border: !0, children: /* @__PURE__ */ o(s, { size: "sm", children: e }) });
|
|
71
|
+
}
|
|
72
|
+
return " " + String(e) + " ";
|
|
73
|
+
}), [_, D, i, c]);
|
|
74
|
+
return f.useEffect(() => {
|
|
75
|
+
n?.id && h.registerTab({
|
|
76
|
+
id: n.id,
|
|
77
|
+
active: !1,
|
|
78
|
+
closeable: !0,
|
|
79
|
+
children: /* @__PURE__ */ m(k, { children: [
|
|
80
|
+
/* @__PURE__ */ o(B, { color: `hsl(${v(z)}, 100%, 72%)`, size: 12 }),
|
|
81
|
+
/* @__PURE__ */ o(s, { size: "sm", children: c?.names?.nodes[0]?.content })
|
|
82
|
+
] }),
|
|
83
|
+
content: /* @__PURE__ */ o(Q, { flowId: l.data.flowId, depthLevel: i.depth, scopeLevel: i.scope, nodeLevel: i.index, node: n })
|
|
84
|
+
});
|
|
85
|
+
}, [n?.id, c, i]), /* @__PURE__ */ m(q, { "data-flow-refernce": d, paddingSize: "xs", outline: E.id === d, borderColor: T == n?.id ? "info" : void 0, className: T == n?.id ? "d-flow-viewport-default-card--active" : void 0, color: (V?.filter((e) => e.type === J.ERROR)?.length ?? 0) > 0 ? "error" : "primary", onClick: () => {
|
|
86
|
+
H.setViewport({
|
|
87
|
+
x: L / 2 + l.positionAbsoluteX * -1 - C / 2,
|
|
88
|
+
y: P / 2 + l.positionAbsoluteY * -1 - A / 2,
|
|
89
|
+
zoom: 1
|
|
90
|
+
}, {
|
|
91
|
+
duration: 250
|
|
92
|
+
}), h.activateTab(n?.id);
|
|
93
|
+
}, style: {
|
|
94
|
+
position: "relative"
|
|
95
|
+
}, children: [
|
|
96
|
+
/* @__PURE__ */ o(S, { isConnectable: !1, draggable: !1, type: "target", className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target", style: {
|
|
97
|
+
...i.isParameter ? {
|
|
98
|
+
right: "2px"
|
|
99
|
+
} : {
|
|
100
|
+
top: "2px"
|
|
101
|
+
}
|
|
102
|
+
}, position: i.isParameter ? p.Right : p.Top }),
|
|
103
|
+
/* @__PURE__ */ o(S, { isConnectable: !1, type: "source", style: {
|
|
104
|
+
...i.isParameter ? {
|
|
105
|
+
left: "2px"
|
|
106
|
+
} : {
|
|
107
|
+
bottom: "2px"
|
|
108
|
+
}
|
|
109
|
+
}, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--source", position: i.isParameter ? p.Left : p.Bottom }),
|
|
110
|
+
/* @__PURE__ */ m(G, { align: "center", style: {
|
|
111
|
+
gap: "0.7rem"
|
|
112
|
+
}, children: [
|
|
113
|
+
/* @__PURE__ */ o(B, { color: `hsl(${v(z)}, 100%, 72%)`, size: 16 }),
|
|
114
|
+
/* @__PURE__ */ o(s, { size: "md", children: j })
|
|
115
|
+
] })
|
|
116
|
+
] }, d);
|
|
117
|
+
});
|
|
118
|
+
export {
|
|
119
|
+
xe as DFlowFunctionDefaultCard
|
|
120
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
3
|
+
import { Code0Component } from '../../utils';
|
|
4
|
+
export interface DFlowFunctionGroupCardDataProps extends Omit<Code0Component<HTMLDivElement>, "scope"> {
|
|
5
|
+
isParameter: boolean;
|
|
6
|
+
linkingId: string;
|
|
7
|
+
flowId: string;
|
|
8
|
+
depth: number;
|
|
9
|
+
scope: number[];
|
|
10
|
+
color?: string;
|
|
11
|
+
}
|
|
12
|
+
export type DFlowFunctionGroupCardProps = NodeProps<Node<DFlowFunctionGroupCardDataProps>>;
|
|
13
|
+
export declare const DFlowFunctionGroupCard: React.FC<DFlowFunctionGroupCardProps>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx as m, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { c as b } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { memo as h } from "react";
|
|
4
|
+
import { Handle as i, Position as f } from "@xyflow/react";
|
|
5
|
+
import { Card as g } from "../card/Card.js";
|
|
6
|
+
const M = h((a) => {
|
|
7
|
+
const t = b.c(9), {
|
|
8
|
+
data: o
|
|
9
|
+
} = a;
|
|
10
|
+
let e;
|
|
11
|
+
t[0] !== o.color ? (e = w(o.color, 9), t[0] = o.color, t[1] = e) : e = t[1];
|
|
12
|
+
const s = `2px dashed ${y(o.color, 0.1)}`;
|
|
13
|
+
let r;
|
|
14
|
+
t[2] !== e || t[3] !== s ? (r = {
|
|
15
|
+
background: e,
|
|
16
|
+
border: s
|
|
17
|
+
}, t[2] = e, t[3] = s, t[4] = r) : r = t[4];
|
|
18
|
+
let l;
|
|
19
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ m(i, { type: "target", position: f.Top, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target", isConnectable: !1, draggable: !1, style: {
|
|
20
|
+
top: "0px",
|
|
21
|
+
left: "50%",
|
|
22
|
+
transform: "translateX(-50%)"
|
|
23
|
+
} }), t[5] = l) : l = t[5];
|
|
24
|
+
let n;
|
|
25
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ m(i, { type: "source", position: f.Bottom, className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--source", isConnectable: !1, draggable: !1, style: {
|
|
26
|
+
bottom: "0px",
|
|
27
|
+
left: "50%",
|
|
28
|
+
transform: "translateX(-50%)"
|
|
29
|
+
} }), t[6] = n) : n = t[6];
|
|
30
|
+
let c;
|
|
31
|
+
return t[7] !== r ? (c = /* @__PURE__ */ u(g, { w: "100%", h: "100%", style: r, children: [
|
|
32
|
+
l,
|
|
33
|
+
n
|
|
34
|
+
] }), t[7] = r, t[8] = c) : c = t[8], c;
|
|
35
|
+
}), p = (a) => Math.min(Math.max(a, 0), 1), d = (a) => {
|
|
36
|
+
if (typeof document > "u")
|
|
37
|
+
return {
|
|
38
|
+
r: 0,
|
|
39
|
+
g: 0,
|
|
40
|
+
b: 0,
|
|
41
|
+
a: 1
|
|
42
|
+
};
|
|
43
|
+
const t = document.createElement("span");
|
|
44
|
+
t.style.color = a, document.body.appendChild(t);
|
|
45
|
+
const o = getComputedStyle(t).color;
|
|
46
|
+
document.body.removeChild(t);
|
|
47
|
+
const e = o.match(/rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*,\s*([\d.]+))?\s*\)/);
|
|
48
|
+
return e ? {
|
|
49
|
+
r: Math.round(Number(e[1])),
|
|
50
|
+
g: Math.round(Number(e[2])),
|
|
51
|
+
b: Math.round(Number(e[3])),
|
|
52
|
+
a: e[4] !== void 0 ? Number(e[4]) : 1
|
|
53
|
+
} : {
|
|
54
|
+
r: 0,
|
|
55
|
+
g: 0,
|
|
56
|
+
b: 0,
|
|
57
|
+
a: 1
|
|
58
|
+
};
|
|
59
|
+
}, w = (a, t) => {
|
|
60
|
+
const o = p(t * 0.1), e = d(a), s = d("#030014"), r = (l, n) => Math.round(l * (1 - o) + n * o);
|
|
61
|
+
return `rgb(${r(e.r, s.r)}, ${r(e.g, s.g)}, ${r(e.b, s.b)})`;
|
|
62
|
+
}, y = (a, t) => {
|
|
63
|
+
const o = d(a);
|
|
64
|
+
return `rgba(${o.r}, ${o.g}, ${o.b}, ${p(t)})`;
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
M as DFlowFunctionGroupCard
|
|
68
|
+
};
|
package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts
RENAMED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { Code0Component } from '
|
|
1
|
+
import { Code0Component } from '../../utils';
|
|
2
2
|
import { Node, NodeProps } from '@xyflow/react';
|
|
3
3
|
import { default as React } from 'react';
|
|
4
|
-
import {
|
|
5
|
-
import { Flow } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
import { Flow, NodeFunction } from '@code0-tech/sagittarius-graphql-types';
|
|
6
5
|
export interface DFlowFunctionSuggestionCardDataProps extends Code0Component<HTMLDivElement> {
|
|
7
6
|
flowId: Flow['id'];
|
|
8
|
-
parentFunction?:
|
|
7
|
+
parentFunction?: NodeFunction;
|
|
9
8
|
}
|
|
10
9
|
export type DFlowFunctionSuggestionCardProps = NodeProps<Node<DFlowFunctionSuggestionCardDataProps>>;
|
|
11
10
|
export declare const DFlowFunctionSuggestionCard: React.FC<DFlowFunctionSuggestionCardProps>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs as p, jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { c as g } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { useService as w } from "../../utils/contextStore.js";
|
|
4
|
+
import _, { memo as S } from "react";
|
|
5
|
+
import "merge-props";
|
|
6
|
+
import { Handle as v, Position as y } from "@xyflow/react";
|
|
7
|
+
import { Button as x } from "../button/Button.js";
|
|
8
|
+
import { IconPlus as F } from "@tabler/icons-react";
|
|
9
|
+
import { useSuggestions as I } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
|
|
10
|
+
import "../d-flow/DFlow.js";
|
|
11
|
+
import { DFlowReactiveService as h } 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 { DFlowSuggestionMenu as b } from "../d-flow-suggestion/DFlowSuggestionMenu.js";
|
|
20
|
+
const L = S((e) => {
|
|
21
|
+
const t = g.c(14), [, d] = _.useTransition();
|
|
22
|
+
let a;
|
|
23
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (a = [], t[0] = a) : a = t[0];
|
|
24
|
+
let r;
|
|
25
|
+
t[1] === Symbol.for("react.memo_cache_sentinel") ? (r = [0], t[1] = r) : r = t[1];
|
|
26
|
+
const s = I(void 0, a, e.data.flowId, 0, r, 0), o = w(h);
|
|
27
|
+
let n;
|
|
28
|
+
t[2] !== o || t[3] !== e.data.flowId ? (n = o.getById(e.data.flowId), t[2] = o, t[3] = e.data.flowId, t[4] = n) : n = t[4];
|
|
29
|
+
const c = n;
|
|
30
|
+
let i;
|
|
31
|
+
t[5] !== c?.id || t[6] !== o || t[7] !== e.data.parentFunction?.id || t[8] !== d ? (i = (u) => {
|
|
32
|
+
d(async () => {
|
|
33
|
+
u.value.__typename === "NodeFunction" && await o.addNextNodeById(c?.id, e.data.parentFunction?.id ?? null, u.value);
|
|
34
|
+
});
|
|
35
|
+
}, t[5] = c?.id, t[6] = o, t[7] = e.data.parentFunction?.id, t[8] = d, t[9] = i) : i = t[9];
|
|
36
|
+
let l;
|
|
37
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ p(x, { paddingSize: "xxs", variant: "normal", color: "secondary", children: [
|
|
38
|
+
/* @__PURE__ */ f(v, { isConnectable: !1, draggable: !1, type: "target", className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target", style: {
|
|
39
|
+
top: "2px"
|
|
40
|
+
}, position: y.Top }),
|
|
41
|
+
/* @__PURE__ */ f(F, { size: 12 })
|
|
42
|
+
] }), t[10] = l) : l = t[10];
|
|
43
|
+
let m;
|
|
44
|
+
return t[11] !== s || t[12] !== i ? (m = /* @__PURE__ */ f(b, { onSuggestionSelect: i, suggestions: s, triggerContent: l }), t[11] = s, t[12] = i, t[13] = m) : m = t[13], m;
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
L as DFlowFunctionSuggestionCard
|
|
48
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { Code0Component } from '
|
|
3
|
-
import { FlowView } from '../DFlow.view';
|
|
2
|
+
import { Code0Component } from '../../utils';
|
|
4
3
|
import { Node, NodeProps } from '@xyflow/react';
|
|
4
|
+
import { Flow } from '@code0-tech/sagittarius-graphql-types';
|
|
5
5
|
export interface DFlowFunctionTriggerCardDataProps extends Omit<Code0Component<HTMLDivElement>, "scope"> {
|
|
6
|
-
instance:
|
|
6
|
+
instance: Flow;
|
|
7
7
|
}
|
|
8
8
|
export type DFlowFunctionTriggerCardProps = NodeProps<Node<DFlowFunctionTriggerCardDataProps>>;
|
|
9
9
|
export declare const DFlowFunctionTriggerCard: React.FC<DFlowFunctionTriggerCardProps>;
|