@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,27 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { c as g } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import '../../assets/components/col/Col.style.css';/* empty css */
|
|
4
|
+
import { mergeCode0Props as p } from "../../utils/utils.js";
|
|
5
|
+
const j = (c) => {
|
|
6
|
+
const l = g.c(6);
|
|
7
|
+
let o, t;
|
|
8
|
+
if (l[0] !== c) {
|
|
9
|
+
const {
|
|
10
|
+
children: n,
|
|
11
|
+
xs: r,
|
|
12
|
+
sm: m,
|
|
13
|
+
md: $,
|
|
14
|
+
lg: s,
|
|
15
|
+
xl: i,
|
|
16
|
+
xxl: x,
|
|
17
|
+
...d
|
|
18
|
+
} = c;
|
|
19
|
+
o = n, t = p(`col ${r ? `col-xs-${r}` : ""} ${m ? `col-sm-${m}` : ""} ${$ ? `col-md-${$}` : ""} ${s ? `col-lg-${s}` : ""} ${i ? `col-lg-${i}` : ""} ${x ? `col-xxl-${x}` : ""}`, d), l[0] = c, l[1] = o, l[2] = t;
|
|
20
|
+
} else
|
|
21
|
+
o = l[1], t = l[2];
|
|
22
|
+
let e;
|
|
23
|
+
return l[3] !== o || l[4] !== t ? (e = /* @__PURE__ */ f("div", { ...t, children: o }), l[3] = o, l[4] = t, l[5] = e) : e = l[5], e;
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
j as Col
|
|
27
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Command as CommandPrimitive } from 'cmdk';
|
|
3
|
+
import { Code0ComponentProps } from '../../utils/types';
|
|
4
|
+
import { Dialog, DialogContent } from '../dialog/Dialog';
|
|
5
|
+
import { Badge } from '../badge/Badge';
|
|
6
|
+
import { TextInputProps } from '../form/TextInput';
|
|
7
|
+
export type CommandProps = Code0ComponentProps & React.ComponentProps<typeof CommandPrimitive>;
|
|
8
|
+
export type CommandDialogProps = {
|
|
9
|
+
dialogProps?: Code0ComponentProps & React.ComponentProps<typeof Dialog>;
|
|
10
|
+
contentProps?: Code0ComponentProps & React.ComponentProps<typeof DialogContent>;
|
|
11
|
+
open?: boolean;
|
|
12
|
+
onOpenChange?: () => void;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export type CommandListProps = Code0ComponentProps & React.ComponentProps<typeof CommandPrimitive.List>;
|
|
16
|
+
export type CommandInputProps = Code0ComponentProps & TextInputProps;
|
|
17
|
+
export type CommandEmptyProps = Code0ComponentProps & React.ComponentProps<typeof CommandPrimitive.Empty>;
|
|
18
|
+
export type CommandGroupProps = Code0ComponentProps & React.ComponentProps<typeof CommandPrimitive.Group>;
|
|
19
|
+
export type CommandItemProps = Code0ComponentProps & React.ComponentProps<typeof CommandPrimitive.Item>;
|
|
20
|
+
export type CommandSeparatorProps = Code0ComponentProps & React.ComponentProps<typeof CommandPrimitive.Separator>;
|
|
21
|
+
export type CommandShortcutProps = Code0ComponentProps & React.ComponentProps<typeof Badge>;
|
|
22
|
+
export declare const Command: React.FC<CommandProps>;
|
|
23
|
+
export declare const CommandDialog: React.FC<CommandDialogProps>;
|
|
24
|
+
export declare const CommandList: React.FC<CommandListProps>;
|
|
25
|
+
export declare const CommandInput: React.FC<CommandInputProps>;
|
|
26
|
+
export declare const CommandEmpty: React.FC<CommandEmptyProps>;
|
|
27
|
+
export declare const CommandGroup: React.FC<CommandGroupProps>;
|
|
28
|
+
export declare const CommandItem: React.FC<CommandItemProps>;
|
|
29
|
+
export declare const CommandSeparator: React.FC<CommandSeparatorProps>;
|
|
30
|
+
export declare const CommandShortcut: React.FC<CommandShortcutProps>;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { c as a } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { Command as s } from "cmdk";
|
|
4
|
+
import { mergeCode0Props as d } from "../../utils/utils.js";
|
|
5
|
+
import { DialogContent as g, Dialog as h } from "../dialog/Dialog.js";
|
|
6
|
+
import '../../assets/components/command/Command.style.css';/* empty css */
|
|
7
|
+
import { Badge as _ } from "../badge/Badge.js";
|
|
8
|
+
import { TextInput as $ } from "../form/TextInput.js";
|
|
9
|
+
const P = (e) => {
|
|
10
|
+
const t = a.c(4);
|
|
11
|
+
let n;
|
|
12
|
+
t[0] !== e ? (n = d("command", e), t[0] = e, t[1] = n) : n = t[1];
|
|
13
|
+
const o = n;
|
|
14
|
+
let l;
|
|
15
|
+
return t[2] !== o ? (l = /* @__PURE__ */ m(s, { ...o }), t[2] = o, t[3] = l) : l = t[3], l;
|
|
16
|
+
}, G = (e) => {
|
|
17
|
+
const t = a.c(14), n = e.dialogProps, o = e.open, l = e.onOpenChange;
|
|
18
|
+
let c;
|
|
19
|
+
t[0] !== e.contentProps ? (c = e.contentProps ?? {}, t[0] = e.contentProps, t[1] = c) : c = t[1];
|
|
20
|
+
let i;
|
|
21
|
+
t[2] !== c ? (i = d("command__dialog", c), t[2] = c, t[3] = i) : i = t[3];
|
|
22
|
+
const u = i;
|
|
23
|
+
let f;
|
|
24
|
+
t[4] !== e ? (f = /* @__PURE__ */ m(P, { ...e, children: e.children }), t[4] = e, t[5] = f) : f = t[5];
|
|
25
|
+
let r;
|
|
26
|
+
t[6] !== u || t[7] !== f ? (r = /* @__PURE__ */ m(g, { ...u, children: f }), t[6] = u, t[7] = f, t[8] = r) : r = t[8];
|
|
27
|
+
let C;
|
|
28
|
+
return t[9] !== e.dialogProps || t[10] !== e.onOpenChange || t[11] !== e.open || t[12] !== r ? (C = /* @__PURE__ */ m(h, { ...n, open: o, onOpenChange: l, children: r }), t[9] = e.dialogProps, t[10] = e.onOpenChange, t[11] = e.open, t[12] = r, t[13] = C) : C = t[13], C;
|
|
29
|
+
}, L = (e) => {
|
|
30
|
+
const t = a.c(4);
|
|
31
|
+
let n;
|
|
32
|
+
t[0] !== e ? (n = d("command__list", e), t[0] = e, t[1] = n) : n = t[1];
|
|
33
|
+
const o = n;
|
|
34
|
+
let l;
|
|
35
|
+
return t[2] !== o ? (l = /* @__PURE__ */ m(s.List, { ...o }), t[2] = o, t[3] = l) : l = t[3], l;
|
|
36
|
+
}, j = (e) => {
|
|
37
|
+
const t = a.c(12);
|
|
38
|
+
let n;
|
|
39
|
+
t[0] !== e.value ? (n = e.value?.toString(), t[0] = e.value, t[1] = n) : n = t[1];
|
|
40
|
+
let o;
|
|
41
|
+
t[2] !== e ? (o = (u) => {
|
|
42
|
+
if (e.onChange) {
|
|
43
|
+
const f = {
|
|
44
|
+
target: {
|
|
45
|
+
value: u
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
e.onChange(f);
|
|
49
|
+
}
|
|
50
|
+
}, t[2] = e, t[3] = o) : o = t[3];
|
|
51
|
+
let l;
|
|
52
|
+
t[4] !== e ? (l = d("command__input", e), t[4] = e, t[5] = l) : l = t[5];
|
|
53
|
+
let c;
|
|
54
|
+
t[6] !== l ? (c = /* @__PURE__ */ m($, { ...l }), t[6] = l, t[7] = c) : c = t[7];
|
|
55
|
+
let i;
|
|
56
|
+
return t[8] !== n || t[9] !== o || t[10] !== c ? (i = /* @__PURE__ */ m(s.Input, { value: n, onValueChange: o, asChild: !0, children: c }), t[8] = n, t[9] = o, t[10] = c, t[11] = i) : i = t[11], i;
|
|
57
|
+
}, B = (e) => {
|
|
58
|
+
const t = a.c(4);
|
|
59
|
+
let n;
|
|
60
|
+
t[0] !== e ? (n = d("command__empty", e), t[0] = e, t[1] = n) : n = t[1];
|
|
61
|
+
const o = n;
|
|
62
|
+
let l;
|
|
63
|
+
return t[2] !== o ? (l = /* @__PURE__ */ m(s.Empty, { ...o }), t[2] = o, t[3] = l) : l = t[3], l;
|
|
64
|
+
}, R = (e) => {
|
|
65
|
+
const t = a.c(4);
|
|
66
|
+
let n;
|
|
67
|
+
t[0] !== e ? (n = d("command__group", e), t[0] = e, t[1] = n) : n = t[1];
|
|
68
|
+
const o = n;
|
|
69
|
+
let l;
|
|
70
|
+
return t[2] !== o ? (l = /* @__PURE__ */ m(s.Group, { ...o }), t[2] = o, t[3] = l) : l = t[3], l;
|
|
71
|
+
}, T = (e) => {
|
|
72
|
+
const t = a.c(4);
|
|
73
|
+
let n;
|
|
74
|
+
t[0] !== e ? (n = d("command__item", e), t[0] = e, t[1] = n) : n = t[1];
|
|
75
|
+
const o = n;
|
|
76
|
+
let l;
|
|
77
|
+
return t[2] !== o ? (l = /* @__PURE__ */ m(s.Item, { ...o }), t[2] = o, t[3] = l) : l = t[3], l;
|
|
78
|
+
}, V = (e) => {
|
|
79
|
+
const t = a.c(4);
|
|
80
|
+
let n;
|
|
81
|
+
t[0] !== e ? (n = d("command__separator", e), t[0] = e, t[1] = n) : n = t[1];
|
|
82
|
+
const o = n;
|
|
83
|
+
let l;
|
|
84
|
+
return t[2] !== o ? (l = /* @__PURE__ */ m(s.Separator, { ...o }), t[2] = o, t[3] = l) : l = t[3], l;
|
|
85
|
+
}, b = (e) => {
|
|
86
|
+
const t = a.c(5);
|
|
87
|
+
let n;
|
|
88
|
+
t[0] !== e ? (n = d("command__shortcut", e), t[0] = e, t[1] = n) : n = t[1];
|
|
89
|
+
const o = n;
|
|
90
|
+
let l;
|
|
91
|
+
return t[2] !== e.children || t[3] !== o ? (l = /* @__PURE__ */ m(_, { ...o, children: e.children }), t[2] = e.children, t[3] = o, t[4] = l) : l = t[4], l;
|
|
92
|
+
};
|
|
93
|
+
export {
|
|
94
|
+
P as Command,
|
|
95
|
+
G as CommandDialog,
|
|
96
|
+
B as CommandEmpty,
|
|
97
|
+
R as CommandGroup,
|
|
98
|
+
j as CommandInput,
|
|
99
|
+
T as CommandItem,
|
|
100
|
+
L as CommandList,
|
|
101
|
+
V as CommandSeparator,
|
|
102
|
+
b as CommandShortcut
|
|
103
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { Code0Component } from '../../utils/types';
|
|
3
|
+
export interface ContainerType extends Code0Component<HTMLDivElement> {
|
|
4
|
+
children: ReactNode | ReactNode[];
|
|
5
|
+
}
|
|
6
|
+
export declare const Container: React.FC<ContainerType>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import '../../assets/components/container/Container.style.css';/* empty css */
|
|
4
|
+
import { mergeCode0Props as s } from "../../utils/utils.js";
|
|
5
|
+
const x = (i) => {
|
|
6
|
+
const t = l.c(6);
|
|
7
|
+
let e, r;
|
|
8
|
+
if (t[0] !== i) {
|
|
9
|
+
const {
|
|
10
|
+
children: n,
|
|
11
|
+
...m
|
|
12
|
+
} = i;
|
|
13
|
+
e = n, r = s("container", m), t[0] = i, t[1] = e, t[2] = r;
|
|
14
|
+
} else
|
|
15
|
+
e = t[1], r = t[2];
|
|
16
|
+
let o;
|
|
17
|
+
return t[3] !== e || t[4] !== r ? (o = /* @__PURE__ */ c("div", { ...r, children: e }), t[3] = e, t[4] = r, t[5] = o) : o = t[5], o;
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
x as Container
|
|
21
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { useService as S, useStore as D } from "../../utils/contextStore.js";
|
|
2
|
+
import { DFlowReactiveService as v } from "./DFlow.service.js";
|
|
3
|
+
import { NodeFunctionView as w } from "./DFlow.view.js";
|
|
4
|
+
import { DFlowFunctionReactiveService as N } from "./function/DFlowFunction.service.js";
|
|
5
|
+
import { DFlowDataTypeReactiveService as y } from "./data-type/DFlowDataType.service.js";
|
|
6
|
+
import O from "react";
|
|
7
|
+
const s = [
|
|
8
|
+
"#70ffb2",
|
|
9
|
+
// 0 – Primary (Grün)
|
|
10
|
+
"#70e2ff",
|
|
11
|
+
// 1 – Cyan
|
|
12
|
+
"#709aff",
|
|
13
|
+
// 2 – Blau
|
|
14
|
+
"#a170ff",
|
|
15
|
+
// 3 – Violett
|
|
16
|
+
"#f170ff",
|
|
17
|
+
// 4 – Magenta
|
|
18
|
+
"#ff70b5",
|
|
19
|
+
// 5 – Pink/Rot
|
|
20
|
+
"#ff7070",
|
|
21
|
+
// 6 – Orange-Rot
|
|
22
|
+
"#fff170"
|
|
23
|
+
// 7 – Gelb
|
|
24
|
+
], k = (I) => {
|
|
25
|
+
const T = S(v), x = S(N), E = S(y), c = T.getById(I), F = D(v), B = D(N), P = D(y);
|
|
26
|
+
if (!c) return [];
|
|
27
|
+
const n = [], d = /* @__PURE__ */ new Map();
|
|
28
|
+
let m = 0;
|
|
29
|
+
const b = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), R = (o, a = b) => (a.has(o) || a.set(o, x.getById(o)), a.get(o)), M = (o, a = h) => (a.has(o) || a.set(o, E.getDataType(o)), a.get(o)), u = (o, a, i = 0, g = b, p = h) => {
|
|
30
|
+
const e = `${o.id}-${m++}`;
|
|
31
|
+
if (m == 1 && n.push({
|
|
32
|
+
id: `trigger-${e}-next`,
|
|
33
|
+
source: c.id,
|
|
34
|
+
// Handle-Bottom des Trigger-Nodes
|
|
35
|
+
target: e,
|
|
36
|
+
// Handle-Top der Function-Card
|
|
37
|
+
data: {
|
|
38
|
+
color: s[i % s.length],
|
|
39
|
+
isParameter: !1
|
|
40
|
+
},
|
|
41
|
+
deletable: !1,
|
|
42
|
+
selectable: !1
|
|
43
|
+
}), a) {
|
|
44
|
+
const t = d.get(a) ?? [];
|
|
45
|
+
t.length > 0 ? t.forEach((r, l) => n.push({
|
|
46
|
+
id: `${r}-${e}-next-${l}`,
|
|
47
|
+
source: r,
|
|
48
|
+
// Handle-Bottom der Group-Card
|
|
49
|
+
target: e,
|
|
50
|
+
// Handle-Top der Function-Card
|
|
51
|
+
data: {
|
|
52
|
+
color: s[i % s.length],
|
|
53
|
+
isParameter: !1
|
|
54
|
+
},
|
|
55
|
+
deletable: !1,
|
|
56
|
+
selectable: !1
|
|
57
|
+
})) : n.push({
|
|
58
|
+
id: `${a}-${e}-next`,
|
|
59
|
+
source: a,
|
|
60
|
+
// Handle-Bottom der Function-Card
|
|
61
|
+
target: e,
|
|
62
|
+
// Handle-Top der Function-Card
|
|
63
|
+
data: {
|
|
64
|
+
color: s[i % s.length],
|
|
65
|
+
isParameter: !1
|
|
66
|
+
},
|
|
67
|
+
deletable: !1,
|
|
68
|
+
selectable: !1
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
if (o.parameters?.forEach((t) => {
|
|
72
|
+
const r = t.value, l = R(o.functionDefinition?.id, g)?.parameterDefinitions?.find((f) => f.id === t.id), $ = l?.dataTypeIdentifier, G = $ ? M($, p) : void 0;
|
|
73
|
+
if (r) {
|
|
74
|
+
if (G?.variant === "NODE") {
|
|
75
|
+
const f = `${e}-group-${m++}`;
|
|
76
|
+
n.push({
|
|
77
|
+
id: `${e}-${f}-param-${t.id}`,
|
|
78
|
+
source: e,
|
|
79
|
+
// FunctionCard (Quelle)
|
|
80
|
+
target: f,
|
|
81
|
+
// GroupCard (Ziel – hat Top: target)
|
|
82
|
+
deletable: !1,
|
|
83
|
+
selectable: !1,
|
|
84
|
+
label: l?.names?.nodes[0]?.content ?? t.id,
|
|
85
|
+
data: {
|
|
86
|
+
color: s[i % s.length],
|
|
87
|
+
isParameter: !1
|
|
88
|
+
}
|
|
89
|
+
}), r && r instanceof w && ((d.get(e) ?? (d.set(e, []), d.get(e))).push(f), u(t.value, void 0, i + 1, g, p));
|
|
90
|
+
} else if (r && r instanceof w) {
|
|
91
|
+
const f = u(t.value, void 0, i + 1, g, p);
|
|
92
|
+
n.push({
|
|
93
|
+
id: `${f}-${e}-param-${t.id}`,
|
|
94
|
+
source: f,
|
|
95
|
+
target: e,
|
|
96
|
+
targetHandle: `param-${t.id}`,
|
|
97
|
+
animated: !0,
|
|
98
|
+
deletable: !1,
|
|
99
|
+
selectable: !1,
|
|
100
|
+
data: {
|
|
101
|
+
color: s[(i + 1) % s.length],
|
|
102
|
+
isParameter: !0
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}), o.nextNodeId)
|
|
108
|
+
u(c.getNodeById(o.nextNodeId), e, i, g, p);
|
|
109
|
+
else {
|
|
110
|
+
const t = `${e}-suggestion`, r = d.get(e) ?? [];
|
|
111
|
+
r.length > 0 ? r.forEach((l, $) => n.push({
|
|
112
|
+
id: `${l}-${t}-next-${$}`,
|
|
113
|
+
source: l,
|
|
114
|
+
// wie bei echter nextNode von Group-Card starten
|
|
115
|
+
target: t,
|
|
116
|
+
// Ziel ist die Suggestion-Card
|
|
117
|
+
data: {
|
|
118
|
+
color: s[i % s.length],
|
|
119
|
+
isSuggestion: !0
|
|
120
|
+
},
|
|
121
|
+
deletable: !1,
|
|
122
|
+
selectable: !1
|
|
123
|
+
})) : n.push({
|
|
124
|
+
id: `${e}-${t}-next`,
|
|
125
|
+
source: e,
|
|
126
|
+
// Handle-Bottom der Function-Card
|
|
127
|
+
target: t,
|
|
128
|
+
// Handle-Top der Suggestion-Card
|
|
129
|
+
data: {
|
|
130
|
+
color: s[i % s.length],
|
|
131
|
+
isSuggestion: !0
|
|
132
|
+
},
|
|
133
|
+
deletable: !1,
|
|
134
|
+
selectable: !1
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
return e;
|
|
138
|
+
};
|
|
139
|
+
return c.startingNodeId && u(c.getNodeById(c.startingNodeId), void 0, 0, b, h), O.useMemo(() => n, [F, B, P, n]);
|
|
140
|
+
};
|
|
141
|
+
export {
|
|
142
|
+
s as FLOW_EDGE_RAINBOW,
|
|
143
|
+
k as useFlowEdges
|
|
144
|
+
};
|