Fixes a bug where the input `value` is immediately reset
when re-focusing the input. The `value` resetting is necessary
to support programmatically clearing the value, but it should
only execute if the input is not currently focused.
Fixes#1222
A non-filterable ComboBox will select the item that matches the typed value when pressing "Enter." An unknown (unmatched) value will select the first item.
Fixes#1405
When using the `shouldFilterItem` prop, the `ComboBox` does not display the custom label set with `itemToString` in the input after a selection.
* fix(combo-box): ListBoxField and ListBoxSelection have different `translateWithId` props
* fix(multi-select): ListBoxField and ListBoxSelection have different `translateWithId` props
* Run "yarn build docs"
* test: assert translateWithIdMenu, translateWIthIdInput props
* chore: update ignore rules, remove unused files
* refactor(icons): use icons from carbon-icons-svelte@11
* docs(time-picker): fix default value
* chore: upgrade carbon-icons-svelte to v11
* docs: update examples to use icons from carbon-icons-svelte@11
* docs: update number of icons [ci skip]
* feat(icons): inline carbon icons used by components
* feat(icons): update svelte components to use inlined carbon icons
* breaking(deps): remove carbon-icons-svelte
* chore(deps-dev): install carbon-icons-svelte as a devDependency
* fix(combo-box): clicking chevron should not open the combo box if disabled
Fixes#776
* fix(toolbar-batch-actions): cancel text should be slottable
Fixes#782
* fix(combo-box): fix reactivity regression #768Fixes#768
* fix(combo-box): if selectedItem is not defined, default selectedIndex to 0
* fix(combo-box): do not reset selectedIndex to 0, fallback to empty string
* fix(combo-box): reset selectedIndex
* chore(deps-dev): upgrade carbon-components to v10.38.0
* feat(text-input): support read-only variant
* docs: use consistent lingo for inline variant examples
* docs(popover): add Popover alignment example
* fix(file-uploader): adjust markup to avoid accessibility errors
Ref: 0dfde60e3
* fix(inline-loading): use error filled icon
* fix(inline-loading): render iconDescription as title in error/warning icons
Ref: 51c53c923
* fix(structured-list): update accessibility attributes
* fix(tooltip-definition): use span instead of div
Ref: cb6de3025
* fix(multi-select): close menu when blurring the last filterable option
* fix(multi-select): open/focus field for filterable multiselect #635
* fix(multi-select): unblock focus when blurring input #635
* fix(combo-box): select correct item with keys, allow input after clearing #195
* fix(combo-box): update input text if item is selected
* feat(combo-box): render checkmark icon for selected item
* fix(ui-shell): toggle SideNav rail when clicking the hamburger menu #699
* fix(context-menu): update context menu classes #684
* docs(context-menu): improve demo instructions #684
* fix(context-menu): close menu when clicking anywhere
* chore(deps-dev): upgrade carbon-components to v10.36.0
* feat(structured-list): add condensed, flush props
* fix(structured-list): deprecate the border prop
* fix(code-snippet): set min/max height for multi-line code snippet #656Fixes#656
* fix(image-loader): make SSR compatible using a window type check guard
* docs(tag): add separate disabled example for filterable/interactive tags
* docs: update number of supported chart types
* feat(side-nav): support rail variant
* feat(ui-shell): add isSelected prop to HeaderNavItem
* fix(ui-shell): default isSelected to false in SideNavMenuItem
* fix(text-area): forward missing keydown event #665Fixes#665
* feat: forward keyup event to components with inputs
* feat(checkbox): make labelText slottable #563Closes#563
* feat: make labelText slottable
Related #563
* docs(component-api): account for undefined type
* docs(ui-shell): link to correct rail source
* fix(ui-shell): default isSelected in HeaderNavItem to false
* feat(toolbar): forward "clear" event in ToolbarSearch
* docs(search): add on:clear example
* fix(ui-shell): set aria-hidden in SideNav
Ref c2b4f1f00
* chore(deps-dev): upgrade carbon-components to v10.30.0
* fix(text-input): use bx--text-input class for TextInputSkeleton
* fix(radio-button): only render span if labelText is truthy
* docs(password-input): add custom tooltip example
* feat(button): add isSelected prop for icon-only, ghost buttons
* feat(radio-button): add legendText prop to RadioButtonGroup
* docs(tag): add filterable (disabled) variant
* feat(tag): add interactive prop
* chore(number-input): deprecate the mobile variant
Mobile variant styles will no longer work.
* feat(button): set aria-pressed attribute if icon-only, ghost button is selected
* fix(multi-select): type dispatched select event
* fix(button): remove redundant "button" role
* feat(icon): deprecate Icon, IconSkeleton
* feat(ui-shell): make SideNavMenuItem text slottable
* fix(list-box): update styles for ListBoxSelection
* fix(list-box): temporarily apply override styles to ListBoxMenuIcon for chevron
* fix(tag): set disabled prop on interactive tag
* docs(button): extract selected, icon-only button example
* feat(tooltip): elevate z-index of tooltip when open
* feat: forward restProps to input element
* fix(types): fix TimePicker test to pass svelte-check
* feat: add ImageLoader component
* test: add ImageLoader
* feat: add LocalStorage component
* test(local-storage): fix invalid file
* chore(docs): use green tag type
* fix(combo-fix): dont re-focus listbox if relatedTarget is input/select/textarea
* fix(combo-box): check if relatedTarget is truthy
* fix(multi-select): dont re-focus listbox if relatedTarget is input/select/textarea
* chore: patch prettier-plugin-svelte
* docs(tag): add filterable small tag example
* feat(ui-shell): add SideNavDivider
* feat(combo-box): support warning state
* docs(combo-box): add invalid state example
* fix(progress-step): add title to warning icon
* docs(progress-indicator): add invalid step example
* docs(progress-indicator): add disabled steps example
* feat(truncate): add text truncation component and action
* docs(radio-tile): fix light variant example
* fix(side-effects): add pre-compiled CSS to library side effects
* refactor(css): use shorthand scss imports, add comments
* refactor(truncate): rename "direction" prop to "clamp"
* chore(deps-dev): bump carbon-components to v10.29.0
* feat(combo-box): add direction prop
* feat(dropdown): add direction prop
* feat(multi-select): add direction prop
* refactor(search): resolve svelte file paths
* docs(Search): add reactive example
* refactor(tag): use class name directive for tag types, resolve svelte icon path
* chore(button-skeleton): deprecate small prop
* fix(breadcrumb-item): type default slot
* refactor(breadcrumb-skeleton): omit unused index
* refactor(aspect-ratio): use class name directive
* refactor(accordion): use the class name directive, resolve svelte icon paths
* refactor(code-snippet): use class name directive, resolve svelte icon paths
* fix(code-snippet-skeleton): CodeSnippetSkeleton can only be single or multi
* refactor(content-switcher): use class name directive
* docs(content-switcher): add reactive example
* docs(content-switcher): remove unused import
* docs(toggle): add reactive example
* refactor(tooltip-definition): use class name directive
* refactor(tooltip-icon): use class name directive
* refactor(tooltip): resolve svelte icon import
* fix(select): type dispatched change event
* refactor(select): resolve svelte icon import
* feat(select-item): spread rest props, avoid $ variable name
* fix(pagination-nav): type dispatched events
* refactor(pagination): resolve svelte imports
* fix(pagination): type dispatched update event
* fix(overflow-menu): type dispatched close event
* fix(number-input): type dispatched change event
* refactor(modal): use class name directive, resolve svelte imports
* refactor(inline-loading): use class name directive, resolve svelte imports
* refactor(composed-modal): resolve svelte icon imports
* refactor(combo-box): resolve svelte imports
* fix(fluid-form): rest props should not override Form class
* refactor(progress-step): resolve svelte icon imports
* fix(combo-box): selecting a different combobox should focus the input
* fix(dropdown): selecting a different dropdown should focus the button
* fix(combo-box): focus input if related target attribute is not "searchbox"