@code0-tech/pictor 0.0.0-mvp.3 → 0.0.0-mvp.31
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/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/compiler-runtime.js +5 -0
- package/dist/_virtual/compiler-runtime2.js +4 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/react-compiler-runtime.development.js +4 -0
- package/dist/_virtual/react-compiler-runtime.production.js +4 -0
- package/dist/_virtual/react-contenteditable.js +7 -0
- package/dist/_virtual/react-contenteditable2.js +4 -0
- package/dist/_virtual/react-dom-server-legacy.browser.development.js +4 -0
- package/dist/_virtual/react-dom-server-legacy.browser.production.js +4 -0
- package/dist/_virtual/react-dom-server.browser.development.js +4 -0
- package/dist/_virtual/react-dom-server.browser.production.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/server.browser.js +5 -0
- package/dist/_virtual/server.browser2.js +4 -0
- package/dist/assets/components/alert/Alert.style.css +1 -0
- package/dist/assets/components/aurora/Aurora.style.css +1 -0
- package/dist/assets/components/avatar/Avatar.style.css +1 -0
- package/dist/assets/components/badge/Badge.style.css +1 -0
- package/dist/assets/{Breadcrumb.css → components/breadcrumb/Breadcrumb.style.css} +1 -1
- package/dist/assets/components/button/Button.style.css +1 -0
- package/dist/assets/components/button-group/ButtonGroup.style.css +1 -0
- package/dist/assets/components/card/Card.style.css +1 -0
- package/dist/assets/components/command/Command.style.css +1 -0
- package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
- package/dist/assets/components/d-flow/DFlow.style.css +1 -0
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
- package/dist/assets/components/d-flow-function/DFlowFunctionDefaultCard.style.css +1 -0
- package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +1 -0
- 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-flow-validation/DFlowValidation.style.css +1 -0
- package/dist/assets/components/d-layout/DLayout.style.css +1 -0
- package/dist/assets/components/d-resizable/DResizable.style.css +1 -0
- package/dist/assets/components/dialog/Dialog.style.css +1 -0
- package/dist/assets/components/file-tabs/FileTabs.style.css +1 -0
- package/dist/assets/components/form/Input.style.css +1 -0
- package/dist/assets/components/menu/Menu.style.css +1 -0
- package/dist/assets/{ScrollArea.css → components/scroll-area/ScrollArea.style.css} +1 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -0
- package/dist/assets/components/spacing/Spacing.style.css +1 -0
- package/dist/assets/components/tab/Tab.style.css +1 -0
- package/dist/assets/components/text/Text.style.css +1 -0
- package/dist/assets/components/toast/Toast.style.css +1 -0
- package/dist/assets/components/tooltip/Tooltip.style.css +1 -0
- package/dist/assets/{DFlow.css → node_modules/@xyflow/react/dist/style.css} +1 -1
- package/dist/components/alert/Alert.d.ts +7 -0
- package/dist/components/alert/Alert.js +38 -0
- package/dist/components/aurora/Aurora.d.ts +5 -0
- package/dist/components/aurora/Aurora.js +23 -0
- package/dist/components/avatar/Avatar.js +9 -9
- package/dist/components/badge/Badge.d.ts +2 -1
- package/dist/components/badge/Badge.js +58 -17
- package/dist/components/breadcrumb/Breadcrumb.js +16 -28
- package/dist/components/button/Button.d.ts +3 -2
- package/dist/components/button/Button.js +23 -20
- package/dist/components/button-group/ButtonGroup.js +12 -11
- package/dist/components/card/Card.d.ts +2 -1
- package/dist/components/card/Card.js +25 -22
- package/dist/components/card/CardSection.d.ts +1 -0
- package/dist/components/card/CardSection.js +18 -12
- package/dist/components/col/Col.js +9 -8
- package/dist/components/command/Command.js +19 -18
- package/dist/components/container/Container.js +12 -11
- 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 +7 -3
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +3 -2
- package/dist/components/d-flow/DFlow.edges.hook.js +100 -136
- package/dist/components/d-flow/DFlow.js +313 -258
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +6 -2
- package/dist/components/d-flow/DFlow.nodes.hook.js +102 -121
- package/dist/components/d-flow/DFlow.service.d.ts +17 -7
- package/dist/components/d-flow/DFlow.service.js +132 -7
- package/dist/components/d-flow/DFlow.util.d.ts +4 -0
- package/dist/components/d-flow/DFlow.util.js +63 -0
- 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 +14 -0
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +96 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +13 -4
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +76 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +1 -1
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +222 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +229 -0
- 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-data-type/rules/DFlowDataTypeRules.js +10 -0
- package/dist/components/d-flow-file/DFlowTabDefault.d.ts +7 -0
- package/dist/components/d-flow-file/DFlowTabDefault.js +104 -0
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
- package/dist/components/d-flow-file/DFlowTabTrigger.js +64 -0
- package/dist/components/d-flow-file/DFlowTabs.d.ts +8 -0
- package/dist/components/d-flow-file/DFlowTabs.js +132 -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/DFlowFolder.d.ts +33 -0
- package/dist/components/d-flow-folder/DFlowFolder.js +208 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +45 -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/DFlowFolderDeleteDialog.d.ts +10 -0
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +55 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +50 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +10 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
- package/dist/components/d-flow-folder/index.d.ts +4 -0
- package/dist/components/d-flow-folder/index.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +8 -0
- 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/DFlowFunction.service.d.ts +11 -0
- package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +24 -9
- package/dist/components/d-flow-function/DFlowFunction.view.js +139 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +117 -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 +43 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +78 -0
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
- package/dist/components/d-flow-input/DFlowInputDataType.js +437 -0
- package/dist/components/d-flow-input/DFlowInputDefault.d.ts +10 -0
- package/dist/components/d-flow-input/DFlowInputDefault.js +128 -0
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +7 -0
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +24 -0
- package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +11 -0
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +44 -0
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +11 -0
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +33 -0
- package/dist/components/d-flow-panel/DFlowExport.d.ts +6 -0
- 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 +72 -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/DFlowDataTypeSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +34 -0
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +50 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +133 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +24 -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 +72 -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 +12 -11
- 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/DFlowValueSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +44 -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/DFlowType.service.d.ts +11 -0
- package/dist/components/d-flow-type/DFlowType.service.js +12 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +10 -4
- package/dist/components/d-flow-type/DFlowType.view.js +85 -0
- 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 +58 -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.d.ts +1 -2
- package/dist/components/d-fullscreen/DFullScreen.js +24 -18
- package/dist/components/d-layout/DLayout.js +27 -26
- package/dist/components/d-license/DNamespaceLicense.service.d.ts +11 -0
- package/dist/components/d-license/DNamespaceLicense.service.js +12 -0
- package/dist/components/d-license/index.d.ts +2 -0
- package/dist/components/d-license/index.js +6 -0
- package/dist/components/d-member/DNamespaceMember.service.d.ts +13 -0
- package/dist/components/d-member/DNamespaceMember.service.js +17 -0
- package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.d.ts +4 -1
- package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.js +16 -11
- package/dist/components/d-member/DNamespaceMemberCard.d.ts +10 -0
- package/dist/components/d-member/DNamespaceMemberCard.js +16 -0
- package/dist/components/d-member/DNamespaceMemberContent.d.ts +10 -0
- package/dist/components/d-member/DNamespaceMemberContent.js +224 -0
- package/dist/components/d-member/DNamespaceMemberList.d.ts +12 -0
- package/dist/components/d-member/DNamespaceMemberList.js +23 -0
- package/dist/components/d-member/index.d.ts +4 -0
- package/dist/components/d-member/index.js +10 -0
- package/dist/components/d-namespace/DNamespace.service.d.ts +1 -1
- package/dist/components/d-namespace/DNamespace.service.js +7 -6
- package/dist/components/d-namespace/index.d.ts +0 -10
- package/dist/components/d-namespace/index.js +4 -33
- package/dist/components/d-organization/DOrganization.service.d.ts +3 -3
- package/dist/components/d-organization/DOrganization.service.js +8 -7
- package/dist/components/d-organization/DOrganization.view.d.ts +4 -1
- package/dist/components/d-organization/DOrganization.view.js +21 -18
- package/dist/components/d-organization/DOrganizationCard.d.ts +4 -3
- package/dist/components/d-organization/DOrganizationCard.js +13 -60
- package/dist/components/d-organization/DOrganizationList.d.ts +10 -0
- package/dist/components/d-organization/DOrganizationList.js +23 -0
- package/dist/components/d-organization/DOrganizationMenu.js +5 -5
- package/dist/components/d-organization/DOrganizatonContent.d.ts +10 -0
- package/dist/components/d-organization/DOrganizatonContent.js +101 -0
- package/dist/components/d-organization/index.d.ts +1 -0
- package/dist/components/d-organization/index.js +30 -10
- package/dist/components/d-project/DNamespaceProject.service.d.ts +12 -0
- package/dist/components/d-project/DNamespaceProject.service.js +12 -0
- package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.d.ts +4 -1
- package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.js +13 -10
- package/dist/components/d-project/DNamespaceProjectCard.d.ts +9 -0
- package/dist/components/d-project/DNamespaceProjectCard.js +17 -0
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +10 -0
- package/dist/components/d-project/DNamespaceProjectContent.js +71 -0
- package/dist/components/d-project/DNamespaceProjectList.d.ts +11 -0
- package/dist/components/d-project/DNamespaceProjectList.js +25 -0
- package/dist/components/d-project/DNamespaceProjectMenu.d.ts +13 -0
- package/dist/components/d-project/DNamespaceProjectMenu.js +57 -0
- package/dist/components/d-project/index.d.ts +5 -0
- package/dist/components/d-project/index.js +26 -0
- package/dist/components/d-resizable/DResizable.d.ts +4 -4
- package/dist/components/d-resizable/DResizable.js +26 -23
- package/dist/components/d-role/DNamespaceRole.service.d.ts +13 -0
- package/dist/components/d-role/DNamespaceRole.service.js +12 -0
- package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.d.ts +4 -1
- package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.js +8 -4
- package/dist/components/d-role/DNamespaceRoleCard.d.ts +11 -0
- package/dist/components/d-role/DNamespaceRoleCard.js +17 -0
- package/dist/components/d-role/DNamespaceRoleContent.d.ts +10 -0
- package/dist/components/d-role/DNamespaceRoleContent.js +162 -0
- package/dist/components/d-role/DNamespaceRoleList.d.ts +12 -0
- package/dist/components/d-role/DNamespaceRoleList.js +24 -0
- package/dist/components/d-role/DNamespaceRolePermissions.d.ts +5 -0
- package/dist/components/d-role/DNamespaceRolePermissions.js +123 -0
- package/dist/components/d-role/index.d.ts +4 -0
- package/dist/components/d-role/index.js +10 -0
- package/dist/components/d-runtime/DRuntime.service.d.ts +5 -2
- package/dist/components/d-runtime/DRuntime.service.js +2 -4
- package/dist/components/d-runtime/DRuntime.view.d.ts +4 -1
- package/dist/components/d-runtime/DRuntime.view.js +6 -3
- package/dist/components/d-runtime/DRuntimeCard.d.ts +9 -0
- package/dist/components/d-runtime/DRuntimeCard.js +18 -0
- package/dist/components/d-runtime/DRuntimeContent.d.ts +9 -0
- package/dist/components/d-runtime/DRuntimeContent.js +45 -0
- package/dist/components/d-runtime/DRuntimeList.d.ts +12 -0
- package/dist/components/d-runtime/DRuntimeList.js +28 -0
- package/dist/components/d-runtime/index.d.ts +2 -0
- package/dist/components/d-runtime/index.js +6 -2
- package/dist/components/d-user/DUser.service.d.ts +3 -4
- package/dist/components/d-user/DUser.service.js +9 -9
- package/dist/components/d-user/DUser.session.hook.d.ts +3 -0
- package/dist/components/d-user/DUser.session.hook.js +16 -0
- package/dist/components/d-user/DUser.view.d.ts +4 -1
- package/dist/components/d-user/DUser.view.js +13 -10
- package/dist/components/d-user/DUserCard.d.ts +8 -0
- package/dist/components/d-user/DUserCard.js +15 -0
- package/dist/components/d-user/DUserContent.d.ts +8 -0
- package/dist/components/d-user/DUserContent.js +84 -0
- package/dist/components/d-user/DUserInput.d.ts +7 -0
- package/dist/components/d-user/DUserInput.js +100 -0
- package/dist/components/d-user/DUserList.d.ts +9 -0
- package/dist/components/d-user/DUserList.js +22 -0
- package/dist/components/d-user/DUserMenu.js +20 -19
- package/dist/components/d-user/index.d.ts +4 -0
- package/dist/components/d-user/index.js +17 -8
- package/dist/components/dialog/Dialog.d.ts +2 -1
- package/dist/components/dialog/Dialog.js +69 -60
- package/dist/components/file-tabs/FileTabs.js +41 -40
- package/dist/components/file-tabs/FileTabs.service.d.ts +5 -1
- package/dist/components/file-tabs/FileTabs.service.js +74 -26
- package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
- package/dist/components/flex/Flex.js +2 -2
- package/dist/components/form/CheckboxInput.js +62 -53
- package/dist/components/form/EmailInput.js +11 -10
- package/dist/components/form/Input.d.ts +18 -5
- package/dist/components/form/Input.js +333 -139
- package/dist/components/form/Input.syntax.hook.d.ts +10 -0
- package/dist/components/form/Input.syntax.hook.js +14 -0
- package/dist/components/form/Input.utils.d.ts +10 -0
- package/dist/components/form/Input.utils.js +38 -0
- package/dist/components/form/InputContentEditable.hook.d.ts +40 -0
- package/dist/components/form/InputContentEditable.hook.js +471 -0
- package/dist/components/form/InputDescription.js +1 -1
- package/dist/components/form/InputLabel.js +1 -1
- package/dist/components/form/InputMessage.js +1 -1
- package/dist/components/form/InputSuggestion.d.ts +16 -8
- package/dist/components/form/InputSuggestion.js +189 -73
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +11 -10
- package/dist/components/form/PinInput.js +2 -2
- package/dist/components/form/RadioGroup.js +2 -2
- package/dist/components/form/RadioInput.js +2 -2
- package/dist/components/form/SwitchInput.js +7 -7
- package/dist/components/form/TextInput.js +12 -11
- package/dist/components/form/index.js +26 -27
- package/dist/components/form/useForm.d.ts +3 -1
- package/dist/components/form/useForm.js +53 -33
- package/dist/components/menu/Menu.d.ts +7 -3
- package/dist/components/menu/Menu.js +24 -24
- package/dist/components/quote/Quote.js +32 -36
- package/dist/components/row/Row.js +10 -9
- package/dist/components/scroll-area/ScrollArea.js +18 -17
- package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
- package/dist/components/segmented-control/SegmentedControl.js +19 -16
- package/dist/components/spacing/Spacing.d.ts +6 -0
- package/dist/components/spacing/Spacing.js +23 -0
- package/dist/components/tab/Tab.d.ts +11 -0
- package/dist/components/tab/Tab.js +40 -0
- package/dist/components/text/Text.js +2 -2
- package/dist/components/toast/Toast.d.ts +13 -0
- package/dist/components/toast/Toast.js +62 -0
- package/dist/components/tooltip/Tooltip.js +36 -35
- package/dist/index.d.ts +17 -0
- package/dist/index.js +264 -216
- 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/fast-deep-equal/index.js +31 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/object-assign/index.js +49 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
- package/dist/node_modules/prop-types/index.js +17 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +87 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +70 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +14 -0
- package/dist/node_modules/react/compiler-runtime.js +10 -0
- package/dist/node_modules/react-contenteditable/lib/react-contenteditable.js +132 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +6235 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +4096 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +6753 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +4645 -0
- package/dist/node_modules/react-dom/server.browser.js +15 -0
- 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/arrayService.d.ts +2 -2
- package/dist/utils/contextStore.js +1 -1
- package/dist/utils/generics.d.ts +7 -6
- package/dist/utils/generics.js +136 -124
- package/dist/utils/index.js +22 -21
- package/dist/utils/inspection.d.ts +4 -2
- package/dist/utils/inspection.js +27 -2
- package/dist/utils/objectStore.js +15 -15
- package/dist/utils/reactiveArrayService.d.ts +3 -3
- package/dist/utils/reactiveArrayService.js +53 -43
- package/dist/utils/types.d.ts +2 -2
- package/package.json +38 -33
- package/dist/DFlowDataType.service-Dz8pQUeO.js +0 -793
- package/dist/assets/Avatar.css +0 -1
- package/dist/assets/Badge.css +0 -1
- package/dist/assets/Button.css +0 -1
- package/dist/assets/ButtonGroup.css +0 -1
- package/dist/assets/Card.css +0 -1
- package/dist/assets/Command.css +0 -1
- package/dist/assets/DFlowFolder.css +0 -1
- package/dist/assets/DFlowFunctionDefaultCard.css +0 -1
- package/dist/assets/DFlowInputDataType.css +0 -1
- package/dist/assets/DFlowMiniMap.css +0 -1
- package/dist/assets/DFlowSuggestionSearchInput.css +0 -1
- package/dist/assets/DFlowValidation.css +0 -1
- package/dist/assets/DLayout.css +0 -1
- package/dist/assets/DResizable.css +0 -1
- package/dist/assets/Dialog.css +0 -1
- package/dist/assets/FileTabs.css +0 -1
- package/dist/assets/Input.css +0 -1
- package/dist/assets/Menu.css +0 -1
- package/dist/assets/SegmentedControl.css +0 -1
- package/dist/assets/Text.css +0 -1
- package/dist/assets/Tooltip.css +0 -1
- package/dist/compiler-runtime-BNHg76kC.js +0 -36
- package/dist/components/d-flow/DFlow.view.d.ts +0 -109
- package/dist/components/d-flow/DFlow.view.js +0 -213
- package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
- package/dist/components/d-flow/control/DFlowControl.js +0 -77
- 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.service.js +0 -7
- 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 -6
- package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -6
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -6
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -7
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.js +0 -8
- package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
- package/dist/components/d-flow/folder/DFlowFolder.d.ts +0 -19
- package/dist/components/d-flow/folder/DFlowFolder.js +0 -118
- package/dist/components/d-flow/folder/index.d.ts +0 -1
- package/dist/components/d-flow/folder/index.js +0 -6
- package/dist/components/d-flow/function/DFlowFunction.input.hook.js +0 -9
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
- package/dist/components/d-flow/function/DFlowFunction.service.d.ts +0 -6
- 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 -75
- 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 -97
- package/dist/components/d-flow/input/DFlowInputDataType.js +0 -422
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -21
- 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.d.ts +0 -33
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -151
- 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 -21
- 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.d.ts +0 -11
- package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -97
- 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.d.ts +0 -6
- package/dist/components/d-flow/type/DFlowType.service.js +0 -9
- package/dist/components/d-flow/type/DFlowType.view.js +0 -69
- 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 -59
- package/dist/components/d-namespace/license/DNamespaceLicense.service.d.ts +0 -8
- package/dist/components/d-namespace/license/DNamespaceLicense.service.js +0 -11
- package/dist/components/d-namespace/member/DNamespaceMember.service.d.ts +0 -9
- package/dist/components/d-namespace/member/DNamespaceMember.service.js +0 -11
- package/dist/components/d-namespace/project/DNamespaceProject.service.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProject.service.js +0 -11
- package/dist/components/d-namespace/project/DNamespaceProjectCard.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProjectCard.js +0 -57
- package/dist/components/d-namespace/project/DNamespaceProjectMenu.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProjectMenu.js +0 -18
- package/dist/components/d-namespace/role/DNamespaceRole.service.d.ts +0 -10
- package/dist/components/d-namespace/role/DNamespaceRole.service.js +0 -11
- /package/dist/assets/{Col.css → components/col/Col.style.css} +0 -0
- /package/dist/assets/{Container.css → components/container/Container.style.css} +0 -0
- /package/dist/assets/{DFullScreen.css → components/d-fullscreen/DFullScreen.style.css} +0 -0
- /package/dist/assets/{Flex.css → components/flex/Flex.style.css} +0 -0
- /package/dist/assets/{Quote.css → components/quote/Quote.style.css} +0 -0
- /package/dist/assets/{Row.css → components/row/Row.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}/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/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/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
- /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.d.ts +0 -0
- /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.js +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TextInputProps } from '../form';
|
|
3
|
+
import { Flow, NodeFunction, NodeParameter } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
export interface DFlowInputDefaultProps extends TextInputProps {
|
|
5
|
+
flowId: Flow['id'];
|
|
6
|
+
nodeId: NodeFunction['id'];
|
|
7
|
+
parameterId: NodeParameter['id'];
|
|
8
|
+
}
|
|
9
|
+
export declare const splitTextAndObjects: (input: string) => (string | Record<string, any>)[];
|
|
10
|
+
export declare const DFlowInputDefault: React.FC<DFlowInputDefaultProps>;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import S from "react";
|
|
3
|
+
import "../../_virtual/compiler-runtime.js";
|
|
4
|
+
import "@radix-ui/react-checkbox";
|
|
5
|
+
import "merge-props";
|
|
6
|
+
import "@tabler/icons-react";
|
|
7
|
+
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
8
|
+
import "../form/EmailInput.js";
|
|
9
|
+
import "../form/Input.js";
|
|
10
|
+
import "../form/InputSuggestion.js";
|
|
11
|
+
import "../form/NumberInput.js";
|
|
12
|
+
import "../form/PasswordInput.js";
|
|
13
|
+
import "@radix-ui/react-one-time-password-field";
|
|
14
|
+
import "@radix-ui/react-radio-group";
|
|
15
|
+
import "../form/SwitchInput.js";
|
|
16
|
+
import { TextInput as B } from "../form/TextInput.js";
|
|
17
|
+
import { MenuItem as D } from "../menu/Menu.js";
|
|
18
|
+
import { Text as b } from "../text/Text.js";
|
|
19
|
+
import { DFlowSuggestionMenuFooter as T } from "../d-flow-suggestion/DFlowSuggestionMenuFooter.js";
|
|
20
|
+
import { toInputSuggestions as x } from "../d-flow-suggestion/DFlowSuggestionMenu.util.js";
|
|
21
|
+
import { useService as a } from "../../utils/contextStore.js";
|
|
22
|
+
import { DFlowFunctionReactiveService as O } from "../d-flow-function/DFlowFunction.service.js";
|
|
23
|
+
import "js-md5";
|
|
24
|
+
import "../d-flow/DFlow.js";
|
|
25
|
+
import { DFlowReactiveService as h } from "../d-flow/DFlow.service.js";
|
|
26
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
27
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
28
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
29
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
30
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
31
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
32
|
+
import { useSuggestions as R } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
|
|
33
|
+
import { DFlowInputNodeBadge as j } from "./DFlowInputNodeBadge.js";
|
|
34
|
+
import { DFlowInputReferenceBadge as L } from "./DFlowInputReferenceBadge.js";
|
|
35
|
+
import { DFlowTypeReactiveService as $ } from "../d-flow-type/DFlowType.service.js";
|
|
36
|
+
const k = (g) => {
|
|
37
|
+
const o = [];
|
|
38
|
+
let p = "", m = "", n = 0, s = "", r = !1;
|
|
39
|
+
const f = () => {
|
|
40
|
+
p && o.push(p), p = "";
|
|
41
|
+
}, d = (e) => {
|
|
42
|
+
try {
|
|
43
|
+
return JSON.parse(e);
|
|
44
|
+
} catch {
|
|
45
|
+
try {
|
|
46
|
+
return JSON.parse(e.replace(/'/g, '"').replace(/([{,]\s*)([A-Za-z_$][\w$]*)(\s*:)/g, '$1"$2"$3'));
|
|
47
|
+
} catch {
|
|
48
|
+
return {};
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
return g.split("").forEach((e) => {
|
|
53
|
+
if (n > 0) {
|
|
54
|
+
if (m += e, r) {
|
|
55
|
+
r = !1;
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (e === "\\") {
|
|
59
|
+
r = !0;
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (s) {
|
|
63
|
+
e === s && (s = "");
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (e === '"' || e === "'") {
|
|
67
|
+
s = e;
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
e === "{" && n++, e === "}" && n--, n === 0 && (o.push(d(m)), m = "");
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (e === "{") {
|
|
74
|
+
f(), n = 1, m = "{";
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
p += e;
|
|
78
|
+
}), f(), o;
|
|
79
|
+
}, at = (g) => {
|
|
80
|
+
const {
|
|
81
|
+
flowId: o,
|
|
82
|
+
nodeId: p,
|
|
83
|
+
parameterId: m,
|
|
84
|
+
...n
|
|
85
|
+
} = g, s = a(O), r = a(h), f = a($), d = S.useMemo(() => r.getById(o), [r, o]), e = n.suggestions || R(o, p, m), I = S.useCallback((F) => {
|
|
86
|
+
const w = String(F ?? "");
|
|
87
|
+
let u = 0;
|
|
88
|
+
const l = (t) => {
|
|
89
|
+
const i = {
|
|
90
|
+
type: "text",
|
|
91
|
+
value: t,
|
|
92
|
+
start: u,
|
|
93
|
+
end: u + t.length,
|
|
94
|
+
visualLength: t.length,
|
|
95
|
+
content: t
|
|
96
|
+
};
|
|
97
|
+
return u += t.length, i;
|
|
98
|
+
}, y = (t, i) => {
|
|
99
|
+
const N = {
|
|
100
|
+
type: "block",
|
|
101
|
+
value: i,
|
|
102
|
+
start: u,
|
|
103
|
+
end: u + JSON.stringify(i).length,
|
|
104
|
+
visualLength: 1,
|
|
105
|
+
content: t
|
|
106
|
+
};
|
|
107
|
+
return u += JSON.stringify(i).length, N;
|
|
108
|
+
};
|
|
109
|
+
return k(w).map((t) => {
|
|
110
|
+
if (typeof t != "object")
|
|
111
|
+
return l(t);
|
|
112
|
+
if (t?.__typename === "NodeFunctionIdWrapper" || t?.__typename === "NodeFunction") {
|
|
113
|
+
const i = t?.__typename === "NodeFunction" ? t : r.getNodeById(o, t.id);
|
|
114
|
+
return y(/* @__PURE__ */ c(j, { value: t, flowId: o, definition: s.getById(i?.functionDefinition.id) }), t);
|
|
115
|
+
}
|
|
116
|
+
if (t?.__typename === "ReferenceValue") {
|
|
117
|
+
const i = t.nodeFunctionId === "gid://sagittarius/NodeFunction/-1" ? f.getById(d?.type?.id) : s.getById(r.getNodeById(o, t.nodeFunctionId)?.functionDefinition?.id);
|
|
118
|
+
return y(/* @__PURE__ */ c(L, { flowId: o, definition: i, value: t }), t);
|
|
119
|
+
}
|
|
120
|
+
return t?.__typename === "LiteralValue" ? l(t.value) : l(t);
|
|
121
|
+
});
|
|
122
|
+
}, [s, r]);
|
|
123
|
+
return /* @__PURE__ */ c(B, { suggestionsEmptyState: /* @__PURE__ */ c(D, { children: /* @__PURE__ */ c(b, { children: "No suggestion found" }) }), suggestionsFooter: /* @__PURE__ */ c(T, {}), filterSuggestionsByLastToken: !0, enforceUniqueSuggestions: !0, validationUsesSyntax: !0, transformSyntax: I, suggestions: n.suggestions ? n.suggestions : x(e), ...n });
|
|
124
|
+
};
|
|
125
|
+
export {
|
|
126
|
+
at as DFlowInputDefault,
|
|
127
|
+
k as splitTextAndObjects
|
|
128
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BadgeType } from '../badge/Badge';
|
|
3
|
+
import { LiteralValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
export interface DFlowInputLiteralBadgeProps extends Omit<BadgeType, 'value' | 'children'> {
|
|
5
|
+
value: LiteralValue;
|
|
6
|
+
}
|
|
7
|
+
export declare const DFlowInputLiteralBadge: React.FC<DFlowInputLiteralBadgeProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as n } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { Badge as a } from "../badge/Badge.js";
|
|
4
|
+
import { Text as f } from "../text/Text.js";
|
|
5
|
+
const x = (m) => {
|
|
6
|
+
const e = n.c(9);
|
|
7
|
+
let t, r;
|
|
8
|
+
e[0] !== m ? ({
|
|
9
|
+
value: r,
|
|
10
|
+
...t
|
|
11
|
+
} = m, e[0] = m, e[1] = t, e[2] = r) : (t = e[1], r = e[2]);
|
|
12
|
+
let i;
|
|
13
|
+
e[3] === Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
14
|
+
verticalAlign: "middle"
|
|
15
|
+
}, e[3] = i) : i = e[3];
|
|
16
|
+
const c = String(r.value);
|
|
17
|
+
let l;
|
|
18
|
+
e[4] !== c ? (l = /* @__PURE__ */ s(f, { size: "sm", children: c }), e[4] = c, e[5] = l) : l = e[5];
|
|
19
|
+
let o;
|
|
20
|
+
return e[6] !== t || e[7] !== l ? (o = /* @__PURE__ */ s(a, { style: i, color: "secondary", ...t, children: l }), e[6] = t, e[7] = l, e[8] = o) : o = e[8], o;
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
x as DFlowInputLiteralBadge
|
|
24
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BadgeType } from '../badge/Badge';
|
|
2
|
+
import { Flow, NodeFunction, NodeFunctionIdWrapper } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
import { FunctionDefinitionView } from '../d-flow-function';
|
|
5
|
+
import { FlowTypeView } from '../d-flow-type';
|
|
6
|
+
export interface DFlowInputNodeBadgeProps extends Omit<BadgeType, 'value' | 'children'> {
|
|
7
|
+
value: NodeFunction | NodeFunctionIdWrapper;
|
|
8
|
+
flowId: Flow['id'];
|
|
9
|
+
definition?: FunctionDefinitionView | FlowTypeView;
|
|
10
|
+
}
|
|
11
|
+
export declare const DFlowInputNodeBadge: React.FC<DFlowInputNodeBadgeProps>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsxs as B, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Badge as T } from "../badge/Badge.js";
|
|
3
|
+
import p from "react";
|
|
4
|
+
import { IconBolt as N, IconNote as _ } from "@tabler/icons-react";
|
|
5
|
+
import { Text as h } from "../text/Text.js";
|
|
6
|
+
import { useService as n, useStore as c } from "../../utils/contextStore.js";
|
|
7
|
+
import "merge-props";
|
|
8
|
+
import { DFlowFunctionReactiveService as f } from "../d-flow-function/DFlowFunction.service.js";
|
|
9
|
+
import { hashToColor as D } from "../d-flow/DFlow.util.js";
|
|
10
|
+
import "../d-flow/DFlow.js";
|
|
11
|
+
import { DFlowReactiveService as d } from "../d-flow/DFlow.service.js";
|
|
12
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
13
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
14
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
15
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
16
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
17
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
18
|
+
import { DFlowTypeReactiveService as l } from "../d-flow-type/DFlowType.service.js";
|
|
19
|
+
import { FlowTypeView as x } from "../d-flow-type/DFlowType.view.js";
|
|
20
|
+
const Q = (u) => {
|
|
21
|
+
const {
|
|
22
|
+
value: e,
|
|
23
|
+
flowId: m,
|
|
24
|
+
definition: o,
|
|
25
|
+
...a
|
|
26
|
+
} = u, y = o || n(f), g = o || c(f), s = o || n(d), v = o || c(d), w = o || n(l), S = o || c(l), t = e.__typename === "NodeFunctionIdWrapper" && e.id === "gid://sagittarius/NodeFunction/-1", r = p.useMemo(() => {
|
|
27
|
+
if (t && !o) {
|
|
28
|
+
const I = s.getById(m);
|
|
29
|
+
return w.getById(I?.type?.id);
|
|
30
|
+
}
|
|
31
|
+
return e.__typename === "NodeFunction" || o ? e : s.getNodeById(m, e.id);
|
|
32
|
+
}, [v, S]), F = p.useMemo(() => o ? o.names?.[0]?.content : t && r instanceof x ? r.names?.[0]?.content : y.getById(r?.functionDefinition?.id)?.names?.[0]?.content, [g, r]);
|
|
33
|
+
return /* @__PURE__ */ B(T, { style: {
|
|
34
|
+
verticalAlign: "middle"
|
|
35
|
+
}, color: t ? "info" : D(e.id || ""), border: !0, ...a, children: [
|
|
36
|
+
t ? /* @__PURE__ */ i(N, { size: 12 }) : /* @__PURE__ */ i(_, { size: 12 }),
|
|
37
|
+
/* @__PURE__ */ i(h, { size: "sm", style: {
|
|
38
|
+
color: "inherit"
|
|
39
|
+
}, children: String(F) })
|
|
40
|
+
] });
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
Q as DFlowInputNodeBadge
|
|
44
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BadgeType } from '../badge/Badge';
|
|
2
|
+
import { Flow, ReferenceValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
import { FunctionDefinitionView } from '../d-flow-function';
|
|
5
|
+
import { FlowTypeView } from '../d-flow-type';
|
|
6
|
+
export interface DFlowInputReferenceBadge extends Omit<BadgeType, 'value' | 'children'> {
|
|
7
|
+
value: ReferenceValue;
|
|
8
|
+
flowId: Flow['id'];
|
|
9
|
+
definition?: FunctionDefinitionView | FlowTypeView;
|
|
10
|
+
}
|
|
11
|
+
export declare const DFlowInputReferenceBadge: React.FC<DFlowInputReferenceBadge>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Badge as a } from "../badge/Badge.js";
|
|
3
|
+
import c from "react";
|
|
4
|
+
import { Text as m } from "../text/Text.js";
|
|
5
|
+
import { Flex as f } from "../flex/Flex.js";
|
|
6
|
+
import { DFlowInputNodeBadge as s } from "./DFlowInputNodeBadge.js";
|
|
7
|
+
import { IconVariable as u } from "@tabler/icons-react";
|
|
8
|
+
const w = (o) => {
|
|
9
|
+
const {
|
|
10
|
+
value: e,
|
|
11
|
+
flowId: t,
|
|
12
|
+
definition: p,
|
|
13
|
+
...d
|
|
14
|
+
} = o, l = c.useMemo(() => (console.log(e), e.nodeFunctionId && t ? /* @__PURE__ */ i(f, { align: "center", display: "inline-flex", children: [
|
|
15
|
+
/* @__PURE__ */ r(s, { definition: p, value: {
|
|
16
|
+
id: e.nodeFunctionId,
|
|
17
|
+
__typename: "NodeFunctionIdWrapper"
|
|
18
|
+
}, flowId: t }),
|
|
19
|
+
"inputTypeIdentifier" in e && e.inputTypeIdentifier ? "." + e.inputTypeIdentifier : "",
|
|
20
|
+
e.referencePath ? "." + (e.referencePath?.map((n) => n.path).join(".") ?? "") : ""
|
|
21
|
+
] }) : `{{ ${String(e.depth)}-${String(e.scope)}-${String(e.node)}-${e.referencePath?.map((n) => n.path).join(".") ?? ""} }}`), [e]);
|
|
22
|
+
return /* @__PURE__ */ i(a, { style: {
|
|
23
|
+
verticalAlign: "middle"
|
|
24
|
+
}, color: "warning", py: "0", border: !0, ...d, children: [
|
|
25
|
+
/* @__PURE__ */ r(u, { size: 12 }),
|
|
26
|
+
/* @__PURE__ */ r(m, { size: "sm", style: {
|
|
27
|
+
color: "inherit"
|
|
28
|
+
}, children: l })
|
|
29
|
+
] });
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
w as DFlowInputReferenceBadge
|
|
33
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import c from "react";
|
|
3
|
+
import { Panel as u } from "@xyflow/react";
|
|
4
|
+
import { useService as w, useStore as b } from "../../utils/contextStore.js";
|
|
5
|
+
import "merge-props";
|
|
6
|
+
import "../d-flow/DFlow.js";
|
|
7
|
+
import { DFlowReactiveService as m } from "../d-flow/DFlow.service.js";
|
|
8
|
+
import "js-md5";
|
|
9
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
10
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
11
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
12
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
13
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
14
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
15
|
+
import { Button as x } from "../button/Button.js";
|
|
16
|
+
const F = (p) => {
|
|
17
|
+
const {
|
|
18
|
+
flowId: e
|
|
19
|
+
} = p, l = w(m), s = b(m), t = c.useMemo(() => l.getById(e), [s, e]), a = c.useCallback(() => {
|
|
20
|
+
if (!t) return;
|
|
21
|
+
const r = t;
|
|
22
|
+
if (!r) return;
|
|
23
|
+
const f = JSON.stringify(r, null, 2), d = new Blob([f], {
|
|
24
|
+
type: "application/json"
|
|
25
|
+
}), i = URL.createObjectURL(d), o = document.createElement("a");
|
|
26
|
+
o.href = i, o.download = `flow-${t.name}.json`, document.body.appendChild(o), o.click(), o.remove(), URL.revokeObjectURL(i);
|
|
27
|
+
}, [t]);
|
|
28
|
+
return /* @__PURE__ */ n(u, { position: "top-right", children: /* @__PURE__ */ n(x, { paddingSize: "xxs", onClick: a, children: "Export flow" }) });
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
F as DFlowExport
|
|
32
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as a } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { useNodes as d, Panel as h, MiniMap as s } from "@xyflow/react";
|
|
4
|
+
import "../d-flow/DFlow.js";
|
|
5
|
+
import "../../utils/contextStore.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "merge-props";
|
|
8
|
+
import { FLOW_EDGE_RAINBOW as p } from "../d-flow/DFlow.edges.hook.js";
|
|
9
|
+
import "js-md5";
|
|
10
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
11
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
12
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
13
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
14
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
15
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
16
|
+
import '../../assets/components/d-flow-panel/DFlowMiniMap.style.css';/* empty css */
|
|
17
|
+
const F = (c) => {
|
|
18
|
+
const i = a.c(2), m = d();
|
|
19
|
+
let o;
|
|
20
|
+
return i[0] !== m ? (o = /* @__PURE__ */ e(h, { position: "bottom-right", children: /* @__PURE__ */ e(s, { offsetScale: 0, pannable: !0, zoomable: !0, className: "d-flow-viewport-mini-map", nodeComponent: (t) => {
|
|
21
|
+
const r = m.find((n) => n.id === t.id);
|
|
22
|
+
if (!r || r.type == "suggestion")
|
|
23
|
+
return null;
|
|
24
|
+
if (r.type == "group") {
|
|
25
|
+
const n = r.data?.depth ?? 0, l = p[n % p.length];
|
|
26
|
+
return /* @__PURE__ */ e("rect", { width: t.width, height: t.height, rx: 50, ry: 50, fill: l, fillOpacity: 0.05, stroke: l, strokeWidth: 2, "stroke-dasharray": "20", className: "d-flow-viewport-mini-map__group", x: t.x, y: t.y });
|
|
27
|
+
}
|
|
28
|
+
return /* @__PURE__ */ e("rect", { width: t.width, height: t.height, x: t.x, rx: 25, ry: 25, fill: "rgb(28.2, 25.5, 43.5)", y: t.y });
|
|
29
|
+
} }) }), i[0] = m, i[1] = o) : o = i[1], o;
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
F as DFlowMiniMap
|
|
33
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as o, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import l from "react";
|
|
3
|
+
import { ButtonGroup as k } from "../button-group/ButtonGroup.js";
|
|
4
|
+
import { Button as s } from "../button/Button.js";
|
|
5
|
+
import { IconTrash as F, IconPlus as z } from "@tabler/icons-react";
|
|
6
|
+
import { Panel as P } from "@xyflow/react";
|
|
7
|
+
import { useService as f, useStore as u } from "../../utils/contextStore.js";
|
|
8
|
+
import "merge-props";
|
|
9
|
+
import { FileTabsService as h } from "../file-tabs/FileTabs.service.js";
|
|
10
|
+
import "../d-flow/DFlow.js";
|
|
11
|
+
import { DFlowReactiveService as w } from "../d-flow/DFlow.service.js";
|
|
12
|
+
import "js-md5";
|
|
13
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
14
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
15
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
16
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
17
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
18
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
19
|
+
import { Tooltip as S, TooltipTrigger as T, TooltipPortal as v, TooltipContent as x, TooltipArrow as g } from "../tooltip/Tooltip.js";
|
|
20
|
+
import { Text as d } from "../text/Text.js";
|
|
21
|
+
import { Badge as y } from "../badge/Badge.js";
|
|
22
|
+
import { DFlowSuggestionMenu as _ } from "../d-flow-suggestion/DFlowSuggestionMenu.js";
|
|
23
|
+
import { useSuggestions as D } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
|
|
24
|
+
const ro = (N) => {
|
|
25
|
+
const {
|
|
26
|
+
flowId: r
|
|
27
|
+
} = N, a = f(h), p = u(h), i = f(w), b = u(w), [, c] = l.useTransition(), e = l.useMemo(() => p.find((n) => n.active), [p, a]), I = D(r, e?.content?.props?.node?.id), B = l.useCallback(() => {
|
|
28
|
+
e && e.content.props.flowId && c(async () => {
|
|
29
|
+
i.getLinkedNodesById(r, e.content.props.node.id).forEach((m) => {
|
|
30
|
+
m.id && a.deleteById(m.id);
|
|
31
|
+
}), await i.deleteNodeById(e.content.props.flowId, e.content.props.node.id);
|
|
32
|
+
});
|
|
33
|
+
}, [e, i, b]), C = l.useCallback((n) => {
|
|
34
|
+
r && n.value.__typename === "NodeFunction" && "node" in e.content.props ? c(async () => {
|
|
35
|
+
await i.addNextNodeById(r, e.content.props.node.id ?? void 0, n.value);
|
|
36
|
+
}) : c(async () => {
|
|
37
|
+
await i.addNextNodeById(r, null, n.value);
|
|
38
|
+
});
|
|
39
|
+
}, [r, i, e]);
|
|
40
|
+
return /* @__PURE__ */ o(P, { position: "bottom-center", children: /* @__PURE__ */ t(k, { children: [
|
|
41
|
+
/* @__PURE__ */ t(S, { children: [
|
|
42
|
+
/* @__PURE__ */ o(T, { asChild: !0, children: /* @__PURE__ */ o(s, { color: "info", paddingSize: "xxs", variant: "none", "aria-selected": !0, children: "Execute flow" }) }),
|
|
43
|
+
/* @__PURE__ */ o(v, { children: /* @__PURE__ */ t(x, { maw: "300px", children: [
|
|
44
|
+
/* @__PURE__ */ t(d, { children: [
|
|
45
|
+
"To execute this flow you can call the following endpoint ",
|
|
46
|
+
" ",
|
|
47
|
+
" ",
|
|
48
|
+
/* @__PURE__ */ o("br", {}),
|
|
49
|
+
/* @__PURE__ */ o(y, { children: /* @__PURE__ */ o(d, { children: "POST" }) }),
|
|
50
|
+
/* @__PURE__ */ o(y, { color: "info", border: !0, children: /* @__PURE__ */ o(d, { style: {
|
|
51
|
+
color: "inherit"
|
|
52
|
+
}, children: "localhost:6212/72hsa13/users/get" }) })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ o(g, {})
|
|
55
|
+
] }) })
|
|
56
|
+
] }),
|
|
57
|
+
/* @__PURE__ */ t(S, { children: [
|
|
58
|
+
/* @__PURE__ */ o(T, { asChild: !0, children: /* @__PURE__ */ o(s, { disabled: !e || !e.content.props.flowId, onClick: B, paddingSize: "xxs", variant: "none", color: "primary", children: /* @__PURE__ */ o(F, { size: 16 }) }) }),
|
|
59
|
+
/* @__PURE__ */ o(v, { children: /* @__PURE__ */ t(x, { children: [
|
|
60
|
+
/* @__PURE__ */ o(d, { children: "Select a node to delete it" }),
|
|
61
|
+
/* @__PURE__ */ o(g, {})
|
|
62
|
+
] }) })
|
|
63
|
+
] }),
|
|
64
|
+
/* @__PURE__ */ o(_, { suggestions: I, onSuggestionSelect: C, triggerContent: /* @__PURE__ */ t(s, { disabled: !e, paddingSize: "xxs", variant: "none", color: "primary", children: [
|
|
65
|
+
/* @__PURE__ */ o(z, { size: 16 }),
|
|
66
|
+
"Next node"
|
|
67
|
+
] }) })
|
|
68
|
+
] }) });
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
ro as DFlowPanelControl
|
|
72
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as y } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { SegmentedControlItem as m, SegmentedControl as b } from "../segmented-control/SegmentedControl.js";
|
|
4
|
+
import { IconLayoutDistributeHorizontal as _, IconLayoutDistributeVertical as x, IconLayout as S } from "@tabler/icons-react";
|
|
5
|
+
import { Panel as z } from "@xyflow/react";
|
|
6
|
+
import { TooltipTrigger as s, Tooltip as d, TooltipPortal as h, TooltipContent as f, TooltipArrow as p } from "../tooltip/Tooltip.js";
|
|
7
|
+
import { Text as u } from "../text/Text.js";
|
|
8
|
+
const V = (T) => {
|
|
9
|
+
const l = y.c(6);
|
|
10
|
+
let o;
|
|
11
|
+
l[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ e(s, { asChild: !0, children: /* @__PURE__ */ e(m, { value: "horizontal", display: "flex", children: /* @__PURE__ */ e(_, { size: 16 }) }) }), l[0] = o) : o = l[0];
|
|
12
|
+
let i;
|
|
13
|
+
l[1] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ t(d, { children: [
|
|
14
|
+
o,
|
|
15
|
+
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ t(f, { side: "bottom", children: [
|
|
16
|
+
/* @__PURE__ */ e(p, {}),
|
|
17
|
+
/* @__PURE__ */ e(u, { children: "Vertical layout" })
|
|
18
|
+
] }) })
|
|
19
|
+
] }), l[1] = i) : i = l[1];
|
|
20
|
+
let r;
|
|
21
|
+
l[2] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ e(s, { asChild: !0, children: /* @__PURE__ */ e(m, { disabled: !0, value: "vertical", display: "flex", children: /* @__PURE__ */ e(x, { size: 16 }) }) }), l[2] = r) : r = l[2];
|
|
22
|
+
let n;
|
|
23
|
+
l[3] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ t(d, { children: [
|
|
24
|
+
r,
|
|
25
|
+
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ t(f, { side: "bottom", children: [
|
|
26
|
+
/* @__PURE__ */ e(p, {}),
|
|
27
|
+
/* @__PURE__ */ e(u, { children: "Horizontal layout" })
|
|
28
|
+
] }) })
|
|
29
|
+
] }), l[3] = n) : n = l[3];
|
|
30
|
+
let c;
|
|
31
|
+
l[4] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ e(s, { asChild: !0, children: /* @__PURE__ */ e(m, { disabled: !0, value: "manual", display: "flex", children: /* @__PURE__ */ e(S, { size: 16 }) }) }), l[4] = c) : c = l[4];
|
|
32
|
+
let a;
|
|
33
|
+
return l[5] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ e(z, { position: "top-center", children: /* @__PURE__ */ t(b, { type: "single", defaultValue: "horizontal", children: [
|
|
34
|
+
i,
|
|
35
|
+
n,
|
|
36
|
+
/* @__PURE__ */ t(d, { children: [
|
|
37
|
+
c,
|
|
38
|
+
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ t(f, { side: "bottom", children: [
|
|
39
|
+
/* @__PURE__ */ e(p, {}),
|
|
40
|
+
/* @__PURE__ */ e(u, { children: "Manual layout" })
|
|
41
|
+
] }) })
|
|
42
|
+
] })
|
|
43
|
+
] }) }), l[5] = a) : a = l[5], a;
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
V as DFlowPanelLayout
|
|
47
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { jsx as o, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import { c as R } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { useViewport as V, useReactFlow as v, Panel as E } from "@xyflow/react";
|
|
4
|
+
import { ButtonGroup as G } from "../button-group/ButtonGroup.js";
|
|
5
|
+
import { Button as M } from "../button/Button.js";
|
|
6
|
+
import { IconPlus as T, IconMinus as Z, IconFocusCentered as $ } from "@tabler/icons-react";
|
|
7
|
+
import { Badge as q } from "../badge/Badge.js";
|
|
8
|
+
import { Flex as O } from "../flex/Flex.js";
|
|
9
|
+
import { Text as A } from "../text/Text.js";
|
|
10
|
+
const Y = () => {
|
|
11
|
+
const e = R.c(40), F = V(), t = v();
|
|
12
|
+
let d;
|
|
13
|
+
e[0] !== t ? (d = () => {
|
|
14
|
+
t.zoomIn();
|
|
15
|
+
}, e[0] = t, e[1] = d) : d = e[1];
|
|
16
|
+
const P = d;
|
|
17
|
+
let p;
|
|
18
|
+
e[2] !== t ? (p = () => {
|
|
19
|
+
t.zoomOut();
|
|
20
|
+
}, e[2] = t, e[3] = p) : p = e[3];
|
|
21
|
+
const k = p;
|
|
22
|
+
let h;
|
|
23
|
+
e[4] !== t ? (h = () => {
|
|
24
|
+
t.fitView();
|
|
25
|
+
}, e[4] = t, e[5] = h) : h = e[5];
|
|
26
|
+
const B = h;
|
|
27
|
+
let y;
|
|
28
|
+
e[6] !== F.zoom ? (y = () => Math.round(F.zoom * 100), e[6] = F.zoom, e[7] = y) : y = e[7];
|
|
29
|
+
const j = y;
|
|
30
|
+
let _;
|
|
31
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
32
|
+
flexDirection: "column",
|
|
33
|
+
gap: "1rem"
|
|
34
|
+
}, e[8] = _) : _ = e[8];
|
|
35
|
+
let u;
|
|
36
|
+
e[9] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
37
|
+
gap: ".7rem"
|
|
38
|
+
}, e[9] = u) : u = e[9];
|
|
39
|
+
let b;
|
|
40
|
+
e[10] === Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
41
|
+
border: "none"
|
|
42
|
+
}, e[10] = b) : b = e[10];
|
|
43
|
+
let l;
|
|
44
|
+
e[11] !== P ? (l = () => P(), e[11] = P, e[12] = l) : l = e[12];
|
|
45
|
+
let z;
|
|
46
|
+
e[13] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ o(T, { size: 15 }), e[13] = z) : z = e[13];
|
|
47
|
+
let r;
|
|
48
|
+
e[14] !== l ? (r = /* @__PURE__ */ o(M, { style: b, paddingSize: "xxs", color: "secondary", onClick: l, children: z }), e[14] = l, e[15] = r) : r = e[15];
|
|
49
|
+
let x;
|
|
50
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (x = {
|
|
51
|
+
border: "none"
|
|
52
|
+
}, e[16] = x) : x = e[16];
|
|
53
|
+
let i;
|
|
54
|
+
e[17] !== k ? (i = () => k(), e[17] = k, e[18] = i) : i = e[18];
|
|
55
|
+
let S;
|
|
56
|
+
e[19] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ o(Z, { size: 15 }), e[19] = S) : S = e[19];
|
|
57
|
+
let n;
|
|
58
|
+
e[20] !== i ? (n = /* @__PURE__ */ o(M, { style: x, paddingSize: "xxs", color: "secondary", onClick: i, children: S }), e[20] = i, e[21] = n) : n = e[21];
|
|
59
|
+
let g;
|
|
60
|
+
e[22] === Symbol.for("react.memo_cache_sentinel") ? (g = {
|
|
61
|
+
border: "none"
|
|
62
|
+
}, e[22] = g) : g = e[22];
|
|
63
|
+
let c;
|
|
64
|
+
e[23] !== B ? (c = () => B(), e[23] = B, e[24] = c) : c = e[24];
|
|
65
|
+
let w;
|
|
66
|
+
e[25] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ o($, { size: 15 }), e[25] = w) : w = e[25];
|
|
67
|
+
let s;
|
|
68
|
+
e[26] !== c ? (s = /* @__PURE__ */ o(M, { style: g, paddingSize: "xxs", color: "secondary", onClick: c, children: w }), e[26] = c, e[27] = s) : s = e[27];
|
|
69
|
+
let m;
|
|
70
|
+
e[28] !== n || e[29] !== s || e[30] !== r ? (m = /* @__PURE__ */ D(G, { children: [
|
|
71
|
+
r,
|
|
72
|
+
n,
|
|
73
|
+
s
|
|
74
|
+
] }), e[28] = n, e[29] = s, e[30] = r, e[31] = m) : m = e[31];
|
|
75
|
+
let I;
|
|
76
|
+
e[32] === Symbol.for("react.memo_cache_sentinel") ? (I = {
|
|
77
|
+
border: "none"
|
|
78
|
+
}, e[32] = I) : I = e[32];
|
|
79
|
+
let f;
|
|
80
|
+
e[33] !== j ? (f = j(), e[33] = j, e[34] = f) : f = e[34];
|
|
81
|
+
let a;
|
|
82
|
+
e[35] !== f ? (a = /* @__PURE__ */ o(q, { color: "primary", style: I, children: /* @__PURE__ */ D(A, { children: [
|
|
83
|
+
f,
|
|
84
|
+
"%"
|
|
85
|
+
] }) }), e[35] = f, e[36] = a) : a = e[36];
|
|
86
|
+
let C;
|
|
87
|
+
return e[37] !== m || e[38] !== a ? (C = /* @__PURE__ */ o(E, { position: "bottom-left", children: /* @__PURE__ */ o(O, { style: _, children: /* @__PURE__ */ D(O, { align: "center", style: u, children: [
|
|
88
|
+
m,
|
|
89
|
+
a
|
|
90
|
+
] }) }) }), e[37] = m, e[38] = a, e[39] = C) : C = e[39], C;
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
Y as DFlowPanelSize
|
|
94
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DFlowPanelSize as e } from "./DFlowPanelSize.js";
|
|
2
|
+
import { DFlowPanelControl as t } from "./DFlowPanelControl.js";
|
|
3
|
+
import { DFlowExport as x } from "./DFlowExport.js";
|
|
4
|
+
import { DFlowMiniMap as f } from "./DFlowMiniMap.js";
|
|
5
|
+
import { DFlowPanelLayout as n } from "./DFlowPanelLayout.js";
|
|
6
|
+
export {
|
|
7
|
+
x as DFlowExport,
|
|
8
|
+
f as DFlowMiniMap,
|
|
9
|
+
t as DFlowPanelControl,
|
|
10
|
+
n as DFlowPanelLayout,
|
|
11
|
+
e as DFlowPanelSize
|
|
12
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { c as s } from "../../_virtual/compiler-runtime.js";
|
|
2
|
+
import { useService as c, useStore as n } from "../../utils/contextStore.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "merge-props";
|
|
5
|
+
import { DFlowDataTypeReactiveService as p } from "../d-flow-data-type/DFlowDataType.service.js";
|
|
6
|
+
import "js-md5";
|
|
7
|
+
import { DFlowSuggestionType as l } from "./DFlowSuggestion.view.js";
|
|
8
|
+
const _ = (t) => {
|
|
9
|
+
const e = s.c(3), o = c(p);
|
|
10
|
+
n(p);
|
|
11
|
+
const m = t ? o?.getDataType(t) : void 0;
|
|
12
|
+
let a;
|
|
13
|
+
e: {
|
|
14
|
+
if (!m || m.variant !== "DATA_TYPE") {
|
|
15
|
+
let i;
|
|
16
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = [], e[0] = i) : i = e[0], a = i;
|
|
17
|
+
break e;
|
|
18
|
+
}
|
|
19
|
+
let r;
|
|
20
|
+
e[1] !== o ? (r = o.values().map(u), e[1] = o, e[2] = r) : r = e[2], a = r;
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
function u(t) {
|
|
25
|
+
return {
|
|
26
|
+
path: [],
|
|
27
|
+
type: l.DATA_TYPE,
|
|
28
|
+
displayText: [t.name[0]?.content],
|
|
29
|
+
value: t.json
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
_ as useDataTypeSuggestions
|
|
34
|
+
};
|