Skip to main content

Module pivot_melt_modal

Module pivot_melt_modal 

Source
Expand description

Pivot & Melt builder state: a form of rows, each edited through one Picker scoped to that row alone, and the live preview of the spec it stages. The spec is echoed live; Enter applies it.

Structs§

MeltSpec
Spec for melt operation.
PivotMeltModal
PivotSpec
Spec for pivot operation.
PreviewFrame
What a preview found: the first rows of the result, and its shape.
PreviewInput
The head of the view the preview runs over.
ReshapePreview
The builder’s live preview: the head it runs over, the request in flight, and the last answer. Requests are numbered; one runs at a time, and an edit made while it runs is previewed when it ends, so typing never piles up workers.
ReshapeSource
What a pivot or melt ran over: the query, filters and sort in effect when it was applied. A view replays these before the reshape.

Enums§

MeltTypeFilter
Type filter for Melt “by type”.
MeltValueStrategy
Melt value-column strategy.
PivotAggregation
Aggregation for pivot value column.
PivotMeltFocus
Focus: the tab bar, or one row of the active tab’s form.
PivotMeltTab
PreviewSpec
A staged reshape the preview runs: what Enter would apply.

Constants§

PREVIEW_INPUT_ROWS
Rows of the view the preview reshapes. Small enough that every edit reruns it at once; the head is read once per opening of the builder.
PREVIEW_ROWS
Rows of the result the preview keeps to draw.
PREVIEW_WIDE_PIVOT
New columns past which the preview warns that a pivot is wide.

Functions§

run_preview
spec run over input, in memory: the preview’s worker.