@code0-tech/pictor 0.0.0-mvp.25 → 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/DNamespaceMemberContent.js +140 -92
- 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 +29 -29
- 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 +51 -22
- package/dist/components/d-project/index.js +10 -9
- package/dist/components/d-resizable/DResizable.js +18 -17
- package/dist/components/d-role/DNamespaceRoleContent.js +11 -11
- package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
- package/dist/components/d-runtime/DRuntimeContent.js +10 -10
- 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 +19 -19
- package/dist/components/d-user/DUserInput.js +9 -9
- package/dist/components/d-user/DUserList.js +9 -9
- package/dist/components/file-tabs/FileTabs.js +2 -2
- package/dist/components/file-tabs/FileTabs.service.d.ts +5 -0
- package/dist/components/file-tabs/FileTabs.service.js +68 -16
- package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
- package/dist/components/form/CheckboxInput.js +4 -4
- package/dist/components/form/EmailInput.js +12 -12
- package/dist/components/form/Input.js +220 -206
- package/dist/components/form/Input.selection.hook.js +9 -9
- package/dist/components/form/Input.syntax.hook.js +7 -7
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +6 -6
- package/dist/components/form/SwitchInput.js +7 -7
- package/dist/components/form/TextInput.js +10 -10
- package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
- package/dist/components/segmented-control/SegmentedControl.js +14 -12
- package/dist/index.d.ts +8 -0
- package/dist/index.js +117 -117
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/dist/utils/generics.d.ts +5 -6
- package/dist/utils/generics.js +2 -2
- package/dist/utils/objectStore.js +15 -15
- package/dist/utils/reactiveArrayService.js +5 -5
- package/package.json +7 -4
- package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +0 -1
- package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +0 -1
- package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +0 -1
- package/dist/components/d-flow/DFlow.view.d.ts +0 -113
- package/dist/components/d-flow/DFlow.view.js +0 -248
- package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
- package/dist/components/d-flow/control/DFlowControl.js +0 -81
- package/dist/components/d-flow/control/index.d.ts +0 -1
- package/dist/components/d-flow/control/index.js +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -20
- package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -243
- package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
- package/dist/components/d-flow/export/DFlowExport.js +0 -24
- package/dist/components/d-flow/folder/DFlowFolder.js +0 -119
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
- package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -74
- package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
- package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -93
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -22
- package/dist/components/d-flow/minimap/index.d.ts +0 -1
- package/dist/components/d-flow/minimap/index.js +0 -4
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -150
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -35
- package/dist/components/d-flow/suggestion/index.d.ts +0 -2
- package/dist/components/d-flow/suggestion/index.js +0 -7
- package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -103
- package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
- package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
- package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
- package/dist/components/d-flow/type/DFlowType.service.js +0 -9
- package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
- package/dist/components/d-flow/validation/DFlowValidation.js +0 -60
- /package/dist/assets/components/{d-flow/input → d-flow-input}/DFlowInputDataType.style.css +0 -0
- /package/dist/assets/components/{d-flow/validation → d-flow-validation}/DFlowValidation.style.css +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.js +0 -0
- /package/dist/components/{d-flow/folder → d-flow-folder}/index.d.ts +0 -0
- /package/dist/components/{d-flow/folder → d-flow-folder}/index.js +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
- /package/dist/components/{d-flow/export → d-flow-panel}/DFlowExport.d.ts +0 -0
- /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +0 -0
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { c as x } from "../../../_virtual/compiler-runtime.js";
|
|
2
|
-
import { useService as y } from "../../../utils/contextStore.js";
|
|
3
|
-
import { DFlowReactiveSuggestionService as M } from "./DFlowSuggestion.service.js";
|
|
4
|
-
import { DFlowDataTypeReactiveService as B } from "../data-type/DFlowDataType.service.js";
|
|
5
|
-
import { md5 as P } from "js-md5";
|
|
6
|
-
import { DFlowSuggestionType as f, DFlowSuggestion as S } from "./DFlowSuggestion.view.js";
|
|
7
|
-
import { DFlowFunctionReactiveService as j } from "../function/DFlowFunction.service.js";
|
|
8
|
-
import { replaceGenericsAndSortType as O, resolveType as A, isMatchingType as b } from "../../../utils/generics.js";
|
|
9
|
-
import { NodeFunctionView as D } from "../DFlow.view.js";
|
|
10
|
-
import { DFlowReactiveService as L } from "../DFlow.service.js";
|
|
11
|
-
import { useReturnType as Y } from "../function/DFlowFunction.return.hook.js";
|
|
12
|
-
import { useInputType as $ } from "../function/DFlowFunction.input.hook.js";
|
|
13
|
-
const ie = (i, p, s, g = 0, u = [0], T = 1, v = [f.REF_OBJECT, f.VALUE, f.FUNCTION, f.FUNCTION_COMBINATION, f.DATA_TYPE]) => {
|
|
14
|
-
const m = y(M), I = y(B), R = y(L), E = y(j), N = R.getById(s), l = i ? I?.getDataType(i) : void 0;
|
|
15
|
-
if (!m || !I) return [];
|
|
16
|
-
const o = i ? G(i) : void 0, r = i ? O(A(i, I), p) : void 0, a = [];
|
|
17
|
-
return m.getSuggestionsByHash(o || "").length <= 0 && (o && l && v.includes(f.VALUE) && l.rules?.nodes?.forEach((n) => {
|
|
18
|
-
if (n?.variant === "ITEM_OF_COLLECTION")
|
|
19
|
-
n.config.items?.forEach((e) => {
|
|
20
|
-
const t = new S(o, [], {
|
|
21
|
-
__typename: "LiteralValue",
|
|
22
|
-
value: e
|
|
23
|
-
}, f.VALUE, [e.toString()]);
|
|
24
|
-
m.add(t), a.push(t);
|
|
25
|
-
});
|
|
26
|
-
else if (n?.variant === "NUMBER_RANGE") {
|
|
27
|
-
const e = n.config, t = new S(o, [], {
|
|
28
|
-
__typename: "LiteralValue",
|
|
29
|
-
value: e.from
|
|
30
|
-
}, f.VALUE, [e.from?.toString() ?? ""]);
|
|
31
|
-
m.add(t), a.push(t);
|
|
32
|
-
}
|
|
33
|
-
}), o && l && l.variant === "DATA_TYPE" && v.includes(f.DATA_TYPE) && I.values().forEach((n) => {
|
|
34
|
-
const e = new S(o, [], n.json, f.DATA_TYPE, [n.name?.nodes[0]?.content]);
|
|
35
|
-
m.add(e), a.push(e);
|
|
36
|
-
}), v.includes(f.FUNCTION_COMBINATION) && E.values().filter((e) => {
|
|
37
|
-
if (!i || !r || !o) return !0;
|
|
38
|
-
if (e.runtimeFunctionDefinition?.identifier == "RETURN" && i) return !1;
|
|
39
|
-
if (l?.variant === "NODE") return !0;
|
|
40
|
-
if (!e.returnType || !e.genericKeys) return !1;
|
|
41
|
-
const t = O(A(e.returnType, I), e.genericKeys);
|
|
42
|
-
return b(r, t);
|
|
43
|
-
}).sort((e, t) => {
|
|
44
|
-
const [c, d, _] = e.runtimeFunctionDefinition.identifier.split("::"), [F, C, h] = t.runtimeFunctionDefinition.identifier.split("::"), U = c.localeCompare(F);
|
|
45
|
-
if (U !== 0) return U;
|
|
46
|
-
const V = d.localeCompare(C);
|
|
47
|
-
return V !== 0 ? V : _.localeCompare(h);
|
|
48
|
-
}).forEach((e) => {
|
|
49
|
-
const t = {
|
|
50
|
-
__typename: "NodeFunction",
|
|
51
|
-
//TODO: generate unique id
|
|
52
|
-
id: `gid://sagittarius/NodeFunction/${(N?.nodes?.length ?? 0) + 1}`,
|
|
53
|
-
functionDefinition: {
|
|
54
|
-
id: e.id,
|
|
55
|
-
runtimeFunctionDefinition: e.runtimeFunctionDefinition
|
|
56
|
-
},
|
|
57
|
-
parameters: {
|
|
58
|
-
nodes: e.parameterDefinitions?.map((d) => ({
|
|
59
|
-
id: d.id,
|
|
60
|
-
runtimeParameter: {
|
|
61
|
-
id: d.id
|
|
62
|
-
}
|
|
63
|
-
})) ?? []
|
|
64
|
-
}
|
|
65
|
-
}, c = new S(o || "", [], t, f.FUNCTION, [e.names?.nodes[0]?.content]);
|
|
66
|
-
a.push(c);
|
|
67
|
-
})), v.includes(f.REF_OBJECT) && (i ? J(s) : []).forEach((e) => {
|
|
68
|
-
if ((e?.node ?? 0) >= T || (e?.depth ?? 0) > g || (e?.scope ?? []).some((d) => !u.includes(d)) || !r) return;
|
|
69
|
-
const t = O(A(e.dataTypeIdentifier, I), []);
|
|
70
|
-
if (!b(r, t)) return;
|
|
71
|
-
const c = new S(o || "", [], e, f.REF_OBJECT, [`${e.depth}-${e.scope}-${e.node || ""}`]);
|
|
72
|
-
a.push(c);
|
|
73
|
-
}), [...a, ...m.getSuggestionsByHash(o || "")].sort();
|
|
74
|
-
}, G = (i, p) => {
|
|
75
|
-
const s = x.c(4), g = y(B);
|
|
76
|
-
if (!i || !g)
|
|
77
|
-
return;
|
|
78
|
-
let u;
|
|
79
|
-
if (s[0] !== g || s[1] !== p || s[2] !== i) {
|
|
80
|
-
const T = A(i, g), v = O(T, p), m = JSON.stringify(v);
|
|
81
|
-
u = P(m), s[0] = g, s[1] = p, s[2] = i, s[3] = u;
|
|
82
|
-
} else
|
|
83
|
-
u = s[3];
|
|
84
|
-
return u;
|
|
85
|
-
}, J = (i) => {
|
|
86
|
-
const p = y(B), s = y(L), g = y(j), u = [];
|
|
87
|
-
if (!p || !s || !g) return u;
|
|
88
|
-
const T = s.values().find((N) => N.id === i);
|
|
89
|
-
if (!T?.startingNodeId) return u;
|
|
90
|
-
let v = 0;
|
|
91
|
-
const m = () => ++v;
|
|
92
|
-
let I = 0;
|
|
93
|
-
const R = () => ++I, E = (N, l, o) => {
|
|
94
|
-
if (!N) return;
|
|
95
|
-
let r = N;
|
|
96
|
-
for (; r; ) {
|
|
97
|
-
const a = g.getById(r.functionDefinition?.id);
|
|
98
|
-
if (!a) break;
|
|
99
|
-
const w = R();
|
|
100
|
-
if (r.parameters && a.parameterDefinitions)
|
|
101
|
-
for (const n of a.parameterDefinitions) {
|
|
102
|
-
const e = p.getDataType(n.dataTypeIdentifier);
|
|
103
|
-
if (!e || e.variant === "NODE") continue;
|
|
104
|
-
const t = e.rules?.nodes?.filter((c) => c?.variant === "INPUT_TYPES") ?? [];
|
|
105
|
-
if (t.length) {
|
|
106
|
-
const d = r.parameters.find((F) => F.id === n.id)?.value, _ = d !== void 0 ? d instanceof D ? [d.json()] : [d] : [];
|
|
107
|
-
for (const F of t) {
|
|
108
|
-
const C = F?.config, h = $(C.dataTypeIdentifier, a, _, p);
|
|
109
|
-
h && u.push({
|
|
110
|
-
__typename: "ReferenceValue",
|
|
111
|
-
dataTypeIdentifier: h,
|
|
112
|
-
depth: l,
|
|
113
|
-
scope: o,
|
|
114
|
-
node: w
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
{
|
|
120
|
-
const n = r.parameters?.map((t) => t.value).filter((t) => t !== void 0) ?? [], e = Y(a, n.map((t) => t instanceof D ? t.json() : t), p);
|
|
121
|
-
e && u.push({
|
|
122
|
-
__typename: "ReferenceValue",
|
|
123
|
-
dataTypeIdentifier: e,
|
|
124
|
-
depth: l,
|
|
125
|
-
scope: o,
|
|
126
|
-
node: w
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
if (r.parameters && a.parameterDefinitions)
|
|
130
|
-
for (const n of a.parameterDefinitions)
|
|
131
|
-
if (p.getDataType(n.dataTypeIdentifier)?.variant === "NODE") {
|
|
132
|
-
const t = r.parameters.find((c) => c.id === n.id);
|
|
133
|
-
if (t?.value && t.value instanceof D) {
|
|
134
|
-
const c = t.value, d = [...o, m()];
|
|
135
|
-
E(c, l + 1, d);
|
|
136
|
-
}
|
|
137
|
-
} else {
|
|
138
|
-
const t = r.parameters.find((c) => c.id === n.id);
|
|
139
|
-
t?.value && t.value instanceof D && E(t.value, l, o);
|
|
140
|
-
}
|
|
141
|
-
r = T.getNodeById(r.nextNodeId);
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
return E(T.getNodeById(T.startingNodeId), 0, [0]), u;
|
|
145
|
-
};
|
|
146
|
-
export {
|
|
147
|
-
J as useRefObjects,
|
|
148
|
-
ie as useSuggestions,
|
|
149
|
-
G as useTypeHash
|
|
150
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ReactiveArrayService } from '../../../utils/reactiveArrayService';
|
|
2
|
-
import { DFlowSuggestion } from './DFlowSuggestion.view';
|
|
3
|
-
export declare abstract class DFlowReactiveSuggestionService extends ReactiveArrayService<DFlowSuggestion> {
|
|
4
|
-
getSuggestionsByHash(hash: string): DFlowSuggestion[];
|
|
5
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ReactiveArrayService as s } from "../../../utils/reactiveArrayService.js";
|
|
2
|
-
class l extends s {
|
|
3
|
-
//get all suggestions with matching hash
|
|
4
|
-
getSuggestionsByHash(a) {
|
|
5
|
-
const t = /* @__PURE__ */ new Set();
|
|
6
|
-
return this.values().filter((e) => e.hash === a).filter((e) => {
|
|
7
|
-
const r = JSON.stringify({
|
|
8
|
-
path: e.path,
|
|
9
|
-
value: e.value,
|
|
10
|
-
type: e.type
|
|
11
|
-
});
|
|
12
|
-
return t.has(r) ? !1 : (t.add(r), !0);
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
l as DFlowReactiveSuggestionService
|
|
18
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NodeParameterValue } 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 declare class DFlowSuggestion {
|
|
10
|
-
private readonly _hash;
|
|
11
|
-
private readonly _path;
|
|
12
|
-
private readonly _value;
|
|
13
|
-
private readonly _type;
|
|
14
|
-
private readonly _displayText;
|
|
15
|
-
constructor(_hash: string, _path: number[], _value: NodeParameterValue, _type: DFlowSuggestionType, _displayText: string[]);
|
|
16
|
-
get displayText(): string[];
|
|
17
|
-
get hash(): string;
|
|
18
|
-
get path(): number[];
|
|
19
|
-
get value(): NodeParameterValue;
|
|
20
|
-
get type(): DFlowSuggestionType;
|
|
21
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var s = /* @__PURE__ */ ((t) => (t[t.REF_OBJECT = 0] = "REF_OBJECT", t[t.VALUE = 1] = "VALUE", t[t.FUNCTION = 2] = "FUNCTION", t[t.FUNCTION_COMBINATION = 3] = "FUNCTION_COMBINATION", t[t.DATA_TYPE = 4] = "DATA_TYPE", t))(s || {});
|
|
2
|
-
class O {
|
|
3
|
-
constructor(h, r, _, a, N) {
|
|
4
|
-
this._hash = h, this._path = r, this._value = _, this._type = a, this._displayText = N;
|
|
5
|
-
}
|
|
6
|
-
get displayText() {
|
|
7
|
-
return this._displayText;
|
|
8
|
-
}
|
|
9
|
-
get hash() {
|
|
10
|
-
return this._hash;
|
|
11
|
-
}
|
|
12
|
-
get path() {
|
|
13
|
-
return this._path;
|
|
14
|
-
}
|
|
15
|
-
get value() {
|
|
16
|
-
return this._value;
|
|
17
|
-
}
|
|
18
|
-
get type() {
|
|
19
|
-
return this._type;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
O as DFlowSuggestion,
|
|
24
|
-
s as DFlowSuggestionType
|
|
25
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as I } from "react/jsx-runtime";
|
|
2
|
-
import { c as k } from "../../../_virtual/compiler-runtime.js";
|
|
3
|
-
import { MenuTrigger as B, MenuSeparator as b, MenuPortal as E, Menu as L } from "../../menu/Menu.js";
|
|
4
|
-
import x from "react";
|
|
5
|
-
import { DFlowSuggestionMenuFooter as O } from "./DFlowSuggestionMenuFooter.js";
|
|
6
|
-
import { InputSuggestionMenuContentItems as P, InputSuggestionMenuContent as U } from "../../form/InputSuggestion.js";
|
|
7
|
-
import { toInputSuggestions as $ } from "./DFlowSuggestionMenu.util.js";
|
|
8
|
-
import { DFlowSuggestionMenuSearchBar as q } from "./DFlowSuggestionMenuSearchBar.js";
|
|
9
|
-
import { useStoreApi as v } from "@xyflow/react";
|
|
10
|
-
const Y = (F) => {
|
|
11
|
-
const e = k.c(25), {
|
|
12
|
-
suggestions: f,
|
|
13
|
-
triggerContent: h,
|
|
14
|
-
onSuggestionSelect: C
|
|
15
|
-
} = F;
|
|
16
|
-
let g;
|
|
17
|
-
e[0] !== f ? (g = f === void 0 ? [] : f, e[0] = f, e[1] = g) : g = e[1];
|
|
18
|
-
const m = g, D = C === void 0 ? z : C, M = v(), w = x.useRef(null), [y, T] = x.useState(m);
|
|
19
|
-
let s;
|
|
20
|
-
e[2] !== M ? (s = (t) => {
|
|
21
|
-
setTimeout(() => {
|
|
22
|
-
M.setState({
|
|
23
|
-
nodesDraggable: !t,
|
|
24
|
-
nodesConnectable: !t,
|
|
25
|
-
elementsSelectable: !t
|
|
26
|
-
});
|
|
27
|
-
}, 250);
|
|
28
|
-
}, e[2] = M, e[3] = s) : s = e[3];
|
|
29
|
-
let n;
|
|
30
|
-
e[4] !== h ? (n = /* @__PURE__ */ o(B, { asChild: !0, children: h }), e[4] = h, e[5] = n) : n = e[5];
|
|
31
|
-
let r;
|
|
32
|
-
e[6] !== m ? (r = /* @__PURE__ */ o(q, { onType: (t) => {
|
|
33
|
-
t.key === "ArrowDown" ? (t.preventDefault(), w.current?.focusFirstItem()) : t.key === "ArrowUp" && (t.preventDefault(), w.current?.focusLastItem());
|
|
34
|
-
const A = t.target.value;
|
|
35
|
-
return T(m.filter((R) => R.displayText.some((j) => j.includes(A)))), t.preventDefault(), !1;
|
|
36
|
-
} }), e[6] = m, e[7] = r) : r = e[7];
|
|
37
|
-
let a;
|
|
38
|
-
e[8] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ o(b, {}), e[8] = a) : a = e[8];
|
|
39
|
-
let l;
|
|
40
|
-
e[9] !== y ? (l = $(y), e[9] = y, e[10] = l) : l = e[10];
|
|
41
|
-
let i;
|
|
42
|
-
e[11] !== D ? (i = (t) => {
|
|
43
|
-
D(t.valueData);
|
|
44
|
-
}, e[11] = D, e[12] = i) : i = e[12];
|
|
45
|
-
let u;
|
|
46
|
-
e[13] !== l || e[14] !== i ? (u = /* @__PURE__ */ o(P, { ref: w, suggestions: l, onSuggestionSelect: i }), e[13] = l, e[14] = i, e[15] = u) : u = e[15];
|
|
47
|
-
let p, S;
|
|
48
|
-
e[16] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ o(b, {}), S = /* @__PURE__ */ o(O, {}), e[16] = p, e[17] = S) : (p = e[16], S = e[17]);
|
|
49
|
-
let c;
|
|
50
|
-
e[18] !== r || e[19] !== u ? (c = /* @__PURE__ */ o(E, { children: /* @__PURE__ */ I(U, { children: [
|
|
51
|
-
r,
|
|
52
|
-
a,
|
|
53
|
-
u,
|
|
54
|
-
p,
|
|
55
|
-
S
|
|
56
|
-
] }) }), e[18] = r, e[19] = u, e[20] = c) : c = e[20];
|
|
57
|
-
let d;
|
|
58
|
-
return e[21] !== c || e[22] !== s || e[23] !== n ? (d = /* @__PURE__ */ I(L, { onOpenChange: s, children: [
|
|
59
|
-
n,
|
|
60
|
-
c
|
|
61
|
-
] }), e[21] = c, e[22] = s, e[23] = n, e[24] = d) : d = e[24], d;
|
|
62
|
-
};
|
|
63
|
-
function z() {
|
|
64
|
-
}
|
|
65
|
-
export {
|
|
66
|
-
Y as DFlowSuggestionMenu
|
|
67
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import "../../../_virtual/compiler-runtime.js";
|
|
3
|
-
import i from "react";
|
|
4
|
-
import "@radix-ui/react-checkbox";
|
|
5
|
-
import "merge-props";
|
|
6
|
-
import { IconX as a } from "@tabler/icons-react";
|
|
7
|
-
import '../../../assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css';import '../../../assets/components/form/Input.style.css';/* empty css */
|
|
8
|
-
import "../../form/EmailInput.js";
|
|
9
|
-
import { Input as c } from "../../form/Input.js";
|
|
10
|
-
import "../../form/InputSuggestion.js";
|
|
11
|
-
import "../../form/NumberInput.js";
|
|
12
|
-
import "../../form/PasswordInput.js";
|
|
13
|
-
import "@radix-ui/react-one-time-password-field";
|
|
14
|
-
import "@radix-ui/react-radio-group";
|
|
15
|
-
import "../../form/SwitchInput.js";
|
|
16
|
-
import "../../form/TextInput.js";
|
|
17
|
-
import { Button as l } from "../../button/Button.js";
|
|
18
|
-
/* empty css */
|
|
19
|
-
import { setElementKey as u } from "../../form/Input.utils.js";
|
|
20
|
-
const E = i.forwardRef((e, t) => {
|
|
21
|
-
t = t || i.useRef(null);
|
|
22
|
-
const {
|
|
23
|
-
clearable: m = !1,
|
|
24
|
-
right: p,
|
|
25
|
-
...n
|
|
26
|
-
} = e, s = () => {
|
|
27
|
-
t.current && u(t.current, "value", "", "change");
|
|
28
|
-
}, r = [p];
|
|
29
|
-
return m && r.push(/* @__PURE__ */ o(l, { variant: "none", onClick: s, children: /* @__PURE__ */ o(a, { size: 13 }) })), /* @__PURE__ */ o(c, { wrapperComponent: {
|
|
30
|
-
className: "d-flow-suggestion-search-input"
|
|
31
|
-
}, right: r, type: "text", ref: t, ...n });
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
E as DFlowSuggestionSearchInput
|
|
35
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DFlowReactiveSuggestionService as g } from "./DFlowSuggestion.service.js";
|
|
2
|
-
import { DFlowSuggestion as i, DFlowSuggestionType as r } from "./DFlowSuggestion.view.js";
|
|
3
|
-
export {
|
|
4
|
-
g as DFlowReactiveSuggestionService,
|
|
5
|
-
i as DFlowSuggestion,
|
|
6
|
-
r as DFlowSuggestionType
|
|
7
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import y from "react";
|
|
3
|
-
import { NodeFunctionView as R } from "../DFlow.view.js";
|
|
4
|
-
import { TextInput as j } from "../../form/TextInput.js";
|
|
5
|
-
import { Flex as B } from "../../flex/Flex.js";
|
|
6
|
-
import { useService as S } from "../../../utils/contextStore.js";
|
|
7
|
-
import { DFlowFunctionReactiveService as T } from "../function/DFlowFunction.service.js";
|
|
8
|
-
import { useSuggestions as M } from "../suggestion/DFlowSuggestion.hook.js";
|
|
9
|
-
import { DFlowSuggestionMenuFooter as E } from "../suggestion/DFlowSuggestionMenuFooter.js";
|
|
10
|
-
import { toInputSuggestions as k } from "../suggestion/DFlowSuggestionMenu.util.js";
|
|
11
|
-
import { DFlowReactiveService as C } from "../DFlow.service.js";
|
|
12
|
-
import { Badge as h } from "../../badge/Badge.js";
|
|
13
|
-
const Z = (V) => {
|
|
14
|
-
const {
|
|
15
|
-
functionInstance: l,
|
|
16
|
-
flowId: D,
|
|
17
|
-
depthLevel: F,
|
|
18
|
-
scopeLevel: N,
|
|
19
|
-
nodeLevel: I
|
|
20
|
-
} = V, c = S(T), b = S(C), d = c.getById(l.functionDefinition?.id), f = y.useMemo(() => {
|
|
21
|
-
const e = {};
|
|
22
|
-
return d?.parameterDefinitions?.forEach((o) => {
|
|
23
|
-
e[o.id] = o;
|
|
24
|
-
}), e;
|
|
25
|
-
}, [d?.parameterDefinitions]), m = y.useMemo(() => [...l.parameters || []].sort((e, o) => e.id.localeCompare(o.id)), [l.parameters]), g = {};
|
|
26
|
-
return m.forEach((e) => {
|
|
27
|
-
const o = f[e.id];
|
|
28
|
-
g[e.id] = M(o?.dataTypeIdentifier, [], D, F, N, I);
|
|
29
|
-
}), /* @__PURE__ */ r(B, { style: {
|
|
30
|
-
gap: ".7rem",
|
|
31
|
-
flexDirection: "column"
|
|
32
|
-
}, children: m.map((e) => {
|
|
33
|
-
const o = (t) => {
|
|
34
|
-
e.value = t, b.update();
|
|
35
|
-
}, p = (t) => {
|
|
36
|
-
try {
|
|
37
|
-
const n = JSON.parse(t.target.value);
|
|
38
|
-
if (!n.__typename) {
|
|
39
|
-
o(n ? {
|
|
40
|
-
__typename: "LiteralValue",
|
|
41
|
-
value: n
|
|
42
|
-
} : void 0);
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
o(n.__typename === "LiteralValue" ? n.value ? n : void 0 : n);
|
|
46
|
-
} catch {
|
|
47
|
-
o(t.target.value == "" || !t.target.value ? void 0 : {
|
|
48
|
-
__typename: "LiteralValue",
|
|
49
|
-
value: t.target.value
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}, s = f[e.id], w = g[e.id], L = s?.names ? s?.names?.nodes[0]?.content : s?.id, O = s?.descriptions ? s?.descriptions?.nodes[0]?.content : JSON.stringify(s?.dataTypeIdentifier), x = e.value instanceof R ? JSON.stringify({
|
|
53
|
-
...e.value.json(),
|
|
54
|
-
__typename: "NodeFunction"
|
|
55
|
-
}) : e.value?.__typename === "ReferenceValue" ? JSON.stringify(e.value) : e.value?.__typename === "LiteralValue" ? typeof e.value?.value == "object" ? JSON.stringify(e.value?.value) : e.value.value : "";
|
|
56
|
-
return /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(j, { title: L, description: O, clearable: !0, transformSyntax: (t) => {
|
|
57
|
-
const n = t ?? "", u = typeof n == "string" ? n : String(n), J = (i) => [{
|
|
58
|
-
type: "text",
|
|
59
|
-
start: 0,
|
|
60
|
-
end: i.length,
|
|
61
|
-
visualLength: i.length,
|
|
62
|
-
content: i
|
|
63
|
-
}], v = (i) => [{
|
|
64
|
-
type: "block",
|
|
65
|
-
start: 0,
|
|
66
|
-
end: u.length,
|
|
67
|
-
visualLength: 1,
|
|
68
|
-
content: i
|
|
69
|
-
}];
|
|
70
|
-
try {
|
|
71
|
-
const i = JSON.parse(u);
|
|
72
|
-
if (i?.__typename === "NodeFunction") {
|
|
73
|
-
const a = c.getById(i.functionDefinition?.id);
|
|
74
|
-
return v(/* @__PURE__ */ r(h, { color: "info", children: a?.names?.nodes[0]?.content }));
|
|
75
|
-
}
|
|
76
|
-
if (i?.__typename === "ReferenceValue") {
|
|
77
|
-
const a = i;
|
|
78
|
-
return v(/* @__PURE__ */ _(h, { color: "warning", children: [
|
|
79
|
-
a.depth,
|
|
80
|
-
"-",
|
|
81
|
-
a.scope,
|
|
82
|
-
"-",
|
|
83
|
-
a.node,
|
|
84
|
-
"-",
|
|
85
|
-
JSON.stringify(a.dataTypeIdentifier)
|
|
86
|
-
] }));
|
|
87
|
-
}
|
|
88
|
-
} catch {
|
|
89
|
-
}
|
|
90
|
-
return J(u);
|
|
91
|
-
}, defaultValue: x, onSuggestionSelect: (t) => {
|
|
92
|
-
o(t.value);
|
|
93
|
-
}, formValidation: {
|
|
94
|
-
setValue: () => {
|
|
95
|
-
},
|
|
96
|
-
valid: e.validationResults.length <= 0,
|
|
97
|
-
notValidMessage: e.validationResults.map((t) => t.message.nodes[0]?.content).join(", ")
|
|
98
|
-
}, onBlur: p, onClear: p, suggestionsFooter: /* @__PURE__ */ r(E, {}), suggestions: k(w) }, JSON.stringify(e.value)) });
|
|
99
|
-
}) });
|
|
100
|
-
};
|
|
101
|
-
export {
|
|
102
|
-
Z as DFlowTabDefault
|
|
103
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsxs as d, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { useService as p } from "../../../utils/contextStore.js";
|
|
3
|
-
import { DFlowReactiveService as S } from "../DFlow.service.js";
|
|
4
|
-
import { TextInput as T } from "../../form/TextInput.js";
|
|
5
|
-
import { Flex as w } from "../../flex/Flex.js";
|
|
6
|
-
import { DFlowTypeReactiveService as b } from "../type/DFlowType.service.js";
|
|
7
|
-
import { useSuggestions as F } from "../suggestion/DFlowSuggestion.hook.js";
|
|
8
|
-
import { DFlowSuggestionMenuFooter as V } from "../suggestion/DFlowSuggestionMenuFooter.js";
|
|
9
|
-
import { toInputSuggestions as x } from "../suggestion/DFlowSuggestionMenu.util.js";
|
|
10
|
-
import { DFlowInputDataType as I } from "../input/DFlowInputDataType.js";
|
|
11
|
-
const _ = (c) => {
|
|
12
|
-
const {
|
|
13
|
-
instance: i
|
|
14
|
-
} = c, m = p(b), u = p(S), n = m.getById(i.type?.id), s = {};
|
|
15
|
-
return n?.flowTypeSettings?.forEach((o) => {
|
|
16
|
-
s[o.identifier] = F({
|
|
17
|
-
dataType: o.dataType
|
|
18
|
-
}, [], i.id, 0, [0], 0);
|
|
19
|
-
}), /* @__PURE__ */ d(w, { style: {
|
|
20
|
-
gap: ".7rem",
|
|
21
|
-
flexDirection: "column"
|
|
22
|
-
}, children: [
|
|
23
|
-
n?.inputType ? /* @__PURE__ */ l(I, { onDataTypeChange: (o) => {
|
|
24
|
-
i.inputType = o, u.update();
|
|
25
|
-
}, initialValue: i.inputType || n.inputType, blockingDataType: n.inputType }) : null,
|
|
26
|
-
n?.flowTypeSettings?.map((o) => {
|
|
27
|
-
const e = i.settings?.find((t) => t.flowSettingIdentifier == o.identifier), f = o.names?.nodes[0]?.content ?? "", y = o?.descriptions?.nodes[0]?.content ?? "", g = s[o.identifier];
|
|
28
|
-
if (!e) return null;
|
|
29
|
-
const v = (e.value?.__typename === "LiteralValue", typeof e?.value == "object" ? JSON.stringify(e?.value) : e?.value), r = (t) => {
|
|
30
|
-
t.__typename == "LiteralValue" ? e.value = t.value : e.value = t, u.update();
|
|
31
|
-
};
|
|
32
|
-
return /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(T, { title: f, description: y, clearable: !0, defaultValue: v, onClear: (t) => {
|
|
33
|
-
try {
|
|
34
|
-
const a = JSON.parse(t.target.value);
|
|
35
|
-
if (a.__typename == "LiteralValue") {
|
|
36
|
-
r(a.value);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
r(a);
|
|
40
|
-
} catch {
|
|
41
|
-
r(t.target.value);
|
|
42
|
-
}
|
|
43
|
-
}, onSuggestionSelect: (t) => {
|
|
44
|
-
r(t.value);
|
|
45
|
-
}, suggestionsFooter: /* @__PURE__ */ l(V, {}), suggestions: x(g) }, JSON.stringify(e.value)) });
|
|
46
|
-
})
|
|
47
|
-
] });
|
|
48
|
-
};
|
|
49
|
-
export {
|
|
50
|
-
_ as DFlowTabTrigger
|
|
51
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { jsx as l, jsxs as S, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import { c as B } from "../../../_virtual/compiler-runtime.js";
|
|
3
|
-
import { useService as E, useStore as O } from "../../../utils/contextStore.js";
|
|
4
|
-
import { FileTabsService as x } from "../../file-tabs/FileTabs.service.js";
|
|
5
|
-
import { FileTabsContent as V, FileTabsTrigger as P, FileTabsList as G, FileTabs as H } from "../../file-tabs/FileTabs.js";
|
|
6
|
-
import $ from "react";
|
|
7
|
-
import { MenuTrigger as q, MenuItem as y, Menu as A, MenuPortal as D, MenuContent as W, MenuSeparator as J } from "../../menu/Menu.js";
|
|
8
|
-
import { Button as j } from "../../button/Button.js";
|
|
9
|
-
import { IconChevronDown as K, IconDotsVertical as N } from "@tabler/icons-react";
|
|
10
|
-
const ne = () => {
|
|
11
|
-
const e = B.c(53), t = E(x), r = O(x), n = $.useId();
|
|
12
|
-
let F;
|
|
13
|
-
e[0] !== t || e[1] !== r ? (F = r.find(Q)?.id ?? t.getActiveTab()?.id, e[0] = t, e[1] = r, e[2] = F) : F = e[2];
|
|
14
|
-
const s = F;
|
|
15
|
-
let M;
|
|
16
|
-
e[3] !== t || e[4] !== n ? (M = () => {
|
|
17
|
-
setTimeout(() => {
|
|
18
|
-
const i = document.querySelector('[data-id="' + n + '"]').querySelector(".file-tabs__list-content"), T = i.querySelector('[data-value="' + t.getActiveTab()?.id + '"]');
|
|
19
|
-
if (i && T) {
|
|
20
|
-
const w = T.offsetLeft + T.offsetWidth / 2 - i.offsetWidth / 2;
|
|
21
|
-
i.scrollLeft = 0, i.scrollBy({
|
|
22
|
-
left: w,
|
|
23
|
-
behavior: "smooth"
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}, 0);
|
|
27
|
-
}, e[3] = t, e[4] = n, e[5] = M) : M = e[5];
|
|
28
|
-
let k;
|
|
29
|
-
e[6] !== s || e[7] !== n ? (k = [s, n], e[6] = s, e[7] = n, e[8] = k) : k = e[8], $.useEffect(M, k);
|
|
30
|
-
let c;
|
|
31
|
-
e[9] !== t ? (c = (o) => {
|
|
32
|
-
t.activateTab(o);
|
|
33
|
-
}, e[9] = t, e[10] = c) : c = e[10];
|
|
34
|
-
let I;
|
|
35
|
-
e[11] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ l(q, { asChild: !0, children: /* @__PURE__ */ l(j, { variant: "none", color: "primary", style: {
|
|
36
|
-
aspectRatio: "1/1"
|
|
37
|
-
}, children: /* @__PURE__ */ l(K, { size: 12 }) }) }), e[11] = I) : I = e[11];
|
|
38
|
-
let a;
|
|
39
|
-
if (e[12] !== t || e[13] !== r) {
|
|
40
|
-
let o;
|
|
41
|
-
e[15] !== t ? (o = (i) => /* @__PURE__ */ l(y, { onClick: () => {
|
|
42
|
-
t.activateTab(i.id);
|
|
43
|
-
}, children: i.children }, `menu-${i.id}`), e[15] = t, e[16] = o) : o = e[16], a = r.map(o), e[12] = t, e[13] = r, e[14] = a;
|
|
44
|
-
} else
|
|
45
|
-
a = e[14];
|
|
46
|
-
let f;
|
|
47
|
-
e[17] !== a ? (f = /* @__PURE__ */ S(A, { children: [
|
|
48
|
-
I,
|
|
49
|
-
/* @__PURE__ */ l(D, { children: /* @__PURE__ */ l(W, { align: "end", sideOffset: 8, children: a }) })
|
|
50
|
-
] }), e[17] = a, e[18] = f) : f = e[18];
|
|
51
|
-
let L;
|
|
52
|
-
e[19] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ l(q, { asChild: !0, children: /* @__PURE__ */ l(j, { variant: "none", color: "primary", style: {
|
|
53
|
-
aspectRatio: "1/1"
|
|
54
|
-
}, children: /* @__PURE__ */ l(N, { size: 12 }) }) }), e[19] = L) : L = e[19];
|
|
55
|
-
let d;
|
|
56
|
-
e[20] !== t ? (d = /* @__PURE__ */ l(y, { onClick: () => t.clear(), children: "Close all tabs" }), e[20] = t, e[21] = d) : d = e[21];
|
|
57
|
-
let m;
|
|
58
|
-
e[22] !== t ? (m = /* @__PURE__ */ l(y, { onClick: () => t.clearWithoutActive(), children: "Close other tabs" }), e[22] = t, e[23] = m) : m = e[23];
|
|
59
|
-
let R;
|
|
60
|
-
e[24] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ l(J, {}), e[24] = R) : R = e[24];
|
|
61
|
-
let h;
|
|
62
|
-
e[25] !== t ? (h = /* @__PURE__ */ l(y, { onClick: () => t.clearLeft(), children: "Close all tabs to left" }), e[25] = t, e[26] = h) : h = e[26];
|
|
63
|
-
let u;
|
|
64
|
-
e[27] !== t ? (u = /* @__PURE__ */ l(y, { onClick: () => t.clearRight(), children: "Close all tabs to right" }), e[27] = t, e[28] = u) : u = e[28];
|
|
65
|
-
let p;
|
|
66
|
-
e[29] !== h || e[30] !== u || e[31] !== d || e[32] !== m ? (p = /* @__PURE__ */ S(A, { children: [
|
|
67
|
-
L,
|
|
68
|
-
/* @__PURE__ */ l(D, { children: /* @__PURE__ */ S(W, { align: "end", sideOffset: 8, children: [
|
|
69
|
-
d,
|
|
70
|
-
m,
|
|
71
|
-
R,
|
|
72
|
-
h,
|
|
73
|
-
u
|
|
74
|
-
] }) })
|
|
75
|
-
] }), e[29] = h, e[30] = u, e[31] = d, e[32] = m, e[33] = p) : p = e[33];
|
|
76
|
-
let b;
|
|
77
|
-
e[34] !== p || e[35] !== f ? (b = /* @__PURE__ */ S(z, { children: [
|
|
78
|
-
f,
|
|
79
|
-
p
|
|
80
|
-
] }), e[34] = p, e[35] = f, e[36] = b) : b = e[36];
|
|
81
|
-
let v;
|
|
82
|
-
if (e[37] !== t || e[38] !== r) {
|
|
83
|
-
let o;
|
|
84
|
-
e[40] !== t ? (o = (i, T) => /* @__PURE__ */ l(P, { closable: i.closeable, value: i.id, onClose: () => t.delete(T), children: i.children }, `trigger-${i.id}`), e[40] = t, e[41] = o) : o = e[41], v = r.map(o), e[37] = t, e[38] = r, e[39] = v;
|
|
85
|
-
} else
|
|
86
|
-
v = e[39];
|
|
87
|
-
let g;
|
|
88
|
-
e[42] !== b || e[43] !== v ? (g = /* @__PURE__ */ l(G, { controls: b, children: v }), e[42] = b, e[43] = v, e[44] = g) : g = e[44];
|
|
89
|
-
let C;
|
|
90
|
-
e[45] !== r ? (C = r.map(U), e[45] = r, e[46] = C) : C = e[46];
|
|
91
|
-
let _;
|
|
92
|
-
return e[47] !== s || e[48] !== n || e[49] !== g || e[50] !== C || e[51] !== c ? (_ = /* @__PURE__ */ S(H, { "data-id": n, value: s, onValueChange: c, children: [
|
|
93
|
-
g,
|
|
94
|
-
C
|
|
95
|
-
] }), e[47] = s, e[48] = n, e[49] = g, e[50] = C, e[51] = c, e[52] = _) : _ = e[52], _;
|
|
96
|
-
};
|
|
97
|
-
function Q(e) {
|
|
98
|
-
return e.active;
|
|
99
|
-
}
|
|
100
|
-
function U(e) {
|
|
101
|
-
return /* @__PURE__ */ l(V, { value: e.id, children: e.content }, `content-${e.id}`);
|
|
102
|
-
}
|
|
103
|
-
export {
|
|
104
|
-
ne as DFlowTabs
|
|
105
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { useService as l, useStore as n } from "../../../utils/contextStore.js";
|
|
2
|
-
import { DFlowReactiveService as o } from "../DFlow.service.js";
|
|
3
|
-
import c from "react";
|
|
4
|
-
const v = (e) => {
|
|
5
|
-
const t = l(o), r = n(o), a = t.getById(e);
|
|
6
|
-
return c.useMemo(() => a?.nodes?.map((s) => s.parameters?.map((i) => i.validationResults).flat() ?? []).flat() ?? [], [r]);
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
v as useDFlowValidations
|
|
10
|
-
};
|