@mobileaction/action-kit 1.1.61 → 1.1.63

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,32 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ export interface MaAppCheckboxProps {
3
+ appIcon: string;
4
+ checked?: boolean;
5
+ }
6
+ declare const _sfc_main: import("vue").DefineComponent<{
7
+ appIcon: {
8
+ type: __PropType<string>;
9
+ required: true;
10
+ };
11
+ checked: {
12
+ type: __PropType<boolean>;
13
+ required: false;
14
+ default: boolean;
15
+ };
16
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:checked" | "change")[], "update:checked" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ appIcon: {
18
+ type: __PropType<string>;
19
+ required: true;
20
+ };
21
+ checked: {
22
+ type: __PropType<boolean>;
23
+ required: false;
24
+ default: boolean;
25
+ };
26
+ }>> & {
27
+ "onUpdate:checked"?: (...args: any[]) => any;
28
+ onChange?: (...args: any[]) => any;
29
+ }, {
30
+ checked: boolean;
31
+ }>;
32
+ export default _sfc_main;
@@ -11,6 +11,7 @@ export interface MaAutocompleteProps {
11
11
  avatarUrl?: string;
12
12
  open?: boolean;
13
13
  size?: AutoCompleteSize;
14
+ autofocus?: boolean;
14
15
  }
15
16
  declare const _sfc_main: import("vue").DefineComponent<{
16
17
  value: {
@@ -53,6 +54,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
53
54
  required: false;
54
55
  default: string;
55
56
  };
57
+ autofocus: {
58
+ type: __PropType<boolean>;
59
+ required: false;
60
+ default: boolean;
61
+ };
56
62
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:value")[], "search" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
57
63
  value: {
58
64
  type: __PropType<string>;
@@ -94,11 +100,17 @@ declare const _sfc_main: import("vue").DefineComponent<{
94
100
  required: false;
95
101
  default: string;
96
102
  };
103
+ autofocus: {
104
+ type: __PropType<boolean>;
105
+ required: false;
106
+ default: boolean;
107
+ };
97
108
  }>> & {
98
109
  "onUpdate:value"?: (...args: any[]) => any;
99
110
  onSearch?: (...args: any[]) => any;
100
111
  }, {
101
112
  size: "small" | "medium" | "large";
113
+ autofocus: boolean;
102
114
  options: OptionType[];
103
115
  filterFn: Function;
104
116
  open: boolean;
@@ -72,9 +72,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
72
72
  "onUpdate:visible"?: (...args: any[]) => any;
73
73
  onVisibleChange?: (...args: any[]) => any;
74
74
  }, {
75
+ disabled: boolean;
75
76
  placement: "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
76
77
  trigger: ("hover" | "click" | "contextmenu")[];
77
- disabled: boolean;
78
78
  destroyPopupOnHide: boolean;
79
79
  visible: boolean;
80
80
  }>;
@@ -90,7 +90,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
90
90
  type: __PropType<string>;
91
91
  required: false;
92
92
  };
