@mobileaction/action-kit 1.42.7-beta.0 → 1.42.7-beta.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.
@@ -1,12 +1,14 @@
1
- import { MaSelectOption, MaSelectSize } from '@/components/select-2/types';
2
- import { MaFlagIconRatio } from '@/components/icon/types';
3
- import { MaBadgeProps } from '@/components/badge/index.vue';
1
+ import { MaCountry } from '../types';
2
+ import { SelectSize } from '../../select/types';
3
+ import { MaFlagIconRatio } from '../../icon/types';
4
+ import { MaBadgeProps } from '../../badge/index.vue';
4
5
  export interface MaCountrySelectProps {
5
6
  value: string | string[] | null;
6
- options: MaSelectOption[];
7
- size?: MaSelectSize;
7
+ filterOption?: Function;
8
+ countries: MaCountry[];
9
+ size?: SelectSize;
8
10
  showSearch?: boolean;
9
- dropdownMatchSelectWidth?: boolean;
11
+ dropdownMatchSelectWidth?: boolean | number;
10
12
  listHeight?: number;
11
13
  showSelectedCountryCode?: boolean;
12
14
  placeholder?: string;
@@ -23,9 +25,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
23
25
  "update:value": (...args: any[]) => void;
24
26
  }, string, import("vue").PublicProps, Readonly<MaCountrySelectProps> & Readonly<{
25
27
  "onUpdate:value"?: (...args: any[]) => any;
26
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, Partial<Record<NonNullable<import("@/components/select-2/types").MaSelectOptionValue>, (_: {
28
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Partial<Record<string, (_: {
27
29
  label: string;
28
- value: import("@/components/select-2/types").MaSelectOptionValue;
30
+ value: string;
29
31
  }) => any>> & {
30
32
  multiCountryText?(_: {}): any;
31
33
  }>;
@@ -1,11 +1,14 @@
1
- import { MaSelectOption, MaSelectSize } from '@/components/select-2/types';
2
- import { MaFlagIconRatio } from '@/components/icon/types';
3
- import { MaBadgeProps } from '@/components/badge/index.vue';
1
+ import { MaCountry } from "../types";
2
+ import { SelectSize } from "../../select/types";
3
+ import { MaFlagIconRatio } from "../../icon/types";
4
+ import { MaBadgeProps } from "../../badge/index.vue";
4
5
  export interface MaCountrySelectProps {
5
6
  value: string | string[] | null;
6
- options: MaSelectOption[];
7
- size?: MaSelectSize;
7
+ filterFn?: Function;
8
+ countries: MaCountry[];
9
+ size?: SelectSize;
8
10
  showSearch?: boolean;
11
+ dropdownMatchSelectWidth?: boolean | number;
9
12
  listHeight?: number;
10
13
  showSelectedCountryCode?: boolean;
11
14
  placeholder?: string;
@@ -18,14 +21,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
18
21
  "update:value": (...args: any[]) => void;
19
22
  }, string, import("vue").PublicProps, Readonly<MaCountrySelectProps> & Readonly<{
20
23
  "onUpdate:value"?: (...args: any[]) => any;
21
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, Partial<Record<NonNullable<import("@/components/select-2/types").MaSelectOptionValue>, (_: {
24
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Partial<Record<string, (_: {
22
25
  label: string;
23
- value: import("@/components/select-2/types").MaSelectOptionValue;
24
- }) => any>> & {
25
- input?(_: {
26
- value: string | string[];
27
- }): any;
28
- }>;
26
+ value: string;
27
+ }) => any>>>;
29
28
  export default _default;
30
29
  type __VLS_WithTemplateSlots<T, S> = T & {
31
30
  new (): {
@@ -1,19 +1,19 @@
1
1
  import { MaCountry } from './types';
2
- import { MaFlagIconRatio } from '@/index';
3
- import { MaSelectSize } from '../select-2/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;
6
+ filterFn?: Function;
7
7
  countries: MaCountry[];
8
- size?: MaSelectSize;
8
+ size?: SelectSize;
9
9
  showSearch?: boolean;
10
+ dropdownMatchSelectWidth?: boolean | number;
10
11
  listHeight?: number;
11
12
  showSelectedCountryCode?: boolean;
12
13
  placeholder?: string;
13
14
  iconRound?: boolean;
14
15
  iconRatio?: MaFlagIconRatio;
15
16
  dropdownClassName?: string;
16
- dropdownMatchSelectWidth?: boolean;
17
17
  badgeProps?: MaBadgeProps;
18
18
  multiple?: boolean;
19
19
  }
@@ -24,17 +24,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
24
24
  onChange?: (...args: any[]) => any;
25
25
  "onUpdate:value"?: (...args: any[]) => any;
26
26
  }>, {
27
- size: MaSelectSize;
28
- multiple: boolean;
27
+ size: SelectSize;
28
+ dropdownMatchSelectWidth: boolean | number;
29
29
  showSearch: boolean;
30
30
  listHeight: number;
31
- dropdownMatchSelectWidth: boolean;
32
- dropdownClassName: string;
31
+ multiple: boolean;
33
32
  showSelectedCountryCode: boolean;
34
33
  iconRound: boolean;
35
34
  iconRatio: MaFlagIconRatio;
36
35
  badgeProps: MaBadgeProps;
37
- countries: MaCountry[];
36
+ filterFn: Function;
38
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Partial<Record<NonNullable<string | number>, (_: any) => any>>>;
39
38
  export default _default;
40
39
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -2,5 +2,4 @@ export interface MaCountry {
2
2
  name: string;
3
3
  code: string;
4
4
  badge?: string;
5
- disabled?: boolean;
6
5
  }
@@ -48,9 +48,9 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<MaDatePickerProp
48
48
  size: MaDatePickerSize;
49
49
  disabled: boolean;
50
50
  inline: boolean;
51
+ open: boolean;
51
52
  allowClear: boolean;
52
53
  prefixIcon: string;
53
- open: boolean;
54
54
  picker: PickerMode;
55
55
  keepPickerHidden: boolean;
56
56
  format: string;
@@ -9,5 +9,5 @@ interface MonthSelectProps {
9
9
  }>;
10
10
  dateType: (typeof DateTypes)[number];
11
11
  }
12
- declare const _default: import("vue").DefineComponent<MonthSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MonthSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
12
+ declare const _default: import("vue").DefineComponent<MonthSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MonthSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  export default _default;
@@ -1,4 +1,4 @@
1
- import { MaSelectOption } from '../select-2/types';
1
+ import type { SelectProps } from 'ant-design-vue';
2
2
  export declare const MaInputType: {
3
3
  readonly text: "text";
4
4
  readonly password: "password";
@@ -31,4 +31,4 @@ export declare const currencySymbols: {
31
31
  readonly GBP: "£";
32
32
  readonly JPY: "¥";
33
33
  };
34
- export declare const currencyOptions: MaSelectOption[];
34
+ export declare const currencyOptions: SelectProps['options'];
@@ -36,9 +36,9 @@ declare const __VLS_component: import("vue").DefineComponent<MaPopover2Props, {}
36
36
  trigger: Popover2TriggerType[];
37
37
  overlayClassName: string;
38
38
  visible: boolean | undefined;
39
+ showArrow: boolean;
39
40
  autoHide: boolean;
40
41
  isMobile: boolean;
41
- showArrow: boolean;
42
42
  noPadding: boolean;
43
43
  popupContainer: HTMLElement | null | string;
44
44
  noAutoFocus: boolean;
@@ -14,9 +14,9 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
14
14
  trigger: import("../types").Popover2TriggerType[];
15
15
  overlayClassName: string;
16
16
  visible: boolean | undefined;
17
+ showArrow: boolean;
17
18
  autoHide: boolean;
18
19
  isMobile: boolean;
19
- showArrow: boolean;
20
20
  noPadding: boolean;
21
21
  popupContainer: HTMLElement | null | string;
22
22
  noAutoFocus: boolean;
@@ -38,9 +38,9 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
38
38
  trigger: import("../types").Popover2TriggerType[];
39
39
  overlayClassName: string;
40
40
  visible: boolean | undefined;
41
+ showArrow: boolean;
41
42
  autoHide: boolean;
42
43
  isMobile: boolean;
43
- showArrow: boolean;
44
44
  noPadding: boolean;
45
45
  popupContainer: HTMLElement | null | string;
46
46
  noAutoFocus: boolean;
@@ -62,9 +62,9 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
62
62
  trigger: import("../types").Popover2TriggerType[];
63
63
  overlayClassName: string;
64
64
  visible: boolean | undefined;
65
+ showArrow: boolean;
65
66
  autoHide: boolean;
66
67
  isMobile: boolean;
67
- showArrow: boolean;
68
68
  noPadding: boolean;
69
69
  popupContainer: HTMLElement | null | string;
70
70
  noAutoFocus: boolean;
@@ -44,13 +44,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
44
44
  }>, {
45
45
  size: SelectSize;
46
46
  value: string | number | string[] | number[];
47
- showArrow: boolean;
48
- autoClearSearchValue: boolean;
49
47
  open: boolean;
50
- listHeight: number;
51
48
  dropdownMatchSelectWidth: boolean | number;
52
- borderless: boolean;
49
+ showArrow: boolean;
53
50
  menuItemSelectedIcon: string;
51
+ listHeight: number;
52
+ autoClearSearchValue: boolean;
53
+ borderless: boolean;
54
54
  selectOptionType: SelectOptionType;
55
55
  checkboxPlacement: CheckboxPlacement;
56
56
  multiSelectOptionType: MultiSelectOption;
@@ -26,9 +26,7 @@ declare function __VLS_template(): {
26
26
  /**
27
27
  * Slot for each option in the dropdown
28
28
  */
29
- option({ option }: {
30
- option: MaSelectOptionType;
31
- }): unknown;
29
+ option(option: MaSelectOptionType): unknown;
32
30
  /**
33
31
  * Customize dropdown header area
34
32
  */
@@ -61,9 +59,7 @@ declare function __VLS_template(): {
61
59
  /**
62
60
  * Slot for each option in the dropdown
63
61
  */
64
- option({ option }: {
65
- option: MaSelectOptionType;
66
- }): unknown;
62
+ option(option: MaSelectOptionType): unknown;
67
63
  /**
68
64
  * Customize dropdown header area
69
65
  */
@@ -203,11 +199,11 @@ declare const __VLS_component: import("vue").DefineComponent<MaSelectProps, {
203
199
  loading: boolean;
204
200
  value: MaSelectValue;
205
201
  options: MaSelectOptionType[];
206
- multiple: boolean;
202
+ dropdownMatchSelectWidth: boolean;
207
203
  showSearch: boolean;
208
204
  allowClear: boolean;
209
205
  listHeight: number;
210
- dropdownMatchSelectWidth: boolean;
206
+ multiple: boolean;
211
207
  compact: boolean;
212
208
  searchPlaceholder: string;
213
209
  dropdownProps: import("../popover-2/index.vue").MaPopover2Props;
@@ -11,7 +11,6 @@ export interface MaSelectOption {
11
11
  label?: string;
12
12
  value: MaSelectOptionValue;
13
13
  disabled?: boolean;
14
- [key: string]: unknown;
15
14
  }
16
15
  export interface MaSelectProps {
17
16
  /**