All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Replaced
value
slotrow
/col
slot props withlabels
slot prop This new slot prop gathersrow
/col
and adds field data, allowing cell value rendering based on field keys.
- Replaced custom
HashTable
withManyKeysMap
Pivot
andPivotTable
have a newreducerInitialValue
prop to allow complex reducers (same API as JSArray.reduce()
)
- Reduced build size by half by using
lodash-es
and importing only required functions
Nothing new - failed npm publish 1.1.1
- Replaced browser library
export default
withexport function install
- The project has no more lint issues
- The project now uses vue-cli 3 instead of custom webpack config files
Pivot
andPivotTable
import changed: From:import Pivot from '@marketconnect/vue-pivot-table'
To:import { Pivot } from '@click2buy/vue-pivot-table'
Pivot
componentfields
,row-fields
andcol-fields
props were replaced by a globalfields
prop andavailable-field-keys
,row-field-keys
,col-field-keys
props to affect fields to each draggable area of the Pivot- Internal
rows
/cols
now use Arrays instead of Objects withrow-${index}
/col-${index}
keys,valuesHashTable
keys were also updated - The
value
slot now receivesrow
/col
as Arrays
Pivot
: dropdown on fields to allow user configuration:- Field header attributes filter
- Field values filter
Pivot
field label slot
- This CHANGELOG file to help keeping up with latest updates
headerSlotsNames
andfooterSlotsNames
props onfields
definition. This allows to generate multiple levels of header/footer for a single field. For example, for a "Country" field you can generate a header with the name, and a second header with the flag of the country.
col
androw
params to thevalue
slot to allow value customization based on specific column/row
computing
slot to display user feedback while the aggregations for table values are running
- Previous implementation was iterating over data multiple times, cols and rows are now computed at the same time as values (therefore iterating over data only once)
- Values hash now uses a HashTable (class defined in a separate file), and the table keys are objects without required order
- Cols and rows are now sorted in computed properties, and use thenBy.js which improves readability
- Computations are done in a task created with
setTimeout
(kind of dirty but no alternative) which avoids blocking js execution and allows user feedback
First release