@code0-tech/pictor 0.0.0-mvp.3 → 0.0.0-mvp.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/compiler-runtime.js +5 -0
- package/dist/_virtual/compiler-runtime2.js +4 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/react-compiler-runtime.development.js +4 -0
- package/dist/_virtual/react-compiler-runtime.production.js +4 -0
- package/dist/_virtual/react-contenteditable.js +7 -0
- package/dist/_virtual/react-contenteditable2.js +4 -0
- package/dist/_virtual/react-dom-server-legacy.browser.development.js +4 -0
- package/dist/_virtual/react-dom-server-legacy.browser.production.js +4 -0
- package/dist/_virtual/react-dom-server.browser.development.js +4 -0
- package/dist/_virtual/react-dom-server.browser.production.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/server.browser.js +5 -0
- package/dist/_virtual/server.browser2.js +4 -0
- package/dist/assets/components/alert/Alert.style.css +1 -0
- package/dist/assets/components/aurora/Aurora.style.css +1 -0
- package/dist/assets/components/avatar/Avatar.style.css +1 -0
- package/dist/assets/components/badge/Badge.style.css +1 -0
- package/dist/assets/{Breadcrumb.css → components/breadcrumb/Breadcrumb.style.css} +1 -1
- package/dist/assets/components/button/Button.style.css +1 -0
- package/dist/assets/components/button-group/ButtonGroup.style.css +1 -0
- package/dist/assets/components/card/Card.style.css +1 -0
- package/dist/assets/components/command/Command.style.css +1 -0
- package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
- package/dist/assets/components/d-flow/DFlow.style.css +1 -0
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
- package/dist/assets/components/d-flow-function/DFlowFunctionDefaultCard.style.css +1 -0
- package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +1 -0
- package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +1 -0
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +1 -0
- package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +1 -0
- package/dist/assets/components/d-layout/DLayout.style.css +1 -0
- package/dist/assets/components/d-resizable/DResizable.style.css +1 -0
- package/dist/assets/components/dialog/Dialog.style.css +1 -0
- package/dist/assets/components/file-tabs/FileTabs.style.css +1 -0
- package/dist/assets/components/form/Input.style.css +1 -0
- package/dist/assets/components/menu/Menu.style.css +1 -0
- package/dist/assets/{ScrollArea.css → components/scroll-area/ScrollArea.style.css} +1 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -0
- package/dist/assets/components/spacing/Spacing.style.css +1 -0
- package/dist/assets/components/tab/Tab.style.css +1 -0
- package/dist/assets/components/text/Text.style.css +1 -0
- package/dist/assets/components/toast/Toast.style.css +1 -0
- package/dist/assets/components/tooltip/Tooltip.style.css +1 -0
- package/dist/assets/{DFlow.css → node_modules/@xyflow/react/dist/style.css} +1 -1
- package/dist/components/alert/Alert.d.ts +7 -0
- package/dist/components/alert/Alert.js +38 -0
- package/dist/components/aurora/Aurora.d.ts +5 -0
- package/dist/components/aurora/Aurora.js +23 -0
- package/dist/components/avatar/Avatar.js +9 -9
- package/dist/components/badge/Badge.d.ts +2 -1
- package/dist/components/badge/Badge.js +58 -17
- package/dist/components/breadcrumb/Breadcrumb.js +16 -28
- package/dist/components/button/Button.d.ts +3 -2
- package/dist/components/button/Button.js +23 -20
- package/dist/components/button-group/ButtonGroup.js +12 -11
- package/dist/components/card/Card.d.ts +2 -1
- package/dist/components/card/Card.js +25 -22
- package/dist/components/card/CardSection.d.ts +1 -0
- package/dist/components/card/CardSection.js +18 -12
- package/dist/components/col/Col.js +9 -8
- package/dist/components/command/Command.js +19 -18
- package/dist/components/container/Container.js +12 -11
- package/dist/components/context-menu/ContextMenu.d.ts +31 -0
- package/dist/components/context-menu/ContextMenu.js +191 -0
- package/dist/components/d-application/DApplication.service.d.ts +5 -0
- package/dist/components/d-application/DApplication.service.js +9 -0
- package/dist/components/d-flow/DFlow.d.ts +7 -3
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +3 -2
- package/dist/components/d-flow/DFlow.edges.hook.js +100 -136
- package/dist/components/d-flow/DFlow.js +313 -258
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +6 -2
- package/dist/components/d-flow/DFlow.nodes.hook.js +102 -121
- package/dist/components/d-flow/DFlow.service.d.ts +17 -7
- package/dist/components/d-flow/DFlow.service.js +132 -7
- package/dist/components/d-flow/DFlow.util.d.ts +4 -0
- package/dist/components/d-flow/DFlow.util.js +63 -0
- package/dist/components/d-flow/{edge/DFlowEdge.d.ts → DFlowEdge.d.ts} +5 -3
- package/dist/components/d-flow/DFlowEdge.js +69 -0
- package/dist/components/d-flow/index.d.ts +1 -10
- package/dist/components/d-flow/index.js +9 -44
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +14 -0
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +96 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +13 -4
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +76 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +1 -1
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +222 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +229 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js +3 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +246 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +10 -0
- package/dist/components/d-flow-file/DFlowTabDefault.d.ts +7 -0
- package/dist/components/d-flow-file/DFlowTabDefault.js +104 -0
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
- package/dist/components/d-flow-file/DFlowTabTrigger.js +64 -0
- package/dist/components/d-flow-file/DFlowTabs.d.ts +8 -0
- package/dist/components/d-flow-file/DFlowTabs.js +132 -0
- package/dist/components/d-flow-file/index.d.ts +1 -0
- package/dist/components/d-flow-file/index.js +4 -0
- package/dist/components/d-flow-folder/DFlowFolder.d.ts +33 -0
- package/dist/components/d-flow-folder/DFlowFolder.js +208 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +45 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +9 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +76 -0
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +10 -0
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +55 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +50 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +10 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
- package/dist/components/d-flow-folder/index.d.ts +4 -0
- package/dist/components/d-flow-folder/index.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +8 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.return.hook.d.ts +2 -2
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +9 -0
- package/dist/components/d-flow-function/DFlowFunction.service.d.ts +11 -0
- package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +24 -9
- package/dist/components/d-flow-function/DFlowFunction.view.js +139 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +117 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.d.ts +13 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.js +68 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts +3 -4
- package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +43 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +78 -0
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
- package/dist/components/d-flow-input/DFlowInputDataType.js +437 -0
- package/dist/components/d-flow-input/DFlowInputDefault.d.ts +10 -0
- package/dist/components/d-flow-input/DFlowInputDefault.js +128 -0
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +7 -0
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +24 -0
- package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +11 -0
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +44 -0
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +11 -0
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +33 -0
- package/dist/components/d-flow-panel/DFlowExport.d.ts +6 -0
- package/dist/components/d-flow-panel/DFlowExport.js +32 -0
- package/dist/components/d-flow-panel/DFlowMiniMap.js +33 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +6 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.js +72 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +4 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +47 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +2 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.js +94 -0
- package/dist/components/d-flow-panel/index.d.ts +5 -0
- package/dist/components/d-flow-panel/index.js +12 -0
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +34 -0
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +50 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +133 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +24 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +14 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +4 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +72 -0
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.js +12 -11
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js +5 -5
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionSearchInput.d.ts +1 -1
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +35 -0
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +3 -0
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +44 -0
- package/dist/components/d-flow-suggestion/index.d.ts +1 -0
- package/dist/components/d-flow-suggestion/index.js +4 -0
- package/dist/components/d-flow-type/DFlowType.service.d.ts +11 -0
- package/dist/components/d-flow-type/DFlowType.service.js +12 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +10 -4
- package/dist/components/d-flow-type/DFlowType.view.js +85 -0
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +2 -0
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +18 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +22 -0
- package/dist/components/d-flow-validation/DFlowValidation.js +66 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +58 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.js +8 -0
- package/dist/components/{d-flow/validation → d-flow-validation}/index.js +2 -2
- package/dist/components/d-fullscreen/DFullScreen.d.ts +1 -2
- package/dist/components/d-fullscreen/DFullScreen.js +24 -18
- package/dist/components/d-layout/DLayout.js +27 -26
- package/dist/components/d-license/DNamespaceLicense.service.d.ts +11 -0
- package/dist/components/d-license/DNamespaceLicense.service.js +12 -0
- package/dist/components/d-license/index.d.ts +2 -0
- package/dist/components/d-license/index.js +6 -0
- package/dist/components/d-member/DNamespaceMember.service.d.ts +13 -0
- package/dist/components/d-member/DNamespaceMember.service.js +17 -0
- package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.d.ts +4 -1
- package/dist/components/{d-namespace/member → d-member}/DNamespaceMember.view.js +16 -11
- package/dist/components/d-member/DNamespaceMemberCard.d.ts +10 -0
- package/dist/components/d-member/DNamespaceMemberCard.js +16 -0
- package/dist/components/d-member/DNamespaceMemberContent.d.ts +10 -0
- package/dist/components/d-member/DNamespaceMemberContent.js +224 -0
- package/dist/components/d-member/DNamespaceMemberList.d.ts +12 -0
- package/dist/components/d-member/DNamespaceMemberList.js +23 -0
- package/dist/components/d-member/index.d.ts +4 -0
- package/dist/components/d-member/index.js +10 -0
- package/dist/components/d-namespace/DNamespace.service.d.ts +1 -1
- package/dist/components/d-namespace/DNamespace.service.js +7 -6
- package/dist/components/d-namespace/index.d.ts +0 -10
- package/dist/components/d-namespace/index.js +4 -33
- package/dist/components/d-organization/DOrganization.service.d.ts +3 -3
- package/dist/components/d-organization/DOrganization.service.js +8 -7
- package/dist/components/d-organization/DOrganization.view.d.ts +4 -1
- package/dist/components/d-organization/DOrganization.view.js +21 -18
- package/dist/components/d-organization/DOrganizationCard.d.ts +4 -3
- package/dist/components/d-organization/DOrganizationCard.js +13 -60
- package/dist/components/d-organization/DOrganizationList.d.ts +10 -0
- package/dist/components/d-organization/DOrganizationList.js +23 -0
- package/dist/components/d-organization/DOrganizationMenu.js +5 -5
- package/dist/components/d-organization/DOrganizatonContent.d.ts +10 -0
- package/dist/components/d-organization/DOrganizatonContent.js +101 -0
- package/dist/components/d-organization/index.d.ts +1 -0
- package/dist/components/d-organization/index.js +30 -10
- package/dist/components/d-project/DNamespaceProject.service.d.ts +12 -0
- package/dist/components/d-project/DNamespaceProject.service.js +12 -0
- package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.d.ts +4 -1
- package/dist/components/{d-namespace/project → d-project}/DNamespaceProject.view.js +13 -10
- package/dist/components/d-project/DNamespaceProjectCard.d.ts +9 -0
- package/dist/components/d-project/DNamespaceProjectCard.js +17 -0
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +10 -0
- package/dist/components/d-project/DNamespaceProjectContent.js +71 -0
- package/dist/components/d-project/DNamespaceProjectList.d.ts +11 -0
- package/dist/components/d-project/DNamespaceProjectList.js +25 -0
- package/dist/components/d-project/DNamespaceProjectMenu.d.ts +13 -0
- package/dist/components/d-project/DNamespaceProjectMenu.js +57 -0
- package/dist/components/d-project/index.d.ts +5 -0
- package/dist/components/d-project/index.js +26 -0
- package/dist/components/d-resizable/DResizable.d.ts +4 -4
- package/dist/components/d-resizable/DResizable.js +26 -23
- package/dist/components/d-role/DNamespaceRole.service.d.ts +13 -0
- package/dist/components/d-role/DNamespaceRole.service.js +12 -0
- package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.d.ts +4 -1
- package/dist/components/{d-namespace/role → d-role}/DNamespaceRole.view.js +8 -4
- package/dist/components/d-role/DNamespaceRoleCard.d.ts +11 -0
- package/dist/components/d-role/DNamespaceRoleCard.js +17 -0
- package/dist/components/d-role/DNamespaceRoleContent.d.ts +10 -0
- package/dist/components/d-role/DNamespaceRoleContent.js +162 -0
- package/dist/components/d-role/DNamespaceRoleList.d.ts +12 -0
- package/dist/components/d-role/DNamespaceRoleList.js +24 -0
- package/dist/components/d-role/DNamespaceRolePermissions.d.ts +5 -0
- package/dist/components/d-role/DNamespaceRolePermissions.js +123 -0
- package/dist/components/d-role/index.d.ts +4 -0
- package/dist/components/d-role/index.js +10 -0
- package/dist/components/d-runtime/DRuntime.service.d.ts +5 -2
- package/dist/components/d-runtime/DRuntime.service.js +2 -4
- package/dist/components/d-runtime/DRuntime.view.d.ts +4 -1
- package/dist/components/d-runtime/DRuntime.view.js +6 -3
- package/dist/components/d-runtime/DRuntimeCard.d.ts +9 -0
- package/dist/components/d-runtime/DRuntimeCard.js +18 -0
- package/dist/components/d-runtime/DRuntimeContent.d.ts +9 -0
- package/dist/components/d-runtime/DRuntimeContent.js +45 -0
- package/dist/components/d-runtime/DRuntimeList.d.ts +12 -0
- package/dist/components/d-runtime/DRuntimeList.js +28 -0
- package/dist/components/d-runtime/index.d.ts +2 -0
- package/dist/components/d-runtime/index.js +6 -2
- package/dist/components/d-user/DUser.service.d.ts +3 -4
- package/dist/components/d-user/DUser.service.js +9 -9
- package/dist/components/d-user/DUser.session.hook.d.ts +3 -0
- package/dist/components/d-user/DUser.session.hook.js +16 -0
- package/dist/components/d-user/DUser.view.d.ts +4 -1
- package/dist/components/d-user/DUser.view.js +13 -10
- package/dist/components/d-user/DUserCard.d.ts +8 -0
- package/dist/components/d-user/DUserCard.js +15 -0
- package/dist/components/d-user/DUserContent.d.ts +8 -0
- package/dist/components/d-user/DUserContent.js +84 -0
- package/dist/components/d-user/DUserInput.d.ts +7 -0
- package/dist/components/d-user/DUserInput.js +100 -0
- package/dist/components/d-user/DUserList.d.ts +9 -0
- package/dist/components/d-user/DUserList.js +22 -0
- package/dist/components/d-user/DUserMenu.js +20 -19
- package/dist/components/d-user/index.d.ts +4 -0
- package/dist/components/d-user/index.js +17 -8
- package/dist/components/dialog/Dialog.d.ts +2 -1
- package/dist/components/dialog/Dialog.js +69 -60
- package/dist/components/file-tabs/FileTabs.js +41 -40
- package/dist/components/file-tabs/FileTabs.service.d.ts +5 -1
- package/dist/components/file-tabs/FileTabs.service.js +74 -26
- package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
- package/dist/components/flex/Flex.js +2 -2
- package/dist/components/form/CheckboxInput.js +62 -53
- package/dist/components/form/EmailInput.js +11 -10
- package/dist/components/form/Input.d.ts +18 -5
- package/dist/components/form/Input.js +333 -139
- package/dist/components/form/Input.syntax.hook.d.ts +10 -0
- package/dist/components/form/Input.syntax.hook.js +14 -0
- package/dist/components/form/Input.utils.d.ts +10 -0
- package/dist/components/form/Input.utils.js +38 -0
- package/dist/components/form/InputContentEditable.hook.d.ts +40 -0
- package/dist/components/form/InputContentEditable.hook.js +471 -0
- package/dist/components/form/InputDescription.js +1 -1
- package/dist/components/form/InputLabel.js +1 -1
- package/dist/components/form/InputMessage.js +1 -1
- package/dist/components/form/InputSuggestion.d.ts +16 -8
- package/dist/components/form/InputSuggestion.js +189 -73
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +11 -10
- package/dist/components/form/PinInput.js +2 -2
- package/dist/components/form/RadioGroup.js +2 -2
- package/dist/components/form/RadioInput.js +2 -2
- package/dist/components/form/SwitchInput.js +7 -7
- package/dist/components/form/TextInput.js +12 -11
- package/dist/components/form/index.js +26 -27
- package/dist/components/form/useForm.d.ts +3 -1
- package/dist/components/form/useForm.js +53 -33
- package/dist/components/menu/Menu.d.ts +7 -3
- package/dist/components/menu/Menu.js +24 -24
- package/dist/components/quote/Quote.js +32 -36
- package/dist/components/row/Row.js +10 -9
- package/dist/components/scroll-area/ScrollArea.js +18 -17
- package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
- package/dist/components/segmented-control/SegmentedControl.js +19 -16
- package/dist/components/spacing/Spacing.d.ts +6 -0
- package/dist/components/spacing/Spacing.js +23 -0
- package/dist/components/tab/Tab.d.ts +11 -0
- package/dist/components/tab/Tab.js +40 -0
- package/dist/components/text/Text.js +2 -2
- package/dist/components/toast/Toast.d.ts +13 -0
- package/dist/components/toast/Toast.js +62 -0
- package/dist/components/tooltip/Tooltip.js +36 -35
- package/dist/index.d.ts +17 -0
- package/dist/index.js +264 -216
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/fast-deep-equal/index.js +31 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/object-assign/index.js +49 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
- package/dist/node_modules/prop-types/index.js +17 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +87 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +70 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +14 -0
- package/dist/node_modules/react/compiler-runtime.js +10 -0
- package/dist/node_modules/react-contenteditable/lib/react-contenteditable.js +132 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +6235 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +4096 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +6753 -0
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +4645 -0
- package/dist/node_modules/react-dom/server.browser.js +15 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/dist/utils/arrayService.d.ts +2 -2
- package/dist/utils/contextStore.js +1 -1
- package/dist/utils/generics.d.ts +7 -6
- package/dist/utils/generics.js +136 -124
- package/dist/utils/index.js +22 -21
- package/dist/utils/inspection.d.ts +4 -2
- package/dist/utils/inspection.js +27 -2
- package/dist/utils/objectStore.js +15 -15
- package/dist/utils/reactiveArrayService.d.ts +3 -3
- package/dist/utils/reactiveArrayService.js +53 -43
- package/dist/utils/types.d.ts +2 -2
- package/package.json +38 -33
- package/dist/DFlowDataType.service-Dz8pQUeO.js +0 -793
- package/dist/assets/Avatar.css +0 -1
- package/dist/assets/Badge.css +0 -1
- package/dist/assets/Button.css +0 -1
- package/dist/assets/ButtonGroup.css +0 -1
- package/dist/assets/Card.css +0 -1
- package/dist/assets/Command.css +0 -1
- package/dist/assets/DFlowFolder.css +0 -1
- package/dist/assets/DFlowFunctionDefaultCard.css +0 -1
- package/dist/assets/DFlowInputDataType.css +0 -1
- package/dist/assets/DFlowMiniMap.css +0 -1
- package/dist/assets/DFlowSuggestionSearchInput.css +0 -1
- package/dist/assets/DFlowValidation.css +0 -1
- package/dist/assets/DLayout.css +0 -1
- package/dist/assets/DResizable.css +0 -1
- package/dist/assets/Dialog.css +0 -1
- package/dist/assets/FileTabs.css +0 -1
- package/dist/assets/Input.css +0 -1
- package/dist/assets/Menu.css +0 -1
- package/dist/assets/SegmentedControl.css +0 -1
- package/dist/assets/Text.css +0 -1
- package/dist/assets/Tooltip.css +0 -1
- package/dist/compiler-runtime-BNHg76kC.js +0 -36
- package/dist/components/d-flow/DFlow.view.d.ts +0 -109
- package/dist/components/d-flow/DFlow.view.js +0 -213
- package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
- package/dist/components/d-flow/control/DFlowControl.js +0 -77
- package/dist/components/d-flow/control/index.d.ts +0 -1
- package/dist/components/d-flow/control/index.js +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
- package/dist/components/d-flow/data-type/DFlowDataType.service.js +0 -7
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -6
- package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -6
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -6
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -7
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.js +0 -8
- package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
- package/dist/components/d-flow/folder/DFlowFolder.d.ts +0 -19
- package/dist/components/d-flow/folder/DFlowFolder.js +0 -118
- package/dist/components/d-flow/folder/index.d.ts +0 -1
- package/dist/components/d-flow/folder/index.js +0 -6
- package/dist/components/d-flow/function/DFlowFunction.input.hook.js +0 -9
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
- package/dist/components/d-flow/function/DFlowFunction.service.d.ts +0 -6
- package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -75
- package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
- package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -97
- package/dist/components/d-flow/input/DFlowInputDataType.js +0 -422
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -21
- package/dist/components/d-flow/minimap/index.d.ts +0 -1
- package/dist/components/d-flow/minimap/index.js +0 -4
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.d.ts +0 -33
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -151
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -21
- package/dist/components/d-flow/suggestion/index.d.ts +0 -2
- package/dist/components/d-flow/suggestion/index.js +0 -7
- package/dist/components/d-flow/tab/DFlowTabDefault.d.ts +0 -11
- package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -97
- package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
- package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
- package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
- package/dist/components/d-flow/type/DFlowType.service.d.ts +0 -6
- package/dist/components/d-flow/type/DFlowType.service.js +0 -9
- package/dist/components/d-flow/type/DFlowType.view.js +0 -69
- package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
- package/dist/components/d-flow/validation/DFlowValidation.js +0 -59
- package/dist/components/d-namespace/license/DNamespaceLicense.service.d.ts +0 -8
- package/dist/components/d-namespace/license/DNamespaceLicense.service.js +0 -11
- package/dist/components/d-namespace/member/DNamespaceMember.service.d.ts +0 -9
- package/dist/components/d-namespace/member/DNamespaceMember.service.js +0 -11
- package/dist/components/d-namespace/project/DNamespaceProject.service.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProject.service.js +0 -11
- package/dist/components/d-namespace/project/DNamespaceProjectCard.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProjectCard.js +0 -57
- package/dist/components/d-namespace/project/DNamespaceProjectMenu.d.ts +0 -9
- package/dist/components/d-namespace/project/DNamespaceProjectMenu.js +0 -18
- package/dist/components/d-namespace/role/DNamespaceRole.service.d.ts +0 -10
- package/dist/components/d-namespace/role/DNamespaceRole.service.js +0 -11
- /package/dist/assets/{Col.css → components/col/Col.style.css} +0 -0
- /package/dist/assets/{Container.css → components/container/Container.style.css} +0 -0
- /package/dist/assets/{DFullScreen.css → components/d-fullscreen/DFullScreen.style.css} +0 -0
- /package/dist/assets/{Flex.css → components/flex/Flex.style.css} +0 -0
- /package/dist/assets/{Quote.css → components/quote/Quote.style.css} +0 -0
- /package/dist/assets/{Row.css → components/row/Row.style.css} +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
- /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +0 -0
- /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.d.ts +0 -0
- /package/dist/components/{d-namespace/license → d-license}/DNamespaceLicense.view.js +0 -0
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { genericMapping as E, staticImplements as T } from "./DFlowDataTypeRule.js";
|
|
2
|
+
import { useValueValidation as y } from "../../d-flow-validation/DValueValidation.hook.js";
|
|
3
|
+
function D(r, e, t, n) {
|
|
4
|
+
var i = w(), o = e(function(s) {
|
|
5
|
+
i.initializeInstanceElements(s, a.elements);
|
|
6
|
+
}, t), a = i.decorateClass(C(o.d.map(A)), r);
|
|
7
|
+
return i.initializeClassElements(o.F, a.elements), i.runClassFinishers(o.F, a.finishers);
|
|
8
|
+
}
|
|
9
|
+
function w() {
|
|
10
|
+
w = 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 (!m(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), p = this.toElementFinisherExtras((0, o[a])(l) || l);
|
|
57
|
+
e = p.element, this.addElementPlacement(e, t), p.finisher && i.push(p.finisher);
|
|
58
|
+
var d = p.extras;
|
|
59
|
+
if (d) {
|
|
60
|
+
for (var c = 0; c < d.length; c++) this.addElementPlacement(d[c], t);
|
|
61
|
+
n.push.apply(n, d);
|
|
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 _(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 = g(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 A(r) {
|
|
117
|
+
var e, t = g(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 P(r, e) {
|
|
123
|
+
r.descriptor.get !== void 0 ? e.descriptor.get = r.descriptor.get : e.descriptor.set = r.descriptor.set;
|
|
124
|
+
}
|
|
125
|
+
function C(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 (m(o) || m(i)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated.");
|
|
133
|
+
i.descriptor = o.descriptor;
|
|
134
|
+
} else {
|
|
135
|
+
if (m(o)) {
|
|
136
|
+
if (m(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
|
+
P(o, i);
|
|
140
|
+
}
|
|
141
|
+
else e.push(o);
|
|
142
|
+
}
|
|
143
|
+
return e;
|
|
144
|
+
}
|
|
145
|
+
function m(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 g(r) {
|
|
157
|
+
var e = I(r, "string");
|
|
158
|
+
return typeof e == "symbol" ? e : e + "";
|
|
159
|
+
}
|
|
160
|
+
function I(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 _(r) {
|
|
171
|
+
return F(r) || z(r) || S(r) || x();
|
|
172
|
+
}
|
|
173
|
+
function x() {
|
|
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 S(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 z(r) {
|
|
190
|
+
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
|
|
191
|
+
}
|
|
192
|
+
function F(r) {
|
|
193
|
+
if (Array.isArray(r)) return r;
|
|
194
|
+
}
|
|
195
|
+
let K = D([T()], 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), p = o?.get(i?.dataTypeIdentifier?.genericKey)?.sourceDataTypeIdentifiers, d = o?.get(i?.dataTypeIdentifier?.genericKey)?.genericCombinationStrategies;
|
|
209
|
+
if ("value" in n && !Array.isArray(n.value)) return !1;
|
|
210
|
+
if (i?.dataTypeIdentifier?.genericKey && !l && !a?.getDataType(i.dataTypeIdentifier)) return !0;
|
|
211
|
+
if (!(a?.getDataType(i.dataTypeIdentifier) || l) || l && !a?.hasDataTypes(p) || l && (d?.length ?? 0) + 1 != p.length) return !1;
|
|
212
|
+
if (i?.dataTypeIdentifier?.genericKey && l && p) {
|
|
213
|
+
const c = p.map((f) => n.value.every((u) => f.genericType ? y({
|
|
214
|
+
__typename: "LiteralValue",
|
|
215
|
+
value: u
|
|
216
|
+
}, a?.getDataType(f), a, s, f.genericType.genericMappers) : y({
|
|
217
|
+
__typename: "LiteralValue",
|
|
218
|
+
value: u
|
|
219
|
+
}, a?.getDataType(f), a, s)));
|
|
220
|
+
return c.length > 1 ? c.reduce((f, u, k) => d && d[k - 1].type == "OR" ? f || u : f && u) : c[0];
|
|
221
|
+
}
|
|
222
|
+
return i?.dataTypeIdentifier?.dataType ? n.value.every((c) => y(c, a?.getDataType(i.dataTypeIdentifier), a)) : n.value.every((c) => y(c, a?.getDataType(i.dataTypeIdentifier), a, s, E((i.dataTypeIdentifier?.genericType).genericMappers, o)));
|
|
223
|
+
}
|
|
224
|
+
}]
|
|
225
|
+
};
|
|
226
|
+
});
|
|
227
|
+
export {
|
|
228
|
+
K as DFlowDataTypeContainsTypeRule
|
|
229
|
+
};
|
package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts
RENAMED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { DFlowDataTypeReactiveService } from '../DFlowDataType.service';
|
|
2
|
-
import { DataTypeIdentifier, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
import { FlowView } from '../../DFlow.view';
|
|
2
|
+
import { DataTypeIdentifier, Flow, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
3
|
export interface DFlowDataTypeParentRuleConfig {
|
|
5
4
|
type: DataTypeIdentifier;
|
|
6
5
|
}
|
|
7
6
|
export declare class DFlowDataTypeParentRule {
|
|
8
|
-
static validate(value: NodeParameterValue, config: DFlowDataTypeParentRuleConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?:
|
|
7
|
+
static validate(value: NodeParameterValue, config: DFlowDataTypeParentRuleConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?: Flow): boolean;
|
|
9
8
|
}
|
package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { staticImplements as w } from "./DFlowDataTypeRule.js";
|
|
2
|
-
import { replaceGenericKeysInType as b } from "
|
|
3
|
-
import {
|
|
2
|
+
import { replaceGenericKeysInType as b } from "../../../utils/generics.js";
|
|
3
|
+
import { useValueValidation as E } from "../../d-flow-validation/DValueValidation.hook.js";
|
|
4
4
|
function k(r, e, t, i) {
|
|
5
5
|
var n = y(), o = e(function(a) {
|
|
6
6
|
n.initializeInstanceElements(a, s.elements);
|
|
@@ -207,7 +207,7 @@ let j = k([w()], function(r) {
|
|
|
207
207
|
key: "validate",
|
|
208
208
|
value: function(i, n, o, s, a) {
|
|
209
209
|
const l = o ? b(n.type, o) : n.type;
|
|
210
|
-
return s ? E(i, s.getDataType(l), a, Array.from(o, ([p, c]) => c)) : !1;
|
|
210
|
+
return s ? E(i, s.getDataType(l), s, a, Array.from(o, ([p, c]) => c)) : !1;
|
|
211
211
|
}
|
|
212
212
|
}]
|
|
213
213
|
};
|
package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts
RENAMED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DFlowDataTypeReactiveService } from '../DFlowDataType.service';
|
|
2
|
-
import { DataTypeRulesReturnTypeConfig, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
import { FlowView } from '../../DFlow.view';
|
|
2
|
+
import { DataTypeRulesReturnTypeConfig, Flow, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
3
|
export declare class DFlowDataTypeReturnTypeRule {
|
|
5
|
-
static validate(value: NodeParameterValue, config: DataTypeRulesReturnTypeConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?:
|
|
4
|
+
static validate(value: NodeParameterValue, config: DataTypeRulesReturnTypeConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?: Flow): boolean;
|
|
6
5
|
}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { genericMapping as I, staticImplements as A } from "./DFlowDataTypeRule.js";
|
|
2
|
+
import { useDataTypeValidation as T } from "../../d-flow-validation/DDataTypeValidation.hook.js";
|
|
3
|
+
import { useValueValidation as v } from "../../d-flow-validation/DValueValidation.hook.js";
|
|
4
|
+
function P(r, e, t, n) {
|
|
5
|
+
var i = k(), o = e(function(s) {
|
|
6
|
+
i.initializeInstanceElements(s, a.elements);
|
|
7
|
+
}, t), a = i.decorateClass(x(o.d.map(_)), r);
|
|
8
|
+
return i.initializeClassElements(o.F, a.elements), i.runClassFinishers(o.F, a.finishers);
|
|
9
|
+
}
|
|
10
|
+
function k() {
|
|
11
|
+
k = function() {
|
|
12
|
+
return r;
|
|
13
|
+
};
|
|
14
|
+
var r = { elementsDefinitionOrder: [["method"], ["field"]], initializeInstanceElements: function(e, t) {
|
|
15
|
+
["method", "field"].forEach(function(n) {
|
|
16
|
+
t.forEach(function(i) {
|
|
17
|
+
i.kind === n && i.placement === "own" && this.defineClassElement(e, i);
|
|
18
|
+
}, this);
|
|
19
|
+
}, this);
|
|
20
|
+
}, initializeClassElements: function(e, t) {
|
|
21
|
+
var n = e.prototype;
|
|
22
|
+
["method", "field"].forEach(function(i) {
|
|
23
|
+
t.forEach(function(o) {
|
|
24
|
+
var a = o.placement;
|
|
25
|
+
if (o.kind === i && (a === "static" || a === "prototype")) {
|
|
26
|
+
var s = a === "static" ? e : n;
|
|
27
|
+
this.defineClassElement(s, o);
|
|
28
|
+
}
|
|
29
|
+
}, this);
|
|
30
|
+
}, this);
|
|
31
|
+
}, defineClassElement: function(e, t) {
|
|
32
|
+
var n = t.descriptor;
|
|
33
|
+
if (t.kind === "field") {
|
|
34
|
+
var i = t.initializer;
|
|
35
|
+
n = { enumerable: n.enumerable, writable: n.writable, configurable: n.configurable, value: i === void 0 ? void 0 : i.call(e) };
|
|
36
|
+
}
|
|
37
|
+
Object.defineProperty(e, t.key, n);
|
|
38
|
+
}, decorateClass: function(e, t) {
|
|
39
|
+
var n = [], i = [], o = { static: [], prototype: [], own: [] };
|
|
40
|
+
if (e.forEach(function(s) {
|
|
41
|
+
this.addElementPlacement(s, o);
|
|
42
|
+
}, this), e.forEach(function(s) {
|
|
43
|
+
if (!y(s)) return n.push(s);
|
|
44
|
+
var l = this.decorateElement(s, o);
|
|
45
|
+
n.push(l.element), n.push.apply(n, l.extras), i.push.apply(i, l.finishers);
|
|
46
|
+
}, this), !t) return { elements: n, finishers: i };
|
|
47
|
+
var a = this.decorateConstructor(n, t);
|
|
48
|
+
return i.push.apply(i, a.finishers), a.finishers = i, a;
|
|
49
|
+
}, addElementPlacement: function(e, t, n) {
|
|
50
|
+
var i = t[e.placement];
|
|
51
|
+
if (!n && i.indexOf(e.key) !== -1) throw new TypeError("Duplicated element (" + e.key + ")");
|
|
52
|
+
i.push(e.key);
|
|
53
|
+
}, decorateElement: function(e, t) {
|
|
54
|
+
for (var n = [], i = [], o = e.decorators, a = o.length - 1; a >= 0; a--) {
|
|
55
|
+
var s = t[e.placement];
|
|
56
|
+
s.splice(s.indexOf(e.key), 1);
|
|
57
|
+
var l = this.fromElementDescriptor(e), p = this.toElementFinisherExtras((0, o[a])(l) || l);
|
|
58
|
+
e = p.element, this.addElementPlacement(e, t), p.finisher && i.push(p.finisher);
|
|
59
|
+
var c = p.extras;
|
|
60
|
+
if (c) {
|
|
61
|
+
for (var d = 0; d < c.length; d++) this.addElementPlacement(c[d], t);
|
|
62
|
+
n.push.apply(n, c);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return { element: e, finishers: i, extras: n };
|
|
66
|
+
}, decorateConstructor: function(e, t) {
|
|
67
|
+
for (var n = [], i = t.length - 1; i >= 0; i--) {
|
|
68
|
+
var o = this.fromClassDescriptor(e), a = this.toClassDescriptor((0, t[i])(o) || o);
|
|
69
|
+
if (a.finisher !== void 0 && n.push(a.finisher), a.elements !== void 0) {
|
|
70
|
+
e = a.elements;
|
|
71
|
+
for (var s = 0; s < e.length - 1; s++) for (var l = s + 1; l < e.length; l++) if (e[s].key === e[l].key && e[s].placement === e[l].placement) throw new TypeError("Duplicated element (" + e[s].key + ")");
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return { elements: e, finishers: n };
|
|
75
|
+
}, fromElementDescriptor: function(e) {
|
|
76
|
+
var t = { kind: e.kind, key: e.key, placement: e.placement, descriptor: e.descriptor };
|
|
77
|
+
return Object.defineProperty(t, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), e.kind === "field" && (t.initializer = e.initializer), t;
|
|
78
|
+
}, toElementDescriptors: function(e) {
|
|
79
|
+
if (e !== void 0) return R(e).map(function(t) {
|
|
80
|
+
var n = this.toElementDescriptor(t);
|
|
81
|
+
return this.disallowProperty(t, "finisher", "An element descriptor"), this.disallowProperty(t, "extras", "An element descriptor"), n;
|
|
82
|
+
}, this);
|
|
83
|
+
}, toElementDescriptor: function(e) {
|
|
84
|
+
var t = e.kind + "";
|
|
85
|
+
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 + '"');
|
|
86
|
+
var n = E(e.key), i = e.placement + "";
|
|
87
|
+
if (i !== "static" && i !== "prototype" && i !== "own") throw new TypeError(`An element descriptor's .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "` + i + '"');
|
|
88
|
+
var o = e.descriptor;
|
|
89
|
+
this.disallowProperty(e, "elements", "An element descriptor");
|
|
90
|
+
var a = { kind: t, key: n, placement: i, descriptor: Object.assign({}, o) };
|
|
91
|
+
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;
|
|
92
|
+
}, toElementFinisherExtras: function(e) {
|
|
93
|
+
return { element: this.toElementDescriptor(e), finisher: g(e, "finisher"), extras: this.toElementDescriptors(e.extras) };
|
|
94
|
+
}, fromClassDescriptor: function(e) {
|
|
95
|
+
var t = { kind: "class", elements: e.map(this.fromElementDescriptor, this) };
|
|
96
|
+
return Object.defineProperty(t, Symbol.toStringTag, { value: "Descriptor", configurable: !0 }), t;
|
|
97
|
+
}, toClassDescriptor: function(e) {
|
|
98
|
+
var t = e.kind + "";
|
|
99
|
+
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 + '"');
|
|
100
|
+
this.disallowProperty(e, "key", "A class descriptor"), this.disallowProperty(e, "placement", "A class descriptor"), this.disallowProperty(e, "descriptor", "A class descriptor"), this.disallowProperty(e, "initializer", "A class descriptor"), this.disallowProperty(e, "extras", "A class descriptor");
|
|
101
|
+
var n = g(e, "finisher");
|
|
102
|
+
return { elements: this.toElementDescriptors(e.elements), finisher: n };
|
|
103
|
+
}, runClassFinishers: function(e, t) {
|
|
104
|
+
for (var n = 0; n < t.length; n++) {
|
|
105
|
+
var i = (0, t[n])(e);
|
|
106
|
+
if (i !== void 0) {
|
|
107
|
+
if (typeof i != "function") throw new TypeError("Finishers must return a constructor.");
|
|
108
|
+
e = i;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return e;
|
|
112
|
+
}, disallowProperty: function(e, t, n) {
|
|
113
|
+
if (e[t] !== void 0) throw new TypeError(n + " can't have a ." + t + " property.");
|
|
114
|
+
} };
|
|
115
|
+
return r;
|
|
116
|
+
}
|
|
117
|
+
function _(r) {
|
|
118
|
+
var e, t = E(r.key);
|
|
119
|
+
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 });
|
|
120
|
+
var n = { kind: r.kind === "field" ? "field" : "method", key: t, placement: r.static ? "static" : r.kind === "field" ? "own" : "prototype", descriptor: e };
|
|
121
|
+
return r.decorators && (n.decorators = r.decorators), r.kind === "field" && (n.initializer = r.value), n;
|
|
122
|
+
}
|
|
123
|
+
function C(r, e) {
|
|
124
|
+
r.descriptor.get !== void 0 ? e.descriptor.get = r.descriptor.get : e.descriptor.set = r.descriptor.set;
|
|
125
|
+
}
|
|
126
|
+
function x(r) {
|
|
127
|
+
for (var e = [], t = function(a) {
|
|
128
|
+
return a.kind === "method" && a.key === o.key && a.placement === o.placement;
|
|
129
|
+
}, n = 0; n < r.length; n++) {
|
|
130
|
+
var i, o = r[n];
|
|
131
|
+
if (o.kind === "method" && (i = e.find(t)))
|
|
132
|
+
if (b(o.descriptor) || b(i.descriptor)) {
|
|
133
|
+
if (y(o) || y(i)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated.");
|
|
134
|
+
i.descriptor = o.descriptor;
|
|
135
|
+
} else {
|
|
136
|
+
if (y(o)) {
|
|
137
|
+
if (y(i)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + o.key + ").");
|
|
138
|
+
i.decorators = o.decorators;
|
|
139
|
+
}
|
|
140
|
+
C(o, i);
|
|
141
|
+
}
|
|
142
|
+
else e.push(o);
|
|
143
|
+
}
|
|
144
|
+
return e;
|
|
145
|
+
}
|
|
146
|
+
function y(r) {
|
|
147
|
+
return r.decorators && r.decorators.length;
|
|
148
|
+
}
|
|
149
|
+
function b(r) {
|
|
150
|
+
return r !== void 0 && !(r.value === void 0 && r.writable === void 0);
|
|
151
|
+
}
|
|
152
|
+
function g(r, e) {
|
|
153
|
+
var t = r[e];
|
|
154
|
+
if (t !== void 0 && typeof t != "function") throw new TypeError("Expected '" + e + "' to be a function");
|
|
155
|
+
return t;
|
|
156
|
+
}
|
|
157
|
+
function E(r) {
|
|
158
|
+
var e = F(r, "string");
|
|
159
|
+
return typeof e == "symbol" ? e : e + "";
|
|
160
|
+
}
|
|
161
|
+
function F(r, e) {
|
|
162
|
+
if (typeof r != "object" || !r) return r;
|
|
163
|
+
var t = r[Symbol.toPrimitive];
|
|
164
|
+
if (t !== void 0) {
|
|
165
|
+
var n = t.call(r, e);
|
|
166
|
+
if (typeof n != "object") return n;
|
|
167
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
168
|
+
}
|
|
169
|
+
return (e === "string" ? String : Number)(r);
|
|
170
|
+
}
|
|
171
|
+
function R(r) {
|
|
172
|
+
return j(r) || O(r) || z(r) || S();
|
|
173
|
+
}
|
|
174
|
+
function S() {
|
|
175
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
176
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
177
|
+
}
|
|
178
|
+
function z(r, e) {
|
|
179
|
+
if (r) {
|
|
180
|
+
if (typeof r == "string") return w(r, e);
|
|
181
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
182
|
+
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) ? w(r, e) : void 0;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function w(r, e) {
|
|
186
|
+
(e == null || e > r.length) && (e = r.length);
|
|
187
|
+
for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t];
|
|
188
|
+
return n;
|
|
189
|
+
}
|
|
190
|
+
function O(r) {
|
|
191
|
+
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
|
|
192
|
+
}
|
|
193
|
+
function j(r) {
|
|
194
|
+
if (Array.isArray(r)) return r;
|
|
195
|
+
}
|
|
196
|
+
let W = P([A()], function(r) {
|
|
197
|
+
class e {
|
|
198
|
+
constructor() {
|
|
199
|
+
r(this);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
return {
|
|
203
|
+
F: e,
|
|
204
|
+
d: [{
|
|
205
|
+
kind: "method",
|
|
206
|
+
static: !0,
|
|
207
|
+
key: "validate",
|
|
208
|
+
value: function(n, i, o, a, s) {
|
|
209
|
+
const l = o?.get(i?.dataTypeIdentifier?.genericKey), p = o?.get(i?.dataTypeIdentifier?.genericKey)?.sourceDataTypeIdentifiers, c = o?.get(i?.dataTypeIdentifier?.genericKey)?.genericCombinationStrategies;
|
|
210
|
+
if (n.__typename != "NodeFunctionIdWrapper") return !1;
|
|
211
|
+
const d = D(n, s);
|
|
212
|
+
if (!d) return !1;
|
|
213
|
+
if (i?.dataTypeIdentifier?.genericKey && !l && !a?.getDataType(i.dataTypeIdentifier)) return !0;
|
|
214
|
+
if (!(a?.getDataType(i.dataTypeIdentifier) || l) || l && !a?.hasDataTypes(p) || l && (c?.length ?? 0) + 1 != p.length) return !1;
|
|
215
|
+
if (d?.parameters?.nodes[0]?.value.__typename === "ReferenceValue") {
|
|
216
|
+
if (i?.dataTypeIdentifier?.genericKey && l && p) {
|
|
217
|
+
const u = p.map((f) => T(a?.getDataType(f), a?.getDataType((d?.parameters?.nodes[0]?.value).dataTypeIdentifier)));
|
|
218
|
+
return u.length > 1 ? u.reduce((f, m, h) => c && c[h - 1].type == "OR" ? f || m : f && m) : u[0];
|
|
219
|
+
}
|
|
220
|
+
if (i?.dataTypeIdentifier?.dataType)
|
|
221
|
+
return T(a?.getDataType(i.dataTypeIdentifier), a?.getDataType(d?.parameters?.nodes[0]?.value?.dataTypeIdentifier));
|
|
222
|
+
} else if (d?.parameters?.nodes[0]?.value?.__typename != "NodeFunctionIdWrapper") {
|
|
223
|
+
if (i?.dataTypeIdentifier?.genericKey && l && p) {
|
|
224
|
+
const u = p.map((f) => v(d?.parameters?.nodes[0]?.value, a?.getDataType(f), a, s, f.genericType.genericMappers));
|
|
225
|
+
return u.length > 1 ? u.reduce((f, m, h) => c && c[h - 1].type == "OR" ? f || m : f && m) : u[0];
|
|
226
|
+
}
|
|
227
|
+
return i?.dataTypeIdentifier?.dataType ? v(d?.parameters?.nodes[0]?.value, a?.getDataType(i.dataTypeIdentifier), a) : v(d?.parameters?.nodes[0]?.value, a?.getDataType(i.dataTypeIdentifier), a, s, I(i.dataTypeIdentifier?.genericType?.genericMappers, o));
|
|
228
|
+
}
|
|
229
|
+
return !1;
|
|
230
|
+
}
|
|
231
|
+
}]
|
|
232
|
+
};
|
|
233
|
+
});
|
|
234
|
+
const D = (r, e) => {
|
|
235
|
+
const t = e.nodes?.nodes?.find((n) => n?.id === r.id);
|
|
236
|
+
if (t?.functionDefinition?.runtimeFunctionDefinition?.identifier === "RETURN") return t;
|
|
237
|
+
if (t) {
|
|
238
|
+
const n = D({
|
|
239
|
+
id: t.nextNodeId
|
|
240
|
+
}, e);
|
|
241
|
+
if (n) return n;
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
export {
|
|
245
|
+
W as DFlowDataTypeReturnTypeRule
|
|
246
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { DFlowDataTypeReactiveService } from '../DFlowDataType.service';
|
|
2
|
-
import { GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
import { FlowView } from '../../DFlow.view';
|
|
2
|
+
import { Flow, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
3
|
export interface DFlowDataTypeRule {
|
|
5
|
-
validate(value: NodeParameterValue, config: object, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?:
|
|
4
|
+
validate(value: NodeParameterValue, config: object, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?: Flow): boolean;
|
|
6
5
|
}
|
|
7
6
|
export declare const staticImplements: <T>() => <U extends T>(constructor: U) => U;
|
|
8
7
|
export declare const genericMapping: (to?: GenericMapper[], from?: Map<string, GenericMapper>) => GenericMapper[] | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DFlowDataTypeRegexRule as e } from "./DFlowDataTypeRegexRule.js";
|
|
2
|
+
import { DFlowDataTypeRangeRule as o } from "./DFlowDataTypeNumberRangeRule.js";
|
|
3
|
+
import { DFlowDataTypeItemOfCollectionRule as t } from "./DFlowDataTypeItemOfCollectionRule.js";
|
|
4
|
+
import { DFlowDataTypeContainsTypeRule as a } from "./DFlowDataTypeContainsTypeRule.js";
|
|
5
|
+
import { DFlowDataTypeContainsKeyRule as p } from "./DFlowDataTypeContainsKeyRule.js";
|
|
6
|
+
import { DFlowDataTypeReturnTypeRule as l } from "./DFlowDataTypeReturnTypeRule.js";
|
|
7
|
+
const i = /* @__PURE__ */ new Map([["REGEX", e], ["NUMBER_RANGE", o], ["ITEM_OF_COLLECTION", t], ["CONTAINS_TYPE", a], ["CONTAINS_KEY", p], ["RETURN_TYPE", l]]);
|
|
8
|
+
export {
|
|
9
|
+
i as RuleMap
|
|
10
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NodeFunction, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
export interface DFlowTabDefaultProps {
|
|
4
|
+
node: NodeFunction;
|
|
5
|
+
flowId: Scalars["FlowID"]["output"];
|
|
6
|
+
}
|
|
7
|
+
export declare const DFlowTabDefault: React.FC<DFlowTabDefaultProps>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import r from "react";
|
|
3
|
+
import "../../_virtual/compiler-runtime.js";
|
|
4
|
+
import "@radix-ui/react-checkbox";
|
|
5
|
+
import "merge-props";
|
|
6
|
+
import "@tabler/icons-react";
|
|
7
|
+
import '../../assets/components/form/Input.style.css';/* empty css */
|
|
8
|
+
import "../form/EmailInput.js";
|
|
9
|
+
import "../form/Input.js";
|
|
10
|
+
import "../form/InputSuggestion.js";
|
|
11
|
+
import "../form/NumberInput.js";
|
|
12
|
+
import "../form/PasswordInput.js";
|
|
13
|
+
import "@radix-ui/react-one-time-password-field";
|
|
14
|
+
import "@radix-ui/react-radio-group";
|
|
15
|
+
import "../form/SwitchInput.js";
|
|
16
|
+
import "../form/TextInput.js";
|
|
17
|
+
import { useForm as M } from "../form/useForm.js";
|
|
18
|
+
import { Flex as k } from "../flex/Flex.js";
|
|
19
|
+
import { useService as p, useStore as S } from "../../utils/contextStore.js";
|
|
20
|
+
import { DFlowFunctionReactiveService as V } from "../d-flow-function/DFlowFunction.service.js";
|
|
21
|
+
import "js-md5";
|
|
22
|
+
import "../d-flow/DFlow.js";
|
|
23
|
+
import { DFlowReactiveService as g } from "../d-flow/DFlow.service.js";
|
|
24
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
25
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
26
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
27
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
28
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
29
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
30
|
+
import { useNodeValidation as B } from "../d-flow-validation/DNodeValidation.hook.js";
|
|
31
|
+
import { FileTabsService as E } from "../file-tabs/FileTabs.service.js";
|
|
32
|
+
import { DFlowInputDefault as J } from "../d-flow-input/DFlowInputDefault.js";
|
|
33
|
+
const ve = (w) => {
|
|
34
|
+
const {
|
|
35
|
+
node: o,
|
|
36
|
+
flowId: a
|
|
37
|
+
} = w, D = p(V), I = S(V), l = p(g), _ = S(g), h = p(E), f = B(o.id, a), c = r.useRef(/* @__PURE__ */ new Set()), [, F] = r.useTransition(), v = r.useMemo(() => D.getById(o.functionDefinition?.id), [I]), N = r.useMemo(() => {
|
|
38
|
+
const t = {};
|
|
39
|
+
return v?.parameterDefinitions?.forEach((e) => {
|
|
40
|
+
t[e.id] = e;
|
|
41
|
+
}), t;
|
|
42
|
+
}, [v]), s = r.useMemo(() => [...o.parameters?.nodes || []].sort((t, e) => t.id.localeCompare(e?.id)), [o]), b = r.useMemo(() => {
|
|
43
|
+
const t = {};
|
|
44
|
+
return s.forEach((e) => {
|
|
45
|
+
t[e?.id] = e?.value?.__typename === "LiteralValue" ? typeof e.value?.value == "object" ? JSON.stringify(e.value?.value) : e.value.value : JSON.stringify(e?.value);
|
|
46
|
+
}), t;
|
|
47
|
+
}, [s]), P = r.useMemo(() => {
|
|
48
|
+
const t = {};
|
|
49
|
+
return s.forEach((e) => {
|
|
50
|
+
t[e?.id] = (u) => {
|
|
51
|
+
const n = f?.find((i) => i.parameterId === e?.id);
|
|
52
|
+
return n ? n.message[0]?.content || "Invalid value" : null;
|
|
53
|
+
};
|
|
54
|
+
}), t;
|
|
55
|
+
}, [s, f]), x = r.useCallback((t) => {
|
|
56
|
+
F(async () => {
|
|
57
|
+
for (const e of s) {
|
|
58
|
+
if (!c.current.has(e?.id)) continue;
|
|
59
|
+
const u = t[e?.id], n = e?.value, i = u?.[0]?.value;
|
|
60
|
+
n && n.__typename === "NodeFunctionIdWrapper" && n.id && l.getLinkedNodesById(a, n.id).reverse().forEach((y) => {
|
|
61
|
+
y.id && h.deleteById(y.id);
|
|
62
|
+
}), (!i || !u) && await l.setParameterValue(a, o.id, e.id, void 0);
|
|
63
|
+
try {
|
|
64
|
+
const d = JSON.parse(String(i));
|
|
65
|
+
if (!i?.__typename) {
|
|
66
|
+
await l.setParameterValue(a, o.id, e.id, i ? {
|
|
67
|
+
__typename: "LiteralValue",
|
|
68
|
+
value: d
|
|
69
|
+
} : void 0);
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
} catch {
|
|
73
|
+
if (!i?.__typename) {
|
|
74
|
+
await l.setParameterValue(a, o.id, e.id, i ? {
|
|
75
|
+
__typename: "LiteralValue",
|
|
76
|
+
value: i
|
|
77
|
+
} : void 0);
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
await l.setParameterValue(a, o.id, e.id, i.__typename === "LiteralValue" ? i.value ? i : void 0 : i);
|
|
82
|
+
}
|
|
83
|
+
c.current.clear();
|
|
84
|
+
});
|
|
85
|
+
}, [_, s]), [T, L] = M({
|
|
86
|
+
initialValues: b,
|
|
87
|
+
validate: P,
|
|
88
|
+
truthyValidationBeforeSubmit: !1,
|
|
89
|
+
onSubmit: x
|
|
90
|
+
});
|
|
91
|
+
return /* @__PURE__ */ m(k, { style: {
|
|
92
|
+
gap: ".7rem",
|
|
93
|
+
flexDirection: "column"
|
|
94
|
+
}, children: s.map((t) => {
|
|
95
|
+
if (!t) return null;
|
|
96
|
+
const e = N[t.id], u = e?.names ? e?.names[0]?.content : e?.id, n = e?.descriptions ? e?.descriptions[0]?.content : JSON.stringify(e?.dataTypeIdentifier);
|
|
97
|
+
return /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(J, { flowId: a, nodeId: o.id, parameterId: t.id, title: u, description: n, clearable: !0, onChange: () => {
|
|
98
|
+
c.current.add(t.id), L();
|
|
99
|
+
}, ...T.getInputProps(t.id) }) });
|
|
100
|
+
}) });
|
|
101
|
+
};
|
|
102
|
+
export {
|
|
103
|
+
ve as DFlowTabDefault
|
|
104
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Flow } from '@code0-tech/sagittarius-graphql-types';
|
|
3
3
|
export interface DFlowTabTriggerProps {
|
|
4
|
-
instance:
|
|
4
|
+
instance: Flow;
|
|
5
5
|
}
|
|
6
6
|
export declare const DFlowTabTrigger: React.FC<DFlowTabTriggerProps>;
|