@code0-tech/pictor 0.0.0-mvp.rc.1
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/DFlowDataType.service-B7xAjgiJ.js +793 -0
- package/dist/assets/Avatar.css +1 -0
- package/dist/assets/Badge.css +1 -0
- package/dist/assets/Breadcrumb.css +1 -0
- package/dist/assets/Button.css +1 -0
- package/dist/assets/ButtonGroup.css +1 -0
- package/dist/assets/Card.css +1 -0
- package/dist/assets/Col.css +1 -0
- package/dist/assets/Command.css +1 -0
- package/dist/assets/Container.css +1 -0
- package/dist/assets/DFlow.css +1 -0
- package/dist/assets/DFlowFolder.css +1 -0
- package/dist/assets/DFlowFunctionDefaultCard.css +1 -0
- package/dist/assets/DFlowInputDataType.css +1 -0
- package/dist/assets/DFlowMiniMap.css +1 -0
- package/dist/assets/DFlowSuggestionSearchInput.css +1 -0
- package/dist/assets/DFlowValidation.css +1 -0
- package/dist/assets/DFullScreen.css +1 -0
- package/dist/assets/DLayout.css +1 -0
- package/dist/assets/DResizable.css +1 -0
- package/dist/assets/Dialog.css +1 -0
- package/dist/assets/FileTabs.css +1 -0
- package/dist/assets/Flex.css +1 -0
- package/dist/assets/Input.css +1 -0
- package/dist/assets/Menu.css +1 -0
- package/dist/assets/Quote.css +1 -0
- package/dist/assets/Row.css +1 -0
- package/dist/assets/ScrollArea.css +1 -0
- package/dist/assets/SegmentedControl.css +1 -0
- package/dist/assets/Text.css +1 -0
- package/dist/assets/Tooltip.css +1 -0
- package/dist/compiler-runtime-Cu50tn6L.js +54 -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 +31 -0
- package/dist/components/button/Button.d.ts +10 -0
- package/dist/components/button/Button.js +28 -0
- package/dist/components/button-group/ButtonGroup.d.ts +7 -0
- package/dist/components/button-group/ButtonGroup.js +26 -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 +26 -0
- package/dist/components/command/Command.d.ts +30 -0
- package/dist/components/command/Command.js +102 -0
- package/dist/components/container/Container.d.ts +6 -0
- package/dist/components/container/Container.js +20 -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 +145 -0
- package/dist/components/d-flow/DFlow.js +373 -0
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +3 -0
- package/dist/components/d-flow/DFlow.nodes.hook.js +140 -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 +209 -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 +7 -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 +6 -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 +6 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +6 -0
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.js +6 -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 +7 -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 +8 -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 +118 -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 +75 -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 +21 -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 +151 -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 +21 -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 +59 -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 +7 -0
- package/dist/components/d-fullscreen/DFullScreen.js +20 -0
- package/dist/components/d-layout/DLayout.d.ts +10 -0
- package/dist/components/d-layout/DLayout.js +51 -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 +31 -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 +98 -0
- package/dist/components/file-tabs/FileTabs.d.ts +17 -0
- package/dist/components/file-tabs/FileTabs.js +70 -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 +48 -0
- package/dist/components/row/Row.d.ts +6 -0
- package/dist/components/row/Row.js +20 -0
- package/dist/components/scroll-area/ScrollArea.d.ts +13 -0
- package/dist/components/scroll-area/ScrollArea.js +42 -0
- package/dist/components/segmented-control/SegmentedControl.d.ts +8 -0
- package/dist/components/segmented-control/SegmentedControl.js +23 -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 +47 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +223 -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 +311 -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 +81 -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 +125 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../compiler-runtime-Cu50tn6L.js";
|
|
3
|
+
import * as n from "@radix-ui/react-tooltip";
|
|
4
|
+
import { mergeCode0Props as s } from "../../utils/utils.js";
|
|
5
|
+
import '../../assets/Tooltip.css';const a = (l) => {
|
|
6
|
+
const t = c.c(4);
|
|
7
|
+
let o;
|
|
8
|
+
t[0] !== l ? (o = s("tooltip", l), t[0] = l, t[1] = o) : o = t[1];
|
|
9
|
+
const i = o;
|
|
10
|
+
let e;
|
|
11
|
+
return t[2] !== i ? (e = /* @__PURE__ */ r(n.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ r(n.Tooltip, { ...i }) }), t[2] = i, t[3] = e) : e = t[3], e;
|
|
12
|
+
}, _ = (l) => {
|
|
13
|
+
const t = c.c(4);
|
|
14
|
+
let o;
|
|
15
|
+
t[0] !== l ? (o = s("tooltip__trigger", l), t[0] = l, t[1] = o) : o = t[1];
|
|
16
|
+
const i = o;
|
|
17
|
+
let e;
|
|
18
|
+
return t[2] !== i ? (e = /* @__PURE__ */ r(n.TooltipTrigger, { ...i }), t[2] = i, t[3] = e) : e = t[3], e;
|
|
19
|
+
}, g = (l) => {
|
|
20
|
+
const t = c.c(4);
|
|
21
|
+
let o;
|
|
22
|
+
t[0] !== l ? (o = s("tooltip__portal", l), t[0] = l, t[1] = o) : o = t[1];
|
|
23
|
+
const i = o;
|
|
24
|
+
let e;
|
|
25
|
+
return t[2] !== i ? (e = /* @__PURE__ */ r(n.TooltipPortal, { ...i }), t[2] = i, t[3] = e) : e = t[3], e;
|
|
26
|
+
}, u = (l) => {
|
|
27
|
+
const t = c.c(4);
|
|
28
|
+
let o;
|
|
29
|
+
t[0] !== l ? (o = s("tooltip__content", l), t[0] = l, t[1] = o) : o = t[1];
|
|
30
|
+
const i = o;
|
|
31
|
+
let e;
|
|
32
|
+
return t[2] !== i ? (e = /* @__PURE__ */ r(n.TooltipContent, { ...i }), t[2] = i, t[3] = e) : e = t[3], e;
|
|
33
|
+
}, p = (l) => {
|
|
34
|
+
const t = c.c(4);
|
|
35
|
+
let o;
|
|
36
|
+
t[0] !== l ? (o = s("tooltip__arrow", l), t[0] = l, t[1] = o) : o = t[1];
|
|
37
|
+
const i = o;
|
|
38
|
+
let e;
|
|
39
|
+
return t[2] !== i ? (e = /* @__PURE__ */ r(n.TooltipArrow, { ...i }), t[2] = i, t[3] = e) : e = t[3], e;
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
a as Tooltip,
|
|
43
|
+
p as TooltipArrow,
|
|
44
|
+
u as TooltipContent,
|
|
45
|
+
g as TooltipPortal,
|
|
46
|
+
_ as TooltipTrigger
|
|
47
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from './components/avatar/Avatar';
|
|
2
|
+
export * from './components/badge/Badge';
|
|
3
|
+
export * from './components/breadcrumb/Breadcrumb';
|
|
4
|
+
export * from './components/button/Button';
|
|
5
|
+
export * from './components/button-group/ButtonGroup';
|
|
6
|
+
export * from './components/card/Card';
|
|
7
|
+
export * from './components/col/Col';
|
|
8
|
+
export * from './components/command/Command';
|
|
9
|
+
export * from './components/container/Container';
|
|
10
|
+
export * from './components/d-flow/index';
|
|
11
|
+
export * from './components/d-fullscreen/DFullScreen';
|
|
12
|
+
export * from './components/d-layout/DLayout';
|
|
13
|
+
export * from './components/d-namespace/index';
|
|
14
|
+
export * from './components/d-organization/index';
|
|
15
|
+
export * from './components/d-resizable/DResizable';
|
|
16
|
+
export * from './components/d-runtime/index';
|
|
17
|
+
export * from './components/d-user/index';
|
|
18
|
+
export * from './components/dialog/Dialog';
|
|
19
|
+
export * from './components/flex/Flex';
|
|
20
|
+
export * from './components/form/index';
|
|
21
|
+
export * from './components/menu/Menu';
|
|
22
|
+
export * from './components/quote/Quote';
|
|
23
|
+
export * from './components/row/Row';
|
|
24
|
+
export * from './components/scroll-area/ScrollArea';
|
|
25
|
+
export * from './components/segmented-control/SegmentedControl';
|
|
26
|
+
export * from './components/text/Text';
|
|
27
|
+
export * from './components/tooltip/Tooltip';
|
|
28
|
+
export * from './utils/index';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { Avatar as a } from "./components/avatar/Avatar.js";
|
|
2
|
+
import { Badge as l } from "./components/badge/Badge.js";
|
|
3
|
+
import { Breadcrumb as f } from "./components/breadcrumb/Breadcrumb.js";
|
|
4
|
+
import { Button as u } from "./components/button/Button.js";
|
|
5
|
+
import { ButtonGroup as s } from "./components/button-group/ButtonGroup.js";
|
|
6
|
+
import { Card as S } from "./components/card/Card.js";
|
|
7
|
+
import { Col as v } from "./components/col/Col.js";
|
|
8
|
+
import { Command as F, CommandDialog as C, CommandEmpty as R, CommandGroup as I, CommandInput as V, CommandItem as M, CommandList as T, CommandSeparator as P, CommandShortcut as b } from "./components/command/Command.js";
|
|
9
|
+
import { Container as y } from "./components/container/Container.js";
|
|
10
|
+
import { FlowSettingView as G, FlowView as L, NodeFunctionView as O, NodeParameterView as E } from "./components/d-flow/DFlow.view.js";
|
|
11
|
+
import { DFlowReactiveService as z } from "./components/d-flow/DFlow.service.js";
|
|
12
|
+
import { FLOW_EDGE_RAINBOW as j, useFlowEdges as H } from "./components/d-flow/DFlow.edges.hook.js";
|
|
13
|
+
import { useFlowNodes as W } from "./components/d-flow/DFlow.nodes.hook.js";
|
|
14
|
+
import { DFlow as k } from "./components/d-flow/DFlow.js";
|
|
15
|
+
import { DFlowControl as Q } from "./components/d-flow/control/DFlowControl.js";
|
|
16
|
+
import { D as J } from "./DFlowDataType.service-B7xAjgiJ.js";
|
|
17
|
+
import { DataTypeView as Y } from "./components/d-flow/data-type/DFlowDataType.view.js";
|
|
18
|
+
import { DFlowFolder as $, DFlowFolderGroup as ee, DFlowFolderItem as oe } from "./components/d-flow/folder/DFlowFolder.js";
|
|
19
|
+
import { DFlowFunctionReactiveService as te } from "./components/d-flow/function/DFlowFunction.service.js";
|
|
20
|
+
import { FunctionDefinitionView as pe, ParameterDefinitionView as me } from "./components/d-flow/function/DFlowFunction.view.js";
|
|
21
|
+
import { DFlowMiniMap as ne } from "./components/d-flow/minimap/DFlowMiniMap.js";
|
|
22
|
+
import { DFlowReactiveSuggestionService as xe } from "./components/d-flow/suggestion/DFlowSuggestion.service.js";
|
|
23
|
+
import { DFlowSuggestion as ce, DFlowSuggestionType as ue } from "./components/d-flow/suggestion/DFlowSuggestion.view.js";
|
|
24
|
+
import { DFlowTypeReactiveService as se } from "./components/d-flow/type/DFlowType.service.js";
|
|
25
|
+
import { FlowTypeView as Se } from "./components/d-flow/type/DFlowType.view.js";
|
|
26
|
+
import { useDFlowValidations as ve } from "./components/d-flow/validation/DFlowValidation.hook.js";
|
|
27
|
+
import { DFlowValidation as Fe } from "./components/d-flow/validation/DFlowValidation.js";
|
|
28
|
+
import "./components/d-fullscreen/DFullScreen.js";
|
|
29
|
+
import { DLayout as Re } from "./components/d-layout/DLayout.js";
|
|
30
|
+
import { DNamespaceLicenseReactiveService as Ve } from "./components/d-namespace/license/DNamespaceLicense.service.js";
|
|
31
|
+
import { DNamespaceLicenseView as Te } from "./components/d-namespace/license/DNamespaceLicense.view.js";
|
|
32
|
+
import { DNamespaceMemberReactiveService as be } from "./components/d-namespace/member/DNamespaceMember.service.js";
|
|
33
|
+
import { DNamespaceMemberView as ye } from "./components/d-namespace/member/DNamespaceMember.view.js";
|
|
34
|
+
import { DNamespaceProjectReactiveService as Ge } from "./components/d-namespace/project/DNamespaceProject.service.js";
|
|
35
|
+
import { DNamespaceProjectView as Oe } from "./components/d-namespace/project/DNamespaceProject.view.js";
|
|
36
|
+
import "react/jsx-runtime";
|
|
37
|
+
import "react";
|
|
38
|
+
import { Text as he } from "./components/text/Text.js";
|
|
39
|
+
import "@tabler/icons-react";
|
|
40
|
+
import { ContextStore as Be, ContextStoreProvider as je, useService as He, useStore as Ue } from "./utils/contextStore.js";
|
|
41
|
+
import { Flex as _e } from "./components/flex/Flex.js";
|
|
42
|
+
import "./compiler-runtime-Cu50tn6L.js";
|
|
43
|
+
import { getChild as Ke, getContent as Qe, getPositionAroundTarget as qe, getPositioning as Je, getWindowPositioning as Xe, mergeCode0Props as Ye, parseUnit as Ze } from "./utils/utils.js";
|
|
44
|
+
import { DNamespaceReactiveService as eo } from "./components/d-namespace/DNamespace.service.js";
|
|
45
|
+
import { DRuntimeReactiveService as ro } from "./components/d-runtime/DRuntime.service.js";
|
|
46
|
+
import { Menu as io, MenuArrow as po, MenuContent as mo, MenuGroup as ao, MenuItem as no, MenuLabel as lo, MenuPortal as xo, MenuSeparator as fo, MenuSub as co, MenuSubContent as uo, MenuSubTrigger as Do, MenuTrigger as so } from "./components/menu/Menu.js";
|
|
47
|
+
import { DNamespaceRoleReactiveService as So } from "./components/d-namespace/role/DNamespaceRole.service.js";
|
|
48
|
+
import { DNamespaceRoleView as vo } from "./components/d-namespace/role/DNamespaceRole.view.js";
|
|
49
|
+
import { DNamespaceView as Co } from "./components/d-namespace/DNamespace.view.js";
|
|
50
|
+
import { DOrganizationReactiveService as Io } from "./components/d-organization/DOrganization.service.js";
|
|
51
|
+
import { DOrganizationView as Mo } from "./components/d-organization/DOrganization.view.js";
|
|
52
|
+
import { DResizableHandle as Po, DResizablePanel as bo, DResizablePanelGroup as No } from "./components/d-resizable/DResizable.js";
|
|
53
|
+
import { DRuntimeView as Ao } from "./components/d-runtime/DRuntime.view.js";
|
|
54
|
+
import { DUserReactiveService as Lo } from "./components/d-user/DUser.service.js";
|
|
55
|
+
import { DUserView as Eo } from "./components/d-user/DUser.view.js";
|
|
56
|
+
import { Dialog as zo, DialogClose as Bo, DialogContent as jo, DialogDescription as Ho, DialogFooter as Uo, DialogHeader as Wo, DialogOverlay as _o, DialogPortal as ko, DialogTitle as Ko, DialogTrigger as Qo } from "./components/dialog/Dialog.js";
|
|
57
|
+
import { CheckboxInput as Jo } from "./components/form/CheckboxInput.js";
|
|
58
|
+
import { EmailInput as Yo, emailValidation as Zo } from "./components/form/EmailInput.js";
|
|
59
|
+
import { Input as er, setElementKey as or } from "./components/form/Input.js";
|
|
60
|
+
import { InputDescription as tr } from "./components/form/InputDescription.js";
|
|
61
|
+
import { InputLabel as pr } from "./components/form/InputLabel.js";
|
|
62
|
+
import { InputMessage as ar } from "./components/form/InputMessage.js";
|
|
63
|
+
import { InputSuggestionMenuContent as lr, InputSuggestionMenuContentItems as xr } from "./components/form/InputSuggestion.js";
|
|
64
|
+
import { NumberInput as cr } from "./components/form/NumberInput.js";
|
|
65
|
+
import { PasswordInput as Dr } from "./components/form/PasswordInput.js";
|
|
66
|
+
import { PinInput as gr, PinInputField as Sr, PinInputHiddenField as wr } from "./components/form/PinInput.js";
|
|
67
|
+
import { RadioGroup as dr } from "./components/form/RadioGroup.js";
|
|
68
|
+
import { RadioInput as Cr } from "./components/form/RadioInput.js";
|
|
69
|
+
import { SwitchInput as Ir } from "./components/form/SwitchInput.js";
|
|
70
|
+
import { TextInput as Mr } from "./components/form/TextInput.js";
|
|
71
|
+
import { useForm as Pr } from "./components/form/useForm.js";
|
|
72
|
+
import { Quote as Nr } from "./components/quote/Quote.js";
|
|
73
|
+
import { Row as Ar } from "./components/row/Row.js";
|
|
74
|
+
import { ScrollArea as Lr, ScrollAreaCorner as Or, ScrollAreaScrollbar as Er, ScrollAreaThumb as hr, ScrollAreaViewport as zr } from "./components/scroll-area/ScrollArea.js";
|
|
75
|
+
import { SegmentedControl as jr, SegmentedControlItem as Hr } from "./components/segmented-control/SegmentedControl.js";
|
|
76
|
+
import { Tooltip as Wr, TooltipArrow as _r, TooltipContent as kr, TooltipPortal as Kr, TooltipTrigger as Qr } from "./components/tooltip/Tooltip.js";
|
|
77
|
+
import { InspectionSeverity as Jr } from "./utils/inspection.js";
|
|
78
|
+
import { NonReactiveArrayService as Yr, createNonReactiveArrayService as Zr } from "./utils/nonReactiveArrayService.js";
|
|
79
|
+
import { ObjectService as et, createObjectService as ot } from "./utils/objectStore.js";
|
|
80
|
+
import { ReactiveArrayService as tt, useReactiveArrayService as it } from "./utils/reactiveArrayService.js";
|
|
81
|
+
import { Colors as mt } from "./utils/types.js";
|
|
82
|
+
export {
|
|
83
|
+
a as Avatar,
|
|
84
|
+
l as Badge,
|
|
85
|
+
f as Breadcrumb,
|
|
86
|
+
u as Button,
|
|
87
|
+
s as ButtonGroup,
|
|
88
|
+
S as Card,
|
|
89
|
+
Jo as CheckboxInput,
|
|
90
|
+
v as Col,
|
|
91
|
+
mt as Colors,
|
|
92
|
+
F as Command,
|
|
93
|
+
C as CommandDialog,
|
|
94
|
+
R as CommandEmpty,
|
|
95
|
+
I as CommandGroup,
|
|
96
|
+
V as CommandInput,
|
|
97
|
+
M as CommandItem,
|
|
98
|
+
T as CommandList,
|
|
99
|
+
P as CommandSeparator,
|
|
100
|
+
b as CommandShortcut,
|
|
101
|
+
y as Container,
|
|
102
|
+
Be as ContextStore,
|
|
103
|
+
je as ContextStoreProvider,
|
|
104
|
+
k as DFlow,
|
|
105
|
+
Q as DFlowControl,
|
|
106
|
+
J as DFlowDataTypeReactiveService,
|
|
107
|
+
$ as DFlowFolder,
|
|
108
|
+
ee as DFlowFolderGroup,
|
|
109
|
+
oe as DFlowFolderItem,
|
|
110
|
+
te as DFlowFunctionReactiveService,
|
|
111
|
+
ne as DFlowMiniMap,
|
|
112
|
+
z as DFlowReactiveService,
|
|
113
|
+
xe as DFlowReactiveSuggestionService,
|
|
114
|
+
ce as DFlowSuggestion,
|
|
115
|
+
ue as DFlowSuggestionType,
|
|
116
|
+
se as DFlowTypeReactiveService,
|
|
117
|
+
Fe as DFlowValidation,
|
|
118
|
+
Re as DLayout,
|
|
119
|
+
Ve as DNamespaceLicenseReactiveService,
|
|
120
|
+
Te as DNamespaceLicenseView,
|
|
121
|
+
be as DNamespaceMemberReactiveService,
|
|
122
|
+
ye as DNamespaceMemberView,
|
|
123
|
+
Ge as DNamespaceProjectReactiveService,
|
|
124
|
+
Oe as DNamespaceProjectView,
|
|
125
|
+
eo as DNamespaceReactiveService,
|
|
126
|
+
So as DNamespaceRoleReactiveService,
|
|
127
|
+
vo as DNamespaceRoleView,
|
|
128
|
+
Co as DNamespaceView,
|
|
129
|
+
Io as DOrganizationReactiveService,
|
|
130
|
+
Mo as DOrganizationView,
|
|
131
|
+
Po as DResizableHandle,
|
|
132
|
+
bo as DResizablePanel,
|
|
133
|
+
No as DResizablePanelGroup,
|
|
134
|
+
ro as DRuntimeReactiveService,
|
|
135
|
+
Ao as DRuntimeView,
|
|
136
|
+
Lo as DUserReactiveService,
|
|
137
|
+
Eo as DUserView,
|
|
138
|
+
Y as DataTypeView,
|
|
139
|
+
zo as Dialog,
|
|
140
|
+
Bo as DialogClose,
|
|
141
|
+
jo as DialogContent,
|
|
142
|
+
Ho as DialogDescription,
|
|
143
|
+
Uo as DialogFooter,
|
|
144
|
+
Wo as DialogHeader,
|
|
145
|
+
_o as DialogOverlay,
|
|
146
|
+
ko as DialogPortal,
|
|
147
|
+
Ko as DialogTitle,
|
|
148
|
+
Qo as DialogTrigger,
|
|
149
|
+
Yo as EmailInput,
|
|
150
|
+
j as FLOW_EDGE_RAINBOW,
|
|
151
|
+
_e as Flex,
|
|
152
|
+
G as FlowSettingView,
|
|
153
|
+
Se as FlowTypeView,
|
|
154
|
+
L as FlowView,
|
|
155
|
+
pe as FunctionDefinitionView,
|
|
156
|
+
er as Input,
|
|
157
|
+
tr as InputDescription,
|
|
158
|
+
pr as InputLabel,
|
|
159
|
+
ar as InputMessage,
|
|
160
|
+
lr as InputSuggestionMenuContent,
|
|
161
|
+
xr as InputSuggestionMenuContentItems,
|
|
162
|
+
Jr as InspectionSeverity,
|
|
163
|
+
io as Menu,
|
|
164
|
+
po as MenuArrow,
|
|
165
|
+
mo as MenuContent,
|
|
166
|
+
ao as MenuGroup,
|
|
167
|
+
no as MenuItem,
|
|
168
|
+
lo as MenuLabel,
|
|
169
|
+
xo as MenuPortal,
|
|
170
|
+
fo as MenuSeparator,
|
|
171
|
+
co as MenuSub,
|
|
172
|
+
uo as MenuSubContent,
|
|
173
|
+
Do as MenuSubTrigger,
|
|
174
|
+
so as MenuTrigger,
|
|
175
|
+
O as NodeFunctionView,
|
|
176
|
+
E as NodeParameterView,
|
|
177
|
+
Yr as NonReactiveArrayService,
|
|
178
|
+
cr as NumberInput,
|
|
179
|
+
et as ObjectService,
|
|
180
|
+
me as ParameterDefinitionView,
|
|
181
|
+
Dr as PasswordInput,
|
|
182
|
+
gr as PinInput,
|
|
183
|
+
Sr as PinInputField,
|
|
184
|
+
wr as PinInputHiddenField,
|
|
185
|
+
Nr as Quote,
|
|
186
|
+
dr as RadioGroup,
|
|
187
|
+
Cr as RadioInput,
|
|
188
|
+
tt as ReactiveArrayService,
|
|
189
|
+
Ar as Row,
|
|
190
|
+
Lr as ScrollArea,
|
|
191
|
+
Or as ScrollAreaCorner,
|
|
192
|
+
Er as ScrollAreaScrollbar,
|
|
193
|
+
hr as ScrollAreaThumb,
|
|
194
|
+
zr as ScrollAreaViewport,
|
|
195
|
+
jr as SegmentedControl,
|
|
196
|
+
Hr as SegmentedControlItem,
|
|
197
|
+
Ir as SwitchInput,
|
|
198
|
+
he as Text,
|
|
199
|
+
Mr as TextInput,
|
|
200
|
+
Wr as Tooltip,
|
|
201
|
+
_r as TooltipArrow,
|
|
202
|
+
kr as TooltipContent,
|
|
203
|
+
Kr as TooltipPortal,
|
|
204
|
+
Qr as TooltipTrigger,
|
|
205
|
+
Zr as createNonReactiveArrayService,
|
|
206
|
+
ot as createObjectService,
|
|
207
|
+
Zo as emailValidation,
|
|
208
|
+
Ke as getChild,
|
|
209
|
+
Qe as getContent,
|
|
210
|
+
qe as getPositionAroundTarget,
|
|
211
|
+
Je as getPositioning,
|
|
212
|
+
Xe as getWindowPositioning,
|
|
213
|
+
Ye as mergeCode0Props,
|
|
214
|
+
Ze as parseUnit,
|
|
215
|
+
or as setElementKey,
|
|
216
|
+
ve as useDFlowValidations,
|
|
217
|
+
H as useFlowEdges,
|
|
218
|
+
W as useFlowNodes,
|
|
219
|
+
Pr as useForm,
|
|
220
|
+
it as useReactiveArrayService,
|
|
221
|
+
He as useService,
|
|
222
|
+
Ue as useStore
|
|
223
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Type representing a concrete class constructor.
|
|
4
|
+
*/
|
|
5
|
+
export type ConcreteCtor<T> = new (...args: any[]) => T;
|
|
6
|
+
/**
|
|
7
|
+
* Type representing an abstract class constructor.
|
|
8
|
+
*/
|
|
9
|
+
export type AbstractCtor<T> = abstract new (...args: any[]) => T;
|
|
10
|
+
/**
|
|
11
|
+
* A class constructor type that can be either concrete or abstract.
|
|
12
|
+
*/
|
|
13
|
+
export type ServiceClass<T> = ConcreteCtor<T> | AbstractCtor<T>;
|
|
14
|
+
/**
|
|
15
|
+
* Tuple representing a service entry: [store, service].
|
|
16
|
+
*/
|
|
17
|
+
export type ServiceEntry<T = any> = [any, T];
|
|
18
|
+
/**
|
|
19
|
+
* Map storing service entries, keyed by their (abstract or concrete) class constructor.
|
|
20
|
+
*/
|
|
21
|
+
export type ServiceMap = Map<Function, ServiceEntry>;
|
|
22
|
+
/**
|
|
23
|
+
* React Context for providing and consuming registered services and stores.
|
|
24
|
+
*/
|
|
25
|
+
export declare const ContextStore: React.Context<ServiceMap | null>;
|
|
26
|
+
/**
|
|
27
|
+
* Props for the ContextStoreProvider component.
|
|
28
|
+
* @property services - Array of [store, service] tuples to register.
|
|
29
|
+
* @property children - React children to render within the provider.
|
|
30
|
+
*/
|
|
31
|
+
export type ContextStoreProviderProps = {
|
|
32
|
+
services: ServiceEntry[];
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* ContextStoreProvider
|
|
37
|
+
*
|
|
38
|
+
* Registers all given services and their associated stores in a shared context.
|
|
39
|
+
*
|
|
40
|
+
* Each service is indexed by both its concrete constructor and all abstract or
|
|
41
|
+
* base class constructors in its prototype chain.
|
|
42
|
+
*
|
|
43
|
+
* If multiple services share the same base class, the first one wins (no overwriting).
|
|
44
|
+
*/
|
|
45
|
+
export declare const ContextStoreProvider: React.FC<ContextStoreProviderProps>;
|
|
46
|
+
/**
|
|
47
|
+
* Retrieves a service instance from the ContextStore by its class.
|
|
48
|
+
* Works with both concrete classes and abstract base classes.
|
|
49
|
+
*
|
|
50
|
+
* @param ServiceClass - The (abstract or concrete) class of the desired service.
|
|
51
|
+
* @returns The matching service instance.
|
|
52
|
+
* @throws If the context or service cannot be found.
|
|
53
|
+
*/
|
|
54
|
+
export declare const useService: <T>(ServiceClass: ServiceClass<T>) => T;
|
|
55
|
+
/**
|
|
56
|
+
* Retrieves the store associated with a (concrete or abstract) service class.
|
|
57
|
+
*
|
|
58
|
+
* @param ServiceClass - The (abstract or concrete) class whose store should be retrieved.
|
|
59
|
+
* @returns The store instance associated with the given service.
|
|
60
|
+
* @throws If the context or store cannot be found.
|
|
61
|
+
*/
|
|
62
|
+
export declare const useStore: <T>(ServiceClass: ServiceClass<T>) => any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "../compiler-runtime-Cu50tn6L.js";
|
|
3
|
+
import { createContext as d, useContext as a } from "react";
|
|
4
|
+
const u = d(null);
|
|
5
|
+
function C(n) {
|
|
6
|
+
const t = [];
|
|
7
|
+
let o = Object.getPrototypeOf(n);
|
|
8
|
+
for (; o && o.constructor && o !== Object.prototype; ) {
|
|
9
|
+
const e = o.constructor;
|
|
10
|
+
t.push(e), o = Object.getPrototypeOf(o);
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
const g = (n) => {
|
|
15
|
+
const t = i.c(5), {
|
|
16
|
+
services: o,
|
|
17
|
+
children: e
|
|
18
|
+
} = n;
|
|
19
|
+
let r;
|
|
20
|
+
t[0] !== o ? (r = /* @__PURE__ */ new Map(), o.forEach((h) => {
|
|
21
|
+
const [p, f] = h, m = f.constructor;
|
|
22
|
+
r.has(m) || r.set(m, [p, f]);
|
|
23
|
+
const l = C(f);
|
|
24
|
+
for (const w of l)
|
|
25
|
+
r.has(w) || r.set(w, [p, f]);
|
|
26
|
+
}), t[0] = o, t[1] = r) : r = t[1];
|
|
27
|
+
const c = r;
|
|
28
|
+
let s;
|
|
29
|
+
return t[2] !== e || t[3] !== c ? (s = /* @__PURE__ */ x(u.Provider, { value: c, children: e }), t[2] = e, t[3] = c, t[4] = s) : s = t[4], s;
|
|
30
|
+
}, O = (n) => {
|
|
31
|
+
const t = i.c(3), o = a(u);
|
|
32
|
+
if (!o)
|
|
33
|
+
throw new Error("ContextStore not found");
|
|
34
|
+
let e;
|
|
35
|
+
t[0] !== n || t[1] !== o ? (e = o.get(n), t[0] = n, t[1] = o, t[2] = e) : e = t[2];
|
|
36
|
+
const r = e;
|
|
37
|
+
if (!r) {
|
|
38
|
+
const c = n?.name ?? "UnknownServiceClass";
|
|
39
|
+
throw new Error(`Service not found for ${c}`);
|
|
40
|
+
}
|
|
41
|
+
return r[1];
|
|
42
|
+
}, P = (n) => {
|
|
43
|
+
const t = i.c(3), o = a(u);
|
|
44
|
+
if (!o)
|
|
45
|
+
throw new Error("ContextStore not found");
|
|
46
|
+
let e;
|
|
47
|
+
t[0] !== n || t[1] !== o ? (e = o.get(n), t[0] = n, t[1] = o, t[2] = e) : e = t[2];
|
|
48
|
+
const r = e;
|
|
49
|
+
if (!r) {
|
|
50
|
+
const c = n?.name ?? "UnknownServiceClass";
|
|
51
|
+
throw new Error(`Store not found for ${c}`);
|
|
52
|
+
}
|
|
53
|
+
return r[0];
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
u as ContextStore,
|
|
57
|
+
g as ContextStoreProvider,
|
|
58
|
+
O as useService,
|
|
59
|
+
P as useStore
|
|
60
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FunctionDefinitionView } from '../components/d-flow/function/DFlowFunction.view';
|
|
2
|
+
import { DFlowDataTypeReactiveService } from '../components/d-flow/data-type/DFlowDataType.service';
|
|
3
|
+
import { DataType, DataTypeIdentifier, GenericMapper, NodeParameterValue } from '@code0-tech/sagittarius-graphql-types';
|
|
4
|
+
import { FlowView } from '../components/d-flow/DFlow.view';
|
|
5
|
+
type GenericMappingResult = Record<string, DataTypeIdentifier>;
|
|
6
|
+
type GenericReplacement = DataTypeIdentifier | GenericMapper;
|
|
7
|
+
type GenericMap = Map<string, GenericReplacement>;
|
|
8
|
+
export declare const resolveGenericKeyMappings: (parameterType: DataTypeIdentifier, valueType: DataTypeIdentifier, genericKeys: string[]) => GenericMappingResult;
|
|
9
|
+
export declare const replaceGenericKeysInType: (type: DataTypeIdentifier, genericMap: GenericMap) => DataTypeIdentifier;
|
|
10
|
+
export declare const resolveAllGenericKeysInDataTypeObject: (genericObj: DataType, concreteObj: DataType, genericKeys: string[]) => Record<string, GenericReplacement | undefined>;
|
|
11
|
+
export declare const replaceGenericKeysInDataTypeObject: (dataType: DataType, genericMap: GenericMap) => DataType;
|
|
12
|
+
export declare const resolveGenericKeys: (func: FunctionDefinitionView, values: NodeParameterValue[], dataTypeService: DFlowDataTypeReactiveService, flow?: FlowView) => GenericMap;
|
|
13
|
+
export declare function isMatchingDataTypeObject(source: DataType, target: DataType): boolean;
|
|
14
|
+
export declare function isMatchingType(source: DataTypeIdentifier, target: DataTypeIdentifier): boolean;
|
|
15
|
+
export declare const resolveType: (type: DataTypeIdentifier, service: DFlowDataTypeReactiveService) => DataTypeIdentifier;
|
|
16
|
+
export declare const replaceGenericsAndSortType: (type: DataTypeIdentifier, genericKeys?: string[]) => DataTypeIdentifier;
|
|
17
|
+
export {};
|