mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
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:
parent
0c39506dcb
commit
f7146b61dc
8 changed files with 81 additions and 135 deletions
|
@ -101,18 +101,12 @@
|
|||
*/
|
||||
export let translateWithId = undefined;
|
||||
|
||||
/**
|
||||
* Override the default translation ids for the 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" 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 = "";
|
||||
|
@ -375,7 +369,7 @@
|
|||
}}"
|
||||
id="{id}"
|
||||
disabled="{disabled}"
|
||||
translateWithId="{translateWithIdMenu}"
|
||||
translateWithId="{translateWithId}"
|
||||
>
|
||||
{#if checked.length > 0}
|
||||
<ListBoxSelection
|
||||
|
@ -388,7 +382,7 @@
|
|||
}));
|
||||
if (fieldRef) fieldRef.blur();
|
||||
}}"
|
||||
translateWithId="{translateWithIdInput}"
|
||||
translateWithId="{translateWithIdSelection}"
|
||||
disabled="{disabled}"
|
||||
/>
|
||||
{/if}
|
||||
|
@ -453,7 +447,7 @@
|
|||
inputValue = '';
|
||||
open = false;
|
||||
}}"
|
||||
translateWithId="{translateWithIdInput}"
|
||||
translateWithId="{translateWithIdSelection}"
|
||||
disabled="{disabled}"
|
||||
open="{open}"
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue