fds-vue-core 7.2.1 β†’ 7.2.2

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.
@@ -8,12 +8,14 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
8
8
  blur: (ev: FocusEvent) => any;
9
9
  valid: (value: boolean | null) => any;
10
10
  "update:modelValue": (value: string) => any;
11
+ noCountryResults: (value: boolean) => any;
11
12
  "update:country": (...args: unknown[]) => any;
12
13
  "update:e164": (phoneNumber: string) => any;
13
14
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
15
  onBlur?: ((ev: FocusEvent) => any) | undefined;
15
16
  onValid?: ((value: boolean | null) => any) | undefined;
16
17
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
18
+ onNoCountryResults?: ((value: boolean) => any) | undefined;
17
19
  "onUpdate:country"?: ((...args: unknown[]) => any) | undefined;
18
20
  "onUpdate:e164"?: ((phoneNumber: string) => any) | undefined;
19
21
  }>, {
@@ -5,7 +5,6 @@ type __VLS_Props = {
5
5
  valid?: boolean | null;
6
6
  disabled?: boolean;
7
7
  ariaLabel?: string;
8
- noResultsLabel?: string;
9
8
  dataTestid?: string;
10
9
  class?: HTMLAttributes['class'];
11
10
  };
@@ -14,18 +13,18 @@ type __VLS_PublicProps = {
14
13
  } & __VLS_Props;
15
14
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
15
  "update:modelValue": (value: string) => any;
16
+ noCountryResults: (value: boolean) => any;
17
17
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
18
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
19
+ onNoCountryResults?: ((value: boolean) => any) | undefined;
19
20
  }>, {
20
21
  disabled: boolean;
21
22
  dataTestid: string;
22
23
  class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
23
24
  valid: boolean | null;
24
25
  ariaLabel: string;
25
- noResultsLabel: string;
26
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
27
27
  rootRef: HTMLDivElement;
28
28
  inputRef: HTMLInputElement;
29
- listRef: HTMLUListElement;
30
29
  }, HTMLDivElement>;
31
30
  export default _default;
@@ -4,9 +4,11 @@ export interface CountryPhoneOption {
4
4
  countryCode: string;
5
5
  countryName: string;
6
6
  }
7
- export declare function sortCountryOptionsByName(options: CountryPhoneOption[], locale?: string): CountryPhoneOption[];
8
- /** Country options for phone fields, sorted alphabetically by localized country name. */
9
- export declare function buildCountryOptions(locale?: string): CountryPhoneOption[];
7
+ export declare const PRIORITIZED_COUNTRIES: readonly ["SE", "NO", "DK", "FI"];
8
+ export declare function isPrioritizedCountry(iso2: string): boolean;
9
+ export declare function sortCountryOptionsByName(options: CountryPhoneOption[], locale?: string, _preferredCountry?: string): CountryPhoneOption[];
10
+ /** Country options for phone fields; SE/NO/DK/FI first, then alphabetical by name. */
11
+ export declare function buildCountryOptions(locale?: string, preferredCountry?: string): CountryPhoneOption[];
10
12
  /** ISO 3166-1 alpha-2 to regional indicator flag emoji, e.g. `SE` β†’ πŸ‡ΈπŸ‡ͺ */
11
13
  export declare function countryCodeToFlag(iso2: string): string;
12
14
  export declare function filterCountryOptions(options: CountryPhoneOption[], query: string): CountryPhoneOption[];
@@ -31,5 +31,6 @@ export interface FdsPhonenumberEmits {
31
31
  'update:country': [country: string];
32
32
  'update:e164': [phoneNumber: string];
33
33
  valid: [value: boolean | null];
34
+ noCountryResults: [value: boolean];
34
35
  blur: [ev: FocusEvent];
35
36
  }