Eric Liu
6e65ef39e7
fix(tag): allow on:close
to work with Svelte 5 ( #2097 )
...
Fixes #2096
2025-02-04 14:28:58 -08:00
Eric Liu
6bf72d4602
fix(types): loosen icon
prop type to any
( #2095 )
...
Fixes https://github.com/carbon-design-system/carbon-icons-svelte/issues/207
`carbon-icons-svelte@13` and `carbon-pictograms-svelte@13` now
only support TypeScript for Svelte 4/5.
The new `Component` type is incompatible with the `icon` prop in
`carbon-components-svelte`, causing a type error with Svelte 5, as
`typeof SvelteComponent` doesn't match the new `Component` type.
Since `Component` isn't available in Svelte 3/4, this PR changes
the `icon` prop type to `any` for compatibility across Svelte 3, 4, and 5.
2025-02-02 19:49:53 -08:00
Eric Liu
88f4304d5a
fix(overflow-menu): support Svelte 5
...
Fixes #2092
2025-01-30 08:56:52 -08:00
bartosjiri ⚡
76eec84c54
fix(text-area): counter supports null value
( #2089 )
2025-01-22 11:16:18 -08:00
Eric Liu
fb6719b1ae
fix(multi-select): avoid manual field blur
...
Fixes #2083
2025-01-19 17:38:25 -08:00
Eric Liu
c194c80e29
fix(dropdown): avoid manual field blur
...
Fixes #2083
2025-01-19 17:38:25 -08:00
Eric Liu
e874ac19d7
fix(data-table): improve expandable
accessibility ( #2086 )
2025-01-19 17:38:25 -08:00
Eric Liu
dd6cbac3ee
fix(data-table): prefix internal ID for radio button, checkbox ( #2082 )
...
Fixes #2081
2025-01-19 17:38:25 -08:00
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
18c964e579
fix(tooltip-icon): button
should have explicit type
( #2071 )
2024-12-08 11:00:30 -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
Eric Liu
2a68b2947c
chore(tree-view): remove inline comment breaking formatting
2024-11-23 15:26:39 -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
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
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
fd9d7ee943
chore(deps-dev): upgrade svelte-check
to v4 ( #2043 )
2024-11-10 10:53:02 -08:00
Eric Liu
3192824322
fix(data-table): handle ToolbarSearch
filtering in DataTable
( #2037 )
2024-11-10 09:27:27 -08:00
Paweł Malinowski
1acd713537
fix(multi-select): avoid cyclic dependency for Svelte 5 compatibility ( #2034 )
2024-11-09 14:53:46 -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
242e2fcbdf
feat(recursive-list): rename children
prop to nodes
for Svelte 5 compatibility
2024-11-09 14:50:44 -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
43fccac1c6
fix: address Svelte 5 warnings ( #2011 )
...
Co-authored-by: brunnerh <brunnerh@users.noreply.github.com>
2024-10-24 07:43:10 -07:00
Eric Liu
61eceb0caa
fix(header-action): allow vertical scroll when expanded ( #1992 )
2024-08-13 09:57:31 -07:00
Wolfgang Rathgeb
47860ce1d7
fix(text-area): type value
prop as nullable ( #1933 )
2024-08-09 05:55:30 -07:00
jmeurice
216d5a39b1
fix(search): collapse expandable search if value is falsy ( #1987 )
...
Fixes #1981
2024-08-08 12:36:28 -07:00
Eytan
6140c3c5a9
fix(multi-select): fix filterItem
return type ( #1972 )
2024-08-08 12:34:58 -07:00
Eric Liu
40c8ba4449
chore(examples): bump deps
2024-03-23 14:40:01 -07:00
metonym
d5a11489f8
refactor!: use :global()
for custom styles ( #1940 )
...
* Prefix custom class selectors with `bx--` (primarily used in custom UI Shell components)
* Use `:global` scope so that selector names are not hashed
2024-03-23 13:11:44 -07:00
Nick Wing
6364b23030
fix(checkbox): forward on:focus
, on:blur
to Checkbox
and InlineCheckbox
( #1937 )
2024-03-16 09:31:30 -07:00
berndfuhrmann
9132bf8e5a
fix(data-table): loosen sort
return type to be a number
( #1935 )
...
Fixes #1934
Loosen the `sort` return type from `0 | 1 | -1` to `number`.
2024-03-13 09:55:02 -07:00
spburtsev
d8bc65163e
feat(ui-shell): support button tooltip in HeaderGlobalAction
( #1894 )
...
Closes #1893
2024-03-07 20:37:58 -08:00
metonym
6152b784c1
fix(search): hoist ignore a11y autofocus
comment
...
In Svelte 5, the comment is ignored when it's above the input element. Setting the comment at the top-level resolves the issue.
2024-03-06 22:49:27 -05:00
metonym
8bffc17d65
fix(link)!: do not render p
for disabled link
...
Closes #1924
Svelte 5 will not compile if `div` is nested inside `p` element. Refactor Link to render an `a` instead of `p` when disabled.
2024-03-06 22:49:27 -05:00
metonym
a0d5028540
fix: avoid using reserved $
for Svelte 5 compat
...
Co-Authored-By: Eric Fulton <5297269+Sahasrara@users.noreply.github.com>
2024-03-06 22:49:27 -05:00
Eric Liu
9aabe3cbbb
fix(toast-notification): fire on:clear
from timeout correctly
...
Fixes #1914
Co-Authored-By: brunnerh <brunnerh@users.noreply.github.com>
2024-02-25 13:38:46 -08:00
Eric Fulton
2404244221
fix(overflow-menu): use offsetWidth
, offsetHeight
to compute menu dimensions ( #1913 )
2024-02-25 10:21:54 -08:00
Eric Liu
0f318aac77
fix(image-loader): updated src
should update the image
...
Fixes #1677
The `ImageLoader` image should correctly update if `src` changes.
2024-02-24 13:40:02 -08:00
Eric Liu
4085536189
fix(code-snippet): showMoreLess={false}
should hide button
...
Fixes #1536
If `showMoreLess` is explicitly `false` for multi-line code snippets, the button should not be shown at all.
2024-02-24 10:24:59 -08:00
mmamedel
90dbd1562b
fix(slider): dispatch on:input
event ( #1906 )
...
Fixes #1643
The dispatched `on:change` event in `Slider` only fires when the slider thumb is released. `on:input` fires when actively dragging the thumb, and should fire on every increment (e.g., 1, 2, 3).
2024-02-10 20:44:39 -08:00
metonym
4ad522c197
fix(context-menu): prevent on:contextmenu
default behavior only when opening menu ( #1911 )
...
Fixes #1909
2024-02-07 14:37:44 -08:00
metonym
6590457574
fix(types): improve e.detail
type for dispatched events ( #1907 )
...
* fix(types): improve `e.detail` type for dispatched events
* Run "yarn build:docs"
* test: assert new types
2024-02-01 10:56:34 -05:00
Ryan Marx
59018728df
fix(button): forward on:focus
event ( #1878 )
...
Fixes #1830
2024-01-09 20:09:11 -08:00
metonym
479225711a
fix(radio-button): allow value
type to be a number ( #1868 )
2023-12-17 09:42:28 -08:00
metonym
6c9cf9e043
fix(header-search): blur input when active
is false ( #1857 )
2023-11-23 07:41:22 -08:00