@mobileaction/action-kit 1.13.0 → 1.14.0

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,19 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ badges: {
4
+ type: __PropType<{
5
+ label: string;
6
+ url: string;
7
+ }[]>;
8
+ required: false;
9
+ };
10
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
+ badges: {
12
+ type: __PropType<{
13
+ label: string;
14
+ url: string;
15
+ }[]>;
16
+ required: false;
17
+ };
18
+ }>>, {}>;
19
+ export default _sfc_main;
@@ -1,18 +1,20 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
2
  import { MaTagInputSize } from "./types";
3
3
  export interface MaTagInputProps {
4
- tags: string[];
4
+ tags?: string[];
5
5
  placeholder?: string;
6
6
  separator?: string[];
7
7
  size?: MaTagInputSize;
8
8
  disabled?: boolean;
9
9
  prefixIcon?: string;
10
10
  suffixIcon?: string;
11
+ tagCharLimit?: number;
11
12
  }
12
13
  declare const _sfc_main: import("vue").DefineComponent<{
13
14
  tags: {
14
15
  type: __PropType<string[]>;
15
- required: true;
16
+ required: false;
17
+ default: () => string[];
16
18
  };
17
19
  placeholder: {
18
20
  type: __PropType<string>;
@@ -42,10 +44,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
42
44
  type: __PropType<string>;
43
45
  required: false;
44
46
  };
45
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:tags" | "added" | "removed")[], "change" | "update:tags" | "added" | "removed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
47
+ tagCharLimit: {
48
+ type: __PropType<number>;
49
+ required: false;
50
+ };
51
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "change" | "update:tags" | "added" | "removed")[], "error" | "change" | "update:tags" | "added" | "removed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
46
52
  tags: {
47
53
  type: __PropType<string[]>;
48
- required: true;
54
+ required: false;
55
+ default: () => string[];
49
56
  };
50
57
  placeholder: {
51
58
  type: __PropType<string>;
@@ -75,7 +82,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
75
82
  type: __PropType<string>;
76
83
  required: false;
77
84
  };
85
+ tagCharLimit: {
86
+ type: __PropType<number>;
87
+ required: false;
88
+ };
78
89
  }>> & {
90
+ onError?: (...args: any[]) => any;
79
91
  onChange?: (...args: any[]) => any;
80
92
  "onUpdate:tags"?: (...args: any[]) => any;
81
93
  onAdded?: (...args: any[]) => any;
@@ -84,6 +96,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
84
96
  size: "sm" | "md" | "lg";
85
97
  disabled: boolean;
86
98
  placeholder: string;
99
+ tags: string[];
87
100
  separator: string[];
88
101
  }>;
89
102
  export default _sfc_main;
package/dist/index.d.ts CHANGED
@@ -75,6 +75,7 @@ export { default as MaTagInput } from './components/tag-input/index.vue';
75
75
  export { default as MaList } from './components/list/index.vue';
76
76
  export { default as MaListItem } from './components/list/components/ListItem.vue';
77
77
  export { default as MaListItemMeta } from './components/list/components/ListItemMeta.vue';
78
+ export { default as MaScrollableBadge } from './components/scrollable-badge/index.vue';
78
79
  export { default as MaSteps } from './components/steps/index.vue';
79
80
  export { default as MaStep } from './components/steps/components/index.vue';
80
81
  export { ActionKitConfig } from './services/config';
@@ -0,0 +1,28 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ badges?: {
3
+ label: string;
4
+ url: string;
5
+ }[];
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
+ badges?: {
8
+ label: string;
9
+ url: string;
10
+ }[];
11
+ }>>>, {}>, {
12
+ default: (_: {}) => any;
13
+ }>;
14
+ export default _default;
15
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
24
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,4 @@
1
+ import { Meta, StoryFn } from "@storybook/vue3";
2
+ import MaScrollableBadge from "@/components/scrollable-badge/index.vue";
3
+ export declare const baseConfig: Meta<typeof MaScrollableBadge>;
4
+ export declare const Template: StoryFn;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import type MaScrollableBadge from '../index.vue';
3
+ declare const meta: Meta<typeof MaScrollableBadge>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof MaScrollableBadge>;
6
+ export declare const Default: Story;
@@ -1,25 +1,29 @@
1
1
  import { MaTagInputSize } from "./types";
2
2
  export interface MaTagInputProps {
3
- tags: string[];
3
+ tags?: string[];
4
4
  placeholder?: string;
5
5
  separator?: string[];
6
6
  size?: MaTagInputSize;
7
7
  disabled?: boolean;
8
8
  prefixIcon?: string;
9
9
  suffixIcon?: string;
10
+ tagCharLimit?: number;
10
11
  }
11
12
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaTagInputProps>, {
12
13
  separator: () => string[];
14
+ tags: () => string[];
13
15
  size: string;
14
16
  disabled: boolean;
15
17
  placeholder: string;
16
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:tags" | "added" | "removed")[], "change" | "update:tags" | "added" | "removed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaTagInputProps>, {
18
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "change" | "update:tags" | "added" | "removed")[], "error" | "change" | "update:tags" | "added" | "removed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaTagInputProps>, {
17
19
  separator: () => string[];
20
+ tags: () => string[];
18
21
  size: string;
19
22
  disabled: boolean;
20
23
  placeholder: string;
21
24
  }>>> & {
22
25
  onChange?: (...args: any[]) => any;
26
+ onError?: (...args: any[]) => any;
23
27
  "onUpdate:tags"?: (...args: any[]) => any;
24
28
  onAdded?: (...args: any[]) => any;
25
29
  onRemoved?: (...args: any[]) => any;
@@ -27,6 +31,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
27
31
  size: "sm" | "md" | "lg";
28
32
  disabled: boolean;
29
33
  placeholder: string;
34
+ tags: string[];
30
35
  separator: string[];
31
36
  }>, {
32
37
  prefix: (_: {}) => any;
@@ -12,3 +12,4 @@ export declare const Large: Story;
12
12
  export declare const PrefixIcon: Story;
13
13
  export declare const SuffixIcon: Story;
14
14
  export declare const PrefixAndSuffixIcon: Story;
15
+ export declare const TagCharacterLimit: Story;
@@ -76,6 +76,7 @@ export { default as MaTagInput } from './components/tag-input/index.vue';
76
76
  export { default as MaList } from './components/list/index.vue';
77
77
  export { default as MaListItem } from './components/list/components/ListItem.vue';
78
78
  export { default as MaListItemMeta } from './components/list/components/ListItemMeta.vue';
79
+ export { default as MaScrollableBadge } from './components/scrollable-badge/index.vue';
79
80
  export { default as MaSteps } from './components/steps/index.vue';
80
81
  export { default as MaStep } from './components/steps/components/index.vue';
81
82
  export { ActionKitConfig } from './services/config';