93
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "change" | "update:value" | "currency-change" | "update:amountCurrency" | "focusout")[], "focus" | "change" | "update:value" | "currency-change" | "update:amountCurrency" | "focusout", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
93
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "focus" | "update:value" | "currency-change" | "update:amountCurrency" | "focusout")[], "change" | "focus" | "update:value" | "currency-change" | "update:amountCurrency" | "focusout", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
94
94
  allowClear: {
95
95
  type: __PropType<boolean>;
96
96
  required: false;
@@ -0,0 +1,69 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ import { PopoverPlacement, PopoverTriggerType } from "./types";
3
+ export interface MaPopoverProps {
4
+ placement?: PopoverPlacement;
5
+ trigger?: PopoverTriggerType[];
6
+ visible?: boolean;
7
+ overlayClassName?: string;
8
+ showArrow?: boolean;
9
+ }
10
+ declare const _sfc_main: import("vue").DefineComponent<{
11
+ placement: {
12
+ type: __PropType<"top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
13
+ required: false;
14
+ default: string;
15
+ };
16
+ trigger: {
17
+ type: __PropType<("hover" | "focus" | "click" | "contextmenu")[]>;
18
+ required: false;
19
+ default: () => string[];
20
+ };
21
+ visible: {
22
+ type: __PropType<boolean>;
23
+ required: false;
24
+ default: any;
25
+ };
26
+ overlayClassName: {
27
+ type: __PropType<string>;
28
+ required: false;
29
+ };
30
+ showArrow: {
31
+ type: __PropType<boolean>;
32
+ required: false;
33
+ default: boolean;
34
+ };
35
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "visibleChange")[], "update:visible" | "visibleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ placement: {
37
+ type: __PropType<"top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
38
+ required: false;
39
+ default: string;
40
+ };
41
+ trigger: {
42
+ type: __PropType<("hover" | "focus" | "click" | "contextmenu")[]>;
43
+ required: false;
44
+ default: () => string[];
45
+ };
46
+ visible: {
47
+ type: __PropType<boolean>;
48
+ required: false;
49
+ default: any;
50
+ };
51
+ overlayClassName: {
52
+ type: __PropType<string>;
53
+ required: false;
54
+ };
55
+ showArrow: {
56
+ type: __PropType<boolean>;
57
+ required: false;
58
+ default: boolean;
59
+ };
60
+ }>> & {
61
+ "onUpdate:visible"?: (...args: any[]) => any;
62
+ onVisibleChange?: (...args: any[]) => any;
63
+ }, {
64
+ placement: "top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
65
+ trigger: ("hover" | "focus" | "click" | "contextmenu")[];
66
+ visible: boolean;
67
+ showArrow: boolean;
68
+ }>;
69
+ export default _sfc_main;
@@ -0,0 +1,6 @@
1
+ export declare const PopoverPlacements: readonly ["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"];
2
+ export declare const PopoverTypes: readonly ["primary", "secondary"];
3
+ export declare const PopoverTriggerTypes: readonly ["hover", "focus", "click", "contextmenu"];
4
+ export type PopoverPlacement = (typeof PopoverPlacements)[number];
5
+ export type PopoverType = (typeof PopoverTypes)[number];
6
+ export type PopoverTriggerType = (typeof PopoverTriggerTypes)[number];
@@ -39,7 +39,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
39
39
  required: false;
40
40
  default: string;
41
41
  };
42
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change")[], "click" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
42
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "click")[], "change" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
43
  active: {
44
44
  type: __PropType<string>;
45
45
  required: true;
@@ -44,7 +44,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
44
44
  type: __PropType<string>;
45
45
  required: false;
46
46
  };
47
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change")[], "click" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
47
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "click")[], "change" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
48
48
  size: {
49
49
  type: __PropType<"default" | "small" | "large">;
50
50
  required: false;
package/dist/index.d.ts CHANGED
@@ -67,5 +67,7 @@ export { default as MaDrawer } from './components/drawer/index.vue';
67
67
  export { default as MaKeywordGroupSelection } from './components/keyword-group-selection/index.vue';
68
68
  export { default as MaIconButton } from './components/icon-button/index.vue';
69
69
  export { default as MaSlider } from './components/slider/index.vue';
70
+ export { default as MaPopover } from './components/popover/index.vue';
71
+ export { default as MaAppCheckbox } from './components/app-checkbox/index.vue';
70
72
  export { ActionKitConfig } from './services/config';
71
73
  export { useActionKitConfig } from './composables/config';
@@ -0,0 +1,29 @@
1
+ export interface MaAppCheckboxProps {
2
+ appIcon: string;
3
+ checked?: boolean;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaAppCheckboxProps>, {
6
+ checked: boolean;
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:checked" | "change")[], "update:checked" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaAppCheckboxProps>, {
8
+ checked: boolean;
9
+ }>>> & {
10
+ onChange?: (...args: any[]) => any;
11
+ "onUpdate:checked"?: (...args: any[]) => any;
12
+ }, {
13
+ checked: boolean;
14
+ }>;
15
+ export default _default;
16
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
18
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
19
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
+ } : {
21
+ type: import('vue').PropType<T[K]>;
22
+ required: true;
23
+ };
24
+ };
25
+ declare type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
27
+ default: D[K];
28
+ } : P[K];
29
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryFn } from "@storybook/vue3";
2
+ import MaAppCheckbox from "../index.vue";
3
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
4
+ export default _default;
5
+ export declare const baseConfig: Meta<typeof MaAppCheckbox>;
6
+ export declare const Template: StoryFn;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import MaAppCheckbox from '../index.vue';
3
+ declare const meta: Meta<typeof MaAppCheckbox>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaAppCheckbox>;
6
+ export declare const Default: Story;
@@ -10,22 +10,26 @@ export interface MaAutocompleteProps {
10
10
  avatarUrl?: string;
11
11
  open?: boolean;
12
12
  size?: AutoCompleteSize;
13
+ autofocus?: boolean;
13
14
  }
