@mobileaction/action-kit 1.40.1-beta.2 → 1.40.1-beta.20

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 (29) hide show
  1. package/dist/action-kit.mjs +8790 -8677
  2. package/dist/close-CFWde4ah.js +17 -0
  3. package/dist/{rotate-right-ChWRxbQX.js → rotate-right-CG20lBd1.js} +10 -10
  4. package/dist/src/components/popconfirm/index.vue.d.ts +2 -2
  5. package/dist/src/components/popconfirm/stories/constants.d.ts +5 -5
  6. package/dist/src/components/popover-2/index.vue.d.ts +1 -1
  7. package/dist/src/components/popover-2/stories/constants.d.ts +3 -3
  8. package/dist/src/components/select-2/components/selectOption.vue.d.ts +33 -0
  9. package/dist/src/components/{image-2/group.vue.d.ts → select-2/components/selectOptionGroup.vue.d.ts} +4 -10
  10. package/dist/src/components/select-2/composables/use-keyboard-navigation.d.ts +8 -0
  11. package/dist/src/components/select-2/composables/use-options-registry.d.ts +7 -0
  12. package/dist/src/components/select-2/index.vue.d.ts +112 -0
  13. package/dist/src/components/select-2/stories/borderless.stories.d.ts +8 -0
  14. package/dist/src/components/select-2/stories/constants.d.ts +12 -0
  15. package/dist/src/components/select-2/stories/inline.stories.d.ts +8 -0
  16. package/dist/src/components/select-2/stories/multiple.stories.d.ts +14 -0
  17. package/dist/src/components/select-2/stories/select-option-group.stories.d.ts +41 -0
  18. package/dist/src/components/select-2/stories/select-option.stories.d.ts +119 -0
  19. package/dist/src/components/select-2/stories/single.stories.d.ts +25 -0
  20. package/dist/src/components/select-2/types.d.ts +174 -0
  21. package/dist/src/index.d.ts +3 -3
  22. package/dist/style.css +1 -1
  23. package/package.json +2 -1
  24. package/dist/close-DuGn1Sq0.js +0 -27
  25. package/dist/src/components/image-2/index.vue.d.ts +0 -30
  26. package/dist/src/components/image-2/preview.vue.d.ts +0 -22
  27. package/dist/src/components/image-2/stories/constants.d.ts +0 -8
  28. package/dist/src/components/image-2/stories/default.stories.d.ts +0 -9
  29. /package/dist/src/components/{image-2/image2.test.d.ts → select-2/select.test.d.ts} +0 -0
