@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
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { __assign as d } from "../../../tslib/tslib.es6.js";
|
|
2
|
+
function l(r) {
|
|
3
|
+
return r;
|
|
4
|
+
}
|
|
5
|
+
function h(r, t) {
|
|
6
|
+
t === void 0 && (t = l);
|
|
7
|
+
var e = [], o = !1, c = {
|
|
8
|
+
read: function() {
|
|
9
|
+
if (o)
|
|
10
|
+
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
11
|
+
return e.length ? e[e.length - 1] : r;
|
|
12
|
+
},
|
|
13
|
+
useMedium: function(u) {
|
|
14
|
+
var n = t(u, o);
|
|
15
|
+
return e.push(n), function() {
|
|
16
|
+
e = e.filter(function(i) {
|
|
17
|
+
return i !== n;
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
assignSyncMedium: function(u) {
|
|
22
|
+
for (o = !0; e.length; ) {
|
|
23
|
+
var n = e;
|
|
24
|
+
e = [], n.forEach(u);
|
|
25
|
+
}
|
|
26
|
+
e = {
|
|
27
|
+
push: function(i) {
|
|
28
|
+
return u(i);
|
|
29
|
+
},
|
|
30
|
+
filter: function() {
|
|
31
|
+
return e;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
assignMedium: function(u) {
|
|
36
|
+
o = !0;
|
|
37
|
+
var n = [];
|
|
38
|
+
if (e.length) {
|
|
39
|
+
var i = e;
|
|
40
|
+
e = [], i.forEach(u), n = e;
|
|
41
|
+
}
|
|
42
|
+
var s = function() {
|
|
43
|
+
var f = n;
|
|
44
|
+
n = [], f.forEach(u);
|
|
45
|
+
}, a = function() {
|
|
46
|
+
return Promise.resolve().then(s);
|
|
47
|
+
};
|
|
48
|
+
a(), e = {
|
|
49
|
+
push: function(f) {
|
|
50
|
+
n.push(f), a();
|
|
51
|
+
},
|
|
52
|
+
filter: function(f) {
|
|
53
|
+
return n = n.filter(f), e;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
return c;
|
|
59
|
+
}
|
|
60
|
+
function v(r) {
|
|
61
|
+
r === void 0 && (r = {});
|
|
62
|
+
var t = h(null);
|
|
63
|
+
return t.options = d({ async: !0, ssr: !1 }, r), t;
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
v as createSidecarMedium
|
|
67
|
+
};
|
package/dist/utils/generics.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { FunctionDefinitionView } from '../components/d-flow
|
|
2
|
-
import { DFlowDataTypeReactiveService } from '../components/d-flow
|
|
3
|
-
import { DataType, DataTypeIdentifier, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
import { FlowView } from '../components/d-flow/DFlow.view';
|
|
1
|
+
import { FunctionDefinitionView } from '../components/d-flow-function/DFlowFunction.view';
|
|
2
|
+
import { DFlowDataTypeReactiveService } from '../components/d-flow-data-type/DFlowDataType.service';
|
|
3
|
+
import { DataType, DataTypeIdentifier, Flow, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
5
4
|
type GenericMappingResult = Record<string, DataTypeIdentifier>;
|
|
6
5
|
type GenericReplacement = DataTypeIdentifier | GenericMapper;
|
|
7
|
-
type GenericMap = Map<string, GenericReplacement>;
|
|
6
|
+
export type GenericMap = Map<string, GenericReplacement>;
|
|
8
7
|
export declare const resolveGenericKeyMappings: (parameterType: DataTypeIdentifier, valueType: DataTypeIdentifier, genericKeys: string[]) => GenericMappingResult;
|
|
9
8
|
export declare const replaceGenericKeysInType: (type: DataTypeIdentifier, genericMap: GenericMap) => DataTypeIdentifier;
|
|
10
9
|
export declare const resolveAllGenericKeysInDataTypeObject: (genericObj: DataType, concreteObj: DataType, genericKeys: string[]) => Record<string, GenericReplacement | undefined>;
|
|
11
10
|
export declare const replaceGenericKeysInDataTypeObject: (dataType: DataType, genericMap: GenericMap) => DataType;
|
|
12
|
-
export declare const resolveGenericKeys: (func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService: DFlowDataTypeReactiveService, flow?:
|
|
11
|
+
export declare const resolveGenericKeys: (func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService: DFlowDataTypeReactiveService, flow?: Flow) => GenericMap;
|
|
13
12
|
export declare function isMatchingDataTypeObject(source: DataType, target: DataType): boolean;
|
|
14
13
|
export declare function isMatchingType(source: DataTypeIdentifier, target: DataTypeIdentifier): boolean;
|
|
15
14
|
export declare const resolveType: (type: DataTypeIdentifier, service: DFlowDataTypeReactiveService) => DataTypeIdentifier;
|
package/dist/utils/generics.js
CHANGED
|
@@ -161,8 +161,8 @@ const C = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isA
|
|
|
161
161
|
rules: i
|
|
162
162
|
};
|
|
163
163
|
}, k = (e, n, i, t) => {
|
|
164
|
-
const a = /* @__PURE__ */ new Map(), c = e
|
|
165
|
-
if (!e
|
|
164
|
+
const a = /* @__PURE__ */ new Map(), c = e?.genericKeys ?? [];
|
|
165
|
+
if (!e?.parameterDefinitions || c.length <= 0) return a;
|
|
166
166
|
const s = new Set(c);
|
|
167
167
|
return e.parameterDefinitions.forEach((r, f) => {
|
|
168
168
|
const o = r.dataTypeIdentifier, u = n[f], p = i.getTypeFromValue(u, t);
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
function n(e,
|
|
3
|
-
return (
|
|
2
|
+
function n(e, t, r) {
|
|
3
|
+
return (t = u(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
4
4
|
}
|
|
5
5
|
function u(e) {
|
|
6
|
-
var
|
|
7
|
-
return typeof
|
|
6
|
+
var t = c(e, "string");
|
|
7
|
+
return typeof t == "symbol" ? t : t + "";
|
|
8
8
|
}
|
|
9
|
-
function c(e,
|
|
9
|
+
function c(e, t) {
|
|
10
10
|
if (typeof e != "object" || !e) return e;
|
|
11
|
-
var
|
|
12
|
-
if (
|
|
13
|
-
var i =
|
|
11
|
+
var r = e[Symbol.toPrimitive];
|
|
12
|
+
if (r !== void 0) {
|
|
13
|
+
var i = r.call(e, t);
|
|
14
14
|
if (typeof i != "object") return i;
|
|
15
15
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
16
16
|
}
|
|
17
|
-
return (
|
|
17
|
+
return (t === "string" ? String : Number)(e);
|
|
18
18
|
}
|
|
19
19
|
class f {
|
|
20
|
-
constructor(
|
|
21
|
-
n(this, "store", void 0), this.store =
|
|
20
|
+
constructor(t) {
|
|
21
|
+
n(this, "store", void 0), this.store = t;
|
|
22
22
|
}
|
|
23
23
|
object() {
|
|
24
24
|
return this.store[0];
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
const i = o.useState(
|
|
29
|
-
return [i[0],
|
|
27
|
+
const a = (e, t, r) => {
|
|
28
|
+
const i = o.useState(r);
|
|
29
|
+
return [i[0], t ? t(i) : new e(i)];
|
|
30
30
|
};
|
|
31
31
|
export {
|
|
32
32
|
f as ObjectService,
|
|
33
|
-
|
|
33
|
+
a as createObjectService
|
|
34
34
|
};
|
|
@@ -16,7 +16,7 @@ function h(t, e) {
|
|
|
16
16
|
}
|
|
17
17
|
return (e === "string" ? String : Number)(t);
|
|
18
18
|
}
|
|
19
|
-
class
|
|
19
|
+
class d {
|
|
20
20
|
constructor(e) {
|
|
21
21
|
v(this, "access", void 0), this.access = e;
|
|
22
22
|
}
|
|
@@ -50,7 +50,7 @@ class b {
|
|
|
50
50
|
}
|
|
51
51
|
update() {
|
|
52
52
|
a(() => {
|
|
53
|
-
this.access.setState((e) => e
|
|
53
|
+
this.access.setState((e) => [...e]);
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
clear() {
|
|
@@ -59,7 +59,7 @@ class b {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function b(t, e = []) {
|
|
63
63
|
const [r, s] = n.useState(Array.isArray(e) ? e : []), c = n.useRef(r);
|
|
64
64
|
n.useEffect(() => {
|
|
65
65
|
c.current = r;
|
|
@@ -86,6 +86,6 @@ function d(t, e = []) {
|
|
|
86
86
|
}, [o, e]), [r, o];
|
|
87
87
|
}
|
|
88
88
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
d as ReactiveArrayService,
|
|
90
|
+
b as useReactiveArrayService
|
|
91
91
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code0-tech/pictor",
|
|
3
|
-
"version": "0.0.0-mvp.
|
|
3
|
+
"version": "0.0.0-mvp.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A simple template for a custom React component library",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@babel/plugin-proposal-decorators": "^7.28.0",
|
|
22
22
|
"@babel/plugin-transform-class-properties": "^7.27.1",
|
|
23
23
|
"@code0-tech/definition-reader": "^0.0.18",
|
|
24
|
-
"@code0-tech/sagittarius-graphql-types": "^0.0.0-
|
|
24
|
+
"@code0-tech/sagittarius-graphql-types": "^0.0.0-968478cecf351385c6c13c2be8aeae5c45da026c",
|
|
25
25
|
"@dagrejs/dagre": "^2.0.0",
|
|
26
26
|
"@mdx-js/react": "^3.1.1",
|
|
27
27
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"js-md5": "^0.8.3",
|
|
65
65
|
"merge-props": "^6.0.0",
|
|
66
66
|
"overlap-area": "^1.1.0",
|
|
67
|
-
"playwright": "1.
|
|
67
|
+
"playwright": "1.57.0",
|
|
68
68
|
"react": "^19.2.0",
|
|
69
69
|
"react-dom": "^19.2.0",
|
|
70
70
|
"react-resizable-panels": "^3.0.6",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"types": "dist/index.d.ts",
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"@ariakit/react": "^0.4.5",
|
|
97
|
-
"@code0-tech/sagittarius-graphql-types": "^0.0.0-
|
|
97
|
+
"@code0-tech/sagittarius-graphql-types": "^0.0.0-968478cecf351385c6c13c2be8aeae5c45da026c",
|
|
98
98
|
"@radix-ui/react-checkbox": "^1.3.2",
|
|
99
99
|
"@radix-ui/react-dialog": "^1.1.14",
|
|
100
100
|
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
@@ -118,5 +118,8 @@
|
|
|
118
118
|
},
|
|
119
119
|
"publishConfig": {
|
|
120
120
|
"access": "public"
|
|
121
|
+
},
|
|
122
|
+
"dependencies": {
|
|
123
|
+
"@radix-ui/react-context-menu": "^2.2.16"
|
|
121
124
|
}
|
|
122
125
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.d-folder{padding:.35rem .7rem;display:flex;white-space:nowrap;flex-wrap:nowrap;gap:.35rem;cursor:pointer;font-size:.8rem;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.d-folder{border-radius:1rem;background:#030014;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box}.d-folder:hover{background:#292637}.d-folder{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border:none;background:#030014}.d-folder__icon,.d-folder__status,.d-folder__item-icon{color:#70ffb2;display:flex;align-items:center;justify-content:center}.d-folder__status,.d-folder__item-icon{color:#fff}.d-folder__content{margin-left:.7rem;position:relative;padding-left:calc(5px + .35rem)}.d-folder__content:before{height:100%;width:1px;background:#1c1a2c;position:absolute;content:"";left:5px}.d-folder__item{padding:.35rem .7rem;display:flex;white-space:nowrap;flex-wrap:nowrap;gap:.35rem;align-items:center;cursor:pointer;font-size:.8rem;position:relative}.d-folder__item{border-radius:1rem;background:#030014;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box}.d-folder__item:hover{background:#292637}.d-folder__item:active,.d-folder__item:focus,.d-folder__item[aria-selected=true]{background:#353343;outline:none}.d-folder__item{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border:none}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.d-flow-viewport-mini-map{background:#030014;border:1px solid rgba(255,255,255,.1);color:#ffffffbf;position:relative;box-sizing:border-box;border-radius:1rem;margin:0;width:100%}.d-flow-viewport-mini-map>svg{border-radius:1rem}.d-flow-viewport-mini-map * .react-flow__minimap-mask{fill:#ffffff1a}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.d-flow-suggestion-search-input{box-shadow:none!important;background:none!important;margin-left:-.35rem;margin-right:-.35rem;padding-left:.35rem;padding-right:.35rem;border-radius:0!important}.d-flow-suggestion-search-input>input{padding-top:0!important;padding-bottom:0!important}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { DataType, Flow, FlowInput, FlowSetting, FlowSettingInput, FlowType, FunctionDefinition, LiteralValue, Maybe, NodeFunction, NodeFunctionInput, NodeParameter, NodeParameterInput, NodeParameterValue, ReferenceValue, RuntimeParameterDefinition, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
import { ValidationResult } from '../../utils';
|
|
3
|
-
export declare class FlowView {
|
|
4
|
-
/** Time when this Flow was created */
|
|
5
|
-
private readonly _createdAt?;
|
|
6
|
-
/** Global ID of this Flow */
|
|
7
|
-
private readonly _id?;
|
|
8
|
-
/** The input data type of the flow */
|
|
9
|
-
private _inputType?;
|
|
10
|
-
/** Nodes of the flow */
|
|
11
|
-
private _nodes?;
|
|
12
|
-
/** The return data type of the flow */
|
|
13
|
-
private readonly _returnType?;
|
|
14
|
-
/** The settings of the flow */
|
|
15
|
-
private readonly _settings?;
|
|
16
|
-
/** The ID of the starting node of the flow */
|
|
17
|
-
private _startingNodeId?;
|
|
18
|
-
/** The flow type of the flow */
|
|
19
|
-
private readonly _type?;
|
|
20
|
-
/** Time when this Flow was last updated */
|
|
21
|
-
private readonly _updatedAt?;
|
|
22
|
-
/** Name of the flow */
|
|
23
|
-
private _name?;
|
|
24
|
-
constructor(flow: Flow);
|
|
25
|
-
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
26
|
-
get id(): Maybe<Scalars["FlowID"]["output"]> | undefined;
|
|
27
|
-
get inputType(): Maybe<DataType> | undefined;
|
|
28
|
-
get nodes(): NodeFunctionView[] | undefined;
|
|
29
|
-
get returnType(): Maybe<DataType> | undefined;
|
|
30
|
-
get settings(): FlowSettingView[] | undefined;
|
|
31
|
-
get startingNodeId(): Maybe<Scalars["NodeFunctionID"]["output"]> | undefined;
|
|
32
|
-
get type(): Maybe<FlowType> | undefined;
|
|
33
|
-
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
34
|
-
get name(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
35
|
-
set inputType(value: Maybe<DataType>);
|
|
36
|
-
set startingNodeId(value: Maybe<Scalars["NodeFunctionID"]["output"]>);
|
|
37
|
-
set name(value: Maybe<Scalars["String"]["output"]>);
|
|
38
|
-
addNode(node: NodeFunctionView): void;
|
|
39
|
-
updateNode(updatedNode: NodeFunctionView): void;
|
|
40
|
-
removeNode(nodeId: Scalars['NodeFunctionID']['output']): void;
|
|
41
|
-
getNodeById(nodeId: Scalars['NodeFunctionID']['output']): NodeFunctionView | undefined;
|
|
42
|
-
json(): Flow;
|
|
43
|
-
jsonInput(): FlowInput;
|
|
44
|
-
}
|
|
45
|
-
export declare class NodeFunctionView {
|
|
46
|
-
/** Time when this NodeFunction was created */
|
|
47
|
-
private readonly _createdAt?;
|
|
48
|
-
/** Global ID of this NodeFunction */
|
|
49
|
-
private readonly _id?;
|
|
50
|
-
/** The ID of the next Node Function in the flow */
|
|
51
|
-
private _nextNodeId?;
|
|
52
|
-
/** The parameters of the Node Function */
|
|
53
|
-
private readonly _parameters?;
|
|
54
|
-
/** The definition of the Node Function */
|
|
55
|
-
private readonly _functionDefinition?;
|
|
56
|
-
/** Time when this NodeFunction was last updated */
|
|
57
|
-
private readonly _updatedAt?;
|
|
58
|
-
constructor(nodeFunction: NodeFunction);
|
|
59
|
-
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
60
|
-
get id(): Maybe<Scalars["NodeFunctionID"]["output"]> | undefined;
|
|
61
|
-
get nextNodeId(): Maybe<Scalars["NodeFunctionID"]["output"]> | undefined;
|
|
62
|
-
get parameters(): NodeParameterView[] | undefined;
|
|
63
|
-
get functionDefinition(): Maybe<FunctionDefinition> | undefined;
|
|
64
|
-
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
65
|
-
set nextNodeId(value: Maybe<Scalars["NodeFunctionID"]["output"]>);
|
|
66
|
-
deleteNextNode(): void;
|
|
67
|
-
json(): NodeFunction | undefined;
|
|
68
|
-
jsonInput(): NodeFunctionInput;
|
|
69
|
-
}
|
|
70
|
-
export declare class NodeParameterView {
|
|
71
|
-
/** Time when this NodeParameter was created */
|
|
72
|
-
private readonly _createdAt?;
|
|
73
|
-
/** Global ID of this NodeParameter */
|
|
74
|
-
private readonly _id?;
|
|
75
|
-
/** The definition of the parameter */
|
|
76
|
-
private readonly _runtimeParameter?;
|
|
77
|
-
/** Time when this NodeParameter was last updated */
|
|
78
|
-
private readonly _updatedAt?;
|
|
79
|
-
/** The value of the parameter */
|
|
80
|
-
private _value?;
|
|
81
|
-
private _validationResults;
|
|
82
|
-
constructor(nodeParameter: NodeParameter);
|
|
83
|
-
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
84
|
-
get id(): Maybe<Scalars["NodeParameterID"]["output"]> | undefined;
|
|
85
|
-
get runtimeParameter(): Maybe<RuntimeParameterDefinition> | undefined;
|
|
86
|
-
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
87
|
-
get value(): LiteralValue | ReferenceValue | NodeFunctionView | undefined;
|
|
88
|
-
get validationResults(): ValidationResult[];
|
|
89
|
-
set validationResults(value: ValidationResult[]);
|
|
90
|
-
set value(value: NodeParameterValue | undefined);
|
|
91
|
-
json(): NodeParameter | undefined;
|
|
92
|
-
jsonInput(): NodeParameterInput;
|
|
93
|
-
}
|
|
94
|
-
export declare class FlowSettingView {
|
|
95
|
-
private readonly _createdAt?;
|
|
96
|
-
/** The identifier of the flow setting */
|
|
97
|
-
private readonly _flowSettingIdentifier?;
|
|
98
|
-
/** Global ID of this FlowSetting */
|
|
99
|
-
private readonly _id?;
|
|
100
|
-
/** Time when this FlowSetting was last updated */
|
|
101
|
-
private readonly _updatedAt?;
|
|
102
|
-
/** The value of the flow setting */
|
|
103
|
-
private _value?;
|
|
104
|
-
constructor(flowSetting: FlowSetting);
|
|
105
|
-
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
106
|
-
get flowSettingIdentifier(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
107
|
-
get id(): Maybe<Scalars["FlowSettingID"]["output"]> | undefined;
|
|
108
|
-
get value(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
109
|
-
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
110
|
-
set value(value: Maybe<Scalars["JSON"]["output"]>);
|
|
111
|
-
json(): FlowSetting;
|
|
112
|
-
jsonInput(): FlowSettingInput;
|
|
113
|
-
}
|
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
function e(s, t, i) {
|
|
2
|
-
return (t = r(t)) in s ? Object.defineProperty(s, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : s[t] = i, s;
|
|
3
|
-
}
|
|
4
|
-
function r(s) {
|
|
5
|
-
var t = a(s, "string");
|
|
6
|
-
return typeof t == "symbol" ? t : t + "";
|
|
7
|
-
}
|
|
8
|
-
function a(s, t) {
|
|
9
|
-
if (typeof s != "object" || !s) return s;
|
|
10
|
-
var i = s[Symbol.toPrimitive];
|
|
11
|
-
if (i !== void 0) {
|
|
12
|
-
var d = i.call(s, t);
|
|
13
|
-
if (typeof d != "object") return d;
|
|
14
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
|
-
}
|
|
16
|
-
return (t === "string" ? String : Number)(s);
|
|
17
|
-
}
|
|
18
|
-
class o {
|
|
19
|
-
constructor(t) {
|
|
20
|
-
e(this, "_createdAt", void 0), e(this, "_id", void 0), e(this, "_inputType", void 0), e(this, "_nodes", void 0), e(this, "_returnType", void 0), e(this, "_settings", void 0), e(this, "_startingNodeId", void 0), e(this, "_type", void 0), e(this, "_updatedAt", void 0), e(this, "_name", void 0), this._createdAt = t.createdAt, this._id = t.id, this._inputType = t.inputType, this._nodes = t.nodes?.nodes?.map((i) => new n(i)), this._returnType = t.returnType, this._settings = t.settings?.nodes?.map((i) => new _(i)), this._startingNodeId = t.startingNodeId, this._type = t.type, this._updatedAt = t.updatedAt, this._name = t.name;
|
|
21
|
-
}
|
|
22
|
-
get createdAt() {
|
|
23
|
-
return this._createdAt;
|
|
24
|
-
}
|
|
25
|
-
get id() {
|
|
26
|
-
return this._id;
|
|
27
|
-
}
|
|
28
|
-
get inputType() {
|
|
29
|
-
return this._inputType;
|
|
30
|
-
}
|
|
31
|
-
get nodes() {
|
|
32
|
-
return this._nodes;
|
|
33
|
-
}
|
|
34
|
-
get returnType() {
|
|
35
|
-
return this._returnType;
|
|
36
|
-
}
|
|
37
|
-
get settings() {
|
|
38
|
-
return this._settings;
|
|
39
|
-
}
|
|
40
|
-
get startingNodeId() {
|
|
41
|
-
return this._startingNodeId;
|
|
42
|
-
}
|
|
43
|
-
get type() {
|
|
44
|
-
return this._type;
|
|
45
|
-
}
|
|
46
|
-
get updatedAt() {
|
|
47
|
-
return this._updatedAt;
|
|
48
|
-
}
|
|
49
|
-
get name() {
|
|
50
|
-
return this._name;
|
|
51
|
-
}
|
|
52
|
-
set inputType(t) {
|
|
53
|
-
this._inputType = t;
|
|
54
|
-
}
|
|
55
|
-
set startingNodeId(t) {
|
|
56
|
-
this._startingNodeId = t;
|
|
57
|
-
}
|
|
58
|
-
set name(t) {
|
|
59
|
-
this._name = t;
|
|
60
|
-
}
|
|
61
|
-
addNode(t) {
|
|
62
|
-
this._nodes || (this._nodes = []), this._nodes.push(t);
|
|
63
|
-
}
|
|
64
|
-
updateNode(t) {
|
|
65
|
-
this._nodes && (this._nodes = this._nodes.map((i) => i.id === t.id ? t : i));
|
|
66
|
-
}
|
|
67
|
-
removeNode(t) {
|
|
68
|
-
this._nodes && (this._nodes = this._nodes.filter((i) => i.id !== t));
|
|
69
|
-
}
|
|
70
|
-
getNodeById(t) {
|
|
71
|
-
if (this._nodes)
|
|
72
|
-
return this._nodes.find((i) => i.id === t);
|
|
73
|
-
}
|
|
74
|
-
json() {
|
|
75
|
-
return {
|
|
76
|
-
__typename: "Flow",
|
|
77
|
-
createdAt: this._createdAt,
|
|
78
|
-
id: this._id,
|
|
79
|
-
inputType: this._inputType,
|
|
80
|
-
nodes: this._nodes ? {
|
|
81
|
-
nodes: this._nodes.map((t) => t.json())
|
|
82
|
-
} : void 0,
|
|
83
|
-
returnType: this._returnType,
|
|
84
|
-
settings: this._settings ? {
|
|
85
|
-
nodes: this._settings.map((t) => t.json())
|
|
86
|
-
} : void 0,
|
|
87
|
-
startingNodeId: this._startingNodeId,
|
|
88
|
-
type: this._type,
|
|
89
|
-
updatedAt: this._updatedAt,
|
|
90
|
-
name: this._name
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
jsonInput() {
|
|
94
|
-
return {
|
|
95
|
-
name: this._name,
|
|
96
|
-
nodes: this._nodes?.map((t) => t.jsonInput()),
|
|
97
|
-
settings: this._settings?.map((t) => t.jsonInput()),
|
|
98
|
-
startingNodeId: this._startingNodeId,
|
|
99
|
-
type: "gid://sagittarius/FlowType/1"
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
class n {
|
|
104
|
-
constructor(t) {
|
|
105
|
-
e(this, "_createdAt", void 0), e(this, "_id", void 0), e(this, "_nextNodeId", void 0), e(this, "_parameters", void 0), e(this, "_functionDefinition", void 0), e(this, "_updatedAt", void 0), this._createdAt = t.createdAt, this._id = t.id, this._nextNodeId = t.nextNodeId, this._functionDefinition = t.functionDefinition, this._updatedAt = t.updatedAt, this._parameters = t.parameters ? t.parameters.nodes?.map((i) => new u(i)) : void 0;
|
|
106
|
-
}
|
|
107
|
-
get createdAt() {
|
|
108
|
-
return this._createdAt;
|
|
109
|
-
}
|
|
110
|
-
get id() {
|
|
111
|
-
return this._id;
|
|
112
|
-
}
|
|
113
|
-
get nextNodeId() {
|
|
114
|
-
return this._nextNodeId;
|
|
115
|
-
}
|
|
116
|
-
get parameters() {
|
|
117
|
-
return this._parameters;
|
|
118
|
-
}
|
|
119
|
-
get functionDefinition() {
|
|
120
|
-
return this._functionDefinition;
|
|
121
|
-
}
|
|
122
|
-
get updatedAt() {
|
|
123
|
-
return this._updatedAt;
|
|
124
|
-
}
|
|
125
|
-
set nextNodeId(t) {
|
|
126
|
-
this._nextNodeId = t;
|
|
127
|
-
}
|
|
128
|
-
deleteNextNode() {
|
|
129
|
-
this._nextNodeId = void 0;
|
|
130
|
-
}
|
|
131
|
-
json() {
|
|
132
|
-
return {
|
|
133
|
-
__typename: "NodeFunction",
|
|
134
|
-
createdAt: this._createdAt,
|
|
135
|
-
id: this._id,
|
|
136
|
-
nextNodeId: this._nextNodeId,
|
|
137
|
-
parameters: this._parameters ? {
|
|
138
|
-
nodes: this._parameters.map((t) => t.json())
|
|
139
|
-
} : void 0,
|
|
140
|
-
functionDefinition: this._functionDefinition,
|
|
141
|
-
updatedAt: this._updatedAt
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
jsonInput() {
|
|
145
|
-
return {
|
|
146
|
-
nextNodeId: this._nextNodeId,
|
|
147
|
-
id: this._id,
|
|
148
|
-
parameters: this._parameters ? this._parameters.map((t) => t.jsonInput()) : void 0,
|
|
149
|
-
runtimeFunctionId: this._functionDefinition?.runtimeFunctionDefinition?.id
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
class u {
|
|
154
|
-
constructor(t) {
|
|
155
|
-
e(this, "_createdAt", void 0), e(this, "_id", void 0), e(this, "_runtimeParameter", void 0), e(this, "_updatedAt", void 0), e(this, "_value", void 0), e(this, "_validationResults", void 0), this._createdAt = t.createdAt, this._id = t.id, this._runtimeParameter = t.runtimeParameter, this._updatedAt = t.updatedAt, t.value?.__typename === "NodeFunction" ? this._value = new n(t.value) : this._value = t.value, this._validationResults = [];
|
|
156
|
-
}
|
|
157
|
-
get createdAt() {
|
|
158
|
-
return this._createdAt;
|
|
159
|
-
}
|
|
160
|
-
get id() {
|
|
161
|
-
return this._id;
|
|
162
|
-
}
|
|
163
|
-
get runtimeParameter() {
|
|
164
|
-
return this._runtimeParameter;
|
|
165
|
-
}
|
|
166
|
-
get updatedAt() {
|
|
167
|
-
return this._updatedAt;
|
|
168
|
-
}
|
|
169
|
-
get value() {
|
|
170
|
-
return this._value;
|
|
171
|
-
}
|
|
172
|
-
get validationResults() {
|
|
173
|
-
return this._validationResults;
|
|
174
|
-
}
|
|
175
|
-
set validationResults(t) {
|
|
176
|
-
this._validationResults = t;
|
|
177
|
-
}
|
|
178
|
-
set value(t) {
|
|
179
|
-
t?.__typename === "NodeFunction" ? this._value = new n(t) : this._value = t;
|
|
180
|
-
}
|
|
181
|
-
json() {
|
|
182
|
-
return {
|
|
183
|
-
__typename: "NodeParameter",
|
|
184
|
-
createdAt: this._createdAt,
|
|
185
|
-
id: this._id,
|
|
186
|
-
runtimeParameter: this._runtimeParameter,
|
|
187
|
-
updatedAt: this._updatedAt,
|
|
188
|
-
value: this._value instanceof n ? this._value.json() : this._value
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
jsonInput() {
|
|
192
|
-
return {
|
|
193
|
-
value: this._value instanceof n ? {
|
|
194
|
-
functionValue: this._value.jsonInput()
|
|
195
|
-
} : this._value?.__typename === "ReferenceValue" ? {
|
|
196
|
-
referenceValue: this._value
|
|
197
|
-
} : {
|
|
198
|
-
literalValue: this._value
|
|
199
|
-
},
|
|
200
|
-
runtimeParameterDefinitionId: this.runtimeParameter?.id
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
class _ {
|
|
205
|
-
constructor(t) {
|
|
206
|
-
e(this, "_createdAt", void 0), e(this, "_flowSettingIdentifier", void 0), e(this, "_id", void 0), e(this, "_updatedAt", void 0), e(this, "_value", void 0), this._createdAt = t.createdAt, this._flowSettingIdentifier = t.flowSettingIdentifier, this._id = t.id, this._value = t.value, this._updatedAt = t.updatedAt;
|
|
207
|
-
}
|
|
208
|
-
get createdAt() {
|
|
209
|
-
return this._createdAt;
|
|
210
|
-
}
|
|
211
|
-
get flowSettingIdentifier() {
|
|
212
|
-
return this._flowSettingIdentifier;
|
|
213
|
-
}
|
|
214
|
-
get id() {
|
|
215
|
-
return this._id;
|
|
216
|
-
}
|
|
217
|
-
get value() {
|
|
218
|
-
return this._value;
|
|
219
|
-
}
|
|
220
|
-
get updatedAt() {
|
|
221
|
-
return this._updatedAt;
|
|
222
|
-
}
|
|
223
|
-
set value(t) {
|
|
224
|
-
this._value = t;
|
|
225
|
-
}
|
|
226
|
-
json() {
|
|
227
|
-
return {
|
|
228
|
-
__typename: "FlowSetting",
|
|
229
|
-
createdAt: this._createdAt,
|
|
230
|
-
flowSettingIdentifier: this._flowSettingIdentifier,
|
|
231
|
-
id: this._id,
|
|
232
|
-
value: this._value,
|
|
233
|
-
updatedAt: this._updatedAt
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
jsonInput() {
|
|
237
|
-
return {
|
|
238
|
-
value: this.value,
|
|
239
|
-
flowSettingIdentifier: this.flowSettingIdentifier
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
export {
|
|
244
|
-
_ as FlowSettingView,
|
|
245
|
-
o as FlowView,
|
|
246
|
-
n as NodeFunctionView,
|
|
247
|
-
u as NodeParameterView
|
|
248
|
-
};
|