@mobileaction/action-kit 1.42.7 → 1.42.8

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,14 +1,12 @@
1
- import { MaCountry } from '../types';
2
- import { SelectSize } from '../../select/types';
3
- import { MaFlagIconRatio } from '../../icon/types';
4
- import { MaBadgeProps } from '../../badge/index.vue';
1
+ import { MaSelectOption, MaSelectSize } from '@/components/select-2/types';
2
+ import { MaFlagIconRatio } from '@/components/icon/types';
3
+ import { MaBadgeProps } from '@/components/badge/index.vue';
5
4
  export interface MaCountrySelectProps {
6
5
  value: string | string[] | null;
7
- filterOption?: Function;
8
- countries: MaCountry[];
9
- size?: SelectSize;
6
+ options: MaSelectOption[];
7
+ size?: MaSelectSize;
10
8
  showSearch?: boolean;
11
- dropdownMatchSelectWidth?: boolean | number;
9
+ dropdownMatchSelectWidth?: boolean;
12
10
  listHeight?: number;
13
11
  showSelectedCountryCode?: boolean;
14
12
  placeholder?: string;
@@ -25,9 +23,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
25
23
  "update:value": (...args: any[]) => void;
26
24
  }, string, import("vue").PublicProps, Readonly<MaCountrySelectProps> & Readonly<{
27
25
  "onUpdate:value"?: (...args: any[]) => any;
28
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Partial<Record<string, (_: {
26
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, Partial<Record<NonNullable<import("@/components/select-2/types").MaSelectOptionValue>, (_: {
29
27
  label: string;
30
- value: string;
28
+ value: import("@/components/select-2/types").MaSelectOptionValue;
31
29
  }) => any>> & {
32
30
  multiCountryText?(_: {}): any;
33
31
  }>;
@@ -1,14 +1,11 @@
1
- import { MaCountry } from "../types";
2
- import { SelectSize } from "../../select/types";
3
- import { MaFlagIconRatio } from "../../icon/types";
4
- import { MaBadgeProps } from "../../badge/index.vue";
1
+ import { MaSelectOption, MaSelectSize } from '@/components/select-2/types';
2
+ import { MaFlagIconRatio } from '@/components/icon/types';
3
+ import { MaBadgeProps } from '@/components/badge/index.vue';
5
4
  export interface MaCountrySelectProps {
6
5
  value: string | string[] | null;
7
- filterFn?: Function;
8
- countries: MaCountry[];
9
- size?: SelectSize;
6
+ options: MaSelectOption[];
7
+ size?: MaSelectSize;
10
8
  showSearch?: boolean;
11
- dropdownMatchSelectWidth?: boolean | number;
12
9
  listHeight?: number;
13
10
  showSelectedCountryCode?: boolean;
14
11
  placeholder?: string;
@@ -21,10 +18,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
21
18
  "update:value": (...args: any[]) => void;
22
19
  }, string, import("vue").PublicProps, Readonly<MaCountrySelectProps> & Readonly<{
23
20
  "onUpdate:value"?: (...args: any[]) => any;
24
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Partial<Record<string, (_: {
21
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, Partial<Record<NonNullable<import("@/components/select-2/types").MaSelectOptionValue>, (_: {
25
22
  label: string;
26
- value: string;
27
- }) => any>>>;
23
+ value: import("@/components/select-2/types").MaSelectOptionValue;
24
+ }) => any>> & {
25
+ input?(_: {
26
+ value: string | string[];
27
+ }): any;
28
+ }>;
28
29
  export default _default;
29
30
  type __VLS_WithTemplateSlots<T, S> = T & {
30
31
  new (): {
@@ -1,19 +1,19 @@
1
1
  import { MaCountry } from './types';
2
- import { MaFlagIconRatio, SelectSize } from '@/index';
2
+ import { MaFlagIconRatio } from '@/index';
3
+ import { MaSelectSize } from '../select-2/types';
3
4
  import { MaBadgeProps } from '../badge/index.vue';
4
5
  export interface MaCountrySelectProps {
5
6
  value: string | string[] | null;
6
- filterFn?: Function;
7
7
  countries: MaCountry[];
8
- size?: SelectSize;
8
+ size?: MaSelectSize;
9
9
  showSearch?: boolean;
10
- dropdownMatchSelectWidth?: boolean | number;
11
10
  listHeight?: number;
12
11
  showSelectedCountryCode?: boolean;
13
12
  placeholder?: string;
14
13
  iconRound?: boolean;
15
14
  iconRatio?: MaFlagIconRatio;
16
15
  dropdownClassName?: string;
16
+ dropdownMatchSelectWidth?: boolean;
17
17
  badgeProps?: MaBadgeProps;
18
18
  multiple?: boolean;
19
19
  }
@@ -24,16 +24,17 @@ 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: SelectSize;
28
- dropdownMatchSelectWidth: boolean | number;
27
+ size: MaSelectSize;
28
+ multiple: boolean;
29
29
  showSearch: boolean;
30
30
  listHeight: number;
31
- multiple: boolean;
31
+ dropdownMatchSelectWidth: boolean;
32
+ dropdownClassName: string;
32
33
  showSelectedCountryCode: boolean;
33
34
  iconRound: boolean;
34
35
  iconRatio: MaFlagIconRatio;
35
36
  badgeProps: MaBadgeProps;
36
- filterFn: Function;
37
+ countries: MaCountry[];
37
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Partial<Record<NonNullable<string | number>, (_: any) => any>>>;
38
39
  export default _default;
39
40
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -8,3 +8,4 @@ export declare const DefaultValue: Story;
8
8
  export declare const CountryFullNameDisplay: Story;
9
9
  export declare const WithCustomSlotOption: StoryFn;
10
10
  export declare const MultiCountrySelect: Story;
11
+ export declare const WithBadge: Story;
@@ -1,5 +1,6 @@
1
1
  export interface MaCountry {
2
2
  name: string;
3
3
  code: string;
4
- badge?: string;
4
+ badge?: string | number;
5
+ disabled?: boolean;
5
6
  }
@@ -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;
52
51
  allowClear: boolean;
53
52
  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, {}, any>;
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>;
13
13
  export default _default;
@@ -12,7 +12,7 @@ export interface MaDrawerProps {
12
12
  width?: string;
13
13
  /**
14
14
  * Specifies the z-index of the drawer overlay.
15
- * @default 10
15
+ * @default 1000
16
16
  */
17
17
  zIndex?: number;
18
18
  /**
@@ -1,4 +1,4 @@
1
- import type { SelectProps } from 'ant-design-vue';
1
+ import { MaSelectOption } from '../select-2/types';
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: SelectProps['options'];
34
+ export declare const currencyOptions: MaSelectOption[];
@@ -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;
40
39
  autoHide: boolean;
41
40
  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;
18
17
  autoHide: boolean;
19
18
  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;
42
41
  autoHide: boolean;
43
42
  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;
66
65
  autoHide: boolean;
67
66
  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
- open: boolean;
48
- dropdownMatchSelectWidth: boolean | number;
49
47
  showArrow: boolean;
50
- menuItemSelectedIcon: string;
51
- listHeight: number;
52
48
  autoClearSearchValue: boolean;
49
+ open: boolean;
50
+ listHeight: number;
51
+ dropdownMatchSelectWidth: boolean | number;
53
52
  borderless: boolean;
53
+ menuItemSelectedIcon: string;
54
54
  selectOptionType: SelectOptionType;
55
55
  checkboxPlacement: CheckboxPlacement;
56
56
  multiSelectOptionType: MultiSelectOption;
@@ -26,7 +26,9 @@ declare function __VLS_template(): {
26
26
  /**
27
27
  * Slot for each option in the dropdown
28
28
  */
29
- option(option: MaSelectOptionType): unknown;
29
+ option({ option }: {
30
+ option: MaSelectOptionType;
31
+ }): unknown;
30
32
  /**
31
33
  * Customize dropdown header area
32
34
  */
@@ -59,7 +61,9 @@ declare function __VLS_template(): {
59
61
  /**
60
62
  * Slot for each option in the dropdown
61
63
  */
62
- option(option: MaSelectOptionType): unknown;
64
+ option({ option }: {
65
+ option: MaSelectOptionType;
66
+ }): unknown;
63
67
  /**
64
68
  * Customize dropdown header area
65
69
  */
@@ -199,11 +203,11 @@ declare const __VLS_component: import("vue").DefineComponent<MaSelectProps, {
199
203
  loading: boolean;
200
204
  value: MaSelectValue;
201
205
  options: MaSelectOptionType[];
202
- dropdownMatchSelectWidth: boolean;
206
+ multiple: boolean;
203
207
  showSearch: boolean;
204
208
  allowClear: boolean;
205
209
  listHeight: number;
206
- multiple: boolean;
210
+ dropdownMatchSelectWidth: boolean;
207
211
  compact: boolean;
208
212
  searchPlaceholder: string;
209
213
  dropdownProps: import("../popover-2/index.vue").MaPopover2Props;
@@ -11,6 +11,7 @@ export interface MaSelectOption {
11
11
  label?: string;
12
12
  value: MaSelectOptionValue;
13
13
  disabled?: boolean;
14
+ [key: string]: unknown;
14
15
  }
15
16
  export interface MaSelectProps {
16
17
  /**