/** * Note: one could consider to implement LionInputAmountDropdown as a * [combobox](https://www.w3.org/TR/wai-aria-practices-1.2/#combobox). * However, the currency dropdown does not directly set the textbox value, it only determines * its region code. Therefore it does not comply to this criterium: * "A combobox is an input widget with an associated popup that enables users to select a value for * the combobox from a collection of possible values. In some implementations, * the popup presents allowed values, while in other implementations, the popup presents suggested * values, and users may either select one of the suggestions or type a value". * We therefore decided to consider the dropdown a helper mechanism that does not set, but * contributes to and helps format and validate the actual value. */ /** * @typedef {import('lit/directives/ref.js').Ref} Ref * @typedef {import('lit').RenderOptions} RenderOptions * @typedef {import('../../form-core/types/FormatMixinTypes.js').FormatHost} FormatHost * @typedef {import('../../input-tel/types/index.js').RegionCode} RegionCode * @typedef {import('../types/index.js').TemplateDataForDropdownInputAmount} TemplateDataForDropdownInputAmount * @typedef {import('../types/index.js').OnDropdownChangeEvent} OnDropdownChangeEvent * @typedef {import('../types/index.js').DropdownRef} DropdownRef * @typedef {import('../types/index.js').RegionMeta} RegionMeta * @typedef {import('../types/index.js').CurrencyCode} CurrencyCode * @typedef {import('../../select-rich/src/LionSelectRich.js').LionSelectRich} LionSelectRich * @typedef {import('../../overlays/src/OverlayController.js').OverlayController} OverlayController * @typedef {import('../../form-core/types/FormatMixinTypes.js').FormatOptions} FormatOptions * @typedef {FormatOptions & {locale?:string;currency:string|undefined}} AmountFormatOptions * @typedef {TemplateDataForDropdownInputAmount & {data: {regionMetaList:RegionMeta[]}}} TemplateDataForIntlInputAmount */ /** * LionInputAmountDropdown renders a dropdown like element next to the text field, inside the * prefix, or suffix, slot. This could be a LionSelect, a LionSelectRich or a native select. * By default, the native `