feat: add table.clearSort()
method #150
- fix:
state_unsafe_mutation
error. currentPage is mutated in setters instead: filter.set() / search.set(). #128 #138
- fix: (legacy) remove self closing tags
- docs: stay on the same page after switch between client-side and server-side navigation
- fix: improve perf in the data filtering function
- fix: prefer unknown type instead of enumerating primitives
- fix: remove runes tag from npm publication
- fix:
table.select(value: unknown)
select arg type is unknown instead ofT[keyof T]
- published major release
- fix:
EventDispatcher
- fix:
clearSearch
maximum call stack exceeded
- export type SearchBuilder, CSVBuilder, FilterBuilder, CalculationBuilder...
- added RecordFilter class
- feat: handle scrollTop status in setRows method
- fix: replace structureCloned with $state.snapshot()
- back to
:global()
style: css import is not working as expected after packaging.
- added
TableHandlerInterface
to improve shared components type.
- update dependencies: svelte-next.262
- breaking:
table.createCalcultaion().distinct()
parameter is now:distinct({ sort: [field, direction] })
- remove dupplicate builder:
ColumnViewBuilders
- remove dupplicate type definition:
Row
,ColumnView
,Internationalization
,Field
- use generic
T
type inAbstractTableHandler
instead ofRow
(server-side pagination). - distinct values has a default order in addition to sort param
- fix
$$Generic<Row>
type for server-side pagination - fix
isAllSelected
whenselectScope
= 'all'
- CSS import in
<Datatable>
component.
- feat: make selectBy parameter type of
Field<Row>
so it can combine multiple fields or use a nested property as identifier - docs: added a migration guide
- update dependencies: svelte-next.260
- added type="button" in
<Pagination>
and<RowCount/>
components, including the legacy part.
- feat: add headless option for Datatable component
- feat: use @import instead of :global() in Datatable component
- update dependencies: svelte-next.257
- update dependencies: svelte-next.246
- rename type
ViewColumn
toColumnView
- improve types
- fix criterion value type
- client-side: refactor / improve types
- client-side: untrack sort and event dispatcher when rows are updated.
- client-side (breaking): sort params for distinct values is now an object
{ field: 'value' | 'count', direction: 'asc' | 'desc' }
instead of an array - client-side: use crypto UUID instead of js random string
- client-side: improve types
- client-side: regular expression search takes scope parameter into account
- server-side: added a
table.isLoading
state which is true whileinvalidate()
method runs
- server-side: column filtering