@mobileaction/action-kit 1.55.15-beta.1 → 1.55.15-beta.3

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 (28) hide show
  1. package/dist/action-kit.mjs +42 -43
  2. package/dist/{annotations-LxzqniTI.js → annotations-D_ZVpr9N.js} +1 -1
  3. package/dist/components/modal-2/types.d.ts +5 -1
  4. package/dist/components/tree/index.vue.d.ts +0 -3
  5. package/dist/components/tree/types.d.ts +0 -3
  6. package/dist/{export-data-CphGdXaF.js → export-data-D0e0bA99.js} +1 -1
  7. package/dist/{exporting-E0VAVzhX.js → exporting-Cd60NElh.js} +1 -1
  8. package/dist/{funnel-DFDlSz25.js → funnel-C1IBvYWt.js} +1 -1
  9. package/dist/{index-xWImgBcx.js → index-DHVg4e8e.js} +10075 -10606
  10. package/dist/index.d.ts +0 -8
  11. package/dist/{map-Dch9WXEV.js → map-CERZ2gFO.js} +1 -1
  12. package/dist/{offline-exporting-DopJAIrf.js → offline-exporting-aA_uReBa.js} +1 -1
  13. package/dist/{stock-CpcmZS7E.js → stock-QRJ-BTh9.js} +1 -1
  14. package/dist/style.css +1 -1
  15. package/dist/{venn-D3u6bkPY.js → venn-BXNgsCRs.js} +1 -1
  16. package/dist/{wordcloud-6hI2Wt6E.js → wordcloud-D8kI3vYk.js} +1 -1
  17. package/package.json +1 -1
  18. package/dist/components/tree-2/components/tree-node.vue.d.ts +0 -24
  19. package/dist/components/tree-2/composables/use-tree-keyboard.d.ts +0 -23
  20. package/dist/components/tree-2/composables/use-tree-selection.d.ts +0 -15
  21. package/dist/components/tree-2/index.vue.d.ts +0 -64
  22. package/dist/components/tree-2/stories/constants.d.ts +0 -8
  23. package/dist/components/tree-2/stories/default.stories.d.ts +0 -16
  24. package/dist/components/tree-2/stories/group-checkbox-control.stories.d.ts +0 -9
  25. package/dist/components/tree-2/stories/tree-with-select.stories.d.ts +0 -7
  26. package/dist/components/tree-2/stories/useTreeData.d.ts +0 -5
  27. package/dist/components/tree-2/tree-2.test.d.ts +0 -1
  28. package/dist/components/tree-2/types.d.ts +0 -35
