mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(toolbar-search): fix types for on:clear
(#2022)
This commit is contained in:
parent
0831e87135
commit
58e6021b08
4 changed files with 16 additions and 13 deletions
|
@ -4548,16 +4548,16 @@ None.
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
| Event name | Type | Detail |
|
| Event name | Type | Detail |
|
||||||
| :--------- | :-------- | :----- |
|
| :--------- | :--------- | :---------------- |
|
||||||
| clear | forwarded | -- |
|
| clear | dispatched | <code>null</code> |
|
||||||
| change | forwarded | -- |
|
| change | forwarded | -- |
|
||||||
| input | forwarded | -- |
|
| input | forwarded | -- |
|
||||||
| focus | forwarded | -- |
|
| focus | forwarded | -- |
|
||||||
| blur | forwarded | -- |
|
| blur | forwarded | -- |
|
||||||
| keyup | forwarded | -- |
|
| keyup | forwarded | -- |
|
||||||
| keydown | forwarded | -- |
|
| keydown | forwarded | -- |
|
||||||
| paste | forwarded | -- |
|
| paste | forwarded | -- |
|
||||||
|
|
||||||
## `Tooltip`
|
## `Tooltip`
|
||||||
|
|
||||||
|
|
|
@ -14257,7 +14257,7 @@
|
||||||
"moduleExports": [],
|
"moduleExports": [],
|
||||||
"slots": [],
|
"slots": [],
|
||||||
"events": [
|
"events": [
|
||||||
{ "type": "forwarded", "name": "clear", "element": "Search" },
|
{ "type": "dispatched", "name": "clear", "detail": "null" },
|
||||||
{ "type": "forwarded", "name": "change", "element": "Search" },
|
{ "type": "forwarded", "name": "change", "element": "Search" },
|
||||||
{ "type": "forwarded", "name": "input", "element": "Search" },
|
{ "type": "forwarded", "name": "input", "element": "Search" },
|
||||||
{ "type": "forwarded", "name": "focus", "element": "Search" },
|
{ "type": "forwarded", "name": "focus", "element": "Search" },
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
<script>
|
<script>
|
||||||
/** @restProps {input} */
|
/**
|
||||||
|
* @restProps {input}
|
||||||
|
* @event {null} clear
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the value of the search input
|
* Specify the value of the search input
|
||||||
|
|
2
types/DataTable/ToolbarSearch.svelte.d.ts
vendored
2
types/DataTable/ToolbarSearch.svelte.d.ts
vendored
|
@ -69,7 +69,7 @@ export interface ToolbarSearchProps extends RestProps {
|
||||||
export default class ToolbarSearch extends SvelteComponentTyped<
|
export default class ToolbarSearch extends SvelteComponentTyped<
|
||||||
ToolbarSearchProps,
|
ToolbarSearchProps,
|
||||||
{
|
{
|
||||||
clear: WindowEventMap["clear"];
|
clear: CustomEvent<null>;
|
||||||
change: WindowEventMap["change"];
|
change: WindowEventMap["change"];
|
||||||
input: WindowEventMap["input"];
|
input: WindowEventMap["input"];
|
||||||
focus: WindowEventMap["focus"];
|
focus: WindowEventMap["focus"];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue