@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 @@
|
|
|
1
|
+
{"version":3,"file":"node-cloning.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/node-cloning.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAoB,MAAM,UAAU,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,oCAAoC;IACpC,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,gCAAgC;IAChC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3B,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,SAAS,EAAE,EAClB,MAAM,EAAE,MAAM,GACb,WAAW,CAgEb;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,SAAS,EAAE,GACpB,SAAS,EAAE,CAkCb;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,SAAS,EAAE,EAClB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GACjB,SAAS,EAAE,CAuBb"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LogicNode } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Delete a node and all its descendants from the node array.
|
|
4
|
+
* Also updates parent references to remove the deleted node.
|
|
5
|
+
*
|
|
6
|
+
* @param nodeId The ID of the node to delete
|
|
7
|
+
* @param nodes The current array of nodes
|
|
8
|
+
* @returns A new array with the node and its descendants removed
|
|
9
|
+
*/
|
|
10
|
+
export declare function deleteNodeAndDescendants(nodeId: string, nodes: LogicNode[]): LogicNode[];
|
|
11
|
+
/**
|
|
12
|
+
* Get all descendant node IDs for a given node.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getDescendantIds(nodeId: string, nodes: LogicNode[]): Set<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Check if a node is the root node (has no parent)
|
|
17
|
+
*/
|
|
18
|
+
export declare function isRootNode(node: LogicNode): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Check if a node can be deleted.
|
|
21
|
+
* Root nodes cannot be deleted.
|
|
22
|
+
*/
|
|
23
|
+
export declare function canDeleteNode(node: LogicNode): boolean;
|
|
24
|
+
//# sourceMappingURL=node-deletion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-deletion.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/node-deletion.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,SAAS,EAIV,MAAM,UAAU,CAAC;AAElB;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,SAAS,EAAE,GACjB,SAAS,EAAE,CAoBb;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAmBhF;AA6ID;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAEnD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAEtD"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { JsonLogicValue, LogicNode, LogicEdge, OperatorCategory, CellData } from '../types';
|
|
2
|
+
import { IconName } from './icons';
|
|
3
|
+
import { ParentInfo } from './converters/types';
|
|
4
|
+
export declare function createLiteralNode(value: JsonLogicValue, parentInfo?: ParentInfo): LogicNode;
|
|
5
|
+
export interface BuildVariableCellsOptions {
|
|
6
|
+
operator: 'var' | 'val' | 'exists';
|
|
7
|
+
path: string;
|
|
8
|
+
defaultValue?: JsonLogicValue;
|
|
9
|
+
scopeJump?: number;
|
|
10
|
+
pathComponents?: string[];
|
|
11
|
+
}
|
|
12
|
+
export declare function buildVariableCells(options: BuildVariableCellsOptions): CellData[];
|
|
13
|
+
export declare function createVariableNode(operator: 'var' | 'val' | 'exists', path: string, defaultValue: JsonLogicValue | undefined, originalExpr: JsonLogicValue, parentInfo?: ParentInfo, scopeJump?: number, pathComponents?: string[]): LogicNode;
|
|
14
|
+
interface OperatorNodeOptions {
|
|
15
|
+
operator: string;
|
|
16
|
+
category: OperatorCategory;
|
|
17
|
+
label: string;
|
|
18
|
+
icon: IconName;
|
|
19
|
+
cells: CellData[];
|
|
20
|
+
collapsed?: boolean;
|
|
21
|
+
expressionText?: string;
|
|
22
|
+
expression: JsonLogicValue;
|
|
23
|
+
}
|
|
24
|
+
export declare function createOperatorNode(options: OperatorNodeOptions, parentInfo?: ParentInfo): LogicNode;
|
|
25
|
+
interface EdgeOptions {
|
|
26
|
+
source: string;
|
|
27
|
+
target: string;
|
|
28
|
+
sourceHandle?: string;
|
|
29
|
+
targetHandle?: string;
|
|
30
|
+
label?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
style?: Record<string, string>;
|
|
33
|
+
}
|
|
34
|
+
export declare function createEdge(options: EdgeOptions): LogicEdge;
|
|
35
|
+
export declare function createArgEdge(parentId: string, childId: string, argIndex: number): LogicEdge;
|
|
36
|
+
export declare function createBranchEdge(parentId: string, branchId: string, branchIndex: number, options?: {
|
|
37
|
+
label?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
style?: Record<string, string>;
|
|
40
|
+
}): LogicEdge;
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=node-factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-factory.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/node-factory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,SAAS,EAGT,gBAAgB,EAChB,QAAQ,EACT,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAMrD,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,cAAc,EACrB,UAAU,GAAE,UAAe,GAC1B,SAAS,CAgBX;AAGD,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAGD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,QAAQ,EAAE,CA4DjF;AAGD,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,QAAQ,EAClC,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,cAAc,GAAG,SAAS,EACxC,YAAY,EAAE,cAAc,EAC5B,UAAU,GAAE,UAAe,EAC3B,SAAS,CAAC,EAAE,MAAM,EAClB,cAAc,CAAC,EAAE,MAAM,EAAE,GACxB,SAAS,CAsBX;AAGD,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,cAAc,CAAC;CAC5B;AAGD,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,mBAAmB,EAC5B,UAAU,GAAE,UAAe,GAC1B,SAAS,CAqBX;AAGD,UAAU,WAAW;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAGD,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,CAwB1D;AAGD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,CAO5F;AAGD,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAO,GACnF,SAAS,CAQX"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LogicNodeData } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Convert panel values back to node data.
|
|
4
|
+
* Updates only the fields that can be edited via the panel.
|
|
5
|
+
*/
|
|
6
|
+
export declare function panelValuesToNodeData(currentData: LogicNodeData, panelValues: Record<string, unknown>): LogicNodeData;
|
|
7
|
+
/**
|
|
8
|
+
* Check if panel values have changed compared to node data
|
|
9
|
+
*/
|
|
10
|
+
export declare function havePanelValuesChanged(nodeData: LogicNodeData, panelValues: Record<string, unknown>): boolean;
|
|
11
|
+
//# sourceMappingURL=node-updaters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-updaters.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/node-updaters.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,aAAa,EAId,MAAM,UAAU,CAAC;AAGlB;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,aAAa,EAC1B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,aAAa,CAmBf;AA6KD;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,aAAa,EACvB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,OAAO,CAGT"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LogicNode } from '../types';
|
|
2
|
+
import { JsonLogicValue } from '../types/jsonlogic';
|
|
3
|
+
/**
|
|
4
|
+
* Convert a tree of visual nodes back to JSONLogic
|
|
5
|
+
* @param nodes The array of all nodes
|
|
6
|
+
* @returns The JSONLogic expression, or null if no root node
|
|
7
|
+
*/
|
|
8
|
+
export declare function nodesToJsonLogic(nodes: LogicNode[]): JsonLogicValue | null;
|
|
9
|
+
/**
|
|
10
|
+
* Get the root node from an array of nodes
|
|
11
|
+
*/
|
|
12
|
+
export declare function getRootNode(nodes: LogicNode[]): LogicNode | null;
|
|
13
|
+
//# sourceMappingURL=nodes-to-jsonlogic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes-to-jsonlogic.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/nodes-to-jsonlogic.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,SAAS,EAKV,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,cAAc,GAAG,IAAI,CAa1E;AA8TD;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,SAAS,GAAG,IAAI,CAGhE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../types';
|
|
2
|
+
import { ExpressionNode } from '../../types/trace';
|
|
3
|
+
import { ChildMatch } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Find the matching child node for an operand by comparing expressions.
|
|
6
|
+
* Uses deep equality to handle key ordering differences between JS and Rust's BTreeMap.
|
|
7
|
+
*/
|
|
8
|
+
export declare function findMatchingChild(operand: JsonLogicValue, children: ExpressionNode[], usedIndices: Set<number>): ChildMatch | null;
|
|
9
|
+
/**
|
|
10
|
+
* Get the next unused child (for positional matching when exact matching fails)
|
|
11
|
+
*/
|
|
12
|
+
export declare function getNextUnusedChild(children: ExpressionNode[], usedIndices: Set<number>): ChildMatch | null;
|
|
13
|
+
//# sourceMappingURL=child-matching.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"child-matching.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/trace/child-matching.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAsD1C;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,cAAc,EAAE,EAC1B,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,GACvB,UAAU,GAAG,IAAI,CAoBnB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,cAAc,EAAE,EAC1B,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,GACvB,UAAU,GAAG,IAAI,CAOnB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TracedResult } from '../../types/trace';
|
|
2
|
+
import { ValueType } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Convert trace node ID to string node ID
|
|
5
|
+
*/
|
|
6
|
+
export declare function traceIdToNodeId(id: number): string;
|
|
7
|
+
/**
|
|
8
|
+
* Build evaluation results map from trace execution steps
|
|
9
|
+
*/
|
|
10
|
+
export declare function buildEvaluationResultsFromTrace(trace: TracedResult): Map<string, {
|
|
11
|
+
value: unknown;
|
|
12
|
+
error: string | null;
|
|
13
|
+
type: ValueType;
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=evaluation-results.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluation-results.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/trace/evaluation-results.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,YAAY,GAClB,GAAG,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,CA6BxE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { traceToNodes } from './trace-to-nodes';
|
|
2
|
+
export { buildEvaluationResultsFromTrace, traceIdToNodeId } from './evaluation-results';
|
|
3
|
+
export type { TraceConversionResult, TraceToNodesOptions, TraceContext, ValueType, NodeType, ChildMatch, } from './types';
|
|
4
|
+
export { findMatchingChild, getNextUnusedChild } from './child-matching';
|
|
5
|
+
export { determineNodeType } from './node-type';
|
|
6
|
+
export { mapInlinedChildren } from './inline-mapping';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/trace/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,+BAA+B,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGxF,YAAY,EACV,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,UAAU,GACX,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ExpressionNode } from '../../types/trace';
|
|
2
|
+
/**
|
|
3
|
+
* Map all children of an expression node to a parent visual node ID (for inlined children)
|
|
4
|
+
*/
|
|
5
|
+
export declare function mapInlinedChildren(children: ExpressionNode[], parentVisualId: string, traceNodeMap: Map<string, string>): void;
|
|
6
|
+
//# sourceMappingURL=inline-mapping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-mapping.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/trace/inline-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,cAAc,EAAE,EAC1B,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAChC,IAAI,CASN"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../../types';
|
|
2
|
+
import { ExpressionNode } from '../../../types/trace';
|
|
3
|
+
import { ParentInfo } from '../../converters/types';
|
|
4
|
+
import { TraceContext } from '../types';
|
|
5
|
+
type ProcessExpressionNodeFn = (exprNode: ExpressionNode, context: TraceContext, parentInfo: ParentInfo, originalExpression?: JsonLogicValue) => string;
|
|
6
|
+
type CreateFallbackNodeFn = (nodeId: string, value: JsonLogicValue, context: TraceContext, parentInfo: ParentInfo) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Create a VerticalCellNode for if/else expressions from trace data
|
|
9
|
+
* Each condition and then value gets its own row for handle clarity
|
|
10
|
+
*/
|
|
11
|
+
export declare function createIfElseNodeFromTrace(nodeId: string, expression: JsonLogicValue, children: ExpressionNode[], context: TraceContext, parentInfo: ParentInfo, processExpressionNode: ProcessExpressionNodeFn, createFallbackNode: CreateFallbackNodeFn): void;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=if-else.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"if-else.d.ts","sourceRoot":"","sources":["../../../../../../src/components/logic-editor/utils/trace/node-creators/if-else.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EAGf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAY,MAAM,UAAU,CAAC;AAOvD,KAAK,uBAAuB,GAAG,CAC7B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,EACtB,kBAAkB,CAAC,EAAE,cAAc,KAChC,MAAM,CAAC;AAEZ,KAAK,oBAAoB,GAAG,CAC1B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,KACnB,IAAI,CAAC;AAEV;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,cAAc,EAC1B,QAAQ,EAAE,cAAc,EAAE,EAC1B,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,EACtB,qBAAqB,EAAE,uBAAuB,EAC9C,kBAAkB,EAAE,oBAAoB,GACvC,IAAI,CAqMN"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { createLiteralNodeFromTrace } from './literal';
|
|
2
|
+
export { createVariableNodeFromTrace } from './variable';
|
|
3
|
+
export { createOperatorNodeFromTrace } from './operator';
|
|
4
|
+
export { createVerticalCellNodeFromTrace } from './vertical-cell';
|
|
5
|
+
export { createIfElseNodeFromTrace } from './if-else';
|
|
6
|
+
export { createSwitchNodeFromTrace } from './switch';
|
|
7
|
+
export { createStructureNodeFromTrace } from './structure';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/logic-editor/utils/trace/node-creators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../../types';
|
|
2
|
+
import { ExpressionNode } from '../../../types/trace';
|
|
3
|
+
import { ParentInfo } from '../../converters/types';
|
|
4
|
+
import { TraceContext } from '../types';
|
|
5
|
+
/**
|
|
6
|
+
* Create a literal node from trace data
|
|
7
|
+
*/
|
|
8
|
+
export declare function createLiteralNodeFromTrace(nodeId: string, value: JsonLogicValue, children: ExpressionNode[], context: TraceContext, parentInfo: ParentInfo): void;
|
|
9
|
+
//# sourceMappingURL=literal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"literal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/logic-editor/utils/trace/node-creators/literal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EAEf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAK7C;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,cAAc,EACrB,QAAQ,EAAE,cAAc,EAAE,EAC1B,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,GACrB,IAAI,CA0BN"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../../types';
|
|
2
|
+
import { ExpressionNode } from '../../../types/trace';
|
|
3
|
+
import { ParentInfo } from '../../converters/types';
|
|
4
|
+
import { TraceContext } from '../types';
|
|
5
|
+
type ProcessExpressionNodeFn = (exprNode: ExpressionNode, context: TraceContext, parentInfo: ParentInfo, originalExpression?: JsonLogicValue) => string;
|
|
6
|
+
/**
|
|
7
|
+
* Create an operator node (single-arg or unary) from trace data
|
|
8
|
+
*/
|
|
9
|
+
export declare function createOperatorNodeFromTrace(nodeId: string, expression: JsonLogicValue, children: ExpressionNode[], context: TraceContext, parentInfo: ParentInfo, processExpressionNode: ProcessExpressionNodeFn): void;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=operator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../../../../../src/components/logic-editor/utils/trace/node-creators/operator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EAEf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAU7C,KAAK,uBAAuB,GAAG,CAC7B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,EACtB,kBAAkB,CAAC,EAAE,cAAc,KAChC,MAAM,CAAC;AAEZ;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,cAAc,EAC1B,QAAQ,EAAE,cAAc,EAAE,EAC1B,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,EACtB,qBAAqB,EAAE,uBAAuB,GAC7C,IAAI,CAiHN"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../../types';
|
|
2
|
+
import { ExpressionNode } from '../../../types/trace';
|
|
3
|
+
import { ParentInfo } from '../../converters/types';
|
|
4
|
+
import { TraceContext } from '../types';
|
|
5
|
+
type ProcessExpressionNodeFn = (exprNode: ExpressionNode, context: TraceContext, parentInfo: ParentInfo, originalExpression?: JsonLogicValue) => string;
|
|
6
|
+
type CreateFallbackNodeFn = (nodeId: string, value: JsonLogicValue, context: TraceContext, parentInfo: ParentInfo) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Create a structure node for data structures with embedded JSONLogic from trace data
|
|
9
|
+
*/
|
|
10
|
+
export declare function createStructureNodeFromTrace(nodeId: string, expression: JsonLogicValue, children: ExpressionNode[], context: TraceContext, parentInfo: ParentInfo, processExpressionNode: ProcessExpressionNodeFn, createFallbackNode: CreateFallbackNodeFn): void;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=structure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../../../../../../src/components/logic-editor/utils/trace/node-creators/structure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EAGf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAO7C,KAAK,uBAAuB,GAAG,CAC7B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,EACtB,kBAAkB,CAAC,EAAE,cAAc,KAChC,MAAM,CAAC;AAEZ,KAAK,oBAAoB,GAAG,CAC1B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,KACnB,IAAI,CAAC;AAyDV;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,cAAc,EAC1B,QAAQ,EAAE,cAAc,EAAE,EAC1B,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,EACtB,qBAAqB,EAAE,uBAAuB,EAC9C,kBAAkB,EAAE,oBAAoB,GACvC,IAAI,CAuGN"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../../types';
|
|
2
|
+
import { ExpressionNode } from '../../../types/trace';
|
|
3
|
+
import { ParentInfo } from '../../converters/types';
|
|
4
|
+
import { TraceContext } from '../types';
|
|
5
|
+
type ProcessExpressionNodeFn = (exprNode: ExpressionNode, context: TraceContext, parentInfo: ParentInfo, originalExpression?: JsonLogicValue) => string;
|
|
6
|
+
type CreateFallbackNodeFn = (nodeId: string, value: JsonLogicValue, context: TraceContext, parentInfo: ParentInfo) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Create a VerticalCellNode for switch/match expressions from trace data.
|
|
9
|
+
*
|
|
10
|
+
* JSON structure: {"switch": [discriminant, [[case1, result1], ...], default]}
|
|
11
|
+
*
|
|
12
|
+
* Visual layout mirrors if/else but with case/then pairs:
|
|
13
|
+
* Match → discriminant
|
|
14
|
+
* Case → case value (inline or branch)
|
|
15
|
+
* Then → result
|
|
16
|
+
* ...
|
|
17
|
+
* Default → default value
|
|
18
|
+
*/
|
|
19
|
+
export declare function createSwitchNodeFromTrace(nodeId: string, expression: JsonLogicValue, children: ExpressionNode[], context: TraceContext, parentInfo: ParentInfo, processExpressionNode: ProcessExpressionNodeFn, createFallbackNode: CreateFallbackNodeFn): void;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../../../src/components/logic-editor/utils/trace/node-creators/switch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EAGf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAS7C,KAAK,uBAAuB,GAAG,CAC7B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,EACtB,kBAAkB,CAAC,EAAE,cAAc,KAChC,MAAM,CAAC;AAEZ,KAAK,oBAAoB,GAAG,CAC1B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,KACnB,IAAI,CAAC;AAEV;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,cAAc,EAC1B,QAAQ,EAAE,cAAc,EAAE,EAC1B,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,EACtB,qBAAqB,EAAE,uBAAuB,EAC9C,kBAAkB,EAAE,oBAAoB,GACvC,IAAI,CAkMN"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../../types';
|
|
2
|
+
import { ExpressionNode } from '../../../types/trace';
|
|
3
|
+
import { ParentInfo } from '../../converters/types';
|
|
4
|
+
import { TraceContext } from '../types';
|
|
5
|
+
/**
|
|
6
|
+
* Create a variable node from trace data
|
|
7
|
+
*/
|
|
8
|
+
export declare function createVariableNodeFromTrace(nodeId: string, expression: JsonLogicValue, children: ExpressionNode[], context: TraceContext, parentInfo: ParentInfo): void;
|
|
9
|
+
//# sourceMappingURL=variable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/logic-editor/utils/trace/node-creators/variable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EAEf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,cAAc,EAC1B,QAAQ,EAAE,cAAc,EAAE,EAC1B,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,GACrB,IAAI,CAqDN"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../../types';
|
|
2
|
+
import { ExpressionNode } from '../../../types/trace';
|
|
3
|
+
import { ParentInfo } from '../../converters/types';
|
|
4
|
+
import { TraceContext } from '../types';
|
|
5
|
+
type ProcessExpressionNodeFn = (exprNode: ExpressionNode, context: TraceContext, parentInfo: ParentInfo, originalExpression?: JsonLogicValue) => string;
|
|
6
|
+
type CreateFallbackNodeFn = (nodeId: string, value: JsonLogicValue, context: TraceContext, parentInfo: ParentInfo) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Create a vertical cell node for multi-arg operators from trace data
|
|
9
|
+
*/
|
|
10
|
+
export declare function createVerticalCellNodeFromTrace(nodeId: string, expression: JsonLogicValue, children: ExpressionNode[], context: TraceContext, parentInfo: ParentInfo, processExpressionNode: ProcessExpressionNodeFn, createFallbackNode: CreateFallbackNodeFn): void;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=vertical-cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vertical-cell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/logic-editor/utils/trace/node-creators/vertical-cell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EAGf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAa7C,KAAK,uBAAuB,GAAG,CAC7B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,EACtB,kBAAkB,CAAC,EAAE,cAAc,KAChC,MAAM,CAAC;AAEZ,KAAK,oBAAoB,GAAG,CAC1B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,KACnB,IAAI,CAAC;AAEV;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,cAAc,EAC1B,QAAQ,EAAE,cAAc,EAAE,EAC1B,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,UAAU,EACtB,qBAAqB,EAAE,uBAAuB,EAC9C,kBAAkB,EAAE,oBAAoB,GACvC,IAAI,CAyGN"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JsonLogicValue } from '../../types';
|
|
2
|
+
import { NodeType } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Determine what kind of node to create based on expression
|
|
5
|
+
*/
|
|
6
|
+
export declare function determineNodeType(expr: JsonLogicValue, templating: boolean): NodeType;
|
|
7
|
+
//# sourceMappingURL=node-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-type.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/trace/node-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,OAAO,GAAG,QAAQ,CAgBrF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TracedResult } from '../../types/trace';
|
|
2
|
+
import { TraceConversionResult, TraceToNodesOptions } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Main conversion function: Convert trace data to visual nodes and edges
|
|
5
|
+
*/
|
|
6
|
+
export declare function traceToNodes(trace: TracedResult, options?: TraceToNodesOptions): TraceConversionResult;
|
|
7
|
+
//# sourceMappingURL=trace-to-nodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace-to-nodes.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/trace/trace-to-nodes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,mBAAmB,CAAC;AAEtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAgB,MAAM,SAAS,CAAC;AAaxF;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,GAAE,mBAAwB,GAAG,qBAAqB,CAyB1G"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ConversionResult, JsonLogicValue, LogicNode, LogicEdge } from '../../types';
|
|
2
|
+
import { ExpressionNode } from '../../types/trace';
|
|
3
|
+
export interface TraceConversionResult extends ConversionResult {
|
|
4
|
+
traceNodeMap: Map<string, string>;
|
|
5
|
+
}
|
|
6
|
+
export interface TraceToNodesOptions {
|
|
7
|
+
/** Enable templating mode (multi-key objects compile to output-shaping templates with embedded JSONLogic). */
|
|
8
|
+
templating?: boolean;
|
|
9
|
+
/** Original expression value - used to preserve key ordering in structure nodes */
|
|
10
|
+
originalValue?: JsonLogicValue;
|
|
11
|
+
}
|
|
12
|
+
export interface TraceContext {
|
|
13
|
+
nodes: LogicNode[];
|
|
14
|
+
edges: LogicEdge[];
|
|
15
|
+
traceNodeMap: Map<string, string>;
|
|
16
|
+
templating: boolean;
|
|
17
|
+
}
|
|
18
|
+
export type ValueType = 'boolean' | 'number' | 'string' | 'null' | 'array' | 'object' | 'undefined';
|
|
19
|
+
export type NodeType = 'operator' | 'literal' | 'structure';
|
|
20
|
+
export interface ChildMatch {
|
|
21
|
+
child: ExpressionNode;
|
|
22
|
+
index: number;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/logic-editor/utils/trace/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AAGD,MAAM,WAAW,mBAAmB;IAClC,8GAA8G;IAC9G,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mFAAmF;IACnF,aAAa,CAAC,EAAE,cAAc,CAAC;CAChC;AAGD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,UAAU,EAAE,OAAO,CAAC;CACrB;AAGD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;AAGpG,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC;AAG5D,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,cAAc,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Node } from '@xyflow/react';
|
|
2
|
+
import { LogicNode, OperatorNodeData, LiteralNodeData, StructureNodeData } from '../types';
|
|
3
|
+
export declare function isOperatorNode(node: LogicNode): node is Node<OperatorNodeData>;
|
|
4
|
+
export declare function isLiteralNode(node: LogicNode): node is Node<LiteralNodeData>;
|
|
5
|
+
export declare function isStructureNode(node: LogicNode): node is Node<StructureNodeData>;
|
|
6
|
+
export declare function isCollapsibleNode(node: LogicNode): node is Node<OperatorNodeData>;
|
|
7
|
+
export declare function getOperatorNodeData(node: LogicNode): OperatorNodeData | null;
|
|
8
|
+
//# sourceMappingURL=type-guards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/type-guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAGlB,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,IAAI,IAAI,CAAC,gBAAgB,CAAC,CAE9E;AAGD,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,IAAI,IAAI,CAAC,eAAe,CAAC,CAE5E;AAGD,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,IAAI,IAAI,CAAC,iBAAiB,CAAC,CAEhF;AAGD,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,SAAS,GACd,IAAI,IAAI,IAAI,CAAC,gBAAgB,CAAC,CAEhC;AAGD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,GAAG,gBAAgB,GAAG,IAAI,CAE5E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JsonLogicValue, LiteralNodeData } from '../types';
|
|
2
|
+
export declare function isPlainObject(value: unknown): value is Record<string, unknown>;
|
|
3
|
+
export declare function isJsonLogicExpression(value: unknown): boolean;
|
|
4
|
+
export declare function isDataStructure(value: unknown): boolean;
|
|
5
|
+
export declare function getValueType(value: JsonLogicValue): LiteralNodeData['valueType'];
|
|
6
|
+
export declare function looksLikeDate(str: string): boolean;
|
|
7
|
+
export declare function isSimpleOperand(operand: JsonLogicValue): boolean;
|
|
8
|
+
export declare function getValueColorClass(value: unknown): string;
|
|
9
|
+
//# sourceMappingURL=type-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-helpers.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/type-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhE,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAE9E;AAGD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAI7D;AAID,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAavD;AAGD,wBAAgB,YAAY,CAAC,KAAK,EAAE,cAAc,GAAG,eAAe,CAAC,WAAW,CAAC,CAOhF;AAGD,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAQlD;AAKD,wBAAgB,eAAe,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAchE;AAGD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAWzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visibility.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/visibility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAuC,MAAM,UAAU,CAAC;AAkC/E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CA2ChE"}
|