Commit graph

2035 commits

Author SHA1 Message Date
Eric Liu
48afd18e5e
feat: add toHierarchy utility for TreeView, RecursiveList (#2072)
Co-authored-by: Bram <bramhavers@gmail.com>
2024-12-09 12:22:36 -08:00
Eric Liu
f1a27ec855
test(tree-view): coverage for expandAll and expandNodes (#2063) 2024-12-08 11:09:23 -08:00
Eric Liu
18c964e579
fix(tooltip-icon): button should have explicit type (#2071) 2024-12-08 11:00:30 -08:00
Eric Liu
9bfddc5c62
test: silence output in CI (#2074) 2024-12-08 11:00:17 -08:00
Eric Liu
1d24da063f
chore(prettier): exclude auto-generated COMPONENT_API.json (#2073) 2024-12-08 10:58:41 -08:00
Eric Liu
c7f4b16bf3 v0.86.2 2024-11-30 10:48:32 -08:00
Eric Liu
09541657ef ci: run lint check 2024-11-30 10:47:11 -08:00
Eric Liu
765ffc88eb chore: run lint 2024-11-30 10:47:11 -08:00
Paweł Malinowski
c3a390f3fe fix(multi-select): fix sorting behavior
- Menu items are sorted when the component renders.
- With selectionFeedback: top, selected items are immediately pinned to
  the top.
- With selectionFeedback: top-after-reopen, selected items are pinned to the top only
  after the dropdown is closed.
- With selectionFeedback: fixed, selected items are never pinned to the
  top.

Fixes #2066
2024-11-30 10:38:33 -08:00
Paweł Malinowski
e165fa3a87 test(multi-select): add test suite 2024-11-30 10:38:33 -08:00
dependabot[bot]
1f7ec1b40a build(deps-dev): bump @sveltejs/kit in /examples/sveltekit
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.8.2 to 2.8.3.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.8.3/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-25 08:58:29 -08:00
Eric Liu
e2342aa249 docs: move "Default value" below description 2024-11-24 14:10:01 -08:00
Eric Liu
3fe8da313d build(script): force new lines for API props 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
0cc377eeb9 build(scripts): format COMPONENT_API.json 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
5fe5db919a chore: use cache for formatting [ci skip] 2024-11-23 15:52:36 -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
186ea85cbc ci: add "Unit tests" step 2024-11-23 13:36:31 -08:00
Eric Liu
8b477b12f9 test: scaffold component testing with Vitest 2024-11-23 13:36:31 -08:00
Eric Liu
89387004a3 chore(examples): bump deps 2024-11-23 12:25:16 -08:00
Eric Liu
817482cc6b v0.86.1 2024-11-22 13:51:25 -08:00
Eric Liu
e488c88371
fix(tree-view): do not flatten original nodes (#2056)
`$: nodes = traverse(nodes);` is unexpectedly mutating the original `nodes` reference used to render `TreeView`.

As a result, a tail leaf node is appended to the top-level list.

Flattening is necessary to obtain a reference to all node IDs (to programmatically show/hide nodes). This fix creates a new reference `flattenedNodes` instead of overriding the original `nodes`.
2024-11-22 13:24:43 -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
Eric Liu
128da10475 v0.86.0 2024-11-19 18:51:41 -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
cc03d3c75d chore: remove redundant format script [ci skip] 2024-11-11 21:35:48 -08:00
Eric Liu
8e996dc683 chore: format files with Prettier 3 2024-11-11 21:35:48 -08:00
Eric Liu
1dcd09bd98 chore(deps-dev): upgrade prettier to v3 2024-11-11 21:35:48 -08:00
Eric Liu
4881ff7ffd build(scripts): convert to ESM 2024-11-11 21:24:06 -08:00
Eric Liu
9234119d7b build(package)!: set type="module" 2024-11-11 21:24:06 -08:00
metonym
066fea5180 build!: remove bundled ESM/UMD support 2024-11-11 21:24:06 -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
9f1b997765
chore(deps-dev): upgrade sveld to v0.22 (#2048) 2024-11-10 15:35:29 -08:00
Eric Liu
7e173943ac
fix(toolbar-menu): remove redundant menu offset for Svelte 5 compatibility (#2047)
Fixes #2040
2024-11-10 11:50:54 -08:00
Eric Liu
99ba6f3db9
fix(inline-checkbox): bind indeterminate for Svelte 5 compatibility (#2045)
Fixes #2039
2024-11-10 11:50:41 -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
fd9d7ee943 chore(deps-dev): upgrade svelte-check to v4 (#2043) 2024-11-10 10:53:02 -08:00
Eric Liu
c7529fe3f8 build(scripts): replace glob with tinyglobby (#2041) 2024-11-10 10:10:51 -08:00