@@ -1,4 +1,4 @@
1
- import { g as Ut } from "./index-xWImgBcx.js";
1
+ import { g as Ut } from "./index-DHVg4e8e.js";
2
2
  function qt(S, q) {
3
3
  for (var M = 0; M < q.length; M++) {
4
4
  const P = q[M];
@@ -1,4 +1,4 @@
1
- import { g as Ct } from "./index-xWImgBcx.js";
1
+ import { g as Ct } from "./index-DHVg4e8e.js";
2
2
  function _t(W, R) {
3
3
  for (var T = 0; T < R.length; T++) {
4
4
  const v = R[T];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mobileaction/action-kit",
3
3
  "type": "module",
4
- "version": "1.55.15-beta.1",
4
+ "version": "1.55.15-beta.3",
5
5
  "description": "UI Component library for Mobile Action.",
6
6
  "author": "MobileAction",
7
7
  "license": "MIT",
@@ -1,24 +0,0 @@
1
- import type { Tree2Node } from '../types';
2
- type __VLS_Props = {
3
- node: Tree2Node;
4
- depth: number;
5
- };
6
- type __VLS_Slots = {
7
- icon: (props: {
8
- node: Tree2Node;
9
- }) => unknown;
10
- label: (props: {
11
- node: Tree2Node;
12
- }) => unknown;
13
- footer: (props: {
14
- node: Tree2Node;
15
- }) => unknown;
16
- };
17
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
- export default _default;
20
- type __VLS_WithSlots<T, S> = T & {
21
- new (): {
22
- $slots: S;
23
- };
24
- };
@@ -1,23 +0,0 @@
1
- import type { Ref } from 'vue';
2
- import type { Tree2FlattenedNode, Tree2Node, Tree2NodeValue } from '../types';
3
- export interface UseTreeKeyboardOptions {
4
- containerRef: Ref<HTMLElement | null>;
5
- data: Ref<Tree2Node[]>;
6
- expandedValues: Ref<Tree2NodeValue[]>;
7
- activeNodeValue: Ref<Tree2NodeValue | null>;
8
- isNodeExpanded: (value: Tree2NodeValue) => boolean;
9
- toggleExpand: (value: Tree2NodeValue) => void;
10
- selectNode: (node: Tree2Node) => void;
11
- }
12
- export declare function useTreeKeyboard(options: UseTreeKeyboardOptions): {
13
- flattenedNodes: import("vue").ComputedRef<Tree2FlattenedNode[]>;
14
- navigableNodes: import("vue").ComputedRef<Tree2FlattenedNode[]>;
15
- currentIndex: import("vue").ComputedRef<number>;
16
- moveDown: () => void;
17
- moveUp: () => void;
18
- moveToFirst: () => void;
19
- moveToLast: () => void;
20
- handleLeft: () => void;
21
- handleRight: () => void;
22
- handleSelect: () => void;
23
- };
@@ -1,15 +0,0 @@
1
- import type { Ref } from 'vue';
2
- import type { Tree2Mode, Tree2Node, Tree2NodeValue } from '../types';
3
- export interface UseTreeSelectionOptions {
4
- mode: Ref<Tree2Mode>;
5
- modelValue: Ref<Tree2NodeValue | Tree2NodeValue[] | null>;
6
- data: Ref<Tree2Node[]>;
7
- }
8
- export declare function useTreeSelection(options: UseTreeSelectionOptions): {
9
- selectedValue: import("vue").ComputedRef<Tree2NodeValue>;
10
- selectedValues: import("vue").ComputedRef<Tree2NodeValue[]>;
11
- isNodeSelected: (value: Tree2NodeValue) => boolean;
12
- isNodeIndeterminate: (node: Tree2Node) => boolean;
13
- areAllChildrenSelected: (node: Tree2Node) => boolean;
14
- selectNode: (node: Tree2Node) => void;
15
- };
@@ -1,64 +0,0 @@
1
- import type { Tree2Mode, Tree2Node, Tree2NodeValue } from './types';
2
- import type { MaEmptySize } from '../empty/types';
3
- import './assets/styles.scss';
4
- type __VLS_Props = {
5
- data?: Tree2Node[];
6
- mode?: Tree2Mode;
7
- showIcon?: boolean;
8
- hideTick?: boolean;
9
- size?: MaEmptySize;
10
- emptySize?: MaEmptySize;
11
- emptyTitle?: string;
12
- emptyDescription?: string;
13
- groupCheckboxesDisable?: boolean;
14
- groupCheckboxVisible?: boolean;
15
- };
16
- type __VLS_Slots = {
17
- icon: (props: {
18
- node: Tree2Node;
19
- }) => unknown;
20
- label: (props: {
21
- node: Tree2Node;
22
- }) => unknown;
23
- footer: (props: {
24
- node: Tree2Node;
25
- }) => unknown;
26
- };
27
- declare function expandAll(): void;
28
- declare function collapseAll(): void;
29
- declare function focus(): void;
30
- type __VLS_PublicProps = __VLS_Props & {
31
- modelValue?: Tree2NodeValue | Tree2NodeValue[] | null;
32
- 'expandValue'?: Tree2NodeValue[];
33
- };
34
- declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
35
- expandAll: typeof expandAll;
36
- collapseAll: typeof collapseAll;
37
- focus: typeof focus;
38
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
- expand: (expanded: boolean, node: Tree2Node) => any;
40
- "update:modelValue": (value: Tree2NodeValue | Tree2NodeValue[]) => any;
41
- "update:expandValue": (value: Tree2NodeValue[]) => any;
42
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
43
- onExpand?: (expanded: boolean, node: Tree2Node) => any;
44
- "onUpdate:modelValue"?: (value: Tree2NodeValue | Tree2NodeValue[]) => any;
45
- "onUpdate:expandValue"?: (value: Tree2NodeValue[]) => any;
46
- }>, {
47
- data: Tree2Node[];
48
- size: MaEmptySize;
49
- showIcon: boolean;
50
- mode: Tree2Mode;
51
- hideTick: boolean;
52
- emptySize: MaEmptySize;
53
- emptyTitle: string;
54
- emptyDescription: string;
55
- groupCheckboxesDisable: boolean;
56
- groupCheckboxVisible: boolean;
57
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
59
- export default _default;
60
- type __VLS_WithSlots<T, S> = T & {
61
- new (): {
62
- $slots: S;
63
- };
64
- };
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryFn } from '@storybook/vue3';
2
- import MaTree2 from '../index.vue';
3
- export declare const TreeModes: readonly ["single", "multiple"];
4
- export declare const baseConfig: Meta<typeof MaTree2>;
5
- export declare const Template: StoryFn;
6
- export declare const KeyboardNavigationTemplate: StoryFn;
7
- export declare const ExpandAllTemplate: StoryFn;
8
- export declare const FilterWithSearchTemplate: StoryFn;
@@ -1,16 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/vue3';
2
- import MaTree2 from '../index.vue';
3
- declare const meta: Meta<typeof MaTree2>;
4
- export default meta;
5
- type Story = StoryObj<typeof MaTree2>;
6
- export declare const Default: Story;
7
- export declare const SingleWithIcon: Story;
8
- export declare const SingleWithoutTick: Story;
9
- export declare const Multiple: Story;
10
- export declare const MultipleWithIcon: Story;
11
- export declare const KeyboardNavigation: Story;
12
- export declare const ExpandCollapseAll: Story;
13
- export declare const SizeVariants: Story;
14
- export declare const EmptyState: Story;
15
- export declare const DisabledNodes: Story;
16
- export declare const FilterWithSearch: Story;
@@ -1,9 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/vue3';
2
- import MaTree2 from '../index.vue';
3
- declare const meta: Meta<typeof MaTree2>;
4
- export default meta;
5
- type Story = StoryObj<typeof MaTree2>;
6
- export declare const AllGroupCheckboxesDisabled: Story;
7
- export declare const AllGroupCheckboxesHidden: Story;
8
- export declare const MixedDataLevelControl: Story;
9
- export declare const CombinedGlobalAndDataLevel: Story;
@@ -1,7 +0,0 @@
1
- import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
2
- import MaTree2 from '../index.vue';
3
- declare const meta: Meta<typeof MaTree2>;
4
- export default meta;
5
- type Story = StoryObj<typeof MaTree2>;
6
- export declare const TreeWithSelectTemplate: StoryFn;
7
- export declare const TreeWithSelect: Story;
@@ -1,5 +0,0 @@
1
- import type { Tree2Node, Tree2NodeValue } from '../types';
2
- declare function useTreeData(disabledKeys?: Tree2NodeValue[]): {
3
- generateTreeNodes: (count: number, depth: number, defaultIcon?: string) => Tree2Node[];
4
- };
5
- export default useTreeData;
@@ -1 +0,0 @@
1
- export {};
@@ -1,35 +0,0 @@
1
- export type Tree2NodeValue = string | number;
2
- export type Tree2FontType = 'caption-1' | 'body-4' | 'body-3';
3
- export interface Tree2Node {
4
- value: Tree2NodeValue;
5
- label: string;
6
- icon?: string;
7
- disable?: boolean;
8
- groupCheckboxDisable?: boolean;
9
- groupCheckboxVisible?: boolean;
10
- children?: Tree2Node[];
11
- }
12
- export type Tree2Mode = 'single' | 'multiple';
13
- export type Tree2Value<T extends Tree2Mode = 'single'> = T extends 'single' ? Tree2NodeValue | null : Tree2NodeValue[];
14
- export interface Tree2Context {
15
- mode: Tree2Mode;
16
- selectedValue: Tree2NodeValue | null;
17
- selectedValues: Tree2NodeValue[];
18
- expandedValues: Tree2NodeValue[];
19
- activeNodeValue: Tree2NodeValue | null;
20
- showIcon: boolean;
21
- hideTick: boolean;
22
- fontType: Tree2FontType;
23
- isNodeSelected: (value: Tree2NodeValue) => boolean;
24
- isNodeExpanded: (value: Tree2NodeValue) => boolean;
25
- isNodeActive: (value: Tree2NodeValue) => boolean;
26
- isNodeIndeterminate: (node: Tree2Node) => boolean;
27
- areAllChildrenSelected: (node: Tree2Node) => boolean;
28
- toggleExpand: (value: Tree2NodeValue) => void;
29
- selectNode: (node: Tree2Node) => void;
30
- }
31
- export interface Tree2FlattenedNode {
32
- node: Tree2Node;
33
- depth: number;
34
- parent: Tree2Node | null;
35
- }