@mobileaction/action-kit 1.48.1 → 1.49.1

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 (27) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/action-kit.mjs +155 -152
  3. package/dist/{annotations-BA3kY-Q9.js → annotations-BBDcyHu_.js} +1 -1
  4. package/dist/{export-data-vPopzY3f.js → export-data-B4dxvDe6.js} +1 -1
  5. package/dist/{exporting-DeB-2mgo.js → exporting-BRra_6GC.js} +1 -1
  6. package/dist/{index-BxRqc15d.js → index-BMYrFbj2.js} +8087 -7770
  7. package/dist/{map-yxuRd2Jk.js → map-C545DLhf.js} +1 -1
  8. package/dist/{offline-exporting-DTdg6gcu.js → offline-exporting-BCKK4w-3.js} +1 -1
  9. package/dist/src/components/checkbox-2/card.vue.d.ts +59 -0
  10. package/dist/src/components/checkbox-2/checkbox-2.test.d.ts +1 -0
  11. package/dist/src/components/checkbox-2/composables/useCheckbox.d.ts +16 -0
  12. package/dist/src/components/checkbox-2/group.vue.d.ts +42 -0
  13. package/dist/src/components/checkbox-2/index.vue.d.ts +48 -0
  14. package/dist/src/components/checkbox-2/stories/card.stories.d.ts +8 -0
  15. package/dist/src/components/checkbox-2/stories/default.stories.d.ts +12 -0
  16. package/dist/src/components/checkbox-2/stories/group.stories.d.ts +12 -0
  17. package/dist/src/components/checkbox-2/types.d.ts +31 -0
  18. package/dist/src/components/modal/index.vue.d.ts +9 -1
  19. package/dist/src/components/modal/stories/constants.d.ts +1 -0
  20. package/dist/src/components/modal/stories/default.stories.d.ts +1 -0
  21. package/dist/src/components/modal/types.d.ts +2 -0
  22. package/dist/src/index.d.ts +3 -0
  23. package/dist/{stock-Dn1R1vm0.js → stock-xvRxFcPX.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/{venn-Ci_UILCm.js → venn-DQ5F21AP.js} +1 -1
  26. package/dist/{wordcloud-C8aqUBWJ.js → wordcloud-CSM8u0R5.js} +1 -1
  27. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { g as tr } from "./index-BxRqc15d.js";
1
+ import { g as tr } from "./index-BMYrFbj2.js";
2
2
  function ir(ne, Ze) {
3
3
  for (var S = 0; S < Ze.length; S++) {
4
4
  const Y = Ze[S];
@@ -1,4 +1,4 @@
1
- import { g as st } from "./index-BxRqc15d.js";
1
+ import { g as st } from "./index-BMYrFbj2.js";
2
2
  function at(te, pe) {
3
3
  for (var K = 0; K < pe.length; K++) {
4
4
  const _ = pe[K];
@@ -0,0 +1,59 @@
1
+ import { MaCheckbox2CardProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<{
5
+ /**
6
+ * Slot for the default content of the card.
7
+ */
8
+ default(): unknown;
9
+ /**
10
+ * Slot for the title section of the card.
11
+ */
12
+ title(): unknown;
13
+ /**
14
+ * Slot for the description section of the card.
15
+ */
16
+ description(): unknown;
17
+ /**
18
+ * Slot for the suffix content, usually displayed at the end of the card.
19
+ */
20
+ suffix(): unknown;
21
+ }> & {
22
+ /**
23
+ * Slot for the default content of the card.
24
+ */
25
+ default(): unknown;
26
+ /**
27
+ * Slot for the title section of the card.
28
+ */
29
+ title(): unknown;
30
+ /**
31
+ * Slot for the description section of the card.
32
+ */
33
+ description(): unknown;
34
+ /**
35
+ * Slot for the suffix content, usually displayed at the end of the card.
36
+ */
37
+ suffix(): unknown;
38
+ };
39
+ refs: {};
40
+ rootEl: any;
41
+ };
42
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
43
+ declare const __VLS_component: import("vue").DefineComponent<MaCheckbox2CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
44
+ change: (value: boolean) => any;
45
+ "update:checked": (value: boolean) => any;
46
+ }, string, import("vue").PublicProps, Readonly<MaCheckbox2CardProps> & Readonly<{
47
+ onChange?: (value: boolean) => any;
48
+ "onUpdate:checked"?: (value: boolean) => any;
49
+ }>, {
50
+ title: string;
51
+ description: string;
52
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
53
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
54
+ export default _default;
55
+ type __VLS_WithTemplateSlots<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
@@ -0,0 +1,16 @@
1
+ import type { MaCheckbox2Props } from '../types';
2
+ export declare function useCheckboxState(props: MaCheckbox2Props): {
3
+ checkboxGroup: any;
4
+ effectiveDisabled: import("vue").ComputedRef<any>;
5
+ effectiveHasError: import("vue").ComputedRef<any>;
6
+ effectiveName: import("vue").ComputedRef<any>;
7
+ isChecked: import("vue").ComputedRef<any>;
8
+ };
9
+ export declare function useCheckboxEvents(props: MaCheckbox2Props, emit: any): {
10
+ handleChange: (checked: boolean) => void;
11
+ };
12
+ export declare function useCheckboxAccessibility(props: MaCheckbox2Props): {
13
+ ariaDisabled: import("vue").ComputedRef<boolean>;
14
+ ariaChecked: import("vue").ComputedRef<any>;
15
+ tabIndex: import("vue").ComputedRef<0 | -1>;
16
+ };
@@ -0,0 +1,42 @@
1
+ import { MaCheckbox2GroupOption, MaCheckbox2GroupProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ label?(_: {
6
+ option: {
7
+ label: string;
8
+ value: string | number;
9
+ disabled: boolean;
10
+ indeterminate: boolean;
11
+ hintText?: string;
12
+ onChange?: (checked: boolean, value: string | number) => void;
13
+ };
14
+ checked: boolean;
15
+ disabled: boolean;
16
+ }): any;
17
+ default?(_: {}): any;
18
+ };
19
+ refs: {};
20
+ rootEl: HTMLDivElement;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import("vue").DefineComponent<MaCheckbox2GroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
24
+ change: (value: (string | number)[]) => any;
25
+ "update:value": (value: (string | number)[]) => any;
26
+ }, string, import("vue").PublicProps, Readonly<MaCheckbox2GroupProps> & Readonly<{
27
+ onChange?: (value: (string | number)[]) => any;
28
+ "onUpdate:value"?: (value: (string | number)[]) => any;
29
+ }>, {
30
+ name: string;
31
+ disabled: boolean;
32
+ value: (string | number)[];
33
+ options: (string | MaCheckbox2GroupOption)[];
34
+ hasError: boolean;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
36
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
+ export default _default;
38
+ type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,48 @@
1
+ import { MaCheckbox2Props } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<{
5
+ /**
6
+ * Customized label area
7
+ */
8
+ default(): unknown;
9
+ /**
10
+ * Hint text area
11
+ */
12
+ hintText(): unknown;
13
+ }> & {
14
+ /**
15
+ * Customized label area
16
+ */
17
+ default(): unknown;
18
+ /**
19
+ * Hint text area
20
+ */
21
+ hintText(): unknown;
22
+ };
23
+ refs: {
24
+ checkboxRef: HTMLInputElement;
25
+ };
26
+ rootEl: any;
27
+ };
28
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
29
+ declare const __VLS_component: import("vue").DefineComponent<MaCheckbox2Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
30
+ change: (value: boolean) => any;
31
+ "update:checked": (value: boolean) => any;
32
+ }, string, import("vue").PublicProps, Readonly<MaCheckbox2Props> & Readonly<{
33
+ onChange?: (value: boolean) => any;
34
+ "onUpdate:checked"?: (value: boolean) => any;
35
+ }>, {
36
+ size: import("./types").MaCheckbox2Size;
37
+ disabled: boolean;
38
+ hintText: string;
39
+ hasError: boolean;
40
+ indeterminate: boolean;
41
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
42
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
43
+ export default _default;
44
+ type __VLS_WithTemplateSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import { MaCheckbox2Card as MaCheckboxCard } from '@/index';
3
+ declare const meta: Meta<typeof MaCheckboxCard>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MaCheckboxCard>;
6
+ export declare const Default: Story;
7
+ export declare const Disabled: Story;
8
+ export declare const HasError: Story;
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import { MaCheckbox2 as MaCheckbox } from '@/index';
3
+ declare const meta: Meta<typeof MaCheckbox>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MaCheckbox>;
6
+ export declare const Default: Story;
7
+ export declare const WithLabel: Story;
8
+ export declare const WithHintText: Story;
9
+ export declare const Disabled: Story;
10
+ export declare const DisabledChecked: Story;
11
+ export declare const WithError: Story;
12
+ export declare const Indeterminate: Story;
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import { MaCheckbox2Group as MaCheckboxGroup } from '@/index';
3
+ declare const meta: Meta<typeof MaCheckboxGroup>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MaCheckboxGroup>;
6
+ export declare const WithStringOptions: Story;
7
+ export declare const WithObjectOptions: Story;
8
+ export declare const WithCustomLabelSlot: Story;
9
+ export declare const Disabled: Story;
10
+ export declare const WithErrorState: Story;
11
+ export declare const WithManualCheckboxes: Story;
12
+ export declare const WithIndeterminate: Story;
@@ -0,0 +1,31 @@
1
+ export declare const MaCheckbox2Sizes: readonly ["small", "medium"];
2
+ export type MaCheckbox2Size = (typeof MaCheckbox2Sizes)[number];
3
+ export interface MaCheckbox2GroupOption {
4
+ label: string;
5
+ value: string | number;
6
+ disabled?: boolean;
7
+ indeterminate?: boolean;
8
+ hintText?: string;
9
+ onChange?: (checked: boolean, value: string | number) => void;
10
+ }
11
+ export interface MaCheckbox2GroupProps {
12
+ value?: (string | number)[];
13
+ disabled?: boolean;
14
+ name?: string;
15
+ options?: (string | MaCheckbox2GroupOption)[];
16
+ hasError?: boolean;
17
+ }
18
+ export interface MaCheckbox2Props {
19
+ value?: boolean | string | number;
20
+ checked?: boolean;
21
+ disabled?: boolean;
22
+ hasError?: boolean;
23
+ indeterminate?: boolean;
24
+ hintText?: string;
25
+ name?: string;
26
+ size?: MaCheckbox2Size;
27
+ }
28
+ export interface MaCheckbox2CardProps extends Omit<MaCheckbox2Props, 'hintText' | 'size'> {
29
+ title?: string;
30
+ description?: string;
31
+ }
@@ -1,13 +1,19 @@
1
1
  import { MaModalProps } from '@/components/modal/types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<MaModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<MaModalProps, {
3
+ expandModal: () => void;
4
+ collapseModal: () => void;
5
+ isFullscreen: import("vue").WritableComputedRef<boolean, boolean>;
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
7
  cancel: (...args: any[]) => void;
4
8
  closed: (...args: any[]) => void;
5
9
  "update:visible": (...args: any[]) => void;
10
+ "update:fullscreen": (...args: any[]) => void;
6
11
  ok: (...args: any[]) => void;
7
12
  }, string, import("vue").PublicProps, Readonly<MaModalProps> & Readonly<{
8
13
  onCancel?: (...args: any[]) => any;
9
14
  onClosed?: (...args: any[]) => any;
10
15
  "onUpdate:visible"?: (...args: any[]) => any;
16
+ "onUpdate:fullscreen"?: (...args: any[]) => any;
11
17
  onOk?: (...args: any[]) => any;
12
18
  }>, {
13
19
  mask: boolean;
@@ -16,6 +22,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
16
22
  width: number;
17
23
  maskClosable: boolean;
18
24
  bodyTitle: string;
25
+ showExpandButton: boolean;
26
+ fullscreen: boolean;
19
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
20
28
  title?(_: {}): any;
21
29
  "body-title"?(_: {}): any;
@@ -8,3 +8,4 @@ export declare const Template2: StoryFn;
8
8
  export declare const CustomTemplate: StoryFn;
9
9
  export declare const WithTabTemplate: StoryFn;
10
10
  export declare const FunctionsTemplate: StoryFn;
11
+ export declare const ExpandableTemplate: StoryFn;
@@ -13,3 +13,4 @@ export declare const Warning: Story;
13
13
  export declare const Info: Story;
14
14
  export declare const NoSpace: Story;
15
15
  export declare const OnlyClosable: Story;
16
+ export declare const Expandable: Story;
@@ -14,6 +14,8 @@ export interface MaModalProps extends Omit<ModalProps, 'okButtonProps' | 'cancel
14
14
  content?: string | VNode;
15
15
  confirmLoading?: boolean;
16
16
  closable?: boolean;
17
+ showExpandButton?: boolean;
18
+ fullscreen?: boolean;
17
19
  okText?: string;
18
20
  okButtonProps?: MaButtonProps;
19
21
  cancelText?: string;
@@ -34,6 +34,9 @@ export { default as MaSelect2Option } from './components/select-2/components/sel
34
34
  export { default as MaSelect2OptionGroup } from './components/select-2/components/selectOptionGroup.vue';
35
35
  export { default as MaCheckbox } from './components/checkbox/index.vue';
36
36
  export { default as MaCheckboxGroup } from './components/checkbox/group.vue';
37
+ export { default as MaCheckbox2 } from './components/checkbox-2/index.vue';
38
+ export { default as MaCheckbox2Group } from './components/checkbox-2/group.vue';
39
+ export { default as MaCheckbox2Card } from './components/checkbox-2/card.vue';
37
40
  export { default as MaContentScroller } from './components/content-scroller/index.vue';
38
41
  export { default as MaNumericInput } from './components/numeric-input/index.vue';
39
42
  export * from './components/numeric-input/types';
@@ -1,4 +1,4 @@
1
- import { g as ua } from "./index-BxRqc15d.js";
1
+ import { g as ua } from "./index-BMYrFbj2.js";
2
2
  function ca(Dt, te) {
3
3
  for (var H = 0; H < te.length; H++) {
4
4
  const et = te[H];