metonym
78d3f1328a
feat(select): support selected
prop number type ( #1355 )
...
* feat(select): support number type
* Run "yarn build:docs"
* refactor(pagination): do not coerce `pageSize`, `page` to be numbers
* test(select): assert selected prop number type
2022-06-18 11:09:41 -07:00
metonym
72c24b83b2
feat(data-table): support programmatic sorting ( #1337 )
...
* refactor(data-table): pass down sortable props instead of using context
* feat(data-table): support programmatic sorting
* test(data-table): assert new props
* docs(data-table): add "Programmatic sorting" example
* refactor(data-table): remove unused tableSortable store
* refactor(data-table): remove unused indices
2022-06-05 13:37:50 -07:00
metonym
260bf4e040
breaking(types): type arrays as read-only ( #1335 )
...
Closes #1259
* breaking(types): type arrays as read-only
* Run "yarn build:docs"
* test: assert read-only arrays
2022-06-05 13:25:43 -07:00
metonym
e230db8115
feat: forward paste event to input/textarea elements ( #1332 )
...
* chore(deps-dev): upgrade sveld, svelte-check
* feat: forward paste event to input/textarea elements
* Run "yarn build:docs"
* test: assert paste event
2022-06-02 18:39:49 -07:00
metonym
f25a10c9c4
feat: support item.disabled
key for Dropdown
, MultiSelect
, ComboBox
( #1328 )
...
Closes #1326
* feat: support item.disabled key for `Dropdown`, `MultiSelect`, `ComboBox`
* Run "yarn build:docs"
* test: assert disabled property
* docs: add "Disabled items" examples
2022-06-02 17:56:30 -07:00
metonym
c6f210899b
feat(data-table): allow custom column widths ( #1265 )
...
* feat(data-table): allow header column `width`, `minWidth` values
* Run "yarn build:docs"
* test(data-table): assert width, minWidth properties
* docs(data-table): add "Custom column widths" example
2022-05-14 09:24:24 -07:00
metonym
5576c7ce84
fix(header-action): type missing "open" event ( #1293 )
...
* fix(header-action): type missing "open" event
* Run "yarn build:docs"
* test(header-utilities): assert "open" and "close" events
2022-05-12 20:23:16 -07:00
metonym
1454eeae19
feat(code-snippet): dispatch "expand" and "collapse" events ( #1291 )
...
* test(code-snippet): simply assertions
* feat(code-snippet): dispatch "expand," "collapse" events
* Run "yarn build:docs"
* test(code-snippet): assert events
2022-05-12 19:52:31 -07:00
metonym
d242849780
fix(dropdown): strongly type translateWithId
( #1286 )
2022-05-04 07:52:42 -07:00
metonym
f7146b61dc
fix: remove translateWithIdMenu
, use translateWithId
instead, rename translateWithIdInput
( #1285 )
...
* fix: remove translateWithIdMenu, use translateWithId instead
* chore: rename translateWithIdInput to translateWithIdSelection
2022-05-04 07:40:10 -07:00
metonym
0c39506dcb
fix(types): strongly type translateWithId
parameters ( #1284 )
2022-05-04 07:31:51 -07:00
metonym
ff2e6276db
fix: ComboBox
, MultiSelect
should have multiple translateWithId
functions ( #1283 )
...
* 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
2022-05-04 07:17:35 -07:00
metonym
45c272642f
fix(link): $$restProps
should extend p
, a
HTML attributes ( #1233 )
...
* fix(link): restProps should extend `p` or `a` tag attributes
* Run "yarn build:docs"
* test(link): assert anchor link rest attributes
2022-04-09 11:24:25 -07:00
metonym
ba58ba8f00
refactor: use icons from carbon-icons-svelte@11
( #1227 )
...
* 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]
2022-04-03 11:57:28 -07:00
metonym
9143e50244
breaking(actions): move truncate
action to src/Truncate ( #1224 )
...
* breaking: move truncate action to src/Truncate
* docs: update truncate docs
2022-04-02 12:04:33 -07:00
metonym
d34f571150
docs: use all.css
for prefixed styles ( #1221 )
...
* docs: remove .bx--content override
* docs(ui-shell): add note on UI Shell theming
* docs(grid): touch up grid examples
* docs(theme): wrap localStorage in try catch
So that the site still works in Safari with all cookies blocked.
* docs: use prefixed all.css
Without vendor prefixes, some styles are lost in Safari.
* docs: remove svelte-preprocess from svelte.config.js
2022-04-02 11:45:29 -07:00
metonym
5209f329bd
build(types): copy .d.ts files from src to types ( #1218 )
2022-03-27 13:26:13 -07:00
metonym
6986aac1be
breaking: remove legacy optimizeCarbonImports preprocessor ( #1217 )
2022-03-27 09:30:15 -07:00
metonym
ade0557448
feat: upgrade carbon-components to v10.56.0 ( #1213 )
...
* chore(deps-dev): upgrade carbon-components to v10.56.0
* feat(progress-bar): add kind prop
* Run "yarn build:docs"
* test(progress-bar): assert kind prop
2022-03-27 08:27:23 -07:00
metonym
21714d0e3a
breaking: remove deprecated props and components ( #1191 )
2022-03-27 08:21:58 -07:00
metonym
2df7b92269
feat(toolbar-search): support auto-filterable rows ( #1179 )
...
Closes #591
2022-03-19 12:01:03 -07:00
metonym
1017e80198
feat(multi-select): make MultiSelect
slottable ( #1183 )
2022-03-19 09:15:58 -07:00
metonym
f5594daba6
feat(dropdown): make Dropdown
slottable ( #1182 )
2022-03-19 09:15:52 -07:00
metonym
2858776367
feat(combo-box): make ComboBox
slottable ( #1181 )
...
Closes #1176
2022-03-19 09:15:41 -07:00
metonym
ceb7abf2e9
docs: fix formatting, broken link ( #1177 )
2022-03-16 07:33:59 -07:00
metonym
cb014219fd
chore(deps-dev): upgrade svelte-check to v2.4.5 ( #1159 )
2022-03-12 13:50:47 -08:00
brunnerh
5de0d9a357
breaking(breakpoint): add breakpointObserver store ( #1092 )
...
* breaking: re-name event "on:match" to "on:change" in `Breakpoint.svelte`
* feat: add `breakpointObserver` read-only store
* refactor: export breakpoint constants from `breakpoints.js`
2022-03-08 08:38:58 -08:00
metonym
714f47a635
fix(types): dispatched events without a detail value should be null
( #1124 )
...
Currently, dispatched events without `e.detail` have a type of `any`.
We can be more specific as a `CustomEvent` detail value is `null`.
2022-02-21 09:42:42 -08:00
metonym
2f3cff2942
fix(file-uploader): update clearFiles
accessor description ( #1122 )
...
The `clearFiles` prop description currently reads "Override the default behavior of clearing the array of uploaded files."
This is misleading as `clearFiles` is a component accessor, not a `let` prop.
2022-02-21 09:24:50 -08:00
metonym
7602731b0b
fix(file-uploader): FileUploader
change detail should be File[]
instead of FileList
( #1117 )
...
Fixes #1112
2022-02-21 08:34:03 -08:00
metonym
63f52b4683
fix(multi-select): non-filterable MultiSelect
should dispatch a blur event ( #1080 )
...
The non-filterable `MultiSelect` is missing a `blur` event.
Implementation-wise, we have to dispatch it and include the event as the `detail`. Otherwise, the filterable variant will dispatch "blur" twice because it has both a button and input.
The filterable `MultiSelect` continues to forward the blur event to the input.
2022-02-10 08:27:09 -08:00
metonym
20e61724c1
feat(tooltip-definition): export open prop, dispatch open/close events ( #1057 )
2022-02-09 20:00:38 -08:00
metonym
989e0f4c65
breaking(text-input): use native bind:value
, dispatch instead of forward change
, input
events ( #1065 )
...
Use the native `bind:value` to fix two-way reactivity. As a result, "type" is read through `$$restProps` because it cannot be dynamic when using `bind:value`.
Extend value type to include `null` for the "number" type. This is similar to how `NumberInput` works; `null` represents "no value."
2022-02-09 19:52:10 -08:00
metonym
504cf09dc8
fix(tooltip): type Tooltip
open, close events ( #1058 )
2022-02-01 07:20:43 -08:00
metonym
9e915cf90a
breaking(number-input): type value
as null | number
( #1044 )
...
Fixes #1039
2022-01-27 06:57:32 -08:00
Eric Liu
1f7b5560a8
Type id
as any in ComboBox
, Dropdown
, MultiSelect
( #1019 )
...
Loosen the prop type for `id`, `selectedId` to be `any` instead of a `string`.
2022-01-20 18:50:36 -08:00
Koichi Kiyokawa
cde8a79fa8
feat(ComboBox): selectedIndex -> selectedId ( #1016 )
...
* feat(breaking): selectedIndex -> selectedId in ComboBox
* docs: update ComboBox
2022-01-18 06:37:55 -08:00
Koichi Kiyokawa
e11a893bee
feat(Dropdown): selectedIndex -> selectedId ( #1004 )
...
* feat(breaking): selectedIndex -> selectedId in Dropdown
* feat: omit `selectedIndex` from the `select` event
2022-01-18 06:37:32 -08:00
Eric Liu
653a601f9b
Revert "Refactor prop types to omit redundant null
for null | HTMLElement
types" ( #1008 )
...
#996
2022-01-14 11:29:37 -10:00
Eric Liu
37f19d2171
Add option to not re-focus ComboBox
when invoking clear()
( #1000 )
...
* feat(combo-box): add option to clear accessor to not re-focus input
Closes #994
* yarn build:lib
* test(combo-box): validate clear accessor params
* docs(combo-box): add clear without focus to "Clear selection" example
2022-01-12 16:12:43 -10:00
Eric Liu
6de73f86fb
Refactor prop types to omit redundant null
for null | HTMLElement
types ( #998 )
...
* refactor: omit redundant `null` prop type for HTMLElements
* yarn build:lib
* test: assert updated element prop types
2022-01-12 13:36:47 -10: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
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
08402e54bf
feat(form): add ref prop ( #900 )
...
Closes #877
2021-11-10 19:46:14 -08: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
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
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
Eric Liu
ee9bb22768
fix(clickable-tile): explicitly type restProps ( #831 )
2021-09-28 08:55:16 -07:00
metonym
f2a445cb7e
feat(date-picker): type flatpickrProps
2021-09-07 08:39:46 -07:00