@mobileaction/action-kit 1.24.3 → 1.24.4

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.
@@ -0,0 +1,40 @@
1
+ import { MaCountry } from "../types";
2
+ import { SelectSize } from "../../select/types";
3
+ import { MaFlagIconRatio } from "../../icon/types";
4
+ import { MaBadgeProps } from "../../badge/index.vue";
5
+ export interface MaCountrySelectProps {
6
+ value: string | string[] | null;
7
+ filterFn?: Function;
8
+ countries: MaCountry[];
9
+ size?: SelectSize;
10
+ showSearch?: boolean;
11
+ dropdownMatchSelectWidth?: boolean | number;
12
+ listHeight?: number;
13
+ showSelectedCountryCode?: boolean;
14
+ placeholder?: string;
15
+ iconRound?: boolean;
16
+ iconRatio?: MaFlagIconRatio;
17
+ dropdownClassName?: string;
18
+ badgeProps?: MaBadgeProps;
19
+ }
20
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MaCountrySelectProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MaCountrySelectProps>>> & {
21
+ "onUpdate:value"?: (...args: any[]) => any;
22
+ }, {}>, Record<any, (_: {
23
+ label: any;
24
+ value: any;
25
+ }) => any>>;
26
+ export default _default;
27
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: import('vue').PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
36
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,40 @@
1
+ import { MaCountry } from "../types";
2
+ import { SelectSize } from "../../select/types";
3
+ import { MaFlagIconRatio } from "../../icon/types";
4
+ import { MaBadgeProps } from "../../badge/index.vue";
5
+ export interface MaCountrySelectProps {
6
+ value: string | string[] | null;
7
+ filterFn?: Function;
8
+ countries: MaCountry[];
9
+ size?: SelectSize;
10
+ showSearch?: boolean;
11
+ dropdownMatchSelectWidth?: boolean | number;
12
+ listHeight?: number;
13
+ showSelectedCountryCode?: boolean;
14
+ placeholder?: string;
15
+ iconRound?: boolean;
16
+ iconRatio?: MaFlagIconRatio;
17
+ dropdownClassName?: string;
18
+ badgeProps?: MaBadgeProps;
19
+ }
20
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<MaCountrySelectProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MaCountrySelectProps>>> & {
21
+ "onUpdate:value"?: (...args: any[]) => any;
22
+ }, {}>, Record<string, (_: {
23
+ label: string;
24
+ value: string;
25
+ }) => any>>;
26
+ export default _default;
27
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: import('vue').PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
36
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -1,6 +1,5 @@
1
1
  import { MaCountry } from "./types";
2
- import { SelectSize } from "../select/types";
3
- import { MaFlagIconRatio } from "../icon/types";
2
+ import { MaFlagIconRatio, SelectSize } from "@/index";
4
3
  import { MaBadgeProps } from "../badge/index.vue";
5
4
  export interface MaCountrySelectProps {
6
5
  value: string | string[] | null;
@@ -16,8 +15,9 @@ export interface MaCountrySelectProps {
16
15
  iconRatio?: MaFlagIconRatio;
17
16
  dropdownClassName?: string;
18
17
  badgeProps?: MaBadgeProps;
18
+ multiple?: boolean;
19
19
  }
20
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaCountrySelectProps>, {
20
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaCountrySelectProps>, {
21
21
  filterFn: (searchTerm: string, country: MaCountry) => boolean;
22
22
  size: string;
23
23
  showSearch: boolean;
@@ -27,6 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
27
27
  iconRound: boolean;
28
28
  iconRatio: string;
29
29
  badgeProps: any;
30
+ multiple: boolean;
30
31
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaCountrySelectProps>, {
31
32
  filterFn: (searchTerm: string, country: MaCountry) => boolean;
32
33
  size: string;
@@ -37,11 +38,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
37
38
  iconRound: boolean;
38
39
  iconRatio: string;
39
40
  badgeProps: any;
41
+ multiple: boolean;
40
42
  }>>> & {
41
43
  onChange?: (...args: any[]) => any;
42
44
  "onUpdate:value"?: (...args: any[]) => any;
43
45
  }, {
44
46
  size: "small" | "default" | "large";
47
+ multiple: boolean;
45
48
  dropdownMatchSelectWidth: number | boolean;
46
49
  showSearch: boolean;
47
50
  listHeight: number;
@@ -50,10 +53,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
50
53
  iconRound: boolean;
51
54
  iconRatio: "1x1" | "4x3";
52
55
  badgeProps: any;
53
- }>, Record<string, (_: {
54
- label: string;
55
- value: string;
56
- }) => any>>;
56
+ }>;
57
57
  export default _default;
58
58
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
59
59
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -69,8 +69,3 @@ declare type __VLS_WithDefaults<P, D> = {
69
69
  default: D[K];
70
70
  } : P[K];
71
71
  };
72
- declare type __VLS_WithTemplateSlots<T, S> = T & {
73
- new (): {
74
- $slots: S;
75
- };
76
- };
@@ -7,3 +7,4 @@ export declare const Default: Story;
7
7
  export declare const DefaultValue: Story;
8
8
  export declare const CountryFullNameDisplay: Story;
9
9
  export declare const WithCustomSlotOption: StoryFn;
10
+ export declare const MultiCountrySelect: Story;