@code0-tech/pictor 0.0.0-mvp.45 → 0.0.0-mvp.47
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/components/avatar/Avatar.js +6 -7
- package/dist/components/data-table/DataTableFilterInput.js +5 -3
- package/dist/components/editor/Editor.js +29 -30
- package/dist/components/form/InputSuggestion.js +29 -29
- package/dist/components/form/useForm.d.ts +3 -3
- package/dist/components/form/useForm.js +16 -16
- package/dist/components/{d-fullscreen/DFullScreen.d.ts → fullscreen/FullScreen.d.ts} +2 -2
- package/dist/components/{d-fullscreen/DFullScreen.js → fullscreen/FullScreen.js} +2 -2
- package/dist/components/{d-layout/DLayout.d.ts → layout/Layout.d.ts} +2 -2
- package/dist/components/{d-layout/DLayout.js → layout/Layout.js} +11 -11
- package/dist/components/menu/Menu.js +8 -8
- package/dist/components/resizable/Resizable.d.ts +12 -0
- package/dist/components/{d-resizable/DResizable.js → resizable/Resizable.js} +7 -7
- package/dist/components/tab/Tab.js +4 -4
- package/dist/components/toast/Toast.js +1 -1
- package/dist/index.d.ts +0 -20
- package/dist/index.js +152 -273
- package/dist/node_modules/prettier/plugins/babel.js +6674 -6685
- package/dist/node_modules/prettier/plugins/estree.js +2830 -2628
- package/dist/node_modules/prettier/standalone.js +1657 -1440
- package/package.json +29 -29
- package/dist/assets/components/d-flow/DFlow.style.css +0 -1
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +0 -1
- package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +0 -1
- package/dist/assets/components/d-flow-node/DFlowNode.style.css +0 -1
- package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +0 -1
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +0 -1
- package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +0 -1
- package/dist/assets/node_modules/@xyflow/react/dist/style.css +0 -1
- package/dist/assets/node_modules/ldrs/dist/react/LineWobble.css +0 -1
- package/dist/components/d-application/DApplication.service.d.ts +0 -9
- package/dist/components/d-application/DApplication.service.js +0 -10
- package/dist/components/d-flow/DFlow.d.ts +0 -9
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +0 -4
- package/dist/components/d-flow/DFlow.edges.hook.js +0 -110
- package/dist/components/d-flow/DFlow.js +0 -484
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +0 -4
- package/dist/components/d-flow/DFlow.nodes.hook.js +0 -128
- package/dist/components/d-flow/DFlow.service.d.ts +0 -21
- package/dist/components/d-flow/DFlow.service.js +0 -148
- package/dist/components/d-flow/DFlow.util.d.ts +0 -4
- package/dist/components/d-flow/DFlow.util.js +0 -63
- package/dist/components/d-flow/DFlow.view.d.ts +0 -4
- package/dist/components/d-flow/DFlow.view.js +0 -1
- package/dist/components/d-flow/DFlowEdge.d.ts +0 -12
- package/dist/components/d-flow/DFlowEdge.js +0 -69
- package/dist/components/d-flow/index.d.ts +0 -4
- package/dist/components/d-flow/index.js +0 -10
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +0 -15
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +0 -203
- package/dist/components/d-flow-data-type/DFlowDataType.view.d.ts +0 -41
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +0 -76
- package/dist/components/d-flow-data-type/index.d.ts +0 -2
- package/dist/components/d-flow-data-type/index.js +0 -6
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -222
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -229
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -4
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.d.ts +0 -8
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.js +0 -217
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.d.ts +0 -4
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +0 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -250
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.d.ts +0 -8
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.js +0 -10
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.d.ts +0 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +0 -10
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.d.ts +0 -4
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.js +0 -214
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.d.ts +0 -4
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.js +0 -1
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.d.ts +0 -3
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.js +0 -5
- package/dist/components/d-flow-file/DFlowTabDefault.d.ts +0 -7
- package/dist/components/d-flow-file/DFlowTabDefault.js +0 -105
- package/dist/components/d-flow-file/DFlowTabTrigger.d.ts +0 -6
- package/dist/components/d-flow-file/DFlowTabTrigger.js +0 -75
- package/dist/components/d-flow-file/DFlowTabs.d.ts +0 -8
- package/dist/components/d-flow-file/DFlowTabs.js +0 -84
- package/dist/components/d-flow-file/index.d.ts +0 -1
- package/dist/components/d-flow-file/index.js +0 -4
- package/dist/components/d-flow-folder/DFlowFolder.d.ts +0 -36
- package/dist/components/d-flow-folder/DFlowFolder.js +0 -273
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +0 -18
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +0 -53
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +0 -9
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +0 -115
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +0 -10
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +0 -64
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +0 -5
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +0 -51
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +0 -10
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +0 -59
- package/dist/components/d-flow-folder/index.d.ts +0 -4
- package/dist/components/d-flow-folder/index.js +0 -13
- package/dist/components/d-flow-function/DFlowFunction.input.hook.d.ts +0 -5
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +0 -8
- package/dist/components/d-flow-function/DFlowFunction.return.hook.d.ts +0 -5
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +0 -9
- package/dist/components/d-flow-function/DFlowFunction.service.d.ts +0 -11
- package/dist/components/d-flow-function/DFlowFunction.service.js +0 -13
- package/dist/components/d-flow-function/DFlowFunction.view.d.ts +0 -81
- package/dist/components/d-flow-function/DFlowFunction.view.js +0 -139
- package/dist/components/d-flow-function/index.d.ts +0 -2
- package/dist/components/d-flow-function/index.js +0 -7
- package/dist/components/d-flow-input/DFlowInputDataType.d.ts +0 -15
- package/dist/components/d-flow-input/DFlowInputDataType.js +0 -131
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.d.ts +0 -9
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +0 -102
- package/dist/components/d-flow-input/DFlowInputDefault.d.ts +0 -10
- package/dist/components/d-flow-input/DFlowInputDefault.js +0 -129
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +0 -7
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +0 -24
- package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +0 -47
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +0 -33
- package/dist/components/d-flow-node/DFlowNode.d.ts +0 -10
- package/dist/components/d-flow-node/DFlowNode.js +0 -1
- package/dist/components/d-flow-node/DFlowNode.return.hook.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNode.return.hook.js +0 -27
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.js +0 -118
- package/dist/components/d-flow-node/DFlowNodeGroupCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeGroupCard.js +0 -69
- package/dist/components/d-flow-node/DFlowNodeTriggerCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeTriggerCard.js +0 -66
- package/dist/components/d-flow-panel/DFlowExport.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowExport.js +0 -33
- package/dist/components/d-flow-panel/DFlowMiniMap.d.ts +0 -2
- package/dist/components/d-flow-panel/DFlowMiniMap.js +0 -15
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowPanelControl.js +0 -51
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +0 -4
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +0 -38
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +0 -2
- package/dist/components/d-flow-panel/DFlowPanelSize.js +0 -89
- package/dist/components/d-flow-panel/DFlowPanelUpdate.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowPanelUpdate.js +0 -77
- package/dist/components/d-flow-panel/index.d.ts +0 -5
- package/dist/components/d-flow-panel/index.js +0 -12
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +0 -34
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +0 -50
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +0 -132
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +0 -28
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +0 -14
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +0 -4
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.d.ts +0 -8
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +0 -73
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.js +0 -43
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.d.ts +0 -2
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.js +0 -69
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.d.ts +0 -6
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.js +0 -21
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.d.ts +0 -7
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +0 -36
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +0 -44
- package/dist/components/d-flow-suggestion/index.d.ts +0 -1
- package/dist/components/d-flow-suggestion/index.js +0 -4
- package/dist/components/d-flow-type/DFlowType.service.d.ts +0 -11
- package/dist/components/d-flow-type/DFlowType.service.js +0 -13
- package/dist/components/d-flow-type/DFlowType.view.d.ts +0 -44
- package/dist/components/d-flow-type/DFlowType.view.js +0 -93
- package/dist/components/d-flow-type/index.d.ts +0 -2
- package/dist/components/d-flow-type/index.js +0 -6
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +0 -2
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +0 -18
- package/dist/components/d-flow-validation/DFlowValidation.d.ts +0 -6
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +0 -23
- package/dist/components/d-flow-validation/DFlowValidation.js +0 -67
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +0 -3
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +0 -58
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +0 -4
- package/dist/components/d-flow-validation/DValueValidation.hook.js +0 -9
- package/dist/components/d-flow-validation/index.d.ts +0 -2
- package/dist/components/d-flow-validation/index.js +0 -6
- package/dist/components/d-license/DNamespaceLicense.service.d.ts +0 -11
- package/dist/components/d-license/DNamespaceLicense.service.js +0 -13
- package/dist/components/d-license/DNamespaceLicense.view.d.ts +0 -26
- package/dist/components/d-license/DNamespaceLicense.view.js +0 -57
- package/dist/components/d-license/index.d.ts +0 -2
- package/dist/components/d-license/index.js +0 -6
- package/dist/components/d-member/DNamespaceMember.service.d.ts +0 -13
- package/dist/components/d-member/DNamespaceMember.service.js +0 -18
- package/dist/components/d-member/DNamespaceMember.view.d.ts +0 -29
- package/dist/components/d-member/DNamespaceMember.view.js +0 -62
- package/dist/components/d-member/DNamespaceMemberCard.d.ts +0 -10
- package/dist/components/d-member/DNamespaceMemberCard.js +0 -16
- package/dist/components/d-member/DNamespaceMemberContent.d.ts +0 -10
- package/dist/components/d-member/DNamespaceMemberContent.js +0 -225
- package/dist/components/d-member/DNamespaceMemberList.d.ts +0 -12
- package/dist/components/d-member/DNamespaceMemberList.js +0 -24
- package/dist/components/d-member/index.d.ts +0 -4
- package/dist/components/d-member/index.js +0 -10
- package/dist/components/d-namespace/DNamespace.service.d.ts +0 -6
- package/dist/components/d-namespace/DNamespace.service.js +0 -13
- package/dist/components/d-namespace/DNamespace.view.d.ts +0 -32
- package/dist/components/d-namespace/DNamespace.view.js +0 -65
- package/dist/components/d-namespace/index.d.ts +0 -2
- package/dist/components/d-namespace/index.js +0 -6
- package/dist/components/d-organization/DOrganization.service.d.ts +0 -8
- package/dist/components/d-organization/DOrganization.service.js +0 -13
- package/dist/components/d-organization/DOrganization.view.d.ts +0 -23
- package/dist/components/d-organization/DOrganization.view.js +0 -55
- package/dist/components/d-organization/DOrganizationCard.d.ts +0 -11
- package/dist/components/d-organization/DOrganizationCard.js +0 -16
- package/dist/components/d-organization/DOrganizationList.d.ts +0 -10
- package/dist/components/d-organization/DOrganizationList.js +0 -24
- package/dist/components/d-organization/DOrganizationMenu.d.ts +0 -9
- package/dist/components/d-organization/DOrganizationMenu.js +0 -18
- package/dist/components/d-organization/DOrganizatonContent.d.ts +0 -10
- package/dist/components/d-organization/DOrganizatonContent.js +0 -102
- package/dist/components/d-organization/index.d.ts +0 -5
- package/dist/components/d-organization/index.js +0 -40
- package/dist/components/d-project/DNamespaceProject.service.d.ts +0 -13
- package/dist/components/d-project/DNamespaceProject.service.js +0 -13
- package/dist/components/d-project/DNamespaceProject.view.d.ts +0 -44
- package/dist/components/d-project/DNamespaceProject.view.js +0 -78
- package/dist/components/d-project/DNamespaceProjectCard.d.ts +0 -9
- package/dist/components/d-project/DNamespaceProjectCard.js +0 -17
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +0 -10
- package/dist/components/d-project/DNamespaceProjectContent.js +0 -72
- package/dist/components/d-project/DNamespaceProjectList.d.ts +0 -11
- package/dist/components/d-project/DNamespaceProjectList.js +0 -26
- package/dist/components/d-project/DNamespaceProjectMenu.d.ts +0 -13
- package/dist/components/d-project/DNamespaceProjectMenu.js +0 -57
- package/dist/components/d-project/index.d.ts +0 -5
- package/dist/components/d-project/index.js +0 -27
- package/dist/components/d-resizable/DResizable.d.ts +0 -12
- package/dist/components/d-role/DNamespaceRole.service.d.ts +0 -13
- package/dist/components/d-role/DNamespaceRole.service.js +0 -13
- package/dist/components/d-role/DNamespaceRole.view.d.ts +0 -29
- package/dist/components/d-role/DNamespaceRole.view.js +0 -61
- package/dist/components/d-role/DNamespaceRoleCard.d.ts +0 -11
- package/dist/components/d-role/DNamespaceRoleCard.js +0 -17
- package/dist/components/d-role/DNamespaceRoleContent.d.ts +0 -10
- package/dist/components/d-role/DNamespaceRoleContent.js +0 -163
- package/dist/components/d-role/DNamespaceRoleList.d.ts +0 -12
- package/dist/components/d-role/DNamespaceRoleList.js +0 -25
- package/dist/components/d-role/DNamespaceRolePermissions.d.ts +0 -5
- package/dist/components/d-role/DNamespaceRolePermissions.js +0 -123
- package/dist/components/d-role/index.d.ts +0 -4
- package/dist/components/d-role/index.js +0 -10
- package/dist/components/d-runtime/DRuntime.service.d.ts +0 -12
- package/dist/components/d-runtime/DRuntime.service.js +0 -9
- package/dist/components/d-runtime/DRuntime.view.d.ts +0 -41
- package/dist/components/d-runtime/DRuntime.view.js +0 -76
- package/dist/components/d-runtime/DRuntimeCard.d.ts +0 -9
- package/dist/components/d-runtime/DRuntimeCard.js +0 -18
- package/dist/components/d-runtime/DRuntimeContent.d.ts +0 -9
- package/dist/components/d-runtime/DRuntimeContent.js +0 -46
- package/dist/components/d-runtime/DRuntimeList.d.ts +0 -12
- package/dist/components/d-runtime/DRuntimeList.js +0 -29
- package/dist/components/d-runtime/index.d.ts +0 -4
- package/dist/components/d-runtime/index.js +0 -10
- package/dist/components/d-user/DUser.service.d.ts +0 -20
- package/dist/components/d-user/DUser.service.js +0 -18
- package/dist/components/d-user/DUser.session.hook.d.ts +0 -3
- package/dist/components/d-user/DUser.session.hook.js +0 -16
- package/dist/components/d-user/DUser.view.d.ts +0 -55
- package/dist/components/d-user/DUser.view.js +0 -103
- package/dist/components/d-user/DUserCard.d.ts +0 -8
- package/dist/components/d-user/DUserCard.js +0 -15
- package/dist/components/d-user/DUserContent.d.ts +0 -8
- package/dist/components/d-user/DUserContent.js +0 -52
- package/dist/components/d-user/DUserInput.d.ts +0 -7
- package/dist/components/d-user/DUserInput.js +0 -101
- package/dist/components/d-user/DUserList.d.ts +0 -9
- package/dist/components/d-user/DUserList.js +0 -23
- package/dist/components/d-user/DUserMenu.d.ts +0 -8
- package/dist/components/d-user/DUserMenu.js +0 -30
- package/dist/components/d-user/index.d.ts +0 -7
- package/dist/components/d-user/index.js +0 -27
- package/dist/node_modules/ldrs/dist/react/LineWobble.js +0 -6
- package/dist/utils/generics.d.ts +0 -21
- package/dist/utils/generics.js +0 -385
- /package/dist/assets/components/{d-fullscreen/DFullScreen.style.css → fullscreen/FullScreen.style.css} +0 -0
- /package/dist/assets/components/{d-layout/DLayout.style.css → layout/Layout.style.css} +0 -0
- /package/dist/assets/components/{d-resizable/DResizable.style.css → resizable/Resizable.style.css} +0 -0
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
import { jsxs as k, Fragment as te, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { c as le } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import '../../assets/components/d-flow-folder/DFlowFolder.style.css';/* empty css */
|
|
4
|
-
import m from "react";
|
|
5
|
-
import { useService as de, useStore as fe } from "../../utils/contextStore.js";
|
|
6
|
-
import { mergeCode0Props as K } from "../../utils/utils.js";
|
|
7
|
-
import { IconFolderOpen as me, IconFolderFilled as he, IconFile as Y } from "@tabler/icons-react";
|
|
8
|
-
import "../d-flow/DFlow.js";
|
|
9
|
-
import { DFlowReactiveService as Z } from "../d-flow/DFlow.service.js";
|
|
10
|
-
import { hashToColor as ee } from "../d-flow/DFlow.util.js";
|
|
11
|
-
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
12
|
-
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
13
|
-
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
14
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
15
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
16
|
-
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
17
|
-
import "../d-flow-data-type/variants/DFlowDataTypeNodeVariant.js";
|
|
18
|
-
import "js-md5";
|
|
19
|
-
import { ScrollArea as pe, ScrollAreaViewport as ue, ScrollAreaScrollbar as we, ScrollAreaThumb as ve } from "../scroll-area/ScrollArea.js";
|
|
20
|
-
import { Flex as L } from "../flex/Flex.js";
|
|
21
|
-
import { Text as Q } from "../text/Text.js";
|
|
22
|
-
import { DFlowFolderContextMenu as U } from "./DFlowFolderContextMenu.js";
|
|
23
|
-
import { HoverCardContent as ge, HoverCardPortal as Ce, HoverCard as _e, HoverCardTrigger as Se } from "@radix-ui/react-hover-card";
|
|
24
|
-
const Qe = m.forwardRef((c, e) => {
|
|
25
|
-
const {
|
|
26
|
-
activeFlowId: a,
|
|
27
|
-
namespaceId: h,
|
|
28
|
-
projectId: u
|
|
29
|
-
} = c, _ = de(Z), R = fe(Z), S = (l) => l.replace(/\/+$/g, "").split("/").filter((s, n) => n === 0 || s.length > 0), p = m.useMemo(() => (_.values?.({
|
|
30
|
-
namespaceId: h,
|
|
31
|
-
projectId: u
|
|
32
|
-
}) ?? []).filter((f) => !!f?.name), [R]), g = m.useMemo(() => {
|
|
33
|
-
const l = p.find((f) => f.id === a);
|
|
34
|
-
return l?.name ? S(l.name) : [];
|
|
35
|
-
}, [p, a]), b = m.useMemo(() => {
|
|
36
|
-
const l = {
|
|
37
|
-
name: "",
|
|
38
|
-
path: "",
|
|
39
|
-
children: {}
|
|
40
|
-
};
|
|
41
|
-
for (const f of p) {
|
|
42
|
-
const s = S(f.name);
|
|
43
|
-
if (s.length === 0) continue;
|
|
44
|
-
let n = l, t = "";
|
|
45
|
-
for (let r = 0; r < s.length; r++) {
|
|
46
|
-
const o = s[r];
|
|
47
|
-
if (r === 0 && o === "") {
|
|
48
|
-
t = "/", n.children["/"] || (n.children["/"] = {
|
|
49
|
-
name: "/",
|
|
50
|
-
path: "/",
|
|
51
|
-
children: {}
|
|
52
|
-
}), n = n.children["/"];
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
t = t === "/" ? `/${o}` : t ? `${t}/${o}` : o, r === s.length - 1 ? n.children[o] ? n.children[o].flow = f : n.children[o] = {
|
|
56
|
-
name: o,
|
|
57
|
-
path: t,
|
|
58
|
-
children: {},
|
|
59
|
-
flow: f
|
|
60
|
-
} : (n.children[o] || (n.children[o] = {
|
|
61
|
-
name: o,
|
|
62
|
-
path: t,
|
|
63
|
-
children: {}
|
|
64
|
-
}), n = n.children[o]);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return l;
|
|
68
|
-
}, [p]), d = m.useCallback((l) => l ? l.split("/").filter(Boolean).every((s, n) => g[n] === s) : !1, [g]), [w, T] = m.useState("default"), [v, O] = m.useState(0), M = m.useCallback(() => {
|
|
69
|
-
T("allOpen"), O((l) => l + 1);
|
|
70
|
-
}, []), x = m.useCallback(() => {
|
|
71
|
-
T("allClosed"), O((l) => l + 1);
|
|
72
|
-
}, []), y = m.useCallback(() => {
|
|
73
|
-
T("activePath"), O((l) => l + 1);
|
|
74
|
-
}, []);
|
|
75
|
-
m.useImperativeHandle(e, () => ({
|
|
76
|
-
openAll: M,
|
|
77
|
-
closeAll: x,
|
|
78
|
-
openActivePath: y
|
|
79
|
-
}), [M, x, y]);
|
|
80
|
-
const C = m.useCallback((l) => w === "allOpen" ? !0 : w === "allClosed" ? !1 : d(l), [d, w]), F = m.useCallback((l) => {
|
|
81
|
-
const f = Object.values(l), s = f.filter((t) => !t.flow), n = f.filter((t) => !!t.flow);
|
|
82
|
-
return s.sort((t, r) => t.name.localeCompare(r.name)), n.sort((t, r) => t.name.localeCompare(r.name)), /* @__PURE__ */ k(te, { children: [
|
|
83
|
-
s.map((t) => /* @__PURE__ */ i(be, { name: t.name, flows: Object.values(t.children).map((r) => r.flow), defaultOpen: C(t.path), ...c, children: F(t.children) }, `${t.path}-${v}`)),
|
|
84
|
-
n.map((t) => /* @__PURE__ */ i(xe, { name: t.name, path: t.path, flow: t.flow, active: t.flow.id === a, "data-flow-id": t.flow.id ?? void 0, ...c }, t.flow.id ?? t.path))
|
|
85
|
-
] });
|
|
86
|
-
}, [a, C, v]);
|
|
87
|
-
return /* @__PURE__ */ k(pe, { h: "100%", type: "scroll", children: [
|
|
88
|
-
/* @__PURE__ */ i(ue, { asChild: !0, children: /* @__PURE__ */ i(U, { ...c, children: /* @__PURE__ */ i("div", { className: "d-folder__root", children: F(b.children) }) }) }),
|
|
89
|
-
/* @__PURE__ */ i(we, { orientation: "vertical", children: /* @__PURE__ */ i(ve, {}) })
|
|
90
|
-
] });
|
|
91
|
-
}), be = (c) => {
|
|
92
|
-
const e = le.c(33), {
|
|
93
|
-
name: a,
|
|
94
|
-
flows: h,
|
|
95
|
-
defaultOpen: u,
|
|
96
|
-
children: _,
|
|
97
|
-
onCreate: R,
|
|
98
|
-
onDelete: S,
|
|
99
|
-
onRename: p,
|
|
100
|
-
activeFlowId: g,
|
|
101
|
-
namespaceId: b,
|
|
102
|
-
projectId: d,
|
|
103
|
-
...w
|
|
104
|
-
} = c, T = u === void 0 ? !1 : u, [v, O] = m.useState(T);
|
|
105
|
-
let M;
|
|
106
|
-
e[0] !== g || e[1] !== b || e[2] !== R || e[3] !== S || e[4] !== p || e[5] !== d ? (M = {
|
|
107
|
-
onCreate: R,
|
|
108
|
-
onDelete: S,
|
|
109
|
-
onRename: p,
|
|
110
|
-
activeFlowId: g,
|
|
111
|
-
namespaceId: b,
|
|
112
|
-
projectId: d
|
|
113
|
-
}, e[0] = g, e[1] = b, e[2] = R, e[3] = S, e[4] = p, e[5] = d, e[6] = M) : M = e[6];
|
|
114
|
-
const x = M, y = U;
|
|
115
|
-
let C;
|
|
116
|
-
e[7] !== h || e[8] !== a ? (C = {
|
|
117
|
-
name: a,
|
|
118
|
-
flow: h,
|
|
119
|
-
type: "folder"
|
|
120
|
-
}, e[7] = h, e[8] = a, e[9] = C) : C = e[9];
|
|
121
|
-
let F;
|
|
122
|
-
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = () => O(Fe), e[10] = F) : F = e[10];
|
|
123
|
-
const l = K("d-folder", w);
|
|
124
|
-
let f;
|
|
125
|
-
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
|
|
126
|
-
gap: "0.35rem"
|
|
127
|
-
}, e[11] = f) : f = e[11];
|
|
128
|
-
let s;
|
|
129
|
-
e[12] !== v ? (s = v ? /* @__PURE__ */ i(me, { size: 12 }) : /* @__PURE__ */ i(he, { size: 12 }), e[12] = v, e[13] = s) : s = e[13];
|
|
130
|
-
let n;
|
|
131
|
-
e[14] !== a ? (n = /* @__PURE__ */ i(Q, { children: a }), e[14] = a, e[15] = n) : n = e[15];
|
|
132
|
-
let t;
|
|
133
|
-
e[16] !== s || e[17] !== n ? (t = /* @__PURE__ */ k(L, { align: "center", justify: "space-between", style: f, children: [
|
|
134
|
-
s,
|
|
135
|
-
n
|
|
136
|
-
] }), e[16] = s, e[17] = n, e[18] = t) : t = e[18];
|
|
137
|
-
let r;
|
|
138
|
-
e[19] !== F || e[20] !== l || e[21] !== t ? (r = /* @__PURE__ */ i("div", { onClick: F, ...l, children: t }), e[19] = F, e[20] = l, e[21] = t, e[22] = r) : r = e[22];
|
|
139
|
-
let o;
|
|
140
|
-
e[23] !== y || e[24] !== x || e[25] !== C || e[26] !== r ? (o = /* @__PURE__ */ i(y, { contextData: C, ...x, children: r }), e[23] = y, e[24] = x, e[25] = C, e[26] = r, e[27] = o) : o = e[27];
|
|
141
|
-
const D = v ? _ : null;
|
|
142
|
-
let I;
|
|
143
|
-
e[28] !== D ? (I = /* @__PURE__ */ i("div", { className: "d-folder__content", children: D }), e[28] = D, e[29] = I) : I = e[29];
|
|
144
|
-
let P;
|
|
145
|
-
return e[30] !== o || e[31] !== I ? (P = /* @__PURE__ */ k(te, { children: [
|
|
146
|
-
o,
|
|
147
|
-
I
|
|
148
|
-
] }), e[30] = o, e[31] = I, e[32] = P) : P = e[32], P;
|
|
149
|
-
}, xe = (c) => {
|
|
150
|
-
const e = le.c(50), {
|
|
151
|
-
name: a,
|
|
152
|
-
path: h,
|
|
153
|
-
flow: u,
|
|
154
|
-
onSelect: _,
|
|
155
|
-
active: R,
|
|
156
|
-
onCreate: S,
|
|
157
|
-
onDelete: p,
|
|
158
|
-
onRename: g,
|
|
159
|
-
activeFlowId: b,
|
|
160
|
-
namespaceId: d,
|
|
161
|
-
projectId: w,
|
|
162
|
-
...T
|
|
163
|
-
} = c, v = m.useRef(null), [O, M] = m.useState(a);
|
|
164
|
-
let x;
|
|
165
|
-
e[0] !== a ? (x = () => {
|
|
166
|
-
const X = new ResizeObserver((ce) => {
|
|
167
|
-
const [ie] = ce, se = ie.contentRect.width, ae = ye(a, se);
|
|
168
|
-
M(ae);
|
|
169
|
-
});
|
|
170
|
-
return v.current && X.observe(v.current), () => {
|
|
171
|
-
X.disconnect();
|
|
172
|
-
};
|
|
173
|
-
}, e[0] = a, e[1] = x) : x = e[1];
|
|
174
|
-
let y;
|
|
175
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = [v], e[2] = y) : y = e[2], m.useEffect(x, y);
|
|
176
|
-
let C;
|
|
177
|
-
e[3] !== b || e[4] !== d || e[5] !== S || e[6] !== p || e[7] !== g || e[8] !== w ? (C = {
|
|
178
|
-
onCreate: S,
|
|
179
|
-
onDelete: p,
|
|
180
|
-
onRename: g,
|
|
181
|
-
activeFlowId: b,
|
|
182
|
-
namespaceId: d,
|
|
183
|
-
projectId: w
|
|
184
|
-
}, e[3] = b, e[4] = d, e[5] = S, e[6] = p, e[7] = g, e[8] = w, e[9] = C) : C = e[9];
|
|
185
|
-
const F = C;
|
|
186
|
-
let l;
|
|
187
|
-
e[10] !== u || e[11] !== h ? (l = {
|
|
188
|
-
name: h,
|
|
189
|
-
flow: u,
|
|
190
|
-
type: "item"
|
|
191
|
-
}, e[10] = u, e[11] = h, e[12] = l) : l = e[12];
|
|
192
|
-
const f = K(`d-folder__item ${R ? "d-folder__item--active" : ""}`, T);
|
|
193
|
-
let s;
|
|
194
|
-
e[13] !== u || e[14] !== _ ? (s = () => _?.(u), e[13] = u, e[14] = _, e[15] = s) : s = e[15];
|
|
195
|
-
let n;
|
|
196
|
-
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
197
|
-
gap: "0.35rem"
|
|
198
|
-
}, e[16] = n) : n = e[16];
|
|
199
|
-
const t = h + a;
|
|
200
|
-
let r;
|
|
201
|
-
e[17] !== t ? (r = ee(t), e[17] = t, e[18] = r) : r = e[18];
|
|
202
|
-
let o;
|
|
203
|
-
e[19] !== r ? (o = /* @__PURE__ */ i(Y, { color: r, size: 12 }), e[19] = r, e[20] = o) : o = e[20];
|
|
204
|
-
let D;
|
|
205
|
-
e[21] !== O ? (D = /* @__PURE__ */ i(Q, { children: O }), e[21] = O, e[22] = D) : D = e[22];
|
|
206
|
-
let I;
|
|
207
|
-
e[23] !== D || e[24] !== o ? (I = /* @__PURE__ */ k(L, { align: "center", style: n, children: [
|
|
208
|
-
o,
|
|
209
|
-
D
|
|
210
|
-
] }), e[23] = D, e[24] = o, e[25] = I) : I = e[25];
|
|
211
|
-
const P = Ce, W = ge, ne = "top", oe = "start", re = -26, q = K("d-folder__item-hover-card", T);
|
|
212
|
-
let $;
|
|
213
|
-
e[26] !== u || e[27] !== _ ? ($ = () => _?.(u), e[26] = u, e[27] = _, e[28] = $) : $ = e[28];
|
|
214
|
-
let B;
|
|
215
|
-
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
|
|
216
|
-
padding: "0.35rem 0.7rem"
|
|
217
|
-
}, e[29] = B) : B = e[29];
|
|
218
|
-
let G;
|
|
219
|
-
e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = {
|
|
220
|
-
gap: "0.35rem"
|
|
221
|
-
}, e[30] = G) : G = e[30];
|
|
222
|
-
const J = h + a;
|
|
223
|
-
let j;
|
|
224
|
-
e[31] !== J ? (j = ee(J), e[31] = J, e[32] = j) : j = e[32];
|
|
225
|
-
let A;
|
|
226
|
-
e[33] !== j ? (A = /* @__PURE__ */ i(Y, { color: j, size: 12 }), e[33] = j, e[34] = A) : A = e[34];
|
|
227
|
-
let z;
|
|
228
|
-
e[35] !== c.name ? (z = /* @__PURE__ */ i(Q, { children: c.name }), e[35] = c.name, e[36] = z) : z = e[36];
|
|
229
|
-
let E;
|
|
230
|
-
e[37] !== A || e[38] !== z ? (E = /* @__PURE__ */ k(L, { align: "center", style: G, children: [
|
|
231
|
-
A,
|
|
232
|
-
z
|
|
233
|
-
] }), e[37] = A, e[38] = z, e[39] = E) : E = e[39];
|
|
234
|
-
let H;
|
|
235
|
-
e[40] !== q || e[41] !== $ || e[42] !== E ? (H = /* @__PURE__ */ i("div", { ...q, onClick: $, style: B, children: E }), e[40] = q, e[41] = $, e[42] = E, e[43] = H) : H = e[43];
|
|
236
|
-
let N;
|
|
237
|
-
e[44] !== W || e[45] !== H ? (N = /* @__PURE__ */ i(W, { side: ne, align: oe, sideOffset: re, children: H }), e[44] = W, e[45] = H, e[46] = N) : N = e[46];
|
|
238
|
-
let V;
|
|
239
|
-
return e[47] !== P || e[48] !== N ? (V = /* @__PURE__ */ i(P, { children: N }), e[47] = P, e[48] = N, e[49] = V) : V = e[49], /* @__PURE__ */ i(U, { contextData: l, ...F, children: /* @__PURE__ */ i("div", { children: /* @__PURE__ */ k(_e, { open: c.name === O ? !1 : void 0, openDelay: 500, closeDelay: 0, children: [
|
|
240
|
-
/* @__PURE__ */ i(Se, { asChild: !0, children: /* @__PURE__ */ i("div", { ref: v, ...f, onClick: s, children: I }) }),
|
|
241
|
-
V
|
|
242
|
-
] }) }) });
|
|
243
|
-
};
|
|
244
|
-
function ye(c, e, a = "middle", h = "…") {
|
|
245
|
-
const _ = document.createElement("canvas").getContext("2d");
|
|
246
|
-
_.font = "400 16px Inter, sans-serif";
|
|
247
|
-
const R = -1.9, S = (d) => _.measureText(d).width + (d.length - 1) * R;
|
|
248
|
-
if (S(c) <= e) return c;
|
|
249
|
-
let p = 0, g = c.length, b = h;
|
|
250
|
-
for (; p <= g; ) {
|
|
251
|
-
const d = Math.floor((p + g) / 2);
|
|
252
|
-
let w;
|
|
253
|
-
if (a === "end")
|
|
254
|
-
w = c.slice(0, d) + h;
|
|
255
|
-
else if (a === "start")
|
|
256
|
-
w = h + c.slice(c.length - d);
|
|
257
|
-
else {
|
|
258
|
-
const v = Math.floor(d / 2);
|
|
259
|
-
w = c.slice(0, v) + h + c.slice(c.length - v);
|
|
260
|
-
}
|
|
261
|
-
S(w) > e - 8 ? g = d - 1 : (b = w, p = d + 1);
|
|
262
|
-
}
|
|
263
|
-
return b;
|
|
264
|
-
}
|
|
265
|
-
function Fe(c) {
|
|
266
|
-
return !c;
|
|
267
|
-
}
|
|
268
|
-
export {
|
|
269
|
-
Qe as DFlowFolder,
|
|
270
|
-
be as DFlowFolderGroup,
|
|
271
|
-
xe as DFlowFolderItem,
|
|
272
|
-
ye as truncateText
|
|
273
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DFlowFolderProps } from './DFlowFolder';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { Flow } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
export interface DFlowFolderContextMenuGroupData {
|
|
5
|
-
name: string;
|
|
6
|
-
flow: Flow[];
|
|
7
|
-
type: "folder";
|
|
8
|
-
}
|
|
9
|
-
export interface DFlowFolderContextMenuItemData {
|
|
10
|
-
name: string;
|
|
11
|
-
flow: Flow;
|
|
12
|
-
type: "item";
|
|
13
|
-
}
|
|
14
|
-
export interface DFlowFolderContextMenuProps extends DFlowFolderProps {
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
contextData?: DFlowFolderContextMenuGroupData | DFlowFolderContextMenuItemData;
|
|
17
|
-
}
|
|
18
|
-
export declare const DFlowFolderContextMenu: React.FC<DFlowFolderContextMenuProps>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as c, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import h from "react";
|
|
3
|
-
import { ContextMenu as x, ContextMenuTrigger as s, ContextMenuPortal as C, ContextMenuContent as p, ContextMenuSub as M, ContextMenuSubTrigger as S, ContextMenuSubContent as f, ContextMenuLabel as g, ContextMenuItem as o, ContextMenuSeparator as w } from "../context-menu/ContextMenu.js";
|
|
4
|
-
import { Flex as D } from "../flex/Flex.js";
|
|
5
|
-
import { Text as i } from "../text/Text.js";
|
|
6
|
-
import { IconChevronRight as b, IconEdit as v, IconTrash as F } from "@tabler/icons-react";
|
|
7
|
-
import { useService as R, useStore as T } from "../../utils/contextStore.js";
|
|
8
|
-
import "merge-props";
|
|
9
|
-
import "js-md5";
|
|
10
|
-
import { DFlowTypeReactiveService as l } from "../d-flow-type/DFlowType.service.js";
|
|
11
|
-
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
12
|
-
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
13
|
-
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
14
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
15
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
16
|
-
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
17
|
-
import "../d-flow-data-type/variants/DFlowDataTypeNodeVariant.js";
|
|
18
|
-
const Q = (t) => {
|
|
19
|
-
const {
|
|
20
|
-
children: m
|
|
21
|
-
} = t, a = R(l), d = T(l), u = h.useMemo(() => a.values(), [d]);
|
|
22
|
-
return /* @__PURE__ */ e(c, { children: /* @__PURE__ */ n(x, { children: [
|
|
23
|
-
/* @__PURE__ */ e(s, { asChild: !0, children: m }),
|
|
24
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ n(M, { children: [
|
|
25
|
-
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ n(D, { align: "center", justify: "space-between", style: {
|
|
26
|
-
gap: "0.7rem"
|
|
27
|
-
}, w: "100%", children: [
|
|
28
|
-
/* @__PURE__ */ e(i, { children: "Create new flow" }),
|
|
29
|
-
/* @__PURE__ */ e(b, { size: 12 })
|
|
30
|
-
] }) }),
|
|
31
|
-
/* @__PURE__ */ n(f, { children: [
|
|
32
|
-
/* @__PURE__ */ e(g, { children: "Flow types" }),
|
|
33
|
-
u.map((r) => /* @__PURE__ */ e(o, { onSelect: () => {
|
|
34
|
-
t.onCreate?.(r.id);
|
|
35
|
-
}, children: r.names[0]?.content ?? r.id }, r.id))
|
|
36
|
-
] }),
|
|
37
|
-
t.contextData ? /* @__PURE__ */ n(c, { children: [
|
|
38
|
-
/* @__PURE__ */ e(w, {}),
|
|
39
|
-
/* @__PURE__ */ n(o, { disabled: !0, onSelect: () => t.onRename?.(t.contextData), children: [
|
|
40
|
-
/* @__PURE__ */ e(v, { size: 13 }),
|
|
41
|
-
/* @__PURE__ */ e(i, { children: "Rename" })
|
|
42
|
-
] }),
|
|
43
|
-
/* @__PURE__ */ n(o, { onSelect: () => t.onDelete?.(t.contextData), children: [
|
|
44
|
-
/* @__PURE__ */ e(F, { size: 13 }),
|
|
45
|
-
/* @__PURE__ */ e(i, { children: "Delete" })
|
|
46
|
-
] })
|
|
47
|
-
] }) : null
|
|
48
|
-
] }) }) })
|
|
49
|
-
] }) });
|
|
50
|
-
};
|
|
51
|
-
export {
|
|
52
|
-
Q as DFlowFolderContextMenu
|
|
53
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { FlowType } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
export interface DFlowFolderCreateDialogProps {
|
|
4
|
-
open?: boolean;
|
|
5
|
-
onOpenChange?: (open: boolean) => void;
|
|
6
|
-
flowTypeId?: FlowType['id'];
|
|
7
|
-
onCreate?: (name: string, type: FlowType['id']) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const DFlowFolderCreateDialog: React.FC<DFlowFolderCreateDialogProps>;
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import n from "react";
|
|
3
|
-
import "../../_virtual/compiler-runtime.js";
|
|
4
|
-
import "@radix-ui/react-checkbox";
|
|
5
|
-
import { InputLabel as D } from "../form/InputLabel.js";
|
|
6
|
-
import { InputDescription as F } from "../form/InputDescription.js";
|
|
7
|
-
import "merge-props";
|
|
8
|
-
import "js-md5";
|
|
9
|
-
import { InputMessage as S } from "../form/InputMessage.js";
|
|
10
|
-
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
11
|
-
import { IconFile as M, IconArrowUp as v, IconArrowDown as x, IconCornerDownLeft as b } from "@tabler/icons-react";
|
|
12
|
-
import "../form/EmailInput.js";
|
|
13
|
-
import "../form/Input.js";
|
|
14
|
-
import "../form/InputSuggestion.js";
|
|
15
|
-
import "../form/NumberInput.js";
|
|
16
|
-
import "../form/PasswordInput.js";
|
|
17
|
-
import "@radix-ui/react-one-time-password-field";
|
|
18
|
-
import "@radix-ui/react-radio-group";
|
|
19
|
-
import "../form/SwitchInput.js";
|
|
20
|
-
import "../form/TextInput.js";
|
|
21
|
-
import { useForm as P } from "../form/useForm.js";
|
|
22
|
-
import { Dialog as O, DialogPortal as V, DialogOverlay as z, DialogContent as j, DialogClose as B } from "../dialog/Dialog.js";
|
|
23
|
-
import { Flex as l } from "../flex/Flex.js";
|
|
24
|
-
import { Button as p } from "../button/Button.js";
|
|
25
|
-
import { DFlowFolderItemPathInput as L } from "./DFlowFolderItemPathInput.js";
|
|
26
|
-
import { useService as N, useStore as Y } from "../../utils/contextStore.js";
|
|
27
|
-
import { DFlowTypeReactiveService as h } from "../d-flow-type/DFlowType.service.js";
|
|
28
|
-
import { hashToColor as k } from "../d-flow/DFlow.util.js";
|
|
29
|
-
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
30
|
-
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
31
|
-
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
32
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
33
|
-
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
34
|
-
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
35
|
-
import "../d-flow-data-type/variants/DFlowDataTypeNodeVariant.js";
|
|
36
|
-
import { Menu as q, MenuTrigger as A, MenuPortal as R, MenuContent as E, MenuItem as U, MenuLabel as W } from "../menu/Menu.js";
|
|
37
|
-
import { Spacing as c } from "../spacing/Spacing.js";
|
|
38
|
-
import { Badge as s } from "../badge/Badge.js";
|
|
39
|
-
import { Card as G } from "../card/Card.js";
|
|
40
|
-
const Ve = (t) => {
|
|
41
|
-
const {
|
|
42
|
-
open: m
|
|
43
|
-
} = t, d = N(h), u = Y(h), [g, y] = n.useState(m), [a, w] = n.useState(t.flowTypeId), f = n.useMemo(() => d.getById(a), [a, u]), I = n.useMemo(() => ({
|
|
44
|
-
name: "",
|
|
45
|
-
flowTypeId: t.flowTypeId ?? null
|
|
46
|
-
}), []), C = n.useMemo(() => d.values(), [u]);
|
|
47
|
-
n.useEffect(() => {
|
|
48
|
-
y(m);
|
|
49
|
-
}, [m]);
|
|
50
|
-
const [i, T] = P({
|
|
51
|
-
initialValues: I,
|
|
52
|
-
validate: {
|
|
53
|
-
name: (o) => o ? null : "Name is required",
|
|
54
|
-
flowTypeId: (o) => o ? null : "Flow type is required"
|
|
55
|
-
},
|
|
56
|
-
onSubmit: (o) => {
|
|
57
|
-
t.onCreate?.(o.name, o.flowTypeId), t.onOpenChange?.(!1);
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
return /* @__PURE__ */ e(O, { open: g, onOpenChange: (o) => {
|
|
61
|
-
t.onOpenChange?.(o);
|
|
62
|
-
}, children: /* @__PURE__ */ r(V, { children: [
|
|
63
|
-
/* @__PURE__ */ e(z, {}),
|
|
64
|
-
/* @__PURE__ */ r(j, { autoFocus: !0, showCloseButton: !0, title: "Create new flow", children: [
|
|
65
|
-
/* @__PURE__ */ e(D, { children: "Type of flow" }),
|
|
66
|
-
/* @__PURE__ */ e(F, { children: "You can choose a flow type here" }),
|
|
67
|
-
/* @__PURE__ */ r(q, { children: [
|
|
68
|
-
/* @__PURE__ */ e(A, { asChild: !0, children: /* @__PURE__ */ r(p, { w: "100%", color: i.getInputProps("flowTypeId").formValidation?.valid ? "secondary" : "error", style: {
|
|
69
|
-
justifyContent: "start"
|
|
70
|
-
}, children: [
|
|
71
|
-
a ? /* @__PURE__ */ e(M, { size: 13, color: k(a) }) : null,
|
|
72
|
-
f ? f?.names?.[0].content : "Select flow type"
|
|
73
|
-
] }) }),
|
|
74
|
-
/* @__PURE__ */ e(R, { children: /* @__PURE__ */ r(E, { align: "start", color: "secondary", sideOffset: 8, children: [
|
|
75
|
-
/* @__PURE__ */ e(G, { paddingSize: "xxs", mt: -0.35, mx: -0.35, style: {
|
|
76
|
-
borderWidth: "2px"
|
|
77
|
-
}, children: C.map((o) => /* @__PURE__ */ e(U, { onSelect: () => {
|
|
78
|
-
i.getInputProps("flowTypeId").formValidation?.setValue(o.id), w(o.id);
|
|
79
|
-
}, children: o.names?.[0].content }, o.id)) }),
|
|
80
|
-
/* @__PURE__ */ e(W, { children: /* @__PURE__ */ r(l, { style: {
|
|
81
|
-
gap: ".35rem"
|
|
82
|
-
}, children: [
|
|
83
|
-
/* @__PURE__ */ r(l, { align: "center", style: {
|
|
84
|
-
gap: "0.35rem"
|
|
85
|
-
}, children: [
|
|
86
|
-
/* @__PURE__ */ r(l, { children: [
|
|
87
|
-
/* @__PURE__ */ e(s, { border: !0, children: /* @__PURE__ */ e(v, { size: 12 }) }),
|
|
88
|
-
/* @__PURE__ */ e(s, { border: !0, children: /* @__PURE__ */ e(x, { size: 12 }) })
|
|
89
|
-
] }),
|
|
90
|
-
"move"
|
|
91
|
-
] }),
|
|
92
|
-
/* @__PURE__ */ e(c, { spacing: "xxs" }),
|
|
93
|
-
/* @__PURE__ */ r(l, { align: "center", style: {
|
|
94
|
-
gap: ".35rem"
|
|
95
|
-
}, children: [
|
|
96
|
-
/* @__PURE__ */ e(s, { border: !0, children: /* @__PURE__ */ e(b, { size: 12 }) }),
|
|
97
|
-
"select"
|
|
98
|
-
] })
|
|
99
|
-
] }) })
|
|
100
|
-
] }) })
|
|
101
|
-
] }),
|
|
102
|
-
i.getInputProps("flowTypeId").formValidation?.valid ? null : /* @__PURE__ */ e(S, { children: i.getInputProps("flowTypeId").formValidation?.notValidMessage }),
|
|
103
|
-
/* @__PURE__ */ e(c, { spacing: "md" }),
|
|
104
|
-
/* @__PURE__ */ e(L, { description: "You can choose a name here and only use alphanumeric names.", title: "Name of the flow", ...i.getInputProps("name") }),
|
|
105
|
-
/* @__PURE__ */ e(c, { spacing: "md" }),
|
|
106
|
-
/* @__PURE__ */ r(l, { justify: "space-between", align: "center", children: [
|
|
107
|
-
/* @__PURE__ */ e(B, { asChild: !0, children: /* @__PURE__ */ e(p, { color: "secondary", children: "No, go back!" }) }),
|
|
108
|
-
/* @__PURE__ */ e(p, { color: "success", onClick: T, children: "Yes, create!" })
|
|
109
|
-
] })
|
|
110
|
-
] })
|
|
111
|
-
] }) });
|
|
112
|
-
};
|
|
113
|
-
export {
|
|
114
|
-
Ve as DFlowFolderCreateDialog
|
|
115
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DFlowFolderContextMenuGroupData, DFlowFolderContextMenuItemData } from './DFlowFolderContextMenu';
|
|
3
|
-
import { Flow } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
export interface DFlowFolderDeleteDialogProps {
|
|
5
|
-
open?: boolean;
|
|
6
|
-
onOpenChange?: (open: boolean) => void;
|
|
7
|
-
contextData: DFlowFolderContextMenuGroupData | DFlowFolderContextMenuItemData;
|
|
8
|
-
onDelete?: (flow: Flow) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const DFlowFolderDeleteDialog: React.FC<DFlowFolderDeleteDialogProps>;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as u } from "react/jsx-runtime";
|
|
2
|
-
import { c as F } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import { DialogOverlay as R, DialogClose as b, DialogPortal as S, DialogContent as B, Dialog as E } from "../dialog/Dialog.js";
|
|
4
|
-
import { Text as v } from "../text/Text.js";
|
|
5
|
-
import { Badge as k } from "../badge/Badge.js";
|
|
6
|
-
import { Flex as z } from "../flex/Flex.js";
|
|
7
|
-
import { Button as _ } from "../button/Button.js";
|
|
8
|
-
import O from "react";
|
|
9
|
-
const H = (t) => {
|
|
10
|
-
const e = F.c(24), {
|
|
11
|
-
open: r
|
|
12
|
-
} = t, [y, j] = O.useState(r);
|
|
13
|
-
let m, f;
|
|
14
|
-
e[0] !== r ? (m = () => {
|
|
15
|
-
j(r);
|
|
16
|
-
}, f = [r], e[0] = r, e[1] = m, e[2] = f) : (m = e[1], f = e[2]), O.useEffect(m, f);
|
|
17
|
-
let l;
|
|
18
|
-
e[3] !== t ? (l = (C) => t.onOpenChange?.(C), e[3] = t, e[4] = l) : l = e[4];
|
|
19
|
-
let s;
|
|
20
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o(R, {}), e[5] = s) : s = e[5];
|
|
21
|
-
const x = t.contextData.type == "item" ? "Remove flow" : "Remove folder", g = t.contextData.type == "item" ? "Are you sure you want to remove flow" : "Are you sure you want to remove folder";
|
|
22
|
-
let d;
|
|
23
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
24
|
-
color: "inherit"
|
|
25
|
-
}, e[6] = d) : d = e[6];
|
|
26
|
-
let n;
|
|
27
|
-
e[7] !== t.contextData.name ? (n = /* @__PURE__ */ o(k, { color: "info", children: /* @__PURE__ */ o(v, { size: "md", style: d, children: t.contextData.name }) }), e[7] = t.contextData.name, e[8] = n) : n = e[8];
|
|
28
|
-
const w = t.contextData.type == "folder" ? ", all flows and sub-folders inside " : "";
|
|
29
|
-
let i;
|
|
30
|
-
e[9] !== g || e[10] !== n || e[11] !== w ? (i = /* @__PURE__ */ u(v, { size: "md", hierarchy: "secondary", children: [
|
|
31
|
-
g,
|
|
32
|
-
" ",
|
|
33
|
-
" ",
|
|
34
|
-
n,
|
|
35
|
-
" ",
|
|
36
|
-
" ",
|
|
37
|
-
w,
|
|
38
|
-
"from the this project?"
|
|
39
|
-
] }), e[9] = g, e[10] = n, e[11] = w, e[12] = i) : i = e[12];
|
|
40
|
-
let h;
|
|
41
|
-
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ o(b, { asChild: !0, children: /* @__PURE__ */ o(_, { color: "secondary", children: "No, go back!" }) }), e[13] = h) : h = e[13];
|
|
42
|
-
let a;
|
|
43
|
-
e[14] !== t ? (a = /* @__PURE__ */ u(z, { justify: "space-between", align: "center", children: [
|
|
44
|
-
h,
|
|
45
|
-
/* @__PURE__ */ o(b, { asChild: !0, children: /* @__PURE__ */ o(_, { color: "error", onClick: () => {
|
|
46
|
-
t.contextData.type === "item" ? t.onDelete?.(t.contextData.flow) : t.contextData.type === "folder" && t.contextData.flow.forEach((C) => {
|
|
47
|
-
t.onDelete?.(C);
|
|
48
|
-
});
|
|
49
|
-
}, children: "Yes, remove!" }) })
|
|
50
|
-
] }), e[14] = t, e[15] = a) : a = e[15];
|
|
51
|
-
let c;
|
|
52
|
-
e[16] !== a || e[17] !== x || e[18] !== i ? (c = /* @__PURE__ */ u(S, { children: [
|
|
53
|
-
s,
|
|
54
|
-
/* @__PURE__ */ u(B, { autoFocus: !0, showCloseButton: !0, title: x, children: [
|
|
55
|
-
i,
|
|
56
|
-
a
|
|
57
|
-
] })
|
|
58
|
-
] }), e[16] = a, e[17] = x, e[18] = i, e[19] = c) : c = e[19];
|
|
59
|
-
let D;
|
|
60
|
-
return e[20] !== y || e[21] !== c || e[22] !== l ? (D = /* @__PURE__ */ o(E, { open: y, onOpenChange: l, children: c }), e[20] = y, e[21] = c, e[22] = l, e[23] = D) : D = e[23], D;
|
|
61
|
-
};
|
|
62
|
-
export {
|
|
63
|
-
H as DFlowFolderDeleteDialog
|
|
64
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { c as l } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "@radix-ui/react-checkbox";
|
|
5
|
-
import "merge-props";
|
|
6
|
-
import "js-md5";
|
|
7
|
-
import "@tabler/icons-react";
|
|
8
|
-
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
9
|
-
import "../form/EmailInput.js";
|
|
10
|
-
import "../form/Input.js";
|
|
11
|
-
import "../form/InputSuggestion.js";
|
|
12
|
-
import "../form/NumberInput.js";
|
|
13
|
-
import "../form/PasswordInput.js";
|
|
14
|
-
import "@radix-ui/react-one-time-password-field";
|
|
15
|
-
import "@radix-ui/react-radio-group";
|
|
16
|
-
import "../form/SwitchInput.js";
|
|
17
|
-
import { TextInput as c } from "../form/TextInput.js";
|
|
18
|
-
import { Badge as h } from "../badge/Badge.js";
|
|
19
|
-
const S = (e) => {
|
|
20
|
-
const r = l.c(4);
|
|
21
|
-
let t;
|
|
22
|
-
r[0] !== e ? ({
|
|
23
|
-
...t
|
|
24
|
-
} = e, r[0] = e, r[1] = t) : t = r[1];
|
|
25
|
-
const o = a;
|
|
26
|
-
let n;
|
|
27
|
-
return r[2] !== t ? (n = /* @__PURE__ */ p(c, { transformSyntax: o, ...t }), r[2] = t, r[3] = n) : n = r[3], n;
|
|
28
|
-
};
|
|
29
|
-
function f(e) {
|
|
30
|
-
const r = [];
|
|
31
|
-
let t = "";
|
|
32
|
-
return e.split("").forEach((o) => o === "/" ? (t && r.push(t), t = "", r.push("/")) : (t = t + o, t)), t && r.push(t), r;
|
|
33
|
-
}
|
|
34
|
-
function a(e, r) {
|
|
35
|
-
const o = f(e ?? "");
|
|
36
|
-
let n = 0;
|
|
37
|
-
return o.map((m, i) => {
|
|
38
|
-
const s = {
|
|
39
|
-
type: o.length - 1 !== i ? "block" : "text",
|
|
40
|
-
value: m,
|
|
41
|
-
start: n,
|
|
42
|
-
end: n + m.length,
|
|
43
|
-
visualLength: o.length - 1 !== i ? 1 : m.length,
|
|
44
|
-
content: o.length - 1 !== i ? /* @__PURE__ */ p(h, { color: m == "/" ? "warning" : "info", children: m }) : m
|
|
45
|
-
};
|
|
46
|
-
return n = n + m.length, [s];
|
|
47
|
-
}).flat();
|
|
48
|
-
}
|
|
49
|
-
export {
|
|
50
|
-
S as DFlowFolderItemPathInput
|
|
51
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DFlowFolderContextMenuGroupData, DFlowFolderContextMenuItemData } from './DFlowFolderContextMenu';
|
|
3
|
-
import { Flow } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
-
export interface DFlowFolderRenameDialogProps {
|
|
5
|
-
contextData: DFlowFolderContextMenuGroupData | DFlowFolderContextMenuItemData;
|
|
6
|
-
open?: boolean;
|
|
7
|
-
onOpenChange?: (open: boolean) => void;
|
|
8
|
-
onRename?: (flow: Flow, newName: string) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const DFlowFolderRenameDialog: React.FC<DFlowFolderRenameDialogProps>;
|