@mobileaction/action-kit 1.58.10 → 1.58.11

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.
Files changed (44) hide show
  1. package/dist/action-kit.mjs +183 -176
  2. package/dist/{annotations-C9tX3aIM.js → annotations-DM2A5eMO.js} +1 -1
  3. package/dist/components/chatbot/components/MaChatbotInputArea.vue.d.ts +2 -2
  4. package/dist/components/input-2/MaInputBase.vue.d.ts +32 -0
  5. package/dist/components/input-2/composables/useInput.d.ts +22 -0
  6. package/dist/components/input-2/currency-input/MaCurrencyInput.test.d.ts +1 -0
  7. package/dist/components/input-2/currency-input/MaCurrencyInput.vue.d.ts +40 -0
  8. package/dist/components/input-2/currency-input/useCurrencyFormatter.d.ts +13 -0
  9. package/dist/components/input-2/currency-input/useCurrencyFormatter.test.d.ts +1 -0
  10. package/dist/components/input-2/index.d.ts +8 -0
  11. package/dist/components/input-2/number-input/MaNumberInput.test.d.ts +1 -0
  12. package/dist/components/input-2/number-input/MaNumberInput.vue.d.ts +43 -0
  13. package/dist/components/input-2/number-input/useNumberFormatter.d.ts +14 -0
  14. package/dist/components/input-2/password-input/MaPasswordInput.test.d.ts +1 -0
  15. package/dist/components/input-2/password-input/MaPasswordInput.vue.d.ts +41 -0
  16. package/dist/components/input-2/stories/MaCurrencyInput.stories.d.ts +11 -0
  17. package/dist/components/input-2/stories/MaNumberInput.stories.d.ts +11 -0
  18. package/dist/components/input-2/stories/MaPasswordInput.stories.d.ts +9 -0
  19. package/dist/components/input-2/stories/MaTextInput.stories.d.ts +9 -0
  20. package/dist/components/input-2/stories/MaTextarea.stories.d.ts +10 -0
  21. package/dist/components/input-2/text-input/MaTextInput.test.d.ts +1 -0
  22. package/dist/components/input-2/text-input/MaTextInput.vue.d.ts +41 -0
  23. package/dist/components/input-2/textarea/MaTextarea.test.d.ts +1 -0
  24. package/dist/components/input-2/textarea/MaTextarea.vue.d.ts +43 -0
  25. package/dist/components/input-2/types.d.ts +100 -0
  26. package/dist/components/input-2/utils/numericUtils.d.ts +23 -0
  27. package/dist/components/input-2/utils/numericUtils.test.d.ts +1 -0
  28. package/dist/config/plugin.d.ts +3 -0
  29. package/dist/{export-data-CSPBGEQv.js → export-data-CqSgvfSB.js} +1 -1
  30. package/dist/{exporting-DxZCG94E.js → exporting-DT_T9PYA.js} +1 -1
  31. package/dist/{funnel-B5nxcTav.js → funnel-BCr5S0Yc.js} +1 -1
  32. package/dist/index-B52EWw0h.js +25092 -0
  33. package/dist/index.d.ts +1 -0
  34. package/dist/locales/types.d.ts +3 -0
  35. package/dist/{map--TvE6hJT.js → map-BCotpnQj.js} +1 -1
  36. package/dist/{offline-exporting-Bd2QG1kN.js → offline-exporting-ZD4LRbP1.js} +1 -1
  37. package/dist/resize-CXC_ucKO.js +21 -0
  38. package/dist/resize-CulZQfki.js +7 -0
  39. package/dist/{stock-BpBZxUQH.js → stock-BOILhy1M.js} +1 -1
  40. package/dist/style.css +1 -1
  41. package/dist/{venn-CfpiyG6H.js → venn-Clyt7boD.js} +1 -1
  42. package/dist/{wordcloud-Y-LTPDvu.js → wordcloud-6uCpertT.js} +1 -1
  43. package/package.json +1 -1
  44. package/dist/index-Buk0st-_.js +0 -24121
