@goplasmatic/datalogic-ui 4.0.21 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -15
- package/dist/components/logic-editor/AutoFitView.d.ts +7 -0
- package/dist/components/logic-editor/AutoFitView.d.ts.map +1 -1
- package/dist/components/logic-editor/DataLogicEditor.d.ts +1 -1
- package/dist/components/logic-editor/DataLogicEditor.d.ts.map +1 -1
- package/dist/components/logic-editor/EditorToolbar.d.ts +6 -3
- package/dist/components/logic-editor/EditorToolbar.d.ts.map +1 -1
- package/dist/components/logic-editor/UndoRedoToolbar.d.ts +1 -1
- package/dist/components/logic-editor/UndoRedoToolbar.d.ts.map +1 -1
- package/dist/components/logic-editor/config/operators/utility.d.ts.map +1 -1
- package/dist/components/logic-editor/constants/index.d.ts +1 -1
- package/dist/components/logic-editor/constants/index.d.ts.map +1 -1
- package/dist/components/logic-editor/constants/layout.d.ts +13 -4
- package/dist/components/logic-editor/constants/layout.d.ts.map +1 -1
- package/dist/components/logic-editor/context/ConnectedHandlesContext.d.ts +1 -1
- package/dist/components/logic-editor/context/ConnectedHandlesContext.d.ts.map +1 -1
- package/dist/components/logic-editor/context/DirectionContextDef.d.ts +11 -0
- package/dist/components/logic-editor/context/DirectionContextDef.d.ts.map +1 -0
- package/dist/components/logic-editor/context/debugger/DebuggerProvider.d.ts +1 -1
- package/dist/components/logic-editor/context/debugger/DebuggerProvider.d.ts.map +1 -1
- package/dist/components/logic-editor/context/editor/EditorContext.d.ts +1 -1
- package/dist/components/logic-editor/context/editor/EditorContext.d.ts.map +1 -1
- package/dist/components/logic-editor/context/editor/useClipboardState.d.ts.map +1 -1
- package/dist/components/logic-editor/context/editor/useHistoryState.d.ts.map +1 -1
- package/dist/components/logic-editor/context/index.d.ts +2 -0
- package/dist/components/logic-editor/context/index.d.ts.map +1 -1
- package/dist/components/logic-editor/context/useDirection.d.ts +6 -0
- package/dist/components/logic-editor/context/useDirection.d.ts.map +1 -0
- package/dist/components/logic-editor/context-menu/CanvasContextMenu.d.ts +1 -1
- package/dist/components/logic-editor/context-menu/CanvasContextMenu.d.ts.map +1 -1
- package/dist/components/logic-editor/context-menu/ContextMenu.d.ts +1 -1
- package/dist/components/logic-editor/context-menu/ContextMenu.d.ts.map +1 -1
- package/dist/components/logic-editor/debugger-controls/DebuggerControls.d.ts +2 -2
- package/dist/components/logic-editor/debugger-controls/DebuggerControls.d.ts.map +1 -1
- package/dist/components/logic-editor/edges/EdgeOperatorPicker.d.ts +1 -1
- package/dist/components/logic-editor/edges/EdgeOperatorPicker.d.ts.map +1 -1
- package/dist/components/logic-editor/edges/EditableEdge.d.ts +1 -1
- package/dist/components/logic-editor/edges/EditableEdge.d.ts.map +1 -1
- package/dist/components/logic-editor/edges/index.d.ts +1 -1
- package/dist/components/logic-editor/hooks/index.d.ts +1 -1
- package/dist/components/logic-editor/hooks/index.d.ts.map +1 -1
- package/dist/components/logic-editor/hooks/useLogicEditor.d.ts +6 -3
- package/dist/components/logic-editor/hooks/useLogicEditor.d.ts.map +1 -1
- package/dist/components/logic-editor/hooks/useWasmEvaluator.d.ts +8 -3
- package/dist/components/logic-editor/hooks/useWasmEvaluator.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/CellHandles.d.ts +1 -1
- package/dist/components/logic-editor/nodes/CellHandles.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/CellRow.d.ts +1 -1
- package/dist/components/logic-editor/nodes/CellRow.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/DebugInfoBubble.d.ts +1 -1
- package/dist/components/logic-editor/nodes/DebugInfoBubble.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/LiteralNode.d.ts +1 -1
- package/dist/components/logic-editor/nodes/LiteralNode.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/StructureNode.d.ts +1 -1
- package/dist/components/logic-editor/nodes/StructureNode.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/UnifiedOperatorNode.d.ts +1 -1
- package/dist/components/logic-editor/nodes/UnifiedOperatorNode.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/shared/CollapseToggleButton.d.ts +1 -1
- package/dist/components/logic-editor/nodes/shared/CollapseToggleButton.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/shared/NodeDebugBubble.d.ts +1 -1
- package/dist/components/logic-editor/nodes/shared/NodeDebugBubble.d.ts.map +1 -1
- package/dist/components/logic-editor/nodes/shared/NodeInputHandles.d.ts +6 -3
- package/dist/components/logic-editor/nodes/shared/NodeInputHandles.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/BooleanInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/BooleanInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/ExpressionInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/ExpressionInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/JsonInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/JsonInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/NumberInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/NumberInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/PathArrayInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/PathArrayInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/PathInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/PathInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/SelectInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/SelectInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/TextAreaInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/TextAreaInput.d.ts.map +1 -1
- package/dist/components/logic-editor/panel-inputs/TextInput.d.ts +1 -1
- package/dist/components/logic-editor/panel-inputs/TextInput.d.ts.map +1 -1
- package/dist/components/logic-editor/properties-panel/ArgumentItem.d.ts +1 -1
- package/dist/components/logic-editor/properties-panel/ArgumentItem.d.ts.map +1 -1
- package/dist/components/logic-editor/properties-panel/ArgumentsSection.d.ts +1 -1
- package/dist/components/logic-editor/properties-panel/ArgumentsSection.d.ts.map +1 -1
- package/dist/components/logic-editor/properties-panel/HelpSection.d.ts +1 -1
- package/dist/components/logic-editor/properties-panel/HelpSection.d.ts.map +1 -1
- package/dist/components/logic-editor/properties-panel/PropertiesPanel.d.ts +1 -1
- package/dist/components/logic-editor/properties-panel/PropertiesPanel.d.ts.map +1 -1
- package/dist/components/logic-editor/types/editor.d.ts +18 -6
- package/dist/components/logic-editor/types/editor.d.ts.map +1 -1
- package/dist/components/logic-editor/types/index.d.ts +1 -1
- package/dist/components/logic-editor/types/index.d.ts.map +1 -1
- package/dist/components/logic-editor/types/trace.d.ts +22 -0
- package/dist/components/logic-editor/types/trace.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/ExpressionSyntax.d.ts +1 -1
- package/dist/components/logic-editor/utils/ExpressionSyntax.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/converters/if-else-converter.d.ts +6 -0
- package/dist/components/logic-editor/utils/converters/if-else-converter.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/converters/operator-converter.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/converters/types.d.ts +2 -2
- package/dist/components/logic-editor/utils/converters/types.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/edge-builder.d.ts +5 -4
- package/dist/components/logic-editor/utils/edge-builder.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/formatting/arg-summary.d.ts +7 -0
- package/dist/components/logic-editor/utils/formatting/arg-summary.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/formatting/index.d.ts +1 -1
- package/dist/components/logic-editor/utils/formatting/index.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/inline-vars.d.ts +15 -0
- package/dist/components/logic-editor/utils/inline-vars.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/jsonlogic-to-nodes.d.ts +2 -2
- package/dist/components/logic-editor/utils/jsonlogic-to-nodes.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/layout.d.ts +2 -1
- package/dist/components/logic-editor/utils/layout.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/node-factory.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/nodeShape.d.ts +23 -0
- package/dist/components/logic-editor/utils/nodeShape.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/signal.d.ts +10 -0
- package/dist/components/logic-editor/utils/signal.d.ts.map +1 -0
- package/dist/components/logic-editor/utils/trace/node-creators/if-else.d.ts +4 -2
- package/dist/components/logic-editor/utils/trace/node-creators/if-else.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/trace/node-creators/variable.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/trace/node-creators/vertical-cell.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/trace/node-type.d.ts +1 -1
- package/dist/components/logic-editor/utils/trace/node-type.d.ts.map +1 -1
- package/dist/components/logic-editor/utils/trace/types.d.ts +3 -3
- package/dist/components/logic-editor/utils/trace/types.d.ts.map +1 -1
- package/dist/datalogic_wasm-BOuSyKtI.cjs +1148 -0
- package/dist/datalogic_wasm-Dloh5u2g.js +1145 -0
- package/dist/index.cjs +3296 -2323
- package/dist/index.js +3298 -2325
- package/dist/styles.css +1380 -474
- package/package.json +50 -41
- package/dist/datalogic_wasm-Ckkdrc0z.cjs +0 -383
- package/dist/datalogic_wasm-daWVf40b.js +0 -380
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OperatorCategory } from '../config/operators.types';
|
|
2
|
+
import { CellData, OperatorNodeData } from '../types';
|
|
3
|
+
export type NodeShape = 'tap' | 'gate' | 'arith' | 'branch' | 'iterator' | 'quantifier' | 'value';
|
|
4
|
+
export declare function shapeForOperator(operator: string, category?: OperatorCategory): NodeShape;
|
|
5
|
+
/** Whether a shape produces a boolean and should carry a truth LED. */
|
|
6
|
+
export declare function shapeHasLed(shape: NodeShape): boolean;
|
|
7
|
+
/** The compact glyph to show for an operator (math symbol or shortLabel). */
|
|
8
|
+
export declare function glyphForOperator(operator: string): string;
|
|
9
|
+
export type PillType = 'tap' | 'num' | 'str' | 'bool' | 'coll' | 'temp' | 'nul' | 'expr';
|
|
10
|
+
/** Infer the pill (signal) type of an operand from its displayed text. */
|
|
11
|
+
export declare function pillTypeForText(text: string | undefined): PillType;
|
|
12
|
+
/** Pill type for a wired child's output, from its ArgSummary `valueType`. */
|
|
13
|
+
export declare function pillForValueType(valueType: string | undefined): PillType;
|
|
14
|
+
/** A cell that wires out to its own child node + edge (vs. an inline value). */
|
|
15
|
+
export declare function isWiredCell(cell: CellData): boolean;
|
|
16
|
+
/** Whether any cell hosts a computed sub-expression (its own handle). */
|
|
17
|
+
export declare function hasChildCell(cells: CellData[]): boolean;
|
|
18
|
+
export type RenderKind = 'tap' | 'infix-gate' | 'infix-arith' | 'card' | 'gate-shape' | 'decision';
|
|
19
|
+
/** How an operator node renders — see the branches in UnifiedOperatorNode. */
|
|
20
|
+
export declare function operatorRenderKind(data: Pick<OperatorNodeData, 'operator' | 'category' | 'cells'>): RenderKind;
|
|
21
|
+
/** Display text of an operand cell (summary for wired, value/label for inline). */
|
|
22
|
+
export declare function cellDisplayText(cell: CellData): string;
|
|
23
|
+
//# sourceMappingURL=nodeShape.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeShape.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/nodeShape.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE3D,MAAM,MAAM,SAAS,GACjB,KAAK,GACL,MAAM,GACN,OAAO,GACP,QAAQ,GACR,UAAU,GACV,YAAY,GACZ,OAAO,CAAC;AAIZ,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAWzF;AAED,uEAAuE;AACvE,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAErD;AAYD,6EAA6E;AAC7E,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGzD;AAED,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;AAOzF,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAYlE;AAED,6EAA6E;AAC7E,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAUxE;AASD,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAEnD;AAED,yEAAyE;AACzE,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAIvD;AAED,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,YAAY,GAAG,aAAa,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;AAEnG,8EAA8E;AAC9E,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC,GAC9D,UAAU,CA8BZ;AAED,mFAAmF;AACnF,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAItD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OperatorCategory } from '../config/operators.types';
|
|
2
|
+
import { LiteralNodeData } from '../types';
|
|
3
|
+
export type SignalKey = 'bool-true' | 'bool-false' | 'bool-rest' | 'number' | 'string' | 'collection' | 'data' | 'temporal' | 'null';
|
|
4
|
+
/** Signal for an operator node, from its returnType (falling back to category). */
|
|
5
|
+
export declare function signalForOperator(operator: string, category?: OperatorCategory): SignalKey;
|
|
6
|
+
/** Signal for a literal, from its value type. */
|
|
7
|
+
export declare function signalForLiteral(valueType: LiteralNodeData['valueType']): SignalKey;
|
|
8
|
+
/** The `--sig-*` CSS variable reference for a signal key. */
|
|
9
|
+
export declare function signalVar(key: SignalKey): string;
|
|
10
|
+
//# sourceMappingURL=signal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signal.d.ts","sourceRoot":"","sources":["../../../../src/components/logic-editor/utils/signal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,SAAS,GACjB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,UAAU,GACV,MAAM,CAAC;AAeX,mFAAmF;AACnF,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,gBAAgB,GAC1B,SAAS,CAWX;AAED,iDAAiD;AACjD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,eAAe,CAAC,WAAW,CAAC,GAAG,SAAS,CASnF;AAED,6DAA6D;AAC7D,wBAAgB,SAAS,CAAC,GAAG,EAAE,SAAS,GAAG,MAAM,CAEhD"}
|
|
@@ -5,8 +5,10 @@ import { TraceContext } from '../types';
|
|
|
5
5
|
type ProcessExpressionNodeFn = (exprNode: ExpressionNode, context: TraceContext, parentInfo: ParentInfo, originalExpression?: JsonLogicValue) => string;
|
|
6
6
|
type CreateFallbackNodeFn = (nodeId: string, value: JsonLogicValue, context: TraceContext, parentInfo: ParentInfo) => void;
|
|
7
7
|
/**
|
|
8
|
-
* Create a
|
|
9
|
-
*
|
|
8
|
+
* Create a CHAIN of decision-diamond nodes for an if/then/else from trace data —
|
|
9
|
+
* one diamond per condition (when / then / else), the else input chaining into
|
|
10
|
+
* the next diamond for each else-if. The first diamond keeps the trace node id so
|
|
11
|
+
* its debug mapping is preserved.
|
|
10
12
|
*/
|
|
11
13
|
export declare function createIfElseNodeFromTrace(nodeId: string, expression: JsonLogicValue, children: ExpressionNode[], context: TraceContext, parentInfo: ParentInfo, processExpressionNode: ProcessExpressionNodeFn, createFallbackNode: CreateFallbackNodeFn): void;
|
|
12
14
|
export {};
|
|
@@ -1 +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;
|
|
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;AASvD,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;;;;;GAKG;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,CA2HN"}
|
|
@@ -1 +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;
|
|
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;AAK7C;;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"}
|
|
@@ -1 +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;
|
|
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;AAc7C,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,CA+GN"}
|
|
@@ -3,5 +3,5 @@ import { NodeType } from './types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Determine what kind of node to create based on expression
|
|
5
5
|
*/
|
|
6
|
-
export declare function determineNodeType(expr: JsonLogicValue,
|
|
6
|
+
export declare function determineNodeType(expr: JsonLogicValue, templating: boolean): NodeType;
|
|
7
7
|
//# sourceMappingURL=node-type.d.ts.map
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -4,8 +4,8 @@ export interface TraceConversionResult extends ConversionResult {
|
|
|
4
4
|
traceNodeMap: Map<string, string>;
|
|
5
5
|
}
|
|
6
6
|
export interface TraceToNodesOptions {
|
|
7
|
-
/** Enable
|
|
8
|
-
|
|
7
|
+
/** Enable templating mode (multi-key objects compile to output-shaping templates with embedded JSONLogic). */
|
|
8
|
+
templating?: boolean;
|
|
9
9
|
/** Original expression value - used to preserve key ordering in structure nodes */
|
|
10
10
|
originalValue?: JsonLogicValue;
|
|
11
11
|
}
|
|
@@ -13,7 +13,7 @@ export interface TraceContext {
|
|
|
13
13
|
nodes: LogicNode[];
|
|
14
14
|
edges: LogicEdge[];
|
|
15
15
|
traceNodeMap: Map<string, string>;
|
|
16
|
-
|
|
16
|
+
templating: boolean;
|
|
17
17
|
}
|
|
18
18
|
export type ValueType = 'boolean' | 'number' | 'string' | 'null' | 'array' | 'object' | 'undefined';
|
|
19
19
|
export type NodeType = 'operator' | 'literal' | 'structure';
|
|
@@ -1 +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,
|
|
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"}
|