@@ -0,0 +1,174 @@
1
+ import { MaPopover2Props as MaPopoverProps } from '@/components/popover-2/index.vue';
2
+ export declare const MaSelectSizes: readonly ["small", "medium", "large"];
3
+ export declare const MaSelectOptionCheckboxDisplays: readonly ["left", "right", "hidden"];
4
+ export declare const MaSelectMultiSelectionInputs: readonly ["checkbox", "toggle"];
5
+ export type MaSelectSize = (typeof MaSelectSizes)[number];
6
+ export type MaSelectOptionCheckboxDisplay = (typeof MaSelectOptionCheckboxDisplays)[number];
7
+ export type MaSelectMultiSelectionInput = (typeof MaSelectMultiSelectionInputs)[number];
8
+ export type MaSelectValue = string | number | string[] | number[];
9
+ export type MaSelectOptionValue = string | number;
10
+ export interface MaSelectOption {
11
+ label?: string;
12
+ value: MaSelectOptionValue;
13
+ disabled?: boolean;
14
+ }
15
+ export interface MaSelectProps {
16
+ /**
17
+ * Size of the select input
18
+ * @default small
19
+ */
20
+ size?: MaSelectSize;
21
+ /**
22
+ * Determines if the select component should operate in single or multiple selection mode.
23
+ * @default false
24
+ */
25
+ multiple?: boolean;
26
+ /**
27
+ * Current selected option (v-model)
28
+ */
29
+ value?: MaSelectValue;
30
+ /**
31
+ * Placeholder of select
32
+ */
33
+ placeholder?: string;
34
+ /**
35
+ * Data of the selectOption, manual construction work is no longer needed if this property has been set
36
+ * @default []
37
+ */
38
+ options?: MaSelectOption[];
39
+ /**
40
+ * Show clear button.
41
+ * @default false
42
+ */
43
+ allowClear?: boolean;
44
+ /**
45
+ * Show search input on the dropdown.
46
+ * @default false
47
+ */
48
+ showSearch?: boolean;
49
+ /**
50
+ * The placeholder of the search button.
51
+ * @default Search...
52
+ */
53
+ searchPlaceholder?: string;
54
+ /**
55
+ * The custom prefix icon
56
+ */
57
+ prefixIcon?: string;
58
+ /**
59
+ * className of dropdown menu
60
+ */
61
+ dropdownClassName?: string;
62
+ /**
63
+ * The disabled state of the component
64
+ * @default false
65
+ */
66
+ disabled?: boolean;
67
+ /**
68
+ * The loading state of the component
69
+ * @default false
70
+ */
71
+ loading?: boolean;
72
+ /**
73
+ * The current input "search" text
74
+ */
75
+ searchValue?: string;
76
+ /**
77
+ * Controlled open state of dropdown
78
+ */
79
+ open?: boolean;
80
+ /**
81
+ * Config popup height
82
+ * @default 256
83
+ */
84
+ listHeight?: number;
85
+ /**
86
+ * Determine whether the dropdown menu and the select input are the same width.
87
+ * When it is false, a specific width must be given for the dropdown! Otherwise virtual scroll does not work
88
+ * @default true
89
+ */
90
+ dropdownMatchSelectWidth?: boolean;
91
+ /**
92
+ * borderless version of the select
93
+ * @default false
94
+ */
95
+ borderless?: boolean;
96
+ /**
97
+ * inline version of the select
98
+ * @default false
99
+ */
100
+ inline?: boolean;
101
+ /**
102
+ * error version of the select
103
+ * @default false
104
+ */
105
+ hasError?: boolean;
106
+ /**
107
+ * hint text of the select
108
+ */
109
+ hint?: string;
110
+ /**
111
+ * popover component props, See the popover component props for details
112
+ */
113
+ dropdownProps?: MaPopoverProps;
114
+ /**
115
+ * checkbox will appear on the right, left or hidden
116
+ * works only multiple mode
117
+ * @default left
118
+ */
119
+ checkboxDisplay?: MaSelectOptionCheckboxDisplay;
120
+ /**
121
+ * Active selection item input
122
+ * works only multiple mode
123
+ * @default checkbox
124
+ */
125
+ multiSelectionInput?: MaSelectMultiSelectionInput;
126
+ /**
127
+ * Whether there will be a check icon on the selected item label or not
128
+ * works only single mode
129
+ */
130
+ hideCheckIcon?: boolean;
131
+ /**
132
+ * compact mode, Some spaces change in the input
133
+ * @default false
134
+ */
135
+ compact?: boolean;
136
+ }
137
+ export interface MaSelectOptionProps {
138
+ /**
139
+ * checkbox will appear on the right, left or hidden
140
+ * works only multiple mode
141
+ * @default left
142
+ */
143
+ checkboxDisplay?: MaSelectOptionCheckboxDisplay;
144
+ /**
145
+ * Whether there will be a check icon on the selected item label or not
146
+ * works only single mode
147
+ */
148
+ hideCheckIcon?: boolean;
149
+ /**
150
+ * Active selection item input
151
+ * works only multiple mode
152
+ * @default checkbox
153
+ */
154
+ multiSelectionInput?: MaSelectMultiSelectionInput;
155
+ /**
156
+ * The value of the option
157
+ */
158
+ value: MaSelectOptionValue;
159
+ /**
160
+ * The label of the option
161
+ */
162
+ label?: string;
163
+ /**
164
+ * The disabled state of the option
165
+ * @default false
166
+ */
167
+ disabled?: boolean;
168
+ }
169
+ export interface MaSelectGroupProps {
170
+ /**
171
+ * The label of the option group
172
+ */
173
+ label?: string;
174
+ }
@@ -24,6 +24,9 @@ export { default as MaSelect } from './components/select/index.vue';
24
24
  export { default as MaSelectOption } from './components/select/components/option.vue';
25
25
  export { SelectOptGroup as MaSelectOptGroup } from 'ant-design-vue';
26
26
  export * from './components/select/types';
27
+ export { default as MaSelect2 } from './components/select-2/index.vue';
28
+ export { default as MaSelect2Option } from './components/select-2/components/selectOption.vue';
29
+ export { default as MaSelect2OptionGroup } from './components/select-2/components/selectOptionGroup.vue';
27
30
  export { default as MaCheckbox } from './components/checkbox/index.vue';
28
31
  export { default as MaCheckboxGroup } from './components/checkbox/group.vue';
29
32
  export { default as MaContentScroller } from './components/content-scroller/index.vue';
@@ -90,9 +93,6 @@ export { default as MaStep } from './components/steps/components/index.vue';
90
93
  export { default as MaPagination } from './components/pagination/index.vue';
91
94
  export { default as MaImage } from './components/image/index.vue';
92
95
  export { default as MaImageGroup } from './components/image/group.vue';
93
- export { default as MaImage2 } from './components/image-2/index.vue';
94
- export { default as MaImageGroup2 } from './components/image-2/group.vue';
95
- export { default as MaImagePreview } from './components/image-2/preview.vue';
96
96
  export { default as MaResult } from './components/result/index.vue';
97
97
  export { default as MaPopconfirm } from './components/popconfirm/index.vue';
98
98
  export { default as MaStepItems } from './components/step-items/index.vue';