@@ -0,0 +1,41 @@
1
+ import type { MaPasswordInputProps } from '../types';
2
+ type __VLS_Props = MaPasswordInputProps;
3
+ type __VLS_PublicProps = __VLS_Props & {
4
+ modelValue?: string;
5
+ };
6
+ declare var __VLS_9: {}, __VLS_17: {}, __VLS_19: {}, __VLS_21: {};
7
+ type __VLS_Slots = {} & {
8
+ suffix?: (props: typeof __VLS_9) => any;
9
+ } & {
10
+ prefix?: (props: typeof __VLS_17) => any;
11
+ } & {
12
+ addonBefore?: (props: typeof __VLS_19) => any;
13
+ } & {
14
+ addonAfter?: (props: typeof __VLS_21) => any;
15
+ };
16
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
17
+ focus: () => void;
18
+ blur: () => void;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ clear: () => any;
21
+ blur: (event: FocusEvent) => any;
22
+ focus: (event: FocusEvent) => any;
23
+ "update:modelValue": (value: string) => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
+ onClear?: () => any;
26
+ onBlur?: (event: FocusEvent) => any;
27
+ onFocus?: (event: FocusEvent) => any;
28
+ "onUpdate:modelValue"?: (value: string) => any;
29
+ }>, {
30
+ size: import("..").MaInputBaseSize;
31
+ disabled: boolean;
32
+ readonly: boolean;
33
+ clearable: boolean;
34
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
35
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
36
+ export default _default;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import MaCurrencyInput from '../currency-input/MaCurrencyInput.vue';
3
+ declare const meta: Meta<typeof MaCurrencyInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MaCurrencyInput>;
6
+ export declare const Basic: Story;
7
+ export declare const Currencies: Story;
8
+ export declare const States: Story;
9
+ export declare const Sizes: Story;
10
+ export declare const WithAddons: Story;
11
+ export declare const Clearable: Story;
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import MaNumberInput from '../number-input/MaNumberInput.vue';
3
+ declare const meta: Meta<typeof MaNumberInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MaNumberInput>;
6
+ export declare const Basic: Story;
7
+ export declare const WithMinMax: Story;
8
+ export declare const WithPrecision: Story;
9
+ export declare const WithAddon: Story;
10
+ export declare const Clearable: Story;
11
+ export declare const States: Story;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import MaPasswordInput from '../password-input/MaPasswordInput.vue';
3
+ declare const meta: Meta<typeof MaPasswordInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MaPasswordInput>;
6
+ export declare const Basic: Story;
7
+ export declare const Clearable: Story;
8
+ export declare const WithError: Story;
9
+ export declare const States: Story;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import MaTextInput from '../text-input/MaTextInput.vue';
3
+ declare const meta: Meta<typeof MaTextInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MaTextInput>;
6
+ export declare const Basic: Story;
7
+ export declare const WithIcon: Story;
8
+ export declare const Clearable: Story;
9
+ export declare const States: Story;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import MaTextarea from '../textarea/MaTextarea.vue';
3
+ declare const meta: Meta<typeof MaTextarea>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MaTextarea>;
6
+ export declare const Basic: Story;
7
+ export declare const AutoResize: Story;
8
+ export declare const WithMaxRows: Story;
9
+ export declare const Clearable: Story;
10
+ export declare const States: Story;
@@ -0,0 +1,41 @@
1
+ import type { MaTextInputProps } from '../types';
2
+ type __VLS_Props = MaTextInputProps;
3
+ type __VLS_PublicProps = __VLS_Props & {
4
+ modelValue?: string;
5
+ };
6
+ declare var __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {};
7
+ type __VLS_Slots = {} & {
8
+ prefix?: (props: typeof __VLS_9) => any;
9
+ } & {
10
+ suffix?: (props: typeof __VLS_11) => any;
11
+ } & {
12
+ addonBefore?: (props: typeof __VLS_13) => any;
13
+ } & {
14
+ addonAfter?: (props: typeof __VLS_15) => any;
15
+ };
16
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
17
+ focus: () => void;
18
+ blur: () => void;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ clear: () => any;
21
+ blur: (event: FocusEvent) => any;
22
+ focus: (event: FocusEvent) => any;
23
+ "update:modelValue": (value: string) => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
+ onClear?: () => any;
26
+ onBlur?: (event: FocusEvent) => any;
27
+ onFocus?: (event: FocusEvent) => any;
28
+ "onUpdate:modelValue"?: (value: string) => any;
29
+ }>, {
30
+ size: import("..").MaInputBaseSize;
31
+ disabled: boolean;
32
+ readonly: boolean;
33
+ clearable: boolean;
34
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
35
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
36
+ export default _default;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,43 @@
1
+ import type { MaTextareaProps } from '../types';
2
+ type __VLS_Props = MaTextareaProps;
3
+ type __VLS_PublicProps = __VLS_Props & {
4
+ modelValue?: string;
5
+ };
6
+ declare var __VLS_12: {}, __VLS_14: {}, __VLS_16: {}, __VLS_18: {};
7
+ type __VLS_Slots = {} & {
8
+ prefix?: (props: typeof __VLS_12) => any;
9
+ } & {
10
+ suffix?: (props: typeof __VLS_14) => any;
11
+ } & {
12
+ addonBefore?: (props: typeof __VLS_16) => any;
13
+ } & {
14
+ addonAfter?: (props: typeof __VLS_18) => any;
15
+ };
16
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
17
+ focus: () => void;
18
+ blur: () => void;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ clear: () => any;
21
+ blur: (event: FocusEvent) => any;
22
+ focus: (event: FocusEvent) => any;
23
+ "update:modelValue": (value: string) => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
+ onClear?: () => any;
26
+ onBlur?: (event: FocusEvent) => any;
27
+ onFocus?: (event: FocusEvent) => any;
28
+ "onUpdate:modelValue"?: (value: string) => any;
29
+ }>, {
30
+ size: import("..").MaInputBaseSize;
31
+ disabled: boolean;
32
+ rows: number;
33
+ readonly: boolean;
34
+ clearable: boolean;
35
+ autoResize: boolean;
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
37
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
38
+ export default _default;
39
+ type __VLS_WithSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,100 @@
1
+ export declare const MaInputBaseSizes: {
2
+ readonly sm: "sm";
3
+ readonly md: "md";
4
+ readonly lg: "lg";
5
+ };
6
+ export type MaInputBaseSize = typeof MaInputBaseSizes[keyof typeof MaInputBaseSizes];
7
+ /**
8
+ * Props for MaInputBase — pure layout concerns only.
9
+ * No behavioral state (no isFocused, no inputRef, no event handlers).
10
+ */
11
+ export interface MaInputBaseProps {
12
+ /** Size variant of the input. @default 'sm' */
13
+ size?: MaInputBaseSize;
14
+ /** Whether the input appears focused (drives visual focus ring). */
15
+ focused?: boolean;
16
+ /** Whether the input appears disabled. */
17
+ disabled?: boolean;
18
+ /** Whether the input appears readonly. */
19
+ readonly?: boolean;
20
+ /** Error state. When true, input enters error visual state. */
21
+ error?: boolean;
22
+ /** Icon name for the prefix area. For custom content, use #prefix slot. */
23
+ prefixIcon?: string;
24
+ /** Icon name for the suffix area. For custom content, use #suffix slot. */
25
+ suffixIcon?: string;
26
+ /** Whether to show a clear button when the input has a value. */
27
+ clearable?: boolean;
28
+ /** Whether the input currently has a value. Used by clearable to decide visibility. */
29
+ hasValue?: boolean;
30
+ /** Additional props/attributes to pass to the outer wrapper element */
31
+ wrapperProps?: Record<string, unknown>;
32
+ }
33
+ /**
34
+ * Expose interface for input variant components.
35
+ * Base does NOT expose anything — only variants do.
36
+ */
37
+ export interface MaInputExpose {
38
+ focus: () => void;
39
+ blur: () => void;
40
+ }
41
+ export interface MaCurrencyInputProps extends Omit<MaInputBaseProps, 'focused' | 'hasValue'> {
42
+ /** Custom id for the native input element. Auto-generated if not provided. */
43
+ id?: string;
44
+ /**
45
+ * ISO 4217 currency code.
46
+ * Determines symbol, separators, and fraction digits automatically.
47
+ * @default 'USD'
48
+ */
49
+ currency?: string;
50
+ /** Placeholder for the native input element */
51
+ placeholder?: string;
52
+ }
53
+ export interface MaTextInputProps extends Omit<MaInputBaseProps, 'focused' | 'hasValue'> {
54
+ /** Custom id for the native input element. Auto-generated if not provided. */
55
+ id?: string;
56
+ /** Placeholder for the native input element */
57
+ placeholder?: string;
58
+ }
59
+ export interface MaNumberInputProps extends Omit<MaInputBaseProps, 'focused' | 'hasValue'> {
60
+ /** Custom id for the native input element. Auto-generated if not provided. */
61
+ id?: string;
62
+ /** Placeholder for the native input element */
63
+ placeholder?: string;
64
+ /** Minimum allowed value */
65
+ min?: number;
66
+ /** Maximum allowed value */
67
+ max?: number;
68
+ /** Step amount for keyboard increment/decrement (↑/↓ keys) @default 1 */
69
+ step?: number;
70
+ /** Number of decimal places to round to on blur */
71
+ precision?: number;
72
+ /**
73
+ * Locale used for default Intl.NumberFormat based formatting.
74
+ * Only used if no custom formatter/parser is provided.
75
+ * @default 'en-US'
76
+ */
77
+ locale?: string;
78
+ /** Custom formatter function to display the value. Overrides default locale formatting. */
79
+ formatter?: (value: number) => string;
80
+ /** Custom parser function to parse the input value. Overrides default locale parsing. */
81
+ parser?: (value: string) => number | null;
82
+ }
83
+ export interface MaPasswordInputProps extends Omit<MaInputBaseProps, 'focused' | 'hasValue'> {
84
+ /** Custom id for the native input element. Auto-generated if not provided. */
85
+ id?: string;
86
+ /** Placeholder for the native input element */
87
+ placeholder?: string;
88
+ }
89
+ export interface MaTextareaProps extends Omit<MaInputBaseProps, 'focused' | 'hasValue'> {
90
+ /** Custom id for the native textarea element. Auto-generated if not provided. */
91
+ id?: string;
92
+ /** Placeholder for the textarea element */
93
+ placeholder?: string;
94
+ /** Initial number of visible text rows @default 3 */
95
+ rows?: number;
96
+ /** Maximum rows before scroll appears (only relevant when autoResize is true) */
97
+ maxRows?: number;
98
+ /** When true, textarea grows with content up to maxRows @default false */
99
+ autoResize?: boolean;
100
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Shared utility functions for numeric input formatting, parsing, and sanitization.
3
+ * Used by both useNumberFormatter and useCurrencyFormatter composables.
4
+ */
5
+ export interface NumericSeparators {
6
+ decimal: string;
7
+ group: string;
8
+ }
9
+ /**
10
+ * Extracts decimal and group separators from an Intl.NumberFormat instance.
11
+ */
12
+ export declare function extractSeparators(formatter: Intl.NumberFormat): NumericSeparators;
13
+ /**
14
+ * Sanitizes raw user input to only allow valid numeric characters.
15
+ * Permits digits, a leading minus sign, one decimal separator, and group separators.
16
+ */
17
+ export declare function sanitizeNumericInput(inputValue: string, decimalSeparator: string, groupSeparator: string): string;
18
+ /**
19
+ * Parses a locale-formatted numeric string into a number.
20
+ * Returns NaN for empty, whitespace-only, or unparseable input.
21
+ */
22
+ export declare function parseNumericString(displayValue: string, decimalSeparator: string, groupSeparator: string): number;
23
+ export declare function roundToPrecision(value: number, precision: number): number;
@@ -33,6 +33,9 @@ export declare const defaultOptions: {
33
33
  goNextPage: string;
34
34
  actionSheet: string;
35
35
  closeActionSheet: string;
36
+ clearInput: string;
37
+ showPassword: string;
38
+ hidePassword: string;
36
39
  };
37
40
  chatbot: {
38
41
  senderUser: string;
@@ -1,4 +1,4 @@
1
- import { g as We } from "./index-Buk0st-_.js";
1
+ import { g as We } from "./index-B52EWw0h.js";
2
2
  function Ge(G, ie) {
3
3
  for (var F = 0; F < ie.length; F++) {
4
4
  const H = ie[F];
@@ -1,4 +1,4 @@
1
- import { g as $t } from "./index-Buk0st-_.js";
1
+ import { g as $t } from "./index-B52EWw0h.js";
2
2
  function Gt(j, z) {
3
3
  for (var k = 0; k < z.length; k++) {
4
4
  const F = z[k];
@@ -1,4 +1,4 @@
1
- import { g as je } from "./index-Buk0st-_.js";
1
+ import { g as je } from "./index-B52EWw0h.js";
2
2
  function He($, J) {
3
3
  for (var W = 0; W < J.length; W++) {
4
4
  const m = J[W];