@goplasmatic/datalogic-ui 4.0.20 → 5.0.0
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/README.md +35 -15
- package/dist/components/logic-editor/AutoFitView.d.ts +4 -0
- package/dist/components/logic-editor/AutoFitView.d.ts.map +1 -0
- package/dist/components/logic-editor/DataLogicEditor.d.ts +4 -0
- package/dist/components/logic-editor/DataLogicEditor.d.ts.map +1 -0
- package/dist/components/logic-editor/EditorToolbar.d.ts +9 -0
- package/dist/components/logic-editor/EditorToolbar.d.ts.map +1 -0
- package/dist/components/logic-editor/KeyboardHandler.d.ts +9 -0
- package/dist/components/logic-editor/KeyboardHandler.d.ts.map +1 -0
- package/dist/components/logic-editor/NodeSelectionHandler.d.ts +14 -0
- package/dist/components/logic-editor/NodeSelectionHandler.d.ts.map +1 -0
- package/dist/components/logic-editor/UndoRedoToolbar.d.ts +9 -0
- package/dist/components/logic-editor/UndoRedoToolbar.d.ts.map +1 -0
- package/dist/components/logic-editor/config/categories.d.ts +19 -0
- package/dist/components/logic-editor/config/categories.d.ts.map +1 -0
- package/dist/components/logic-editor/config/literalPanel.d.ts +6 -0
- package/dist/components/logic-editor/config/literalPanel.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/arithmetic-basic.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/arithmetic-basic.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/arithmetic-functions.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/arithmetic-functions.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/arithmetic.d.ts +12 -0
- package/dist/components/logic-editor/config/operators/arithmetic.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/array-iteration.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/array-iteration.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/array-manipulation.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/array-manipulation.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/array.d.ts +11 -0
- package/dist/components/logic-editor/config/operators/array.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/comparison.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/comparison.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/control.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/control.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/datetime.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/datetime.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/error.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/error.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/index.d.ts +47 -0
- package/dist/components/logic-editor/config/operators/index.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/logical.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/logical.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/string-core.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/string-core.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/string-transform.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/string-transform.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/string.d.ts +16 -0
- package/dist/components/logic-editor/config/operators/string.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/utility.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/utility.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/validation.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/validation.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators/variable.d.ts +3 -0
- package/dist/components/logic-editor/config/operators/variable.d.ts.map +1 -0
- package/dist/components/logic-editor/config/operators.types.d.ts +144 -0
- package/dist/components/logic-editor/config/operators.types.d.ts.map +1 -0
- package/dist/components/logic-editor/constants/colors.d.ts +7 -0
- package/dist/components/logic-editor/constants/colors.d.ts.map +1 -0
- package/dist/components/logic-editor/constants/formatting.d.ts +7 -0
- package/dist/components/logic-editor/constants/formatting.d.ts.map +1 -0
- package/dist/components/logic-editor/constants/handles.d.ts +24 -0
- package/dist/components/logic-editor/constants/handles.d.ts.map +1 -0
- package/dist/components/logic-editor/constants/index.d.ts +5 -0
- package/dist/components/logic-editor/constants/index.d.ts.map +1 -0
- package/dist/components/logic-editor/constants/layout.d.ts +41 -0
- package/dist/components/logic-editor/constants/layout.d.ts.map +1 -0
- package/dist/components/logic-editor/context/ConnectedHandlesContext.d.ts +9 -0
- package/dist/components/logic-editor/context/ConnectedHandlesContext.d.ts.map +1 -0
- package/dist/components/logic-editor/context/ConnectedHandlesContextDef.d.ts +3 -0
- package/dist/components/logic-editor/context/ConnectedHandlesContextDef.d.ts.map +1 -0
- package/dist/components/logic-editor/context/EvaluationContext.d.ts +5 -0
- package/dist/components/logic-editor/context/EvaluationContext.d.ts.map +1 -0
- package/dist/components/logic-editor/context/debugger/DebuggerProvider.d.ts +12 -0
- package/dist/components/logic-editor/context/debugger/DebuggerProvider.d.ts.map +1 -0
- package/dist/components/logic-editor/context/debugger/context.d.ts +3 -0
- package/dist/components/logic-editor/context/debugger/context.d.ts.map +1 -0
- package/dist/components/logic-editor/context/debugger/hooks.d.ts +12 -0
- package/dist/components/logic-editor/context/debugger/hooks.d.ts.map +1 -0
- package/dist/components/logic-editor/context/debugger/index.d.ts +4 -0
- package/dist/components/logic-editor/context/debugger/index.d.ts.map +1 -0
- package/dist/components/logic-editor/context/debugger/reducer.d.ts +4 -0
- package/dist/components/logic-editor/context/debugger/reducer.d.ts.map +1 -0
- package/dist/components/logic-editor/context/debugger/types.d.ts +58 -0
- package/dist/components/logic-editor/context/debugger/types.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/EditorContext.d.ts +12 -0
- package/dist/components/logic-editor/context/editor/EditorContext.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/context.d.ts +3 -0
- package/dist/components/logic-editor/context/editor/context.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/hooks.d.ts +30 -0
- package/dist/components/logic-editor/context/editor/hooks.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/index.d.ts +5 -0
- package/dist/components/logic-editor/context/editor/index.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/types.d.ts +108 -0
- package/dist/components/logic-editor/context/editor/types.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/useClipboardState.d.ts +18 -0
- package/dist/components/logic-editor/context/editor/useClipboardState.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/useHistoryState.d.ts +10 -0
- package/dist/components/logic-editor/context/editor/useHistoryState.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/useNodeCreation.d.ts +8 -0
- package/dist/components/logic-editor/context/editor/useNodeCreation.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/useNodeEdgeInsert.d.ts +6 -0
- package/dist/components/logic-editor/context/editor/useNodeEdgeInsert.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/useNodeMutations.d.ts +26 -0
- package/dist/components/logic-editor/context/editor/useNodeMutations.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/useNodeOperations.d.ts +12 -0
- package/dist/components/logic-editor/context/editor/useNodeOperations.d.ts.map +1 -0
- package/dist/components/logic-editor/context/editor/useSelectionState.d.ts +20 -0
- package/dist/components/logic-editor/context/editor/useSelectionState.d.ts.map +1 -0
- package/dist/components/logic-editor/context/index.d.ts +7 -0
- package/dist/components/logic-editor/context/index.d.ts.map +1 -0
- package/dist/components/logic-editor/context/useConnectedHandles.d.ts +3 -0
- package/dist/components/logic-editor/context/useConnectedHandles.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/AddArgumentMenu.d.ts +24 -0
- package/dist/components/logic-editor/context-menu/AddArgumentMenu.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/CanvasContextMenu.d.ts +23 -0
- package/dist/components/logic-editor/context-menu/CanvasContextMenu.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/ContextMenu.d.ts +23 -0
- package/dist/components/logic-editor/context-menu/ContextMenu.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/NodeContextMenu.d.ts +15 -0
- package/dist/components/logic-editor/context-menu/NodeContextMenu.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/index.d.ts +5 -0
- package/dist/components/logic-editor/context-menu/index.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/menu-helpers.d.ts +5 -0
- package/dist/components/logic-editor/context-menu/menu-helpers.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/useContextMenuItems.d.ts +10 -0
- package/dist/components/logic-editor/context-menu/useContextMenuItems.d.ts.map +1 -0
- package/dist/components/logic-editor/debugger-controls/DebuggerControls.d.ts +3 -0
- package/dist/components/logic-editor/debugger-controls/DebuggerControls.d.ts.map +1 -0
- package/dist/components/logic-editor/debugger-controls/index.d.ts +2 -0
- package/dist/components/logic-editor/debugger-controls/index.d.ts.map +1 -0
- package/dist/components/logic-editor/edges/EdgeOperatorPicker.d.ts +18 -0
- package/dist/components/logic-editor/edges/EdgeOperatorPicker.d.ts.map +1 -0
- package/dist/components/logic-editor/edges/EditableEdge.d.ts +4 -0
- package/dist/components/logic-editor/edges/EditableEdge.d.ts.map +1 -0
- package/dist/components/logic-editor/edges/index.d.ts +11 -0
- package/dist/components/logic-editor/edges/index.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/index.d.ts +11 -0
- package/dist/components/logic-editor/hooks/index.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useContextMenu.d.ts +19 -0
- package/dist/components/logic-editor/hooks/useContextMenu.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useDebugClassName.d.ts +6 -0
- package/dist/components/logic-editor/hooks/useDebugClassName.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useDebugEvaluation.d.ts +16 -0
- package/dist/components/logic-editor/hooks/useDebugEvaluation.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useIsMobile.d.ts +2 -0
- package/dist/components/logic-editor/hooks/useIsMobile.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useLogicEditor.d.ts +26 -0
- package/dist/components/logic-editor/hooks/useLogicEditor.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useNodeCollapse.d.ts +5 -0
- package/dist/components/logic-editor/hooks/useNodeCollapse.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useRecursionCheck.d.ts +29 -0
- package/dist/components/logic-editor/hooks/useRecursionCheck.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useSystemTheme.d.ts +7 -0
- package/dist/components/logic-editor/hooks/useSystemTheme.d.ts.map +1 -0
- package/dist/components/logic-editor/hooks/useWasmEvaluator.d.ts +20 -0
- package/dist/components/logic-editor/hooks/useWasmEvaluator.d.ts.map +1 -0
- package/dist/components/logic-editor/index.d.ts +8 -0
- package/dist/components/logic-editor/index.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/CellHandles.d.ts +13 -0
- package/dist/components/logic-editor/nodes/CellHandles.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/CellRow.d.ts +8 -0
- package/dist/components/logic-editor/nodes/CellRow.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/DebugInfoBubble.d.ts +8 -0
- package/dist/components/logic-editor/nodes/DebugInfoBubble.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/LiteralNode.d.ts +9 -0
- package/dist/components/logic-editor/nodes/LiteralNode.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/StructureNode.d.ts +9 -0
- package/dist/components/logic-editor/nodes/StructureNode.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/UnifiedOperatorNode.d.ts +9 -0
- package/dist/components/logic-editor/nodes/UnifiedOperatorNode.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/index.d.ts +6 -0
- package/dist/components/logic-editor/nodes/index.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/nodeTypes.d.ts +3 -0
- package/dist/components/logic-editor/nodes/nodeTypes.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/shared/CollapseToggleButton.d.ts +10 -0
- package/dist/components/logic-editor/nodes/shared/CollapseToggleButton.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/shared/NodeDebugBubble.d.ts +11 -0
- package/dist/components/logic-editor/nodes/shared/NodeDebugBubble.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/shared/NodeInputHandles.d.ts +11 -0
- package/dist/components/logic-editor/nodes/shared/NodeInputHandles.d.ts.map +1 -0
- package/dist/components/logic-editor/nodes/shared/index.d.ts +4 -0
- package/dist/components/logic-editor/nodes/shared/index.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/BooleanInput.d.ts +9 -0
- package/dist/components/logic-editor/panel-inputs/BooleanInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/ExpressionInput.d.ts +16 -0
- package/dist/components/logic-editor/panel-inputs/ExpressionInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/FieldRenderer.d.ts +17 -0
- package/dist/components/logic-editor/panel-inputs/FieldRenderer.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/JsonInput.d.ts +15 -0
- package/dist/components/logic-editor/panel-inputs/JsonInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/NumberInput.d.ts +14 -0
- package/dist/components/logic-editor/panel-inputs/NumberInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/PanelRenderer.d.ts +22 -0
- package/dist/components/logic-editor/panel-inputs/PanelRenderer.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/PathArrayInput.d.ts +14 -0
- package/dist/components/logic-editor/panel-inputs/PathArrayInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/PathInput.d.ts +14 -0
- package/dist/components/logic-editor/panel-inputs/PathInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/SectionRenderer.d.ts +21 -0
- package/dist/components/logic-editor/panel-inputs/SectionRenderer.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/SelectInput.d.ts +12 -0
- package/dist/components/logic-editor/panel-inputs/SelectInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/TextAreaInput.d.ts +12 -0
- package/dist/components/logic-editor/panel-inputs/TextAreaInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/TextInput.d.ts +11 -0
- package/dist/components/logic-editor/panel-inputs/TextInput.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/index.d.ts +20 -0
- package/dist/components/logic-editor/panel-inputs/index.d.ts.map +1 -0
- package/dist/components/logic-editor/panel-inputs/visibility.d.ts +10 -0
- package/dist/components/logic-editor/panel-inputs/visibility.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/ArgumentItem.d.ts +14 -0
- package/dist/components/logic-editor/properties-panel/ArgumentItem.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/ArgumentsSection.d.ts +7 -0
- package/dist/components/logic-editor/properties-panel/ArgumentsSection.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/HelpSection.d.ts +8 -0
- package/dist/components/logic-editor/properties-panel/HelpSection.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/PropertiesPanel.d.ts +7 -0
- package/dist/components/logic-editor/properties-panel/PropertiesPanel.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/index.d.ts +10 -0
- package/dist/components/logic-editor/properties-panel/index.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/utils/argument-parser.d.ts +52 -0
- package/dist/components/logic-editor/properties-panel/utils/argument-parser.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/utils/expression-rebuilder.d.ts +6 -0
- package/dist/components/logic-editor/properties-panel/utils/expression-rebuilder.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/utils/index.d.ts +7 -0
- package/dist/components/logic-editor/properties-panel/utils/index.d.ts.map +1 -0
- package/dist/components/logic-editor/properties-panel/utils.d.ts +23 -0
- package/dist/components/logic-editor/properties-panel/utils.d.ts.map +1 -0
- package/dist/components/logic-editor/services/argument-service.d.ts +17 -0
- package/dist/components/logic-editor/services/argument-service.d.ts.map +1 -0
- package/dist/components/logic-editor/services/index.d.ts +7 -0
- package/dist/components/logic-editor/services/index.d.ts.map +1 -0
- package/dist/components/logic-editor/services/node-creation-service.d.ts +13 -0
- package/dist/components/logic-editor/services/node-creation-service.d.ts.map +1 -0
- package/dist/components/logic-editor/services/node-mutation-service.d.ts +14 -0
- package/dist/components/logic-editor/services/node-mutation-service.d.ts.map +1 -0
- package/dist/components/logic-editor/services/node-transform-service.d.ts +15 -0
- package/dist/components/logic-editor/services/node-transform-service.d.ts.map +1 -0
- package/dist/components/logic-editor/types/editor.d.ts +146 -0
- package/dist/components/logic-editor/types/editor.d.ts.map +1 -0
- package/dist/components/logic-editor/types/index.d.ts +5 -0
- package/dist/components/logic-editor/types/index.d.ts.map +1 -0
- package/dist/components/logic-editor/types/jsonlogic.d.ts +14 -0
- package/dist/components/logic-editor/types/jsonlogic.d.ts.map +1 -0
- package/dist/components/logic-editor/types/trace.d.ts +43 -0
- package/dist/components/logic-editor/types/trace.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/ExpressionSyntax.d.ts +9 -0
- package/dist/components/logic-editor/utils/ExpressionSyntax.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/Icon.d.ts +11 -0
- package/dist/components/logic-editor/utils/Icon.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/if-else-converter.d.ts +4 -0
- package/dist/components/logic-editor/utils/converters/if-else-converter.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/index.d.ts +5 -0
- package/dist/components/logic-editor/utils/converters/index.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/operator-converter.d.ts +5 -0
- package/dist/components/logic-editor/utils/converters/operator-converter.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/primitive-converter.d.ts +5 -0
- package/dist/components/logic-editor/utils/converters/primitive-converter.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/structure-converter.d.ts +7 -0
- package/dist/components/logic-editor/utils/converters/structure-converter.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/switch-converter.d.ts +18 -0
- package/dist/components/logic-editor/utils/converters/switch-converter.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/types.d.ts +18 -0
- package/dist/components/logic-editor/utils/converters/types.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/converters/variable-converter.d.ts +8 -0
- package/dist/components/logic-editor/utils/converters/variable-converter.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/edge-builder.d.ts +8 -0
- package/dist/components/logic-editor/utils/edge-builder.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/expression-builder.d.ts +16 -0
- package/dist/components/logic-editor/utils/expression-builder.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/formatting/arg-summary.d.ts +4 -0
- package/dist/components/logic-editor/utils/formatting/arg-summary.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/formatting/expression-text.d.ts +3 -0
- package/dist/components/logic-editor/utils/formatting/expression-text.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/formatting/index.d.ts +4 -0
- package/dist/components/logic-editor/utils/formatting/index.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/formatting/value-formatter.d.ts +5 -0
- package/dist/components/logic-editor/utils/formatting/value-formatter.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/icons.d.ts +19 -0
- package/dist/components/logic-editor/utils/icons.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/index.d.ts +13 -0
- package/dist/components/logic-editor/utils/index.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/jsonlogic-to-nodes.d.ts +7 -0
- package/dist/components/logic-editor/utils/jsonlogic-to-nodes.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/layout.d.ts +3 -0
- package/dist/components/logic-editor/utils/layout.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/menu-builder.d.ts +27 -0
- package/dist/components/logic-editor/utils/menu-builder.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/node-cloning.d.ts +50 -0
- package/dist/components/logic-editor/utils/node-cloning.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/node-deletion.d.ts +24 -0
- package/dist/components/logic-editor/utils/node-deletion.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/node-factory.d.ts +42 -0
- package/dist/components/logic-editor/utils/node-factory.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/node-updaters.d.ts +11 -0
- package/dist/components/logic-editor/utils/node-updaters.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/nodes-to-jsonlogic.d.ts +13 -0
- package/dist/components/logic-editor/utils/nodes-to-jsonlogic.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/child-matching.d.ts +13 -0
- package/dist/components/logic-editor/utils/trace/child-matching.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/evaluation-results.d.ts +15 -0
- package/dist/components/logic-editor/utils/trace/evaluation-results.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/index.d.ts +7 -0
- package/dist/components/logic-editor/utils/trace/index.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/inline-mapping.d.ts +6 -0
- package/dist/components/logic-editor/utils/trace/inline-mapping.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/if-else.d.ts +13 -0
- package/dist/components/logic-editor/utils/trace/node-creators/if-else.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/index.d.ts +8 -0
- package/dist/components/logic-editor/utils/trace/node-creators/index.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/literal.d.ts +9 -0
- package/dist/components/logic-editor/utils/trace/node-creators/literal.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/operator.d.ts +11 -0
- package/dist/components/logic-editor/utils/trace/node-creators/operator.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/structure.d.ts +12 -0
- package/dist/components/logic-editor/utils/trace/node-creators/structure.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/switch.d.ts +21 -0
- package/dist/components/logic-editor/utils/trace/node-creators/switch.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/variable.d.ts +9 -0
- package/dist/components/logic-editor/utils/trace/node-creators/variable.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/vertical-cell.d.ts +12 -0
- package/dist/components/logic-editor/utils/trace/node-creators/vertical-cell.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-type.d.ts +7 -0
- package/dist/components/logic-editor/utils/trace/node-type.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/trace-to-nodes.d.ts +7 -0
- package/dist/components/logic-editor/utils/trace/trace-to-nodes.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/types.d.ts +24 -0
- package/dist/components/logic-editor/utils/trace/types.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/type-guards.d.ts +8 -0
- package/dist/components/logic-editor/utils/type-guards.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/type-helpers.d.ts +9 -0
- package/dist/components/logic-editor/utils/type-helpers.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/visibility.d.ts +3 -0
- package/dist/components/logic-editor/utils/visibility.d.ts.map +1 -0
- package/dist/datalogic_wasm-CF1jcNAu.js +634 -0
- package/dist/datalogic_wasm-Dj9TEPTG.cjs +637 -0
- package/dist/index.cjs +868 -388
- package/dist/index.js +869 -389
- package/dist/lib.d.ts +6 -0
- package/dist/lib.d.ts.map +1 -0
- package/dist/styles.css +302 -136
- package/package.json +37 -33
- package/dist/datalogic_wasm-CCIw5iCk.js +0 -380
- package/dist/datalogic_wasm-Dv8WyX8m.cjs +0 -383
- package/dist/index.d.ts +0 -1
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { Node, Edge } from '@xyflow/react';
|
|
2
|
+
import { OperatorCategory, JsonLogicValue } from './jsonlogic';
|
|
3
|
+
import { IconName } from '../utils/icons';
|
|
4
|
+
import { TracedResult } from './trace';
|
|
5
|
+
export type VisualNodeType = 'operator' | 'literal' | 'structure';
|
|
6
|
+
export interface BaseNodeData extends Record<string, unknown> {
|
|
7
|
+
type: VisualNodeType;
|
|
8
|
+
parentId?: string;
|
|
9
|
+
argIndex?: number;
|
|
10
|
+
branchType?: 'yes' | 'no' | 'branch' | 'condition';
|
|
11
|
+
expression?: JsonLogicValue;
|
|
12
|
+
}
|
|
13
|
+
export interface ArgSummary {
|
|
14
|
+
icon: IconName;
|
|
15
|
+
label: string;
|
|
16
|
+
valueType: 'string' | 'number' | 'boolean' | 'null' | 'array' | 'date' | 'expression';
|
|
17
|
+
}
|
|
18
|
+
export interface OperatorNodeData extends BaseNodeData {
|
|
19
|
+
type: 'operator';
|
|
20
|
+
operator: string;
|
|
21
|
+
category: OperatorCategory;
|
|
22
|
+
label: string;
|
|
23
|
+
icon: IconName;
|
|
24
|
+
cells: CellData[];
|
|
25
|
+
collapsed?: boolean;
|
|
26
|
+
expressionText?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface LiteralNodeData extends BaseNodeData {
|
|
29
|
+
type: 'literal';
|
|
30
|
+
value: JsonLogicValue;
|
|
31
|
+
valueType: 'string' | 'number' | 'boolean' | 'null' | 'array';
|
|
32
|
+
}
|
|
33
|
+
export interface CellData {
|
|
34
|
+
type: 'inline' | 'branch' | 'editable';
|
|
35
|
+
rowLabel?: string;
|
|
36
|
+
label?: string;
|
|
37
|
+
icon?: IconName;
|
|
38
|
+
branchId?: string;
|
|
39
|
+
index: number;
|
|
40
|
+
summary?: ArgSummary;
|
|
41
|
+
conditionBranchId?: string;
|
|
42
|
+
thenBranchId?: string;
|
|
43
|
+
conditionText?: string;
|
|
44
|
+
thenText?: string;
|
|
45
|
+
fieldId?: string;
|
|
46
|
+
fieldType?: 'text' | 'number' | 'select';
|
|
47
|
+
value?: unknown;
|
|
48
|
+
placeholder?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface VariableNodeData extends OperatorNodeData {
|
|
51
|
+
path?: string;
|
|
52
|
+
defaultValue?: JsonLogicValue;
|
|
53
|
+
scopeJump?: number;
|
|
54
|
+
pathComponents?: string[];
|
|
55
|
+
}
|
|
56
|
+
export interface StructureElement {
|
|
57
|
+
type: 'inline' | 'expression';
|
|
58
|
+
path: string[];
|
|
59
|
+
key?: string;
|
|
60
|
+
value?: JsonLogicValue;
|
|
61
|
+
branchId?: string;
|
|
62
|
+
startOffset: number;
|
|
63
|
+
endOffset: number;
|
|
64
|
+
}
|
|
65
|
+
export interface StructureNodeData extends BaseNodeData {
|
|
66
|
+
type: 'structure';
|
|
67
|
+
isArray: boolean;
|
|
68
|
+
formattedJson: string;
|
|
69
|
+
elements: StructureElement[];
|
|
70
|
+
collapsed?: boolean;
|
|
71
|
+
expressionText?: string;
|
|
72
|
+
}
|
|
73
|
+
export type LogicNodeData = OperatorNodeData | LiteralNodeData | StructureNodeData;
|
|
74
|
+
export type LogicNode = Node<LogicNodeData>;
|
|
75
|
+
export type LogicEdge = Edge;
|
|
76
|
+
export interface EditorState {
|
|
77
|
+
nodes: LogicNode[];
|
|
78
|
+
edges: LogicEdge[];
|
|
79
|
+
selectedNodeId: string | null;
|
|
80
|
+
editingNodeId: string | null;
|
|
81
|
+
}
|
|
82
|
+
export interface ConversionResult {
|
|
83
|
+
nodes: LogicNode[];
|
|
84
|
+
edges: LogicEdge[];
|
|
85
|
+
rootId: string | null;
|
|
86
|
+
}
|
|
87
|
+
export interface NodeEvaluationResult {
|
|
88
|
+
value: unknown;
|
|
89
|
+
error: string | null;
|
|
90
|
+
type: 'boolean' | 'number' | 'string' | 'null' | 'array' | 'object' | 'undefined';
|
|
91
|
+
}
|
|
92
|
+
export type EvaluationResultsMap = Map<string, NodeEvaluationResult>;
|
|
93
|
+
export interface LogicEditorProps {
|
|
94
|
+
value: JsonLogicValue | null;
|
|
95
|
+
onChange: (expr: JsonLogicValue | null) => void;
|
|
96
|
+
readOnly?: boolean;
|
|
97
|
+
className?: string;
|
|
98
|
+
evaluationResults?: EvaluationResultsMap;
|
|
99
|
+
/** Data object for debug evaluation */
|
|
100
|
+
debugData?: unknown;
|
|
101
|
+
/** Evaluate function from WASM - if provided, enables debug mode */
|
|
102
|
+
evaluate?: (logic: unknown, data: unknown) => unknown;
|
|
103
|
+
/** Evaluate with trace function from WASM - if provided, uses trace API for diagram rendering */
|
|
104
|
+
evaluateWithTrace?: (logic: unknown, data: unknown) => TracedResult;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Props for the DataLogicEditor component (public API)
|
|
108
|
+
*/
|
|
109
|
+
export interface DataLogicEditorProps {
|
|
110
|
+
/** JSONLogic expression to render */
|
|
111
|
+
value: JsonLogicValue | null;
|
|
112
|
+
/** Callback when expression changes (only when editable is true) */
|
|
113
|
+
onChange?: (expr: JsonLogicValue | null) => void;
|
|
114
|
+
/** Data context for evaluation. When provided, debugger controls become available. */
|
|
115
|
+
data?: unknown;
|
|
116
|
+
/** Theme override - 'light' or 'dark'. If not provided, uses system preference */
|
|
117
|
+
theme?: 'light' | 'dark';
|
|
118
|
+
/** Additional CSS class */
|
|
119
|
+
className?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Enable templating mode: multi-key objects and arrays in compiled rules
|
|
122
|
+
* become output-shaping templates with embedded JSONLogic expressions,
|
|
123
|
+
* rather than rejected as invalid JSONLogic. Matches the v5 core API
|
|
124
|
+
* (`Engine::builder().with_templating(true)`).
|
|
125
|
+
*/
|
|
126
|
+
templating?: boolean;
|
|
127
|
+
/** Callback when templating mode changes (from toolbar checkbox) */
|
|
128
|
+
onTemplatingChange?: (value: boolean) => void;
|
|
129
|
+
/**
|
|
130
|
+
* Enable editing: node selection, properties panel, context menus, undo/redo.
|
|
131
|
+
* Default: false
|
|
132
|
+
*/
|
|
133
|
+
editable?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Optional list of example names to surface as quick-action chips in the
|
|
136
|
+
* empty state. Each chip, when clicked, calls `onSelectExample` with the
|
|
137
|
+
* corresponding name. Ignored when the editor is non-empty.
|
|
138
|
+
*/
|
|
139
|
+
exampleSuggestions?: string[];
|
|
140
|
+
/**
|
|
141
|
+
* Callback invoked when a user clicks an empty-state example chip.
|
|
142
|
+
* Receives the example name from `exampleSuggestions`.
|
|
143
|
+
*/
|
|
144
|
+
onSelectExample?: (name: string) => void;
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/types/editor.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { JsonLogicPrimitive, JsonLogicVar, JsonLogicVal, JsonLogicExpression, JsonLogicValue, OperatorCategory, NodeCategory, } from './jsonlogic';
|
|
2
|
+
export type { VisualNodeType, BaseNodeData, ArgSummary, OperatorNodeData, LiteralNodeData, CellData, VariableNodeData, StructureElement, StructureNodeData, LogicNodeData, LogicNode, LogicEdge, EditorState, ConversionResult, NodeEvaluationResult, EvaluationResultsMap, LogicEditorProps, DataLogicEditorProps, } from './editor';
|
|
3
|
+
export type { ExpressionNode, ExecutionStep, TracedResult, StructuredError, } from './trace';
|
|
4
|
+
export { CATEGORY_COLORS } from '../constants/colors';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,YAAY,GACb,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,cAAc,EACd,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,cAAc,EACd,aAAa,EACb,YAAY,EACZ,eAAe,GAChB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type JsonLogicPrimitive = string | number | boolean | null;
|
|
2
|
+
export interface JsonLogicVar {
|
|
3
|
+
var: string | [string, JsonLogicValue];
|
|
4
|
+
}
|
|
5
|
+
export interface JsonLogicVal {
|
|
6
|
+
val: string;
|
|
7
|
+
}
|
|
8
|
+
export type JsonLogicExpression = {
|
|
9
|
+
[operator: string]: JsonLogicValue | JsonLogicValue[];
|
|
10
|
+
};
|
|
11
|
+
export type JsonLogicValue = JsonLogicPrimitive | JsonLogicPrimitive[] | JsonLogicExpression | JsonLogicValue[];
|
|
12
|
+
export type { OperatorCategory } from '../config/operators.types';
|
|
13
|
+
export type NodeCategory = import('../config/operators.types').OperatorCategory | 'literal';
|
|
14
|
+
//# sourceMappingURL=jsonlogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonlogic.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/types/jsonlogic.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAGlE,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CACxC;AAGD,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;CACb;AAGD,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,GAAG,cAAc,EAAE,CAAC;CACvD,CAAC;AAGF,MAAM,MAAM,cAAc,GACtB,kBAAkB,GAClB,kBAAkB,EAAE,GACpB,mBAAmB,GACnB,cAAc,EAAE,CAAC;AAKrB,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAIlE,MAAM,MAAM,YAAY,GACpB,OAAO,2BAA2B,EAAE,gBAAgB,GACpD,SAAS,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface ExpressionNode {
|
|
2
|
+
id: number;
|
|
3
|
+
expression: string;
|
|
4
|
+
children: ExpressionNode[];
|
|
5
|
+
}
|
|
6
|
+
export interface ExecutionStep {
|
|
7
|
+
id: number;
|
|
8
|
+
node_id: number;
|
|
9
|
+
context: unknown;
|
|
10
|
+
result?: unknown;
|
|
11
|
+
error?: string;
|
|
12
|
+
iteration_index?: number;
|
|
13
|
+
iteration_total?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Structured error shape emitted by the WASM `*_structured` entry points.
|
|
17
|
+
*
|
|
18
|
+
* Mirrors the Rust `Error` serialization — `type` is a stable
|
|
19
|
+
* machine-readable kind, `message` is human-readable, and variant-specific
|
|
20
|
+
* extras appear as extra fields. `node_ids` is the v5 failure breadcrumb
|
|
21
|
+
* (compile-time node IDs, root-to-leaf); `stage` is set on parse-time
|
|
22
|
+
* failures from the WASM boundary itself.
|
|
23
|
+
*/
|
|
24
|
+
export interface StructuredError {
|
|
25
|
+
type: string;
|
|
26
|
+
message: string;
|
|
27
|
+
operator?: string;
|
|
28
|
+
variable?: string;
|
|
29
|
+
level?: number;
|
|
30
|
+
thrown?: unknown;
|
|
31
|
+
index?: number;
|
|
32
|
+
length?: number;
|
|
33
|
+
stage?: string;
|
|
34
|
+
node_ids?: number[];
|
|
35
|
+
}
|
|
36
|
+
export interface TracedResult {
|
|
37
|
+
result: unknown;
|
|
38
|
+
expression_tree: ExpressionNode;
|
|
39
|
+
steps: ExecutionStep[];
|
|
40
|
+
error?: string;
|
|
41
|
+
structured_error?: StructuredError;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=trace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/types/trace.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,eAAe,EAAE,cAAc,CAAC;IAChC,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface ExpressionSyntaxProps {
|
|
2
|
+
text: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Expression syntax highlighting component for use in nodes
|
|
6
|
+
*/
|
|
7
|
+
export declare const ExpressionSyntax: import('react').MemoExoticComponent<({ text }: ExpressionSyntaxProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=ExpressionSyntax.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpressionSyntax.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/ExpressionSyntax.tsx"],"names":[],"mappings":"AA0NA,UAAU,qBAAqB;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,iDAA4C,qBAAqB,6CAQ5F,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconName } from './icons';
|
|
3
|
+
interface IconProps {
|
|
4
|
+
name: IconName;
|
|
5
|
+
size?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
export declare function Icon({ name, size, className, style }: IconProps): React.ReactElement;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqC1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAwCxC,UAAU,SAAS;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,IAAS,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,SAAS,GAAG,KAAK,CAAC,YAAY,CAGzF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../types';
|
|
2
|
+
import { ConversionContext, ConverterFn } from './types';
|
|
3
|
+
export declare function convertIfElse(ifArgs: JsonLogicValue[], context: ConversionContext, convertValue: ConverterFn): string;
|
|
4
|
+
//# sourceMappingURL=if-else-converter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"if-else-converter.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/converters/if-else-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,aAAa,CAAC;AACzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAQ9D,wBAAgB,aAAa,CAC3B,MAAM,EAAE,cAAc,EAAE,EACxB,OAAO,EAAE,iBAAiB,EAC1B,YAAY,EAAE,WAAW,GACxB,MAAM,CAkKR"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../types';
|
|
2
|
+
import { ConversionContext } from './types';
|
|
3
|
+
export type { ConversionContext, ParentInfo, ConverterFn } from './types';
|
|
4
|
+
export declare function convertValue(value: JsonLogicValue, context: ConversionContext): string;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/converters/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AASjD,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG1E,wBAAgB,YAAY,CAC1B,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,iBAAiB,GACzB,MAAM,CA2CR"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../types';
|
|
2
|
+
import { ConversionContext, ConverterFn } from './types';
|
|
3
|
+
export declare function convertOperator(operator: string, operandArray: JsonLogicValue[], context: ConversionContext, convertValue: ConverterFn): string;
|
|
4
|
+
export declare function isUnaryOperator(operator: string): boolean;
|
|
5
|
+
//# sourceMappingURL=operator-converter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator-converter.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/converters/operator-converter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,aAAa,CAAC;AACzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAc9D,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,cAAc,EAAE,EAC9B,OAAO,EAAE,iBAAiB,EAC1B,YAAY,EAAE,WAAW,GACxB,MAAM,CAqFR;AAGD,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../types';
|
|
2
|
+
import { ConversionContext } from './types';
|
|
3
|
+
export declare function convertPrimitive(value: JsonLogicValue, context: ConversionContext): string;
|
|
4
|
+
export declare function convertInvalidObject(value: JsonLogicValue, context: ConversionContext): string;
|
|
5
|
+
//# sourceMappingURL=primitive-converter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive-converter.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/converters/primitive-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAKjD,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,iBAAiB,GACzB,MAAM,CAaR;AAGD,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,iBAAiB,GACzB,MAAM,CAoBR"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConversionContext, ConverterFn } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Convert a data structure (object or array with potential JSONLogic expressions)
|
|
4
|
+
* to a structure node that displays formatted JSON with linked expression branches.
|
|
5
|
+
*/
|
|
6
|
+
export declare function convertStructure(value: Record<string, unknown> | unknown[], context: ConversionContext, convertValue: ConverterFn): string;
|
|
7
|
+
//# sourceMappingURL=structure-converter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structure-converter.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/converters/structure-converter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAW9D;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,EAAE,EAC1C,OAAO,EAAE,iBAAiB,EAC1B,YAAY,EAAE,WAAW,GACxB,MAAM,CAqGR"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../types';
|
|
2
|
+
import { ConversionContext, ConverterFn } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Convert switch/match to a single VerticalCellNode with all branches.
|
|
5
|
+
*
|
|
6
|
+
* JSON structure: {"switch": [discriminant, [[case1, result1], [case2, result2], ...], default]}
|
|
7
|
+
*
|
|
8
|
+
* Visual layout:
|
|
9
|
+
* Match → discriminant expression
|
|
10
|
+
* Case → case value (inline or branch)
|
|
11
|
+
* Then → result expression
|
|
12
|
+
* Case → case value
|
|
13
|
+
* Then → result expression
|
|
14
|
+
* ...
|
|
15
|
+
* Default → default expression
|
|
16
|
+
*/
|
|
17
|
+
export declare function convertSwitch(operator: string, switchArgs: JsonLogicValue[], context: ConversionContext, convertValue: ConverterFn): string;
|
|
18
|
+
//# sourceMappingURL=switch-converter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch-converter.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/converters/switch-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,aAAa,CAAC;AACzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAQ9D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,cAAc,EAAE,EAC5B,OAAO,EAAE,iBAAiB,EAC1B,YAAY,EAAE,WAAW,GACxB,MAAM,CAmMR"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JsonLogicValue, LogicNode, LogicEdge } from '../../types';
|
|
2
|
+
export interface ConversionContext {
|
|
3
|
+
nodes: LogicNode[];
|
|
4
|
+
edges: LogicEdge[];
|
|
5
|
+
parentId?: string;
|
|
6
|
+
argIndex?: number;
|
|
7
|
+
branchType?: 'yes' | 'no' | 'branch' | 'condition';
|
|
8
|
+
/** Enable templating mode (multi-key objects compile to output-shaping templates with embedded JSONLogic). */
|
|
9
|
+
templating?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface ParentInfo {
|
|
12
|
+
parentId?: string;
|
|
13
|
+
argIndex?: number;
|
|
14
|
+
branchType?: 'yes' | 'no' | 'branch' | 'condition';
|
|
15
|
+
}
|
|
16
|
+
export type ConverterFn = (value: JsonLogicValue, context: ConversionContext) => string;
|
|
17
|
+
export declare function getParentInfo(context: ConversionContext): ParentInfo;
|
|
18
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/converters/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxE,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,QAAQ,GAAG,WAAW,CAAC;IACnD,8GAA8G;IAC9G,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAGD,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,QAAQ,GAAG,WAAW,CAAC;CACpD;AAGD,MAAM,MAAM,WAAW,GAAG,CACxB,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,iBAAiB,KACvB,MAAM,CAAC;AAGZ,wBAAgB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,UAAU,CAMpE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../types';
|
|
2
|
+
import { ConversionContext, ConverterFn } from './types';
|
|
3
|
+
declare const VARIABLE_OPERATORS: readonly ["var", "val", "exists"];
|
|
4
|
+
type VariableOperator = (typeof VARIABLE_OPERATORS)[number];
|
|
5
|
+
export declare function isVariableOperator(operator: string): operator is VariableOperator;
|
|
6
|
+
export declare function convertVariable(operator: VariableOperator, operands: JsonLogicValue, context: ConversionContext, convertValue: ConverterFn): string;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=variable-converter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variable-converter.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/converters/variable-converter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,aAAa,CAAC;AACzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAW9D,QAAA,MAAM,kBAAkB,mCAAoC,CAAC;AAC7D,KAAK,gBAAgB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAG5D,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,IAAI,gBAAgB,CAEjF;AAGD,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,iBAAiB,EAC1B,YAAY,EAAE,WAAW,GACxB,MAAM,CA2GR"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LogicNode, LogicEdge } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Build edges from node relationships, respecting collapse state.
|
|
4
|
+
* This function creates edges based on the current node data, including
|
|
5
|
+
* collapsed cells and collapsed nodes.
|
|
6
|
+
*/
|
|
7
|
+
export declare function buildEdgesFromNodes(nodes: LogicNode[]): LogicEdge[];
|
|
8
|
+
//# sourceMappingURL=edge-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge-builder.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/edge-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAuC,MAAM,UAAU,CAAC;AAE1F;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,CAsEnE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LogicNode, JsonLogicValue } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Get the expression value for a node.
|
|
4
|
+
* Returns the node's expression if available, otherwise constructs it from node data.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getNodeExpressionValue(node: LogicNode): JsonLogicValue;
|
|
7
|
+
/**
|
|
8
|
+
* Rebuild an operator node's expression from its children.
|
|
9
|
+
* This is the single source of truth for expression generation.
|
|
10
|
+
*
|
|
11
|
+
* @param operator The operator name (e.g., '+', 'and', 'if')
|
|
12
|
+
* @param childNodes The child nodes that form the operands
|
|
13
|
+
* @returns The rebuilt expression object
|
|
14
|
+
*/
|
|
15
|
+
export declare function rebuildOperatorExpression(operator: string, childNodes: LogicNode[]): JsonLogicValue;
|
|
16
|
+
//# sourceMappingURL=expression-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expression-builder.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/expression-builder.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EAGf,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,GAAG,cAAc,CAkBtE;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,SAAS,EAAE,GACtB,cAAc,CAYhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arg-summary.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/formatting/arg-summary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAO9D,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,GAAG,UAAU,CAuEpE;AAGD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAqClE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expression-text.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/formatting/expression-text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAUlD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,cAAc,EAAE,SAAS,SAAM,GAAG,MAAM,CA2JrF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/formatting/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../types';
|
|
2
|
+
export declare function formatValue(value: JsonLogicValue): string;
|
|
3
|
+
export declare function formatResultValue(value: unknown): string;
|
|
4
|
+
export declare function isComplexValue(value: unknown): boolean;
|
|
5
|
+
//# sourceMappingURL=value-formatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-formatter.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/formatting/value-formatter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlD,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAYzD;AAGD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAsBxD;AAGD,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAOtD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { JsonLogicValue, LiteralNodeData } from '../types';
|
|
2
|
+
export type IconName = 'scale' | 'diamond' | 'calculator' | 'repeat' | 'type' | 'box' | 'git-merge' | 'git-branch' | 'text' | 'hash' | 'toggle-left' | 'toggle-right' | 'check' | 'x' | 'ban' | 'list' | 'calendar' | 'cog' | 'database' | 'boxes' | 'circle-help' | 'circle-x' | 'git-commit-horizontal' | 'search' | 'divide' | 'quote' | 'braces' | 'binary' | 'layers' | 'clock' | 'alert-circle' | 'arrow-up' | 'tag';
|
|
3
|
+
export declare const ITERATOR_ARG_ICONS: Record<string, IconName[]>;
|
|
4
|
+
export declare const TYPE_ICONS: Record<string, IconName>;
|
|
5
|
+
export declare const LITERAL_TYPE_ICONS: Record<LiteralNodeData['valueType'], IconName>;
|
|
6
|
+
export declare const CONTROL_ICONS: {
|
|
7
|
+
ifCondition: IconName;
|
|
8
|
+
elseClause: IconName;
|
|
9
|
+
ifThenElse: IconName;
|
|
10
|
+
orOperator: IconName;
|
|
11
|
+
};
|
|
12
|
+
export declare const VARIABLE_ICONS: {
|
|
13
|
+
var: IconName;
|
|
14
|
+
val: IconName;
|
|
15
|
+
exists: IconName;
|
|
16
|
+
};
|
|
17
|
+
export declare function getOperandTypeIcon(operand: JsonLogicValue): IconName;
|
|
18
|
+
export { Icon } from './Icon';
|
|
19
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/icons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhE,MAAM,MAAM,QAAQ,GAChB,OAAO,GACP,SAAS,GACT,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,KAAK,GACL,WAAW,GACX,YAAY,GACZ,MAAM,GACN,MAAM,GACN,aAAa,GACb,cAAc,GACd,OAAO,GACP,GAAG,GACH,KAAK,GACL,MAAM,GACN,UAAU,GACV,KAAK,GACL,UAAU,GACV,OAAO,GACP,aAAa,GACb,UAAU,GACV,uBAAuB,GACvB,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,cAAc,GACd,UAAU,GACV,KAAK,CAAC;AAGV,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,CAOzD,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAW/C,CAAC;AAGF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,eAAe,CAAC,WAAW,CAAC,EAAE,QAAQ,CAM7E,CAAC;AAGF,eAAO,MAAM,aAAa;iBACI,QAAQ;gBACG,QAAQ;gBACpB,QAAQ;gBACV,QAAQ;CAClC,CAAC;AAGF,eAAO,MAAM,cAAc;SACX,QAAQ;SACH,QAAQ;YACP,QAAQ;CAC7B,CAAC;AAGF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,QAAQ,CAsBpE;AAGD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { jsonLogicToNodes, type JsonLogicToNodesOptions } from './jsonlogic-to-nodes';
|
|
2
|
+
export { traceToNodes, buildEvaluationResultsFromTrace, traceIdToNodeId, type TraceConversionResult, type TraceToNodesOptions, type TraceContext, type ValueType, type NodeType, type ChildMatch, findMatchingChild, getNextUnusedChild, determineNodeType, mapInlinedChildren, } from './trace';
|
|
3
|
+
export { applyTreeLayout } from './layout';
|
|
4
|
+
export { getHiddenNodeIds } from './visibility';
|
|
5
|
+
export { isPlainObject, isJsonLogicExpression, isDataStructure, getValueType, looksLikeDate, isSimpleOperand, getValueColorClass, } from './type-helpers';
|
|
6
|
+
export { isOperatorNode, isLiteralNode, isStructureNode, isCollapsibleNode, getOperatorNodeData, } from './type-guards';
|
|
7
|
+
export { createLiteralNode, type BuildVariableCellsOptions, buildVariableCells, createVariableNode, createOperatorNode, createEdge, createArgEdge, createBranchEdge, } from './node-factory';
|
|
8
|
+
export { panelValuesToNodeData, havePanelValuesChanged } from './node-updaters';
|
|
9
|
+
export { deleteNodeAndDescendants, getDescendantIds, isRootNode, canDeleteNode, } from './node-deletion';
|
|
10
|
+
export { nodesToJsonLogic, getRootNode } from './nodes-to-jsonlogic';
|
|
11
|
+
export { type CloneResult, cloneNodesWithIdMapping, getDescendants, updateParentChildReference, } from './node-cloning';
|
|
12
|
+
export { capitalizeFirst, type OperatorMenuOptions, buildOperatorSubmenu, } from './menu-builder';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACtF,OAAO,EACL,YAAY,EACZ,+BAA+B,EAC/B,eAAe,EACf,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,eAAe,EACf,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EACd,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,iBAAiB,EACjB,KAAK,yBAAyB,EAC9B,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,aAAa,EACb,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EACL,wBAAwB,EACxB,gBAAgB,EAChB,UAAU,EACV,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EACL,KAAK,WAAW,EAChB,uBAAuB,EACvB,cAAc,EACd,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,EACf,KAAK,mBAAmB,EACxB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JsonLogicValue, ConversionResult } from '../types';
|
|
2
|
+
export interface JsonLogicToNodesOptions {
|
|
3
|
+
/** Enable templating mode (multi-key objects compile to output-shaping templates with embedded JSONLogic). */
|
|
4
|
+
templating?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function jsonLogicToNodes(expr: JsonLogicValue | null, options?: JsonLogicToNodesOptions): ConversionResult;
|
|
7
|
+
//# sourceMappingURL=jsonlogic-to-nodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonlogic-to-nodes.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/jsonlogic-to-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAGd,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAIlB,MAAM,WAAW,uBAAuB;IACtC,8GAA8G;IAC9G,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAGD,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,cAAc,GAAG,IAAI,EAC3B,OAAO,GAAE,uBAA4B,GACpC,gBAAgB,CAelB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/layout.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAuC,MAAM,UAAU,CAAC;AAmI1F,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,CAyEpF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MenuItemConfig } from '../context-menu/ContextMenu';
|
|
2
|
+
import { OperatorCategory } from '../config/operators.types';
|
|
3
|
+
/**
|
|
4
|
+
* Capitalize the first letter of a string.
|
|
5
|
+
*/
|
|
6
|
+
export declare function capitalizeFirst(str: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Options for building operator submenus.
|
|
9
|
+
*/
|
|
10
|
+
export interface OperatorMenuOptions {
|
|
11
|
+
/** Categories to exclude from the menu */
|
|
12
|
+
excludeCategories?: OperatorCategory[];
|
|
13
|
+
/** Maximum number of operators per category (default: 10) */
|
|
14
|
+
maxPerCategory?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Build operator submenu items grouped by category.
|
|
18
|
+
*
|
|
19
|
+
* This creates a consistent menu structure for selecting operators,
|
|
20
|
+
* with operators grouped into category submenus.
|
|
21
|
+
*
|
|
22
|
+
* @param onSelect - Callback when an operator is selected
|
|
23
|
+
* @param options - Optional configuration
|
|
24
|
+
* @returns Array of menu items for use in ContextMenu
|
|
25
|
+
*/
|
|
26
|
+
export declare function buildOperatorSubmenu(onSelect: (operatorName: string) => void, options?: OperatorMenuOptions): MenuItemConfig[];
|
|
27
|
+
//# sourceMappingURL=menu-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-builder.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/menu-builder.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEnD;AAoBD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,0CAA0C;IAC1C,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACvC,6DAA6D;IAC7D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,EACxC,OAAO,CAAC,EAAE,mBAAmB,GAC5B,cAAc,EAAE,CA4BlB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { LogicNode } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Result of cloning nodes with ID remapping
|
|
4
|
+
*/
|
|
5
|
+
export interface CloneResult {
|
|
6
|
+
/** The cloned nodes with new IDs */
|
|
7
|
+
nodes: LogicNode[];
|
|
8
|
+
/** Map from old ID to new ID */
|
|
9
|
+
idMap: Map<string, string>;
|
|
10
|
+
/** The new ID of the root node */
|
|
11
|
+
newRootId: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Clone a set of nodes with new unique IDs, properly remapping all internal references.
|
|
15
|
+
*
|
|
16
|
+
* This handles:
|
|
17
|
+
* - Generating new UUIDs for each node
|
|
18
|
+
* - Remapping parentId references within the cloned set
|
|
19
|
+
* - Remapping cell branch IDs for operator nodes
|
|
20
|
+
*
|
|
21
|
+
* @param nodes - The nodes to clone (should include the root and all descendants)
|
|
22
|
+
* @param rootId - The ID of the root node in the original set
|
|
23
|
+
* @returns CloneResult with the cloned nodes, ID mapping, and new root ID
|
|
24
|
+
*/
|
|
25
|
+
export declare function cloneNodesWithIdMapping(nodes: LogicNode[], rootId: string): CloneResult;
|
|
26
|
+
/**
|
|
27
|
+
* Get all descendants of a node recursively.
|
|
28
|
+
*
|
|
29
|
+
* This traverses the node tree to find all child nodes,
|
|
30
|
+
* handling operator nodes (via cells array).
|
|
31
|
+
*
|
|
32
|
+
* @param nodeId - The ID of the parent node
|
|
33
|
+
* @param allNodes - All nodes in the tree
|
|
34
|
+
* @returns Array of descendant nodes (not including the parent)
|
|
35
|
+
*/
|
|
36
|
+
export declare function getDescendants(nodeId: string, allNodes: LogicNode[]): LogicNode[];
|
|
37
|
+
/**
|
|
38
|
+
* Update parent references when replacing a node in the tree.
|
|
39
|
+
*
|
|
40
|
+
* When a node is replaced (e.g., during paste), the parent's
|
|
41
|
+
* cells array needs to be updated to point to the new node ID.
|
|
42
|
+
*
|
|
43
|
+
* @param nodes - The nodes to update
|
|
44
|
+
* @param parentId - The ID of the parent node to update
|
|
45
|
+
* @param oldChildId - The old child ID to replace
|
|
46
|
+
* @param newChildId - The new child ID
|
|
47
|
+
* @returns Updated nodes array
|
|
48
|
+
*/
|
|
49
|
+
export declare function updateParentChildReference(nodes: LogicNode[], parentId: string, oldChildId: string, newChildId: string): LogicNode[];
|
|
50
|
+
//# sourceMappingURL=node-cloning.d.ts.map
|