Changelog
All notable changes to the kampmann-calcgateway-frontend (calc-interface) package.
0.0.35
Added
- Reduced calc state — introduced the
ReducedStatemodel and threaded it through the utility functions and state initialization, enabling a compact, serializable representation of the calc interface state (#57). - Accessory state —
ReducedCalcStatenow supports calculable and non-calculable accessory states. - Color comments / paint mode — color-based comment handling on the
CalculationTable:calculationTableColorCommentssupport in the model and anaddColorCommentsToStatehelper.- A
requestDataToCommentsutility integrated withinitState, plus request-data generation that uses the dynamic product ID. - A
PaintButtonand floating-button UI for entering/editing comments. - A
paintModeprop onProductDataTableand selected-cell syncing against calculation results (#1043, #1062).
KapiLinkcomponent — generates localized product links.ReducedState-backed state handling.CalculationTabletab control — added aninitialTabprop and tab initialization logic that falls back tocalculationResults.AccessoryForm— added areducedCallbackand integrated the initial colors state.- Parameter-set overlap selection — on init, auto-select the
InputParameterSetwhose input values best overlap the persistedinitState; an explicit selection ininitStateis respected and only the absence of one triggers the heuristic. Added as pure, unit-tested helpers with a Vitest setup for the package. - Init warnings — surface warnings when an
initStatevalue is missing from the parameter set or was overridden by a dependency (#1294). - Single calc point — collapse multi-point control-voltage inputs to a single
representative value via
applySingleCalcPoint, replacing the redundantonlyOneControlVoltagelogic (#1257). useDynamicInputParameterSethook for dynamic input parameter sets (#1123).- Button icons and refined button label markup (#1147).
- Single-CV mode expansion — pending CV state management for single calc
point mode across components, single-CV mode enabled for categories with
specific numeric-suffix keys, and a
showAllCVSlidersconfig option to toggle the visibility of disabled CV sliders in single-CV mode (documented alongsideuseSingleCalcPoint). TESTSYSTEMUI control — addedTESTSYSTEMto theUIControlsenum.- Belgium & Luxembourg regions — added the
BEandLUregions. - Value highlighting — optional
IsHighlightedproperty on theCalculationResponsetypes, withProductDataTableconditionally applying highlight table styles; bundled the Circular (CircularXXWeb) font assets (#1432).
Changed
- Improved
CalculationTablestate handling for more reliable tab management. - Adjusted
PaintButtonclass names and button styles for visual consistency and better UX. - Refactored state initialization: callback wrapping and optimized reduced-state updates.
- Optimized string-value handling in
ProductDataTablefor consistent output (#1254). - Parameter-set scoring — refined scoring and selection: introduced
ParameterSetScore(trackingmissing/excessmismatches) andweighParameterSetScorefor weighted divergence, and updatedpickDefaultParameterSetIndexto prioritize the least-divergent set (#1388). KapiLinkexport — theKapiLinkcomponent and its types are now exported from the package.CalculationTablestyling — restored the Circular font definitions and.performanceTableBodystyles and refactoredProductDataTableformatting (#1432).
Fixed
- Scope category updates to the specific group key.
- Correct the category-group
Lengthproperty and update the API proxy target. - Use the adjacent config when configuring the accessory modal.
- Correct the language check in
displayDecimal. - Variant table aggregation (#1096).
Build
- Switch the package to a
workspace:*dependency and refactor calc-related typings for the monorepo. - Upgrade Vite to 7.3.2 and mathjs to 15.2.0 (#906).