fds-vue-core 7.2.4 → 7.2.5

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.
@@ -7,14 +7,14 @@ type __VLS_PublicProps = {
7
7
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
8
  blur: (ev: FocusEvent) => any;
9
9
  valid: (value: boolean | null) => any;
10
- "update:modelValue": (value: string) => any;
10
+ "update:modelValue": (...args: unknown[]) => any;
11
11
  noCountryResults: (value: boolean) => any;
12
12
  "update:country": (...args: unknown[]) => any;
13
13
  "update:e164": (phoneNumber: string) => any;
14
14
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
15
  onBlur?: ((ev: FocusEvent) => any) | undefined;
16
16
  onValid?: ((value: boolean | null) => any) | undefined;
17
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
17
+ "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
18
18
  onNoCountryResults?: ((value: boolean) => any) | undefined;
19
19
  "onUpdate:country"?: ((...args: unknown[]) => any) | undefined;
20
20
  "onUpdate:e164"?: ((phoneNumber: string) => any) | undefined;
@@ -31,10 +31,12 @@ export interface FdsPhonenumberProps extends FdsPhonenumberInputPassthroughProps
31
31
  onValid?: ((value: boolean | null) => void) | Array<(value: boolean | null) => void>;
32
32
  onNoCountryResults?: ((value: boolean) => void) | Array<(value: boolean) => void>;
33
33
  onBlur?: ((event: FocusEvent) => void) | Array<(event: FocusEvent) => void>;
34
+ 'onUpdate:modelValue'?: ((value: string) => void) | Array<(value: string) => void>;
34
35
  'onUpdate:e164'?: ((value: string) => void) | Array<(value: string) => void>;
35
36
  'onUpdate:country'?: ((value: string) => void) | Array<(value: string) => void>;
36
37
  }
37
38
  export interface FdsPhonenumberEmits {
39
+ 'update:modelValue': [value: string];
38
40
  'update:country': [country: string];
39
41
  'update:e164': [phoneNumber: string];
40
42
  valid: [value: boolean | null];
@@ -18353,8 +18353,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
18353
18353
  "pointer-events-none transition-transform duration-200 ease-in-out",
18354
18354
  {
18355
18355
  "fill-gray-500": props.disabled,
18356
- "fill-red-600": isInvalid.value && !props.disabled,
18357
- "fill-blue-500": !props.disabled && !isInvalid.value,
18356
+ "fill-blue-500": !props.disabled && !isInvalid.value || isInvalid.value,
18358
18357
  "rotate-180": dropdownOpen.value && !props.disabled
18359
18358
  }
18360
18359
  ]);
@@ -18746,6 +18745,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
18746
18745
  onValid: {},
18747
18746
  onNoCountryResults: {},
18748
18747
  onBlur: {},
18748
+ "onUpdate:modelValue": {},
18749
18749
  "onUpdate:e164": {},
18750
18750
  "onUpdate:country": {},
18751
18751
  id: { default: void 0 },
@@ -18764,7 +18764,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
18764
18764
  "country": { default: "SE" },
18765
18765
  "countryModifiers": {}
18766
18766
  }),
18767
- emits: /* @__PURE__ */ vue.mergeModels(["update:country", "update:e164", "valid", "noCountryResults", "blur"], ["update:modelValue", "update:country"]),
18767
+ emits: /* @__PURE__ */ vue.mergeModels(["update:modelValue", "update:country", "update:e164", "valid", "noCountryResults", "blur"], ["update:modelValue", "update:country"]),
18768
18768
  setup(__props, { emit: __emit }) {
18769
18769
  const [nationalNumber, modelModifiers] = vue.useModel(__props, "modelValue");
18770
18770
  const country = vue.useModel(__props, "country");