@oge-ui/pivot-engine
v1.1.10
Published
Framework-free pivot grid engine behind @oge-ui/pivot (Angular) and @oge-ui/react-pivot (React): field layout model, axis and header layout math, two-axis virtualization windows, the remote-store adapter, header and measure menus, value filters, the field
Maintainers
Readme
@oge-ui/pivot-engine
The framework-free engine of the OGE UI pivot grid: plain TypeScript, no
Angular or React import anywhere. Both render layers run it —
@oge-ui/pivot (Angular) and
@oge-ui/react-pivot
(React) — so a pivot behaves identically whichever framework draws it.
Source-available commercial license — free for evaluation and development, a paid license is required for production use. See LICENSE.
You rarely install this package directly: both render packages depend on it.
What's inside
OgePivotGridCore— the whole pivot grid below the template: field layout resolution (declared fields + user overrides), the local-engine / remote-store split with abortable loads, axis lines and multi-row column header layout, two-axis virtualization windows, cell text and thecustomizeCellhook, one roving tab stop over headers and cells, pointer drag of field chips (fieldPointerDown, long press on touch) plus the field menu and chip keyboard that run the samemoveFieldTo, polite move announcements, the header and measure context menus, the distinct-value filter popup, the field chooser (live or draft), persistence snapshots and CSV export.OgePivotStateCore— field-layout overrides, the expansion of both axes and the field-panel flag, on a pluggable reactivity adapter (signal()in Angular, a versioned store in React).- Pure helpers —
pivotFieldConfigOf,buildPivotLoadOptions,pivotResultFromPayload,pivotColumnHeaderCells,pivotRowWindow,pivotMatrixKeyTargetand friends — each unit-tested on its own. - Analysis helpers —
toChartSeries(result)(the current view as plaindataSource+ series for@oge-ui/charts; no charts dependency), the calculated-field evaluator behindcalculatedFieldsandapplyPivotMemberFilters(label / value / Top-N filters before aggregation). OGE_DEFAULT_PIVOT_MESSAGES— the message catalog both layers localize.@oge-ui/pivot-engine/export-excel—buildPivotWorkbook, the.xlsxbuilder with merged multi-level headers (exceljsis an optional peer).@oge-ui/pivot-engine/export-pdf—buildPivotPdfDocument/downloadPivotPdf(jspdf+jspdf-autotableoptional peers; Unicode text through anOgePdfFont).
The aggregation itself (PivotEngine, PivotFieldConfig, the
OgePivotStore remote contract) is MIT and lives in
@oge-ui/core.
