@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
|
@@ -1,46 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DFlowReactiveService as
|
|
3
|
-
import { FLOW_EDGE_RAINBOW as
|
|
4
|
-
import { useFlowNodes as
|
|
5
|
-
import { DFlow as x } from "./DFlow.js";
|
|
6
|
-
import { DFlowControl as s } from "./control/DFlowControl.js";
|
|
7
|
-
import { D as v } from "../../DFlowDataType.service-Dz8pQUeO.js";
|
|
8
|
-
import { DataTypeView as d } from "./data-type/DFlowDataType.view.js";
|
|
9
|
-
import { DFlowFolder as g, DFlowFolderGroup as R, DFlowFolderItem as y } from "./folder/DFlowFolder.js";
|
|
10
|
-
import { DFlowFunctionReactiveService as N } from "./function/DFlowFunction.service.js";
|
|
11
|
-
import { FunctionDefinitionView as G, ParameterDefinitionView as I } from "./function/DFlowFunction.view.js";
|
|
12
|
-
import { DFlowMiniMap as O } from "./minimap/DFlowMiniMap.js";
|
|
13
|
-
import { DFlowReactiveSuggestionService as W } from "./suggestion/DFlowSuggestion.service.js";
|
|
14
|
-
import { DFlowSuggestion as A, DFlowSuggestionType as B } from "./suggestion/DFlowSuggestion.view.js";
|
|
15
|
-
import { DFlowTypeReactiveService as L } from "./type/DFlowType.service.js";
|
|
16
|
-
import { FlowTypeView as h } from "./type/DFlowType.view.js";
|
|
17
|
-
import { useDFlowValidations as k } from "./validation/DFlowValidation.hook.js";
|
|
18
|
-
import { DFlowValidation as z } from "./validation/DFlowValidation.js";
|
|
1
|
+
import { DFlow as r } from "./DFlow.js";
|
|
2
|
+
import { DFlowReactiveService as F } from "./DFlow.service.js";
|
|
3
|
+
import { FLOW_EDGE_RAINBOW as l, useFlowEdges as m } from "./DFlow.edges.hook.js";
|
|
4
|
+
import { useFlowNodes as s } from "./DFlow.nodes.hook.js";
|
|
19
5
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
y as DFlowFolderItem,
|
|
26
|
-
N as DFlowFunctionReactiveService,
|
|
27
|
-
O as DFlowMiniMap,
|
|
28
|
-
l as DFlowReactiveService,
|
|
29
|
-
W as DFlowReactiveSuggestionService,
|
|
30
|
-
A as DFlowSuggestion,
|
|
31
|
-
B as DFlowSuggestionType,
|
|
32
|
-
L as DFlowTypeReactiveService,
|
|
33
|
-
z as DFlowValidation,
|
|
34
|
-
d as DataTypeView,
|
|
35
|
-
m as FLOW_EDGE_RAINBOW,
|
|
36
|
-
r as FlowSettingView,
|
|
37
|
-
h as FlowTypeView,
|
|
38
|
-
t as FlowView,
|
|
39
|
-
G as FunctionDefinitionView,
|
|
40
|
-
i as NodeFunctionView,
|
|
41
|
-
w as NodeParameterView,
|
|
42
|
-
I as ParameterDefinitionView,
|
|
43
|
-
k as useDFlowValidations,
|
|
44
|
-
D as useFlowEdges,
|
|
45
|
-
a as useFlowNodes
|
|
6
|
+
r as DFlow,
|
|
7
|
+
F as DFlowReactiveService,
|
|
8
|
+
l as FLOW_EDGE_RAINBOW,
|
|
9
|
+
m as useFlowEdges,
|
|
10
|
+
s as useFlowNodes
|
|
46
11
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactiveArrayService } from '../../utils';
|
|
2
|
+
import { DataTypeView } from './DFlowDataType.view';
|
|
3
|
+
import { DataTypeIdentifier, Flow, Maybe, Namespace, NamespaceProject, NodeParameterValue, Runtime } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
export type DFlowDataTypeDependencies = {
|
|
5
|
+
namespaceId: Namespace['id'];
|
|
6
|
+
projectId: NamespaceProject['id'];
|
|
7
|
+
runtimeId: Runtime['id'];
|
|
8
|
+
};
|
|
9
|
+
export declare abstract class DFlowDataTypeReactiveService extends ReactiveArrayService<DataTypeView, DFlowDataTypeDependencies> {
|
|
10
|
+
getDataType(type: DataTypeIdentifier, dependencies?: DFlowDataTypeDependencies): DataTypeView | undefined;
|
|
11
|
+
getDataTypeFromValue(value: NodeParameterValue, flow?: Flow, dependencies?: DFlowDataTypeDependencies): DataTypeView | undefined;
|
|
12
|
+
getTypeFromValue(value: NodeParameterValue, flow?: Flow, dependencies?: DFlowDataTypeDependencies): Maybe<DataTypeIdentifier> | undefined;
|
|
13
|
+
hasDataTypes(types: DataTypeIdentifier[], dependencies?: DFlowDataTypeDependencies): boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import "../../utils/contextStore.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { ReactiveArrayService as y } from "../../utils/reactiveArrayService.js";
|
|
4
|
+
import "merge-props";
|
|
5
|
+
import { resolveType as s } from "../../utils/generics.js";
|
|
6
|
+
import { useValueValidation as o } from "../d-flow-validation/DValueValidation.hook.js";
|
|
7
|
+
class v extends y {
|
|
8
|
+
getDataType(e, r) {
|
|
9
|
+
if (!e || e.genericKey) return;
|
|
10
|
+
const i = e.dataType?.identifier ?? e.genericType?.dataType?.identifier, t = e.dataType?.id ?? e.genericType?.dataType?.id;
|
|
11
|
+
return this.values().find((a) => a.identifier == i || a.id == t);
|
|
12
|
+
}
|
|
13
|
+
getDataTypeFromValue(e, r, i) {
|
|
14
|
+
if (!e) return;
|
|
15
|
+
if (e.__typename == "LiteralValue") {
|
|
16
|
+
if (Array.isArray(e.value) && Array.from(e.value).length > 0) return this.getDataType({
|
|
17
|
+
dataType: {
|
|
18
|
+
identifier: "LIST"
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
if (typeof e.value == "string") return this.getDataType({
|
|
22
|
+
dataType: {
|
|
23
|
+
identifier: "TEXT"
|
|
24
|
+
}
|
|
25
|
+
}, i);
|
|
26
|
+
if (typeof e.value == "number") return this.getDataType({
|
|
27
|
+
dataType: {
|
|
28
|
+
identifier: "NUMBER"
|
|
29
|
+
}
|
|
30
|
+
}, i);
|
|
31
|
+
if (typeof e.value == "boolean") return this.getDataType({
|
|
32
|
+
dataType: {
|
|
33
|
+
identifier: "BOOLEAN"
|
|
34
|
+
}
|
|
35
|
+
}, i);
|
|
36
|
+
}
|
|
37
|
+
const t = this.values(i).filter((a) => a.identifier === "OBJECT" || e.__typename === "NodeFunctionIdWrapper" && (a.variant != "NODE" || !r) ? !1 : o(e, a, this, r));
|
|
38
|
+
return t[t.length - 1];
|
|
39
|
+
}
|
|
40
|
+
getTypeFromValue(e, r, i) {
|
|
41
|
+
if (!e) return;
|
|
42
|
+
if (e.__typename === "ReferenceValue") return e.dataTypeIdentifier;
|
|
43
|
+
const t = this.getDataTypeFromValue(e, r, i);
|
|
44
|
+
if ((t?.genericKeys?.length ?? 0) <= 0 || !t?.genericKeys) return {
|
|
45
|
+
dataType: {
|
|
46
|
+
id: t?.id,
|
|
47
|
+
identifier: t?.identifier
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const a = t.genericKeys.map((n) => {
|
|
51
|
+
const d = t.rules?.nodes?.find((T) => "dataTypeIdentifier" in (T?.config ?? {}) && T?.config?.dataTypeIdentifier?.genericKey == n || "inputTypes" in (T?.config ?? {}) && T.config.inputTypes?.some((p) => p.dataTypeIdentifier?.genericKey == n));
|
|
52
|
+
return d && d.variant == "CONTAINS_TYPE" && "value" in e && e?.value && t.variant === "ARRAY" ? {
|
|
53
|
+
sourceDataTypeIdentifiers: [this.getTypeFromValue({
|
|
54
|
+
__typename: "LiteralValue",
|
|
55
|
+
value: e.value[0]
|
|
56
|
+
}, r, i)],
|
|
57
|
+
target: n
|
|
58
|
+
} : d && d.variant == "CONTAINS_KEY" && "value" in e && e?.value && t.variant === "OBJECT" ? {
|
|
59
|
+
sourceDataTypeIdentifiers: [this.getTypeFromValue({
|
|
60
|
+
__typename: "LiteralValue",
|
|
61
|
+
/* @ts-ignore */
|
|
62
|
+
value: e.value[d.config?.key ?? ""]
|
|
63
|
+
}, r, i)],
|
|
64
|
+
target: n
|
|
65
|
+
} : d && d.variant == "RETURN_TYPE" && t.variant === "NODE" ? {
|
|
66
|
+
sourceDataTypeIdentifiers: [this.getTypeFromValue(e, r, i)],
|
|
67
|
+
target: n
|
|
68
|
+
} : d && d.variant == "INPUT_TYPES" && t.variant === "NODE" ? {
|
|
69
|
+
sourceDataTypeIdentifiers: [{
|
|
70
|
+
genericKey: n
|
|
71
|
+
}],
|
|
72
|
+
target: n
|
|
73
|
+
} : null;
|
|
74
|
+
}).filter((n) => !!n), f = a.length > 0 ? {
|
|
75
|
+
genericType: {
|
|
76
|
+
dataType: {
|
|
77
|
+
id: t.id,
|
|
78
|
+
identifier: t.identifier
|
|
79
|
+
},
|
|
80
|
+
genericMappers: a
|
|
81
|
+
}
|
|
82
|
+
} : {
|
|
83
|
+
dataType: {
|
|
84
|
+
id: t.id,
|
|
85
|
+
identifier: t.identifier
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
return s(f, this);
|
|
89
|
+
}
|
|
90
|
+
hasDataTypes(e, r) {
|
|
91
|
+
return e.every((i) => this.values(r).find((t) => t.id === (i.genericType?.dataType?.id ?? i.dataType?.id)));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export {
|
|
95
|
+
v as DFlowDataTypeReactiveService
|
|
96
|
+
};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { DataType, DataTypeRuleConnection, DataTypeVariant, Maybe, Runtime, Scalars,
|
|
1
|
+
import { DataType, DataTypeIdentifierConnection, DataTypeRuleConnection, DataTypeVariant, Maybe, Runtime, Scalars, Translation } from '@code0-tech/sagittarius-graphql-types';
|
|
2
2
|
export declare class DataTypeView {
|
|
3
|
+
/** Name of the function */
|
|
4
|
+
private readonly _aliases?;
|
|
3
5
|
/** Time when this DataType was created */
|
|
4
6
|
private readonly _createdAt?;
|
|
7
|
+
/** The data type identifiers that are referenced in this data type and its rules */
|
|
8
|
+
private readonly _dataTypeIdentifiers?;
|
|
9
|
+
/** Display message of the function */
|
|
10
|
+
private readonly _displayMessages?;
|
|
5
11
|
/** Generic keys of the datatype */
|
|
6
12
|
private readonly _genericKeys?;
|
|
7
13
|
/** Global ID of this DataType */
|
|
@@ -10,20 +16,23 @@ export declare class DataTypeView {
|
|
|
10
16
|
private readonly _identifier?;
|
|
11
17
|
/** Names of the flow type setting */
|
|
12
18
|
private readonly _name?;
|
|
13
|
-
/** The namespace where this datatype belongs to */
|
|
14
|
-
private readonly _runtime?;
|
|
15
19
|
/** Rules of the datatype */
|
|
16
20
|
private readonly _rules?;
|
|
21
|
+
/** The namespace where this datatype belongs to */
|
|
22
|
+
private readonly _runtime?;
|
|
17
23
|
/** Time when this DataType was last updated */
|
|
18
24
|
private readonly _updatedAt?;
|
|
19
25
|
/** The type of the datatype */
|
|
20
26
|
private readonly _variant?;
|
|
21
27
|
constructor(dataType: DataType);
|
|
28
|
+
get aliases(): Maybe<Array<Translation>> | undefined;
|
|
22
29
|
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
30
|
+
get dataTypeIdentifiers(): Maybe<DataTypeIdentifierConnection> | undefined;
|
|
31
|
+
get displayMessages(): Maybe<Array<Translation>> | undefined;
|
|
23
32
|
get genericKeys(): Maybe<Array<Scalars["String"]["output"]>> | undefined;
|
|
24
33
|
get id(): Maybe<Scalars["DataTypeID"]["output"]> | undefined;
|
|
25
34
|
get identifier(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
26
|
-
get name(): Maybe<
|
|
35
|
+
get name(): Maybe<Array<Translation>> | undefined;
|
|
27
36
|
get runtime(): Maybe<Runtime> | undefined;
|
|
28
37
|
get rules(): Maybe<DataTypeRuleConnection> | undefined;
|
|
29
38
|
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { attachDataTypeIdentifiers as n, resolveDataTypeIdentifiers as a } from "../d-flow/DFlow.util.js";
|
|
2
|
+
function t(i, e, r) {
|
|
3
|
+
return (e = d(e)) in i ? Object.defineProperty(i, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = r, i;
|
|
4
|
+
}
|
|
5
|
+
function d(i) {
|
|
6
|
+
var e = u(i, "string");
|
|
7
|
+
return typeof e == "symbol" ? e : e + "";
|
|
8
|
+
}
|
|
9
|
+
function u(i, e) {
|
|
10
|
+
if (typeof i != "object" || !i) return i;
|
|
11
|
+
var r = i[Symbol.toPrimitive];
|
|
12
|
+
if (r !== void 0) {
|
|
13
|
+
var s = r.call(i, e);
|
|
14
|
+
if (typeof s != "object") return s;
|
|
15
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
16
|
+
}
|
|
17
|
+
return (e === "string" ? String : Number)(i);
|
|
18
|
+
}
|
|
19
|
+
class h {
|
|
20
|
+
constructor(e) {
|
|
21
|
+
t(this, "_aliases", void 0), t(this, "_createdAt", void 0), t(this, "_dataTypeIdentifiers", void 0), t(this, "_displayMessages", void 0), t(this, "_genericKeys", void 0), t(this, "_id", void 0), t(this, "_identifier", void 0), t(this, "_name", void 0), t(this, "_rules", void 0), t(this, "_runtime", void 0), t(this, "_updatedAt", void 0), t(this, "_variant", void 0), this._aliases = e.aliases, this._createdAt = e.createdAt, this._dataTypeIdentifiers = e.dataTypeIdentifiers, this._displayMessages = e.displayMessages, this._genericKeys = e.genericKeys, this._id = e.id, this._identifier = e.identifier, this._name = e.name, this._runtime = e.runtime, this._rules = n(a(this._dataTypeIdentifiers?.nodes ?? []), e.rules), this._updatedAt = e.updatedAt, this._variant = e.variant;
|
|
22
|
+
}
|
|
23
|
+
get aliases() {
|
|
24
|
+
return this._aliases;
|
|
25
|
+
}
|
|
26
|
+
get createdAt() {
|
|
27
|
+
return this._createdAt;
|
|
28
|
+
}
|
|
29
|
+
get dataTypeIdentifiers() {
|
|
30
|
+
return this._dataTypeIdentifiers;
|
|
31
|
+
}
|
|
32
|
+
get displayMessages() {
|
|
33
|
+
return this._displayMessages;
|
|
34
|
+
}
|
|
35
|
+
get genericKeys() {
|
|
36
|
+
return this._genericKeys;
|
|
37
|
+
}
|
|
38
|
+
get id() {
|
|
39
|
+
return this._id;
|
|
40
|
+
}
|
|
41
|
+
get identifier() {
|
|
42
|
+
return this._identifier;
|
|
43
|
+
}
|
|
44
|
+
get name() {
|
|
45
|
+
return this._name;
|
|
46
|
+
}
|
|
47
|
+
get runtime() {
|
|
48
|
+
return this._runtime;
|
|
49
|
+
}
|
|
50
|
+
get rules() {
|
|
51
|
+
return this._rules;
|
|
52
|
+
}
|
|
53
|
+
get updatedAt() {
|
|
54
|
+
return this._updatedAt;
|
|
55
|
+
}
|
|
56
|
+
get variant() {
|
|
57
|
+
return this._variant;
|
|
58
|
+
}
|
|
59
|
+
get json() {
|
|
60
|
+
return {
|
|
61
|
+
id: this._id,
|
|
62
|
+
createdAt: this._createdAt,
|
|
63
|
+
updatedAt: this._updatedAt,
|
|
64
|
+
identifier: this._identifier,
|
|
65
|
+
name: this._name,
|
|
66
|
+
runtime: this._runtime,
|
|
67
|
+
variant: this._variant,
|
|
68
|
+
genericKeys: this._genericKeys,
|
|
69
|
+
rules: this._rules,
|
|
70
|
+
dataTypeIdentifiers: this._dataTypeIdentifiers
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
h as DataTypeView
|
|
76
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DFlowDataTypeReactiveService } from '../DFlowDataType.service';
|
|
2
|
-
import { DataTypeRulesContainsKeyConfig, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
import { FlowView } from '../../DFlow.view';
|
|
2
|
+
import { DataTypeRulesContainsKeyConfig, Flow, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
3
|
export declare class DFlowDataTypeContainsKeyRule {
|
|
5
|
-
static validate(value: NodeParameterValue, config: DataTypeRulesContainsKeyConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?:
|
|
4
|
+
static validate(value: NodeParameterValue, config: DataTypeRulesContainsKeyConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?: Flow): boolean;
|
|
6
5
|
}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { genericMapping as T, staticImplements as D } from "./DFlowDataTypeRule.js";
|
|
2
|
+
import { useValueValidation as y } from "../../d-flow-validation/DValueValidation.hook.js";
|
|
3
|
+
function A(r, e, t, n) {
|
|
4
|
+
var i = k(), o = e(function(s) {
|
|
5
|
+
i.initializeInstanceElements(s, a.elements);
|
|
6
|
+
}, t), a = i.decorateClass(I(o.d.map(P)), r);
|
|
7
|
+
return i.initializeClassElements(o.F, a.elements), i.runClassFinishers(o.F, a.finishers);
|
|
8
|
+
}
|
|
9
|
+
function k() {
|
|
10
|
+
k = function() {
|
|
11
|
+
return r;
|
|
12
|
+
};
|
|
13
|
+
var r = { elementsDefinitionOrder: [["method"], ["field"]], initializeInstanceElements: function(e, t) {
|
|
14
|
+
["method", "field"].forEach(function(n) {
|
|
15
|
+
t.forEach(function(i) {
|
|
16
|
+
i.kind === n && i.placement === "own" && this.defineClassElement(e, i);
|
|
17
|
+
}, this);
|
|
18
|
+
}, this);
|
|
19
|
+
}, initializeClassElements: function(e, t) {
|
|
20
|
+
var n = e.prototype;
|
|
21
|
+
["method", "field"].forEach(function(i) {
|
|
22
|
+
t.forEach(function(o) {
|
|
23
|
+
var a = o.placement;
|
|
24
|
+
if (o.kind === i && (a === "static" || a === "prototype")) {
|
|
25
|
+
var s = a === "static" ? e : n;
|
|
26
|
+
this.defineClassElement(s, o);
|
|
27
|
+
}
|
|
28
|
+
}, this);
|
|
29
|
+
}, this);
|
|
30
|
+
}, defineClassElement: function(e, t) {
|
|
31
|
+
var n = t.descriptor;
|
|
32
|
+
if (t.kind === "field") {
|
|
33
|
+
var i = t.initializer;
|
|
34
|
+
n = { enumerable: n.enumerable, writable: n.writable, configurable: n.configurable, value: i === void 0 ? void 0 : i.call(e) };
|
|
35
|
+
}
|
|
36
|
+
Object.defineProperty(e, t.key, n);
|
|
37
|
+
}, decorateClass: function(e, t) {
|
|
38
|
+
var n = [], i = [], o = { static: [], prototype: [], own: [] };
|
|
39
|
+
if (e.forEach(function(s) {
|
|
40
|
+
this.addElementPlacement(s, o);
|
|
41
|
+
}, this), e.forEach(function(s) {
|
|
42
|
+
if (!u(s)) return n.push(s);
|
|
43
|
+
var l = this.decorateElement(s, o);
|
|
44
|
+
n.push(l.element), n.push.apply(n, l.extras), i.push.apply(i, l.finishers);
|
|
45
|
+
}, this), !t) return { elements: n, finishers: i };
|
|
46
|
+
var a = this.decorateConstructor(n, t);
|
|
47
|
+
return i.push.apply(i, a.finishers), a.finishers = i, a;
|
|
48
|
+
}, addElementPlacement: function(e, t, n) {
|
|
49
|
+
var i = t[e.placement];
|
|
50
|
+
if (!n && i.indexOf(e.key) !== -1) throw new TypeError("Duplicated element (" + e.key + ")");
|
|
51
|
+
i.push(e.key);
|
|
52
|
+
}, decorateElement: function(e, t) {
|
|
53
|
+
for (var n = [], i = [], o = e.decorators, a = o.length - 1; a >= 0; a--) {
|
|
54
|
+
var s = t[e.placement];
|
|
55
|
+
s.splice(s.indexOf(e.key), 1);
|
|
56
|
+
var l = this.fromElementDescriptor(e), c = this.toElementFinisherExtras((0, o[a])(l) || l);
|
|
57
|
+
e = c.element, this.addElementPlacement(e, t), c.finisher && i.push(c.finisher);
|
|
58
|
+
var p = c.extras;
|
|
59
|
+
if (p) {
|
|
60
|
+
for (var d = 0; d < p.length; d++) this.addElementPlacement(p[d], t);
|
|
61
|
+
n.push.apply(n, p);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return { element: e, finishers: i, extras: n };
|
|
65
|
+
}, decorateConstructor: function(e, t) {
|
|
66
|
+
for (var n = [], i = t.length - 1; i >= 0; i--) {
|
|
67
|
+
var o = this.fromClassDescriptor(e), a = this.toClassDescriptor((0, t[i])(o) || o);
|
|
68
|
+
if (a.finisher !== void 0 && n.push(a.finisher), a.elements !== void 0) {
|
|
69
|
+
e = a.elements;
|
|
70
|
+
for (var s = 0; s < e.length - 1; s++) for (var l = s + 1; l < e.length; l++) if (e[s].key === e[l].key && e[s].placement === e[l].placement) throw new TypeError("Duplicated element (" + e[s].key + ")");
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return { elements: e, finishers: n };
|
|
74
|
+
}, fromElementDescriptor: function(e) {
|
|
75
|
+
var t = { kind: e.kind, key: e.key, placement: e.placement, descriptor: e.descriptor };
|
|
76
|
+
return Object.defineProperty(t, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), e.kind === "field" && (t.initializer = e.initializer), t;
|
|
77
|
+
}, toElementDescriptors: function(e) {
|
|
78
|
+
if (e !== void 0) return x(e).map(function(t) {
|
|
79
|
+
var n = this.toElementDescriptor(t);
|
|
80
|
+
return this.disallowProperty(t, "finisher", "An element descriptor"), this.disallowProperty(t, "extras", "An element descriptor"), n;
|
|
81
|
+
}, this);
|
|
82
|
+
}, toElementDescriptor: function(e) {
|
|
83
|
+
var t = e.kind + "";
|
|
84
|
+
if (t !== "method" && t !== "field") throw new TypeError(`An element descriptor's .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "` + t + '"');
|
|
85
|
+
var n = w(e.key), i = e.placement + "";
|
|
86
|
+
if (i !== "static" && i !== "prototype" && i !== "own") throw new TypeError(`An element descriptor's .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "` + i + '"');
|
|
87
|
+
var o = e.descriptor;
|
|
88
|
+
this.disallowProperty(e, "elements", "An element descriptor");
|
|
89
|
+
var a = { kind: t, key: n, placement: i, descriptor: Object.assign({}, o) };
|
|
90
|
+
return t !== "field" ? this.disallowProperty(e, "initializer", "A method descriptor") : (this.disallowProperty(o, "get", "The property descriptor of a field descriptor"), this.disallowProperty(o, "set", "The property descriptor of a field descriptor"), this.disallowProperty(o, "value", "The property descriptor of a field descriptor"), a.initializer = e.initializer), a;
|
|
91
|
+
}, toElementFinisherExtras: function(e) {
|
|
92
|
+
return { element: this.toElementDescriptor(e), finisher: v(e, "finisher"), extras: this.toElementDescriptors(e.extras) };
|
|
93
|
+
}, fromClassDescriptor: function(e) {
|
|
94
|
+
var t = { kind: "class", elements: e.map(this.fromElementDescriptor, this) };
|
|
95
|
+
return Object.defineProperty(t, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), t;
|
|
96
|
+
}, toClassDescriptor: function(e) {
|
|
97
|
+
var t = e.kind + "";
|
|
98
|
+
if (t !== "class") throw new TypeError(`A class descriptor's .kind property must be "class", but a decorator created a class descriptor with .kind "` + t + '"');
|
|
99
|
+
this.disallowProperty(e, "key", "A class descriptor"), this.disallowProperty(e, "placement", "A class descriptor"), this.disallowProperty(e, "descriptor", "A class descriptor"), this.disallowProperty(e, "initializer", "A class descriptor"), this.disallowProperty(e, "extras", "A class descriptor");
|
|
100
|
+
var n = v(e, "finisher");
|
|
101
|
+
return { elements: this.toElementDescriptors(e.elements), finisher: n };
|
|
102
|
+
}, runClassFinishers: function(e, t) {
|
|
103
|
+
for (var n = 0; n < t.length; n++) {
|
|
104
|
+
var i = (0, t[n])(e);
|
|
105
|
+
if (i !== void 0) {
|
|
106
|
+
if (typeof i != "function") throw new TypeError("Finishers must return a constructor.");
|
|
107
|
+
e = i;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return e;
|
|
111
|
+
}, disallowProperty: function(e, t, n) {
|
|
112
|
+
if (e[t] !== void 0) throw new TypeError(n + " can't have a ." + t + " property.");
|
|
113
|
+
} };
|
|
114
|
+
return r;
|
|
115
|
+
}
|
|
116
|
+
function P(r) {
|
|
117
|
+
var e, t = w(r.key);
|
|
118
|
+
r.kind === "method" ? e = { value: r.value, writable: !0, configurable: !0, enumerable: !1 } : r.kind === "get" ? e = { get: r.value, configurable: !0, enumerable: !1 } : r.kind === "set" ? e = { set: r.value, configurable: !0, enumerable: !1 } : r.kind === "field" && (e = { configurable: !0, writable: !0, enumerable: !0 });
|
|
119
|
+
var n = { kind: r.kind === "field" ? "field" : "method", key: t, placement: r.static ? "static" : r.kind === "field" ? "own" : "prototype", descriptor: e };
|
|
120
|
+
return r.decorators && (n.decorators = r.decorators), r.kind === "field" && (n.initializer = r.value), n;
|
|
121
|
+
}
|
|
122
|
+
function C(r, e) {
|
|
123
|
+
r.descriptor.get !== void 0 ? e.descriptor.get = r.descriptor.get : e.descriptor.set = r.descriptor.set;
|
|
124
|
+
}
|
|
125
|
+
function I(r) {
|
|
126
|
+
for (var e = [], t = function(a) {
|
|
127
|
+
return a.kind === "method" && a.key === o.key && a.placement === o.placement;
|
|
128
|
+
}, n = 0; n < r.length; n++) {
|
|
129
|
+
var i, o = r[n];
|
|
130
|
+
if (o.kind === "method" && (i = e.find(t)))
|
|
131
|
+
if (h(o.descriptor) || h(i.descriptor)) {
|
|
132
|
+
if (u(o) || u(i)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated.");
|
|
133
|
+
i.descriptor = o.descriptor;
|
|
134
|
+
} else {
|
|
135
|
+
if (u(o)) {
|
|
136
|
+
if (u(i)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + o.key + ").");
|
|
137
|
+
i.decorators = o.decorators;
|
|
138
|
+
}
|
|
139
|
+
C(o, i);
|
|
140
|
+
}
|
|
141
|
+
else e.push(o);
|
|
142
|
+
}
|
|
143
|
+
return e;
|
|
144
|
+
}
|
|
145
|
+
function u(r) {
|
|
146
|
+
return r.decorators && r.decorators.length;
|
|
147
|
+
}
|
|
148
|
+
function h(r) {
|
|
149
|
+
return r !== void 0 && !(r.value === void 0 && r.writable === void 0);
|
|
150
|
+
}
|
|
151
|
+
function v(r, e) {
|
|
152
|
+
var t = r[e];
|
|
153
|
+
if (t !== void 0 && typeof t != "function") throw new TypeError("Expected '" + e + "' to be a function");
|
|
154
|
+
return t;
|
|
155
|
+
}
|
|
156
|
+
function w(r) {
|
|
157
|
+
var e = _(r, "string");
|
|
158
|
+
return typeof e == "symbol" ? e : e + "";
|
|
159
|
+
}
|
|
160
|
+
function _(r, e) {
|
|
161
|
+
if (typeof r != "object" || !r) return r;
|
|
162
|
+
var t = r[Symbol.toPrimitive];
|
|
163
|
+
if (t !== void 0) {
|
|
164
|
+
var n = t.call(r, e);
|
|
165
|
+
if (typeof n != "object") return n;
|
|
166
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
167
|
+
}
|
|
168
|
+
return (e === "string" ? String : Number)(r);
|
|
169
|
+
}
|
|
170
|
+
function x(r) {
|
|
171
|
+
return O(r) || F(r) || z(r) || S();
|
|
172
|
+
}
|
|
173
|
+
function S() {
|
|
174
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
175
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
176
|
+
}
|
|
177
|
+
function z(r, e) {
|
|
178
|
+
if (r) {
|
|
179
|
+
if (typeof r == "string") return b(r, e);
|
|
180
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
181
|
+
return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? b(r, e) : void 0;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function b(r, e) {
|
|
185
|
+
(e == null || e > r.length) && (e = r.length);
|
|
186
|
+
for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t];
|
|
187
|
+
return n;
|
|
188
|
+
}
|
|
189
|
+
function F(r) {
|
|
190
|
+
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
|
|
191
|
+
}
|
|
192
|
+
function O(r) {
|
|
193
|
+
if (Array.isArray(r)) return r;
|
|
194
|
+
}
|
|
195
|
+
let R = A([D()], function(r) {
|
|
196
|
+
class e {
|
|
197
|
+
constructor() {
|
|
198
|
+
r(this);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return {
|
|
202
|
+
F: e,
|
|
203
|
+
d: [{
|
|
204
|
+
kind: "method",
|
|
205
|
+
static: !0,
|
|
206
|
+
key: "validate",
|
|
207
|
+
value: function(n, i, o, a, s) {
|
|
208
|
+
const l = o?.get(i?.dataTypeIdentifier?.genericKey), c = o?.get(i?.dataTypeIdentifier?.genericKey)?.sourceDataTypeIdentifiers, p = o?.get(i?.dataTypeIdentifier?.genericKey)?.genericCombinationStrategies;
|
|
209
|
+
if ((i?.key ?? "") in n && i?.dataTypeIdentifier?.genericKey && !l && !a?.getDataType(i.dataTypeIdentifier)) return !0;
|
|
210
|
+
if (!(a?.getDataType(i.dataTypeIdentifier) || l) || l && !a?.hasDataTypes(c) || l && (p?.length ?? 0) + 1 != c.length) return !1;
|
|
211
|
+
if (i?.dataTypeIdentifier?.genericKey && l && c) {
|
|
212
|
+
const d = c.map((f) => y(n.value[i?.key ?? ""], a?.getDataType(f), a, s, f.genericType.genericMappers)), E = d.length > 1 ? d.reduce((f, m, g) => p && p[g - 1].type == "OR" ? f || m : f && m) : d[0];
|
|
213
|
+
return (i?.key ?? "") in n && E;
|
|
214
|
+
}
|
|
215
|
+
return i?.dataTypeIdentifier?.dataType ? (i?.key ?? "") in n && y(n.value[i?.key ?? ""], a?.getDataType(i.dataTypeIdentifier), a) : (i?.key ?? "") in n && y(n.value[i?.key ?? ""], a?.getDataType(i.dataTypeIdentifier), a, s, T(i?.dataTypeIdentifier?.genericType?.genericMappers, o));
|
|
216
|
+
}
|
|
217
|
+
}]
|
|
218
|
+
};
|
|
219
|
+
});
|
|
220
|
+
export {
|
|
221
|
+
R as DFlowDataTypeContainsKeyRule
|
|
222
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DFlowDataTypeReactiveService } from '../DFlowDataType.service';
|
|
2
|
-
import { DataTypeRulesContainsKeyConfig, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
import { FlowView } from '../../DFlow.view';
|
|
2
|
+
import { DataTypeRulesContainsKeyConfig, Flow, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
3
|
export declare class DFlowDataTypeContainsTypeRule {
|
|
5
|
-
static validate(value: NodeParameterValue, config: DataTypeRulesContainsKeyConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?:
|
|
4
|
+
static validate(value: NodeParameterValue, config: DataTypeRulesContainsKeyConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?: Flow): boolean;
|
|
6
5
|
}
|