14
15
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaAutocompleteProps>, {
15
16
  options: () => OptionType[];
16
17
  filterFn: (value: string, option: OptionType) => boolean;
17
18
  open: boolean;
18
19
  size: string;
20
+ autofocus: boolean;
19
21
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "search")[], "search" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaAutocompleteProps>, {
20
22
  options: () => OptionType[];
21
23
  filterFn: (value: string, option: OptionType) => boolean;
22
24
  open: boolean;
23
25
  size: string;
26
+ autofocus: boolean;
24
27
  }>>> & {
25
28
  "onUpdate:value"?: (...args: any[]) => any;
26
29
  onSearch?: (...args: any[]) => any;
27
30
  }, {
28
31
  size: "small" | "medium" | "large";
32
+ autofocus: boolean;
29
33
  options: OptionType[];
30
34
  open: boolean;
31
35
  filterFn: Function;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/vue3';
2
- import type MaAutoComplete from '../index.vue';
2
+ import MaAutoComplete from '../index.vue';
3
3
  declare const meta: Meta<typeof MaAutoComplete>;
4
4
  export default meta;
5
5
  declare type Story = StoryObj<typeof MaAutoComplete>;
@@ -0,0 +1,50 @@
1
+ import { PopoverPlacement, PopoverTriggerType } from "./types";
2
+ export interface MaPopoverProps {
3
+ placement?: PopoverPlacement;
4
+ trigger?: PopoverTriggerType[];
5
+ visible?: boolean;
6
+ overlayClassName?: string;
7
+ showArrow?: boolean;
8
+ }
9
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaPopoverProps>, {
10
+ placement: string;
11
+ trigger: () => string[];
12
+ visible: any;
13
+ showArrow: boolean;
14
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "visibleChange")[], "update:visible" | "visibleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaPopoverProps>, {
15
+ placement: string;
16
+ trigger: () => string[];
17
+ visible: any;
18
+ showArrow: boolean;
19
+ }>>> & {
20
+ onVisibleChange?: (...args: any[]) => any;
21
+ "onUpdate:visible"?: (...args: any[]) => any;
22
+ }, {
23
+ placement: "top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
24
+ trigger: ("hover" | "focus" | "click" | "contextmenu")[];
25
+ visible: boolean;
26
+ showArrow: boolean;
27
+ }>, {
28
+ default: (_: {}) => any;
29
+ overlay: (_: {}) => any;
30
+ }>;
31
+ export default _default;
32
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
34
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
35
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
36
+ } : {
37
+ type: import('vue').PropType<T[K]>;
38
+ required: true;
39
+ };
40
+ };
41
+ declare type __VLS_WithDefaults<P, D> = {
42
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
43
+ default: D[K];
44
+ } : P[K];
45
+ };
46
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
@@ -0,0 +1,5 @@
1
+ import type { Meta, StoryFn } from '@storybook/vue3';
2
+ import { MaPopover } from '@/index';
3
+ export declare const baseConfig: Meta<typeof MaPopover>;
4
+ export declare const Template: StoryFn;
5
+ export declare const TemplateCustomContent: StoryFn;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaDropdown from '../index.vue';
3
+ declare const meta: Meta<typeof MaDropdown>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaDropdown>;
6
+ export declare const Default: Story;
7
+ export declare const CustomContent: Story;
8
+ export declare const OverlayArrow: Story;
@@ -0,0 +1,6 @@
1
+ export declare const PopoverPlacements: readonly ["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"];
2
+ export declare const PopoverTypes: readonly ["primary", "secondary"];
3
+ export declare const PopoverTriggerTypes: readonly ["hover", "focus", "click", "contextmenu"];
4
+ export declare type PopoverPlacement = (typeof PopoverPlacements)[number];
5
+ export declare type PopoverType = (typeof PopoverTypes)[number];
6
+ export declare type PopoverTriggerType = (typeof PopoverTriggerTypes)[number];
@@ -68,5 +68,7 @@ export { default as MaDrawer } from './components/drawer/index.vue';
68
68
  export { default as MaKeywordGroupSelection } from './components/keyword-group-selection/index.vue';
69
69
  export { default as MaIconButton } from './components/icon-button/index.vue';
70
70
  export { default as MaSlider } from './components/slider/index.vue';
71
+ export { default as MaPopover } from './components/popover/index.vue';
72
+ export { default as MaAppCheckbox } from './components/app-checkbox/index.vue';
71
73
  export { ActionKitConfig } from './services/config';
72
74
  export { useActionKitConfig } from './composables/config';