All notable changes to this project will be documented in this file.
v1.4.2 (2024-11-26)
- Fix typo in flexbox/Cell.SetMinHeight
Cell.SetMinHeigth
is now deprecated in favour of SetMinHeight.
v1.4.1 (2024-10-21)
- Added
OrderByAsc
andOrderByDesc
methods toTable
#12 @drmille2
OrderByColumn
is deprecated byOrderByAsc
andOrderByDesc
methods. #12 @drmille2
- Updated Go to version
1.23
- Updated
github.com/charmbracelet/lipgloss
tov0.13.0
- Updated
github.com/charmbracelet/bubbletea
tov1.1.1
- Updated
github.com/gocarina/gocsv
to78e41c74b4b1
v1.4.0 (2024-09-11)
- Moved
flexbox
andtable
into separate packages,github.com/76creates/stickers/flexbox
andgithub.com/76creates/stickers/table
respectively. #10 @jon4hz
- Minor lexical fixes
- Fixed repo tags to match go semver format.
- Updated
github.com/charmbracelet/lipgloss
to `v0.6.0'
- Added
SetStylePassing
to Table that will pass down the style all the way, from box to cell. No granularity for now. - Added
HorizontalFlexBox
. #10 @jon4hz
- Refactored
FlexBox.GetRow
,FlexBox.Row
,FlexBox.MustGetRow
,FlexBoxRow.Cell
,FlexBoxRow.GetCellWithID
,FlexBoxRow.MustGetCellWithIndex
.
They are replaced withFlexBoxRow.GetCell
,FlexBoxRow.GetCellCopy
,FlexBox.GetRow
,FlexBox.GetRowCopy
,FlexBox.GetRowCellCopy
.
Get* now returns pointer and triggers recalculation, while one can use Copy* function to get pointer to copied structs which can be used to lookup values without triggering recalculation. AddCells
now take cells as a variadic argument. #10 @jon4hz
v1.3.0 (2022-12-28)
- Fixed cursor not moving to the last visible row when filtering
- Fixed margins and borders not being rendered correctly #8
- Additionally, fixed margin and border issues on box
- Allow style override on Table @joejag
- Converted default cell inheritance of the row style to function
StylePassing
which can be set on the Box and Row, if both box and row have style passing enabled, the row will inherit the box style before it passes style to the cells.
v1.2.0 (2022-02-27)
- Filtering is now available for
Table
andTableSingleType
using new methods:UnsetFilter
remove filteringSetFilter
sets the filter on a column by indexGetFilter
gets index of filtered column and the value of the filter
- Added
MustGetCellWithIndex
- Fixed visible table calculations when filtering
- Added filter info to the status box
- Header rendering of sorting and filtering symbols is improved
v1.1.0 (2022-02-26)
- Refactored
Table
to support sorting, some methods have changed most notably revolving around adding rows since now its taking [][]any instead of [][]string, initialTable
is now closer toTableSingleType[string]
- Stickers now uses generics, so go1.18 is mandatory
- Fixed recalculation triggering when *FlexBoxCell or *FlexBoxRow is fetched from the FlexBox
- Small lexical changes and tidying up
- Sorting is now available for
Table
andTableSingleType
Table
has been reformatted and now supports sorting by type, whenTable
is initialized each colum type is set tostring
, you can now update that usingSetType
method, types supported are located in interfaceOrdered
- Added
TableSingleType
type which locks row type tostring
, this makes it easier for user when adding rows as there is much fewer errors that can occur as when usingTable
where all depends on a type - Added method
OrderByColumn
which invokes sorting for columnn
, for now you cannot explicitly set sorting direction and it's switching betweenasc
anddesc
when you sort same column - Added method
GetCursorLocation
which returnsx
,y
of the current cursor location on the table - Added error types
TableBadTypeError
,TableRowLenError
,TableBadCellTypeError
- Minor performance enhancements