chore: rename translateWithIdInput to translateWithIdSelection

This commit is contained in:
Eric Liu 2022-05-04 07:35:39 -07:00
commit a2b48f4962
2 changed files with 6 additions and 6 deletions

View file

@ -87,7 +87,7 @@
* 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);
@ -333,7 +333,7 @@
<ListBoxSelection
on:clear
on:clear="{clear}"
translateWithId="{translateWithIdInput}"
translateWithId="{translateWithIdSelection}"
disabled="{disabled}"
open="{open}"
/>

View file

@ -103,10 +103,10 @@
/**
* Override the label of the clear button when the input has a selection.
* Defaults to "Clear selected item" and "Clear all items"
* Defaults to "Clear selected item" and "Clear all items" if more than one item is selected
* @type {(id: import("../ListBox/ListBoxSelection.svelte").ListBoxSelectionTranslationId) => string}
*/
export let translateWithIdInput = undefined;
export let translateWithIdSelection = undefined;
/** Specify the title text */
export let titleText = "";
@ -382,7 +382,7 @@
}));
if (fieldRef) fieldRef.blur();
}}"
translateWithId="{translateWithIdInput}"
translateWithId="{translateWithIdSelection}"
disabled="{disabled}"
/>
{/if}
@ -447,7 +447,7 @@
inputValue = '';
open = false;
}}"
translateWithId="{translateWithIdInput}"
translateWithId="{translateWithIdSelection}"
disabled="{disabled}"
open="{open}"
/>