Commit graph

1246 commits

Author SHA1 Message Date
Daniel Miedzik
9bbc7698a9
Fix: Tabs dispatch change event on init (#882)
* fix tabs on change problem

* fix(tabs): dispatch change event in update/change context methods

Co-authored-by: metonym <ericyl.us@gmail.com>
2021-11-18 07:45:47 -08:00
Bilux
1aad3153b5
Correct page number when dispatching update (#911)
* 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>
2021-11-18 07:41:33 -08:00
Eric Liu
914f9af3be
hotfix(popover): manually apply relative style if relative is true (#915) 2021-11-18 07:28:40 -08:00
Eric Liu
dfd53ce09b
Refactor onDestroy to use onMount return function (#914)
* 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
2021-11-17 13:20:26 -08:00
metonym
a160ef3b40 v0.49.1 2021-11-17 09:28:05 -08:00
Eric Liu
1a0e990bdf
hotfix(popover): include missing Popover styles from carbon-components version 10.47 (#913)
* chore(deps-dev): install carbon-components@10.47 for Popover styles

* hotfix(popover): import popover styles from carbon-components@10.47
2021-11-17 09:17:24 -08:00
metonym
62b71305d6 v0.49.0 2021-11-12 16:27:46 -08:00
Eric Liu
27ba4350cf
Align v10.48 (#907)
* chore(deps-dev): upgrade carbon-components to v10.48.0

* feat(ui-shell): support HeaderNavMenu with current item

* refactor(tile): remove unnecessary "position: relative" style

* refactor(tile): remove unused ref

* feat(inline-notification): make title/subtitle slottable

Closes #883

* feat(toast-notification): make title/subtitle/caption slottable

* chore(notification): deprecate NotificationTextDetails
2021-11-12 16:25:02 -08:00
metonym
aaf60485f0 v0.48.1 2021-11-12 14:40:14 -08:00
Eric Liu
a308c89e42
fix(date-picker): type locale prop using flatpickr types (#906)
Fixes #855
2021-11-12 14:36:46 -08:00
Eric Liu
36f6a327b2
hotfix: fix remaining imports from carbon-icons-svelte (#905) 2021-11-12 13:09:43 -08:00
Eric Liu
f2493c083d v0.48.0 2021-11-11 09:10:27 -08:00
Eric Liu
040e3d3372
Inline carbon icons, remove carbon-icons-svelte from dependencies (#904)
* 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
2021-11-11 08:54:45 -08:00
Eric Liu
4df812bc3f
fix(date-picker): set calendar to null (#903)
Fixes #878
2021-11-11 08:04:06 -08:00
Eric Liu
ea6757d020
Add autoWidth prop to Tabs (#901)
* feat(tabs): support auto width tabs

Closes #899

* docs(tabs): add auto width example
2021-11-10 19:46:20 -08:00
Eric Liu
08402e54bf
feat(form): add ref prop (#900)
Closes #877
2021-11-10 19:46:14 -08:00
Eric Liu
186d2863d3 v0.47.6 2021-11-10 19:38:13 -08:00
Eric Liu
32beeac85b
fix(text-input): coerce TextInput value to number if type is numerical (#902)
Fixes #898
2021-11-10 14:45:13 -08:00
Paweł Malinowski
7e76cbc8a9
fix(Tooltip): fix two way binding in cases where icon is in focus (#895) 2021-11-09 14:52:40 -08:00
Eric Liu
81daaab1ff v0.47.5 2021-11-07 12:14:44 -08:00
Eric Liu
b22058f54e hotfix(expandable-tile): set relative position in tile 2021-11-07 12:09:51 -08:00
Eric Liu
0383a2fe40 Merge branch 'master' of https://github.com/carbon-design-system/carbon-components-svelte 2021-11-07 12:04:11 -08:00
Eric Liu
a298a1bf15 Revert "docs(tooltip): hotfix reactive example #872 [ci skip]"
This reverts commit 3a0e2e92b8.
2021-11-07 12:04:06 -08:00
Paweł Malinowski
f32f8fb9dc
fix(ToolTip): better toggling logic (#885)
* 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.
2021-11-07 12:03:32 -08:00
Eric Liu
0e460cdd91 v0.47.4 2021-11-06 10:46:47 -07:00
Eric Liu
b3a73cf80c
fix(data-table): avoid triggering click:row when clicking expandable row chevron (#890)
Fixes #889
2021-11-06 10:33:33 -07:00
Nicco
a317c7ed52
document static property on datepicker modal (#879)
* document static property on datepicker modal

* move to frame

* docs(date-picker): add missing props to DatePickerModal.svelte

Co-authored-by: metonym <ericyl.us@gmail.com>
2021-11-05 10:02:56 -07:00
metonym
07655aed3e docs: fix typo in button code path [ci skip] 2021-10-26 11:13:42 -07:00
metonym
af9b9a1d92 v0.47.3 2021-10-22 07:21:07 -07:00
Eric Liu
fb7ebb93cb
fix(data-table): expand batch expansion chevron if all rows are expanded #867 (#873)
Fixes #867
2021-10-22 07:18:03 -07:00
metonym
3a0e2e92b8 docs(tooltip): hotfix reactive example #872 [ci skip] 2021-10-21 09:49:16 -07:00
metonym
f4281b82e4 chore(changelog): fix typo [ci skip] 2021-10-21 08:49:22 -07:00
metonym
4cdf4a9b24 v0.47.2 2021-10-21 08:47:55 -07:00
Daniel Miedzik
51cd4ec342
fix #869 (#870) 2021-10-21 08:26:47 -07:00
Eric Liu
2aeeb728a2
fix(data-table): collapse batch expansion button if one or more rows collapsed #867 (#868) 2021-10-20 17:45:53 -07:00
Eric Liu
7b65a15345
Omit explicit "from carbon-icons-svelte" from icon prop definitions (#866)
* fix(types): update description for icon props #865

* docs(component-api): remove hardcoded Carbon Svelte icon description
2021-10-20 13:48:52 -07:00
metonym
0509e8f640 v0.47.1 2021-10-20 10:46:25 -07:00
Eric Liu
c64075acbe
fix(data-table): include border style for non-expandable rows (#864)
* fix(data-table): include border style for non-expandable rows

Fixes #861

* docs(data-table): use batchExpansion for non-expandable rows example [ci skip]
2021-10-20 10:02:10 -07:00
dependabot[bot]
ed873324e5
build(deps): bump vm2 from 3.9.3 to 3.9.5 in /examples/snowpack (#863)
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.3 to 3.9.5.
- [Release notes](https://github.com/patriksimek/vm2/releases)
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.3...3.9.5)

---
updated-dependencies:
- dependency-name: vm2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-19 08:40:37 -07:00
metonym
7af2732f83 v0.47.0 2021-10-19 07:28:04 -07:00
Eric Liu
96d848e9ef
feat(data-table): add nonExpandableRowIds prop (#862)
* feat(data-table): add nonExpandableRowIds prop #861

* test(data-table): validate nonExpandableRowIds prop

* docs(data-table): add Non-expandable rows example
2021-10-19 07:25:22 -07:00
Eric Liu
f64b021a94 v0.46.0 2021-10-17 13:06:10 -07:00
Eric Liu
2cc8953eb5 docs: omit explicit treeview scss import 2021-10-17 12:58:44 -07:00
Eric Liu
b616243b7f
fix(date-picker-input): avoid opening calendar if input is descendant of disabled fieldset #857 (#860) 2021-10-17 12:50:21 -07:00
Eric Liu
5a96f3f49d docs: fix sidenav overlay z-index 2021-10-16 14:54:54 -07:00
Eric Liu
3203e7a61f
Upgrade sveld to v0.10 (#856)
* chore(deps-dev): upgrade sveld to v0.10.2

* feat(types): regenerate types using sveld@0.10.2

* fix(types): update @extends to use .svelte extension
2021-10-16 12:34:29 -07:00
Eric Liu
c6fc8548d3
Align v10.46 (#854)
* chore(deps-dev): upgrade carbon-components to v10.46.0

* feat(tag): support outline type

* feat(multi-select): add hideLabel prop

* chore: delete unused publish-examples.js

* chore(deps-dev): remove gh-pages

* chore: remove publish-examples script

* chore(deps-dev): upgrade carbon-components to v10.46.0

* feat(tag): support outline type

* feat(multi-select): add hideLabel prop

* chore: delete unused publish-examples.js

* chore(deps-dev): remove gh-pages

* chore: remove publish-examples script

* chore: rebuild component index
2021-10-15 17:03:45 -07:00
Eric Liu
b21600c9d6
feat(types): loosen icon prop type to allow any Svelte component #806 (#853)
* 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>
2021-10-15 16:40:23 -07:00
Daniel Miedzik
1581bc0122
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
2021-10-15 16:23:34 -07:00
metonym
e7322acaae v0.45.1 2021-10-15 07:24:19 -07:00