@code0-tech/pictor 0.0.0-mvp.10
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/LICENSE +29 -0
- package/README.md +0 -0
- package/dist/_virtual/compiler-runtime.js +5 -0
- package/dist/_virtual/compiler-runtime2.js +4 -0
- package/dist/_virtual/react-compiler-runtime.development.js +4 -0
- package/dist/_virtual/react-compiler-runtime.production.js +4 -0
- package/dist/assets/components/avatar/Avatar.style.css +1 -0
- package/dist/assets/components/badge/Badge.style.css +1 -0
- package/dist/assets/components/breadcrumb/Breadcrumb.style.css +1 -0
- package/dist/assets/components/button/Button.style.css +1 -0
- package/dist/assets/components/button-group/ButtonGroup.style.css +1 -0
- package/dist/assets/components/card/Card.style.css +1 -0
- package/dist/assets/components/col/Col.style.css +1 -0
- package/dist/assets/components/command/Command.style.css +1 -0
- package/dist/assets/components/container/Container.style.css +1 -0
- package/dist/assets/components/d-flow/DFlow.style.css +1 -0
- package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +1 -0
- package/dist/assets/components/d-flow/function/DFlowFunctionDefaultCard.style.css +1 -0
- package/dist/assets/components/d-flow/input/DFlowInputDataType.style.css +1 -0
- package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +1 -0
- package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +1 -0
- package/dist/assets/components/d-flow/validation/DFlowValidation.style.css +1 -0
- package/dist/assets/components/d-fullscreen/DFullScreen.style.css +1 -0
- package/dist/assets/components/d-layout/DLayout.style.css +1 -0
- package/dist/assets/components/d-resizable/DResizable.style.css +1 -0
- package/dist/assets/components/dialog/Dialog.style.css +1 -0
- package/dist/assets/components/file-tabs/FileTabs.style.css +1 -0
- package/dist/assets/components/flex/Flex.style.css +1 -0
- package/dist/assets/components/form/Input.style.css +1 -0
- package/dist/assets/components/menu/Menu.style.css +1 -0
- package/dist/assets/components/quote/Quote.style.css +1 -0
- package/dist/assets/components/row/Row.style.css +1 -0
- package/dist/assets/components/scroll-area/ScrollArea.style.css +1 -0
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -0
- package/dist/assets/components/spacing/Spacing.style.css +1 -0
- package/dist/assets/components/tab/Tab.style.css +1 -0
- package/dist/assets/components/text/Text.style.css +1 -0
- package/dist/assets/components/tooltip/Tooltip.style.css +1 -0
- package/dist/assets/node_modules/@xyflow/react/dist/style.css +1 -0
- package/dist/components/avatar/Avatar.d.ts +8 -0
- package/dist/components/avatar/Avatar.js +55 -0
- package/dist/components/badge/Badge.d.ts +7 -0
- package/dist/components/badge/Badge.js +22 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +7 -0
- package/dist/components/breadcrumb/Breadcrumb.js +32 -0
- package/dist/components/button/Button.d.ts +10 -0
- package/dist/components/button/Button.js +29 -0
- package/dist/components/button-group/ButtonGroup.d.ts +7 -0
- package/dist/components/button-group/ButtonGroup.js +27 -0
- package/dist/components/card/Card.d.ts +14 -0
- package/dist/components/card/Card.js +39 -0
- package/dist/components/card/CardSection.d.ts +9 -0
- package/dist/components/card/CardSection.js +22 -0
- package/dist/components/col/Col.d.ts +13 -0
- package/dist/components/col/Col.js +27 -0
- package/dist/components/command/Command.d.ts +30 -0
- package/dist/components/command/Command.js +103 -0
- package/dist/components/container/Container.d.ts +6 -0
- package/dist/components/container/Container.js +21 -0
- package/dist/components/d-flow/DFlow.d.ts +5 -0
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +4 -0
- package/dist/components/d-flow/DFlow.edges.hook.js +144 -0
- package/dist/components/d-flow/DFlow.js +375 -0
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +3 -0
- package/dist/components/d-flow/DFlow.nodes.hook.js +139 -0
- package/dist/components/d-flow/DFlow.service.d.ts +10 -0
- package/dist/components/d-flow/DFlow.service.js +11 -0
- package/dist/components/d-flow/DFlow.view.d.ts +109 -0
- package/dist/components/d-flow/DFlow.view.js +213 -0
- package/dist/components/d-flow/control/DFlowControl.d.ts +2 -0
- package/dist/components/d-flow/control/DFlowControl.js +77 -0
- package/dist/components/d-flow/control/index.d.ts +1 -0
- package/dist/components/d-flow/control/index.js +4 -0
- package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +10 -0
- package/dist/components/d-flow/data-type/DFlowDataType.service.js +91 -0
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +2 -0
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +18 -0
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +4 -0
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +20 -0
- package/dist/components/d-flow/data-type/DFlowDataType.view.d.ts +32 -0
- package/dist/components/d-flow/data-type/DFlowDataType.view.js +65 -0
- package/dist/components/d-flow/data-type/index.d.ts +2 -0
- package/dist/components/d-flow/data-type/index.js +6 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +6 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.js +222 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +6 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.js +229 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +7 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeItemOfCollectionRule.js +214 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +4 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeNumberRangeRule.js +214 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeParentRule.d.ts +9 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeParentRule.js +217 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRegexRule.d.ts +4 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRegexRule.js +214 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +6 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +243 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRule.d.ts +8 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRule.js +10 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.d.ts +3 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.js +10 -0
- package/dist/components/d-flow/edge/DFlowEdge.d.ts +10 -0
- package/dist/components/d-flow/edge/DFlowEdge.js +48 -0
- package/dist/components/d-flow/folder/DFlowFolder.d.ts +19 -0
- package/dist/components/d-flow/folder/DFlowFolder.js +119 -0
- package/dist/components/d-flow/folder/index.d.ts +1 -0
- package/dist/components/d-flow/folder/index.js +6 -0
- package/dist/components/d-flow/function/DFlowFunction.input.hook.d.ts +4 -0
- package/dist/components/d-flow/function/DFlowFunction.input.hook.js +9 -0
- package/dist/components/d-flow/function/DFlowFunction.return.hook.d.ts +4 -0
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +11 -0
- package/dist/components/d-flow/function/DFlowFunction.service.d.ts +6 -0
- package/dist/components/d-flow/function/DFlowFunction.service.js +9 -0
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +10 -0
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +74 -0
- package/dist/components/d-flow/function/DFlowFunction.view.d.ts +66 -0
- package/dist/components/d-flow/function/DFlowFunction.view.js +117 -0
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.d.ts +15 -0
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +158 -0
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +5 -0
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +55 -0
- package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.d.ts +11 -0
- package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +26 -0
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.d.ts +9 -0
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +97 -0
- package/dist/components/d-flow/function/index.d.ts +2 -0
- package/dist/components/d-flow/function/index.js +7 -0
- package/dist/components/d-flow/index.d.ts +13 -0
- package/dist/components/d-flow/index.js +46 -0
- package/dist/components/d-flow/input/DFlowInputDataType.d.ts +8 -0
- package/dist/components/d-flow/input/DFlowInputDataType.js +422 -0
- package/dist/components/d-flow/minimap/DFlowMiniMap.d.ts +2 -0
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +22 -0
- package/dist/components/d-flow/minimap/index.d.ts +1 -0
- package/dist/components/d-flow/minimap/index.js +4 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.d.ts +33 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +150 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +5 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +18 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +21 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +25 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.d.ts +8 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +67 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.util.d.ts +3 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.util.js +42 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenuFooter.d.ts +2 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenuFooter.js +69 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenuSearchBar.d.ts +6 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenuSearchBar.js +21 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.d.ts +7 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +22 -0
- package/dist/components/d-flow/suggestion/index.d.ts +2 -0
- package/dist/components/d-flow/suggestion/index.js +7 -0
- package/dist/components/d-flow/tab/DFlowTabDefault.d.ts +11 -0
- package/dist/components/d-flow/tab/DFlowTabDefault.js +97 -0
- package/dist/components/d-flow/tab/DFlowTabTrigger.d.ts +6 -0
- package/dist/components/d-flow/tab/DFlowTabTrigger.js +51 -0
- package/dist/components/d-flow/tab/DFlowTabs.d.ts +2 -0
- package/dist/components/d-flow/tab/DFlowTabs.js +105 -0
- package/dist/components/d-flow/type/DFlowType.service.d.ts +6 -0
- package/dist/components/d-flow/type/DFlowType.service.js +9 -0
- package/dist/components/d-flow/type/DFlowType.view.d.ts +35 -0
- package/dist/components/d-flow/type/DFlowType.view.js +69 -0
- package/dist/components/d-flow/type/index.d.ts +2 -0
- package/dist/components/d-flow/type/index.js +6 -0
- package/dist/components/d-flow/validation/DFlowValidation.d.ts +6 -0
- package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +3 -0
- package/dist/components/d-flow/validation/DFlowValidation.hook.js +10 -0
- package/dist/components/d-flow/validation/DFlowValidation.js +60 -0
- package/dist/components/d-flow/validation/index.d.ts +2 -0
- package/dist/components/d-flow/validation/index.js +6 -0
- package/dist/components/d-fullscreen/DFullScreen.d.ts +6 -0
- package/dist/components/d-fullscreen/DFullScreen.js +26 -0
- package/dist/components/d-layout/DLayout.d.ts +10 -0
- package/dist/components/d-layout/DLayout.js +52 -0
- package/dist/components/d-namespace/DNamespace.service.d.ts +6 -0
- package/dist/components/d-namespace/DNamespace.service.js +11 -0
- package/dist/components/d-namespace/DNamespace.view.d.ts +32 -0
- package/dist/components/d-namespace/DNamespace.view.js +65 -0
- package/dist/components/d-namespace/index.d.ts +12 -0
- package/dist/components/d-namespace/index.js +35 -0
- package/dist/components/d-namespace/license/DNamespaceLicense.service.d.ts +8 -0
- package/dist/components/d-namespace/license/DNamespaceLicense.service.js +11 -0
- package/dist/components/d-namespace/license/DNamespaceLicense.view.d.ts +26 -0
- package/dist/components/d-namespace/license/DNamespaceLicense.view.js +57 -0
- package/dist/components/d-namespace/member/DNamespaceMember.service.d.ts +9 -0
- package/dist/components/d-namespace/member/DNamespaceMember.service.js +11 -0
- package/dist/components/d-namespace/member/DNamespaceMember.view.d.ts +26 -0
- package/dist/components/d-namespace/member/DNamespaceMember.view.js +57 -0
- package/dist/components/d-namespace/project/DNamespaceProject.service.d.ts +9 -0
- package/dist/components/d-namespace/project/DNamespaceProject.service.js +11 -0
- package/dist/components/d-namespace/project/DNamespaceProject.view.d.ts +35 -0
- package/dist/components/d-namespace/project/DNamespaceProject.view.js +69 -0
- package/dist/components/d-namespace/project/DNamespaceProjectCard.d.ts +9 -0
- package/dist/components/d-namespace/project/DNamespaceProjectCard.js +57 -0
- package/dist/components/d-namespace/project/DNamespaceProjectMenu.d.ts +9 -0
- package/dist/components/d-namespace/project/DNamespaceProjectMenu.js +18 -0
- package/dist/components/d-namespace/role/DNamespaceRole.service.d.ts +10 -0
- package/dist/components/d-namespace/role/DNamespaceRole.service.js +11 -0
- package/dist/components/d-namespace/role/DNamespaceRole.view.d.ts +26 -0
- package/dist/components/d-namespace/role/DNamespaceRole.view.js +57 -0
- package/dist/components/d-organization/DOrganization.service.d.ts +8 -0
- package/dist/components/d-organization/DOrganization.service.js +11 -0
- package/dist/components/d-organization/DOrganization.view.d.ts +20 -0
- package/dist/components/d-organization/DOrganization.view.js +52 -0
- package/dist/components/d-organization/DOrganizationCard.d.ts +10 -0
- package/dist/components/d-organization/DOrganizationCard.js +63 -0
- package/dist/components/d-organization/DOrganizationMenu.d.ts +9 -0
- package/dist/components/d-organization/DOrganizationMenu.js +18 -0
- package/dist/components/d-organization/index.d.ts +4 -0
- package/dist/components/d-organization/index.js +19 -0
- package/dist/components/d-resizable/DResizable.d.ts +10 -0
- package/dist/components/d-resizable/DResizable.js +32 -0
- package/dist/components/d-runtime/DRuntime.service.d.ts +9 -0
- package/dist/components/d-runtime/DRuntime.service.js +11 -0
- package/dist/components/d-runtime/DRuntime.view.d.ts +38 -0
- package/dist/components/d-runtime/DRuntime.view.js +73 -0
- package/dist/components/d-runtime/index.d.ts +2 -0
- package/dist/components/d-runtime/index.js +6 -0
- package/dist/components/d-user/DUser.service.d.ts +21 -0
- package/dist/components/d-user/DUser.service.js +17 -0
- package/dist/components/d-user/DUser.view.d.ts +52 -0
- package/dist/components/d-user/DUser.view.js +100 -0
- package/dist/components/d-user/DUserMenu.d.ts +8 -0
- package/dist/components/d-user/DUserMenu.js +28 -0
- package/dist/components/d-user/index.d.ts +3 -0
- package/dist/components/d-user/index.js +17 -0
- package/dist/components/dialog/Dialog.d.ts +28 -0
- package/dist/components/dialog/Dialog.js +99 -0
- package/dist/components/file-tabs/FileTabs.d.ts +17 -0
- package/dist/components/file-tabs/FileTabs.js +71 -0
- package/dist/components/file-tabs/FileTabs.service.d.ts +13 -0
- package/dist/components/file-tabs/FileTabs.service.js +47 -0
- package/dist/components/file-tabs/FileTabs.view.d.ts +9 -0
- package/dist/components/file-tabs/FileTabs.view.js +1 -0
- package/dist/components/flex/Flex.d.ts +7 -0
- package/dist/components/flex/Flex.js +21 -0
- package/dist/components/form/CheckboxInput.d.ts +5 -0
- package/dist/components/form/CheckboxInput.js +67 -0
- package/dist/components/form/EmailInput.d.ts +8 -0
- package/dist/components/form/EmailInput.js +20 -0
- package/dist/components/form/Input.d.ts +22 -0
- package/dist/components/form/Input.js +153 -0
- package/dist/components/form/InputDescription.d.ts +5 -0
- package/dist/components/form/InputDescription.js +12 -0
- package/dist/components/form/InputLabel.d.ts +5 -0
- package/dist/components/form/InputLabel.js +12 -0
- package/dist/components/form/InputMessage.d.ts +5 -0
- package/dist/components/form/InputMessage.js +18 -0
- package/dist/components/form/InputSuggestion.d.ts +19 -0
- package/dist/components/form/InputSuggestion.js +102 -0
- package/dist/components/form/NumberInput.d.ts +6 -0
- package/dist/components/form/NumberInput.js +20 -0
- package/dist/components/form/PasswordInput.d.ts +8 -0
- package/dist/components/form/PasswordInput.js +18 -0
- package/dist/components/form/PinInput.d.ts +11 -0
- package/dist/components/form/PinInput.js +66 -0
- package/dist/components/form/RadioGroup.d.ts +5 -0
- package/dist/components/form/RadioGroup.js +48 -0
- package/dist/components/form/RadioInput.d.ts +7 -0
- package/dist/components/form/RadioInput.js +27 -0
- package/dist/components/form/SwitchInput.d.ts +6 -0
- package/dist/components/form/SwitchInput.js +19 -0
- package/dist/components/form/TextInput.d.ts +7 -0
- package/dist/components/form/TextInput.js +19 -0
- package/dist/components/form/index.d.ts +15 -0
- package/dist/components/form/index.js +37 -0
- package/dist/components/form/useForm.d.ts +25 -0
- package/dist/components/form/useForm.js +57 -0
- package/dist/components/menu/Menu.d.ts +27 -0
- package/dist/components/menu/Menu.js +104 -0
- package/dist/components/quote/Quote.d.ts +10 -0
- package/dist/components/quote/Quote.js +49 -0
- package/dist/components/row/Row.d.ts +6 -0
- package/dist/components/row/Row.js +21 -0
- package/dist/components/scroll-area/ScrollArea.d.ts +13 -0
- package/dist/components/scroll-area/ScrollArea.js +43 -0
- package/dist/components/segmented-control/SegmentedControl.d.ts +8 -0
- package/dist/components/segmented-control/SegmentedControl.js +24 -0
- package/dist/components/spacing/Spacing.d.ts +6 -0
- package/dist/components/spacing/Spacing.js +23 -0
- package/dist/components/tab/Tab.d.ts +11 -0
- package/dist/components/tab/Tab.js +40 -0
- package/dist/components/text/Text.d.ts +8 -0
- package/dist/components/text/Text.js +23 -0
- package/dist/components/tooltip/Tooltip.d.ts +13 -0
- package/dist/components/tooltip/Tooltip.js +48 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +226 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +14 -0
- package/dist/node_modules/react/compiler-runtime.js +10 -0
- package/dist/utils/arrayService.d.ts +10 -0
- package/dist/utils/arrayService.js +1 -0
- package/dist/utils/contextStore.d.ts +62 -0
- package/dist/utils/contextStore.js +60 -0
- package/dist/utils/generics.d.ts +17 -0
- package/dist/utils/generics.js +310 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +28 -0
- package/dist/utils/inspection.d.ts +13 -0
- package/dist/utils/inspection.js +4 -0
- package/dist/utils/nonReactiveArrayService.d.ts +19 -0
- package/dist/utils/nonReactiveArrayService.js +54 -0
- package/dist/utils/objectStore.d.ts +12 -0
- package/dist/utils/objectStore.js +34 -0
- package/dist/utils/reactiveArrayService.d.ts +22 -0
- package/dist/utils/reactiveArrayService.js +91 -0
- package/dist/utils/types.d.ts +57 -0
- package/dist/utils/types.js +4 -0
- package/dist/utils/utils.d.ts +68 -0
- package/dist/utils/utils.js +216 -0
- package/package.json +119 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
function e(s, t, i) {
|
|
2
|
+
return (t = n(t)) in s ? Object.defineProperty(s, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : s[t] = i, s;
|
|
3
|
+
}
|
|
4
|
+
function n(s) {
|
|
5
|
+
var t = a(s, "string");
|
|
6
|
+
return typeof t == "symbol" ? t : t + "";
|
|
7
|
+
}
|
|
8
|
+
function a(s, t) {
|
|
9
|
+
if (typeof s != "object" || !s) return s;
|
|
10
|
+
var i = s[Symbol.toPrimitive];
|
|
11
|
+
if (i !== void 0) {
|
|
12
|
+
var r = i.call(s, t);
|
|
13
|
+
if (typeof r != "object") return r;
|
|
14
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
|
+
}
|
|
16
|
+
return (t === "string" ? String : Number)(s);
|
|
17
|
+
}
|
|
18
|
+
class h {
|
|
19
|
+
constructor(t) {
|
|
20
|
+
e(this, "_createdAt", void 0), e(this, "_id", void 0), e(this, "_inputType", void 0), e(this, "_nodes", void 0), e(this, "_returnType", void 0), e(this, "_settings", void 0), e(this, "_startingNodeId", void 0), e(this, "_type", void 0), e(this, "_updatedAt", void 0), e(this, "_name", void 0), this._createdAt = t.createdAt, this._id = t.id, this._inputType = t.inputType, this._nodes = t.nodes?.nodes?.map((i) => new d(i)), this._returnType = t.returnType, this._settings = t.settings?.nodes?.map((i) => new u(i)), this._startingNodeId = t.startingNodeId, this._type = t.type, this._updatedAt = t.updatedAt, this._name = t.name;
|
|
21
|
+
}
|
|
22
|
+
get createdAt() {
|
|
23
|
+
return this._createdAt;
|
|
24
|
+
}
|
|
25
|
+
get id() {
|
|
26
|
+
return this._id;
|
|
27
|
+
}
|
|
28
|
+
get inputType() {
|
|
29
|
+
return this._inputType;
|
|
30
|
+
}
|
|
31
|
+
get nodes() {
|
|
32
|
+
return this._nodes;
|
|
33
|
+
}
|
|
34
|
+
get returnType() {
|
|
35
|
+
return this._returnType;
|
|
36
|
+
}
|
|
37
|
+
get settings() {
|
|
38
|
+
return this._settings;
|
|
39
|
+
}
|
|
40
|
+
get startingNodeId() {
|
|
41
|
+
return this._startingNodeId;
|
|
42
|
+
}
|
|
43
|
+
get type() {
|
|
44
|
+
return this._type;
|
|
45
|
+
}
|
|
46
|
+
get updatedAt() {
|
|
47
|
+
return this._updatedAt;
|
|
48
|
+
}
|
|
49
|
+
get name() {
|
|
50
|
+
return this._name;
|
|
51
|
+
}
|
|
52
|
+
set inputType(t) {
|
|
53
|
+
this._inputType = t;
|
|
54
|
+
}
|
|
55
|
+
set startingNodeId(t) {
|
|
56
|
+
this._startingNodeId = t;
|
|
57
|
+
}
|
|
58
|
+
set name(t) {
|
|
59
|
+
this._name = t;
|
|
60
|
+
}
|
|
61
|
+
addNode(t) {
|
|
62
|
+
this._nodes || (this._nodes = []), this._nodes.push(t);
|
|
63
|
+
}
|
|
64
|
+
updateNode(t) {
|
|
65
|
+
this._nodes && (this._nodes = this._nodes.map((i) => i.id === t.id ? t : i));
|
|
66
|
+
}
|
|
67
|
+
removeNode(t) {
|
|
68
|
+
this._nodes && (this._nodes = this._nodes.filter((i) => i.id !== t));
|
|
69
|
+
}
|
|
70
|
+
getNodeById(t) {
|
|
71
|
+
if (this._nodes)
|
|
72
|
+
return this._nodes.find((i) => i.id === t);
|
|
73
|
+
}
|
|
74
|
+
json() {
|
|
75
|
+
return {
|
|
76
|
+
__typename: "Flow",
|
|
77
|
+
createdAt: this._createdAt,
|
|
78
|
+
id: this._id,
|
|
79
|
+
inputType: this._inputType,
|
|
80
|
+
nodes: this._nodes ? {
|
|
81
|
+
nodes: this._nodes.map((t) => t.json())
|
|
82
|
+
} : void 0,
|
|
83
|
+
returnType: this._returnType,
|
|
84
|
+
settings: this._settings ? {
|
|
85
|
+
nodes: this._settings.map((t) => t.json())
|
|
86
|
+
} : void 0,
|
|
87
|
+
startingNodeId: this._startingNodeId,
|
|
88
|
+
type: this._type,
|
|
89
|
+
updatedAt: this._updatedAt,
|
|
90
|
+
name: this._name
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
class d {
|
|
95
|
+
constructor(t) {
|
|
96
|
+
e(this, "_createdAt", void 0), e(this, "_id", void 0), e(this, "_nextNodeId", void 0), e(this, "_parameters", void 0), e(this, "_functionDefinition", void 0), e(this, "_updatedAt", void 0), this._createdAt = t.createdAt, this._id = t.id, this._nextNodeId = t.nextNodeId, this._functionDefinition = t.functionDefinition, this._updatedAt = t.updatedAt, this._parameters = t.parameters ? t.parameters.nodes?.map((i) => new _(i)) : void 0;
|
|
97
|
+
}
|
|
98
|
+
get createdAt() {
|
|
99
|
+
return this._createdAt;
|
|
100
|
+
}
|
|
101
|
+
get id() {
|
|
102
|
+
return this._id;
|
|
103
|
+
}
|
|
104
|
+
get nextNodeId() {
|
|
105
|
+
return this._nextNodeId;
|
|
106
|
+
}
|
|
107
|
+
get parameters() {
|
|
108
|
+
return this._parameters;
|
|
109
|
+
}
|
|
110
|
+
get functionDefinition() {
|
|
111
|
+
return this._functionDefinition;
|
|
112
|
+
}
|
|
113
|
+
get updatedAt() {
|
|
114
|
+
return this._updatedAt;
|
|
115
|
+
}
|
|
116
|
+
set nextNodeId(t) {
|
|
117
|
+
this._nextNodeId = t;
|
|
118
|
+
}
|
|
119
|
+
deleteNextNode() {
|
|
120
|
+
this._nextNodeId = void 0;
|
|
121
|
+
}
|
|
122
|
+
json() {
|
|
123
|
+
return {
|
|
124
|
+
__typename: "NodeFunction",
|
|
125
|
+
createdAt: this._createdAt,
|
|
126
|
+
id: this._id,
|
|
127
|
+
nextNodeId: this._nextNodeId,
|
|
128
|
+
parameters: this._parameters ? {
|
|
129
|
+
nodes: this._parameters.map((t) => t.json())
|
|
130
|
+
} : void 0,
|
|
131
|
+
functionDefinition: this._functionDefinition,
|
|
132
|
+
updatedAt: this._updatedAt
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
class _ {
|
|
137
|
+
constructor(t) {
|
|
138
|
+
e(this, "_createdAt", void 0), e(this, "_id", void 0), e(this, "_runtimeParameter", void 0), e(this, "_updatedAt", void 0), e(this, "_value", void 0), e(this, "_validationResults", void 0), this._createdAt = t.createdAt, this._id = t.id, this._runtimeParameter = t.runtimeParameter, this._updatedAt = t.updatedAt, t.value?.__typename === "NodeFunction" ? this._value = new d(t.value) : this._value = t.value, this._validationResults = [];
|
|
139
|
+
}
|
|
140
|
+
get createdAt() {
|
|
141
|
+
return this._createdAt;
|
|
142
|
+
}
|
|
143
|
+
get id() {
|
|
144
|
+
return this._id;
|
|
145
|
+
}
|
|
146
|
+
get runtimeParameter() {
|
|
147
|
+
return this._runtimeParameter;
|
|
148
|
+
}
|
|
149
|
+
get updatedAt() {
|
|
150
|
+
return this._updatedAt;
|
|
151
|
+
}
|
|
152
|
+
get value() {
|
|
153
|
+
return this._value;
|
|
154
|
+
}
|
|
155
|
+
get validationResults() {
|
|
156
|
+
return this._validationResults;
|
|
157
|
+
}
|
|
158
|
+
set validationResults(t) {
|
|
159
|
+
this._validationResults = t;
|
|
160
|
+
}
|
|
161
|
+
set value(t) {
|
|
162
|
+
t?.__typename === "NodeFunction" ? this._value = new d(t) : this._value = t;
|
|
163
|
+
}
|
|
164
|
+
json() {
|
|
165
|
+
return {
|
|
166
|
+
__typename: "NodeParameter",
|
|
167
|
+
createdAt: this._createdAt,
|
|
168
|
+
id: this._id,
|
|
169
|
+
runtimeParameter: this._runtimeParameter,
|
|
170
|
+
updatedAt: this._updatedAt,
|
|
171
|
+
value: this._value instanceof d ? this._value.json() : this._value
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
class u {
|
|
176
|
+
constructor(t) {
|
|
177
|
+
e(this, "_createdAt", void 0), e(this, "_flowSettingIdentifier", void 0), e(this, "_id", void 0), e(this, "_updatedAt", void 0), e(this, "_value", void 0), this._createdAt = t.createdAt, this._flowSettingIdentifier = t.flowSettingIdentifier, this._id = t.id, this._value = t.value, this._updatedAt = t.updatedAt;
|
|
178
|
+
}
|
|
179
|
+
get createdAt() {
|
|
180
|
+
return this._createdAt;
|
|
181
|
+
}
|
|
182
|
+
get flowSettingIdentifier() {
|
|
183
|
+
return this._flowSettingIdentifier;
|
|
184
|
+
}
|
|
185
|
+
get id() {
|
|
186
|
+
return this._id;
|
|
187
|
+
}
|
|
188
|
+
get value() {
|
|
189
|
+
return this._value;
|
|
190
|
+
}
|
|
191
|
+
get updatedAt() {
|
|
192
|
+
return this._updatedAt;
|
|
193
|
+
}
|
|
194
|
+
set value(t) {
|
|
195
|
+
this._value = t;
|
|
196
|
+
}
|
|
197
|
+
json() {
|
|
198
|
+
return {
|
|
199
|
+
__typename: "FlowSetting",
|
|
200
|
+
createdAt: this._createdAt,
|
|
201
|
+
flowSettingIdentifier: this._flowSettingIdentifier,
|
|
202
|
+
id: this._id,
|
|
203
|
+
value: this._value,
|
|
204
|
+
updatedAt: this._updatedAt
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
export {
|
|
209
|
+
u as FlowSettingView,
|
|
210
|
+
h as FlowView,
|
|
211
|
+
d as NodeFunctionView,
|
|
212
|
+
_ as NodeParameterView
|
|
213
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as o, jsxs as k } from "react/jsx-runtime";
|
|
2
|
+
import { c as j } from "../../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { useViewport as D, useReactFlow as M, Panel as O } from "@xyflow/react";
|
|
4
|
+
import { ButtonGroup as R } from "../../button-group/ButtonGroup.js";
|
|
5
|
+
import { Button as B } from "../../button/Button.js";
|
|
6
|
+
import { IconPlus as V, IconMinus as v, IconFocusCentered as E } from "@tabler/icons-react";
|
|
7
|
+
import { Badge as G } from "../../badge/Badge.js";
|
|
8
|
+
import { Flex as P } from "../../flex/Flex.js";
|
|
9
|
+
const N = () => {
|
|
10
|
+
const e = j.c(36), C = D(), t = M();
|
|
11
|
+
let p;
|
|
12
|
+
e[0] !== t ? (p = () => {
|
|
13
|
+
t.zoomIn();
|
|
14
|
+
}, e[0] = t, e[1] = p) : p = e[1];
|
|
15
|
+
const I = p;
|
|
16
|
+
let d;
|
|
17
|
+
e[2] !== t ? (d = () => {
|
|
18
|
+
t.zoomOut();
|
|
19
|
+
}, e[2] = t, e[3] = d) : d = e[3];
|
|
20
|
+
const g = d;
|
|
21
|
+
let h;
|
|
22
|
+
e[4] !== t ? (h = () => {
|
|
23
|
+
t.fitView();
|
|
24
|
+
}, e[4] = t, e[5] = h) : h = e[5];
|
|
25
|
+
const F = h;
|
|
26
|
+
let u;
|
|
27
|
+
e[6] !== C.zoom ? (u = () => Math.round(C.zoom * 100), e[6] = C.zoom, e[7] = u) : u = e[7];
|
|
28
|
+
const S = u;
|
|
29
|
+
let y;
|
|
30
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (y = {
|
|
31
|
+
flexDirection: "column",
|
|
32
|
+
gap: "1rem"
|
|
33
|
+
}, e[8] = y) : y = e[8];
|
|
34
|
+
let z;
|
|
35
|
+
e[9] === Symbol.for("react.memo_cache_sentinel") ? (z = {
|
|
36
|
+
gap: ".35rem"
|
|
37
|
+
}, e[9] = z) : z = e[9];
|
|
38
|
+
let l;
|
|
39
|
+
e[10] !== I ? (l = () => I(), e[10] = I, e[11] = l) : l = e[11];
|
|
40
|
+
let _;
|
|
41
|
+
e[12] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ o(V, { size: 15 }), e[12] = _) : _ = e[12];
|
|
42
|
+
let r;
|
|
43
|
+
e[13] !== l ? (r = /* @__PURE__ */ o(B, { color: "secondary", onClick: l, children: _ }), e[13] = l, e[14] = r) : r = e[14];
|
|
44
|
+
let i;
|
|
45
|
+
e[15] !== g ? (i = () => g(), e[15] = g, e[16] = i) : i = e[16];
|
|
46
|
+
let b;
|
|
47
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ o(v, { size: 15 }), e[17] = b) : b = e[17];
|
|
48
|
+
let c;
|
|
49
|
+
e[18] !== i ? (c = /* @__PURE__ */ o(B, { color: "secondary", onClick: i, children: b }), e[18] = i, e[19] = c) : c = e[19];
|
|
50
|
+
let n;
|
|
51
|
+
e[20] !== F ? (n = () => F(), e[20] = F, e[21] = n) : n = e[21];
|
|
52
|
+
let w;
|
|
53
|
+
e[22] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ o(E, { size: 15 }), e[22] = w) : w = e[22];
|
|
54
|
+
let s;
|
|
55
|
+
e[23] !== n ? (s = /* @__PURE__ */ o(B, { color: "secondary", onClick: n, children: w }), e[23] = n, e[24] = s) : s = e[24];
|
|
56
|
+
let m;
|
|
57
|
+
e[25] !== c || e[26] !== s || e[27] !== r ? (m = /* @__PURE__ */ k(R, { children: [
|
|
58
|
+
r,
|
|
59
|
+
c,
|
|
60
|
+
s
|
|
61
|
+
] }), e[25] = c, e[26] = s, e[27] = r, e[28] = m) : m = e[28];
|
|
62
|
+
let f;
|
|
63
|
+
e[29] !== S ? (f = S(), e[29] = S, e[30] = f) : f = e[30];
|
|
64
|
+
let a;
|
|
65
|
+
e[31] !== f ? (a = /* @__PURE__ */ k(G, { color: "secondary", children: [
|
|
66
|
+
f,
|
|
67
|
+
"%"
|
|
68
|
+
] }), e[31] = f, e[32] = a) : a = e[32];
|
|
69
|
+
let x;
|
|
70
|
+
return e[33] !== m || e[34] !== a ? (x = /* @__PURE__ */ o(O, { position: "bottom-left", children: /* @__PURE__ */ o(P, { style: y, children: /* @__PURE__ */ k(P, { align: "stretch", style: z, children: [
|
|
71
|
+
m,
|
|
72
|
+
a
|
|
73
|
+
] }) }) }), e[33] = m, e[34] = a, e[35] = x) : x = e[35], x;
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
N as DFlowControl
|
|
77
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DFlowControl';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactiveArrayService } from '../../../utils/reactiveArrayService';
|
|
2
|
+
import { DataTypeView } from './DFlowDataType.view';
|
|
3
|
+
import { DataTypeIdentifier, Maybe, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
import { FlowView } from '../DFlow.view';
|
|
5
|
+
export declare abstract class DFlowDataTypeReactiveService extends ReactiveArrayService<DataTypeView> {
|
|
6
|
+
getDataType(type: DataTypeIdentifier): DataTypeView | undefined;
|
|
7
|
+
getDataTypeFromValue(value: NodeParameterValue, flow?: FlowView): DataTypeView | undefined;
|
|
8
|
+
getTypeFromValue(value: NodeParameterValue, flow?: FlowView): Maybe<DataTypeIdentifier> | undefined;
|
|
9
|
+
hasDataTypes(types: DataTypeIdentifier[]): boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ReactiveArrayService as s } from "../../../utils/reactiveArrayService.js";
|
|
2
|
+
import { resolveType as y } from "../../../utils/generics.js";
|
|
3
|
+
import { useValidateValue as f } from "./DFlowDataType.validation.value.js";
|
|
4
|
+
class l extends s {
|
|
5
|
+
//TODO: remove string because of sagittarius types update
|
|
6
|
+
getDataType(e) {
|
|
7
|
+
if (!e || e.genericKey) return;
|
|
8
|
+
const i = e.dataType?.identifier ?? e.genericType?.dataType?.identifier, t = e.dataType?.id ?? e.genericType?.dataType?.id;
|
|
9
|
+
return this.values().find((r) => r.identifier == i || r.id == t);
|
|
10
|
+
}
|
|
11
|
+
getDataTypeFromValue(e, i) {
|
|
12
|
+
if (!e) return;
|
|
13
|
+
if (e.__typename == "LiteralValue") {
|
|
14
|
+
if (Array.isArray(e.value) && Array.from(e.value).length > 0) return this.getDataType({
|
|
15
|
+
dataType: {
|
|
16
|
+
identifier: "ARRAY"
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
if (typeof e.value == "string") return this.getDataType({
|
|
20
|
+
dataType: {
|
|
21
|
+
identifier: "TEXT"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
if (typeof e.value == "number") return this.getDataType({
|
|
25
|
+
dataType: {
|
|
26
|
+
identifier: "NUMBER"
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
if (typeof e.value == "boolean") return this.getDataType({
|
|
30
|
+
dataType: {
|
|
31
|
+
identifier: "BOOLEAN"
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
const t = this.values().filter((r) => r.identifier === "OBJECT" || e.__typename === "NodeFunction" && (r.variant != "NODE" || !i) ? !1 : f(e, r, i));
|
|
36
|
+
return t[t.length - 1];
|
|
37
|
+
}
|
|
38
|
+
getTypeFromValue(e, i) {
|
|
39
|
+
if (!e) return;
|
|
40
|
+
if (e.__typename === "ReferenceValue") return e.dataTypeIdentifier;
|
|
41
|
+
const t = this.getDataTypeFromValue(e, i);
|
|
42
|
+
if ((t?.genericKeys?.length ?? 0) <= 0 || !t?.genericKeys) return {
|
|
43
|
+
dataType: {
|
|
44
|
+
id: t?.id
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const r = t.genericKeys.map((a) => {
|
|
48
|
+
const n = t.rules?.nodes?.find((d) => "dataTypeIdentifier" in (d?.config ?? {}) && d?.config?.dataTypeIdentifier?.genericKey == a || "inputTypes" in (d?.config ?? {}) && d.config.inputTypes?.some((p) => p.dataTypeIdentifier?.genericKey == a));
|
|
49
|
+
return n && n.variant == "CONTAINS_TYPE" && "value" in e && e?.value && t.variant === "ARRAY" ? {
|
|
50
|
+
sourceDataTypeIdentifiers: [this.getTypeFromValue({
|
|
51
|
+
__typename: "LiteralValue",
|
|
52
|
+
value: e.value[0]
|
|
53
|
+
}, i)],
|
|
54
|
+
target: a
|
|
55
|
+
} : n && n.variant == "CONTAINS_KEY" && "value" in e && e?.value && t.variant === "OBJECT" ? {
|
|
56
|
+
sourceDataTypeIdentifiers: [this.getTypeFromValue({
|
|
57
|
+
__typename: "LiteralValue",
|
|
58
|
+
/* @ts-ignore */
|
|
59
|
+
value: e.value[n.config?.key ?? ""]
|
|
60
|
+
}, i)],
|
|
61
|
+
target: a
|
|
62
|
+
} : n && n.variant == "RETURN_TYPE" && t.variant === "NODE" ? {
|
|
63
|
+
sourceDataTypeIdentifiers: [this.getTypeFromValue(e, i)],
|
|
64
|
+
target: a
|
|
65
|
+
} : n && n.variant == "INPUT_TYPE" && t.variant === "NODE" ? {
|
|
66
|
+
sourceDataTypeIdentifiers: [{
|
|
67
|
+
genericKey: a
|
|
68
|
+
}],
|
|
69
|
+
target: a
|
|
70
|
+
} : null;
|
|
71
|
+
}).filter((a) => !!a), T = r.length > 0 ? {
|
|
72
|
+
genericType: {
|
|
73
|
+
dataType: {
|
|
74
|
+
id: t.id
|
|
75
|
+
},
|
|
76
|
+
genericMappers: r
|
|
77
|
+
}
|
|
78
|
+
} : {
|
|
79
|
+
dataType: {
|
|
80
|
+
id: t.id
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
return y(T, this);
|
|
84
|
+
}
|
|
85
|
+
hasDataTypes(e) {
|
|
86
|
+
return e.every((i) => this.values().find((t) => t.id === (i.genericType?.dataType?.id ?? i.dataType?.id)));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export {
|
|
90
|
+
l as DFlowDataTypeReactiveService
|
|
91
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const g = ["id", "__typename", "createdAt", "updatedAt"], h = (c, u) => {
|
|
2
|
+
if (c.variant !== u.variant) return !1;
|
|
3
|
+
const l = (r) => r !== null && typeof r == "object", i = (r, e) => {
|
|
4
|
+
if (r === e) return !0;
|
|
5
|
+
const y = Array.isArray(r), a = Array.isArray(e);
|
|
6
|
+
if (y || a)
|
|
7
|
+
return !y || !a || r.length !== e.length ? !1 : r.every((s, f) => i(s, e[f]));
|
|
8
|
+
if (l(r) && l(e)) {
|
|
9
|
+
const s = Object.keys(r), f = Object.keys(e);
|
|
10
|
+
return s.length !== f.length ? !1 : s.every((o) => g.includes(o) ? !0 : i(r[o], e[o]));
|
|
11
|
+
}
|
|
12
|
+
return !1;
|
|
13
|
+
}, t = c.rules?.nodes ?? [], n = u.rules?.nodes ?? [];
|
|
14
|
+
return !t.length && !n.length ? !0 : !t.length || !n.length || t.length !== n.length ? !1 : t.every((r, e) => i(r, n[e]));
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
h as useValidateDataType
|
|
18
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
+
import { DataTypeView } from './DFlowDataType.view';
|
|
3
|
+
import { FlowView } from '../DFlow.view';
|
|
4
|
+
export declare const useValidateValue: (value: NodeParameterValue, dataType: DataTypeView, flow?: FlowView, generics?: GenericMapper[]) => boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { c } from "../../../_virtual/compiler-runtime.js";
|
|
2
|
+
import { RuleMap as m } from "./rules/DFlowDataTypeRules.js";
|
|
3
|
+
import { useService as f } from "../../../utils/contextStore.js";
|
|
4
|
+
import { DFlowDataTypeReactiveService as u } from "./DFlowDataType.service.js";
|
|
5
|
+
const g = (e, i, n, a) => {
|
|
6
|
+
const t = c.c(6), s = f(u);
|
|
7
|
+
let o;
|
|
8
|
+
if (t[0] !== i.rules?.nodes || t[1] !== s || t[2] !== n || t[3] !== a || t[4] !== e) {
|
|
9
|
+
const p = new Map(a?.map(v));
|
|
10
|
+
o = i.rules?.nodes?.every((r) => !r || !r.variant || !r.config ? !1 : m.get(r.variant) ? m.get(r.variant)?.validate(e, r.config, p, s, n) : !0) ?? !0, t[0] = i.rules?.nodes, t[1] = s, t[2] = n, t[3] = a, t[4] = e, t[5] = o;
|
|
11
|
+
} else
|
|
12
|
+
o = t[5];
|
|
13
|
+
return o;
|
|
14
|
+
};
|
|
15
|
+
function v(e) {
|
|
16
|
+
return [e.target, e];
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
g as useValidateValue
|
|
20
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DataType, DataTypeRuleConnection, DataTypeVariant, Maybe, Runtime, Scalars, TranslationConnection } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
+
export declare class DataTypeView {
|
|
3
|
+
/** Time when this DataType was created */
|
|
4
|
+
private readonly _createdAt?;
|
|
5
|
+
/** Generic keys of the datatype */
|
|
6
|
+
private readonly _genericKeys?;
|
|
7
|
+
/** Global ID of this DataType */
|
|
8
|
+
private readonly _id?;
|
|
9
|
+
/** The identifier scoped to the namespace */
|
|
10
|
+
private readonly _identifier?;
|
|
11
|
+
/** Names of the flow type setting */
|
|
12
|
+
private readonly _name?;
|
|
13
|
+
/** The namespace where this datatype belongs to */
|
|
14
|
+
private readonly _runtime?;
|
|
15
|
+
/** Rules of the datatype */
|
|
16
|
+
private readonly _rules?;
|
|
17
|
+
/** Time when this DataType was last updated */
|
|
18
|
+
private readonly _updatedAt?;
|
|
19
|
+
/** The type of the datatype */
|
|
20
|
+
private readonly _variant?;
|
|
21
|
+
constructor(dataType: DataType);
|
|
22
|
+
get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
23
|
+
get genericKeys(): Maybe<Array<Scalars["String"]["output"]>> | undefined;
|
|
24
|
+
get id(): Maybe<Scalars["DataTypeID"]["output"]> | undefined;
|
|
25
|
+
get identifier(): Maybe<Scalars["String"]["output"]> | undefined;
|
|
26
|
+
get name(): Maybe<TranslationConnection> | undefined;
|
|
27
|
+
get runtime(): Maybe<Runtime> | undefined;
|
|
28
|
+
get rules(): Maybe<DataTypeRuleConnection> | undefined;
|
|
29
|
+
get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
|
|
30
|
+
get variant(): Maybe<DataTypeVariant> | undefined;
|
|
31
|
+
get json(): DataType;
|
|
32
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
function i(e, t, r) {
|
|
2
|
+
return (t = s(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
3
|
+
}
|
|
4
|
+
function s(e) {
|
|
5
|
+
var t = u(e, "string");
|
|
6
|
+
return typeof t == "symbol" ? t : t + "";
|
|
7
|
+
}
|
|
8
|
+
function u(e, t) {
|
|
9
|
+
if (typeof e != "object" || !e) return e;
|
|
10
|
+
var r = e[Symbol.toPrimitive];
|
|
11
|
+
if (r !== void 0) {
|
|
12
|
+
var n = r.call(e, t);
|
|
13
|
+
if (typeof n != "object") return n;
|
|
14
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15
|
+
}
|
|
16
|
+
return (t === "string" ? String : Number)(e);
|
|
17
|
+
}
|
|
18
|
+
class d {
|
|
19
|
+
constructor(t) {
|
|
20
|
+
i(this, "_createdAt", void 0), i(this, "_genericKeys", void 0), i(this, "_id", void 0), i(this, "_identifier", void 0), i(this, "_name", void 0), i(this, "_runtime", void 0), i(this, "_rules", void 0), i(this, "_updatedAt", void 0), i(this, "_variant", void 0), this._id = t.id, this._createdAt = t.createdAt, this._updatedAt = t.updatedAt, this._identifier = t.identifier, this._name = t.name ?? void 0, this._runtime = t.runtime ?? void 0, this._variant = t.variant, this._genericKeys = t.genericKeys ?? void 0, this._rules = t.rules ?? void 0;
|
|
21
|
+
}
|
|
22
|
+
get createdAt() {
|
|
23
|
+
return this._createdAt;
|
|
24
|
+
}
|
|
25
|
+
get genericKeys() {
|
|
26
|
+
return this._genericKeys;
|
|
27
|
+
}
|
|
28
|
+
get id() {
|
|
29
|
+
return this._id;
|
|
30
|
+
}
|
|
31
|
+
get identifier() {
|
|
32
|
+
return this._identifier;
|
|
33
|
+
}
|
|
34
|
+
get name() {
|
|
35
|
+
return this._name;
|
|
36
|
+
}
|
|
37
|
+
get runtime() {
|
|
38
|
+
return this._runtime;
|
|
39
|
+
}
|
|
40
|
+
get rules() {
|
|
41
|
+
return this._rules;
|
|
42
|
+
}
|
|
43
|
+
get updatedAt() {
|
|
44
|
+
return this._updatedAt;
|
|
45
|
+
}
|
|
46
|
+
get variant() {
|
|
47
|
+
return this._variant;
|
|
48
|
+
}
|
|
49
|
+
get json() {
|
|
50
|
+
return {
|
|
51
|
+
id: this._id,
|
|
52
|
+
createdAt: this._createdAt,
|
|
53
|
+
updatedAt: this._updatedAt,
|
|
54
|
+
identifier: this._identifier,
|
|
55
|
+
name: this._name,
|
|
56
|
+
runtime: this._runtime,
|
|
57
|
+
variant: this._variant,
|
|
58
|
+
genericKeys: this._genericKeys,
|
|
59
|
+
rules: this._rules
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
d as DataTypeView
|
|
65
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DFlowDataTypeReactiveService } from '../DFlowDataType.service';
|
|
2
|
+
import { DataTypeRulesContainsKeyConfig, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
import { FlowView } from '../../DFlow.view';
|
|
4
|
+
export declare class DFlowDataTypeContainsKeyRule {
|
|
5
|
+
static validate(value: NodeParameterValue, config: DataTypeRulesContainsKeyConfig, generics?: Map<string, GenericMapper>, service?: DFlowDataTypeReactiveService, flow?: FlowView): boolean;
|
|
6
|
+
}
|