@lion/ui 0.13.1 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/components/input-amount-dropdown/src/LionInputAmountDropdown.js +557 -0
  2. package/components/input-amount-dropdown/src/currencyUtil.js +324 -0
  3. package/components/input-amount-dropdown/src/formatters.js +24 -0
  4. package/components/input-amount-dropdown/src/localizeNamespaceLoader.js +7 -0
  5. package/components/input-amount-dropdown/src/parsers.js +23 -0
  6. package/components/input-amount-dropdown/src/serializers.js +24 -0
  7. package/components/input-amount-dropdown/src/validators.js +22 -0
  8. package/components/input-amount-dropdown/test/LionInputAmountDropdown.test.js +199 -0
  9. package/components/input-amount-dropdown/test-helpers/mimicUserChangingDropdown.js +22 -0
  10. package/components/input-amount-dropdown/test-suites/LionInputAmountDropdown.suite.js +322 -0
  11. package/components/input-amount-dropdown/translations/en.js +5 -0
  12. package/components/input-amount-dropdown/types/index.ts +234 -0
  13. package/components/input-tel/types/index.ts +6 -0
  14. package/components/localize/src/number/getFractionDigits.js +1 -1
  15. package/custom-elements.json +5449 -1391
  16. package/dist-types/components/input-amount-dropdown/src/LionInputAmountDropdown.d.ts +221 -0
  17. package/dist-types/components/input-amount-dropdown/src/LionInputAmountDropdown.d.ts.map +1 -0
  18. package/dist-types/components/input-amount-dropdown/src/currencyUtil.d.ts +24 -0
  19. package/dist-types/components/input-amount-dropdown/src/currencyUtil.d.ts.map +1 -0
  20. package/dist-types/components/input-amount-dropdown/src/formatters.d.ts +4 -0
  21. package/dist-types/components/input-amount-dropdown/src/formatters.d.ts.map +1 -0
  22. package/dist-types/components/input-amount-dropdown/src/localizeNamespaceLoader.d.ts +2 -0
  23. package/dist-types/components/input-amount-dropdown/src/localizeNamespaceLoader.d.ts.map +1 -0
  24. package/dist-types/components/input-amount-dropdown/src/parsers.d.ts +2 -0
  25. package/dist-types/components/input-amount-dropdown/src/parsers.d.ts.map +1 -0
  26. package/dist-types/components/input-amount-dropdown/src/serializers.d.ts +3 -0
  27. package/dist-types/components/input-amount-dropdown/src/serializers.d.ts.map +1 -0
  28. package/dist-types/components/input-amount-dropdown/src/validators.d.ts +12 -0
  29. package/dist-types/components/input-amount-dropdown/src/validators.d.ts.map +1 -0
  30. package/dist-types/components/input-amount-dropdown/test/LionInputAmountDropdown.test.d.ts +7 -0
  31. package/dist-types/components/input-amount-dropdown/test/LionInputAmountDropdown.test.d.ts.map +1 -0
  32. package/dist-types/components/input-amount-dropdown/test-helpers/mimicUserChangingDropdown.d.ts +12 -0
  33. package/dist-types/components/input-amount-dropdown/test-helpers/mimicUserChangingDropdown.d.ts.map +1 -0
  34. package/dist-types/components/input-amount-dropdown/test-suites/LionInputAmountDropdown.suite.d.ts +13 -0
  35. package/dist-types/components/input-amount-dropdown/test-suites/LionInputAmountDropdown.suite.d.ts.map +1 -0
  36. package/dist-types/components/input-amount-dropdown/translations/en.d.ts +7 -0
  37. package/dist-types/components/input-amount-dropdown/translations/en.d.ts.map +1 -0
  38. package/dist-types/components/input-amount-dropdown/types/index.d.ts +86 -0
  39. package/dist-types/components/input-amount-dropdown/types/index.d.ts.map +1 -0
  40. package/dist-types/components/input-tel/types/index.d.ts +1 -1
  41. package/dist-types/components/input-tel/types/index.d.ts.map +1 -1
  42. package/dist-types/components/localize/src/number/getFractionDigits.d.ts +1 -1
  43. package/dist-types/exports/define/lion-input-amount-dropdown.d.ts +2 -0
  44. package/dist-types/exports/define/lion-input-amount-dropdown.d.ts.map +1 -0
  45. package/dist-types/exports/input-amount-dropdown-test-helpers.d.ts +2 -0
  46. package/dist-types/exports/input-amount-dropdown-test-helpers.d.ts.map +1 -0
  47. package/dist-types/exports/input-amount-dropdown-test-suites.d.ts +2 -0
  48. package/dist-types/exports/input-amount-dropdown-test-suites.d.ts.map +1 -0
  49. package/dist-types/exports/input-amount-dropdown.d.ts +2 -0
  50. package/dist-types/exports/input-amount-dropdown.d.ts.map +1 -0
  51. package/dist-types/tsconfig.tsbuildinfo +1 -1
  52. package/docs/components/checkbox-group/overview.md +2 -2
  53. package/docs/components/collapsible/overview.md +1 -1
  54. package/docs/components/combobox/overview.md +1 -1
  55. package/docs/components/combobox/use-cases.md +1 -1
  56. package/docs/components/dialog/overview.md +1 -1
  57. package/docs/components/fieldset/overview.md +5 -5
  58. package/docs/components/form/overview.md +3 -3
  59. package/docs/components/form/use-cases.md +2 -2
  60. package/docs/components/icon/use-cases.md +1 -1
  61. package/docs/components/input/overview.md +1 -1
  62. package/docs/components/input-amount/overview.md +3 -3
  63. package/docs/components/input-amount-dropdown/api-table.md +210 -0
  64. package/docs/components/input-amount-dropdown/index.md +13 -0
  65. package/docs/components/input-amount-dropdown/use-cases.md +103 -0
  66. package/docs/components/input-date/overview.md +3 -3
  67. package/docs/components/input-datepicker/overview.md +5 -5
  68. package/docs/components/input-email/overview.md +2 -2
  69. package/docs/components/input-file/overview.md +1 -1
  70. package/docs/components/input-iban/overview.md +2 -2
  71. package/docs/components/input-range/overview.md +2 -2
  72. package/docs/components/input-stepper/overview.md +1 -1
  73. package/docs/components/input-tel/overview.md +1 -1
  74. package/docs/components/input-tel/use-cases.md +6 -6
  75. package/docs/components/input-tel-dropdown/overview.md +1 -1
  76. package/docs/components/listbox/use-cases.md +1 -1
  77. package/docs/components/radio-group/overview.md +3 -3
  78. package/docs/components/select/use-cases.md +1 -1
  79. package/docs/components/select-rich/use-cases.md +1 -1
  80. package/docs/components/tabs/examples.md +1 -1
  81. package/docs/fundamentals/index.md +4 -4
  82. package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
  83. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
  84. package/docs/fundamentals/rationales/accessibility.md +1 -1
  85. package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
  86. package/docs/fundamentals/systems/core/overview.md +1 -1
  87. package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
  88. package/docs/fundamentals/systems/form/model-value.md +1 -1
  89. package/docs/fundamentals/systems/form/overview.md +28 -28
  90. package/docs/fundamentals/systems/form/validate.md +2 -2
  91. package/docs/fundamentals/systems/localize/overview.md +4 -4
  92. package/docs/fundamentals/systems/overlays/configuration.md +2 -2
  93. package/docs/fundamentals/systems/overlays/overview.md +5 -5
  94. package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
  95. package/docs/fundamentals/tools/helpers/overview.md +1 -1
  96. package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
  97. package/docs/guides/how-to/create-a-custom-field.md +5 -5
  98. package/docs/guides/how-to/create-a-form.md +4 -4
  99. package/docs/guides/how-to/extend-a-native-input.md +2 -2
  100. package/docs/guides/index.md +8 -8
  101. package/docs/guides/principles/index.md +5 -5
  102. package/docs/guides/principles/styling.md +1 -1
  103. package/exports/define/lion-input-amount-dropdown.js +3 -0
  104. package/exports/input-amount-dropdown-test-helpers.js +1 -0
  105. package/exports/input-amount-dropdown-test-suites.js +1 -0
  106. package/exports/input-amount-dropdown.js +1 -0
  107. package/input-amount-dropdown-test-helpers.js +1 -0
  108. package/input-amount-dropdown-test-suites.js +1 -0
  109. package/input-amount-dropdown.js +1 -0
  110. package/package.json +2 -1
