@bedelightful/delightful-flow 0.0.12
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 +9 -0
- package/README.md +164 -0
- package/dist/DelightfulConditionEdit/Children/RelationGroup.d.ts +13 -0
- package/dist/DelightfulConditionEdit/Children/RelationGroup.js +117 -0
- package/dist/DelightfulConditionEdit/Children/RelationItem.d.ts +13 -0
- package/dist/DelightfulConditionEdit/Children/RelationItem.js +247 -0
- package/dist/DelightfulConditionEdit/constants.d.ts +20 -0
- package/dist/DelightfulConditionEdit/constants.js +108 -0
- package/dist/DelightfulConditionEdit/context/Global/Context.d.ts +3 -0
- package/dist/DelightfulConditionEdit/context/Global/Context.js +6 -0
- package/dist/DelightfulConditionEdit/context/Global/Provider.d.ts +7 -0
- package/dist/DelightfulConditionEdit/context/Global/Provider.js +20 -0
- package/dist/DelightfulConditionEdit/context/Global/useGlobal.d.ts +1 -0
- package/dist/DelightfulConditionEdit/context/Global/useGlobal.js +5 -0
- package/dist/DelightfulConditionEdit/helpers.d.ts +1 -0
- package/dist/DelightfulConditionEdit/helpers.js +8 -0
- package/dist/DelightfulConditionEdit/index.d.ts +51 -0
- package/dist/DelightfulConditionEdit/index.js +432 -0
- package/dist/DelightfulConditionEdit/style.d.ts +9 -0
- package/dist/DelightfulConditionEdit/style.js +26 -0
- package/dist/DelightfulConditionEdit/types/common.d.ts +125 -0
- package/dist/DelightfulConditionEdit/types/common.js +1 -0
- package/dist/DelightfulConditionEdit/types/expression.d.ts +34 -0
- package/dist/DelightfulConditionEdit/types/expression.js +2 -0
- package/dist/DelightfulExpressionWidget/InputExpression.d.ts +4 -0
- package/dist/DelightfulExpressionWidget/InputExpression.js +616 -0
- package/dist/DelightfulExpressionWidget/components/ContentEditable.d.ts +26 -0
- package/dist/DelightfulExpressionWidget/components/ContentEditable.js +719 -0
- package/dist/DelightfulExpressionWidget/components/EditInModal/index.d.ts +3 -0
- package/dist/DelightfulExpressionWidget/components/EditInModal/index.js +86 -0
- package/dist/DelightfulExpressionWidget/components/EditInModal/index.less +22 -0
- package/dist/DelightfulExpressionWidget/components/ExpandModal/ExpandModal.d.ts +10 -0
- package/dist/DelightfulExpressionWidget/components/ExpandModal/ExpandModal.js +88 -0
- package/dist/DelightfulExpressionWidget/components/ExpandModal/index.less +21 -0
- package/dist/DelightfulExpressionWidget/components/dataSource.d.ts +29 -0
- package/dist/DelightfulExpressionWidget/components/dataSource.js +1758 -0
- package/dist/DelightfulExpressionWidget/components/hooks/useDatasetProps.d.ts +11 -0
- package/dist/DelightfulExpressionWidget/components/hooks/useDatasetProps.js +13 -0
- package/dist/DelightfulExpressionWidget/components/hooks/useDeleteReferenceNode.d.ts +17 -0
- package/dist/DelightfulExpressionWidget/components/hooks/useDeleteReferenceNode.js +38 -0
- package/dist/DelightfulExpressionWidget/components/hooks/useEncryption.d.ts +10 -0
- package/dist/DelightfulExpressionWidget/components/hooks/useEncryption.js +45 -0
- package/dist/DelightfulExpressionWidget/components/hooks/useExtraClassname.d.ts +5 -0
- package/dist/DelightfulExpressionWidget/components/hooks/useExtraClassname.js +25 -0
- package/dist/DelightfulExpressionWidget/components/hooks/useSelectionChange.d.ts +1 -0
- package/dist/DelightfulExpressionWidget/components/hooks/useSelectionChange.js +33 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelCheckbox/ExpressionCheckbox/ExpressionCheckbox.d.ts +4 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelCheckbox/ExpressionCheckbox/ExpressionCheckbox.js +46 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelCheckbox/ExpressionCheckbox/constants.d.ts +9 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelCheckbox/ExpressionCheckbox/constants.js +20 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelCheckbox/ExpressionCheckbox/index.less +68 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelCheckbox/ExpressionCheckbox/types.d.ts +5 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelCheckbox/ExpressionCheckbox/types.js +1 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelCheckbox/LabelCheckbox.d.ts +7 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelCheckbox/LabelCheckbox.js +28 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelCheckbox/index.less +4 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelDatetime/LabelDatetime.d.ts +7 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelDatetime/LabelDatetime.js +30 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelDatetime/TimeSelect/TimeSelect.d.ts +4 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelDatetime/TimeSelect/TimeSelect.js +134 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelDatetime/TimeSelect/constants.d.ts +18 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelDatetime/TimeSelect/constants.js +47 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelDatetime/TimeSelect/index.less +187 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelDatetime/TimeSelect/type.d.ts +20 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelDatetime/TimeSelect/type.js +8 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelDatetime/index.less +4 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelDepartmentNames/LabelDepartmentNames.d.ts +13 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelDepartmentNames/LabelDepartmentNames.js +98 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelDepartmentNames/index.less +20 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelFunc/LabelFunc.d.ts +10 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelFunc/LabelFunc.js +97 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/LabelMember.d.ts +9 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/LabelMember.js +81 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/MemberSelect/Options.d.ts +32 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/MemberSelect/Options.js +143 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/MemberSelect/Select.d.ts +21 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/MemberSelect/Select.js +66 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/MemberSelect/components/MemberItem/MemberBlock.d.ts +8 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/MemberSelect/components/MemberItem/MemberBlock.js +39 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/MemberSelect/components/MemberItem/MemberItem.d.ts +11 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/MemberSelect/components/MemberItem/MemberItem.js +51 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/MemberSelect/components/MemberItem/index.less +34 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/MemberSelect/index.d.ts +5 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/MemberSelect/index.js +121 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/MemberSelect/styles/options.less +142 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/MemberSelect/styles/select.less +3 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/index.less +13 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/types.d.ts +6 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMember/types.js +1 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/LabelMultiple.d.ts +9 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/LabelMultiple.js +86 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/MultipleSelect/Options.d.ts +30 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/MultipleSelect/Options.js +141 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/MultipleSelect/Select.d.ts +13 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/MultipleSelect/Select.js +61 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/MultipleSelect/components/MultipleItem/MultipleBlock.d.ts +7 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/MultipleSelect/components/MultipleItem/MultipleBlock.js +25 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/MultipleSelect/components/MultipleItem/MultipleItem.d.ts +12 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/MultipleSelect/components/MultipleItem/MultipleItem.js +40 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/MultipleSelect/components/MultipleItem/index.less +32 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/MultipleSelect/index.d.ts +3 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/MultipleSelect/index.js +27 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/MultipleSelect/styles/options.less +142 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/MultipleSelect/styles/select.less +3 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/index.less +13 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/mock.d.ts +5 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/mock.js +9 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/types.d.ts +6 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelMultiple/types.js +1 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/LabelNames.d.ts +13 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/LabelNames.js +93 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/NamesSelect/Options.d.ts +31 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/NamesSelect/Options.js +139 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/NamesSelect/Select.d.ts +14 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/NamesSelect/Select.js +61 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/NamesSelect/components/NamesItem/NamesBlock.d.ts +8 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/NamesSelect/components/NamesItem/NamesBlock.js +20 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/NamesSelect/components/NamesItem/NamesItem.d.ts +12 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/NamesSelect/components/NamesItem/NamesItem.js +50 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/NamesSelect/components/NamesItem/index.less +33 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/NamesSelect/index.d.ts +3 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/NamesSelect/index.js +37 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/NamesSelect/styles/options.less +128 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/NamesSelect/styles/select.less +3 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/index.less +23 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/types.d.ts +9 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNames/types.js +1 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNode/LabelNode.d.ts +9 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelNode/LabelNode.js +199 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelPassword/LabelPassword.d.ts +6 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelPassword/LabelPassword.js +33 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelSelect/LabelSelect.d.ts +9 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelSelect/LabelSelect.js +79 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelSelect/SingleSelect/SingleSelect.d.ts +3 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelSelect/SingleSelect/SingleSelect.js +12 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelText/LabelText.d.ts +6 -0
- package/dist/DelightfulExpressionWidget/components/nodes/LabelText/LabelText.js +31 -0
- package/dist/DelightfulExpressionWidget/constant.d.ts +55 -0
- package/dist/DelightfulExpressionWidget/constant.js +214 -0
- package/dist/DelightfulExpressionWidget/context/ArgsModalContext/Context.d.ts +10 -0
- package/dist/DelightfulExpressionWidget/context/ArgsModalContext/Context.js +10 -0
- package/dist/DelightfulExpressionWidget/context/ArgsModalContext/Provider.d.ts +3 -0
- package/dist/DelightfulExpressionWidget/context/ArgsModalContext/Provider.js +24 -0
- package/dist/DelightfulExpressionWidget/context/ArgsModalContext/useArgsModalContext.d.ts +1 -0
- package/dist/DelightfulExpressionWidget/context/ArgsModalContext/useArgsModalContext.js +5 -0
- package/dist/DelightfulExpressionWidget/context/GlobalContext/Context.d.ts +3 -0
- package/dist/DelightfulExpressionWidget/context/GlobalContext/Context.js +14 -0
- package/dist/DelightfulExpressionWidget/context/GlobalContext/Provider.d.ts +22 -0
- package/dist/DelightfulExpressionWidget/context/GlobalContext/Provider.js +42 -0
- package/dist/DelightfulExpressionWidget/context/GlobalContext/useGlobalContext.d.ts +1 -0
- package/dist/DelightfulExpressionWidget/context/GlobalContext/useGlobalContext.js +5 -0
- package/dist/DelightfulExpressionWidget/context/TextareaMode/Context.d.ts +3 -0
- package/dist/DelightfulExpressionWidget/context/TextareaMode/Context.js +13 -0
- package/dist/DelightfulExpressionWidget/context/TextareaMode/Provider.d.ts +11 -0
- package/dist/DelightfulExpressionWidget/context/TextareaMode/Provider.js +24 -0
- package/dist/DelightfulExpressionWidget/context/TextareaMode/useTextareaModeContext.d.ts +1 -0
- package/dist/DelightfulExpressionWidget/context/TextareaMode/useTextareaModeContext.js +5 -0
- package/dist/DelightfulExpressionWidget/helpers.d.ts +26 -0
- package/dist/DelightfulExpressionWidget/helpers.js +212 -0
- package/dist/DelightfulExpressionWidget/hooks/useArgsModal.d.ts +22 -0
- package/dist/DelightfulExpressionWidget/hooks/useArgsModal.js +134 -0
- package/dist/DelightfulExpressionWidget/hooks/useTextareaMode.d.ts +35 -0
- package/dist/DelightfulExpressionWidget/hooks/useTextareaMode.js +289 -0
- package/dist/DelightfulExpressionWidget/mock/DepartmentModal.d.ts +7 -0
- package/dist/DelightfulExpressionWidget/mock/DepartmentModal.js +21 -0
- package/dist/DelightfulExpressionWidget/mock/expressionSource.d.ts +44 -0
- package/dist/DelightfulExpressionWidget/mock/expressionSource.js +2317 -0
- package/dist/DelightfulExpressionWidget/style/index.less +152 -0
- package/dist/DelightfulExpressionWidget/style.d.ts +44 -0
- package/dist/DelightfulExpressionWidget/style.js +100 -0
- package/dist/DelightfulExpressionWidget/types.d.ts +212 -0
- package/dist/DelightfulExpressionWidget/types.js +55 -0
- package/dist/DelightfulExpressionWidget/utils/colors.d.ts +3 -0
- package/dist/DelightfulExpressionWidget/utils/colors.js +31 -0
- package/dist/DelightfulExpressionWidget/utils/index.d.ts +18 -0
- package/dist/DelightfulExpressionWidget/utils/index.js +96 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/FlowBackground/index.d.ts +2 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/FlowBackground/index.js +20 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/InteractionSelect/index.d.ts +12 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/InteractionSelect/index.js +90 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/InteractionSelect/index.module.less +54 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/InteractionSelect/useInteraction.d.ts +8 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/InteractionSelect/useInteraction.js +63 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/SelectionTools/index.d.ts +12 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/SelectionTools/index.js +85 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/SelectionTools/index.module.less +54 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/SelectionTools/useSelections.d.ts +25 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/SelectionTools/useSelections.js +117 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/sections/FlowControls.d.ts +6 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/sections/FlowControls.js +50 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/sections/FlowMiniMap.d.ts +6 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/sections/FlowMiniMap.js +18 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/sections/FlowSelectionPanel.d.ts +10 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/sections/FlowSelectionPanel.js +26 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/sections/ReactFlowComponent.d.ts +32 -0
- package/dist/DelightfulFlow/components/FlowDesign/components/sections/ReactFlowComponent.js +128 -0
- package/dist/DelightfulFlow/components/FlowDesign/context/FlowInteraction/Context.d.ts +24 -0
- package/dist/DelightfulFlow/components/FlowDesign/context/FlowInteraction/Context.js +50 -0
- package/dist/DelightfulFlow/components/FlowDesign/context/FlowInteraction/Provider.d.ts +2 -0
- package/dist/DelightfulFlow/components/FlowDesign/context/FlowInteraction/Provider.js +62 -0
- package/dist/DelightfulFlow/components/FlowDesign/context/FlowInteraction/useFlowInteraction.d.ts +4 -0
- package/dist/DelightfulFlow/components/FlowDesign/context/FlowInteraction/useFlowInteraction.js +17 -0
- package/dist/DelightfulFlow/components/FlowDesign/hooks/useFlowCommands.d.ts +18 -0
- package/dist/DelightfulFlow/components/FlowDesign/hooks/useFlowCommands.js +105 -0
- package/dist/DelightfulFlow/components/FlowDesign/hooks/useFlowControls.d.ts +67 -0
- package/dist/DelightfulFlow/components/FlowDesign/hooks/useFlowControls.js +755 -0
- package/dist/DelightfulFlow/components/FlowDesign/hooks/useFlowEvents.d.ts +38 -0
- package/dist/DelightfulFlow/components/FlowDesign/hooks/useFlowEvents.js +393 -0
- package/dist/DelightfulFlow/components/FlowDesign/hooks/useLoopBodyClick.d.ts +5 -0
- package/dist/DelightfulFlow/components/FlowDesign/hooks/useLoopBodyClick.js +34 -0
- package/dist/DelightfulFlow/components/FlowDesign/hooks/useNodeClick.d.ts +4 -0
- package/dist/DelightfulFlow/components/FlowDesign/hooks/useNodeClick.js +49 -0
- package/dist/DelightfulFlow/components/FlowDesign/hooks/useTargetToErrorNode.d.ts +1 -0
- package/dist/DelightfulFlow/components/FlowDesign/hooks/useTargetToErrorNode.js +69 -0
- package/dist/DelightfulFlow/components/FlowDesign/index.d.ts +3 -0
- package/dist/DelightfulFlow/components/FlowDesign/index.js +222 -0
- package/dist/DelightfulFlow/components/FlowDesign/index.module.less +160 -0
- package/dist/DelightfulFlow/components/FlowDesign/test/CanvasRenderer.d.ts +17 -0
- package/dist/DelightfulFlow/components/FlowDesign/test/CanvasRenderer.js +322 -0
- package/dist/DelightfulFlow/components/FlowDesign/test/ComparisonTest.d.ts +6 -0
- package/dist/DelightfulFlow/components/FlowDesign/test/ComparisonTest.js +222 -0
- package/dist/DelightfulFlow/components/FlowDesign/test/IsolationTest.d.ts +7 -0
- package/dist/DelightfulFlow/components/FlowDesign/test/IsolationTest.js +470 -0
- package/dist/DelightfulFlow/components/FlowDesign/test/PerformanceTest.d.ts +7 -0
- package/dist/DelightfulFlow/components/FlowDesign/test/PerformanceTest.js +220 -0
- package/dist/DelightfulFlow/components/FlowDesign/test/ReactFlowBasicTest.d.ts +8 -0
- package/dist/DelightfulFlow/components/FlowDesign/test/ReactFlowBasicTest.js +217 -0
- package/dist/DelightfulFlow/components/FlowDesign/test/TestRoute.d.ts +6 -0
- package/dist/DelightfulFlow/components/FlowDesign/test/TestRoute.js +202 -0
- package/dist/DelightfulFlow/components/FlowDesign/test/index.d.ts +4 -0
- package/dist/DelightfulFlow/components/FlowDesign/test/index.js +8 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/Tags/index.d.ts +12 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/Tags/index.js +26 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/TextEditable/index.d.ts +6 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/TextEditable/index.js +103 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/TextEditable/index.module.less +39 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/sections/BackButton.d.ts +6 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/sections/BackButton.js +21 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/sections/FlowBaseInfo.d.ts +10 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/sections/FlowBaseInfo.js +35 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/sections/FlowIcon.d.ts +8 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/sections/FlowIcon.js +23 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/sections/HeaderLeft.d.ts +11 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/sections/HeaderLeft.js +34 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/sections/HeaderRight.d.ts +8 -0
- package/dist/DelightfulFlow/components/FlowHeader/components/sections/HeaderRight.js +38 -0
- package/dist/DelightfulFlow/components/FlowHeader/hooks/useFlowHeader.d.ts +10 -0
- package/dist/DelightfulFlow/components/FlowHeader/hooks/useFlowHeader.js +203 -0
- package/dist/DelightfulFlow/components/FlowHeader/index.d.ts +1 -0
- package/dist/DelightfulFlow/components/FlowHeader/index.js +47 -0
- package/dist/DelightfulFlow/components/FlowHeader/index.module.less +120 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelAgent/hooks/usePanelAgent.d.ts +11 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelAgent/hooks/usePanelAgent.js +46 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelAgent/index.d.ts +1 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelAgent/index.js +63 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelAgent/index.module.less +43 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelFlow/hooks/usePanelFlow.d.ts +6 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelFlow/hooks/usePanelFlow.js +25 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelFlow/index.d.ts +1 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelFlow/index.js +51 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelFlow/index.module.less +7 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/components/AddButton.d.ts +6 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/components/AddButton.js +16 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/components/ItemAvatar.d.ts +10 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/components/ItemAvatar.js +17 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/components/ItemTitle.d.ts +7 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/components/ItemTitle.js +28 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/hooks/useAddItem.d.ts +7 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/hooks/useAddItem.js +73 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/hooks/useAvatar.d.ts +11 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/hooks/useAvatar.js +34 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/hooks/useDragNode.d.ts +8 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/hooks/useDragNode.js +12 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/index.d.ts +10 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/index.js +75 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/MaterialItem/index.module.less +130 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/components/LazySubGroup/index.d.ts +15 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/components/LazySubGroup/index.js +92 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/components/NodeGroup.d.ts +9 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/components/NodeGroup.js +65 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/components/NodeGroups.d.ts +10 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/components/NodeGroups.js +54 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/components/SubGroup/SubGroup.d.ts +11 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/components/SubGroup/SubGroup.js +131 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/components/SubGroup/SubGroup.module.less +73 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/components/VirtualNodeList.d.ts +8 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/components/VirtualNodeList.js +100 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/hooks/useMaterial.d.ts +21 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/hooks/useMaterial.js +57 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/index.d.ts +8 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/index.js +79 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelMaterial/index.module.less +17 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelTools/hooks/usePanelTools.d.ts +8 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelTools/hooks/usePanelTools.js +61 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelTools/index.d.ts +1 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelTools/index.js +52 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/PanelTools/index.module.less +6 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/sections/MaterialContent.d.ts +8 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/sections/MaterialContent.js +45 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/sections/PanelHeader.d.ts +13 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/sections/PanelHeader.js +44 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/sections/SearchBar.d.ts +7 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/sections/SearchBar.js +22 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/sections/StickyButton.d.ts +8 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/components/sections/StickyButton.js +19 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/constants.d.ts +6 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/constants.js +8 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/context/PanelContext/Context.d.ts +7 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/context/PanelContext/Context.js +2 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/context/PanelContext/Provider.d.ts +2 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/context/PanelContext/Provider.js +18 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/context/PanelContext/usePanel.d.ts +1 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/context/PanelContext/usePanel.js +5 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/hooks/useMaterialPanel.d.ts +11 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/hooks/useMaterialPanel.js +18 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/hooks/useMaterialSearch.d.ts +13 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/hooks/useMaterialSearch.js +49 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/hooks/useTab.d.ts +13 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/hooks/useTab.js +89 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/index.d.ts +5 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/index.js +74 -0
- package/dist/DelightfulFlow/components/FlowMaterialPanel/index.module.less +159 -0
- package/dist/DelightfulFlow/components/FlowPopup/PopupNode/index.d.ts +8 -0
- package/dist/DelightfulFlow/components/FlowPopup/PopupNode/index.js +254 -0
- package/dist/DelightfulFlow/components/FlowPopup/PopupNode/index.module.less +41 -0
- package/dist/DelightfulFlow/components/FlowPopup/PopupNode/usePopupAction.d.ts +7 -0
- package/dist/DelightfulFlow/components/FlowPopup/PopupNode/usePopupAction.js +107 -0
- package/dist/DelightfulFlow/components/FlowPopup/context/FlowPopupContext/Context.d.ts +9 -0
- package/dist/DelightfulFlow/components/FlowPopup/context/FlowPopupContext/Context.js +7 -0
- package/dist/DelightfulFlow/components/FlowPopup/context/FlowPopupContext/Provider.d.ts +2 -0
- package/dist/DelightfulFlow/components/FlowPopup/context/FlowPopupContext/Provider.js +24 -0
- package/dist/DelightfulFlow/components/FlowPopup/context/FlowPopupContext/useFlowPopup.d.ts +1 -0
- package/dist/DelightfulFlow/components/FlowPopup/context/FlowPopupContext/useFlowPopup.js +5 -0
- package/dist/DelightfulFlow/components/FlowPopup/hooks/useFlowPopup.d.ts +11 -0
- package/dist/DelightfulFlow/components/FlowPopup/hooks/useFlowPopup.js +92 -0
- package/dist/DelightfulFlow/components/FlowPopup/index.d.ts +10 -0
- package/dist/DelightfulFlow/components/FlowPopup/index.js +85 -0
- package/dist/DelightfulFlow/components/FlowPopup/index.module.less +65 -0
- package/dist/DelightfulFlow/components/HelperLines/HelperLines.d.ts +15 -0
- package/dist/DelightfulFlow/components/HelperLines/HelperLines.js +56 -0
- package/dist/DelightfulFlow/components/HelperLines/index.d.ts +3 -0
- package/dist/DelightfulFlow/components/HelperLines/index.js +3 -0
- package/dist/DelightfulFlow/components/HelperLines/types.d.ts +26 -0
- package/dist/DelightfulFlow/components/HelperLines/types.js +1 -0
- package/dist/DelightfulFlow/components/common/hooks/useViewport.d.ts +3 -0
- package/dist/DelightfulFlow/components/common/hooks/useViewport.js +49 -0
- package/dist/DelightfulFlow/constants.d.ts +41 -0
- package/dist/DelightfulFlow/constants.js +78 -0
- package/dist/DelightfulFlow/context/DelightfulFlowContext/Context.d.ts +4 -0
- package/dist/DelightfulFlow/context/DelightfulFlowContext/Context.js +2 -0
- package/dist/DelightfulFlow/context/DelightfulFlowContext/Provider.d.ts +2 -0
- package/dist/DelightfulFlow/context/DelightfulFlowContext/Provider.js +28 -0
- package/dist/DelightfulFlow/context/DelightfulFlowContext/useDelightfulFlow.d.ts +5 -0
- package/dist/DelightfulFlow/context/DelightfulFlowContext/useDelightfulFlow.js +16 -0
- package/dist/DelightfulFlow/context/ExternalContext/Context.d.ts +39 -0
- package/dist/DelightfulFlow/context/ExternalContext/Context.js +47 -0
- package/dist/DelightfulFlow/context/ExternalContext/Provider.d.ts +2 -0
- package/dist/DelightfulFlow/context/ExternalContext/Provider.js +70 -0
- package/dist/DelightfulFlow/context/ExternalContext/useExternal.d.ts +27 -0
- package/dist/DelightfulFlow/context/ExternalContext/useExternal.js +43 -0
- package/dist/DelightfulFlow/context/ExtraNodeConfigContext/Context.d.ts +10 -0
- package/dist/DelightfulFlow/context/ExtraNodeConfigContext/Context.js +5 -0
- package/dist/DelightfulFlow/context/ExtraNodeConfigContext/Provider.d.ts +2 -0
- package/dist/DelightfulFlow/context/ExtraNodeConfigContext/Provider.js +23 -0
- package/dist/DelightfulFlow/context/ExtraNodeConfigContext/useExtraNodeConfig.d.ts +1 -0
- package/dist/DelightfulFlow/context/ExtraNodeConfigContext/useExtraNodeConfig.js +5 -0
- package/dist/DelightfulFlow/context/FlowContext/Context.d.ts +67 -0
- package/dist/DelightfulFlow/context/FlowContext/Context.js +116 -0
- package/dist/DelightfulFlow/context/FlowContext/Provider.d.ts +4 -0
- package/dist/DelightfulFlow/context/FlowContext/Provider.js +183 -0
- package/dist/DelightfulFlow/context/FlowContext/useFlow.d.ts +39 -0
- package/dist/DelightfulFlow/context/FlowContext/useFlow.js +142 -0
- package/dist/DelightfulFlow/context/MaterialSourceContext/MaterialSourceContext.d.ts +37 -0
- package/dist/DelightfulFlow/context/MaterialSourceContext/MaterialSourceContext.js +31 -0
- package/dist/DelightfulFlow/context/NodeChangeListenerContext/NodeChangeListenerContext.d.ts +10 -0
- package/dist/DelightfulFlow/context/NodeChangeListenerContext/NodeChangeListenerContext.js +27 -0
- package/dist/DelightfulFlow/context/NodeTesingContext/Context.d.ts +21 -0
- package/dist/DelightfulFlow/context/NodeTesingContext/Context.js +6 -0
- package/dist/DelightfulFlow/context/NodeTesingContext/Provider.d.ts +2 -0
- package/dist/DelightfulFlow/context/NodeTesingContext/Provider.js +25 -0
- package/dist/DelightfulFlow/context/NodeTesingContext/useNodeTesting.d.ts +1 -0
- package/dist/DelightfulFlow/context/NodeTesingContext/useNodeTesting.js +5 -0
- package/dist/DelightfulFlow/context/NodesContext/Context.d.ts +13 -0
- package/dist/DelightfulFlow/context/NodesContext/Context.js +23 -0
- package/dist/DelightfulFlow/context/NodesContext/Provider.d.ts +2 -0
- package/dist/DelightfulFlow/context/NodesContext/Provider.js +42 -0
- package/dist/DelightfulFlow/context/NodesContext/useNodes.d.ts +3 -0
- package/dist/DelightfulFlow/context/NodesContext/useNodes.js +11 -0
- package/dist/DelightfulFlow/context/ResizeContext/Context.d.ts +8 -0
- package/dist/DelightfulFlow/context/ResizeContext/Context.js +7 -0
- package/dist/DelightfulFlow/context/ResizeContext/Provider.d.ts +2 -0
- package/dist/DelightfulFlow/context/ResizeContext/Provider.js +16 -0
- package/dist/DelightfulFlow/context/ResizeContext/useResize.d.ts +1 -0
- package/dist/DelightfulFlow/context/ResizeContext/useResize.js +5 -0
- package/dist/DelightfulFlow/edges/ConnectionLine.d.ts +2 -0
- package/dist/DelightfulFlow/edges/ConnectionLine.js +25 -0
- package/dist/DelightfulFlow/edges/CustomEdge.d.ts +11 -0
- package/dist/DelightfulFlow/edges/CustomEdge.js +179 -0
- package/dist/DelightfulFlow/edges/CustomSmoothEdge.d.ts +5 -0
- package/dist/DelightfulFlow/edges/CustomSmoothEdge.js +174 -0
- package/dist/DelightfulFlow/edges/index.d.ts +25 -0
- package/dist/DelightfulFlow/edges/index.js +29 -0
- package/dist/DelightfulFlow/edges/index.module.less +27 -0
- package/dist/DelightfulFlow/examples/BaseFlow/common/Expression/index.d.ts +12 -0
- package/dist/DelightfulFlow/examples/BaseFlow/common/Expression/index.js +58 -0
- package/dist/DelightfulFlow/examples/BaseFlow/common/Expression/index.module.less +21 -0
- package/dist/DelightfulFlow/examples/BaseFlow/common/NodeOutputWrap/NodeOutputWrap.d.ts +6 -0
- package/dist/DelightfulFlow/examples/BaseFlow/common/NodeOutputWrap/NodeOutputWrap.js +28 -0
- package/dist/DelightfulFlow/examples/BaseFlow/common/NodeOutputWrap/NodeOutputWrap.module.less +13 -0
- package/dist/DelightfulFlow/examples/BaseFlow/common/Output/index.d.ts +14 -0
- package/dist/DelightfulFlow/examples/BaseFlow/common/Output/index.js +20 -0
- package/dist/DelightfulFlow/examples/BaseFlow/common/Output/index.module.less +3 -0
- package/dist/DelightfulFlow/examples/BaseFlow/common/hooks/useCurrentNodeUpdate.d.ts +7 -0
- package/dist/DelightfulFlow/examples/BaseFlow/common/hooks/useCurrentNodeUpdate.js +22 -0
- package/dist/DelightfulFlow/examples/BaseFlow/common/hooks/usePrevious.d.ts +7 -0
- package/dist/DelightfulFlow/examples/BaseFlow/common/hooks/usePrevious.js +161 -0
- package/dist/DelightfulFlow/examples/BaseFlow/constants.d.ts +933 -0
- package/dist/DelightfulFlow/examples/BaseFlow/constants.js +964 -0
- package/dist/DelightfulFlow/examples/BaseFlow/hooks/useMaterialSource.d.ts +12 -0
- package/dist/DelightfulFlow/examples/BaseFlow/hooks/useMaterialSource.js +113 -0
- package/dist/DelightfulFlow/examples/BaseFlow/hooks/useNodesTest.d.ts +10 -0
- package/dist/DelightfulFlow/examples/BaseFlow/hooks/useNodesTest.js +3425 -0
- package/dist/DelightfulFlow/examples/BaseFlow/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/index.js +180 -0
- package/dist/DelightfulFlow/examples/BaseFlow/index.module.less +15 -0
- package/dist/DelightfulFlow/examples/BaseFlow/mock/flow.d.ts +21 -0
- package/dist/DelightfulFlow/examples/BaseFlow/mock/flow.js +20 -0
- package/dist/DelightfulFlow/examples/BaseFlow/mock/flowList.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/mock/flowList.js +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/mock/form.d.ts +189 -0
- package/dist/DelightfulFlow/examples/BaseFlow/mock/form.js +189 -0
- package/dist/DelightfulFlow/examples/BaseFlow/mock/toolsets.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/mock/toolsets.js +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/modal.example.d.ts +6 -0
- package/dist/DelightfulFlow/examples/BaseFlow/modal.example.js +75 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Agent/Agent.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Agent/Agent.js +7 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Branch/index.d.ts +3 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Branch/index.js +8 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Branch/v0/components/BranchItem/index.d.ts +21 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Branch/v0/components/BranchItem/index.js +80 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Branch/v0/components/BranchItem/index.module.less +11 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Branch/v0/helpers.d.ts +25 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Branch/v0/helpers.js +17 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Branch/v0/index.d.ts +2 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Branch/v0/index.js +125 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Branch/v0/index.less +10 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Branch/v0/index.module.less +4 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/End/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/End/index.js +81 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/End/index.module.less +20 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/HTTP/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/HTTP/index.js +62 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/HTTP/index.module.less +12 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/index.d.ts +3 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/index.js +8 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMParameters/TagsSelect/index.d.ts +6 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMParameters/TagsSelect/index.js +53 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMParameters/constants.d.ts +74 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMParameters/constants.js +78 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMParameters/hooks/useLLMParameters.d.ts +14 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMParameters/hooks/useLLMParameters.js +64 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMParameters/index.d.ts +15 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMParameters/index.js +285 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMParameters/index.module.less +138 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMSelect/LLMLabel/index.d.ts +16 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMSelect/LLMLabel/index.js +47 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMSelect/LLMLabel/index.module.less +66 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMSelect/index.d.ts +21 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMSelect/index.js +55 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/LLMSelect/index.module.less +26 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/ToolsOptionWrapper/index.d.ts +7 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/ToolsOptionWrapper/index.js +38 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/ToolsOptionWrapper/index.module.less +9 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/ToolsTagRenderer/index.d.ts +4 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/components/ToolsTagRenderer/index.js +35 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/constants.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/constants.js +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/context/Context.d.ts +8 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/context/Context.js +5 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/context/Provider.d.ts +4 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/context/Provider.js +17 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/context/useTools.d.ts +3 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/context/useTools.js +6 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/hooks/useLLM.d.ts +145 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/hooks/useLLM.js +102 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/index.js +117 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LLM/v0/index.module.less +57 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Loop/index.d.ts +3 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Loop/index.js +8 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Loop/v0/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Loop/v0/index.js +77 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Loop/v0/index.module.css +13 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Loop/v0/index.module.less +30 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LoopEnd/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/LoopEnd/index.js +5 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Reply/constants.d.ts +7 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Reply/constants.js +8 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Reply/hooks/useReply.d.ts +60 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Reply/hooks/useReply.js +63 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Reply/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Reply/index.js +132 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Reply/index.module.less +47 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SearchUsers/SearchUsers.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SearchUsers/SearchUsers.js +150 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SearchUsers/SearchUsers.module.less +115 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SearchUsers/constants.d.ts +21 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SearchUsers/constants.js +43 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SearchUsers/helpers.d.ts +24 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SearchUsers/helpers.js +33 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SearchUsers/hooks/useFilters.d.ts +10 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SearchUsers/hooks/useFilters.js +45 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SearchUsers/hooks/useRenderConfig.d.ts +31 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SearchUsers/hooks/useRenderConfig.js +51 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Start/index.d.ts +3 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Start/index.js +8 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Start/v0/components/Common/index.d.ts +19 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Start/v0/components/Common/index.js +58 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Start/v0/components/Common/index.module.less +56 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Start/v0/constants.d.ts +7 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Start/v0/constants.js +8 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Start/v0/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Start/v0/index.js +259 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Start/v0/index.module.less +66 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Start/v0/mock/startData.d.ts +134 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Start/v0/mock/startData.js +153 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SubFlow/index.d.ts +4 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SubFlow/index.js +12 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SubFlow/v0/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SubFlow/v0/index.js +72 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SubFlow/v0/index.module.less +45 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SubFlow/v1/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SubFlow/v1/index.js +134 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SubFlow/v1/index.module.less +45 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SubFlow/v1/mock.d.ts +25 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/SubFlow/v1/mock.js +1660 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Tools/index.d.ts +3 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Tools/index.js +8 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Tools/v0/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Tools/v0/index.js +101 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/Tools/v0/index.module.less +104 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/VariableSave/index.d.ts +3 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/VariableSave/index.js +8 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/VariableSave/v0/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/VariableSave/v0/index.js +66 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/VariableSave/v0/index.module.less +12 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/index.d.ts +24 -0
- package/dist/DelightfulFlow/examples/BaseFlow/nodes/index.js +13 -0
- package/dist/DelightfulFlow/examples/BaseFlow/toolbar/Debugger/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/toolbar/Debugger/index.js +19 -0
- package/dist/DelightfulFlow/examples/BaseFlow/toolbar/index.d.ts +5 -0
- package/dist/DelightfulFlow/examples/BaseFlow/toolbar/index.js +7 -0
- package/dist/DelightfulFlow/examples/BaseFlow/utils/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/utils/index.js +77 -0
- package/dist/DelightfulFlow/examples/BaseFlow/utils/version.d.ts +1 -0
- package/dist/DelightfulFlow/examples/BaseFlow/utils/version.js +202 -0
- package/dist/DelightfulFlow/examples/SecondFlow/constants.d.ts +23 -0
- package/dist/DelightfulFlow/examples/SecondFlow/constants.js +39 -0
- package/dist/DelightfulFlow/examples/SecondFlow/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/SecondFlow/index.js +25 -0
- package/dist/DelightfulFlow/examples/SecondFlow/nodes/Start/Start.d.ts +1 -0
- package/dist/DelightfulFlow/examples/SecondFlow/nodes/Start/Start.js +7 -0
- package/dist/DelightfulFlow/examples/SecondFlow/utils/index.d.ts +1 -0
- package/dist/DelightfulFlow/examples/SecondFlow/utils/index.js +10 -0
- package/dist/DelightfulFlow/examples/index.d.ts +4 -0
- package/dist/DelightfulFlow/examples/index.js +4 -0
- package/dist/DelightfulFlow/hooks/useBaseFlow.d.ts +56 -0
- package/dist/DelightfulFlow/hooks/useBaseFlow.js +645 -0
- package/dist/DelightfulFlow/hooks/useEdgeSelected.d.ts +3 -0
- package/dist/DelightfulFlow/hooks/useEdgeSelected.js +28 -0
- package/dist/DelightfulFlow/hooks/useFlowEventEmitter.d.ts +23 -0
- package/dist/DelightfulFlow/hooks/useFlowEventEmitter.js +72 -0
- package/dist/DelightfulFlow/hooks/useHelperLines.d.ts +36 -0
- package/dist/DelightfulFlow/hooks/useHelperLines.js +194 -0
- package/dist/DelightfulFlow/hooks/useMacTouch.d.ts +4 -0
- package/dist/DelightfulFlow/hooks/useMacTouch.js +16 -0
- package/dist/DelightfulFlow/hooks/useNodeBatchProcessing.d.ts +17 -0
- package/dist/DelightfulFlow/hooks/useNodeBatchProcessing.js +170 -0
- package/dist/DelightfulFlow/hooks/useNodeSelected.d.ts +3 -0
- package/dist/DelightfulFlow/hooks/useNodeSelected.js +28 -0
- package/dist/DelightfulFlow/hooks/useResize.d.ts +6 -0
- package/dist/DelightfulFlow/hooks/useResize.js +41 -0
- package/dist/DelightfulFlow/hooks/useUndoRedo.d.ts +15 -0
- package/dist/DelightfulFlow/hooks/useUndoRedo.js +104 -0
- package/dist/DelightfulFlow/index.css +13 -0
- package/dist/DelightfulFlow/index.d.ts +73 -0
- package/dist/DelightfulFlow/index.js +227 -0
- package/dist/DelightfulFlow/index.module.less +74 -0
- package/dist/DelightfulFlow/modal/DelightfulFlowModal.d.ts +3 -0
- package/dist/DelightfulFlow/modal/DelightfulFlowModal.js +43 -0
- package/dist/DelightfulFlow/modal/index.module.less +27 -0
- package/dist/DelightfulFlow/nodes/BaseNode/components/NodeChildren.d.ts +29 -0
- package/dist/DelightfulFlow/nodes/BaseNode/components/NodeChildren.js +68 -0
- package/dist/DelightfulFlow/nodes/BaseNode/components/NodeContent.d.ts +7 -0
- package/dist/DelightfulFlow/nodes/BaseNode/components/NodeContent.js +38 -0
- package/dist/DelightfulFlow/nodes/BaseNode/components/NodeHandles.d.ts +13 -0
- package/dist/DelightfulFlow/nodes/BaseNode/components/NodeHandles.js +48 -0
- package/dist/DelightfulFlow/nodes/BaseNode/components/NodeHeader.d.ts +22 -0
- package/dist/DelightfulFlow/nodes/BaseNode/components/NodeHeader.js +93 -0
- package/dist/DelightfulFlow/nodes/BaseNode/components/NodeToolbar.d.ts +12 -0
- package/dist/DelightfulFlow/nodes/BaseNode/components/NodeToolbar.js +18 -0
- package/dist/DelightfulFlow/nodes/BaseNode/components/NodeWrapper.d.ts +16 -0
- package/dist/DelightfulFlow/nodes/BaseNode/components/NodeWrapper.js +77 -0
- package/dist/DelightfulFlow/nodes/BaseNode/index.d.ts +5 -0
- package/dist/DelightfulFlow/nodes/BaseNode/index.js +207 -0
- package/dist/DelightfulFlow/nodes/BaseNode/index.module.less +251 -0
- package/dist/DelightfulFlow/nodes/BranchNode/constants.d.ts +8 -0
- package/dist/DelightfulFlow/nodes/BranchNode/constants.js +8 -0
- package/dist/DelightfulFlow/nodes/BranchNode/index.d.ts +3 -0
- package/dist/DelightfulFlow/nodes/BranchNode/index.js +158 -0
- package/dist/DelightfulFlow/nodes/BranchNode/index.module.less +149 -0
- package/dist/DelightfulFlow/nodes/GroupNode/index.d.ts +3 -0
- package/dist/DelightfulFlow/nodes/GroupNode/index.js +94 -0
- package/dist/DelightfulFlow/nodes/GroupNode/index.less +30 -0
- package/dist/DelightfulFlow/nodes/common/Handle/Source/index.d.ts +13 -0
- package/dist/DelightfulFlow/nodes/common/Handle/Source/index.js +135 -0
- package/dist/DelightfulFlow/nodes/common/Handle/Source/index.module.less +59 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/ArrayResult/index.d.ts +9 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/ArrayResult/index.js +54 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/ArrayResult/index.less +7 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/OnceResult/components/FullscreenModal.d.ts +12 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/OnceResult/components/FullscreenModal.js +252 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/OnceResult/components/MiniMap.d.ts +11 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/OnceResult/components/MiniMap.js +253 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/OnceResult/index.d.ts +10 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/OnceResult/index.js +251 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/OnceResult/utils.d.ts +18 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/OnceResult/utils.js +37 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/helpers.d.ts +6 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/helpers.js +44 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/index.d.ts +3 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/index.js +158 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/index.module.less +580 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/mock.d.ts +74 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/mock.js +82 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/useTesting.d.ts +27 -0
- package/dist/DelightfulFlow/nodes/common/NodeTestingHeader/useTesting.js +115 -0
- package/dist/DelightfulFlow/nodes/common/components/DebuggerComp/index.d.ts +7 -0
- package/dist/DelightfulFlow/nodes/common/components/DebuggerComp/index.js +54 -0
- package/dist/DelightfulFlow/nodes/common/components/DebuggerComp/index.less +5 -0
- package/dist/DelightfulFlow/nodes/common/components/TextEditable/hooks/useTextEditable.d.ts +18 -0
- package/dist/DelightfulFlow/nodes/common/components/TextEditable/hooks/useTextEditable.js +63 -0
- package/dist/DelightfulFlow/nodes/common/components/TextEditable/index.d.ts +11 -0
- package/dist/DelightfulFlow/nodes/common/components/TextEditable/index.js +68 -0
- package/dist/DelightfulFlow/nodes/common/components/TextEditable/index.module.less +29 -0
- package/dist/DelightfulFlow/nodes/common/context/CurrentNode/Context.d.ts +6 -0
- package/dist/DelightfulFlow/nodes/common/context/CurrentNode/Context.js +4 -0
- package/dist/DelightfulFlow/nodes/common/context/CurrentNode/Provider.d.ts +2 -0
- package/dist/DelightfulFlow/nodes/common/context/CurrentNode/Provider.js +16 -0
- package/dist/DelightfulFlow/nodes/common/context/CurrentNode/useCurrentNode.d.ts +1 -0
- package/dist/DelightfulFlow/nodes/common/context/CurrentNode/useCurrentNode.js +5 -0
- package/dist/DelightfulFlow/nodes/common/context/Popup/Context.d.ts +5 -0
- package/dist/DelightfulFlow/nodes/common/context/Popup/Context.js +4 -0
- package/dist/DelightfulFlow/nodes/common/context/Popup/Provider.d.ts +2 -0
- package/dist/DelightfulFlow/nodes/common/context/Popup/Provider.js +16 -0
- package/dist/DelightfulFlow/nodes/common/context/Popup/usePopup.d.ts +1 -0
- package/dist/DelightfulFlow/nodes/common/context/Popup/usePopup.js +5 -0
- package/dist/DelightfulFlow/nodes/common/hooks/useAvatar.d.ts +11 -0
- package/dist/DelightfulFlow/nodes/common/hooks/useAvatar.js +34 -0
- package/dist/DelightfulFlow/nodes/common/hooks/useBaseStyles.d.ts +7 -0
- package/dist/DelightfulFlow/nodes/common/hooks/useBaseStyles.js +14 -0
- package/dist/DelightfulFlow/nodes/common/hooks/useDebug.d.ts +9 -0
- package/dist/DelightfulFlow/nodes/common/hooks/useDebug.js +99 -0
- package/dist/DelightfulFlow/nodes/common/hooks/useDrag.d.ts +9 -0
- package/dist/DelightfulFlow/nodes/common/hooks/useDrag.js +82 -0
- package/dist/DelightfulFlow/nodes/common/hooks/useEditName.d.ts +10 -0
- package/dist/DelightfulFlow/nodes/common/hooks/useEditName.js +39 -0
- package/dist/DelightfulFlow/nodes/common/hooks/useNodePositionAndSize.d.ts +10 -0
- package/dist/DelightfulFlow/nodes/common/hooks/useNodePositionAndSize.js +15 -0
- package/dist/DelightfulFlow/nodes/common/hooks/usePopup.d.ts +18 -0
- package/dist/DelightfulFlow/nodes/common/hooks/usePopup.js +53 -0
- package/dist/DelightfulFlow/nodes/common/toolbar/index.d.ts +6 -0
- package/dist/DelightfulFlow/nodes/common/toolbar/index.js +127 -0
- package/dist/DelightfulFlow/nodes/common/toolbar/index.module.less +55 -0
- package/dist/DelightfulFlow/nodes/common/toolbar/useToolbar.d.ts +5 -0
- package/dist/DelightfulFlow/nodes/common/toolbar/useToolbar.js +165 -0
- package/dist/DelightfulFlow/nodes/index.d.ts +14 -0
- package/dist/DelightfulFlow/nodes/index.js +22 -0
- package/dist/DelightfulFlow/register/node/index.d.ts +137 -0
- package/dist/DelightfulFlow/register/node/index.js +232 -0
- package/dist/DelightfulFlow/store/index.d.ts +9 -0
- package/dist/DelightfulFlow/store/index.js +44 -0
- package/dist/DelightfulFlow/store/initialStates.d.ts +5 -0
- package/dist/DelightfulFlow/store/initialStates.js +8 -0
- package/dist/DelightfulFlow/store/types.d.ts +7 -0
- package/dist/DelightfulFlow/store/types.js +1 -0
- package/dist/DelightfulFlow/types/flow.d.ts +67 -0
- package/dist/DelightfulFlow/types/flow.js +7 -0
- package/dist/DelightfulFlow/utils/index.d.ts +94 -0
- package/dist/DelightfulFlow/utils/index.js +523 -0
- package/dist/DelightfulFlow/utils/reactflowUtils.d.ts +68 -0
- package/dist/DelightfulFlow/utils/reactflowUtils.js +607 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/components/IconImport/index.d.ts +14 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/components/IconImport/index.js +187 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/components/TopRow/index.d.ts +6 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/components/TopRow/index.js +277 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/components/TopRow/style.d.ts +2 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/components/TopRow/style.js +6 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/genson-js/index.d.ts +3 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/genson-js/index.js +4 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/genson-js/schema-builder.d.ts +8 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/genson-js/schema-builder.js +341 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/genson-js/schema-comparator.d.ts +2 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/genson-js/schema-comparator.js +57 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/genson-js/types.d.ts +14 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/genson-js/types.js +1 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/index.d.ts +25 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/index.js +675 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/index.less +41 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/style.d.ts +1 -0
- package/dist/DelightfulJsonSchemaEditor/components/editor/style.js +5 -0
- package/dist/DelightfulJsonSchemaEditor/components/field-input/index.d.ts +9 -0
- package/dist/DelightfulJsonSchemaEditor/components/field-input/index.js +50 -0
- package/dist/DelightfulJsonSchemaEditor/components/hooks/useInput.d.ts +3 -0
- package/dist/DelightfulJsonSchemaEditor/components/hooks/useInput.js +25 -0
- package/dist/DelightfulJsonSchemaEditor/components/mock-select/index.d.ts +9 -0
- package/dist/DelightfulJsonSchemaEditor/components/mock-select/index.js +64 -0
- package/dist/DelightfulJsonSchemaEditor/components/quiet-editor/index.d.ts +15 -0
- package/dist/DelightfulJsonSchemaEditor/components/quiet-editor/index.js +58 -0
- package/dist/DelightfulJsonSchemaEditor/components/quiet-editor/themes.d.ts +21 -0
- package/dist/DelightfulJsonSchemaEditor/components/quiet-editor/themes.js +76 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/drop-plus/index.d.ts +7 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/drop-plus/index.js +86 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/hooks/useCols.d.ts +6 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/hooks/useCols.js +28 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/hooks/useCurrentFieldSource.d.ts +6 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/hooks/useCurrentFieldSource.js +44 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/hooks/useCustomConfig.d.ts +35 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/hooks/useCustomConfig.js +68 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/hooks/useEncryption.d.ts +8 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/hooks/useEncryption.js +34 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/hooks/usePropertiesLength.d.ts +7 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/hooks/usePropertiesLength.js +18 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/hooks/useSelectOptions.d.ts +3 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/hooks/useSelectOptions.js +17 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/hooks/useSvgLine.d.ts +22 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/hooks/useSvgLine.js +42 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/index.d.ts +15 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/index.js +39 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/schema-item/constants.d.ts +20 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/schema-item/constants.js +42 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/schema-item/index.d.ts +18 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/schema-item/index.js +566 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/schema-item/index.style.d.ts +9 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/schema-item/index.style.js +14 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/schema-object/index.d.ts +14 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/schema-object/index.js +93 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/schema-object/index.style.d.ts +1 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-json/schema-object/index.style.js +5 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-other/index.d.ts +6 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-other/index.js +61 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-other/schema-array/index.d.ts +7 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-other/schema-array/index.js +86 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-other/schema-boolean/index.d.ts +7 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-other/schema-boolean/index.js +59 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-other/schema-number/index.d.ts +7 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-other/schema-number/index.js +267 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-other/schema-string/index.d.ts +7 -0
- package/dist/DelightfulJsonSchemaEditor/components/schema-other/schema-string/index.js +236 -0
- package/dist/DelightfulJsonSchemaEditor/components/svgLine/index.d.ts +10 -0
- package/dist/DelightfulJsonSchemaEditor/components/svgLine/index.js +74 -0
- package/dist/DelightfulJsonSchemaEditor/constants.d.ts +84 -0
- package/dist/DelightfulJsonSchemaEditor/constants.js +470 -0
- package/dist/DelightfulJsonSchemaEditor/context/ExportFieldsContext/Provider.d.ts +12 -0
- package/dist/DelightfulJsonSchemaEditor/context/ExportFieldsContext/Provider.js +54 -0
- package/dist/DelightfulJsonSchemaEditor/context/ExportFieldsContext/useExportFields.d.ts +6 -0
- package/dist/DelightfulJsonSchemaEditor/context/ExportFieldsContext/useExportFields.js +5 -0
- package/dist/DelightfulJsonSchemaEditor/context/GlobalContext/Context.d.ts +3 -0
- package/dist/DelightfulJsonSchemaEditor/context/GlobalContext/Context.js +12 -0
- package/dist/DelightfulJsonSchemaEditor/context/GlobalContext/Provider.d.ts +24 -0
- package/dist/DelightfulJsonSchemaEditor/context/GlobalContext/Provider.js +46 -0
- package/dist/DelightfulJsonSchemaEditor/context/GlobalContext/useGlobal.d.ts +1 -0
- package/dist/DelightfulJsonSchemaEditor/context/GlobalContext/useGlobal.js +5 -0
- package/dist/DelightfulJsonSchemaEditor/global.style.d.ts +1 -0
- package/dist/DelightfulJsonSchemaEditor/global.style.js +2 -0
- package/dist/DelightfulJsonSchemaEditor/hooks/useExpressionSource.d.ts +13 -0
- package/dist/DelightfulJsonSchemaEditor/hooks/useExpressionSource.js +72 -0
- package/dist/DelightfulJsonSchemaEditor/index.d.ts +97 -0
- package/dist/DelightfulJsonSchemaEditor/index.js +223 -0
- package/dist/DelightfulJsonSchemaEditor/index.less +68 -0
- package/dist/DelightfulJsonSchemaEditor/mock/dataSource.d.ts +10 -0
- package/dist/DelightfulJsonSchemaEditor/mock/dataSource.js +18 -0
- package/dist/DelightfulJsonSchemaEditor/types/Common.d.ts +7 -0
- package/dist/DelightfulJsonSchemaEditor/types/Common.js +2 -0
- package/dist/DelightfulJsonSchemaEditor/types/Open.d.ts +3 -0
- package/dist/DelightfulJsonSchemaEditor/types/Open.js +0 -0
- package/dist/DelightfulJsonSchemaEditor/types/Schema.d.ts +59 -0
- package/dist/DelightfulJsonSchemaEditor/types/Schema.js +17 -0
- package/dist/DelightfulJsonSchemaEditor/types/SchemaDescription.d.ts +58 -0
- package/dist/DelightfulJsonSchemaEditor/types/SchemaDescription.js +326 -0
- package/dist/DelightfulJsonSchemaEditor/utils/SchemaUtils.d.ts +31 -0
- package/dist/DelightfulJsonSchemaEditor/utils/SchemaUtils.js +262 -0
- package/dist/DelightfulJsonSchemaEditor/utils/helpers.d.ts +18 -0
- package/dist/DelightfulJsonSchemaEditor/utils/helpers.js +76 -0
- package/dist/common/BaseUI/Avatar/index.d.ts +13 -0
- package/dist/common/BaseUI/Avatar/index.js +87 -0
- package/dist/common/BaseUI/Avatar/style.module.less +32 -0
- package/dist/common/BaseUI/DatePicker/index.d.ts +7 -0
- package/dist/common/BaseUI/DatePicker/index.js +44 -0
- package/dist/common/BaseUI/DatePicker/style.module.less +19 -0
- package/dist/common/BaseUI/DelightfulConditionWrap/index.d.ts +22 -0
- package/dist/common/BaseUI/DelightfulConditionWrap/index.js +37 -0
- package/dist/common/BaseUI/DelightfulExpressionWrap/index.d.ts +28 -0
- package/dist/common/BaseUI/DelightfulExpressionWrap/index.js +49 -0
- package/dist/common/BaseUI/DelightfulJsonSchemaEditorWrap/index.d.ts +17 -0
- package/dist/common/BaseUI/DelightfulJsonSchemaEditorWrap/index.js +43 -0
- package/dist/common/BaseUI/DropdownCard/index.d.ts +12 -0
- package/dist/common/BaseUI/DropdownCard/index.js +72 -0
- package/dist/common/BaseUI/DropdownCard/index.module.less +52 -0
- package/dist/common/BaseUI/DropdownRenderer/Base/index.d.ts +21 -0
- package/dist/common/BaseUI/DropdownRenderer/Base/index.js +94 -0
- package/dist/common/BaseUI/DropdownRenderer/Base/style.d.ts +1 -0
- package/dist/common/BaseUI/DropdownRenderer/Base/style.js +5 -0
- package/dist/common/BaseUI/DropdownRenderer/Base/useBaseDropdownRenderer.d.ts +13 -0
- package/dist/common/BaseUI/DropdownRenderer/Base/useBaseDropdownRenderer.js +38 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/components/FunctionTips/index.d.ts +8 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/components/FunctionTips/index.js +109 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/components/FunctionTips/index.module.less +6 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/components/Transformer/helpers.d.ts +7 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/components/Transformer/helpers.js +235 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/components/Transformer/index.d.ts +43 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/components/Transformer/index.js +252 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/components/Transformer/index.less +15 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/components/Transformer/style.d.ts +1 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/components/Transformer/style.js +5 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/constants.d.ts +1 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/constants.js +1 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/helpers.d.ts +6 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/helpers.js +81 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/hooks/useDepartmentModal.d.ts +11 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/hooks/useDepartmentModal.js +36 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/hooks/useDropdownRender.d.ts +16 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/hooks/useDropdownRender.js +75 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/hooks/useRender.d.ts +13 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/hooks/useRender.js +90 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/index.d.ts +42 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/index.js +307 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/style.d.ts +2 -0
- package/dist/common/BaseUI/DropdownRenderer/Reference/style.js +6 -0
- package/dist/common/BaseUI/DropdownRenderer/SearchInput/index.d.ts +11 -0
- package/dist/common/BaseUI/DropdownRenderer/SearchInput/index.js +34 -0
- package/dist/common/BaseUI/DropdownRenderer/SearchInput/index.module.less +21 -0
- package/dist/common/BaseUI/ErrorComponent/ErrorComponent.d.ts +2 -0
- package/dist/common/BaseUI/ErrorComponent/ErrorComponent.js +20 -0
- package/dist/common/BaseUI/ErrorComponent/ErrorComponent.module.less +12 -0
- package/dist/common/BaseUI/FormItem/index.d.ts +5 -0
- package/dist/common/BaseUI/FormItem/index.js +8 -0
- package/dist/common/BaseUI/Input/index.d.ts +2 -0
- package/dist/common/BaseUI/Input/index.js +44 -0
- package/dist/common/BaseUI/Input/style.d.ts +1 -0
- package/dist/common/BaseUI/Input/style.js +2 -0
- package/dist/common/BaseUI/JSONSchemaRenderer/BaseItem/index.d.ts +9 -0
- package/dist/common/BaseUI/JSONSchemaRenderer/BaseItem/index.js +60 -0
- package/dist/common/BaseUI/JSONSchemaRenderer/GroupItem/index.d.ts +9 -0
- package/dist/common/BaseUI/JSONSchemaRenderer/GroupItem/index.js +74 -0
- package/dist/common/BaseUI/JSONSchemaRenderer/hooks/useExtraClassname.d.ts +5 -0
- package/dist/common/BaseUI/JSONSchemaRenderer/hooks/useExtraClassname.js +25 -0
- package/dist/common/BaseUI/JSONSchemaRenderer/index.d.ts +6 -0
- package/dist/common/BaseUI/JSONSchemaRenderer/index.js +68 -0
- package/dist/common/BaseUI/JSONSchemaRenderer/style/index.module.less +121 -0
- package/dist/common/BaseUI/Select/constants.d.ts +29 -0
- package/dist/common/BaseUI/Select/constants.js +52 -0
- package/dist/common/BaseUI/Select/index.d.ts +10 -0
- package/dist/common/BaseUI/Select/index.js +182 -0
- package/dist/common/BaseUI/Select/index.module.less +85 -0
- package/dist/common/BaseUI/Select/style.d.ts +2 -0
- package/dist/common/BaseUI/Select/style.js +6 -0
- package/dist/common/BaseUI/Slider/index.d.ts +2 -0
- package/dist/common/BaseUI/Slider/index.js +18 -0
- package/dist/common/BaseUI/Slider/index.module.less +15 -0
- package/dist/common/BaseUI/TSIcon/index.d.ts +3 -0
- package/dist/common/BaseUI/TSIcon/index.js +8 -0
- package/dist/common/Theme/color.d.ts +38 -0
- package/dist/common/Theme/color.js +64 -0
- package/dist/common/Theme/font.d.ts +35 -0
- package/dist/common/Theme/font.js +34 -0
- package/dist/common/Theme/gap.d.ts +6 -0
- package/dist/common/Theme/gap.js +8 -0
- package/dist/common/Theme/index.d.ts +84 -0
- package/dist/common/Theme/index.js +10 -0
- package/dist/common/Theme/radius.d.ts +6 -0
- package/dist/common/Theme/radius.js +8 -0
- package/dist/common/assets/agent-avatar.jpg +4 -0
- package/dist/common/assets/brand-openai.png +4 -0
- package/dist/common/assets/delightfulLogo.svg +35 -0
- package/dist/common/const/color.d.ts +787 -0
- package/dist/common/const/color.js +810 -0
- package/dist/common/const/locale.d.ts +7 -0
- package/dist/common/const/locale.js +7 -0
- package/dist/common/const/style.d.ts +2 -0
- package/dist/common/const/style.js +2 -0
- package/dist/common/constants.d.ts +14 -0
- package/dist/common/constants.js +11 -0
- package/dist/common/context/NodeMap/Context.d.ts +7 -0
- package/dist/common/context/NodeMap/Context.js +4 -0
- package/dist/common/context/NodeMap/Provider.d.ts +2 -0
- package/dist/common/context/NodeMap/Provider.js +16 -0
- package/dist/common/context/NodeMap/useResize.d.ts +1 -0
- package/dist/common/context/NodeMap/useResize.js +5 -0
- package/dist/common/declaration/declaration.d.ts +4 -0
- package/dist/common/declaration/image.d.ts +8 -0
- package/dist/common/declaration/style.d.ts +8 -0
- package/dist/common/locales/create.d.ts +10 -0
- package/dist/common/locales/create.js +54 -0
- package/dist/common/locales/en_US/delightfulFlow.json +243 -0
- package/dist/common/provider/AppearanceProvider/context.d.ts +21 -0
- package/dist/common/provider/AppearanceProvider/context.js +20 -0
- package/dist/common/provider/AppearanceProvider/hooks.d.ts +6 -0
- package/dist/common/provider/AppearanceProvider/hooks.js +27 -0
- package/dist/common/provider/AppearanceProvider/index.d.ts +6 -0
- package/dist/common/provider/AppearanceProvider/index.js +15 -0
- package/dist/common/provider/BaseColorProvider/context.d.ts +6 -0
- package/dist/common/provider/BaseColorProvider/context.js +6 -0
- package/dist/common/provider/BaseColorProvider/hooks.d.ts +8 -0
- package/dist/common/provider/BaseColorProvider/hooks.js +10 -0
- package/dist/common/provider/BaseColorProvider/index.d.ts +5 -0
- package/dist/common/provider/BaseColorProvider/index.js +24 -0
- package/dist/common/provider/LocaleProvider/Provider.d.ts +7 -0
- package/dist/common/provider/LocaleProvider/Provider.js +85 -0
- package/dist/common/provider/LocaleProvider/hooks.d.ts +14 -0
- package/dist/common/provider/LocaleProvider/hooks.js +50 -0
- package/dist/common/provider/LocaleProvider/index.d.ts +1 -0
- package/dist/common/provider/LocaleProvider/index.js +1 -0
- package/dist/common/provider/LocaleProvider/store.d.ts +58 -0
- package/dist/common/provider/LocaleProvider/store.js +65 -0
- package/dist/common/provider/LocaleProvider/utils.d.ts +15 -0
- package/dist/common/provider/LocaleProvider/utils.js +19 -0
- package/dist/common/provider/ThemeProvider/hooks.d.ts +7 -0
- package/dist/common/provider/ThemeProvider/hooks.js +24 -0
- package/dist/common/provider/ThemeProvider/index.d.ts +3 -0
- package/dist/common/provider/ThemeProvider/index.js +32 -0
- package/dist/common/provider/ThemeProvider/tokenMap.d.ts +24 -0
- package/dist/common/provider/ThemeProvider/tokenMap.js +104 -0
- package/dist/common/provider/ThemeProvider/utils.d.ts +6 -0
- package/dist/common/provider/ThemeProvider/utils.js +23 -0
- package/dist/common/service/Context.d.ts +16 -0
- package/dist/common/service/Context.js +12 -0
- package/dist/common/service/Provider.d.ts +6 -0
- package/dist/common/service/Provider.js +19 -0
- package/dist/common/service/hooks/useJSONSchemaDesigner.d.ts +18 -0
- package/dist/common/service/hooks/useJSONSchemaDesigner.js +45 -0
- package/dist/common/service/index.d.ts +11 -0
- package/dist/common/service/index.js +20 -0
- package/dist/common/types/theme.d.ts +19 -0
- package/dist/common/utils/index.d.ts +18 -0
- package/dist/common/utils/index.js +48 -0
- package/dist/common/utils/locale.d.ts +3 -0
- package/dist/common/utils/locale.js +58 -0
- package/dist/common/utils/palettes.d.ts +182 -0
- package/dist/common/utils/palettes.js +113 -0
- package/dist/common/utils/snowflake.d.ts +11 -0
- package/dist/common/utils/snowflake.js +48 -0
- package/dist/common/utils/storage.d.ts +1 -0
- package/dist/common/utils/storage.js +5 -0
- package/dist/common/utils/template.d.ts +13 -0
- package/dist/common/utils/template.js +95 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/package.json +107 -0
- package/src/index.ts +10 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Copyright 2026 BE DELIGHTFUL
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
8
|
+
|
|
9
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# Delightful Flow Foundation Package
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
<img src="https://img.shields.io/badge/Status-Developing-blue" alt="Status: In Development">
|
|
5
|
+
<img src="https://img.shields.io/badge/Framework-React-61dafb" alt="Framework: React">
|
|
6
|
+
<img src="https://img.shields.io/badge/License-MIT-green" alt="License: MIT">
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
## 📖 Project Overview
|
|
10
|
+
|
|
11
|
+
Delightful Flow Foundation Package is an out-of-the-box flow library extracted from Delightful Flow. It is built on ReactFlow, providing powerful flowchart design and management capabilities. The project bundles the core flow package, JSON Schema editor, expression components, and shared UI components to accelerate visual flow application development.
|
|
12
|
+
|
|
13
|
+
## ✨ Core Features
|
|
14
|
+
|
|
15
|
+
- 🔄 Flowchart design and management based on ReactFlow
|
|
16
|
+
- 🎯 High-performance node and edge handling (batching and debounce optimizations)
|
|
17
|
+
- 🧩 Extensible node type system
|
|
18
|
+
- 🔍 JSON Schema form editing capabilities
|
|
19
|
+
- 🌐 Multilingual support
|
|
20
|
+
- 🎨 Polished and customizable UI components
|
|
21
|
+
|
|
22
|
+
## 📦 Installation
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# Install dependency
|
|
26
|
+
npm install @delightful/delightful-flow
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## 📚 Usage Guide
|
|
30
|
+
|
|
31
|
+
There is currently no single quick-start guide. To use the components, refer to these resources:
|
|
32
|
+
|
|
33
|
+
- Check the `index.md` file in each component directory for detailed instructions
|
|
34
|
+
- Review the sample projects in the `examples` directory for real-world scenarios
|
|
35
|
+
- Each component includes example code for development reference
|
|
36
|
+
|
|
37
|
+
For example, to learn how to use `DelightfulFlow`:
|
|
38
|
+
1. Open `src/DelightfulFlow/index.md`
|
|
39
|
+
2. Review the sample projects in `examples/DelightfulFlow`
|
|
40
|
+
|
|
41
|
+
## 📚 API Docs
|
|
42
|
+
|
|
43
|
+
### Main Components
|
|
44
|
+
|
|
45
|
+
- `DelightfulFlow`: Flow designer core component
|
|
46
|
+
- `DelightfulJsonSchemaEditor`: Schema-driven form generator
|
|
47
|
+
- `DelightfulExpressionWidget`: Expression builder and editor
|
|
48
|
+
- `DelightfulConditionEdit`: Condition editing component
|
|
49
|
+
|
|
50
|
+
### Core Hooks
|
|
51
|
+
|
|
52
|
+
- `useBaseFlow`: Core flow logic hook that manages nodes and edges
|
|
53
|
+
- `useNodeBatchProcessing`: Batch processing hook for high-volume node rendering performance
|
|
54
|
+
|
|
55
|
+
### Detailed Docs and Examples
|
|
56
|
+
|
|
57
|
+
- Each component ships with detailed usage docs in its `index.md`
|
|
58
|
+
- `DelightfulFlow` includes rich real-world examples in the `examples` directory
|
|
59
|
+
- Samples demonstrate the flow designer across scenarios like node customization and form configuration
|
|
60
|
+
|
|
61
|
+
## 🛠️ Development
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# Install dependencies
|
|
65
|
+
npm install
|
|
66
|
+
|
|
67
|
+
# Start the documentation demo for development
|
|
68
|
+
npm start
|
|
69
|
+
|
|
70
|
+
# Build the library
|
|
71
|
+
npm run build
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## 🤝 Contribution Guide
|
|
75
|
+
|
|
76
|
+
Contributions and issues are welcome! Please fork the repo first, then open a Pull Request.
|
|
77
|
+
|
|
78
|
+
## 📄 License
|
|
79
|
+
|
|
80
|
+
MIT
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
# Delightful Flow Foundation Package
|
|
85
|
+
|
|
86
|
+
<div align="center">
|
|
87
|
+
<img src="https://img.shields.io/badge/Status-Development-blue" alt="Status: Development">
|
|
88
|
+
<img src="https://img.shields.io/badge/Framework-React-61dafb" alt="Framework: React">
|
|
89
|
+
<img src="https://img.shields.io/badge/License-MIT-green" alt="License: MIT">
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
## 📖 Project Introduction
|
|
93
|
+
|
|
94
|
+
Delightful Flow Foundation Package is an out-of-the-box flow foundation library extracted from Delightful Flow, encapsulated based on ReactFlow, providing powerful flow chart design and management capabilities. This project integrates flow foundation components, JSON Schema editor, expression components, and internal common UI components to help quickly build visual flow applications.
|
|
95
|
+
|
|
96
|
+
## ✨ Core Features
|
|
97
|
+
|
|
98
|
+
- 🔄 Flow chart design and management based on ReactFlow
|
|
99
|
+
- 🎯 High-performance node and edge handling (batch processing and debounce optimization)
|
|
100
|
+
- 🧩 Extensible node type system
|
|
101
|
+
- 🔍 JSON Schema form editing capabilities
|
|
102
|
+
- 🌐 Multilingual support
|
|
103
|
+
- 🎨 Beautiful and customizable UI components
|
|
104
|
+
|
|
105
|
+
## 📦 Installation
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# Install dependencies
|
|
109
|
+
npm install @delightful/delightful-flow
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## 📚 Usage Guide
|
|
113
|
+
|
|
114
|
+
Currently, there is no unified quick start guide. To use the components, please refer to the following resources:
|
|
115
|
+
|
|
116
|
+
- Check the `index.md` file in each component directory for detailed instructions on that component
|
|
117
|
+
- Refer to the sample projects in the `examples` directory to understand actual application scenarios
|
|
118
|
+
- Each component has corresponding sample code that can serve as a development reference
|
|
119
|
+
|
|
120
|
+
For example, to learn how to use the `DelightfulFlow` component, you can:
|
|
121
|
+
1. Check the `src/DelightfulFlow/index.md` file
|
|
122
|
+
2. Refer to the sample projects in the `examples/DelightfulFlow` directory
|
|
123
|
+
|
|
124
|
+
## 📚 API Documentation
|
|
125
|
+
|
|
126
|
+
### Main Components
|
|
127
|
+
|
|
128
|
+
- `DelightfulFlow`: Flow designer main component
|
|
129
|
+
- `DelightfulJsonSchemaEditor`: Form generator based on Schema
|
|
130
|
+
- `DelightfulExpressionWidget`: Expression building and editing component
|
|
131
|
+
- `DelightfulConditionEdit`: Condition editing component
|
|
132
|
+
|
|
133
|
+
### Core Hooks
|
|
134
|
+
|
|
135
|
+
- `useBaseFlow`: Core flow logic hook, managing node and connection states
|
|
136
|
+
- `useNodeBatchProcessing`: Node batch processing hook, improving rendering performance for a large number of nodes
|
|
137
|
+
|
|
138
|
+
### Detailed Documentation and Examples
|
|
139
|
+
|
|
140
|
+
- Each component comes with detailed usage documentation. Please refer to the `index.md` file in the component directory for specific usage
|
|
141
|
+
- The `DelightfulFlow` component provides rich actual development cases. Check the sample projects in the `examples` directory
|
|
142
|
+
- The sample projects demonstrate the practical application of the flow designer in different scenarios, including node customization, form configuration, etc.
|
|
143
|
+
|
|
144
|
+
## 🛠️ Development
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
# Install dependencies
|
|
148
|
+
npm install
|
|
149
|
+
|
|
150
|
+
# Start the documentation demo for development
|
|
151
|
+
npm start
|
|
152
|
+
|
|
153
|
+
# Build library code
|
|
154
|
+
npm run build
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## 🤝 Contribution Guide
|
|
158
|
+
|
|
159
|
+
Contributions of code or issues are welcome! Please fork this repository first, then submit a Pull Request.
|
|
160
|
+
|
|
161
|
+
## 📄 License
|
|
162
|
+
|
|
163
|
+
MIT
|
|
164
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { CacheDictionary, ChangeRef, OptionsProps } from "..";
|
|
3
|
+
import { Expression } from "../types/expression";
|
|
4
|
+
interface RelationGroupProps {
|
|
5
|
+
pos: string;
|
|
6
|
+
changeRef: React.MutableRefObject<ChangeRef>;
|
|
7
|
+
conditionData: Expression.Condition;
|
|
8
|
+
options: OptionsProps;
|
|
9
|
+
cacheDictionary: CacheDictionary;
|
|
10
|
+
readonly: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function RelationGroup({ pos, changeRef, conditionData, options, cacheDictionary, readonly, }: RelationGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
/* eslint-disable react/react-in-jsx-scope */
|
|
8
|
+
import { PlusCircleFilled } from "@ant-design/icons";
|
|
9
|
+
import classname from "clsx";
|
|
10
|
+
import i18next from "i18next";
|
|
11
|
+
import _ from "lodash";
|
|
12
|
+
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
13
|
+
import { RELATION_LOGICS_MAP, posSeparator } from "../constants";
|
|
14
|
+
import { RelationGroupStyle } from "../style";
|
|
15
|
+
import { RelationItem } from "./RelationItem";
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
var getNewPos = function getNewPos(pos, i) {
|
|
20
|
+
return pos ? "".concat(pos).concat(posSeparator).concat(i) : String(i);
|
|
21
|
+
};
|
|
22
|
+
export function RelationGroup(_ref) {
|
|
23
|
+
var _ref$pos = _ref.pos,
|
|
24
|
+
pos = _ref$pos === void 0 ? "" : _ref$pos,
|
|
25
|
+
changeRef = _ref.changeRef,
|
|
26
|
+
conditionData = _ref.conditionData,
|
|
27
|
+
options = _ref.options,
|
|
28
|
+
cacheDictionary = _ref.cacheDictionary,
|
|
29
|
+
readonly = _ref.readonly;
|
|
30
|
+
var _useState = useState(conditionData.ops),
|
|
31
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
32
|
+
ops = _useState2[0],
|
|
33
|
+
setOps = _useState2[1];
|
|
34
|
+
|
|
35
|
+
// Sync local state when conditionData.ops changes
|
|
36
|
+
useEffect(function () {
|
|
37
|
+
setOps(conditionData.ops);
|
|
38
|
+
}, [conditionData.ops]);
|
|
39
|
+
var isShowRelationSign = useMemo(function () {
|
|
40
|
+
var _conditionDataCopy$ch, _conditionDataCopy$ch2;
|
|
41
|
+
var conditionDataCopy = conditionData;
|
|
42
|
+
if (pos === "" && (conditionDataCopy === null || conditionDataCopy === void 0 || (_conditionDataCopy$ch = conditionDataCopy.children) === null || _conditionDataCopy$ch === void 0 ? void 0 : _conditionDataCopy$ch.length) === 1 && !(conditionDataCopy !== null && conditionDataCopy !== void 0 && (_conditionDataCopy$ch2 = conditionDataCopy.children[0]) !== null && _conditionDataCopy$ch2 !== void 0 && _conditionDataCopy$ch2.ops)) {
|
|
43
|
+
// Top level
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
return true;
|
|
47
|
+
}, [conditionData, pos]);
|
|
48
|
+
var switchOpsSign = useCallback(function () {
|
|
49
|
+
if (_.isEmpty(changeRef) || _.isEmpty(changeRef.current)) return;
|
|
50
|
+
// Update local state first for snappier UI feedback
|
|
51
|
+
setOps(ops === RELATION_LOGICS_MAP.AND ? RELATION_LOGICS_MAP.OR : RELATION_LOGICS_MAP.AND);
|
|
52
|
+
// Then update the actual data
|
|
53
|
+
changeRef.current.switchConditionItemLogic(pos);
|
|
54
|
+
}, [changeRef, pos, ops]);
|
|
55
|
+
var handleAddConditionItem = useCallback(function () {
|
|
56
|
+
if (_.isEmpty(changeRef) || _.isEmpty(changeRef.current)) return;
|
|
57
|
+
changeRef.current.addConditionItem(pos);
|
|
58
|
+
}, [changeRef, pos]);
|
|
59
|
+
var memoGroupList = useMemo(function () {
|
|
60
|
+
return (conditionData === null || conditionData === void 0 ? void 0 : conditionData.children) && conditionData.children.map(function (item, i) {
|
|
61
|
+
var newPos = getNewPos(pos, i);
|
|
62
|
+
// console.log("newPos", newPos, pos, i, options.maxGroupDepth)
|
|
63
|
+
if (item.children) {
|
|
64
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
65
|
+
children: /*#__PURE__*/_jsx(RelationGroup, {
|
|
66
|
+
pos: newPos,
|
|
67
|
+
changeRef: changeRef,
|
|
68
|
+
conditionData: item,
|
|
69
|
+
options: options,
|
|
70
|
+
cacheDictionary: cacheDictionary,
|
|
71
|
+
readonly: readonly
|
|
72
|
+
}, _.uniqueId("relation_group_"))
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
76
|
+
children: /*#__PURE__*/_jsx(RelationItem, {
|
|
77
|
+
pos: newPos,
|
|
78
|
+
changeRef: changeRef,
|
|
79
|
+
conditionData: item,
|
|
80
|
+
options: options,
|
|
81
|
+
cacheDictionary: cacheDictionary,
|
|
82
|
+
readonly: readonly
|
|
83
|
+
}, _.uniqueId("relation_item_"))
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
}, [conditionData, pos, readonly, cacheDictionary, changeRef, options]);
|
|
87
|
+
return /*#__PURE__*/_jsxs(RelationGroupStyle, {
|
|
88
|
+
isShowRelationSign: isShowRelationSign,
|
|
89
|
+
operands: ops,
|
|
90
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
91
|
+
className: "relation-group",
|
|
92
|
+
style: {
|
|
93
|
+
display: isShowRelationSign ? "block" : "none"
|
|
94
|
+
},
|
|
95
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
96
|
+
className: "relation-sign",
|
|
97
|
+
onClick: switchOpsSign,
|
|
98
|
+
children: ops === RELATION_LOGICS_MAP.AND ? i18next.t("common.and", {
|
|
99
|
+
ns: "delightfulFlow"
|
|
100
|
+
}) : i18next.t("common.or", {
|
|
101
|
+
ns: "delightfulFlow"
|
|
102
|
+
})
|
|
103
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
104
|
+
className: "add",
|
|
105
|
+
children: /*#__PURE__*/_jsx(PlusCircleFilled, {
|
|
106
|
+
className: "icon",
|
|
107
|
+
onClick: handleAddConditionItem
|
|
108
|
+
})
|
|
109
|
+
})]
|
|
110
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
111
|
+
className: classname("conditions", {
|
|
112
|
+
"only-root": conditionData.children.length === 1
|
|
113
|
+
}),
|
|
114
|
+
children: memoGroupList
|
|
115
|
+
})]
|
|
116
|
+
});
|
|
117
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { CacheDictionary, ChangeRef, OptionsProps } from "..";
|
|
3
|
+
import { Expression } from "../types/expression";
|
|
4
|
+
interface RelationItemProps {
|
|
5
|
+
pos: string;
|
|
6
|
+
changeRef: React.MutableRefObject<ChangeRef>;
|
|
7
|
+
conditionData: Expression.CompareNode | Expression.OperationNode;
|
|
8
|
+
options: OptionsProps;
|
|
9
|
+
cacheDictionary: CacheDictionary;
|
|
10
|
+
readonly: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function RelationItem({ pos, conditionData, changeRef, options, cacheDictionary, readonly, }: RelationItemProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
10
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
14
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
15
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
16
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
|
+
import { getDataSourceMap, getExpressionFirstItem } from "../../DelightfulExpressionWidget/helpers";
|
|
18
|
+
import { FormItemType } from "../../DelightfulExpressionWidget/types";
|
|
19
|
+
import { getDefaultBooleanConstantSource } from "../../DelightfulJsonSchemaEditor/components/schema-json/schema-item/constants";
|
|
20
|
+
import DelightfulSelect from "../../common/BaseUI/Select";
|
|
21
|
+
import { DelightfulExpressionWidget } from "../..";
|
|
22
|
+
import { IconCircleMinus, IconCirclePlus } from "@tabler/icons-react";
|
|
23
|
+
import classname from "clsx";
|
|
24
|
+
import i18next from "i18next";
|
|
25
|
+
import React, { useCallback, useMemo, useState } from "react";
|
|
26
|
+
import { useTranslation } from "react-i18next";
|
|
27
|
+
import { CONDITION_OPTIONS, RELATION_COMP_TYPE, SpecialConditionValues } from "../constants";
|
|
28
|
+
import { useGlobal } from "../context/Global/useGlobal";
|
|
29
|
+
import { RelationItemStyle } from "../style";
|
|
30
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
31
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
32
|
+
export function RelationItem(_ref) {
|
|
33
|
+
var pos = _ref.pos,
|
|
34
|
+
conditionData = _ref.conditionData,
|
|
35
|
+
changeRef = _ref.changeRef,
|
|
36
|
+
options = _ref.options,
|
|
37
|
+
cacheDictionary = _ref.cacheDictionary,
|
|
38
|
+
readonly = _ref.readonly;
|
|
39
|
+
var _useTranslation = useTranslation(),
|
|
40
|
+
t = _useTranslation.t;
|
|
41
|
+
var maxGroupDepth = options.maxGroupDepth,
|
|
42
|
+
openConvertButton = options.openConvertButton,
|
|
43
|
+
termWidth = options.termWidth,
|
|
44
|
+
expressionSource = options.expressionSource;
|
|
45
|
+
var _useGlobal = useGlobal(),
|
|
46
|
+
leftDisabledPos = _useGlobal.leftDisabledPos,
|
|
47
|
+
disabledOperationPos = _useGlobal.disabledOperationPos,
|
|
48
|
+
showTitlePosList = _useGlobal.showTitlePosList;
|
|
49
|
+
|
|
50
|
+
// eslint-disable-next-line prefer-const
|
|
51
|
+
var _useState = useState(conditionData),
|
|
52
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
53
|
+
cur = _useState2[0],
|
|
54
|
+
setCur = _useState2[1];
|
|
55
|
+
var handleAddConditionGroup = useCallback(function () {
|
|
56
|
+
changeRef.current.addConditionGroup(pos);
|
|
57
|
+
}, [changeRef, pos]);
|
|
58
|
+
var handleRemoveConditionItem = useCallback(function () {
|
|
59
|
+
changeRef.current.removeConditionItem(pos);
|
|
60
|
+
}, [changeRef, pos]);
|
|
61
|
+
var handleConvertConditionItem = useCallback(function () {
|
|
62
|
+
changeRef.current.convertConditionItem(pos);
|
|
63
|
+
}, [changeRef, pos]);
|
|
64
|
+
|
|
65
|
+
// const handleBlur = useCallback(() => {
|
|
66
|
+
// if (!_.isEqual(cur, conditionData)) changeRef.current.updateConditionData(pos, cur, true)
|
|
67
|
+
// }, [changeRef, conditionData, cur, pos])
|
|
68
|
+
|
|
69
|
+
var handleChange = function handleChange(value, key) {
|
|
70
|
+
cur = _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, key, value));
|
|
71
|
+
setCur(_objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, key, value)));
|
|
72
|
+
changeRef.current.updateConditionData(pos, cur, false);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** For compare mode, display only the first value */
|
|
76
|
+
var conditionValue = useMemo(function () {
|
|
77
|
+
var _ref2 = cur,
|
|
78
|
+
condition = _ref2.condition;
|
|
79
|
+
return condition || "equals";
|
|
80
|
+
}, [cur]);
|
|
81
|
+
var computedRightStyle = useMemo(function () {
|
|
82
|
+
if (SpecialConditionValues.includes(conditionValue)) {
|
|
83
|
+
return {
|
|
84
|
+
display: "none"
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
display: "block"
|
|
89
|
+
};
|
|
90
|
+
}, [conditionValue]);
|
|
91
|
+
|
|
92
|
+
// Whether to show titles
|
|
93
|
+
var showTitle = useMemo(function () {
|
|
94
|
+
return showTitlePosList.includes(pos);
|
|
95
|
+
}, [showTitlePosList, pos]);
|
|
96
|
+
var _useMemo = useMemo(function () {
|
|
97
|
+
var expressionValue = getExpressionFirstItem(cur.left_operands);
|
|
98
|
+
var dataSourceMap = getDataSourceMap(expressionSource || []);
|
|
99
|
+
var leftSelectedOption = dataSourceMap === null || dataSourceMap === void 0 ? void 0 : dataSourceMap[expressionValue === null || expressionValue === void 0 ? void 0 : expressionValue.value];
|
|
100
|
+
if ((leftSelectedOption === null || leftSelectedOption === void 0 ? void 0 : leftSelectedOption.type) !== FormItemType.Boolean) return {
|
|
101
|
+
expressionSourceWithDefaultOptions: expressionSource,
|
|
102
|
+
rightOperandsOnlyExpression: false
|
|
103
|
+
};
|
|
104
|
+
var booleanConstants = getDefaultBooleanConstantSource();
|
|
105
|
+
return {
|
|
106
|
+
expressionSourceWithDefaultOptions: [].concat(_toConsumableArray(booleanConstants), _toConsumableArray(expressionSource || [])),
|
|
107
|
+
rightOperandsOnlyExpression: (leftSelectedOption === null || leftSelectedOption === void 0 ? void 0 : leftSelectedOption.type) === FormItemType.Boolean
|
|
108
|
+
};
|
|
109
|
+
}, [expressionSource, cur]),
|
|
110
|
+
expressionSourceWithDefaultOptions = _useMemo.expressionSourceWithDefaultOptions,
|
|
111
|
+
rightOperandsOnlyExpression = _useMemo.rightOperandsOnlyExpression;
|
|
112
|
+
return /*#__PURE__*/_jsx(RelationItemStyle, {
|
|
113
|
+
className: "relation-item",
|
|
114
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
115
|
+
className: "condition_vertical_fields",
|
|
116
|
+
children: [cur.type === RELATION_COMP_TYPE.COMPARE && /*#__PURE__*/_jsxs("div", {
|
|
117
|
+
className: classname("condition_vertical_row"),
|
|
118
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
119
|
+
className: "condition_vertical_col left",
|
|
120
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
121
|
+
className: "condition_fields-item",
|
|
122
|
+
children: [showTitle && /*#__PURE__*/_jsx("div", {
|
|
123
|
+
className: "title",
|
|
124
|
+
children: i18next.t("common.referenceVariables", {
|
|
125
|
+
ns: "delightfulFlow"
|
|
126
|
+
})
|
|
127
|
+
}), /*#__PURE__*/_jsx(DelightfulExpressionWidget, {
|
|
128
|
+
onChange: function onChange(value) {
|
|
129
|
+
handleChange(value, "left_operands");
|
|
130
|
+
},
|
|
131
|
+
value: cur.left_operands,
|
|
132
|
+
dataSource: expressionSource,
|
|
133
|
+
allowExpression: true,
|
|
134
|
+
allowModifyField: true,
|
|
135
|
+
disabled: leftDisabledPos.includes(pos),
|
|
136
|
+
onlyExpression: true,
|
|
137
|
+
referencePlaceholder: i18next.t("common.expressionPlaceholder", {
|
|
138
|
+
ns: "delightfulFlow"
|
|
139
|
+
})
|
|
140
|
+
})]
|
|
141
|
+
})
|
|
142
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
143
|
+
className: "condition_vertical_col compare",
|
|
144
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
145
|
+
className: "condition_fields-item",
|
|
146
|
+
children: [showTitle && /*#__PURE__*/_jsx("div", {
|
|
147
|
+
className: "title",
|
|
148
|
+
children: i18next.t("common.selectConditions", {
|
|
149
|
+
ns: "delightfulFlow"
|
|
150
|
+
})
|
|
151
|
+
}), /*#__PURE__*/_jsx(DelightfulSelect, {
|
|
152
|
+
style: {
|
|
153
|
+
width: "100%"
|
|
154
|
+
},
|
|
155
|
+
onChange: function onChange(value) {
|
|
156
|
+
return handleChange(value, "condition");
|
|
157
|
+
},
|
|
158
|
+
options: CONDITION_OPTIONS,
|
|
159
|
+
value: conditionValue
|
|
160
|
+
})]
|
|
161
|
+
})
|
|
162
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
163
|
+
className: "condition_vertical_col right",
|
|
164
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
165
|
+
className: "condition_fields-item",
|
|
166
|
+
style: computedRightStyle,
|
|
167
|
+
children: [showTitle && /*#__PURE__*/_jsx("div", {
|
|
168
|
+
className: "title",
|
|
169
|
+
children: i18next.t("common.compareValue", {
|
|
170
|
+
ns: "delightfulFlow"
|
|
171
|
+
})
|
|
172
|
+
}), /*#__PURE__*/_jsx(DelightfulExpressionWidget, {
|
|
173
|
+
onChange: function onChange(value) {
|
|
174
|
+
handleChange(value, "right_operands");
|
|
175
|
+
},
|
|
176
|
+
value: cur.right_operands,
|
|
177
|
+
dataSource: expressionSourceWithDefaultOptions,
|
|
178
|
+
allowExpression: true,
|
|
179
|
+
allowModifyField: true,
|
|
180
|
+
onlyExpression: rightOperandsOnlyExpression
|
|
181
|
+
})]
|
|
182
|
+
})
|
|
183
|
+
})]
|
|
184
|
+
}), cur.type === RELATION_COMP_TYPE.OPERATION && /*#__PURE__*/_jsx("div", {
|
|
185
|
+
className: "condition_vertical_row",
|
|
186
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
187
|
+
className: "condition_vertical_col",
|
|
188
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
189
|
+
className: "condition_fields-item",
|
|
190
|
+
children: /*#__PURE__*/_jsx(DelightfulExpressionWidget, {
|
|
191
|
+
value: cur.operands,
|
|
192
|
+
dataSource: expressionSource,
|
|
193
|
+
onChange: function onChange(value) {
|
|
194
|
+
return handleChange(value, "operands");
|
|
195
|
+
},
|
|
196
|
+
allowExpression: true,
|
|
197
|
+
allowModifyField: true
|
|
198
|
+
})
|
|
199
|
+
})
|
|
200
|
+
})
|
|
201
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
202
|
+
className: "right-condition_operations",
|
|
203
|
+
children: [showTitle && /*#__PURE__*/_jsx("div", {
|
|
204
|
+
className: "title",
|
|
205
|
+
children: i18next.t("common.operation", {
|
|
206
|
+
ns: "delightfulFlow"
|
|
207
|
+
})
|
|
208
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
209
|
+
className: "condition_vertical_panel",
|
|
210
|
+
children: [pos.split("-").length < maxGroupDepth && /*#__PURE__*/_jsx("span", {
|
|
211
|
+
className: "add-icon",
|
|
212
|
+
onClick: handleAddConditionGroup,
|
|
213
|
+
children: /*#__PURE__*/_jsx(IconCirclePlus, {
|
|
214
|
+
stroke: 1,
|
|
215
|
+
size: 20,
|
|
216
|
+
color: "#315CEC"
|
|
217
|
+
})
|
|
218
|
+
}), openConvertButton && null
|
|
219
|
+
// <Button
|
|
220
|
+
// type="light"
|
|
221
|
+
// theme="primary"
|
|
222
|
+
// onClick={handleConvertConditionItem}
|
|
223
|
+
// style={{
|
|
224
|
+
// visibility: disabledOperationPos.includes(pos)
|
|
225
|
+
// ? "hidden"
|
|
226
|
+
// : "visible",
|
|
227
|
+
// }}
|
|
228
|
+
// >
|
|
229
|
+
// Switch
|
|
230
|
+
// </Button>
|
|
231
|
+
, /*#__PURE__*/_jsx("span", {
|
|
232
|
+
className: "delete-icon",
|
|
233
|
+
onClick: handleRemoveConditionItem,
|
|
234
|
+
style: {
|
|
235
|
+
visibility: disabledOperationPos.includes(pos) ? "hidden" : "visible"
|
|
236
|
+
},
|
|
237
|
+
children: /*#__PURE__*/_jsx(IconCircleMinus, {
|
|
238
|
+
stroke: 1,
|
|
239
|
+
size: 20,
|
|
240
|
+
color: "#1C1D2399"
|
|
241
|
+
})
|
|
242
|
+
})]
|
|
243
|
+
})]
|
|
244
|
+
})]
|
|
245
|
+
})
|
|
246
|
+
});
|
|
247
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Expression } from "./types/expression";
|
|
2
|
+
export declare const ConditionKey = "condition";
|
|
3
|
+
export declare const RightOperandsKey = "right_operands";
|
|
4
|
+
export declare const posSeparator = "-";
|
|
5
|
+
export declare const enum RELATION_LOGICS_MAP {
|
|
6
|
+
AND = "AND",
|
|
7
|
+
OR = "OR"
|
|
8
|
+
}
|
|
9
|
+
export declare const enum RELATION_COMP_TYPE {
|
|
10
|
+
COMPARE = "compare",
|
|
11
|
+
OPERATION = "operation"
|
|
12
|
+
}
|
|
13
|
+
export declare const SpecialConditionValues: string[];
|
|
14
|
+
export declare const CONDITION_OPTIONS: {
|
|
15
|
+
label: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}[];
|
|
18
|
+
export declare const DEFAULT_CONDITION_FIELD: Expression.CompareNode;
|
|
19
|
+
export declare const DEFAULT_CONVERT_FIELD: Expression.OperationNode;
|
|
20
|
+
export declare const DEFAULT_CONDITION_DATA: Expression.LogicNode;
|