Without preventDefault the link will navigate the page instead of opening the dropdown when the tabs are in the compact mode.
Because the parent element also toggles on click, there is an additional stopPropagation to not toggle twice which in a no-op.
* Correct page number when dispatching update
When in last page of data and the page size get changed to a bigger size the current page number will be out of range of total pages.
This code will set the page number in range of total pages.
* fix(pagination): page value should not exceed totalPages
Co-authored-by: metonym <ericyl.us@gmail.com>
* refactor(select-item): replace onDestroy with onMount return function
* refactor(date-picker): replace onDestroy with onMount return function
* refactor(switch): replace onDestroy with onMount return function
* refactor(composed-modal): replace onDestroy with onMount return function
* 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(ToolTip): better toggling logic
* fix(ToolTip): remove redundant click handler
* fix(ToolTip): ensure at most one ToolTip is open at the same time
- a click event closes the tooltip if the target is not the tooltip or
the tooltip icon.
- the event is registered in the capture phase and a `setTimeout` is used to
deal with edge cases in which a button is used to toggle the tooltip
on or off.
* fix(data-table): include border style for non-expandable rows
Fixes#861
* docs(data-table): use batchExpansion for non-expandable rows example [ci skip]
* 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>
* 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
* 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
* added the staticProp property for the Modal component to work correctly
* Update src/DatePicker/DatePicker.svelte
Co-authored-by: Eric Liu <ericyl.us@gmail.com>
* Update src/DatePicker/DatePicker.svelte
Co-authored-by: Eric Liu <ericyl.us@gmail.com>
Co-authored-by: Leonid <leo@garantum.ru>
Co-authored-by: Eric Liu <ericyl.us@gmail.com>
* 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
* docs: update number of available Carbon icons
* docs: add svelte:head example for loading CDN styles
* chore(deps-dev): upgrade svelte to 3.40.1
* fix(a11y): disable a11y-mouse-events-have-key-events warning #760
* fix(deps): upgrade carbon-icons-svelte to v10.36.0 to avoid a11y warnings #760
* refactor(overflow-menu): remove formatStyle utility
* docs: links in paragraphs should be inline
* docs: add note on using all styles for dynamic theming