@@ -0,0 +1,221 @@
1
+ /**
2
+ * Note: one could consider to implement LionInputAmountDropdown as a
3
+ * [combobox](https://www.w3.org/TR/wai-aria-practices-1.2/#combobox).
4
+ * However, the currency dropdown does not directly set the textbox value, it only determines
5
+ * its region code. Therefore it does not comply to this criterium:
6
+ * "A combobox is an input widget with an associated popup that enables users to select a value for
7
+ * the combobox from a collection of possible values. In some implementations,
8
+ * the popup presents allowed values, while in other implementations, the popup presents suggested
9
+ * values, and users may either select one of the suggestions or type a value".
10
+ * We therefore decided to consider the dropdown a helper mechanism that does not set, but
11
+ * contributes to and helps format and validate the actual value.
12
+ */
13
+ /**
14
+ * @typedef {import('lit/directives/ref.js').Ref} Ref
15
+ * @typedef {import('lit').RenderOptions} RenderOptions
16
+ * @typedef {import('../../form-core/types/FormatMixinTypes.js').FormatHost} FormatHost
17
+ * @typedef {import('../../input-tel/types/index.js').RegionCode} RegionCode
18
+ * @typedef {import('../types/index.js').TemplateDataForDropdownInputAmount} TemplateDataForDropdownInputAmount
19
+ * @typedef {import('../types/index.js').OnDropdownChangeEvent} OnDropdownChangeEvent
20
+ * @typedef {import('../types/index.js').DropdownRef} DropdownRef
21
+ * @typedef {import('../types/index.js').RegionMeta} RegionMeta
22
+ * @typedef {import('../types/index.js').CurrencyCode} CurrencyCode
23
+ * @typedef {import('../../select-rich/src/LionSelectRich.js').LionSelectRich} LionSelectRich
24
+ * @typedef {import('../../overlays/src/OverlayController.js').OverlayController} OverlayController
25
+ * @typedef {import('../../form-core/types/FormatMixinTypes.js').FormatOptions} FormatOptions
26
+ * @typedef {FormatOptions & {locale?:string;currency:string|undefined}} AmountFormatOptions
27
+ * @typedef {TemplateDataForDropdownInputAmount & {data: {regionMetaList:RegionMeta[]}}} TemplateDataForIntlInputAmount
28
+ */
29
+ /**
30
+ * LionInputAmountDropdown renders a dropdown like element next to the text field, inside the
31
+ * prefix, or suffix, slot. This could be a LionSelect, a LionSelectRich or a native select.
32
+ * By default, the native `<select>` element is used for this, so that it's as lightweight as
33
+ * possible. Also, it doesn't need to be a `FormControl`, because it's purely a helper element
34
+ * to provide better UX: the modelValue (the text field) contains all needed info:
35
+ * the currency code following ISO 4217 and its corresponding currency symbol using Intl.
36
+ *
37
+ * @customElement lion-input-amount-dropdown
38
+ */
39
+ export class LionInputAmountDropdown extends LionInputAmount {
40
+ /**
41
+ * @configure LitElement
42
+ * @type {any}
43
+ */
44
+ static properties: any;
45
+ static localizeNamespaces: import("../../localize/types/LocalizeMixinTypes.js").NamespaceObject[];
46
+ static templates: {
47
+ dropdown: (templateDataForDropdown: TemplateDataForDropdownInputAmount) => import("lit-html").TemplateResult<1>;
48
+ /**
49
+ * @param {TemplateDataForDropdownInputAmount} templateDataForDropdown
50
+ * @param {RegionMeta} contextData
51
+ */
52
+ dropdownOption: (templateDataForDropdown: TemplateDataForDropdownInputAmount, { currencyCode, nameForLocale, currencySymbol }: RegionMeta) => import("lit-html").TemplateResult<1>;
53
+ };
54
+ /**
55
+ * @configure LitElement
56
+ * @enhance LionInputAmountDropdown
57
+ */
58
+ static styles: (import("lit").CSSResult | (import("lit").CSSResultOrNative | import("lit").CSSResultArray)[])[];
59
+ refs: {
60
+ /** @type {DropdownRef} */
61
+ dropdown: DropdownRef;
62
+ };
63
+ /**
64
+ * This method provides a TemplateData object to be fed to pure template functions, a.k.a.
65
+ * Pure Templates™. The goal is to totally decouple presentation from logic here, so that
66
+ * Subclassers can override all content without having to loose private info contained
67
+ * within the template function that was overridden.
68
+ *
69
+ * Subclassers would need to make sure all the contents of the TemplateData object are implemented
70
+ * by making sure they are coupled to the right 'ref' ([data-ref=dropdown] in this example),
71
+ * with the help of lit's spread operator directive.
72
+ * To enhance this process, the TemplateData object is completely typed. Ideally, this would be
73
+ * enhanced by providing linters that make sure all of their required members are implemented by
74
+ * a Subclasser.
75
+ * When a Subclasser wants to add more data, this can be done via:
76
+ * @example
77
+ * ```js
78
+ * get _templateDataDropdown() {
79
+ * return {
80
+ * ...super._templateDataDropdown,
81
+ * myExtraData: { x: 1, y: 2 },
82
+ * }
83
+ * }
84
+ * ```
85
+ * @overridable
86
+ * @type {TemplateDataForDropdownInputAmount}
87
+ */
88
+ get _templateDataDropdown(): import("../types/index.js").TemplateDataForDropdownInputAmount;
89
+ set _dropdownSlot(arg: string);
90
+ /**
91
+ * @returns {string}
92
+ */
93
+ get _dropdownSlot(): string;
94
+ __dropdownSlot: string;
95
+ /**
96
+ * @protected
97
+ * @type {RegionCode}
98
+ */
99
+ protected _langIso: import("../../input-tel/types/index.js").RegionCode | undefined;
100
+ __namesForLocale: Intl.DisplayNames | undefined;
101
+ parser: (value: string, givenOptions?: import("../../localize/types/LocalizeMixinTypes.js").FormatNumberOptions | undefined) => import("../types/index.js").AmountDropdownModelValue;
102
+ /**
103
+ * @param {import("../types/index.js").AmountDropdownModelValue} modelValue
104
+ * @param {import('../../localize/types/LocalizeMixinTypes.js').FormatNumberOptions} [givenOptions] Locale Options
105
+ */
106
+ formatter: (modelValue: import("../types/index.js").AmountDropdownModelValue, givenOptions?: import("../../localize/types/LocalizeMixinTypes.js").FormatNumberOptions | undefined) => string;
107
+ serializer: (modelValue: import("../types/index.js").AmountDropdownModelValue) => string;
108
+ deserializer: (serializedValue: string) => import("../types/index.js").AmountDropdownModelValue;
109
+ defaultValidators: CurrencyAndAmount[];
110
+ /**
111
+ * Regions that will be shown on top of the dropdown
112
+ * @type {CurrencyCode[]}
113
+ */
114
+ preferredCurrencies: CurrencyCode[];
115
+ /**
116
+ * Regions that are allowed to be selected in the dropdown.
117
+ * @type {CurrencyCode[]}
118
+ */
119
+ allowedCurrencies: CurrencyCode[];
120
+ /**
121
+ * Group label for all countries, when preferredCountries are shown
122
+ * @protected
123
+ */
124
+ protected _allCurrenciesLabel: string;
125
+ /**
126
+ * Group label for preferred countries, when preferredCountries are shown
127
+ * @protected
128
+ */
129
+ protected _preferredCurrenciesLabel: string;
130
+ /**
131
+ * Contains everything needed for rendering region options:
132
+ * region code, currency code, display name according to locale, display name
133
+ * @private
134
+ * @type {RegionMeta[]}
135
+ */
136
+ private __regionMetaList;
137
+ /**
138
+ * A filtered `this.__regionMetaList`, containing all regions provided in `preferredCurrencies`
139
+ * @private
140
+ * @type {RegionMeta[]}
141
+ */
142
+ private __regionMetaListPreferred;
143
+ /**
144
+ * @protected
145
+ * @param {OnDropdownChangeEvent} event
146
+ */
147
+ protected _onDropdownValueChange(event: OnDropdownChangeEvent): void;
148
+ /**
149
+ * @private
150
+ */
151
+ private __syncCurrencyWithDropdown;
152
+ _currencyUtil: {
153
+ countryToCurrencyMap: import("../types/index.js").RegionToCurrencyMap;
154
+ allCurrencies: import("../types/index.js").AllCurrenciesSet;
155
+ getCurrencySymbol: (currency: import("../types/index.js").CurrencyCode, locale: string) => string;
156
+ };
157
+ /**
158
+ * @protected
159
+ */
160
+ protected _initModelValueBasedOnDropdown(): void;
161
+ __initializedCurrencyCode: string | undefined;
162
+ /**
163
+ * Used for Required validation and computation of interaction states.
164
+ * We need to override this, because we prefill the input with the currency code, but for proper UX,
165
+ * we don't consider this as having interaction state `prefilled`
166
+ * @param {string} modelValue
167
+ * @return {boolean}
168
+ * @protected
169
+ */
170
+ protected _isEmpty(modelValue?: string): boolean;
171
+ /**
172
+ * Prepares data for options, like "Greece (Ελλάδα)", where "Greece" is `nameForLocale` and
173
+ * "Ελλάδα" `nameForRegion`.
174
+ * This should be run on change of:
175
+ * - allowedCurrencies
176
+ * - locale
177
+ * @private
178
+ */
179
+ private __createCurrencyMeta;
180
+ /**
181
+ * Usually, we don't use composition in regular LionFields (non choice-groups). Here we use a LionSelect(Rich) inside.
182
+ * We don't want to repropagate any children, since an Application Developer is not concerned with these internals (see repropate logic in FormControlMixin)
183
+ * Also, we don't want to give (wrong) info to InteractionStateMixin, that will set the wrong interaction states based on child info.
184
+ * TODO: Make "this._repropagationRole !== 'child'" the default for FormControlMixin
185
+ * (so that FormControls used within are never repropagated for LionFields)
186
+ * @protected
187
+ * @configure FormControlMixin: don't repropagate any children
188
+ */
189
+ protected _repropagationCondition(): boolean;
190
+ __calculateActiveCurrency(): void;
191
+ /**
192
+ * Used for rendering the region/currency list
193
+ * @property _allowedOrAllRegions
194
+ * @type {CurrencyCode[]}
195
+ */
196
+ get _allowedOrAllCurrencies(): import("../types/index.js").CurrencyCode[];
197
+ }
198
+ export type Ref = import('lit/directives/ref.js').Ref;
199
+ export type RenderOptions = import('lit').RenderOptions;
200
+ export type FormatHost = import('../../form-core/types/FormatMixinTypes.js').FormatHost;
201
+ export type RegionCode = import('../../input-tel/types/index.js').RegionCode;
202
+ export type TemplateDataForDropdownInputAmount = import('../types/index.js').TemplateDataForDropdownInputAmount;
203
+ export type OnDropdownChangeEvent = import('../types/index.js').OnDropdownChangeEvent;
204
+ export type DropdownRef = import('../types/index.js').DropdownRef;
205
+ export type RegionMeta = import('../types/index.js').RegionMeta;
206
+ export type CurrencyCode = import('../types/index.js').CurrencyCode;
207
+ export type LionSelectRich = import('../../select-rich/src/LionSelectRich.js').LionSelectRich;
208
+ export type OverlayController = import('../../overlays/src/OverlayController.js').OverlayController;
209
+ export type FormatOptions = import('../../form-core/types/FormatMixinTypes.js').FormatOptions;
210
+ export type AmountFormatOptions = FormatOptions & {
211
+ locale?: string;
212
+ currency: string | undefined;
213
+ };
214
+ export type TemplateDataForIntlInputAmount = TemplateDataForDropdownInputAmount & {
215
+ data: {
216
+ regionMetaList: RegionMeta[];
217
+ };
218
+ };
219
+ import { LionInputAmount } from "../../../exports/input-amount.js";
220
+ import { CurrencyAndAmount } from "./validators.js";
221
+ //# sourceMappingURL=LionInputAmountDropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LionInputAmountDropdown.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/src/LionInputAmountDropdown.js"],"names":[],"mappings":"AAYA;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;GASG;AAEH;IACE;;;OAGG;IACH,mBAFU,GAAG,CAMX;IAEF,kGAGE;IAkFF;4CACwB,kCAAkC;QA0BxD;;;WAGG;kDAFQ,kCAAkC,mDAClC,UAAU;MAgBrB;IAEF;;;OAGG;IACH,gHA4BE;IA/JF;QACE,0BAA0B;kBAAf,WAAW;MAEtB;IAEF;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,4FAiCC;IASD,+BAMC;IAbD;;OAEG;IACH,4BAEC;IAOC,gBAiJU,MAAM,CAjJc;IA6G9B;;;OAGG;IACH,oFAEC;IAED,gDAEE;IAYF,qLAAyB;IAEzB;;;OAGG;IACH,wBAHW,OAAO,mBAAmB,EAAE,wBAAwB,iHAG4B;IAC3F,yFAA4B;IAC5B,gGAAgC;IAEhC,uCAAkD;IAQlD;;;OAGG;IACH,qBAFU,YAAY,EAAE,CAEK;IAE7B;;;OAGG;IACH,mBAFU,YAAY,EAAE,CAEG;IAE3B;;;OAGG;IACH,sCAA6B;IAC7B;;;OAGG;IACH,4CAAmC;IAEnC;;;;;OAKG;IACH,yBAA0B;IAE1B;;;;OAIG;IACH,kCAAmC;IAkFrC;;;OAGG;IACH,wCAFW,qBAAqB,QA0B/B;IAED;;OAEG;IACH,mCAmBC;IAzHC;;;;MAAiC;IA6CnC;;OAEG;IACH,iDAOC;IALG,8CAA8C;IAOlD;;;;;;;OAOG;IACH,gCAJW,MAAM,GACL,OAAO,CAKlB;IAwDD;;;;;;;OAOG;IACH,6BAmBC;IAED;;;;;;;;OAQG;IAEH,6CAEC;IAED,kCAkCC;IAED;;;;OAIG;IACH,0EAIC;CACF;kBAlhBY,OAAO,uBAAuB,EAAE,GAAG;4BACnC,OAAO,KAAK,EAAE,aAAa;yBAC3B,OAAO,2CAA2C,EAAE,UAAU;yBAC9D,OAAO,gCAAgC,EAAE,UAAU;iDACnD,OAAO,mBAAmB,EAAE,kCAAkC;oCAC9D,OAAO,mBAAmB,EAAE,qBAAqB;0BACjD,OAAO,mBAAmB,EAAE,WAAW;yBACvC,OAAO,mBAAmB,EAAE,UAAU;2BACtC,OAAO,mBAAmB,EAAE,YAAY;6BACxC,OAAO,yCAAyC,EAAE,cAAc;gCAChE,OAAO,yCAAyC,EAAE,iBAAiB;4BACnE,OAAO,2CAA2C,EAAE,aAAa;kCACjE,aAAa,GAAG;IAAC,MAAM,CAAC,EAAC,MAAM,CAAC;IAAA,QAAQ,EAAC,MAAM,GAAC,SAAS,CAAA;CAAC;6CAC1D,kCAAkC,GAAG;IAAC,IAAI,EAAE;QAAC,cAAc,EAAC,UAAU,EAAE,CAAA;KAAC,CAAA;CAAC"}
@@ -0,0 +1,24 @@
1
+ export namespace currencyUtil {
2
+ export { countryToCurrencyMap };
3
+ export { allCurrencies };
4
+ export { getCurrencySymbol };
5
+ }
6
+ /**
7
+ * Map containing all countries and its corresponding currency, following the i18n standard.
8
+ * @type {import("../types/index.js").RegionToCurrencyMap}
9
+ */
10
+ declare const countryToCurrencyMap: import("../types/index.js").RegionToCurrencyMap;
11
+ /**
12
+ * Set with all possible currencies derived from the i18n standard.
13
+ * @type {import("../types/index.js").AllCurrenciesSet}
14
+ */
15
+ declare const allCurrencies: import("../types/index.js").AllCurrenciesSet;
16
+ /**
17
+ * Matches a currency symbol to a currency code, with a given locale based on Intl.numberFormat.
18
+ * @param {import("./LionInputAmountDropdown.js").CurrencyCode} currency
19
+ * @param {string} locale
20
+ * @returns {string}
21
+ */
22
+ declare function getCurrencySymbol(currency: import("./LionInputAmountDropdown.js").CurrencyCode, locale: string): string;
23
+ export {};
24
+ //# sourceMappingURL=currencyUtil.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currencyUtil.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/src/currencyUtil.js"],"names":[],"mappings":";;;;;AA+RA;;;GAGG;AACH,oCAFU,OAAO,mBAAmB,EAAE,mBAAmB,CAIvD;AAEF;;;GAGG;AACH,6BAFU,OAAO,mBAAmB,EAAE,gBAAgB,CAEqB;AAE3E;;;;;GAKG;AACH,6CAJW,OAAO,8BAA8B,EAAE,YAAY,UACnD,MAAM,GACJ,MAAM,CAYlB"}
@@ -0,0 +1,4 @@
1
+ export function formatAmount(modelValue: import('../types/index.js').AmountDropdownModelValue, givenOptions?: import("../../localize/types/LocalizeMixinTypes.js").FormatNumberOptions | undefined, context?: AmountDropdownModelValue | undefined): string;
2
+ export type FormatOptions = import('../../localize/types/LocalizeMixinTypes.js').FormatNumberOptions;
3
+ export type AmountDropdownModelValue = import('../types/index.js').AmountDropdownModelValue;
4
+ //# sourceMappingURL=formatters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/src/formatters.js"],"names":[],"mappings":"AAeO,yCAJI,OAAO,mBAAmB,EAAE,wBAAwB,iHAEpD,wBAAwB,GAAC,SAAS,UAU5C;4BAnBY,OAAO,4CAA4C,EAAE,mBAAmB;uCACxE,OAAO,mBAAmB,EAAE,wBAAwB"}
@@ -0,0 +1,2 @@
1
+ export function localizeNamespaceLoader(locale: string): Promise<typeof import("../translations/en.js")>;
2
+ //# sourceMappingURL=localizeNamespaceLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localizeNamespaceLoader.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/src/localizeNamespaceLoader.js"],"names":[],"mappings":"AACO,gDAA4C,MAAM,mDAKxD"}
@@ -0,0 +1,2 @@
1
+ export function parseAmount(value: string, givenOptions?: import("../../localize/types/LocalizeMixinTypes.js").FormatNumberOptions | undefined): import('../types/index.js').AmountDropdownModelValue;
2
+ //# sourceMappingURL=parsers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/src/parsers.js"],"names":[],"mappings":"AAeO,mCAJI,MAAM,wGAEJ,OAAO,mBAAmB,EAAE,wBAAwB,CAShE"}
@@ -0,0 +1,3 @@
1
+ export function serializer(modelValue: import("../types/index.js").AmountDropdownModelValue): string;
2
+ export function deserializer(serializedValue: string): import("../types/index.js").AmountDropdownModelValue;
3
+ //# sourceMappingURL=serializers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializers.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/src/serializers.js"],"names":[],"mappings":"AAKO,uCAHI,OAAO,mBAAmB,EAAE,wBAAwB,GAClD,MAAM,CAO8B;AAO1C,8CAHI,MAAM,GACJ,OAAO,mBAAmB,EAAE,wBAAwB,CAQhE"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @typedef {import('../../form-core/types/validate/validate.js').FeedbackMessageData} FeedbackMessageData
3
+ */
4
+ export class CurrencyAndAmount extends Validator {
5
+ /**
6
+ * @param {import('../types/index.js').AmountDropdownModelValue} modelValue amount and currency symbol
7
+ */
8
+ execute(modelValue: import('../types/index.js').AmountDropdownModelValue): boolean;
9
+ }
10
+ export type FeedbackMessageData = import('../../form-core/types/validate/validate.js').FeedbackMessageData;
11
+ import { Validator } from "../../../exports/form-core.js";
12
+ //# sourceMappingURL=validators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/src/validators.js"],"names":[],"mappings":"AAGA;;GAEG;AAEH;IAGE;;OAEG;IAEH,oBAHW,OAAO,mBAAmB,EAAE,wBAAwB,WAS9D;CACF;kCAjBY,OAAO,4CAA4C,EAAE,mBAAmB"}
@@ -0,0 +1,7 @@
1
+ export type TemplateDataForDropdownInputAmount = import('../types/index.js').TemplateDataForDropdownInputAmount;
2
+ export type DropdownElement = HTMLSelectElement | (HTMLElement & {
3
+ modelValue: string;
4
+ });
5
+ export type RegionMeta = import('../types/index.js').RegionMeta;
6
+ export type TemplateResult = import('lit').TemplateResult;
7
+ //# sourceMappingURL=LionInputAmountDropdown.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LionInputAmountDropdown.test.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/test/LionInputAmountDropdown.test.js"],"names":[],"mappings":"iDAea,OAAO,mBAAmB,EAAE,kCAAkC;8BAC9D,iBAAiB,IAAC,WAAW,GAAG;IAAC,UAAU,EAAC,MAAM,CAAA;CAAC,CAAA;yBACnD,OAAO,mBAAmB,EAAE,UAAU;6BACtC,OAAO,KAAK,EAAE,cAAc"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @typedef {HTMLSelectElement|HTMLElement & {modelValue:string}} DropdownElement
3
+ */
4
+ /**
5
+ * @param {DropdownElement} dropdownEl
6
+ * @param {string} value
7
+ */
8
+ export function mimicUserChangingDropdown(dropdownEl: DropdownElement, value: string): void;
9
+ export type DropdownElement = HTMLSelectElement | (HTMLElement & {
10
+ modelValue: string;
11
+ });
12
+ //# sourceMappingURL=mimicUserChangingDropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mimicUserChangingDropdown.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/test-helpers/mimicUserChangingDropdown.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,sDAHW,eAAe,SACf,MAAM,QAehB;8BApBY,iBAAiB,IAAC,WAAW,GAAG;IAAC,UAAU,EAAC,MAAM,CAAA;CAAC,CAAA"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @param {{ klass:LionInputAmountDropdown }} config
3
+ */
4
+ export function runInputAmountDropdownSuite({ klass }?: {
5
+ klass: LionInputAmountDropdown;
6
+ }): void;
7
+ export type TemplateDataForDropdownInputAmount = import('../types/index.js').TemplateDataForDropdownInputAmount;
8
+ export type DropdownElement = HTMLSelectElement | (HTMLElement & {
9
+ modelValue: string;
10
+ });
11
+ export type TemplateResult = import('lit').TemplateResult;
12
+ import { LionInputAmountDropdown } from "../../../exports/input-amount-dropdown.js";
13
+ //# sourceMappingURL=LionInputAmountDropdown.suite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LionInputAmountDropdown.suite.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/test-suites/LionInputAmountDropdown.suite.js"],"names":[],"mappings":"AAuCA;;GAEG;AAEH,wDAHW;IAAE,KAAK,EAAC,uBAAuB,CAAA;CAAE,QAyR3C;iDAjTY,OAAO,mBAAmB,EAAE,kCAAkC;8BAC9D,iBAAiB,IAAC,WAAW,GAAG;IAAC,UAAU,EAAC,MAAM,CAAA;CAAC,CAAA;6BACnD,OAAO,KAAK,EAAE,cAAc"}
@@ -0,0 +1,7 @@
1
+ declare namespace _default {
2
+ const allCurrencies: string;
3
+ const selectCurrency: string;
4
+ const suggestedCurrencies: string;
5
+ }
6
+ export default _default;
7
+ //# sourceMappingURL=en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/translations/en.js"],"names":[],"mappings":""}
@@ -0,0 +1,86 @@
1
+ import { LionSelectRich } from '@lion/ui/select-rich.js';
2
+ import { LionCombobox } from '@lion/ui/combobox.js';
3
+ import { OverlayController } from '../../overlays/src/OverlayController.js';
4
+ type RefTemplateData = {
5
+ ref?: {
6
+ value?: HTMLElement;
7
+ };
8
+ props?: {
9
+ [key: string]: any;
10
+ };
11
+ listeners?: {
12
+ [key: string]: any;
13
+ };
14
+ labels?: {
15
+ [key: string]: any;
16
+ };
17
+ };
18
+ export type RegionMeta = {
19
+ currencyCode: CurrencyCode;
20
+ nameForLocale?: string;
21
+ currencySymbol?: string;
22
+ };
23
+ export type OnDropdownChangeEvent = Event & {
24
+ target: {
25
+ value?: string;
26
+ modelValue?: string;
27
+ _overlayCtrl?: OverlayController;
28
+ };
29
+ detail?: {
30
+ initialize: boolean;
31
+ };
32
+ };
33
+ export type DropdownRef = {
34
+ value: HTMLSelectElement | LionSelectRich | LionCombobox | undefined;
35
+ };
36
+ export type TemplateDataForDropdownInputAmount = {
37
+ refs: {
38
+ dropdown: RefTemplateData & {
39
+ ref: DropdownRef;
40
+ props: {
41
+ style: string;
42
+ };
43
+ listeners: {
44
+ change: (event: OnDropdownChangeEvent) => void;
45
+ 'model-value-changed': (event: OnDropdownChangeEvent) => void;
46
+ };
47
+ labels: {
48
+ selectCurrency: string;
49
+ };
50
+ };
51
+ input: HTMLInputElement;
52
+ };
53
+ data: {
54
+ currency: CurrencyCode | string;
55
+ regionMetaList: RegionMeta[];
56
+ regionMetaListPreferred: RegionMeta[];
57
+ };
58
+ };
59
+ export type AmountDropdownModelValue = {
60
+ currency?: CurrencyCode | string;
61
+ amount?: number | string;
62
+ };
63
+ /**
64
+ * All currency codes according to i18n
65
+ */
66
+ export type CurrencyCode = 'EUR' | 'AED' | 'AFN' | 'XCD' | 'ALL' | 'AMD' | 'AOA' | 'ARS' | 'USD' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'XOF' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'NOK' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'XAF' | 'CHF' | 'NZD' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUP' | 'CVE' | 'ANG' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'MAD' | 'ERN' | 'ETB' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'XPF' | 'NGN' | 'NIO' | 'NPR' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'UYU' | 'UZS' | 'VED' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XCG' | 'YER' | 'ZAR' | 'ZMW' | 'ZWG';
67
+ /**
68
+ * Type for country to currency list.
69
+ * The type is set to Partial as there are some islands that don't have a corresponding
70
+ * currencyCode as a standard (at the time of writing at least).
71
+ *
72
+ * Said missing countries code: AC, TA, XK
73
+ */
74
+ export type countryToCurrencyList = Partial<{
75
+ [key in import('../../input-tel/types/index.js').RegionCode]: CurrencyCode;
76
+ }>;
77
+ /**
78
+ * Represents a mapping of region codes to currency codes using a Map.
79
+ */
80
+ export type RegionToCurrencyMap = Map<import('../../input-tel/types/index.js').RegionCode, CurrencyCode>;
81
+ /**
82
+ * Represents a set of all unique currency codes derived from the RegionToCurrencyMap values.
83
+ */
84
+ export type AllCurrenciesSet = Set<CurrencyCode>;
85
+ export {};
86
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/input-amount-dropdown/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAE5E,KAAK,eAAe,GAAG;IACrB,GAAG,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC;IAC9B,KAAK,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC/B,SAAS,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACnC,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,YAAY,EAAE,YAAY,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,KAAK,GAAG;IAC1C,MAAM,EAAE;QAA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ACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;AAEV;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC;KACzC,GAAG,IAAI,OAAO,gCAAgC,EAAE,UAAU,GAAG,YAAY;CAC3E,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,GAAG,CACnC,OAAO,gCAAgC,EAAE,UAAU,EACnD,YAAY,CACb,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC,YAAY,CAAC,CAAC"}
@@ -2,5 +2,5 @@
2
2
  * Supported countries/regions as provided via
