@code0-tech/pictor 0.0.0-mvp.26 → 0.0.0-mvp.27
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/assets/components/badge/Badge.style.css +1 -1
- package/dist/assets/components/button/Button.style.css +1 -1
- package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
- package/dist/assets/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.style.css +1 -1
- 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-layout/DLayout.style.css +1 -1
- package/dist/assets/components/d-resizable/DResizable.style.css +1 -1
- package/dist/assets/components/file-tabs/FileTabs.style.css +1 -1
- package/dist/assets/components/form/Input.style.css +1 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -1
- package/dist/components/avatar/Avatar.js +7 -7
- package/dist/components/badge/Badge.d.ts +1 -1
- package/dist/components/badge/Badge.js +57 -17
- package/dist/components/breadcrumb/Breadcrumb.js +5 -5
- package/dist/components/button/Button.js +8 -8
- 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 +5 -3
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +2 -1
- package/dist/components/d-flow/DFlow.edges.hook.js +98 -136
- package/dist/components/d-flow/DFlow.js +214 -199
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +5 -1
- package/dist/components/d-flow/DFlow.nodes.hook.js +101 -123
- package/dist/components/d-flow/DFlow.service.d.ts +12 -7
- package/dist/components/d-flow/DFlow.service.js +117 -7
- 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 +9 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.service.js +12 -10
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +8 -2
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +71 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.js +3 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.js +4 -4
- 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/tab → d-flow-file}/DFlowTabDefault.d.ts +2 -3
- package/dist/components/d-flow-file/DFlowTabDefault.js +139 -0
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
- package/dist/components/d-flow-file/DFlowTabTrigger.js +75 -0
- package/dist/components/d-flow-file/DFlowTabs.d.ts +6 -0
- package/dist/components/d-flow-file/DFlowTabs.js +128 -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 → d-flow-folder}/DFlowFolder.d.ts +11 -5
- package/dist/components/d-flow-folder/DFlowFolder.js +158 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +69 -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/DFlowFolderItemPathInput.d.ts +5 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +49 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +9 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.js +1 -1
- 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 → d-flow-function}/DFlowFunction.service.d.ts +1 -1
- package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +12 -0
- package/dist/components/d-flow-function/DFlowFunction.view.js +132 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +120 -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 +48 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +71 -0
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.js +175 -165
- 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 +70 -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 → d-flow-suggestion}/DFlowSuggestion.hook.d.ts +0 -15
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +161 -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 +83 -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 +1 -1
- 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/index.d.ts +1 -0
- package/dist/components/d-flow-suggestion/index.js +4 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.service.d.ts +1 -1
- package/dist/components/d-flow-type/DFlowType.service.js +12 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +6 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.js +16 -10
- 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 +62 -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.js +2 -2
- package/dist/components/d-member/DNamespaceMemberList.js +5 -5
- package/dist/components/d-organization/DOrganizationList.js +7 -7
- package/dist/components/d-organization/DOrganizationMenu.js +5 -5
- package/dist/components/d-organization/DOrganizatonContent.js +22 -22
- package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
- package/dist/components/d-project/DNamespaceProjectList.js +5 -5
- package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
- package/dist/components/d-resizable/DResizable.js +18 -17
- package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
- package/dist/components/d-runtime/DRuntimeList.js +7 -7
- package/dist/components/d-user/DUser.session.hook.js +2 -2
- package/dist/components/d-user/DUserContent.js +13 -13
- package/dist/components/d-user/DUserInput.js +9 -9
- package/dist/components/d-user/DUserList.js +9 -9
- package/dist/components/file-tabs/FileTabs.js +2 -2
- package/dist/components/file-tabs/FileTabs.service.d.ts +5 -0
- package/dist/components/file-tabs/FileTabs.service.js +68 -16
- package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
- package/dist/components/form/CheckboxInput.js +4 -4
- package/dist/components/form/EmailInput.js +12 -12
- package/dist/components/form/Input.js +220 -206
- package/dist/components/form/Input.selection.hook.js +9 -9
- package/dist/components/form/Input.syntax.hook.js +7 -7
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +6 -6
- package/dist/components/form/SwitchInput.js +7 -7
- package/dist/components/form/TextInput.js +10 -10
- package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
- package/dist/components/segmented-control/SegmentedControl.js +14 -12
- package/dist/index.d.ts +8 -0
- package/dist/index.js +117 -117
- 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/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
- 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/generics.d.ts +5 -6
- package/dist/utils/generics.js +2 -2
- package/dist/utils/objectStore.js +15 -15
- package/dist/utils/reactiveArrayService.js +5 -5
- package/package.json +7 -4
- package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +0 -1
- package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +0 -1
- package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +0 -1
- package/dist/components/d-flow/DFlow.view.d.ts +0 -113
- package/dist/components/d-flow/DFlow.view.js +0 -248
- package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
- package/dist/components/d-flow/control/DFlowControl.js +0 -81
- 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.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 -20
- package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -243
- package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
- package/dist/components/d-flow/export/DFlowExport.js +0 -24
- package/dist/components/d-flow/folder/DFlowFolder.js +0 -119
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
- 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 -74
- 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 -93
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -22
- 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.js +0 -150
- 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 -35
- 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.js +0 -103
- 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.js +0 -9
- 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 -60
- /package/dist/assets/components/{d-flow/input → d-flow-input}/DFlowInputDataType.style.css +0 -0
- /package/dist/assets/components/{d-flow/validation → d-flow-validation}/DFlowValidation.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}/index.js +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/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.js +0 -0
- /package/dist/components/{d-flow/folder → d-flow-folder}/index.d.ts +0 -0
- /package/dist/components/{d-flow/folder → d-flow-folder}/index.js +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/export → d-flow-panel}/DFlowExport.d.ts +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
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { DataType, DataTypeRuleConnection, DataTypeVariant, Maybe, Runtime, Scalars, TranslationConnection } from '@code0-tech/sagittarius-graphql-types';
|
|
2
2
|
export declare class DataTypeView {
|
|
3
|
+
/** Name of the function */
|
|
4
|
+
private readonly _aliases?;
|
|
3
5
|
/** Time when this DataType was created */
|
|
4
6
|
private readonly _createdAt?;
|
|
7
|
+
/** Display message of the function */
|
|
8
|
+
private readonly _displayMessages?;
|
|
5
9
|
/** Generic keys of the datatype */
|
|
6
10
|
private readonly _genericKeys?;
|
|
7
11
|
/** Global ID of this DataType */
|
|
@@ -10,16 +14,18 @@ export declare class DataTypeView {
|
|
|
10
14
|
private readonly _identifier?;
|
|
11
15
|
/** Names of the flow type setting */
|
|
12
16
|
private readonly _name?;
|
|
13
|
-
/** The namespace where this datatype belongs to */
|
|
14
|
-
private readonly _runtime?;
|
|
15
17
|
/** Rules of the datatype */
|
|
16
18
|
private readonly _rules?;
|
|
19
|
+
/** The namespace where this datatype belongs to */
|
|
20
|
+
private readonly _runtime?;
|
|
17
21
|
/** Time when this DataType was last updated */
|
|
18
22
|
private readonly _updatedAt?;
|
|
19
23
|
/** The type of the datatype */
|
|
20
24
|
private readonly _variant?;
|
|
21
25
|
constructor(dataType: DataType);
|
|
26
|
+
get aliases(): Maybe<TranslationConnection> | undefined;
|
|
22
27
|
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
28
|
+
get displayMessages(): Maybe<TranslationConnection> | undefined;
|
|
23
29
|
get genericKeys(): Maybe<Array<Scalars["String"]["output"]>> | undefined;
|
|
24
30
|
get id(): Maybe<Scalars["DataTypeID"]["output"]> | undefined;
|
|
25
31
|
get identifier(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
function t(i, e, r) {
|
|
2
|
+
return (e = n(e)) in i ? Object.defineProperty(i, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = r, i;
|
|
3
|
+
}
|
|
4
|
+
function n(i) {
|
|
5
|
+
var e = u(i, "string");
|
|
6
|
+
return typeof e == "symbol" ? e : e + "";
|
|
7
|
+
}
|
|
8
|
+
function u(i, e) {
|
|
9
|
+
if (typeof i != "object" || !i) return i;
|
|
10
|
+
var r = i[Symbol.toPrimitive];
|
|
11
|
+
if (r !== void 0) {
|
|
12
|
+
var s = r.call(i, e);
|
|
13
|
+
if (typeof s != "object") return s;
|
|
14
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
|
+
}
|
|
16
|
+
return (e === "string" ? String : Number)(i);
|
|
17
|
+
}
|
|
18
|
+
class a {
|
|
19
|
+
constructor(e) {
|
|
20
|
+
t(this, "_aliases", void 0), t(this, "_createdAt", 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._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 = e.rules, this._updatedAt = e.updatedAt, this._variant = e.variant;
|
|
21
|
+
}
|
|
22
|
+
get aliases() {
|
|
23
|
+
return this._aliases;
|
|
24
|
+
}
|
|
25
|
+
get createdAt() {
|
|
26
|
+
return this._createdAt;
|
|
27
|
+
}
|
|
28
|
+
get displayMessages() {
|
|
29
|
+
return this._displayMessages;
|
|
30
|
+
}
|
|
31
|
+
get genericKeys() {
|
|
32
|
+
return this._genericKeys;
|
|
33
|
+
}
|
|
34
|
+
get id() {
|
|
35
|
+
return this._id;
|
|
36
|
+
}
|
|
37
|
+
get identifier() {
|
|
38
|
+
return this._identifier;
|
|
39
|
+
}
|
|
40
|
+
get name() {
|
|
41
|
+
return this._name;
|
|
42
|
+
}
|
|
43
|
+
get runtime() {
|
|
44
|
+
return this._runtime;
|
|
45
|
+
}
|
|
46
|
+
get rules() {
|
|
47
|
+
return this._rules;
|
|
48
|
+
}
|
|
49
|
+
get updatedAt() {
|
|
50
|
+
return this._updatedAt;
|
|
51
|
+
}
|
|
52
|
+
get variant() {
|
|
53
|
+
return this._variant;
|
|
54
|
+
}
|
|
55
|
+
get json() {
|
|
56
|
+
return {
|
|
57
|
+
id: this._id,
|
|
58
|
+
createdAt: this._createdAt,
|
|
59
|
+
updatedAt: this._updatedAt,
|
|
60
|
+
identifier: this._identifier,
|
|
61
|
+
name: this._name,
|
|
62
|
+
runtime: this._runtime,
|
|
63
|
+
variant: this._variant,
|
|
64
|
+
genericKeys: this._genericKeys,
|
|
65
|
+
rules: this._rules
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export {
|
|
70
|
+
a as DataTypeView
|
|
71
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DFlowDataTypeReactiveService } from '../DFlowDataType.service';
|
|
2
|
-
import { DataTypeRulesContainsKeyConfig, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
import { FlowView } from '../../DFlow.view';
|
|
2
|
+
import { DataTypeRulesContainsKeyConfig, Flow, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
3
|
export declare class DFlowDataTypeContainsKeyRule {
|
|
5
|
-
static validate(value: NodeParameterValue, config: DataTypeRulesContainsKeyConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?:
|
|
4
|
+
static validate(value: NodeParameterValue, config: DataTypeRulesContainsKeyConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?: Flow): boolean;
|
|
6
5
|
}
|
package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { genericMapping as T, staticImplements as D } from "./DFlowDataTypeRule.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useValueValidation as y } from "../../d-flow-validation/DValueValidation.hook.js";
|
|
3
3
|
function A(r, e, t, n) {
|
|
4
4
|
var i = k(), o = e(function(s) {
|
|
5
5
|
i.initializeInstanceElements(s, a.elements);
|
|
@@ -209,10 +209,10 @@ let R = A([D()], function(r) {
|
|
|
209
209
|
if ((i?.key ?? "") in n && i?.dataTypeIdentifier?.genericKey && !l && !a?.getDataType(i.dataTypeIdentifier)) return !0;
|
|
210
210
|
if (!(a?.getDataType(i.dataTypeIdentifier) || l) || l && !a?.hasDataTypes(c) || l && (p?.length ?? 0) + 1 != c.length) return !1;
|
|
211
211
|
if (i?.dataTypeIdentifier?.genericKey && l && c) {
|
|
212
|
-
const d = c.map((f) => y(n.value[i?.key ?? ""], a?.getDataType(f), s, f.genericType.genericMappers)), E = d.length > 1 ? d.reduce((f, m, g) => p && p[g - 1].type == "OR" ? f || m : f && m) : d[0];
|
|
212
|
+
const d = c.map((f) => y(n.value[i?.key ?? ""], a?.getDataType(f), a, s, f.genericType.genericMappers)), E = d.length > 1 ? d.reduce((f, m, g) => p && p[g - 1].type == "OR" ? f || m : f && m) : d[0];
|
|
213
213
|
return (i?.key ?? "") in n && E;
|
|
214
214
|
}
|
|
215
|
-
return i?.dataTypeIdentifier?.dataType ? (i?.key ?? "") in n && y(n.value[i?.key ?? ""], a?.getDataType(i.dataTypeIdentifier)) : (i?.key ?? "") in n && y(n.value[i?.key ?? ""], a?.getDataType(i.dataTypeIdentifier), s, T(i?.dataTypeIdentifier?.genericType?.genericMappers, o));
|
|
215
|
+
return i?.dataTypeIdentifier?.dataType ? (i?.key ?? "") in n && y(n.value[i?.key ?? ""], a?.getDataType(i.dataTypeIdentifier), a) : (i?.key ?? "") in n && y(n.value[i?.key ?? ""], a?.getDataType(i.dataTypeIdentifier), a, s, T(i?.dataTypeIdentifier?.genericType?.genericMappers, o));
|
|
216
216
|
}
|
|
217
217
|
}]
|
|
218
218
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DFlowDataTypeReactiveService } from '../DFlowDataType.service';
|
|
2
|
-
import { DataTypeRulesContainsKeyConfig, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
-
import { FlowView } from '../../DFlow.view';
|
|
2
|
+
import { DataTypeRulesContainsKeyConfig, Flow, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
3
|
export declare class DFlowDataTypeContainsTypeRule {
|
|
5
|
-
static validate(value: NodeParameterValue, config: DataTypeRulesContainsKeyConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?:
|
|
4
|
+
static validate(value: NodeParameterValue, config: DataTypeRulesContainsKeyConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?: Flow): boolean;
|
|
6
5
|
}
|
package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { genericMapping as E, staticImplements as T } from "./DFlowDataTypeRule.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useValueValidation as y } from "../../d-flow-validation/DValueValidation.hook.js";
|
|
3
3
|
function D(r, e, t, n) {
|
|
4
4
|
var i = w(), o = e(function(s) {
|
|
5
5
|
i.initializeInstanceElements(s, a.elements);
|
|
@@ -213,13 +213,13 @@ let K = D([T()], function(r) {
|
|
|
213
213
|
const c = p.map((f) => n.value.every((u) => f.genericType ? y({
|
|
214
214
|
__typename: "LiteralValue",
|
|
215
215
|
value: u
|
|
216
|
-
}, a?.getDataType(f), s, f.genericType.genericMappers) : y({
|
|
216
|
+
}, a?.getDataType(f), a, s, f.genericType.genericMappers) : y({
|
|
217
217
|
__typename: "LiteralValue",
|
|
218
218
|
value: u
|
|
219
|
-
}, a?.getDataType(f), s)));
|
|
219
|
+
}, a?.getDataType(f), a, s)));
|
|
220
220
|
return c.length > 1 ? c.reduce((f, u, k) => d && d[k - 1].type == "OR" ? f || u : f && u) : c[0];
|
|
221
221
|
}
|
|
222
|
-
return i?.dataTypeIdentifier?.dataType ? n.value.every((c) => y(c, a?.getDataType(i.dataTypeIdentifier))) : n.value.every((c) => y(c, a?.getDataType(i.dataTypeIdentifier), s, E((i.dataTypeIdentifier?.genericType).genericMappers, o)));
|
|
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
223
|
}
|
|
224
224
|
}]
|
|
225
225
|
};
|
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;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
+
import { NodeFunction, Scalars } from '@code0-tech/sagittarius-graphql-types';
|
|
4
3
|
export interface DFlowTabDefaultProps {
|
|
5
|
-
|
|
4
|
+
node: NodeFunction;
|
|
6
5
|
flowId: Scalars["FlowID"]["output"];
|
|
7
6
|
depthLevel?: number;
|
|
8
7
|
scopeLevel?: number[];
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { jsx as a, jsxs as J } from "react/jsx-runtime";
|
|
2
|
+
import m 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 { TextInput as j } from "../form/TextInput.js";
|
|
17
|
+
import { Flex as M } from "../flex/Flex.js";
|
|
18
|
+
import { useService as D } from "../../utils/contextStore.js";
|
|
19
|
+
import { DFlowFunctionReactiveService as R } from "../d-flow-function/DFlowFunction.service.js";
|
|
20
|
+
import { useSuggestions as E } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
|
|
21
|
+
import { DFlowSuggestionMenuFooter as k } from "../d-flow-suggestion/DFlowSuggestionMenuFooter.js";
|
|
22
|
+
import { toInputSuggestions as C } from "../d-flow-suggestion/DFlowSuggestionMenu.util.js";
|
|
23
|
+
import "../d-flow/DFlow.js";
|
|
24
|
+
import { DFlowReactiveService as P } from "../d-flow/DFlow.service.js";
|
|
25
|
+
import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
|
|
26
|
+
import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
|
|
27
|
+
import "../d-flow-data-type/rules/DFlowDataTypeItemOfCollectionRule.js";
|
|
28
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
|
|
29
|
+
import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
|
|
30
|
+
import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
|
|
31
|
+
import "js-md5";
|
|
32
|
+
import { Badge as V } from "../badge/Badge.js";
|
|
33
|
+
const he = (I) => {
|
|
34
|
+
const {
|
|
35
|
+
node: l,
|
|
36
|
+
flowId: u,
|
|
37
|
+
depthLevel: _,
|
|
38
|
+
scopeLevel: b,
|
|
39
|
+
nodeLevel: w
|
|
40
|
+
} = I, p = D(R), d = D(P), [, F] = m.useTransition(), f = p.getById(l.functionDefinition?.id), g = m.useMemo(() => {
|
|
41
|
+
const e = {};
|
|
42
|
+
return f?.parameterDefinitions?.forEach((o) => {
|
|
43
|
+
e[o.id] = o;
|
|
44
|
+
}), e;
|
|
45
|
+
}, [f?.parameterDefinitions]), v = m.useMemo(() => [...l.parameters?.nodes || []].sort((e, o) => e.id.localeCompare(o?.id)), [l.parameters]), y = {};
|
|
46
|
+
return v.forEach((e) => {
|
|
47
|
+
const o = g[e?.id];
|
|
48
|
+
y[e?.id] = E(o?.dataTypeIdentifier, [], u, _, b, w);
|
|
49
|
+
}), /* @__PURE__ */ a(M, { style: {
|
|
50
|
+
gap: ".7rem",
|
|
51
|
+
flexDirection: "column"
|
|
52
|
+
}, children: v.map((e) => {
|
|
53
|
+
if (!e) return null;
|
|
54
|
+
const o = (n) => {
|
|
55
|
+
F(async () => {
|
|
56
|
+
await d.setParameterValue(u, l.id, e.id, n);
|
|
57
|
+
});
|
|
58
|
+
}, S = (n) => {
|
|
59
|
+
try {
|
|
60
|
+
const t = JSON.parse(n.target.value);
|
|
61
|
+
if (!t.__typename) {
|
|
62
|
+
o(t ? {
|
|
63
|
+
__typename: "LiteralValue",
|
|
64
|
+
value: t
|
|
65
|
+
} : void 0);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
o(t.__typename === "LiteralValue" ? t.value ? t : void 0 : t);
|
|
69
|
+
} catch {
|
|
70
|
+
o(n.target.value == "" || !n.target.value ? void 0 : {
|
|
71
|
+
__typename: "LiteralValue",
|
|
72
|
+
value: n.target.value
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}, r = g[e.id], L = y[e.id], N = r?.names ? r?.names?.nodes[0]?.content : r?.id, x = r?.descriptions ? r?.descriptions?.nodes[0]?.content : JSON.stringify(r?.dataTypeIdentifier), O = e.value?.__typename === "LiteralValue" ? typeof e.value?.value == "object" ? JSON.stringify(e.value?.value) : e.value.value : JSON.stringify(e.value);
|
|
76
|
+
return /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
|
|
77
|
+
j,
|
|
78
|
+
{
|
|
79
|
+
title: N,
|
|
80
|
+
description: x,
|
|
81
|
+
clearable: !0,
|
|
82
|
+
transformSyntax: (n) => {
|
|
83
|
+
const t = n ?? "", c = typeof t == "string" ? t : String(t), T = (i) => [{
|
|
84
|
+
type: "text",
|
|
85
|
+
start: 0,
|
|
86
|
+
end: i.length,
|
|
87
|
+
visualLength: i.length,
|
|
88
|
+
content: i
|
|
89
|
+
}], h = (i) => [{
|
|
90
|
+
type: "block",
|
|
91
|
+
start: 0,
|
|
92
|
+
end: c.length,
|
|
93
|
+
visualLength: 1,
|
|
94
|
+
content: i
|
|
95
|
+
}];
|
|
96
|
+
try {
|
|
97
|
+
const i = JSON.parse(c);
|
|
98
|
+
if (i?.__typename === "NodeFunctionIdWrapper") {
|
|
99
|
+
const s = d.getNodeById(u, i.id), B = p.getById(s?.functionDefinition?.id);
|
|
100
|
+
return h(/* @__PURE__ */ a(V, { color: "info", children: B?.names?.nodes[0]?.content }));
|
|
101
|
+
}
|
|
102
|
+
if (i?.__typename === "ReferenceValue") {
|
|
103
|
+
const s = i;
|
|
104
|
+
return h(/* @__PURE__ */ J(V, { color: "warning", children: [
|
|
105
|
+
s.depth,
|
|
106
|
+
"-",
|
|
107
|
+
s.scope,
|
|
108
|
+
"-",
|
|
109
|
+
s.node,
|
|
110
|
+
"-",
|
|
111
|
+
JSON.stringify(s.dataTypeIdentifier)
|
|
112
|
+
] }));
|
|
113
|
+
}
|
|
114
|
+
} catch {
|
|
115
|
+
}
|
|
116
|
+
return T(c);
|
|
117
|
+
},
|
|
118
|
+
defaultValue: O,
|
|
119
|
+
onSuggestionSelect: (n) => {
|
|
120
|
+
o(n.value);
|
|
121
|
+
},
|
|
122
|
+
formValidation: {
|
|
123
|
+
setValue: () => {
|
|
124
|
+
},
|
|
125
|
+
valid: !0,
|
|
126
|
+
notValidMessage: ""
|
|
127
|
+
},
|
|
128
|
+
onBlur: S,
|
|
129
|
+
onClear: S,
|
|
130
|
+
suggestionsFooter: /* @__PURE__ */ a(k, {}),
|
|
131
|
+
suggestions: C(L)
|
|
132
|
+
},
|
|
133
|
+
JSON.stringify(e.value)
|
|
134
|
+
) });
|
|
135
|
+
}) });
|
|
136
|
+
};
|
|
137
|
+
export {
|
|
138
|
+
he as DFlowTabDefault
|
|
139
|
+
};
|
|
@@ -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>;
|