brunnerh
6458c97c1a
Add required
prop to Select. ( #968 )
...
Upgrade sveld to set paths correctly on Windows.
Make Prettier script compatible with Windows and run it.
2022-01-03 10:46:12 -08:00
Gregor Wassmann
f0cf4e7ba5
Enhance Checkbox to use bind:group ( #947 )
...
* Enhance Checkbox to use bind:group
* Use custom logic
* Move multiple checkboxes above skeleton
* Incorprate PR feedback
* Any instead of string
2021-12-30 13:31:33 -08:00
Eric Liu
997eeb7b48
Fix filterable MultiSelect keydown behavior ( #961 )
...
* fix(multi-select): blur input when tabbing away
Fixes #938
* fix(multi-select): close a filterable menu on "Escape"
* fix(multi-select): open filterable menu on [Space]
2021-12-30 13:00:21 -08:00
Eric Liu
f955b09c09
fix(date-picker): input should not lose focus when pressing "Enter" ( #958 )
...
Fixes #876
2021-12-30 13:00:11 -08:00
Eric Liu
9698625b15
fix(toolbar-search): input should expand if value is programmatically set ( #956 )
...
Fixes #673
2021-12-30 13:00:03 -08:00
Eric Liu
a522a55596
fix(date-picker): stop "Escape" from closing modal ( #955 )
...
Fixes #952
2021-12-29 06:02:55 -08:00
Eric Liu
3277527929
hotfix(multi-select): prevent double trigger in a filterable multiseelct ( #954 )
...
Fixes #940
2021-12-29 06:01:31 -08:00
Eric Liu
ae96fdf3d9
fix(data-table): forgo "click", "click:row" events if target is a checkbox, radio button ( #951 )
...
Fixes #933
2021-12-28 13:26:09 -08:00
Eric Liu
a32bcbccd7
fix(label-text): correctly render "labelText" slots ( #949 )
...
Fixes #944
2021-12-28 12:59:33 -08:00
brunnerh
d5a6b5873b
Modify click events to prevent navigation. ( #946 )
...
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.
2021-12-28 12:59:26 -08:00
István Pató
a1377f07de
fix(textinput): displaying empty input value if value is undefined or null ( #936 )
...
#935
2021-12-28 12:59:20 -08:00
Eric Liu
4de0fab859
Fix filterable multiselect keyboard selection behavior ( #923 )
...
* fix(multi-select): correctly select correct item in filterable multiselect
Fixes #922
* fix(multiselect): do not mutate sortedItems
2021-11-27 10:04:22 -08:00
Eric Liu
4f83b2d1e1
fix(data-table): forgo "click", "click:row" events if target is an OverflowMenu ( #918 )
...
#917
2021-11-19 08:29:16 -08:00
Eric Liu
ccc733f3f7
Support custom target(s) for ContextMenu
( #916 )
...
* feat(context-menu): add target prop to selectively trigger context menu
* feat(context-menu): include clicked element in "open" event detail
* docs(context-menu): add target, multiple target examples
2021-11-18 13:32:13 -08:00
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
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
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
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
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
b22058f54e
hotfix(expandable-tile): set relative position in tile
2021-11-07 12:09:51 -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
b3a73cf80c
fix(data-table): avoid triggering click:row when clicking expandable row chevron ( #890 )
...
Fixes #889
2021-11-06 10:33:33 -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
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
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
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
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
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
Eric Liu
6759d3e8a0
fix(progress-indicator): prevent keyboard navigation for incomplete steps #851 ( #852 )
2021-10-15 07:21:47 -07:00
Eric Liu
c4413636a4
Programmatically expand/collapse TreeView nodes ( #850 )
...
* feat(tree-view): add accessors to programmatically expand/collapse nodes
* feat(tree-view): update docs/types
* test(tree-view): test updated TreeView accessors
* docs(tree-view): document TreeView accessors
2021-10-13 08:54:37 -07:00
KoichiKiyokawa
fed34e40ed
fix: add a value prop to Checkbox ( #849 )
2021-10-13 07:38:51 -07:00
Paweł Malinowski
d3eb146fb5
fix(DataTable): handle null/undefined values when sorting ( #846 )
2021-10-11 10:11:59 -07:00
KoichiKiyokawa
05f9d2afb3
fix: menuOptionsClass in OverflowMenu ( #836 )
2021-10-04 09:18:48 -07:00
Eric Liu
ee9bb22768
fix(clickable-tile): explicitly type restProps ( #831 )
2021-09-28 08:55:16 -07:00
Florian-Schoenherr
dbf1f225dc
fix(DataTable): useStaticWidth fix for title/description ( #824 )
...
* fix(DataTable): useStaticWidth title/description
Signed-off-by: Florian-Schoenherr <florian.schoenherr99@gmail.com>
* docs(DataTable): useStaticWidth title/description
Signed-off-by: Florian-Schoenherr <florian.schoenherr99@gmail.com>
* chore(deps-dev): upgrade carbon-components, sass
Co-authored-by: metonym <ericyl.us@gmail.com>
2021-09-23 08:55:06 -07:00
Eric Liu
70163b36f8
fix(combo-box): remove redundant clear events #817 ( #818 )
...
Fixes #817
2021-09-14 09:56:32 -07:00
Eric Liu
e4e75e5859
Fixes ( #814 )
...
* 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
2021-09-11 12:29:26 -07:00