3
3
  * `libphonenumber.getSupportedRegionCodes()`
4
4
  */
5
- export type RegionCode = 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TA' | 'TC' | 'TD' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW';
5
+ export type RegionCode = 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TA' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/input-tel/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,UAAU,GAClB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ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AI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC"}
@@ -3,7 +3,7 @@
3
3
  * getFractionDigits('JOD'); // return 3
4
4
  *
5
5
  * @typedef {import('../../types/LocalizeMixinTypes.js').FormatNumberPart} FormatNumberPart
6
- * @param {string} [currency="EUR"] Currency code e.g. EUR
6
+ * @param {import('../../../input-amount-dropdown/types/index.js').CurrencyCode | string} [currency="EUR"] Currency code e.g. EUR
7
7
  * @returns {number} fraction for the given currency
8
8
  */
9
9
  export function getFractionDigits(currency?: string | undefined): number;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=lion-input-amount-dropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lion-input-amount-dropdown.d.ts","sourceRoot":"","sources":["../../../exports/define/lion-input-amount-dropdown.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export { mimicUserChangingDropdown } from "../components/input-amount-dropdown/test-helpers/mimicUserChangingDropdown.js";
2
+ //# sourceMappingURL=input-amount-dropdown-test-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-amount-dropdown-test-helpers.d.ts","sourceRoot":"","sources":["../../exports/input-amount-dropdown-test-helpers.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export { runInputAmountDropdownSuite } from "../components/input-amount-dropdown/test-suites/LionInputAmountDropdown.suite.js";
2
+ //# sourceMappingURL=input-amount-dropdown-test-suites.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-amount-dropdown-test-suites.d.ts","sourceRoot":"","sources":["../../exports/input-amount-dropdown-test-suites.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export { LionInputAmountDropdown } from "../components/input-amount-dropdown/src/LionInputAmountDropdown.js";
2
+ //# sourceMappingURL=input-amount-dropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-amount-dropdown.d.ts","sourceRoot":"","sources":["../../exports/input-amount-dropdown.js"],"names":[],"mappings":""}