Bram
b019950e14
Fix typing error for treeview
2024-12-02 18:11:36 +01:00
Bram
048c10a6ab
Fix that toHierarchy couldn't be found. Updated docs and test.
2024-12-02 17:44:38 +01:00
Bram
f453af437a
Fix typescript error on test with better TreeView typing definition for nodesFlat
2024-11-28 21:34:10 +01:00
Bram
655a205b0a
Fix: updated doc, removed [] on type definition for nodesFlat
2024-11-26 23:11:57 +01:00
Bram
b754b990e7
Fix to only set nodes prop when nodesFlat is provided
2024-11-26 23:08:03 +01:00
Eric Liu
82905ac696
feat(treeview)!: rename children
prop to nodes
for Svelte 5 compatibility
2024-11-09 14:53:02 -08:00
metonym
6fbd8ae6a9
fix(types): use type alias instead of interface for $$restProps
2024-11-09 14:41:28 -08:00
metonym
1ad4e3d385
feat(tree-view): add showNode
accessor ( #1844 )
...
Closes #1377
2023-11-12 14:25:15 -08:00
metonym
6a55fef62e
feat(tree-view): make node
slottable ( #1843 )
...
Closes #1660
2023-11-12 14:15:28 -08:00
Eric Liu
2f026f792a
feat(typescript)!: support svelte 4 ( #1773 )
...
Closes #1753
The minimum Svelte version required for TypeScript users is now 3.55.
2023-07-19 09:44:56 -07:00
Eric Liu
7fdc2ef7f0
fix(types): allow data-*
attributes for props forwarded to HTML elements ( #1741 )
...
* chore(deps-dev): upgrade `sveld` to v0.18.1
* Run "yarn build:docs"
* test: assert that `data-*` attributes are valid
2023-07-08 16:41:44 -07:00
metonym
ec867c46ba
fix(tree-view)!: remove expanded
property from TreeNode
interface ( #1631 )
...
* fix(tree-view)!: remove `expanded` property from `TreeNode`
* fix(tree-view-node-list)!: remove unused `expanded` prop
* docs(tree-view): remove `expanded` as a property
#1630
2023-01-17 20:55:46 -05:00
metonym
198e0da4c5
fix(tree-view): loosen TreeNode
text property type to any ( #1576 )
...
* fix(tree-view): loosen `TreeNode` text property type to any
* Run "yarn build:docs"
* test(tree-view): assert updated property type value
2022-12-07 20:00:20 -08:00
DetachHead
21d841feeb
fix(tree-view): make TreeView
children prop type work recursively ( #1566 )
2022-12-07 19:54:14 -08:00
metonym
260bf4e040
breaking(types): type arrays as read-only ( #1335 )
...
Closes #1259
* breaking(types): type arrays as read-only
* Run "yarn build:docs"
* test: assert read-only arrays
2022-06-05 13:25:43 -07:00
metonym
ea38cd2568
feat(types): support sveltekit:prefetch
, sveltekit:noscroll
attributes in type definitions ( #1234 )
...
* chore(deps-dev): upgrade sveld to 0.14.0
* Run "yarn build:docs"
2022-04-09 14:13:56 -07:00
Eric Liu
3203e7a61f
Upgrade sveld to v0.10 ( #856 )
...
* chore(deps-dev): upgrade sveld to v0.10.2
* feat(types): regenerate types using sveld@0.10.2
* fix(types): update @extends to use .svelte extension
2021-10-16 12:34:29 -07:00
Eric Liu
b21600c9d6
feat(types): loosen icon
prop type to allow any Svelte component #806 ( #853 )
...
* feat(types): loosen type for Carbon icons #806
* Add closeIcon option and remove stopPropagation on:click in HeaderAction (#840 )
* Remove stopPropagation on:click
Remove stopPropagation on:click helps when you have more then one acction to switch between actions tabs
* fix bug for default icon
* add closeIcon attribute to HeaderAction
* feat(types): loosen type for Carbon icons #806
* chore: update TreeView, HeaderAction icon types
Co-authored-by: Daniel Miedzik <daniel.miedzik@gmail.com>
2021-10-15 16:40:23 -07:00
Eric Liu
c4413636a4
Programmatically expand/collapse TreeView nodes ( #850 )
...
* feat(tree-view): add accessors to programmatically expand/collapse nodes
* feat(tree-view): update docs/types
* test(tree-view): test updated TreeView accessors
* docs(tree-view): document TreeView accessors
2021-10-13 08:54:37 -07:00
Eric Liu
d01995e11e
feat(tree-view): add expandedIds #750 ( #751 )
2021-07-15 07:49:25 -07:00
Eric Liu
6ed4aaa86e
TreeView ( #725 )
...
* feat(tree-view): add TreeView
* fix(tree-view): select initial active node, correct typedefs
* docs(tree-view): update examples
* chore(tree-view): add test for types
* docs(tree-view): rename example
* docs(tree-view): improve docs
* docs(tree-view): refine examples
* docs: fix invalid syntax
* chore: rebuild component index/api
* docs(layout): increase height of sidenav menu [ci skip]
2021-07-05 09:11:15 -07:00