@code0-tech/pictor 0.0.0-mvp.46 → 0.0.0-mvp.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/avatar/Avatar.js +6 -7
- package/dist/components/data-table/DataTableFilterInput.js +5 -3
- package/dist/components/editor/Editor.js +14 -15
- package/dist/components/{d-fullscreen/DFullScreen.d.ts → fullscreen/FullScreen.d.ts} +2 -2
- package/dist/components/{d-fullscreen/DFullScreen.js → fullscreen/FullScreen.js} +2 -2
- package/dist/components/{d-layout/DLayout.d.ts → layout/Layout.d.ts} +2 -2
- package/dist/components/{d-layout/DLayout.js → layout/Layout.js} +11 -11
- package/dist/components/menu/Menu.js +8 -8
- package/dist/components/resizable/Resizable.d.ts +12 -0
- package/dist/components/{d-resizable/DResizable.js → resizable/Resizable.js} +7 -7
- package/dist/components/tab/Tab.js +4 -4
- package/dist/components/toast/Toast.js +1 -1
- package/dist/index.d.ts +0 -20
- package/dist/index.js +152 -273
- package/package.json +18 -18
- package/dist/assets/components/d-flow/DFlow.style.css +0 -1
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +0 -1
- package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +0 -1
- package/dist/assets/components/d-flow-node/DFlowNode.style.css +0 -1
- package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +0 -1
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +0 -1
- package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +0 -1
- package/dist/assets/node_modules/@xyflow/react/dist/style.css +0 -1
- package/dist/assets/node_modules/ldrs/dist/react/LineWobble.css +0 -1
- package/dist/components/d-application/DApplication.service.d.ts +0 -9
- package/dist/components/d-application/DApplication.service.js +0 -10
- package/dist/components/d-flow/DFlow.d.ts +0 -9
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +0 -4
- package/dist/components/d-flow/DFlow.edges.hook.js +0 -110
- package/dist/components/d-flow/DFlow.js +0 -484
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +0 -4
- package/dist/components/d-flow/DFlow.nodes.hook.js +0 -128
- package/dist/components/d-flow/DFlow.service.d.ts +0 -21
- package/dist/components/d-flow/DFlow.service.js +0 -156
- package/dist/components/d-flow/DFlow.util.d.ts +0 -4
- package/dist/components/d-flow/DFlow.util.js +0 -63
- package/dist/components/d-flow/DFlow.view.d.ts +0 -4
- package/dist/components/d-flow/DFlow.view.js +0 -1
- package/dist/components/d-flow/DFlowEdge.d.ts +0 -12
- package/dist/components/d-flow/DFlowEdge.js +0 -69
- package/dist/components/d-flow/index.d.ts +0 -4
- package/dist/components/d-flow/index.js +0 -10
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +0 -15
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +0 -203
- package/dist/components/d-flow-data-type/DFlowDataType.view.d.ts +0 -41
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +0 -76
- package/dist/components/d-flow-data-type/index.d.ts +0 -2
- package/dist/components/d-flow-data-type/index.js +0 -6
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -231
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -235
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -4
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.d.ts +0 -8
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.js +0 -217
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.d.ts +0 -4
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +0 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -250
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.d.ts +0 -8
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.js +0 -10
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.d.ts +0 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +0 -10
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.d.ts +0 -4
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.js +0 -214
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.d.ts +0 -4
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.js +0 -1
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.d.ts +0 -3
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.js +0 -5
- package/dist/components/d-flow-file/DFlowTabDefault.d.ts +0 -7
- package/dist/components/d-flow-file/DFlowTabDefault.js +0 -106
- package/dist/components/d-flow-file/DFlowTabTrigger.d.ts +0 -6
- package/dist/components/d-flow-file/DFlowTabTrigger.js +0 -75
- package/dist/components/d-flow-file/DFlowTabs.d.ts +0 -8
- package/dist/components/d-flow-file/DFlowTabs.js +0 -84
- package/dist/components/d-flow-file/index.d.ts +0 -1
- package/dist/components/d-flow-file/index.js +0 -4
- package/dist/components/d-flow-folder/DFlowFolder.d.ts +0 -36
- package/dist/components/d-flow-folder/DFlowFolder.js +0 -273
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +0 -18
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +0 -53
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +0 -9
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +0 -115
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +0 -10
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +0 -64
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +0 -5
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +0 -51
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +0 -10
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +0 -59
- package/dist/components/d-flow-folder/index.d.ts +0 -4
- package/dist/components/d-flow-folder/index.js +0 -13
- package/dist/components/d-flow-function/DFlowFunction.input.hook.d.ts +0 -5
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +0 -8
- package/dist/components/d-flow-function/DFlowFunction.return.hook.d.ts +0 -5
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +0 -9
- package/dist/components/d-flow-function/DFlowFunction.service.d.ts +0 -11
- package/dist/components/d-flow-function/DFlowFunction.service.js +0 -13
- package/dist/components/d-flow-function/DFlowFunction.view.d.ts +0 -81
- package/dist/components/d-flow-function/DFlowFunction.view.js +0 -139
- package/dist/components/d-flow-function/index.d.ts +0 -2
- package/dist/components/d-flow-function/index.js +0 -7
- package/dist/components/d-flow-input/DFlowInput.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInput.js +0 -29
- package/dist/components/d-flow-input/DFlowInputDataType.d.ts +0 -15
- package/dist/components/d-flow-input/DFlowInputDataType.js +0 -131
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.d.ts +0 -9
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +0 -102
- package/dist/components/d-flow-input/DFlowInputDefault.d.ts +0 -5
- package/dist/components/d-flow-input/DFlowInputDefault.js +0 -129
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +0 -7
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +0 -24
- package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +0 -47
- package/dist/components/d-flow-input/DFlowInputObject.d.ts +0 -10
- package/dist/components/d-flow-input/DFlowInputObject.js +0 -83
- package/dist/components/d-flow-input/DFlowInputObjectEditDialog.d.ts +0 -16
- package/dist/components/d-flow-input/DFlowInputObjectEditDialog.js +0 -118
- package/dist/components/d-flow-input/DFlowInputObjectTree.d.ts +0 -16
- package/dist/components/d-flow-input/DFlowInputObjectTree.js +0 -99
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +0 -33
- package/dist/components/d-flow-node/DFlowNode.d.ts +0 -10
- package/dist/components/d-flow-node/DFlowNode.js +0 -1
- package/dist/components/d-flow-node/DFlowNode.return.hook.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNode.return.hook.js +0 -27
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.js +0 -118
- package/dist/components/d-flow-node/DFlowNodeGroupCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeGroupCard.js +0 -69
- package/dist/components/d-flow-node/DFlowNodeReference.return.hook.d.ts +0 -4
- package/dist/components/d-flow-node/DFlowNodeReference.return.hook.js +0 -77
- package/dist/components/d-flow-node/DFlowNodeTriggerCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeTriggerCard.js +0 -66
- package/dist/components/d-flow-panel/DFlowExport.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowExport.js +0 -33
- package/dist/components/d-flow-panel/DFlowMiniMap.d.ts +0 -2
- package/dist/components/d-flow-panel/DFlowMiniMap.js +0 -15
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowPanelControl.js +0 -51
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +0 -4
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +0 -38
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +0 -2
- package/dist/components/d-flow-panel/DFlowPanelSize.js +0 -89
- package/dist/components/d-flow-panel/DFlowPanelUpdate.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowPanelUpdate.js +0 -77
- package/dist/components/d-flow-panel/index.d.ts +0 -5
- package/dist/components/d-flow-panel/index.js +0 -12
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +0 -34
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +0 -50
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +0 -133
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +0 -28
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +0 -14
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +0 -4
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.d.ts +0 -8
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +0 -66
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.js +0 -43
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.d.ts +0 -2
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.js +0 -69
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.d.ts +0 -6
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.js +0 -21
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.d.ts +0 -7
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +0 -36
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +0 -44
- package/dist/components/d-flow-suggestion/index.d.ts +0 -1
- package/dist/components/d-flow-suggestion/index.js +0 -4
- package/dist/components/d-flow-type/DFlowType.service.d.ts +0 -11
- package/dist/components/d-flow-type/DFlowType.service.js +0 -13
- package/dist/components/d-flow-type/DFlowType.view.d.ts +0 -44
- package/dist/components/d-flow-type/DFlowType.view.js +0 -93
- package/dist/components/d-flow-type/index.d.ts +0 -2
- package/dist/components/d-flow-type/index.js +0 -6
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +0 -2
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +0 -18
- package/dist/components/d-flow-validation/DFlowValidation.d.ts +0 -6
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +0 -23
- package/dist/components/d-flow-validation/DFlowValidation.js +0 -67
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +0 -3
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +0 -63
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +0 -4
- package/dist/components/d-flow-validation/DValueValidation.hook.js +0 -9
- package/dist/components/d-flow-validation/index.d.ts +0 -2
- package/dist/components/d-flow-validation/index.js +0 -6
- package/dist/components/d-license/DNamespaceLicense.service.d.ts +0 -11
- package/dist/components/d-license/DNamespaceLicense.service.js +0 -13
- package/dist/components/d-license/DNamespaceLicense.view.d.ts +0 -26
- package/dist/components/d-license/DNamespaceLicense.view.js +0 -57
- package/dist/components/d-license/index.d.ts +0 -2
- package/dist/components/d-license/index.js +0 -6
- package/dist/components/d-member/DNamespaceMember.service.d.ts +0 -13
- package/dist/components/d-member/DNamespaceMember.service.js +0 -18
- package/dist/components/d-member/DNamespaceMember.view.d.ts +0 -29
- package/dist/components/d-member/DNamespaceMember.view.js +0 -62
- package/dist/components/d-member/DNamespaceMemberCard.d.ts +0 -10
- package/dist/components/d-member/DNamespaceMemberCard.js +0 -16
- package/dist/components/d-member/DNamespaceMemberContent.d.ts +0 -10
- package/dist/components/d-member/DNamespaceMemberContent.js +0 -225
- package/dist/components/d-member/DNamespaceMemberList.d.ts +0 -12
- package/dist/components/d-member/DNamespaceMemberList.js +0 -24
- package/dist/components/d-member/index.d.ts +0 -4
- package/dist/components/d-member/index.js +0 -10
- package/dist/components/d-namespace/DNamespace.service.d.ts +0 -6
- package/dist/components/d-namespace/DNamespace.service.js +0 -13
- package/dist/components/d-namespace/DNamespace.view.d.ts +0 -32
- package/dist/components/d-namespace/DNamespace.view.js +0 -65
- package/dist/components/d-namespace/index.d.ts +0 -2
- package/dist/components/d-namespace/index.js +0 -6
- package/dist/components/d-organization/DOrganization.service.d.ts +0 -8
- package/dist/components/d-organization/DOrganization.service.js +0 -13
- package/dist/components/d-organization/DOrganization.view.d.ts +0 -23
- package/dist/components/d-organization/DOrganization.view.js +0 -55
- package/dist/components/d-organization/DOrganizationCard.d.ts +0 -11
- package/dist/components/d-organization/DOrganizationCard.js +0 -16
- package/dist/components/d-organization/DOrganizationList.d.ts +0 -10
- package/dist/components/d-organization/DOrganizationList.js +0 -24
- package/dist/components/d-organization/DOrganizationMenu.d.ts +0 -9
- package/dist/components/d-organization/DOrganizationMenu.js +0 -18
- package/dist/components/d-organization/DOrganizatonContent.d.ts +0 -10
- package/dist/components/d-organization/DOrganizatonContent.js +0 -102
- package/dist/components/d-organization/index.d.ts +0 -5
- package/dist/components/d-organization/index.js +0 -40
- package/dist/components/d-project/DNamespaceProject.service.d.ts +0 -13
- package/dist/components/d-project/DNamespaceProject.service.js +0 -13
- package/dist/components/d-project/DNamespaceProject.view.d.ts +0 -44
- package/dist/components/d-project/DNamespaceProject.view.js +0 -78
- package/dist/components/d-project/DNamespaceProjectCard.d.ts +0 -9
- package/dist/components/d-project/DNamespaceProjectCard.js +0 -17
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +0 -10
- package/dist/components/d-project/DNamespaceProjectContent.js +0 -72
- package/dist/components/d-project/DNamespaceProjectList.d.ts +0 -11
- package/dist/components/d-project/DNamespaceProjectList.js +0 -26
- package/dist/components/d-project/DNamespaceProjectMenu.d.ts +0 -13
- package/dist/components/d-project/DNamespaceProjectMenu.js +0 -57
- package/dist/components/d-project/index.d.ts +0 -5
- package/dist/components/d-project/index.js +0 -27
- package/dist/components/d-resizable/DResizable.d.ts +0 -12
- package/dist/components/d-role/DNamespaceRole.service.d.ts +0 -13
- package/dist/components/d-role/DNamespaceRole.service.js +0 -13
- package/dist/components/d-role/DNamespaceRole.view.d.ts +0 -29
- package/dist/components/d-role/DNamespaceRole.view.js +0 -61
- package/dist/components/d-role/DNamespaceRoleCard.d.ts +0 -11
- package/dist/components/d-role/DNamespaceRoleCard.js +0 -17
- package/dist/components/d-role/DNamespaceRoleContent.d.ts +0 -10
- package/dist/components/d-role/DNamespaceRoleContent.js +0 -163
- package/dist/components/d-role/DNamespaceRoleList.d.ts +0 -12
- package/dist/components/d-role/DNamespaceRoleList.js +0 -25
- package/dist/components/d-role/DNamespaceRolePermissions.d.ts +0 -5
- package/dist/components/d-role/DNamespaceRolePermissions.js +0 -123
- package/dist/components/d-role/index.d.ts +0 -4
- package/dist/components/d-role/index.js +0 -10
- package/dist/components/d-runtime/DRuntime.service.d.ts +0 -12
- package/dist/components/d-runtime/DRuntime.service.js +0 -9
- package/dist/components/d-runtime/DRuntime.view.d.ts +0 -41
- package/dist/components/d-runtime/DRuntime.view.js +0 -76
- package/dist/components/d-runtime/DRuntimeCard.d.ts +0 -9
- package/dist/components/d-runtime/DRuntimeCard.js +0 -18
- package/dist/components/d-runtime/DRuntimeContent.d.ts +0 -9
- package/dist/components/d-runtime/DRuntimeContent.js +0 -46
- package/dist/components/d-runtime/DRuntimeList.d.ts +0 -12
- package/dist/components/d-runtime/DRuntimeList.js +0 -29
- package/dist/components/d-runtime/index.d.ts +0 -4
- package/dist/components/d-runtime/index.js +0 -10
- package/dist/components/d-user/DUser.service.d.ts +0 -20
- package/dist/components/d-user/DUser.service.js +0 -18
- package/dist/components/d-user/DUser.session.hook.d.ts +0 -3
- package/dist/components/d-user/DUser.session.hook.js +0 -16
- package/dist/components/d-user/DUser.view.d.ts +0 -55
- package/dist/components/d-user/DUser.view.js +0 -103
- package/dist/components/d-user/DUserCard.d.ts +0 -8
- package/dist/components/d-user/DUserCard.js +0 -15
- package/dist/components/d-user/DUserContent.d.ts +0 -8
- package/dist/components/d-user/DUserContent.js +0 -52
- package/dist/components/d-user/DUserInput.d.ts +0 -7
- package/dist/components/d-user/DUserInput.js +0 -101
- package/dist/components/d-user/DUserList.d.ts +0 -9
- package/dist/components/d-user/DUserList.js +0 -23
- package/dist/components/d-user/DUserMenu.d.ts +0 -8
- package/dist/components/d-user/DUserMenu.js +0 -30
- package/dist/components/d-user/index.d.ts +0 -7
- package/dist/components/d-user/index.js +0 -27
- package/dist/node_modules/ldrs/dist/react/LineWobble.js +0 -6
- package/dist/utils/generics.d.ts +0 -21
- package/dist/utils/generics.js +0 -373
- /package/dist/assets/components/{d-fullscreen/DFullScreen.style.css → fullscreen/FullScreen.style.css} +0 -0
- /package/dist/assets/components/{d-layout/DLayout.style.css → layout/Layout.style.css} +0 -0
- /package/dist/assets/components/{d-resizable/DResizable.style.css → resizable/Resizable.style.css} +0 -0
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import "../../utils/contextStore.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import { ReactiveArrayService as c } from "../../utils/reactiveArrayService.js";
|
|
4
|
-
import "merge-props";
|
|
5
|
-
import { md5 as g } from "js-md5";
|
|
6
|
-
import { DataTypeView as l } from "./DFlowDataType.view.js";
|
|
7
|
-
import { resolveType as m } from "../../utils/generics.js";
|
|
8
|
-
import { useValueValidation as v } from "../d-flow-validation/DValueValidation.hook.js";
|
|
9
|
-
import { findReturnNode as _ } from "./rules/DFlowDataTypeReturnTypeRule.js";
|
|
10
|
-
class R extends c {
|
|
11
|
-
getDataType(e, n) {
|
|
12
|
-
if (!e || e.genericKey) return;
|
|
13
|
-
const i = e.dataType ?? e.genericType?.dataType, t = i?.identifier, u = i?.id;
|
|
14
|
-
return i?.rules ? new l(i) : this.values().find((y) => y.identifier == t || y.id == u);
|
|
15
|
-
}
|
|
16
|
-
getDataTypeFromValue(e, n, i) {
|
|
17
|
-
if (!e) return;
|
|
18
|
-
if (e.__typename == "LiteralValue") {
|
|
19
|
-
if (Array.isArray(e.value) && Array.from(e.value).length > 0) return this.getDataType({
|
|
20
|
-
dataType: {
|
|
21
|
-
identifier: "LIST"
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
if (typeof e.value == "object") return this.getDataType({
|
|
25
|
-
dataType: {
|
|
26
|
-
identifier: "OBJECT"
|
|
27
|
-
}
|
|
28
|
-
}, i);
|
|
29
|
-
if (typeof e.value == "string") return this.getDataType({
|
|
30
|
-
dataType: {
|
|
31
|
-
identifier: "TEXT"
|
|
32
|
-
}
|
|
33
|
-
}, i);
|
|
34
|
-
if (typeof e.value == "number") return this.getDataType({
|
|
35
|
-
dataType: {
|
|
36
|
-
identifier: "NUMBER"
|
|
37
|
-
}
|
|
38
|
-
}, i);
|
|
39
|
-
if (typeof e.value == "boolean") return this.getDataType({
|
|
40
|
-
dataType: {
|
|
41
|
-
identifier: "BOOLEAN"
|
|
42
|
-
}
|
|
43
|
-
}, i);
|
|
44
|
-
}
|
|
45
|
-
const t = this.values(i).filter((u) => e.__typename === "NodeFunctionIdWrapper" && (u.variant != "NODE" || !n) ? !1 : v(e, u, this, n));
|
|
46
|
-
return t[t.length - 1];
|
|
47
|
-
}
|
|
48
|
-
getValueFromType(e, n, i) {
|
|
49
|
-
const t = this.getDataType(e, i);
|
|
50
|
-
if (!t) return;
|
|
51
|
-
if (t.identifier === "TEXT") return {
|
|
52
|
-
__typename: "LiteralValue",
|
|
53
|
-
value: ""
|
|
54
|
-
};
|
|
55
|
-
if (t.identifier === "NUMBER") return {
|
|
56
|
-
__typename: "LiteralValue",
|
|
57
|
-
value: 0
|
|
58
|
-
};
|
|
59
|
-
if (t.identifier === "BOOLEAN") return {
|
|
60
|
-
__typename: "LiteralValue",
|
|
61
|
-
value: !1
|
|
62
|
-
};
|
|
63
|
-
const u = t.rules?.nodes ?? [];
|
|
64
|
-
if (u.length === 0) return {
|
|
65
|
-
__typename: "LiteralValue",
|
|
66
|
-
value: null
|
|
67
|
-
};
|
|
68
|
-
const y = u.some((r) => r?.variant === "CONTAINS_TYPE"), p = !y && u.some((r) => r?.variant === "CONTAINS_KEY" || r?.variant === "PARENT_TYPE");
|
|
69
|
-
if (!y && !p)
|
|
70
|
-
return {
|
|
71
|
-
__typename: "LiteralValue",
|
|
72
|
-
value: null
|
|
73
|
-
};
|
|
74
|
-
const s = u.map((r) => {
|
|
75
|
-
if (r) {
|
|
76
|
-
if (r.variant === "CONTAINS_TYPE" && y) {
|
|
77
|
-
const a = r.config?.dataTypeIdentifier;
|
|
78
|
-
if (a) {
|
|
79
|
-
const T = (a.genericKey && e.genericType?.genericMappers ? e.genericType.genericMappers.find((d) => d.target === a.genericKey) : void 0)?.sourceDataTypeIdentifiers?.[0] ?? a, o = this.getValueFromType(T, n, i);
|
|
80
|
-
if (o && o.__typename === "LiteralValue")
|
|
81
|
-
return o.value;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
if (r.variant === "CONTAINS_KEY" && p) {
|
|
85
|
-
const a = r.config;
|
|
86
|
-
if (a?.key && a?.dataTypeIdentifier) {
|
|
87
|
-
const T = (a.dataTypeIdentifier?.genericKey && e.genericType?.genericMappers ? e.genericType.genericMappers.find((d) => d.target === a.dataTypeIdentifier?.genericKey) : void 0)?.sourceDataTypeIdentifiers?.[0] ?? a.dataTypeIdentifier, o = this.getValueFromType(T, n, i);
|
|
88
|
-
if (o && o.__typename === "LiteralValue")
|
|
89
|
-
return {
|
|
90
|
-
[a.key]: o.value
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
if (r.variant === "PARENT_TYPE" && p) {
|
|
95
|
-
const a = r.config?.dataTypeIdentifier;
|
|
96
|
-
if (a) {
|
|
97
|
-
const T = (a.genericKey && e.genericType?.genericMappers ? e.genericType.genericMappers.find((d) => d.target === a.genericKey) : void 0)?.sourceDataTypeIdentifiers?.[0] ?? a, o = this.getValueFromType(T, n, i);
|
|
98
|
-
if (o && o.__typename === "LiteralValue" && typeof o.value == "object" && !Array.isArray(o.value))
|
|
99
|
-
return o.value;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}).filter((r) => r !== void 0);
|
|
104
|
-
return {
|
|
105
|
-
__typename: "LiteralValue",
|
|
106
|
-
value: y ? s : Object.assign({}, ...s)
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
getTypeFromValue(e, n, i) {
|
|
110
|
-
if (!e) return;
|
|
111
|
-
const t = this.getDataTypeFromValue(e, n, i);
|
|
112
|
-
if ((t?.genericKeys?.length ?? 0) <= 0 || !t?.genericKeys) return {
|
|
113
|
-
dataType: {
|
|
114
|
-
id: t?.id,
|
|
115
|
-
identifier: t?.identifier
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
const u = t.genericKeys.map((p) => {
|
|
119
|
-
const s = t.rules?.nodes?.find((r) => "dataTypeIdentifier" in (r?.config ?? {}) && r?.config?.dataTypeIdentifier?.genericKey == p || "inputTypes" in (r?.config ?? {}) && r.config.inputTypes?.some((a) => a.dataTypeIdentifier?.genericKey == p));
|
|
120
|
-
if (s && s.variant == "CONTAINS_TYPE" && "value" in e && e?.value && t.variant === "ARRAY")
|
|
121
|
-
return {
|
|
122
|
-
sourceDataTypeIdentifiers: [this.getTypeFromValue({
|
|
123
|
-
__typename: "LiteralValue",
|
|
124
|
-
value: e.value[0]
|
|
125
|
-
}, n, i)],
|
|
126
|
-
target: p
|
|
127
|
-
};
|
|
128
|
-
if (s && s.variant == "CONTAINS_KEY" && "value" in e && e?.value && t.variant === "OBJECT")
|
|
129
|
-
return {
|
|
130
|
-
sourceDataTypeIdentifiers: [this.getTypeFromValue({
|
|
131
|
-
__typename: "LiteralValue",
|
|
132
|
-
/* @ts-ignore */
|
|
133
|
-
value: e.value[s.config?.key ?? ""]
|
|
134
|
-
}, n, i)],
|
|
135
|
-
target: p
|
|
136
|
-
};
|
|
137
|
-
if (s && s.variant == "RETURN_TYPE" && t.variant === "NODE") {
|
|
138
|
-
const a = _(e, n)?.parameters?.nodes?.[0]?.value;
|
|
139
|
-
return {
|
|
140
|
-
sourceDataTypeIdentifiers: [this.getTypeFromValue(a ?? {
|
|
141
|
-
__typename: "LiteralValue",
|
|
142
|
-
value: null
|
|
143
|
-
}, n, i)],
|
|
144
|
-
target: p
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
if (s && s.variant == "INPUT_TYPES" && t.variant === "NODE")
|
|
148
|
-
return {
|
|
149
|
-
sourceDataTypeIdentifiers: [{
|
|
150
|
-
genericKey: p
|
|
151
|
-
}],
|
|
152
|
-
target: p
|
|
153
|
-
};
|
|
154
|
-
if (s && s.variant == "PARENT_TYPE" && t.identifier === "OBJECT" && e.__typename === "LiteralValue" && e.value) {
|
|
155
|
-
const r = Object.entries(e.value).map((f) => ({
|
|
156
|
-
__typename: "DataTypeRule",
|
|
157
|
-
variant: "CONTAINS_KEY",
|
|
158
|
-
config: {
|
|
159
|
-
key: f[0],
|
|
160
|
-
dataTypeIdentifier: this.getTypeFromValue({
|
|
161
|
-
__typename: "LiteralValue",
|
|
162
|
-
value: f[1]
|
|
163
|
-
}, n, i) ?? null
|
|
164
|
-
}
|
|
165
|
-
}));
|
|
166
|
-
return {
|
|
167
|
-
sourceDataTypeIdentifiers: [{
|
|
168
|
-
dataType: new l({
|
|
169
|
-
...t.json,
|
|
170
|
-
genericKeys: [],
|
|
171
|
-
identifier: g(String(e.value)),
|
|
172
|
-
rules: {
|
|
173
|
-
nodes: r
|
|
174
|
-
}
|
|
175
|
-
}).json
|
|
176
|
-
}],
|
|
177
|
-
target: p
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
return null;
|
|
181
|
-
}).filter((p) => !!p), y = u.length > 0 ? {
|
|
182
|
-
genericType: {
|
|
183
|
-
dataType: {
|
|
184
|
-
id: t.id,
|
|
185
|
-
identifier: t.identifier
|
|
186
|
-
},
|
|
187
|
-
genericMappers: u
|
|
188
|
-
}
|
|
189
|
-
} : {
|
|
190
|
-
dataType: {
|
|
191
|
-
id: t.id,
|
|
192
|
-
identifier: t.identifier
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
return m(y, this);
|
|
196
|
-
}
|
|
197
|
-
hasDataTypes(e, n) {
|
|
198
|
-
return e.every((i) => this.values(n).find((t) => t.id === (i.genericType?.dataType?.id ?? i.dataType?.id)));
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
export {
|
|
202
|
-
R as DFlowDataTypeReactiveService
|
|
203
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { DataType, DataTypeIdentifierConnection, DataTypeRuleConnection, DataTypeVariant, Maybe, Runtime, Scalars, Translation } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
export declare class DataTypeView {
|
|
3
|
-
/** Name of the function */
|
|
4
|
-
private readonly _aliases?;
|
|
5
|
-
/** Time when this DataType was created */
|
|
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?;
|
|
11
|
-
/** Generic keys of the datatype */
|
|
12
|
-
private readonly _genericKeys?;
|
|
13
|
-
/** Global ID of this DataType */
|
|
14
|
-
private readonly _id?;
|
|
15
|
-
/** The identifier scoped to the namespace */
|
|
16
|
-
private readonly _identifier?;
|
|
17
|
-
/** Names of the flow type setting */
|
|
18
|
-
private readonly _name?;
|
|
19
|
-
/** Rules of the datatype */
|
|
20
|
-
private readonly _rules?;
|
|
21
|
-
/** The namespace where this datatype belongs to */
|
|
22
|
-
private readonly _runtime?;
|
|
23
|
-
/** Time when this DataType was last updated */
|
|
24
|
-
private readonly _updatedAt?;
|
|
25
|
-
/** The type of the datatype */
|
|
26
|
-
private readonly _variant?;
|
|
27
|
-
constructor(dataType: DataType);
|
|
28
|
-
get aliases(): Maybe<Array<Translation>> | undefined;
|
|
29
|
-
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
30
|
-
get dataTypeIdentifiers(): Maybe<DataTypeIdentifierConnection> | undefined;
|
|
31
|
-
get displayMessages(): Maybe<Array<Translation>> | undefined;
|
|
32
|
-
get genericKeys(): Maybe<Array<Scalars["String"]["output"]>> | undefined;
|
|
33
|
-
get id(): Maybe<Scalars["DataTypeID"]["output"]> | undefined;
|
|
34
|
-
get identifier(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
35
|
-
get name(): Maybe<Array<Translation>> | undefined;
|
|
36
|
-
get runtime(): Maybe<Runtime> | undefined;
|
|
37
|
-
get rules(): Maybe<DataTypeRuleConnection> | undefined;
|
|
38
|
-
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
39
|
-
get variant(): Maybe<DataTypeVariant> | undefined;
|
|
40
|
-
get json(): DataType;
|
|
41
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
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,5 +0,0 @@
|
|
|
1
|
-
import { DFlowDataTypeReactiveService } from '../DFlowDataType.service';
|
|
2
|
-
import { DataTypeRulesContainsKeyConfig, Flow, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
export declare class DFlowDataTypeContainsKeyRule {
|
|
4
|
-
static validate(value: NodeParameterValue, config: DataTypeRulesContainsKeyConfig, generics?: Map<string, GenericMapper>, flow?: Flow, dataTypeService?: DFlowDataTypeReactiveService): boolean;
|
|
5
|
-
}
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { genericMapping as D, staticImplements as T } from "./DFlowDataTypeRule.js";
|
|
2
|
-
import { useValueValidation as m } 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(_(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 (!f(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 _(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 (f(o) || f(i)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated.");
|
|
133
|
-
i.descriptor = o.descriptor;
|
|
134
|
-
} else {
|
|
135
|
-
if (f(o)) {
|
|
136
|
-
if (f(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 f(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 = 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 x(r) {
|
|
171
|
-
return j(r) || O(r) || F(r) || z();
|
|
172
|
-
}
|
|
173
|
-
function z() {
|
|
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 F(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 O(r) {
|
|
190
|
-
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
|
|
191
|
-
}
|
|
192
|
-
function j(r) {
|
|
193
|
-
if (Array.isArray(r)) return r;
|
|
194
|
-
}
|
|
195
|
-
let M = A([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), c = o?.get(i?.dataTypeIdentifier?.genericKey)?.sourceDataTypeIdentifiers, p = o?.get(i?.dataTypeIdentifier?.genericKey)?.genericCombinationStrategies;
|
|
209
|
-
if ((i?.key ?? "") in n && i?.dataTypeIdentifier?.genericKey && !l && !s?.getDataType(i.dataTypeIdentifier)) return !0;
|
|
210
|
-
if (!(s?.getDataType(i.dataTypeIdentifier) || l) || l && !s?.hasDataTypes(c) || l && (p?.length ?? 0) + 1 != c.length) return !1;
|
|
211
|
-
if (i?.dataTypeIdentifier?.genericKey && l && c) {
|
|
212
|
-
const d = c.map((u) => m({
|
|
213
|
-
__typename: "LiteralValue",
|
|
214
|
-
value: n.value[i?.key ?? ""]
|
|
215
|
-
}, s?.getDataType(u), s, a, u.genericType.genericMappers)), E = d.length > 1 ? d.reduce((u, y, g) => p && p[g - 1].type == "OR" ? u || y : u && y) : d[0];
|
|
216
|
-
return (i?.key ?? "") in n && E;
|
|
217
|
-
}
|
|
218
|
-
return i?.dataTypeIdentifier?.dataType ? (i?.key ?? "") in n.value && m({
|
|
219
|
-
__typename: "LiteralValue",
|
|
220
|
-
value: n.value[i?.key ?? ""]
|
|
221
|
-
}, s?.getDataType(i.dataTypeIdentifier), s) : (i?.key ?? "") in n.value && m({
|
|
222
|
-
__typename: "LiteralValue",
|
|
223
|
-
value: n.value[i?.key ?? ""]
|
|
224
|
-
}, s?.getDataType(i.dataTypeIdentifier), s, a, D(i?.dataTypeIdentifier?.genericType?.genericMappers, o));
|
|
225
|
-
}
|
|
226
|
-
}]
|
|
227
|
-
};
|
|
228
|
-
});
|
|
229
|
-
export {
|
|
230
|
-
M as DFlowDataTypeContainsKeyRule
|
|
231
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DFlowDataTypeReactiveService } from '../DFlowDataType.service';
|
|
2
|
-
import { DataTypeRulesContainsKeyConfig, Flow, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
export declare class DFlowDataTypeContainsTypeRule {
|
|
4
|
-
static validate(value: NodeParameterValue, config: DataTypeRulesContainsKeyConfig, generics?: Map<string, GenericMapper>, flow?: Flow, dataTypeService?: DFlowDataTypeReactiveService): boolean;
|
|
5
|
-
}
|