Eric Liu
5f1e8de1e1
Re-work toHierarchy
utility
...
Refactor `toHiearchy` to be more generic, performant
- Use callback to "pick" generic parent ID property instead of requiring that `pid` be hardcoded`
- Account for edge cases of an invalid parent ID
- Use Map to store node children for lookups
- Use one pass instead of removing empty nodes at the very end
- DX: use generics to type `toHierarchy`
- Make `toHierarchy` even more generic (reusable with `RecursiveList`)
Co-Authored-By: Bram <bramhavers@gmail.com>
2024-12-09 12:20:20 -08:00
Bram
8849efc153
merged 0.86.2
2024-12-08 11:10:30 -08:00
Bram
21d599c8b6
Fix that toHierarchy couldn't be found. Updated docs and test.
2024-12-08 11:10:30 -08:00
Bram
a29196c4a2
Moved function to treeview.js
2024-12-08 11:10:30 -08:00
Bram
15a9cfb8d2
Fix typescript error on test with better TreeView typing definition for nodesFlat
2024-12-08 11:10:30 -08:00
Bram
b9c1f11430
Fix: updated doc, removed [] on type definition for nodesFlat
2024-12-08 11:09:57 -08:00
Bram
c41a776405
Fix to only set nodes prop when nodesFlat is provided
2024-12-08 11:09:57 -08:00
Bram
87102776ab
Added nodesFlat property and updated docs
2024-12-08 11:09:57 -08:00
Eric Liu
1d24da063f
chore(prettier): exclude auto-generated COMPONENT_API.json
( #2073 )
2024-12-08 10:58:41 -08:00
Eric Liu
765ffc88eb
chore: run lint
2024-11-30 10:47:11 -08:00
Eric Liu
e2342aa249
docs: move "Default value" below description
2024-11-24 14:10:01 -08:00
Eric Liu
69d51872a5
docs: omit Prettier from client JS
2024-11-24 13:32:50 -08:00
Eric Liu
8ad7d5967e
docs: set loading="lazy"
on iframes ( #2062 )
2024-11-23 16:47:04 -08:00
Eric Liu
f752c96daf
docs: fix highlighting for lighter themes ( #2061 )
2024-11-23 16:23:14 -08:00
Eric Liu
f795bb7abc
docs(component-api): async load component
2024-11-23 15:49:46 -08:00
Eric Liu
c4b09101e6
docs(component-api): required props are sorted first
2024-11-23 15:27:48 -08:00
Eric Liu
dee74d3470
docs: add syntax highlighting for component API
2024-11-23 15:26:39 -08:00
Eric Liu
2a68b2947c
chore(tree-view): remove inline comment breaking formatting
2024-11-23 15:26:39 -08:00
Eric Liu
817482cc6b
v0.86.1
2024-11-22 13:51:25 -08:00
Eric Liu
07d226cd87
docs(recursive-list): update mentions of renamed children
prop ( #2055 )
2024-11-21 10:40:10 -08:00
Bram
b9b7bae24c
docs(tree-view): update mentions of renamed children
prop ( #2054 )
2024-11-21 10:35:03 -08:00
dependabot[bot]
4739aaf0dd
build(deps): bump cross-spawn in /docs ( #2053 )
...
Bumps and [cross-spawn](https://github.com/moxystudio/node-cross-spawn ). These dependencies needed to be updated together.
Updates `cross-spawn` from 7.0.3 to 7.0.6
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md )
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6 )
Updates `cross-spawn` from 6.0.5 to 7.0.6
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md )
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6 )
---
updated-dependencies:
- dependency-name: cross-spawn
dependency-type: indirect
- dependency-name: cross-spawn
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-18 14:51:37 -08:00
Eric Liu
5f887f59e8
chore: re-run npm run build:docs
( #2051 )
2024-11-12 10:27:38 -08:00
Eric Liu
e23a4d1994
build(docs): use node:
prefix [ci skip]
2024-11-12 09:52:20 -08:00
Eric Liu
8e996dc683
chore: format files with Prettier 3
2024-11-11 21:35:48 -08:00
Eric Liu
dd43224119
feat(data-table): support generics ( #1954 )
...
Co-authored-by: K.Kiyokawa <koichi20110068@gmail.com>
Co-authored-by: brunnerh <brunnerh@users.noreply.github.com>
2024-11-11 21:10:45 -08:00
Eric Liu
752c46b94c
docs(style): increase preview viewer for large screens ( #2049 )
2024-11-11 15:54:32 -08:00
Eric Liu
9d5e7e31ef
fix(checkbox): bind indeterminate
for Svelte 5 compatibility ( #2044 )
...
Fixes #2039
2024-11-10 11:50:20 -08:00
Eric Liu
817c072872
docs: use defer
instead of async
for analytics script
2024-11-10 11:49:16 -08:00
Eric Liu
66dc602889
docs: move IBM analytics script to _layout.svelte
2024-11-10 11:49:16 -08:00
Eric Liu
8a67a5bbf1
docs: add canonical to base index.html
2024-11-10 11:07:43 -08:00
Eric Liu
b0214ec956
docs(multi-select): items
should not be reactive ( #2042 )
2024-11-10 10:10:41 -08:00
Eric Liu
efddbbd3cc
docs(treeview): update examples
2024-11-09 14:53:02 -08:00
Eric Liu
82905ac696
feat(treeview)!: rename children
prop to nodes
for Svelte 5 compatibility
2024-11-09 14:53:02 -08:00
Eric Liu
d655296fcf
docs(recursive-list): update examples
2024-11-09 14:50:44 -08:00
Eric Liu
242e2fcbdf
feat(recursive-list): rename children
prop to nodes
for Svelte 5 compatibility
2024-11-09 14:50:44 -08:00
Eric Liu
9ebf6963e0
docs(multi-select): improvements [ci skip]
2024-11-09 14:02:40 -08:00
Eric Liu
7923515279
chore(docs): add meta
description
2024-11-09 11:26:59 -08:00
Eric Liu
da2d28a426
chore(docs): bump deps
2024-11-09 11:26:43 -08:00
metonym
ac38e9d353
docs: support CTRL+K to trigger docs search
2024-11-08 09:50:52 -08:00
Eric Liu
c93be373ea
style(docs): use autoWidth
for <Tabs />
2024-11-03 14:11:57 -08:00
Eric Liu
5be3da2722
docs: add Bun install command
2024-11-03 14:11:57 -08:00
Eric Liu
61eeb37a74
docs: replace yarn
with npm
as default
2024-11-03 14:11:57 -08:00
Eric Liu
67673d5161
docs: drop -D flag from install commands
2024-11-03 14:11:57 -08:00
Eric Liu
44daa775d5
fix(data-table): fix DataTableValue
type reference in DataTable
( #2023 )
2024-10-25 15:49:35 -07:00
Eric Liu
58e6021b08
fix(toolbar-search): fix types for on:clear
( #2022 )
2024-10-25 15:38:31 -07:00
Eric Liu
0831e87135
fix(combo-box): fix types for on:clear
( #2020 )
2024-10-25 15:36:43 -07:00
Eric Liu
49b5def815
fix(theme): Theme
correctly imports toggle
, select
props ( #2019 )
...
Fixes #2018
2024-10-25 14:56:59 -07:00
Eric Liu
f86f593159
docs: update number of carbon-icons-svelte
to 2,400+ ( #2017 )
2024-10-24 13:38:14 -07:00
Eric Liu
3511f09b2e
chore(docs): bump deps
2024-10-20 11:00:29 -07:00