@code0-tech/pictor 0.0.0-mvp.45 → 0.0.0-mvp.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/avatar/Avatar.js +6 -7
- package/dist/components/data-table/DataTableFilterInput.js +5 -3
- package/dist/components/editor/Editor.js +29 -30
- package/dist/components/form/InputSuggestion.js +29 -29
- package/dist/components/form/useForm.d.ts +3 -3
- package/dist/components/form/useForm.js +16 -16
- package/dist/components/{d-fullscreen/DFullScreen.d.ts → fullscreen/FullScreen.d.ts} +2 -2
- package/dist/components/{d-fullscreen/DFullScreen.js → fullscreen/FullScreen.js} +2 -2
- package/dist/components/{d-layout/DLayout.d.ts → layout/Layout.d.ts} +2 -2
- package/dist/components/{d-layout/DLayout.js → layout/Layout.js} +11 -11
- package/dist/components/menu/Menu.js +8 -8
- package/dist/components/resizable/Resizable.d.ts +12 -0
- package/dist/components/{d-resizable/DResizable.js → resizable/Resizable.js} +7 -7
- package/dist/components/tab/Tab.js +4 -4
- package/dist/components/toast/Toast.js +1 -1
- package/dist/index.d.ts +0 -20
- package/dist/index.js +152 -273
- package/dist/node_modules/prettier/plugins/babel.js +6674 -6685
- package/dist/node_modules/prettier/plugins/estree.js +2830 -2628
- package/dist/node_modules/prettier/standalone.js +1657 -1440
- package/package.json +29 -29
- package/dist/assets/components/d-flow/DFlow.style.css +0 -1
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +0 -1
- package/dist/assets/components/d-flow-input/DFlowInputDataType.style.css +0 -1
- package/dist/assets/components/d-flow-node/DFlowNode.style.css +0 -1
- package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +0 -1
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +0 -1
- package/dist/assets/components/d-flow-validation/DFlowValidation.style.css +0 -1
- package/dist/assets/node_modules/@xyflow/react/dist/style.css +0 -1
- package/dist/assets/node_modules/ldrs/dist/react/LineWobble.css +0 -1
- package/dist/components/d-application/DApplication.service.d.ts +0 -9
- package/dist/components/d-application/DApplication.service.js +0 -10
- package/dist/components/d-flow/DFlow.d.ts +0 -9
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +0 -4
- package/dist/components/d-flow/DFlow.edges.hook.js +0 -110
- package/dist/components/d-flow/DFlow.js +0 -484
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +0 -4
- package/dist/components/d-flow/DFlow.nodes.hook.js +0 -128
- package/dist/components/d-flow/DFlow.service.d.ts +0 -21
- package/dist/components/d-flow/DFlow.service.js +0 -148
- package/dist/components/d-flow/DFlow.util.d.ts +0 -4
- package/dist/components/d-flow/DFlow.util.js +0 -63
- package/dist/components/d-flow/DFlow.view.d.ts +0 -4
- package/dist/components/d-flow/DFlow.view.js +0 -1
- package/dist/components/d-flow/DFlowEdge.d.ts +0 -12
- package/dist/components/d-flow/DFlowEdge.js +0 -69
- package/dist/components/d-flow/index.d.ts +0 -4
- package/dist/components/d-flow/index.js +0 -10
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +0 -15
- package/dist/components/d-flow-data-type/DFlowDataType.service.js +0 -203
- package/dist/components/d-flow-data-type/DFlowDataType.view.d.ts +0 -41
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +0 -76
- package/dist/components/d-flow-data-type/index.d.ts +0 -2
- package/dist/components/d-flow-data-type/index.js +0 -6
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js +0 -222
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +0 -5
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js +0 -229
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -4
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.d.ts +0 -8
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeParentRule.js +0 -217
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.d.ts +0 -4
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRegexRule.js +0 -214
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +0 -7
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -250
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.d.ts +0 -8
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRule.js +0 -10
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.d.ts +0 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeRules.js +0 -10
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.d.ts +0 -4
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeNodeVariant.js +0 -214
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.d.ts +0 -4
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariant.js +0 -1
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.d.ts +0 -3
- package/dist/components/d-flow-data-type/variants/DFlowDataTypeVariants.js +0 -5
- package/dist/components/d-flow-file/DFlowTabDefault.d.ts +0 -7
- package/dist/components/d-flow-file/DFlowTabDefault.js +0 -105
- package/dist/components/d-flow-file/DFlowTabTrigger.d.ts +0 -6
- package/dist/components/d-flow-file/DFlowTabTrigger.js +0 -75
- package/dist/components/d-flow-file/DFlowTabs.d.ts +0 -8
- package/dist/components/d-flow-file/DFlowTabs.js +0 -84
- package/dist/components/d-flow-file/index.d.ts +0 -1
- package/dist/components/d-flow-file/index.js +0 -4
- package/dist/components/d-flow-folder/DFlowFolder.d.ts +0 -36
- package/dist/components/d-flow-folder/DFlowFolder.js +0 -273
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +0 -18
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +0 -53
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +0 -9
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +0 -115
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.d.ts +0 -10
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +0 -64
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +0 -5
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +0 -51
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +0 -10
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +0 -59
- package/dist/components/d-flow-folder/index.d.ts +0 -4
- package/dist/components/d-flow-folder/index.js +0 -13
- package/dist/components/d-flow-function/DFlowFunction.input.hook.d.ts +0 -5
- package/dist/components/d-flow-function/DFlowFunction.input.hook.js +0 -8
- package/dist/components/d-flow-function/DFlowFunction.return.hook.d.ts +0 -5
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +0 -9
- package/dist/components/d-flow-function/DFlowFunction.service.d.ts +0 -11
- package/dist/components/d-flow-function/DFlowFunction.service.js +0 -13
- package/dist/components/d-flow-function/DFlowFunction.view.d.ts +0 -81
- package/dist/components/d-flow-function/DFlowFunction.view.js +0 -139
- package/dist/components/d-flow-function/index.d.ts +0 -2
- package/dist/components/d-flow-function/index.js +0 -7
- package/dist/components/d-flow-input/DFlowInputDataType.d.ts +0 -15
- package/dist/components/d-flow-input/DFlowInputDataType.js +0 -131
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.d.ts +0 -9
- package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +0 -102
- package/dist/components/d-flow-input/DFlowInputDefault.d.ts +0 -10
- package/dist/components/d-flow-input/DFlowInputDefault.js +0 -129
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.d.ts +0 -7
- package/dist/components/d-flow-input/DFlowInputLiteralBadge.js +0 -24
- package/dist/components/d-flow-input/DFlowInputNodeBadge.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +0 -47
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.d.ts +0 -11
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +0 -33
- package/dist/components/d-flow-node/DFlowNode.d.ts +0 -10
- package/dist/components/d-flow-node/DFlowNode.js +0 -1
- package/dist/components/d-flow-node/DFlowNode.return.hook.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNode.return.hook.js +0 -27
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeDefaultCard.js +0 -118
- package/dist/components/d-flow-node/DFlowNodeGroupCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeGroupCard.js +0 -69
- package/dist/components/d-flow-node/DFlowNodeTriggerCard.d.ts +0 -5
- package/dist/components/d-flow-node/DFlowNodeTriggerCard.js +0 -66
- package/dist/components/d-flow-panel/DFlowExport.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowExport.js +0 -33
- package/dist/components/d-flow-panel/DFlowMiniMap.d.ts +0 -2
- package/dist/components/d-flow-panel/DFlowMiniMap.js +0 -15
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowPanelControl.js +0 -51
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +0 -4
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +0 -38
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +0 -2
- package/dist/components/d-flow-panel/DFlowPanelSize.js +0 -89
- package/dist/components/d-flow-panel/DFlowPanelUpdate.d.ts +0 -6
- package/dist/components/d-flow-panel/DFlowPanelUpdate.js +0 -77
- package/dist/components/d-flow-panel/index.d.ts +0 -5
- package/dist/components/d-flow-panel/index.js +0 -12
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +0 -34
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +0 -50
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +0 -132
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +0 -28
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +0 -14
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +0 -4
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.d.ts +0 -8
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +0 -73
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.util.js +0 -43
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.d.ts +0 -2
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuFooter.js +0 -69
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.d.ts +0 -6
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenuSearchBar.js +0 -21
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.d.ts +0 -7
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +0 -36
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.d.ts +0 -3
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +0 -44
- package/dist/components/d-flow-suggestion/index.d.ts +0 -1
- package/dist/components/d-flow-suggestion/index.js +0 -4
- package/dist/components/d-flow-type/DFlowType.service.d.ts +0 -11
- package/dist/components/d-flow-type/DFlowType.service.js +0 -13
- package/dist/components/d-flow-type/DFlowType.view.d.ts +0 -44
- package/dist/components/d-flow-type/DFlowType.view.js +0 -93
- package/dist/components/d-flow-type/index.d.ts +0 -2
- package/dist/components/d-flow-type/index.js +0 -6
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +0 -2
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +0 -18
- package/dist/components/d-flow-validation/DFlowValidation.d.ts +0 -6
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +0 -23
- package/dist/components/d-flow-validation/DFlowValidation.js +0 -67
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +0 -3
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +0 -58
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +0 -4
- package/dist/components/d-flow-validation/DValueValidation.hook.js +0 -9
- package/dist/components/d-flow-validation/index.d.ts +0 -2
- package/dist/components/d-flow-validation/index.js +0 -6
- package/dist/components/d-license/DNamespaceLicense.service.d.ts +0 -11
- package/dist/components/d-license/DNamespaceLicense.service.js +0 -13
- package/dist/components/d-license/DNamespaceLicense.view.d.ts +0 -26
- package/dist/components/d-license/DNamespaceLicense.view.js +0 -57
- package/dist/components/d-license/index.d.ts +0 -2
- package/dist/components/d-license/index.js +0 -6
- package/dist/components/d-member/DNamespaceMember.service.d.ts +0 -13
- package/dist/components/d-member/DNamespaceMember.service.js +0 -18
- package/dist/components/d-member/DNamespaceMember.view.d.ts +0 -29
- package/dist/components/d-member/DNamespaceMember.view.js +0 -62
- package/dist/components/d-member/DNamespaceMemberCard.d.ts +0 -10
- package/dist/components/d-member/DNamespaceMemberCard.js +0 -16
- package/dist/components/d-member/DNamespaceMemberContent.d.ts +0 -10
- package/dist/components/d-member/DNamespaceMemberContent.js +0 -225
- package/dist/components/d-member/DNamespaceMemberList.d.ts +0 -12
- package/dist/components/d-member/DNamespaceMemberList.js +0 -24
- package/dist/components/d-member/index.d.ts +0 -4
- package/dist/components/d-member/index.js +0 -10
- package/dist/components/d-namespace/DNamespace.service.d.ts +0 -6
- package/dist/components/d-namespace/DNamespace.service.js +0 -13
- package/dist/components/d-namespace/DNamespace.view.d.ts +0 -32
- package/dist/components/d-namespace/DNamespace.view.js +0 -65
- package/dist/components/d-namespace/index.d.ts +0 -2
- package/dist/components/d-namespace/index.js +0 -6
- package/dist/components/d-organization/DOrganization.service.d.ts +0 -8
- package/dist/components/d-organization/DOrganization.service.js +0 -13
- package/dist/components/d-organization/DOrganization.view.d.ts +0 -23
- package/dist/components/d-organization/DOrganization.view.js +0 -55
- package/dist/components/d-organization/DOrganizationCard.d.ts +0 -11
- package/dist/components/d-organization/DOrganizationCard.js +0 -16
- package/dist/components/d-organization/DOrganizationList.d.ts +0 -10
- package/dist/components/d-organization/DOrganizationList.js +0 -24
- package/dist/components/d-organization/DOrganizationMenu.d.ts +0 -9
- package/dist/components/d-organization/DOrganizationMenu.js +0 -18
- package/dist/components/d-organization/DOrganizatonContent.d.ts +0 -10
- package/dist/components/d-organization/DOrganizatonContent.js +0 -102
- package/dist/components/d-organization/index.d.ts +0 -5
- package/dist/components/d-organization/index.js +0 -40
- package/dist/components/d-project/DNamespaceProject.service.d.ts +0 -13
- package/dist/components/d-project/DNamespaceProject.service.js +0 -13
- package/dist/components/d-project/DNamespaceProject.view.d.ts +0 -44
- package/dist/components/d-project/DNamespaceProject.view.js +0 -78
- package/dist/components/d-project/DNamespaceProjectCard.d.ts +0 -9
- package/dist/components/d-project/DNamespaceProjectCard.js +0 -17
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +0 -10
- package/dist/components/d-project/DNamespaceProjectContent.js +0 -72
- package/dist/components/d-project/DNamespaceProjectList.d.ts +0 -11
- package/dist/components/d-project/DNamespaceProjectList.js +0 -26
- package/dist/components/d-project/DNamespaceProjectMenu.d.ts +0 -13
- package/dist/components/d-project/DNamespaceProjectMenu.js +0 -57
- package/dist/components/d-project/index.d.ts +0 -5
- package/dist/components/d-project/index.js +0 -27
- package/dist/components/d-resizable/DResizable.d.ts +0 -12
- package/dist/components/d-role/DNamespaceRole.service.d.ts +0 -13
- package/dist/components/d-role/DNamespaceRole.service.js +0 -13
- package/dist/components/d-role/DNamespaceRole.view.d.ts +0 -29
- package/dist/components/d-role/DNamespaceRole.view.js +0 -61
- package/dist/components/d-role/DNamespaceRoleCard.d.ts +0 -11
- package/dist/components/d-role/DNamespaceRoleCard.js +0 -17
- package/dist/components/d-role/DNamespaceRoleContent.d.ts +0 -10
- package/dist/components/d-role/DNamespaceRoleContent.js +0 -163
- package/dist/components/d-role/DNamespaceRoleList.d.ts +0 -12
- package/dist/components/d-role/DNamespaceRoleList.js +0 -25
- package/dist/components/d-role/DNamespaceRolePermissions.d.ts +0 -5
- package/dist/components/d-role/DNamespaceRolePermissions.js +0 -123
- package/dist/components/d-role/index.d.ts +0 -4
- package/dist/components/d-role/index.js +0 -10
- package/dist/components/d-runtime/DRuntime.service.d.ts +0 -12
- package/dist/components/d-runtime/DRuntime.service.js +0 -9
- package/dist/components/d-runtime/DRuntime.view.d.ts +0 -41
- package/dist/components/d-runtime/DRuntime.view.js +0 -76
- package/dist/components/d-runtime/DRuntimeCard.d.ts +0 -9
- package/dist/components/d-runtime/DRuntimeCard.js +0 -18
- package/dist/components/d-runtime/DRuntimeContent.d.ts +0 -9
- package/dist/components/d-runtime/DRuntimeContent.js +0 -46
- package/dist/components/d-runtime/DRuntimeList.d.ts +0 -12
- package/dist/components/d-runtime/DRuntimeList.js +0 -29
- package/dist/components/d-runtime/index.d.ts +0 -4
- package/dist/components/d-runtime/index.js +0 -10
- package/dist/components/d-user/DUser.service.d.ts +0 -20
- package/dist/components/d-user/DUser.service.js +0 -18
- package/dist/components/d-user/DUser.session.hook.d.ts +0 -3
- package/dist/components/d-user/DUser.session.hook.js +0 -16
- package/dist/components/d-user/DUser.view.d.ts +0 -55
- package/dist/components/d-user/DUser.view.js +0 -103
- package/dist/components/d-user/DUserCard.d.ts +0 -8
- package/dist/components/d-user/DUserCard.js +0 -15
- package/dist/components/d-user/DUserContent.d.ts +0 -8
- package/dist/components/d-user/DUserContent.js +0 -52
- package/dist/components/d-user/DUserInput.d.ts +0 -7
- package/dist/components/d-user/DUserInput.js +0 -101
- package/dist/components/d-user/DUserList.d.ts +0 -9
- package/dist/components/d-user/DUserList.js +0 -23
- package/dist/components/d-user/DUserMenu.d.ts +0 -8
- package/dist/components/d-user/DUserMenu.js +0 -30
- package/dist/components/d-user/index.d.ts +0 -7
- package/dist/components/d-user/index.js +0 -27
- package/dist/node_modules/ldrs/dist/react/LineWobble.js +0 -6
- package/dist/utils/generics.d.ts +0 -21
- package/dist/utils/generics.js +0 -385
- /package/dist/assets/components/{d-fullscreen/DFullScreen.style.css → fullscreen/FullScreen.style.css} +0 -0
- /package/dist/assets/components/{d-layout/DLayout.style.css → layout/Layout.style.css} +0 -0
- /package/dist/assets/components/{d-resizable/DResizable.style.css → resizable/Resizable.style.css} +0 -0
package/dist/utils/generics.js
DELETED
|
@@ -1,385 +0,0 @@
|
|
|
1
|
-
import { useReturnType as G } from "../components/d-flow-function/DFlowFunction.return.hook.js";
|
|
2
|
-
const _ = "GENERIC", y = (e) => typeof e == "object" && e !== null && !Array.isArray(e), d = (e) => y(e) ? "genericKey" in e || "genericType" in e || "dataType" in e : !1, A = (e) => y(e) && "target" in e && Array.isArray(e.sourceDataTypeIdentifiers), R = (e) => y(e) && "variant" in e && "identifier" in e, M = (e) => y(e) && "variant" in e && "config" in e, O = (e) => {
|
|
3
|
-
if (e)
|
|
4
|
-
return typeof e == "string" ? e : e?.dataType?.identifier ?? e?.genericType?.dataType?.identifier ?? void 0;
|
|
5
|
-
}, P = (e, t) => {
|
|
6
|
-
if (e)
|
|
7
|
-
return typeof e == "string" ? t && t.has(e) ? e : void 0 : e.genericKey ?? void 0;
|
|
8
|
-
}, b = (e) => !e || typeof e == "string" ? [] : e.genericType?.genericMappers ?? [], w = (e, t) => ({
|
|
9
|
-
...e,
|
|
10
|
-
sourceDataTypeIdentifiers: t
|
|
11
|
-
}), z = (e) => {
|
|
12
|
-
const t = e.genericCombinationStrategies ?? [];
|
|
13
|
-
return new Set(t.map((r) => r.type));
|
|
14
|
-
}, C = (e) => {
|
|
15
|
-
if (Array.isArray(e))
|
|
16
|
-
return e.map(C);
|
|
17
|
-
if (y(e)) {
|
|
18
|
-
const t = {};
|
|
19
|
-
return Object.entries(e).forEach(([r, s]) => {
|
|
20
|
-
s != null && (r === "__typename" || r === "id" || r === "createdAt" || r === "updatedAt" || (t[r] = C(s)));
|
|
21
|
-
}), t;
|
|
22
|
-
}
|
|
23
|
-
return e;
|
|
24
|
-
}, S = (e, t) => {
|
|
25
|
-
if (!t) return !e;
|
|
26
|
-
if (typeof t == "string")
|
|
27
|
-
return t === _ ? !0 : O(e) === t;
|
|
28
|
-
if (t.genericKey) return !0;
|
|
29
|
-
const s = O(t), a = O(e);
|
|
30
|
-
return !!s && s === a;
|
|
31
|
-
}, D = (e, t) => {
|
|
32
|
-
switch (e.__typename) {
|
|
33
|
-
case "DataTypeRulesContainsKeyConfig":
|
|
34
|
-
case "DataTypeRulesContainsTypeConfig":
|
|
35
|
-
case "DataTypeRulesReturnTypeConfig":
|
|
36
|
-
case "DataTypeRulesParentTypeConfig": {
|
|
37
|
-
const r = e.dataTypeIdentifier;
|
|
38
|
-
return r ? {
|
|
39
|
-
...e,
|
|
40
|
-
dataTypeIdentifier: E(r, t)
|
|
41
|
-
} : e;
|
|
42
|
-
}
|
|
43
|
-
case "DataTypeRulesInputTypesConfig": {
|
|
44
|
-
const r = e, s = r.inputTypes?.map((a) => ({
|
|
45
|
-
...a,
|
|
46
|
-
dataTypeIdentifier: E(a.dataTypeIdentifier, t)
|
|
47
|
-
}));
|
|
48
|
-
return {
|
|
49
|
-
...r,
|
|
50
|
-
inputTypes: s
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
default:
|
|
54
|
-
return e;
|
|
55
|
-
}
|
|
56
|
-
}, F = (e, t) => {
|
|
57
|
-
switch (e.variant) {
|
|
58
|
-
case "CONTAINS_KEY": {
|
|
59
|
-
const r = D({
|
|
60
|
-
...e.config,
|
|
61
|
-
__typename: "DataTypeRulesContainsKeyConfig"
|
|
62
|
-
}, t);
|
|
63
|
-
return {
|
|
64
|
-
...e,
|
|
65
|
-
config: r
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
case "CONTAINS_TYPE": {
|
|
69
|
-
const r = D({
|
|
70
|
-
...e.config,
|
|
71
|
-
__typename: "DataTypeRulesContainsTypeConfig"
|
|
72
|
-
}, t);
|
|
73
|
-
return {
|
|
74
|
-
...e,
|
|
75
|
-
config: r
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
case "RETURN_TYPE": {
|
|
79
|
-
const r = D({
|
|
80
|
-
...e.config,
|
|
81
|
-
__typename: "DataTypeRulesReturnTypeConfig"
|
|
82
|
-
}, t);
|
|
83
|
-
return {
|
|
84
|
-
...e,
|
|
85
|
-
config: r
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
case "INPUT_TYPES": {
|
|
89
|
-
const r = D({
|
|
90
|
-
...e.config,
|
|
91
|
-
__typename: "DataTypeRulesInputTypesConfig"
|
|
92
|
-
}, t);
|
|
93
|
-
return {
|
|
94
|
-
...e,
|
|
95
|
-
config: r
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
case "PARENT_TYPE": {
|
|
99
|
-
const r = D({
|
|
100
|
-
...e.config,
|
|
101
|
-
__typename: "DataTypeRulesParentTypeConfig"
|
|
102
|
-
}, t);
|
|
103
|
-
return {
|
|
104
|
-
...e,
|
|
105
|
-
config: r
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
default:
|
|
109
|
-
return e;
|
|
110
|
-
}
|
|
111
|
-
}, Y = (e, t, r) => {
|
|
112
|
-
const s = {}, a = new Set(r), c = (i, n) => {
|
|
113
|
-
if (!i || !n) return;
|
|
114
|
-
const f = P(i, a);
|
|
115
|
-
if (f && a.has(f)) {
|
|
116
|
-
d(n) && (s[f] = n);
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
const o = b(i);
|
|
120
|
-
if (o.length === 0) return;
|
|
121
|
-
const u = b(n);
|
|
122
|
-
for (const p of o) {
|
|
123
|
-
const l = u.find((T) => T.target === p.target);
|
|
124
|
-
if (!l) continue;
|
|
125
|
-
const m = (p.sourceDataTypeIdentifiers ?? []).map((T) => P(T, a)).filter((T) => !!T && a.has(T)), g = z(p), I = l.sourceDataTypeIdentifiers ?? [];
|
|
126
|
-
if ((g.has("AND") || g.has("OR")) && I.length === 1 && m.length === (p.sourceDataTypeIdentifiers?.length ?? 0))
|
|
127
|
-
for (const T of m)
|
|
128
|
-
s[T] = I[0];
|
|
129
|
-
else {
|
|
130
|
-
const T = Math.min(p.sourceDataTypeIdentifiers?.length ?? 0, I.length);
|
|
131
|
-
for (let h = 0; h < T; h++)
|
|
132
|
-
c(p.sourceDataTypeIdentifiers[h], I[h]);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
return c(e, t), s;
|
|
137
|
-
}, E = (e, t) => {
|
|
138
|
-
if (!d(e)) return e;
|
|
139
|
-
const {
|
|
140
|
-
genericKey: r,
|
|
141
|
-
genericType: s
|
|
142
|
-
} = e;
|
|
143
|
-
if (r && t.has(r)) {
|
|
144
|
-
const c = t.get(r);
|
|
145
|
-
return c && d(c) ? c : e;
|
|
146
|
-
}
|
|
147
|
-
if (!s) return e;
|
|
148
|
-
const a = (s.genericMappers ?? []).map((c) => {
|
|
149
|
-
const i = [];
|
|
150
|
-
for (const n of c.sourceDataTypeIdentifiers ?? []) {
|
|
151
|
-
if (!n) continue;
|
|
152
|
-
const f = n.genericKey;
|
|
153
|
-
if (f && t.has(f)) {
|
|
154
|
-
const o = t.get(f);
|
|
155
|
-
o && A(o) ? i.push(...o.sourceDataTypeIdentifiers) : o && d(o) ? i.push(o) : i.push(n);
|
|
156
|
-
} else d(n) ? i.push(E(n, t)) : i.push(n);
|
|
157
|
-
}
|
|
158
|
-
return w(c, i);
|
|
159
|
-
});
|
|
160
|
-
return {
|
|
161
|
-
...e,
|
|
162
|
-
genericType: {
|
|
163
|
-
...s,
|
|
164
|
-
genericMappers: a
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
}, U = (e, t, r) => {
|
|
168
|
-
const s = {}, a = new Set(r), c = (i, n, f) => {
|
|
169
|
-
if (!(!i || !n || a.size === 0)) {
|
|
170
|
-
if (d(i)) {
|
|
171
|
-
const o = i.genericKey;
|
|
172
|
-
if (o && a.has(o) && (f ? s[o] = f : (A(n) || d(n)) && (s[o] = n), a.delete(o), a.size === 0))
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
if (A(i) && A(n)) {
|
|
176
|
-
const o = Math.min(i.sourceDataTypeIdentifiers?.length, n.sourceDataTypeIdentifiers?.length);
|
|
177
|
-
for (let u = 0; u < o; u++)
|
|
178
|
-
if (c(i.sourceDataTypeIdentifiers[u], n.sourceDataTypeIdentifiers[u], n), a.size === 0) return;
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
if (R(i) && R(n)) {
|
|
182
|
-
const o = i.rules?.nodes ?? [], u = n.rules?.nodes ?? [], p = Math.min(o.length, u.length);
|
|
183
|
-
for (let l = 0; l < p; l++) {
|
|
184
|
-
const m = o[l], g = u[l];
|
|
185
|
-
if (!(!m || !g) && (c(m, g), a.size === 0))
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
if (M(i) && M(n)) {
|
|
191
|
-
c(i.config, n.config);
|
|
192
|
-
return;
|
|
193
|
-
}
|
|
194
|
-
if (Array.isArray(i) && Array.isArray(n)) {
|
|
195
|
-
const o = Math.min(i.length, n.length);
|
|
196
|
-
for (let u = 0; u < o; u++)
|
|
197
|
-
if (c(i[u], n[u], f), a.size === 0) return;
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
if (y(i) && y(n)) {
|
|
201
|
-
for (const o of Object.keys(i))
|
|
202
|
-
if (o in n && o !== "__typename" && (c(i[o], n[o], f), a.size === 0))
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
return c(e, t), s;
|
|
208
|
-
}, V = (e, t) => {
|
|
209
|
-
const r = e.rules ? {
|
|
210
|
-
...e.rules,
|
|
211
|
-
nodes: e.rules.nodes?.map((s) => s && {
|
|
212
|
-
...s,
|
|
213
|
-
config: D(s.config, t)
|
|
214
|
-
})
|
|
215
|
-
} : void 0;
|
|
216
|
-
return {
|
|
217
|
-
...e,
|
|
218
|
-
rules: r
|
|
219
|
-
};
|
|
220
|
-
}, k = (e, t, r, s, a) => {
|
|
221
|
-
const c = /* @__PURE__ */ new Map(), i = e?.genericKeys ?? [];
|
|
222
|
-
if (!e?.parameterDefinitions || i.length <= 0) return c;
|
|
223
|
-
const n = new Set(i);
|
|
224
|
-
return e.parameterDefinitions.forEach((f, o) => {
|
|
225
|
-
const u = f.dataTypeIdentifier, p = t[o], l = p?.__typename === "ReferenceValue" ? (() => {
|
|
226
|
-
const g = a?.nodes?.nodes?.find((h) => h?.id === p.nodeFunctionId), I = g?.parameters?.nodes?.map((h) => h?.value) ?? [], T = s.getById(g?.functionDefinition?.id);
|
|
227
|
-
return G(T, I, r, s);
|
|
228
|
-
})() : r.getTypeFromValue(p, a);
|
|
229
|
-
if (!u || !l) return;
|
|
230
|
-
const m = Y(u, l, i);
|
|
231
|
-
for (const [g, I] of Object.entries(m))
|
|
232
|
-
n.has(g) && (c.has(g) || c.set(g, I));
|
|
233
|
-
}), c;
|
|
234
|
-
};
|
|
235
|
-
function L(e, t) {
|
|
236
|
-
if (e.variant !== t.variant) return !1;
|
|
237
|
-
const r = t.rules?.nodes ?? [];
|
|
238
|
-
if (r.length === 0) return !0;
|
|
239
|
-
const s = e.rules?.nodes ?? [];
|
|
240
|
-
for (const a of r) {
|
|
241
|
-
if (!a) continue;
|
|
242
|
-
if (!s.some((i) => i ? x(i, a) : !1)) return !1;
|
|
243
|
-
}
|
|
244
|
-
return !0;
|
|
245
|
-
}
|
|
246
|
-
function x(e, t) {
|
|
247
|
-
if (e.variant !== t.variant) return !1;
|
|
248
|
-
switch (t.variant) {
|
|
249
|
-
case "CONTAINS_TYPE":
|
|
250
|
-
case "RETURN_TYPE":
|
|
251
|
-
return S(e.config.dataTypeIdentifier, t.config.dataTypeIdentifier);
|
|
252
|
-
case "CONTAINS_KEY": {
|
|
253
|
-
const r = e.config, s = t.config;
|
|
254
|
-
return r.key !== s.key ? !1 : S(r.dataTypeIdentifier, s.dataTypeIdentifier);
|
|
255
|
-
}
|
|
256
|
-
case "INPUT_TYPES": {
|
|
257
|
-
const r = e.config, a = t.config.inputTypes ?? [], c = r.inputTypes ?? [];
|
|
258
|
-
return a.every((i) => c.some((n) => S(n.dataTypeIdentifier, i.dataTypeIdentifier)));
|
|
259
|
-
}
|
|
260
|
-
case "ITEM_OF_COLLECTION": {
|
|
261
|
-
const r = e.config.items ?? [], s = t.config.items ?? [];
|
|
262
|
-
return r.length !== s.length ? !1 : r.every((a, c) => a === s[c]);
|
|
263
|
-
}
|
|
264
|
-
case "NUMBER_RANGE": {
|
|
265
|
-
const r = e.config, s = t.config;
|
|
266
|
-
return r.from === s.from && r.to === s.to && r.steps === s.steps;
|
|
267
|
-
}
|
|
268
|
-
case "REGEX": {
|
|
269
|
-
const r = e.config.pattern, s = t.config.pattern;
|
|
270
|
-
return r === s;
|
|
271
|
-
}
|
|
272
|
-
default:
|
|
273
|
-
return JSON.stringify(C(e.config)) === JSON.stringify(C(t.config));
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
function v(e, t) {
|
|
277
|
-
const r = (i) => !!(i === _ || d(i) && i.genericKey), s = (i, n) => r(i) || r(n) ? !0 : i == null || n == null ? i === n : Array.isArray(n) ? !Array.isArray(i) || i.length !== n.length ? !1 : i.every((f, o) => s(f, n[o])) : y(n) ? y(i) ? Object.keys(n).every((o) => s(i[o], n[o])) : !1 : i === n, a = C(e), c = C(t);
|
|
278
|
-
return s(a, c);
|
|
279
|
-
}
|
|
280
|
-
const j = (e, t) => {
|
|
281
|
-
if (typeof e == "string") {
|
|
282
|
-
const s = t.getDataType(e);
|
|
283
|
-
if (!s) return e;
|
|
284
|
-
const a = s.genericKeys ?? [];
|
|
285
|
-
if (s.variant === "ARRAY" && a.length > 0) {
|
|
286
|
-
const i = s.rules?.nodes?.find((n) => n?.variant === "CONTAINS_TYPE")?.config?.dataTypeIdentifier;
|
|
287
|
-
if (i) {
|
|
288
|
-
const [n] = a;
|
|
289
|
-
return n ? {
|
|
290
|
-
dataType: s.json,
|
|
291
|
-
genericType: {
|
|
292
|
-
dataType: s.json,
|
|
293
|
-
genericMappers: [{
|
|
294
|
-
target: n,
|
|
295
|
-
sourceDataTypeIdentifiers: [j(i, t)]
|
|
296
|
-
}]
|
|
297
|
-
}
|
|
298
|
-
} : e;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
return e;
|
|
302
|
-
}
|
|
303
|
-
if (!d(e) || !e.genericType) return e;
|
|
304
|
-
const r = e.genericType.genericMappers?.map((s) => ({
|
|
305
|
-
...s,
|
|
306
|
-
sourceDataTypeIdentifiers: s?.sourceDataTypeIdentifiers?.map((a) => j(a, t))
|
|
307
|
-
})) ?? [];
|
|
308
|
-
return {
|
|
309
|
-
...e,
|
|
310
|
-
genericType: {
|
|
311
|
-
...e.genericType,
|
|
312
|
-
genericMappers: r
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
}, K = (e) => {
|
|
316
|
-
if (Array.isArray(e)) {
|
|
317
|
-
const t = e.map(K);
|
|
318
|
-
return t.length <= 1 ? t : t.every(y) ? [...t].sort((a, c) => JSON.stringify(a).localeCompare(JSON.stringify(c))) : t.every((a) => !Array.isArray(a) && !y(a)) ? [...t].sort((a, c) => JSON.stringify(a).localeCompare(JSON.stringify(c))) : t;
|
|
319
|
-
}
|
|
320
|
-
if (y(e)) {
|
|
321
|
-
const t = e;
|
|
322
|
-
return Object.keys(t).sort().reduce((r, s) => (r[s] = K(t[s]), r), {});
|
|
323
|
-
}
|
|
324
|
-
return e;
|
|
325
|
-
}, B = (e, t) => {
|
|
326
|
-
if (!t.genericType) return /* @__PURE__ */ new Map();
|
|
327
|
-
const r = new Set(e.genericKeys ?? []), s = /* @__PURE__ */ new Map();
|
|
328
|
-
for (const a of t.genericType.genericMappers ?? []) {
|
|
329
|
-
const c = a.target;
|
|
330
|
-
if (!r.has(c))
|
|
331
|
-
for (const i of a.sourceDataTypeIdentifiers ?? []) {
|
|
332
|
-
const n = i.genericKey;
|
|
333
|
-
n && r.has(n) && s.set(n, c);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
return s;
|
|
337
|
-
}, H = (e, t = []) => {
|
|
338
|
-
const r = new Set(t), s = (n) => n ? r.size === 0 ? !0 : r.has(n) : !1, a = (n) => {
|
|
339
|
-
const o = s(n.target) ? _ : n.target, u = (n.sourceDataTypeIdentifiers ?? []).map((p) => i(p));
|
|
340
|
-
return K({
|
|
341
|
-
...n,
|
|
342
|
-
target: o,
|
|
343
|
-
sourceDataTypeIdentifiers: u
|
|
344
|
-
});
|
|
345
|
-
}, c = (n) => {
|
|
346
|
-
const o = s(n.genericKey) ? _ : n.genericKey, u = {
|
|
347
|
-
...n,
|
|
348
|
-
genericKey: o,
|
|
349
|
-
dataType: n.dataType ? i(n.dataType) : n.dataType,
|
|
350
|
-
genericType: n.genericType ? i(n.genericType) : n.genericType
|
|
351
|
-
};
|
|
352
|
-
return K(u);
|
|
353
|
-
};
|
|
354
|
-
function i(n) {
|
|
355
|
-
if (n == null) return n;
|
|
356
|
-
if (Array.isArray(n)) {
|
|
357
|
-
const f = n.map((o) => i(o));
|
|
358
|
-
return K(f);
|
|
359
|
-
}
|
|
360
|
-
if (d(n))
|
|
361
|
-
return c(n);
|
|
362
|
-
if (A(n))
|
|
363
|
-
return a(n);
|
|
364
|
-
if (y(n)) {
|
|
365
|
-
const f = Object.entries(n).reduce((o, [u, p]) => (o[u] = i(p), o), {});
|
|
366
|
-
return K(f);
|
|
367
|
-
}
|
|
368
|
-
return n;
|
|
369
|
-
}
|
|
370
|
-
return i(e);
|
|
371
|
-
};
|
|
372
|
-
export {
|
|
373
|
-
L as isMatchingDataTypeObject,
|
|
374
|
-
v as isMatchingType,
|
|
375
|
-
V as replaceGenericKeysInDataTypeObject,
|
|
376
|
-
E as replaceGenericKeysInType,
|
|
377
|
-
H as replaceGenericsAndSortType,
|
|
378
|
-
D as replaceIdentifiersInConfig,
|
|
379
|
-
F as replaceIdentifiersInRule,
|
|
380
|
-
U as resolveAllGenericKeysInDataTypeObject,
|
|
381
|
-
Y as resolveGenericKeyMappings,
|
|
382
|
-
k as resolveGenericKeys,
|
|
383
|
-
j as resolveType,
|
|
384
|
-
B as targetForGenericKey
|
|
385
|
-
};
|
|
File without changes
|
|
File without changes
|
/package/dist/assets/components/{d-resizable/DResizable.style.css → resizable/Resizable.style.css}
RENAMED
|
File without changes
|