fix: remove translateWithIdMenu, use translateWithId instead, rename translateWithIdInput (#1285)

* fix: remove translateWithIdMenu, use translateWithId instead

* chore: rename translateWithIdInput to translateWithIdSelection
This commit is contained in:
metonym 2022-05-04 07:40:10 -07:00 committed by GitHub
commit f7146b61dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 81 additions and 135 deletions

View file

@ -82,19 +82,12 @@
*/
export let translateWithId = undefined;
/**
* Override the menu label based on the open state.
* Defaults to "Open menu" and "Close menu"
* @type {(id: any) => string}
*/
export let translateWithIdMenu = undefined;
/**
* Override the label of the clear button when the input has a selection.
* Defaults to "Clear selected item" since a combo box can only have on selection.
* @type {(id: "clearSelection") => string}
*/
export let translateWithIdInput = undefined;
export let translateWithIdSelection = undefined;
/** Set an id for the list box component */
export let id = "ccs-" + Math.random().toString(36);
@ -246,7 +239,7 @@
}}"
id="{id}"
disabled="{disabled}"
translateWithId="{translateWithIdMenu}"
translateWithId="{translateWithId}"
>
<input
bind:this="{ref}"
@ -340,7 +333,7 @@
<ListBoxSelection
on:clear
on:clear="{clear}"
translateWithId="{translateWithIdInput}"
translateWithId="{translateWithIdSelection}"
disabled="{disabled}"
open="{open}"
/>