@code0-tech/pictor 0.0.0-mvp.26 → 0.0.0-mvp.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/components/badge/Badge.style.css +1 -1
- package/dist/assets/components/button/Button.style.css +1 -1
- package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
- package/dist/assets/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.style.css +1 -1
- package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +1 -0
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +1 -0
- package/dist/assets/components/d-layout/DLayout.style.css +1 -1
- package/dist/assets/components/d-resizable/DResizable.style.css +1 -1
- package/dist/assets/components/file-tabs/FileTabs.style.css +1 -1
- package/dist/assets/components/form/Input.style.css +1 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -1
- package/dist/components/avatar/Avatar.js +7 -7
- package/dist/components/badge/Badge.d.ts +1 -1
- package/dist/components/badge/Badge.js +57 -17
- package/dist/components/breadcrumb/Breadcrumb.js +5 -5
- package/dist/components/button/Button.js +8 -8
- package/dist/components/context-menu/ContextMenu.d.ts +31 -0
- package/dist/components/context-menu/ContextMenu.js +191 -0
- package/dist/components/d-application/DApplication.service.d.ts +5 -0
- package/dist/components/d-application/DApplication.service.js +9 -0
- package/dist/components/d-flow/DFlow.d.ts +5 -3
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +2 -1
- package/dist/components/d-flow/DFlow.edges.hook.js +98 -136
- package/dist/components/d-flow/DFlow.js +214 -199
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +5 -1
- package/dist/components/d-flow/DFlow.nodes.hook.js +101 -123
- package/dist/components/d-flow/DFlow.service.d.ts +12 -7
- package/dist/components/d-flow/DFlow.service.js +117 -7
- package/dist/components/d-flow/{edge/DFlowEdge.d.ts → DFlowEdge.d.ts} +5 -3
- package/dist/components/d-flow/DFlowEdge.js +69 -0
- package/dist/components/d-flow/index.d.ts +1 -10
- package/dist/components/d-flow/index.js +9 -44
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +9 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.service.js +12 -10
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +8 -2
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +71 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.js +3 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.js +4 -4
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js +3 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +246 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.d.ts +2 -3
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabDefault.d.ts +2 -3
- package/dist/components/d-flow-file/DFlowTabDefault.js +139 -0
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
- package/dist/components/d-flow-file/DFlowTabTrigger.js +75 -0
- package/dist/components/d-flow-file/DFlowTabs.d.ts +6 -0
- package/dist/components/d-flow-file/DFlowTabs.js +128 -0
- package/dist/components/d-flow-file/index.d.ts +1 -0
- package/dist/components/d-flow-file/index.js +4 -0
- package/dist/components/{d-flow/folder → d-flow-folder}/DFlowFolder.d.ts +11 -5
- package/dist/components/d-flow-folder/DFlowFolder.js +158 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +69 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +9 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +76 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +49 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +9 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.js +1 -1
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.return.hook.d.ts +2 -2
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +9 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.service.d.ts +1 -1
- package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +12 -0
- package/dist/components/d-flow-function/DFlowFunction.view.js +132 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +120 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.d.ts +13 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.js +68 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts +3 -4
- package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +48 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +71 -0
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.js +175 -165
- package/dist/components/d-flow-panel/DFlowExport.js +32 -0
- package/dist/components/d-flow-panel/DFlowMiniMap.js +33 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +6 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.js +70 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +4 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +47 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +2 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.js +94 -0
- package/dist/components/d-flow-panel/index.d.ts +5 -0
- package/dist/components/d-flow-panel/index.js +12 -0
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestion.hook.d.ts +0 -15
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +161 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +14 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +4 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +83 -0
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.js +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js +5 -5
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionSearchInput.d.ts +1 -1
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +35 -0
- package/dist/components/d-flow-suggestion/index.d.ts +1 -0
- package/dist/components/d-flow-suggestion/index.js +4 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.service.d.ts +1 -1
- package/dist/components/d-flow-type/DFlowType.service.js +12 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +6 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.js +16 -10
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +2 -0
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +18 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +22 -0
- package/dist/components/d-flow-validation/DFlowValidation.js +66 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +62 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.js +8 -0
- package/dist/components/{d-flow/validation → d-flow-validation}/index.js +2 -2
- package/dist/components/d-fullscreen/DFullScreen.js +2 -2
- package/dist/components/d-member/DNamespaceMemberList.js +5 -5
- package/dist/components/d-organization/DOrganizationList.js +7 -7
- package/dist/components/d-organization/DOrganizationMenu.js +5 -5
- package/dist/components/d-organization/DOrganizatonContent.js +22 -22
- package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
- package/dist/components/d-project/DNamespaceProjectList.js +5 -5
- package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
- package/dist/components/d-resizable/DResizable.js +18 -17
- package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
- package/dist/components/d-runtime/DRuntimeList.js +7 -7
- package/dist/components/d-user/DUser.session.hook.js +2 -2
- package/dist/components/d-user/DUserContent.js +13 -13
- package/dist/components/d-user/DUserInput.js +9 -9
- package/dist/components/d-user/DUserList.js +9 -9
- package/dist/components/file-tabs/FileTabs.js +2 -2
- package/dist/components/file-tabs/FileTabs.service.d.ts +5 -0
- package/dist/components/file-tabs/FileTabs.service.js +68 -16
- package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
- package/dist/components/form/CheckboxInput.js +4 -4
- package/dist/components/form/EmailInput.js +12 -12
- package/dist/components/form/Input.js +220 -206
- package/dist/components/form/Input.selection.hook.js +9 -9
- package/dist/components/form/Input.syntax.hook.js +7 -7
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +6 -6
- package/dist/components/form/SwitchInput.js +7 -7
- package/dist/components/form/TextInput.js +10 -10
- package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
- package/dist/components/segmented-control/SegmentedControl.js +14 -12
- package/dist/index.d.ts +8 -0
- package/dist/index.js +117 -117
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/dist/utils/generics.d.ts +5 -6
- package/dist/utils/generics.js +2 -2
- package/dist/utils/objectStore.js +15 -15
- package/dist/utils/reactiveArrayService.js +5 -5
- package/package.json +7 -4
- package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +0 -1
- package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +0 -1
- package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +0 -1
- package/dist/components/d-flow/DFlow.view.d.ts +0 -113
- package/dist/components/d-flow/DFlow.view.js +0 -248
- package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
- package/dist/components/d-flow/control/DFlowControl.js +0 -81
- package/dist/components/d-flow/control/index.d.ts +0 -1
- package/dist/components/d-flow/control/index.js +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -20
- package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -243
- package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
- package/dist/components/d-flow/export/DFlowExport.js +0 -24
- package/dist/components/d-flow/folder/DFlowFolder.js +0 -119
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
- package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -74
- package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
- package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -93
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -22
- package/dist/components/d-flow/minimap/index.d.ts +0 -1
- package/dist/components/d-flow/minimap/index.js +0 -4
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -150
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -35
- package/dist/components/d-flow/suggestion/index.d.ts +0 -2
- package/dist/components/d-flow/suggestion/index.js +0 -7
- package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -103
- package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
- package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
- package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
- package/dist/components/d-flow/type/DFlowType.service.js +0 -9
- package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
- package/dist/components/d-flow/validation/DFlowValidation.js +0 -60
- /package/dist/assets/components/{d-flow/input → d-flow-input}/DFlowInputDataType.style.css +0 -0
- /package/dist/assets/components/{d-flow/validation → d-flow-validation}/DFlowValidation.style.css +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.js +0 -0
- /package/dist/components/{d-flow/folder → d-flow-folder}/index.d.ts +0 -0
- /package/dist/components/{d-flow/folder → d-flow-folder}/index.js +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
- /package/dist/components/{d-flow/export → d-flow-panel}/DFlowExport.d.ts +0 -0
- /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +0 -0
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as k } from "react/jsx-runtime";
|
|
2
|
-
import { c as j } from "../../../_virtual/compiler-runtime.js";
|
|
3
|
-
import { useViewport as D, useReactFlow as M, Panel as O } from "@xyflow/react";
|
|
4
|
-
import { ButtonGroup as R } from "../../button-group/ButtonGroup.js";
|
|
5
|
-
import { Button as B } from "../../button/Button.js";
|
|
6
|
-
import { IconPlus as V, IconMinus as E, IconFocusCentered as G } from "@tabler/icons-react";
|
|
7
|
-
import { Badge as Z } from "../../badge/Badge.js";
|
|
8
|
-
import { Flex as P } from "../../flex/Flex.js";
|
|
9
|
-
const Q = () => {
|
|
10
|
-
const e = j.c(37), w = D(), t = M();
|
|
11
|
-
let p;
|
|
12
|
-
e[0] !== t ? (p = () => {
|
|
13
|
-
t.zoomIn();
|
|
14
|
-
}, e[0] = t, e[1] = p) : p = e[1];
|
|
15
|
-
const C = p;
|
|
16
|
-
let d;
|
|
17
|
-
e[2] !== t ? (d = () => {
|
|
18
|
-
t.zoomOut();
|
|
19
|
-
}, e[2] = t, e[3] = d) : d = e[3];
|
|
20
|
-
const I = d;
|
|
21
|
-
let y;
|
|
22
|
-
e[4] !== t ? (y = () => {
|
|
23
|
-
t.fitView();
|
|
24
|
-
}, e[4] = t, e[5] = y) : y = e[5];
|
|
25
|
-
const F = y;
|
|
26
|
-
let h;
|
|
27
|
-
e[6] !== w.zoom ? (h = () => Math.round(w.zoom * 100), e[6] = w.zoom, e[7] = h) : h = e[7];
|
|
28
|
-
const v = h;
|
|
29
|
-
let u;
|
|
30
|
-
e[8] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
31
|
-
flexDirection: "column",
|
|
32
|
-
gap: "1rem"
|
|
33
|
-
}, e[8] = u) : u = e[8];
|
|
34
|
-
let z;
|
|
35
|
-
e[9] === Symbol.for("react.memo_cache_sentinel") ? (z = {
|
|
36
|
-
gap: ".7rem"
|
|
37
|
-
}, e[9] = z) : z = e[9];
|
|
38
|
-
let l;
|
|
39
|
-
e[10] !== C ? (l = () => C(), e[10] = C, e[11] = l) : l = e[11];
|
|
40
|
-
let x;
|
|
41
|
-
e[12] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ o(V, { size: 15 }), e[12] = x) : x = e[12];
|
|
42
|
-
let n;
|
|
43
|
-
e[13] !== l ? (n = /* @__PURE__ */ o(B, { py: "0", paddingSize: "xxs", variant: "none", color: "secondary", onClick: l, children: x }), e[13] = l, e[14] = n) : n = e[14];
|
|
44
|
-
let i;
|
|
45
|
-
e[15] !== I ? (i = () => I(), e[15] = I, e[16] = i) : i = e[16];
|
|
46
|
-
let _;
|
|
47
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ o(E, { size: 15 }), e[17] = _) : _ = e[17];
|
|
48
|
-
let r;
|
|
49
|
-
e[18] !== i ? (r = /* @__PURE__ */ o(B, { py: "0", paddingSize: "xxs", variant: "none", color: "secondary", onClick: i, children: _ }), e[18] = i, e[19] = r) : r = e[19];
|
|
50
|
-
let c;
|
|
51
|
-
e[20] !== F ? (c = () => F(), e[20] = F, e[21] = c) : c = e[21];
|
|
52
|
-
let S;
|
|
53
|
-
e[22] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ o(G, { size: 15 }), e[22] = S) : S = e[22];
|
|
54
|
-
let s;
|
|
55
|
-
e[23] !== c ? (s = /* @__PURE__ */ o(B, { py: "0", paddingSize: "xxs", variant: "none", color: "secondary", onClick: c, children: S }), e[23] = c, e[24] = s) : s = e[24];
|
|
56
|
-
let m;
|
|
57
|
-
e[25] !== r || e[26] !== s || e[27] !== n ? (m = /* @__PURE__ */ k(R, { children: [
|
|
58
|
-
n,
|
|
59
|
-
r,
|
|
60
|
-
s
|
|
61
|
-
] }), e[25] = r, e[26] = s, e[27] = n, e[28] = m) : m = e[28];
|
|
62
|
-
let b;
|
|
63
|
-
e[29] === Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
64
|
-
border: "none"
|
|
65
|
-
}, e[29] = b) : b = e[29];
|
|
66
|
-
let f;
|
|
67
|
-
e[30] !== v ? (f = v(), e[30] = v, e[31] = f) : f = e[31];
|
|
68
|
-
let a;
|
|
69
|
-
e[32] !== f ? (a = /* @__PURE__ */ k(Z, { color: "primary", style: b, children: [
|
|
70
|
-
f,
|
|
71
|
-
"%"
|
|
72
|
-
] }), e[32] = f, e[33] = a) : a = e[33];
|
|
73
|
-
let g;
|
|
74
|
-
return e[34] !== m || e[35] !== a ? (g = /* @__PURE__ */ o(O, { position: "bottom-left", children: /* @__PURE__ */ o(P, { style: u, children: /* @__PURE__ */ k(P, { align: "center", style: z, children: [
|
|
75
|
-
m,
|
|
76
|
-
a
|
|
77
|
-
] }) }) }), e[34] = m, e[35] = a, e[36] = g) : g = e[36], g;
|
|
78
|
-
};
|
|
79
|
-
export {
|
|
80
|
-
Q as DFlowControl
|
|
81
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './DFlowControl';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactiveArrayService } from '../../../utils/reactiveArrayService';
|
|
2
|
-
import { DataTypeView } from './DFlowDataType.view';
|
|
3
|
-
import { DataTypeIdentifier, Maybe, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
import { FlowView } from '../DFlow.view';
|
|
5
|
-
export declare abstract class DFlowDataTypeReactiveService extends ReactiveArrayService<DataTypeView> {
|
|
6
|
-
getDataType(type: DataTypeIdentifier): DataTypeView | undefined;
|
|
7
|
-
getDataTypeFromValue(value: NodeParameterValue, flow?: FlowView): DataTypeView | undefined;
|
|
8
|
-
getTypeFromValue(value: NodeParameterValue, flow?: FlowView): Maybe<DataTypeIdentifier> | undefined;
|
|
9
|
-
hasDataTypes(types: DataTypeIdentifier[]): boolean;
|
|
10
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const g = ["id", "__typename", "createdAt", "updatedAt"], h = (c, u) => {
|
|
2
|
-
if (c.variant !== u.variant) return !1;
|
|
3
|
-
const l = (r) => r !== null && typeof r == "object", i = (r, e) => {
|
|
4
|
-
if (r === e) return !0;
|
|
5
|
-
const y = Array.isArray(r), a = Array.isArray(e);
|
|
6
|
-
if (y || a)
|
|
7
|
-
return !y || !a || r.length !== e.length ? !1 : r.every((s, f) => i(s, e[f]));
|
|
8
|
-
if (l(r) && l(e)) {
|
|
9
|
-
const s = Object.keys(r), f = Object.keys(e);
|
|
10
|
-
return s.length !== f.length ? !1 : s.every((o) => g.includes(o) ? !0 : i(r[o], e[o]));
|
|
11
|
-
}
|
|
12
|
-
return !1;
|
|
13
|
-
}, t = c.rules?.nodes ?? [], n = u.rules?.nodes ?? [];
|
|
14
|
-
return !t.length && !n.length ? !0 : !t.length || !n.length || t.length !== n.length ? !1 : t.every((r, e) => i(r, n[e]));
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
h as useValidateDataType
|
|
18
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
import { DataTypeView } from './DFlowDataType.view';
|
|
3
|
-
import { FlowView } from '../DFlow.view';
|
|
4
|
-
export declare const useValidateValue: (value: NodeParameterValue, dataType: DataTypeView, flow?: FlowView, generics?: GenericMapper[]) => boolean;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { c } from "../../../_virtual/compiler-runtime.js";
|
|
2
|
-
import { RuleMap as m } from "./rules/DFlowDataTypeRules.js";
|
|
3
|
-
import { useService as f } from "../../../utils/contextStore.js";
|
|
4
|
-
import { DFlowDataTypeReactiveService as u } from "./DFlowDataType.service.js";
|
|
5
|
-
const g = (e, i, n, a) => {
|
|
6
|
-
const t = c.c(6), s = f(u);
|
|
7
|
-
let o;
|
|
8
|
-
if (t[0] !== i.rules?.nodes || t[1] !== s || t[2] !== n || t[3] !== a || t[4] !== e) {
|
|
9
|
-
const p = new Map(a?.map(v));
|
|
10
|
-
o = i.rules?.nodes?.every((r) => !r || !r.variant || !r.config ? !1 : m.get(r.variant) ? m.get(r.variant)?.validate(e, r.config, p, s, n) : !0) ?? !0, t[0] = i.rules?.nodes, t[1] = s, t[2] = n, t[3] = a, t[4] = e, t[5] = o;
|
|
11
|
-
} else
|
|
12
|
-
o = t[5];
|
|
13
|
-
return o;
|
|
14
|
-
};
|
|
15
|
-
function v(e) {
|
|
16
|
-
return [e.target, e];
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
g as useValidateValue
|
|
20
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
function i(e, t, r) {
|
|
2
|
-
return (t = s(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
3
|
-
}
|
|
4
|
-
function s(e) {
|
|
5
|
-
var t = u(e, "string");
|
|
6
|
-
return typeof t == "symbol" ? t : t + "";
|
|
7
|
-
}
|
|
8
|
-
function u(e, t) {
|
|
9
|
-
if (typeof e != "object" || !e) return e;
|
|
10
|
-
var r = e[Symbol.toPrimitive];
|
|
11
|
-
if (r !== void 0) {
|
|
12
|
-
var n = r.call(e, t);
|
|
13
|
-
if (typeof n != "object") return n;
|
|
14
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
|
-
}
|
|
16
|
-
return (t === "string" ? String : Number)(e);
|
|
17
|
-
}
|
|
18
|
-
class d {
|
|
19
|
-
constructor(t) {
|
|
20
|
-
i(this, "_createdAt", void 0), i(this, "_genericKeys", void 0), i(this, "_id", void 0), i(this, "_identifier", void 0), i(this, "_name", void 0), i(this, "_runtime", void 0), i(this, "_rules", void 0), i(this, "_updatedAt", void 0), i(this, "_variant", void 0), this._id = t.id, this._createdAt = t.createdAt, this._updatedAt = t.updatedAt, this._identifier = t.identifier, this._name = t.name ?? void 0, this._runtime = t.runtime ?? void 0, this._variant = t.variant, this._genericKeys = t.genericKeys ?? void 0, this._rules = t.rules ?? void 0;
|
|
21
|
-
}
|
|
22
|
-
get createdAt() {
|
|
23
|
-
return this._createdAt;
|
|
24
|
-
}
|
|
25
|
-
get genericKeys() {
|
|
26
|
-
return this._genericKeys;
|
|
27
|
-
}
|
|
28
|
-
get id() {
|
|
29
|
-
return this._id;
|
|
30
|
-
}
|
|
31
|
-
get identifier() {
|
|
32
|
-
return this._identifier;
|
|
33
|
-
}
|
|
34
|
-
get name() {
|
|
35
|
-
return this._name;
|
|
36
|
-
}
|
|
37
|
-
get runtime() {
|
|
38
|
-
return this._runtime;
|
|
39
|
-
}
|
|
40
|
-
get rules() {
|
|
41
|
-
return this._rules;
|
|
42
|
-
}
|
|
43
|
-
get updatedAt() {
|
|
44
|
-
return this._updatedAt;
|
|
45
|
-
}
|
|
46
|
-
get variant() {
|
|
47
|
-
return this._variant;
|
|
48
|
-
}
|
|
49
|
-
get json() {
|
|
50
|
-
return {
|
|
51
|
-
id: this._id,
|
|
52
|
-
createdAt: this._createdAt,
|
|
53
|
-
updatedAt: this._updatedAt,
|
|
54
|
-
identifier: this._identifier,
|
|
55
|
-
name: this._name,
|
|
56
|
-
runtime: this._runtime,
|
|
57
|
-
variant: this._variant,
|
|
58
|
-
genericKeys: this._genericKeys,
|
|
59
|
-
rules: this._rules
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
export {
|
|
64
|
-
d as DataTypeView
|
|
65
|
-
};
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import { genericMapping as I, staticImplements as A } from "./DFlowDataTypeRule.js";
|
|
2
|
-
import { useValidateDataType as T } from "../DFlowDataType.validation.type.js";
|
|
3
|
-
import { useValidateValue as v } from "../DFlowDataType.validation.value.js";
|
|
4
|
-
function P(t, e, r, n) {
|
|
5
|
-
var i = k(), a = e(function(s) {
|
|
6
|
-
i.initializeInstanceElements(s, o.elements);
|
|
7
|
-
}, r), o = i.decorateClass(x(a.d.map(_)), t);
|
|
8
|
-
return i.initializeClassElements(a.F, o.elements), i.runClassFinishers(a.F, o.finishers);
|
|
9
|
-
}
|
|
10
|
-
function k() {
|
|
11
|
-
k = function() {
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
var t = { elementsDefinitionOrder: [["method"], ["field"]], initializeInstanceElements: function(e, r) {
|
|
15
|
-
["method", "field"].forEach(function(n) {
|
|
16
|
-
r.forEach(function(i) {
|
|
17
|
-
i.kind === n && i.placement === "own" && this.defineClassElement(e, i);
|
|
18
|
-
}, this);
|
|
19
|
-
}, this);
|
|
20
|
-
}, initializeClassElements: function(e, r) {
|
|
21
|
-
var n = e.prototype;
|
|
22
|
-
["method", "field"].forEach(function(i) {
|
|
23
|
-
r.forEach(function(a) {
|
|
24
|
-
var o = a.placement;
|
|
25
|
-
if (a.kind === i && (o === "static" || o === "prototype")) {
|
|
26
|
-
var s = o === "static" ? e : n;
|
|
27
|
-
this.defineClassElement(s, a);
|
|
28
|
-
}
|
|
29
|
-
}, this);
|
|
30
|
-
}, this);
|
|
31
|
-
}, defineClassElement: function(e, r) {
|
|
32
|
-
var n = r.descriptor;
|
|
33
|
-
if (r.kind === "field") {
|
|
34
|
-
var i = r.initializer;
|
|
35
|
-
n = { enumerable: n.enumerable, writable: n.writable, configurable: n.configurable, value: i === void 0 ? void 0 : i.call(e) };
|
|
36
|
-
}
|
|
37
|
-
Object.defineProperty(e, r.key, n);
|
|
38
|
-
}, decorateClass: function(e, r) {
|
|
39
|
-
var n = [], i = [], a = { static: [], prototype: [], own: [] };
|
|
40
|
-
if (e.forEach(function(s) {
|
|
41
|
-
this.addElementPlacement(s, a);
|
|
42
|
-
}, this), e.forEach(function(s) {
|
|
43
|
-
if (!y(s)) return n.push(s);
|
|
44
|
-
var l = this.decorateElement(s, a);
|
|
45
|
-
n.push(l.element), n.push.apply(n, l.extras), i.push.apply(i, l.finishers);
|
|
46
|
-
}, this), !r) return { elements: n, finishers: i };
|
|
47
|
-
var o = this.decorateConstructor(n, r);
|
|
48
|
-
return i.push.apply(i, o.finishers), o.finishers = i, o;
|
|
49
|
-
}, addElementPlacement: function(e, r, n) {
|
|
50
|
-
var i = r[e.placement];
|
|
51
|
-
if (!n && i.indexOf(e.key) !== -1) throw new TypeError("Duplicated element (" + e.key + ")");
|
|
52
|
-
i.push(e.key);
|
|
53
|
-
}, decorateElement: function(e, r) {
|
|
54
|
-
for (var n = [], i = [], a = e.decorators, o = a.length - 1; o >= 0; o--) {
|
|
55
|
-
var s = r[e.placement];
|
|
56
|
-
s.splice(s.indexOf(e.key), 1);
|
|
57
|
-
var l = this.fromElementDescriptor(e), p = this.toElementFinisherExtras((0, a[o])(l) || l);
|
|
58
|
-
e = p.element, this.addElementPlacement(e, r), p.finisher && i.push(p.finisher);
|
|
59
|
-
var c = p.extras;
|
|
60
|
-
if (c) {
|
|
61
|
-
for (var d = 0; d < c.length; d++) this.addElementPlacement(c[d], r);
|
|
62
|
-
n.push.apply(n, c);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return { element: e, finishers: i, extras: n };
|
|
66
|
-
}, decorateConstructor: function(e, r) {
|
|
67
|
-
for (var n = [], i = r.length - 1; i >= 0; i--) {
|
|
68
|
-
var a = this.fromClassDescriptor(e), o = this.toClassDescriptor((0, r[i])(a) || a);
|
|
69
|
-
if (o.finisher !== void 0 && n.push(o.finisher), o.elements !== void 0) {
|
|
70
|
-
e = o.elements;
|
|
71
|
-
for (var s = 0; s < e.length - 1; s++) for (var l = s + 1; l < e.length; l++) if (e[s].key === e[l].key && e[s].placement === e[l].placement) throw new TypeError("Duplicated element (" + e[s].key + ")");
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return { elements: e, finishers: n };
|
|
75
|
-
}, fromElementDescriptor: function(e) {
|
|
76
|
-
var r = { kind: e.kind, key: e.key, placement: e.placement, descriptor: e.descriptor };
|
|
77
|
-
return Object.defineProperty(r, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), e.kind === "field" && (r.initializer = e.initializer), r;
|
|
78
|
-
}, toElementDescriptors: function(e) {
|
|
79
|
-
if (e !== void 0) return R(e).map(function(r) {
|
|
80
|
-
var n = this.toElementDescriptor(r);
|
|
81
|
-
return this.disallowProperty(r, "finisher", "An element descriptor"), this.disallowProperty(r, "extras", "An element descriptor"), n;
|
|
82
|
-
}, this);
|
|
83
|
-
}, toElementDescriptor: function(e) {
|
|
84
|
-
var r = e.kind + "";
|
|
85
|
-
if (r !== "method" && r !== "field") throw new TypeError(`An element descriptor's .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "` + r + '"');
|
|
86
|
-
var n = E(e.key), i = e.placement + "";
|
|
87
|
-
if (i !== "static" && i !== "prototype" && i !== "own") throw new TypeError(`An element descriptor's .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "` + i + '"');
|
|
88
|
-
var a = e.descriptor;
|
|
89
|
-
this.disallowProperty(e, "elements", "An element descriptor");
|
|
90
|
-
var o = { kind: r, key: n, placement: i, descriptor: Object.assign({}, a) };
|
|
91
|
-
return r !== "field" ? this.disallowProperty(e, "initializer", "A method descriptor") : (this.disallowProperty(a, "get", "The property descriptor of a field descriptor"), this.disallowProperty(a, "set", "The property descriptor of a field descriptor"), this.disallowProperty(a, "value", "The property descriptor of a field descriptor"), o.initializer = e.initializer), o;
|
|
92
|
-
}, toElementFinisherExtras: function(e) {
|
|
93
|
-
return { element: this.toElementDescriptor(e), finisher: b(e, "finisher"), extras: this.toElementDescriptors(e.extras) };
|
|
94
|
-
}, fromClassDescriptor: function(e) {
|
|
95
|
-
var r = { kind: "class", elements: e.map(this.fromElementDescriptor, this) };
|
|
96
|
-
return Object.defineProperty(r, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), r;
|
|
97
|
-
}, toClassDescriptor: function(e) {
|
|
98
|
-
var r = e.kind + "";
|
|
99
|
-
if (r !== "class") throw new TypeError(`A class descriptor's .kind property must be "class", but a decorator created a class descriptor with .kind "` + r + '"');
|
|
100
|
-
this.disallowProperty(e, "key", "A class descriptor"), this.disallowProperty(e, "placement", "A class descriptor"), this.disallowProperty(e, "descriptor", "A class descriptor"), this.disallowProperty(e, "initializer", "A class descriptor"), this.disallowProperty(e, "extras", "A class descriptor");
|
|
101
|
-
var n = b(e, "finisher");
|
|
102
|
-
return { elements: this.toElementDescriptors(e.elements), finisher: n };
|
|
103
|
-
}, runClassFinishers: function(e, r) {
|
|
104
|
-
for (var n = 0; n < r.length; n++) {
|
|
105
|
-
var i = (0, r[n])(e);
|
|
106
|
-
if (i !== void 0) {
|
|
107
|
-
if (typeof i != "function") throw new TypeError("Finishers must return a constructor.");
|
|
108
|
-
e = i;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
return e;
|
|
112
|
-
}, disallowProperty: function(e, r, n) {
|
|
113
|
-
if (e[r] !== void 0) throw new TypeError(n + " can't have a ." + r + " property.");
|
|
114
|
-
} };
|
|
115
|
-
return t;
|
|
116
|
-
}
|
|
117
|
-
function _(t) {
|
|
118
|
-
var e, r = E(t.key);
|
|
119
|
-
t.kind === "method" ? e = { value: t.value, writable: !0, configurable: !0, enumerable: !1 } : t.kind === "get" ? e = { get: t.value, configurable: !0, enumerable: !1 } : t.kind === "set" ? e = { set: t.value, configurable: !0, enumerable: !1 } : t.kind === "field" && (e = { configurable: !0, writable: !0, enumerable: !0 });
|
|
120
|
-
var n = { kind: t.kind === "field" ? "field" : "method", key: r, placement: t.static ? "static" : t.kind === "field" ? "own" : "prototype", descriptor: e };
|
|
121
|
-
return t.decorators && (n.decorators = t.decorators), t.kind === "field" && (n.initializer = t.value), n;
|
|
122
|
-
}
|
|
123
|
-
function C(t, e) {
|
|
124
|
-
t.descriptor.get !== void 0 ? e.descriptor.get = t.descriptor.get : e.descriptor.set = t.descriptor.set;
|
|
125
|
-
}
|
|
126
|
-
function x(t) {
|
|
127
|
-
for (var e = [], r = function(o) {
|
|
128
|
-
return o.kind === "method" && o.key === a.key && o.placement === a.placement;
|
|
129
|
-
}, n = 0; n < t.length; n++) {
|
|
130
|
-
var i, a = t[n];
|
|
131
|
-
if (a.kind === "method" && (i = e.find(r)))
|
|
132
|
-
if (g(a.descriptor) || g(i.descriptor)) {
|
|
133
|
-
if (y(a) || y(i)) throw new ReferenceError("Duplicated methods (" + a.key + ") can't be decorated.");
|
|
134
|
-
i.descriptor = a.descriptor;
|
|
135
|
-
} else {
|
|
136
|
-
if (y(a)) {
|
|
137
|
-
if (y(i)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + a.key + ").");
|
|
138
|
-
i.decorators = a.decorators;
|
|
139
|
-
}
|
|
140
|
-
C(a, i);
|
|
141
|
-
}
|
|
142
|
-
else e.push(a);
|
|
143
|
-
}
|
|
144
|
-
return e;
|
|
145
|
-
}
|
|
146
|
-
function y(t) {
|
|
147
|
-
return t.decorators && t.decorators.length;
|
|
148
|
-
}
|
|
149
|
-
function g(t) {
|
|
150
|
-
return t !== void 0 && !(t.value === void 0 && t.writable === void 0);
|
|
151
|
-
}
|
|
152
|
-
function b(t, e) {
|
|
153
|
-
var r = t[e];
|
|
154
|
-
if (r !== void 0 && typeof r != "function") throw new TypeError("Expected '" + e + "' to be a function");
|
|
155
|
-
return r;
|
|
156
|
-
}
|
|
157
|
-
function E(t) {
|
|
158
|
-
var e = F(t, "string");
|
|
159
|
-
return typeof e == "symbol" ? e : e + "";
|
|
160
|
-
}
|
|
161
|
-
function F(t, e) {
|
|
162
|
-
if (typeof t != "object" || !t) return t;
|
|
163
|
-
var r = t[Symbol.toPrimitive];
|
|
164
|
-
if (r !== void 0) {
|
|
165
|
-
var n = r.call(t, e);
|
|
166
|
-
if (typeof n != "object") return n;
|
|
167
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
168
|
-
}
|
|
169
|
-
return (e === "string" ? String : Number)(t);
|
|
170
|
-
}
|
|
171
|
-
function R(t) {
|
|
172
|
-
return j(t) || O(t) || z(t) || S();
|
|
173
|
-
}
|
|
174
|
-
function S() {
|
|
175
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
176
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
177
|
-
}
|
|
178
|
-
function z(t, e) {
|
|
179
|
-
if (t) {
|
|
180
|
-
if (typeof t == "string") return w(t, e);
|
|
181
|
-
var r = {}.toString.call(t).slice(8, -1);
|
|
182
|
-
return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? w(t, e) : void 0;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
function w(t, e) {
|
|
186
|
-
(e == null || e > t.length) && (e = t.length);
|
|
187
|
-
for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
|
|
188
|
-
return n;
|
|
189
|
-
}
|
|
190
|
-
function O(t) {
|
|
191
|
-
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
192
|
-
}
|
|
193
|
-
function j(t) {
|
|
194
|
-
if (Array.isArray(t)) return t;
|
|
195
|
-
}
|
|
196
|
-
let B = P([A()], function(t) {
|
|
197
|
-
class e {
|
|
198
|
-
constructor() {
|
|
199
|
-
t(this);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
return {
|
|
203
|
-
F: e,
|
|
204
|
-
d: [{
|
|
205
|
-
kind: "method",
|
|
206
|
-
static: !0,
|
|
207
|
-
key: "validate",
|
|
208
|
-
value: function(n, i, a, o, s) {
|
|
209
|
-
const l = a?.get(i?.dataTypeIdentifier?.genericKey), p = a?.get(i?.dataTypeIdentifier?.genericKey)?.sourceDataTypeIdentifiers, c = a?.get(i?.dataTypeIdentifier?.genericKey)?.genericCombinationStrategies;
|
|
210
|
-
if (n.__typename != "NodeFunction") return !1;
|
|
211
|
-
const d = D(n, s);
|
|
212
|
-
if (!d) return !1;
|
|
213
|
-
if (i?.dataTypeIdentifier?.genericKey && !l && !o?.getDataType(i.dataTypeIdentifier)) return !0;
|
|
214
|
-
if (!(o?.getDataType(i.dataTypeIdentifier) || l) || l && !o?.hasDataTypes(p) || l && (c?.length ?? 0) + 1 != p.length) return !1;
|
|
215
|
-
if (d?.parameters?.nodes[0]?.value.__typename === "ReferenceValue") {
|
|
216
|
-
if (i?.dataTypeIdentifier?.genericKey && l && p) {
|
|
217
|
-
const u = p.map((f) => T(o?.getDataType(f), o?.getDataType((d?.parameters?.nodes[0]?.value).dataTypeIdentifier)));
|
|
218
|
-
return u.length > 1 ? u.reduce((f, m, h) => c && c[h - 1].type == "OR" ? f || m : f && m) : u[0];
|
|
219
|
-
}
|
|
220
|
-
if (i?.dataTypeIdentifier?.dataType)
|
|
221
|
-
return T(o?.getDataType(i.dataTypeIdentifier), o?.getDataType(d?.parameters?.nodes[0]?.value?.dataTypeIdentifier));
|
|
222
|
-
} else if (d?.parameters?.nodes[0]?.value?.__typename != "NodeFunction") {
|
|
223
|
-
if (i?.dataTypeIdentifier?.genericKey && l && p) {
|
|
224
|
-
const u = p.map((f) => v(d?.parameters?.nodes[0]?.value, o?.getDataType(f), s, f.genericType.genericMappers));
|
|
225
|
-
return u.length > 1 ? u.reduce((f, m, h) => c && c[h - 1].type == "OR" ? f || m : f && m) : u[0];
|
|
226
|
-
}
|
|
227
|
-
return i?.dataTypeIdentifier?.dataType ? v(d?.parameters?.nodes[0]?.value, o?.getDataType(i.dataTypeIdentifier)) : v(d?.parameters?.nodes[0]?.value, o?.getDataType(i.dataTypeIdentifier), s, I(i.dataTypeIdentifier?.genericType?.genericMappers, a));
|
|
228
|
-
}
|
|
229
|
-
return !1;
|
|
230
|
-
}
|
|
231
|
-
}]
|
|
232
|
-
};
|
|
233
|
-
});
|
|
234
|
-
const D = (t, e) => {
|
|
235
|
-
if (t.functionDefinition?.runtimeFunctionDefinition?.identifier === "RETURN") return t;
|
|
236
|
-
if (e.getNodeById(t.nextNodeId)) {
|
|
237
|
-
const r = D(e.getNodeById(t.nextNodeId).json(), e);
|
|
238
|
-
if (r) return r;
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
export {
|
|
242
|
-
B as DFlowDataTypeReturnTypeRule
|
|
243
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { jsx as c, jsxs as Y, Fragment as B } from "react/jsx-runtime";
|
|
2
|
-
import { c as S } from "../../../_virtual/compiler-runtime.js";
|
|
3
|
-
import { Position as m, getSmoothStepPath as X, EdgeLabelRenderer as $, BaseEdge as j } from "@xyflow/react";
|
|
4
|
-
import { memo as v } from "react";
|
|
5
|
-
import { Badge as y } from "../../badge/Badge.js";
|
|
6
|
-
const D = v((r) => {
|
|
7
|
-
const e = S.c(21), {
|
|
8
|
-
sourceX: d,
|
|
9
|
-
sourceY: g,
|
|
10
|
-
targetX: f,
|
|
11
|
-
targetY: s,
|
|
12
|
-
id: b,
|
|
13
|
-
data: i
|
|
14
|
-
} = r, h = i?.isParameter ? m.Left : m.Bottom, u = i?.isParameter ? m.Right : m.Top, p = (i?.isSuggestion, s - 37.5);
|
|
15
|
-
let a;
|
|
16
|
-
e[0] !== d || e[1] !== g || e[2] !== h || e[3] !== u || e[4] !== p || e[5] !== f || e[6] !== s ? (a = X({
|
|
17
|
-
sourceX: d,
|
|
18
|
-
sourceY: g,
|
|
19
|
-
sourcePosition: h,
|
|
20
|
-
targetX: f,
|
|
21
|
-
targetY: s,
|
|
22
|
-
targetPosition: u,
|
|
23
|
-
borderRadius: 16,
|
|
24
|
-
centerY: p
|
|
25
|
-
}), e[0] = d, e[1] = g, e[2] = h, e[3] = u, e[4] = p, e[5] = f, e[6] = s, e[7] = a) : a = e[7];
|
|
26
|
-
const [x, P, E] = a, R = i?.color;
|
|
27
|
-
let t;
|
|
28
|
-
e[8] !== R ? (t = {
|
|
29
|
-
stroke: R
|
|
30
|
-
}, e[8] = R, e[9] = t) : t = e[9];
|
|
31
|
-
let o;
|
|
32
|
-
e[10] !== x || e[11] !== b || e[12] !== t ? (o = /* @__PURE__ */ c(j, { id: b, path: x, style: t }), e[10] = x, e[11] = b, e[12] = t, e[13] = o) : o = e[13];
|
|
33
|
-
let l;
|
|
34
|
-
e[14] !== P || e[15] !== E || e[16] !== r.label ? (l = r.label ? /* @__PURE__ */ c($, { children: /* @__PURE__ */ c("div", { style: {
|
|
35
|
-
position: "absolute",
|
|
36
|
-
transform: `translate(-50%, -50%) translate(${P}px, ${E}px)`,
|
|
37
|
-
pointerEvents: "all",
|
|
38
|
-
zIndex: 100
|
|
39
|
-
}, children: /* @__PURE__ */ c(y, { children: r.label }) }) }) : null, e[14] = P, e[15] = E, e[16] = r.label, e[17] = l) : l = e[17];
|
|
40
|
-
let n;
|
|
41
|
-
return e[18] !== o || e[19] !== l ? (n = /* @__PURE__ */ Y(B, { children: [
|
|
42
|
-
o,
|
|
43
|
-
l
|
|
44
|
-
] }), e[18] = o, e[19] = l, e[20] = n) : n = e[20], n;
|
|
45
|
-
});
|
|
46
|
-
export {
|
|
47
|
-
D as DFlowEdge
|
|
48
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import i from "react";
|
|
3
|
-
import { Panel as u } from "@xyflow/react";
|
|
4
|
-
import { useService as w, useStore as b } from "../../../utils/contextStore.js";
|
|
5
|
-
import "merge-props";
|
|
6
|
-
import { DFlowReactiveService as l } from "../DFlow.service.js";
|
|
7
|
-
import { Button as j } from "../../button/Button.js";
|
|
8
|
-
const k = (s) => {
|
|
9
|
-
const {
|
|
10
|
-
flowId: r
|
|
11
|
-
} = s, p = w(l), m = b(l), t = i.useMemo(() => p.getById(r), [m, r]), a = i.useCallback(() => {
|
|
12
|
-
if (!t) return;
|
|
13
|
-
const e = t.jsonInput?.();
|
|
14
|
-
if (!e) return;
|
|
15
|
-
const f = typeof e == "string" ? e : JSON.stringify(e, null, 2), d = new Blob([f], {
|
|
16
|
-
type: "application/json"
|
|
17
|
-
}), n = URL.createObjectURL(d), o = document.createElement("a");
|
|
18
|
-
o.href = n, o.download = `flow-${t.name}.json`, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(n);
|
|
19
|
-
}, [t]);
|
|
20
|
-
return /* @__PURE__ */ c(u, { position: "top-right", children: /* @__PURE__ */ c(j, { paddingSize: "xxs", onClick: a, children: "Export flow" }) });
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
k as DFlowExport
|
|
24
|
-
};
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { jsxs as g, Fragment as O, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { c as N } from "../../../_virtual/compiler-runtime.js";
|
|
3
|
-
import '../../../assets/components/d-flow/folder/DFlowFolder.style.css';/* empty css */
|
|
4
|
-
import S from "react";
|
|
5
|
-
import { mergeCode0Props as D } from "../../../utils/utils.js";
|
|
6
|
-
import { IconChevronDown as $, IconChevronRight as x, IconFolder as A } from "@tabler/icons-react";
|
|
7
|
-
import { useService as I, useStore as k } from "../../../utils/contextStore.js";
|
|
8
|
-
import { DFlowReactiveService as b } from "../DFlow.service.js";
|
|
9
|
-
import { ScrollArea as z, ScrollAreaViewport as R, ScrollAreaScrollbar as j, ScrollAreaThumb as M } from "../../scroll-area/ScrollArea.js";
|
|
10
|
-
const U = (f) => {
|
|
11
|
-
const {
|
|
12
|
-
flowId: e
|
|
13
|
-
} = f, a = I(b), m = k(b), h = (n) => n.replace(/^\/+|\/+$/g, "").split("/").filter(Boolean), d = S.useMemo(() => (a.values?.() ?? []).filter((l) => !!l?.name), [m]), p = S.useMemo(() => {
|
|
14
|
-
const n = d.find((l) => l.id === e);
|
|
15
|
-
return n?.name ? h(n.name) : [];
|
|
16
|
-
}, [d, e]), u = S.useMemo(() => {
|
|
17
|
-
const n = {
|
|
18
|
-
name: "",
|
|
19
|
-
path: "",
|
|
20
|
-
children: {}
|
|
21
|
-
};
|
|
22
|
-
for (const l of d) {
|
|
23
|
-
const i = h(l.name);
|
|
24
|
-
if (i.length === 0) continue;
|
|
25
|
-
let o = n, t = "";
|
|
26
|
-
for (let c = 0; c < i.length; c++) {
|
|
27
|
-
const r = i[c];
|
|
28
|
-
t = t ? `${t}/${r}` : r, c === i.length - 1 ? o.children[r] ? o.children[r].flow = l : o.children[r] = {
|
|
29
|
-
name: r,
|
|
30
|
-
path: t,
|
|
31
|
-
children: {},
|
|
32
|
-
flow: l
|
|
33
|
-
} : (o.children[r] || (o.children[r] = {
|
|
34
|
-
name: r,
|
|
35
|
-
path: t,
|
|
36
|
-
children: {}
|
|
37
|
-
}), o = o.children[r]);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return n;
|
|
41
|
-
}, [d]), v = S.useCallback((n) => n ? n.split("/").filter(Boolean).every((i, o) => p[o] === i) : !1, [p]), _ = S.useCallback((n) => {
|
|
42
|
-
const l = Object.values(n), i = l.filter((t) => !t.flow), o = l.filter((t) => !!t.flow);
|
|
43
|
-
return i.sort((t, c) => t.name.localeCompare(c.name)), o.sort((t, c) => t.name.localeCompare(c.name)), /* @__PURE__ */ g(O, { children: [
|
|
44
|
-
i.map((t) => /* @__PURE__ */ s(P, { name: t.name, defaultOpen: v(t.path), children: _(t.children) }, t.path)),
|
|
45
|
-
o.map((t) => /* @__PURE__ */ s(y, { name: t.name, active: t.flow.id === e, "data-flow-id": t.flow.id ?? void 0, title: t.flow.name ?? void 0 }, t.flow.id ?? t.path))
|
|
46
|
-
] });
|
|
47
|
-
}, [e, v]);
|
|
48
|
-
return /* @__PURE__ */ g(z, { h: "100%", children: [
|
|
49
|
-
/* @__PURE__ */ s(R, { children: /* @__PURE__ */ s("div", { className: "d-folder__root", children: _(u.children) }) }),
|
|
50
|
-
/* @__PURE__ */ s(j, { orientation: "vertical", children: /* @__PURE__ */ s(M, {}) })
|
|
51
|
-
] });
|
|
52
|
-
}, P = (f) => {
|
|
53
|
-
const e = N.c(22), {
|
|
54
|
-
name: a,
|
|
55
|
-
defaultOpen: m,
|
|
56
|
-
children: h,
|
|
57
|
-
...d
|
|
58
|
-
} = f, p = m === void 0 ? !1 : m, [u, v] = S.useState(p);
|
|
59
|
-
let _;
|
|
60
|
-
e[0] !== v ? (_ = () => v(B), e[0] = v, e[1] = _) : _ = e[1];
|
|
61
|
-
const n = D("d-folder", d);
|
|
62
|
-
let l;
|
|
63
|
-
e[2] !== v ? (l = () => v(E), e[2] = v, e[3] = l) : l = e[3];
|
|
64
|
-
let i;
|
|
65
|
-
e[4] !== u ? (i = u ? /* @__PURE__ */ s($, { size: 12 }) : /* @__PURE__ */ s(x, { size: 12 }), e[4] = u, e[5] = i) : i = e[5];
|
|
66
|
-
let o;
|
|
67
|
-
e[6] !== l || e[7] !== i ? (o = /* @__PURE__ */ s("span", { onClick: l, className: "d-folder__status", children: i }), e[6] = l, e[7] = i, e[8] = o) : o = e[8];
|
|
68
|
-
let t;
|
|
69
|
-
e[9] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s("span", { className: "d-folder__icon", children: /* @__PURE__ */ s(A, { size: 12 }) }), e[9] = t) : t = e[9];
|
|
70
|
-
let c;
|
|
71
|
-
e[10] !== a ? (c = /* @__PURE__ */ s("span", { className: "d-folder__name", children: a }), e[10] = a, e[11] = c) : c = e[11];
|
|
72
|
-
let r;
|
|
73
|
-
e[12] !== _ || e[13] !== n || e[14] !== o || e[15] !== c ? (r = /* @__PURE__ */ g("div", { onDoubleClick: _, ...n, children: [
|
|
74
|
-
o,
|
|
75
|
-
t,
|
|
76
|
-
c
|
|
77
|
-
] }), e[12] = _, e[13] = n, e[14] = o, e[15] = c, e[16] = r) : r = e[16];
|
|
78
|
-
const F = u ? h : null;
|
|
79
|
-
let w;
|
|
80
|
-
e[17] !== F ? (w = /* @__PURE__ */ s("div", { className: "d-folder__content", children: F }), e[17] = F, e[18] = w) : w = e[18];
|
|
81
|
-
let C;
|
|
82
|
-
return e[19] !== w || e[20] !== r ? (C = /* @__PURE__ */ g("div", { children: [
|
|
83
|
-
r,
|
|
84
|
-
w
|
|
85
|
-
] }), e[19] = w, e[20] = r, e[21] = C) : C = e[21], C;
|
|
86
|
-
}, y = (f) => {
|
|
87
|
-
const e = N.c(12);
|
|
88
|
-
let a, m, h;
|
|
89
|
-
if (e[0] !== f) {
|
|
90
|
-
const {
|
|
91
|
-
name: v,
|
|
92
|
-
icon: _,
|
|
93
|
-
active: n,
|
|
94
|
-
...l
|
|
95
|
-
} = f;
|
|
96
|
-
m = v, a = _, h = D(`d-folder__item ${n ? "d-folder__item--active" : ""}`, l), e[0] = f, e[1] = a, e[2] = m, e[3] = h;
|
|
97
|
-
} else
|
|
98
|
-
a = e[1], m = e[2], h = e[3];
|
|
99
|
-
let d;
|
|
100
|
-
e[4] !== a ? (d = a ? /* @__PURE__ */ s("span", { className: "d-folder__item-icon", children: a }) : null, e[4] = a, e[5] = d) : d = e[5];
|
|
101
|
-
let p;
|
|
102
|
-
e[6] !== m ? (p = /* @__PURE__ */ s("span", { className: "d-folder__item-name", children: m }), e[6] = m, e[7] = p) : p = e[7];
|
|
103
|
-
let u;
|
|
104
|
-
return e[8] !== h || e[9] !== d || e[10] !== p ? (u = /* @__PURE__ */ g("div", { ...h, children: [
|
|
105
|
-
d,
|
|
106
|
-
p
|
|
107
|
-
] }), e[8] = h, e[9] = d, e[10] = p, e[11] = u) : u = e[11], u;
|
|
108
|
-
};
|
|
109
|
-
function B(f) {
|
|
110
|
-
return !f;
|
|
111
|
-
}
|
|
112
|
-
function E(f) {
|
|
113
|
-
return !f;
|
|
114
|
-
}
|
|
115
|
-
export {
|
|
116
|
-
U as DFlowFolder,
|
|
117
|
-
P as DFlowFolderGroup,
|
|
118
|
-
y as DFlowFolderItem
|
|
119
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DFlowDataTypeReactiveService as n } from "../data-type/DFlowDataType.service.js";
|
|
2
|
-
import { resolveGenericKeys as p, replaceGenericKeysInType as i } from "../../../utils/generics.js";
|
|
3
|
-
import { useService as s } from "../../../utils/contextStore.js";
|
|
4
|
-
const c = (e, o, r) => {
|
|
5
|
-
if (r = r ?? s(n), !e.returnType) return null;
|
|
6
|
-
const t = p(e, o, r);
|
|
7
|
-
return i(e.returnType, t);
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
c as useReturnType
|
|
11
|
-
};
|