@aplus-frontend/ui 0.2.6 → 0.2.8
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.
- package/es/index.mjs +151 -147
- package/es/src/ap-field/interface.d.ts +2 -1
- package/es/src/ap-field/switch/index.vue.mjs +50 -49
- package/es/src/ap-form/drawer-form/index.vue.mjs +104 -99
- package/es/src/ap-table/constants.d.ts +7 -1189
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +50 -0
- package/es/src/business/ap-group-search/ap-group-search.vue.mjs +4 -0
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +184 -0
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +355 -0
- package/es/src/business/ap-group-search/extension-select/index.vue.mjs +4 -0
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +118 -0
- package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +3 -0
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +28 -0
- package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +3 -0
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +45 -0
- package/es/src/business/ap-group-search/index.d.ts +2823 -0
- package/es/src/business/ap-group-search/index.mjs +14 -0
- package/es/src/business/ap-group-search/interface.d.ts +11 -0
- package/es/src/business/ap-group-search/interface.mjs +1 -0
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +357 -0
- package/es/src/business/ap-group-search/popover-select/index.vue.mjs +4 -0
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +192 -0
- package/es/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
- package/es/src/business/ap-group-search/popover-select/style/css.js +1 -0
- package/es/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
- package/es/src/business/ap-group-search/popover-select/style/index.js +1 -0
- package/es/src/business/ap-group-search/style/css.d.ts +0 -0
- package/es/src/business/ap-group-search/style/css.js +1 -0
- package/es/src/business/ap-group-search/style/index.d.ts +0 -0
- package/es/src/business/ap-group-search/style/index.js +1 -0
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +30 -26
- package/es/src/check-card/index.vue2.mjs +43 -43
- package/es/src/index.mjs +33 -29
- package/es/src/locale/lang/en.mjs +8 -0
- package/es/src/locale/lang/zh-cn.mjs +8 -0
- package/es/src/path-map.mjs +3 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +2 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +7 -1189
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +50 -0
- package/lib/src/business/ap-group-search/ap-group-search.vue.js +1 -0
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -0
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +355 -0
- package/lib/src/business/ap-group-search/extension-select/index.vue.js +1 -0
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -0
- package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +3 -0
- package/lib/src/business/ap-group-search/images/icon-down.vue.js +1 -0
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +3 -0
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +1 -0
- package/lib/src/business/ap-group-search/index.d.ts +2823 -0
- package/lib/src/business/ap-group-search/index.js +1 -0
- package/lib/src/business/ap-group-search/interface.d.ts +11 -0
- package/lib/src/business/ap-group-search/interface.js +1 -0
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +357 -0
- package/lib/src/business/ap-group-search/popover-select/index.vue.js +1 -0
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -0
- package/lib/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
- package/lib/src/business/ap-group-search/popover-select/style/css.js +1 -0
- package/lib/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
- package/lib/src/business/ap-group-search/popover-select/style/index.js +1 -0
- package/lib/src/business/ap-group-search/style/css.d.ts +0 -0
- package/lib/src/business/ap-group-search/style/css.js +1 -0
- package/lib/src/business/ap-group-search/style/index.d.ts +0 -0
- package/lib/src/business/ap-group-search/style/index.js +1 -0
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/package.json +21 -8
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { withInstall as o } from "@aplus-frontend/utils";
|
|
2
|
+
import "./ap-group-search.vue.mjs";
|
|
3
|
+
import "./extension-select/index.vue.mjs";
|
|
4
|
+
import "./popover-select/index.vue.mjs";
|
|
5
|
+
import "./interface.mjs";
|
|
6
|
+
import t from "./ap-group-search.vue2.mjs";
|
|
7
|
+
import r from "./extension-select/index.vue2.mjs";
|
|
8
|
+
import m from "./popover-select/index.vue2.mjs";
|
|
9
|
+
const a = o(t), l = o(r), A = o(m);
|
|
10
|
+
export {
|
|
11
|
+
l as ApExtensionSelect,
|
|
12
|
+
a as ApGroupSearch,
|
|
13
|
+
A as ApPopoverSelect
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DefaultOptionType, SelectProps, SelectValue } from '@aplus-frontend/antdv/es/select';
|
|
2
|
+
import { StyleValue } from 'vue';
|
|
3
|
+
export type GroupSearchProps = Omit<SelectProps, 'value | options | mode | suffixIcon | open'> & {
|
|
4
|
+
options: DefaultOptionType[];
|
|
5
|
+
value?: {
|
|
6
|
+
key: SelectValue;
|
|
7
|
+
value: any;
|
|
8
|
+
};
|
|
9
|
+
hasAll?: boolean;
|
|
10
|
+
style?: StyleValue;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { SelectValue, DefaultOptionType, LabeledValue } from '@aplus-frontend/antdv/es/select';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, PublicProps } from 'vue';
|
|
3
|
+
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
4
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
5
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
6
|
+
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
7
|
+
import { RenderDOMFunc, DropdownRender, CustomTagProps } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
|
|
8
|
+
import { AlignType } from '@aplus-frontend/antdv/es/vc-trigger/interface';
|
|
9
|
+
declare const _default: DefineComponent<__VLS_TypePropsToOption<Omit<Partial< ExtractPropTypes<{
|
|
10
|
+
value: {
|
|
11
|
+
type: PropType<SelectValue>;
|
|
12
|
+
default: SelectValue;
|
|
13
|
+
};
|
|
14
|
+
defaultValue: {
|
|
15
|
+
type: PropType<SelectValue>;
|
|
16
|
+
default: SelectValue;
|
|
17
|
+
};
|
|
18
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
19
|
+
suffixIcon: VueTypeValidableDef<any>;
|
|
20
|
+
itemIcon: VueTypeValidableDef<any>;
|
|
21
|
+
size: {
|
|
22
|
+
type: PropType<ButtonSize>;
|
|
23
|
+
default: ButtonSize;
|
|
24
|
+
};
|
|
25
|
+
mode: {
|
|
26
|
+
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
27
|
+
default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
28
|
+
};
|
|
29
|
+
bordered: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
transitionName: StringConstructor;
|
|
34
|
+
choiceTransitionName: {
|
|
35
|
+
type: PropType<"">;
|
|
36
|
+
default: "";
|
|
37
|
+
};
|
|
38
|
+
popupClassName: StringConstructor;
|
|
39
|
+
dropdownClassName: StringConstructor;
|
|
40
|
+
placement: {
|
|
41
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
42
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
43
|
+
};
|
|
44
|
+
status: {
|
|
45
|
+
type: PropType<"" | "error" | "warning">;
|
|
46
|
+
default: "" | "error" | "warning";
|
|
47
|
+
};
|
|
48
|
+
'onUpdate:value': {
|
|
49
|
+
type: PropType<(val: SelectValue) => void>;
|
|
50
|
+
default: (val: SelectValue) => void;
|
|
51
|
+
};
|
|
52
|
+
children: PropType< VueNode[]>;
|
|
53
|
+
listHeight: NumberConstructor;
|
|
54
|
+
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
55
|
+
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
56
|
+
tabindex: NumberConstructor;
|
|
57
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
58
|
+
onFocus: {
|
|
59
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
60
|
+
};
|
|
61
|
+
onBlur: {
|
|
62
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
63
|
+
};
|
|
64
|
+
onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
|
|
65
|
+
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
66
|
+
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
67
|
+
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
68
|
+
onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
69
|
+
open: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: any;
|
|
72
|
+
};
|
|
73
|
+
animation: StringConstructor;
|
|
74
|
+
direction: {
|
|
75
|
+
type: PropType<"rtl" | "ltr">;
|
|
76
|
+
};
|
|
77
|
+
disabled: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: any;
|
|
80
|
+
};
|
|
81
|
+
prefixCls: StringConstructor;
|
|
82
|
+
id: StringConstructor;
|
|
83
|
+
autofocus: BooleanConstructor;
|
|
84
|
+
getPopupContainer: {
|
|
85
|
+
type: PropType<RenderDOMFunc>;
|
|
86
|
+
};
|
|
87
|
+
virtual: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: any;
|
|
90
|
+
};
|
|
91
|
+
dropdownMatchSelectWidth: {
|
|
92
|
+
type: PropType<number | boolean>;
|
|
93
|
+
default: any;
|
|
94
|
+
};
|
|
95
|
+
options: PropType< DefaultOptionType[]>;
|
|
96
|
+
showAction: {
|
|
97
|
+
type: PropType<("click" | "focus")[]>;
|
|
98
|
+
};
|
|
99
|
+
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
100
|
+
loading: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: any;
|
|
103
|
+
};
|
|
104
|
+
placeholder: VueTypeValidableDef<any>;
|
|
105
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
106
|
+
allowClear: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: any;
|
|
109
|
+
};
|
|
110
|
+
onSearch: PropType<(value: string) => void>;
|
|
111
|
+
fieldNames: PropType<FieldNames>;
|
|
112
|
+
dropdownStyle: {
|
|
113
|
+
type: PropType<CSSProperties>;
|
|
114
|
+
};
|
|
115
|
+
dropdownRender: {
|
|
116
|
+
type: PropType<DropdownRender>;
|
|
117
|
+
};
|
|
118
|
+
dropdownAlign: PropType<AlignType>;
|
|
119
|
+
showSearch: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: any;
|
|
122
|
+
};
|
|
123
|
+
searchValue: StringConstructor;
|
|
124
|
+
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
125
|
+
removeIcon: VueTypeValidableDef<any>;
|
|
126
|
+
maxTagCount: {
|
|
127
|
+
type: PropType<number | "responsive">;
|
|
128
|
+
};
|
|
129
|
+
maxTagTextLength: NumberConstructor;
|
|
130
|
+
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
131
|
+
tokenSeparators: {
|
|
132
|
+
type: PropType<string[]>;
|
|
133
|
+
};
|
|
134
|
+
tagRender: {
|
|
135
|
+
type: PropType<(props: CustomTagProps) => any>;
|
|
136
|
+
};
|
|
137
|
+
optionLabelRender: {
|
|
138
|
+
type: PropType<(option: Record<string, any>) => any>;
|
|
139
|
+
};
|
|
140
|
+
onClear: PropType<() => void>;
|
|
141
|
+
defaultOpen: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: any;
|
|
144
|
+
};
|
|
145
|
+
onDropdownVisibleChange: {
|
|
146
|
+
type: PropType<(open: boolean) => void>;
|
|
147
|
+
};
|
|
148
|
+
showArrow: {
|
|
149
|
+
type: BooleanConstructor;
|
|
150
|
+
default: any;
|
|
151
|
+
};
|
|
152
|
+
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
153
|
+
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
154
|
+
listItemHeight: NumberConstructor;
|
|
155
|
+
inputValue: StringConstructor;
|
|
156
|
+
autoClearSearchValue: {
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
default: any;
|
|
159
|
+
};
|
|
160
|
+
filterOption: {
|
|
161
|
+
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
162
|
+
default: any;
|
|
163
|
+
};
|
|
164
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
|
|
165
|
+
optionFilterProp: StringConstructor;
|
|
166
|
+
optionLabelProp: StringConstructor;
|
|
167
|
+
defaultActiveFirstOption: {
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
default: any;
|
|
170
|
+
};
|
|
171
|
+
labelInValue: {
|
|
172
|
+
type: BooleanConstructor;
|
|
173
|
+
default: any;
|
|
174
|
+
};
|
|
175
|
+
}>>, "mode" | "suffixIcon">>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
176
|
+
submit: (value: SelectValue) => void;
|
|
177
|
+
"open-change": (value: boolean) => void;
|
|
178
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<Omit<Partial< ExtractPropTypes<{
|
|
179
|
+
value: {
|
|
180
|
+
type: PropType<SelectValue>;
|
|
181
|
+
default: SelectValue;
|
|
182
|
+
};
|
|
183
|
+
defaultValue: {
|
|
184
|
+
type: PropType<SelectValue>;
|
|
185
|
+
default: SelectValue;
|
|
186
|
+
};
|
|
187
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
188
|
+
suffixIcon: VueTypeValidableDef<any>;
|
|
189
|
+
itemIcon: VueTypeValidableDef<any>;
|
|
190
|
+
size: {
|
|
191
|
+
type: PropType<ButtonSize>;
|
|
192
|
+
default: ButtonSize;
|
|
193
|
+
};
|
|
194
|
+
mode: {
|
|
195
|
+
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
196
|
+
default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
197
|
+
};
|
|
198
|
+
bordered: {
|
|
199
|
+
type: BooleanConstructor;
|
|
200
|
+
default: boolean;
|
|
201
|
+
};
|
|
202
|
+
transitionName: StringConstructor;
|
|
203
|
+
choiceTransitionName: {
|
|
204
|
+
type: PropType<"">;
|
|
205
|
+
default: "";
|
|
206
|
+
};
|
|
207
|
+
popupClassName: StringConstructor;
|
|
208
|
+
dropdownClassName: StringConstructor;
|
|
209
|
+
placement: {
|
|
210
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
211
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
212
|
+
};
|
|
213
|
+
status: {
|
|
214
|
+
type: PropType<"" | "error" | "warning">;
|
|
215
|
+
default: "" | "error" | "warning";
|
|
216
|
+
};
|
|
217
|
+
'onUpdate:value': {
|
|
218
|
+
type: PropType<(val: SelectValue) => void>;
|
|
219
|
+
default: (val: SelectValue) => void;
|
|
220
|
+
};
|
|
221
|
+
children: PropType< VueNode[]>;
|
|
222
|
+
listHeight: NumberConstructor;
|
|
223
|
+
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
224
|
+
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
225
|
+
tabindex: NumberConstructor;
|
|
226
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
227
|
+
onFocus: {
|
|
228
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
229
|
+
};
|
|
230
|
+
onBlur: {
|
|
231
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
232
|
+
};
|
|
233
|
+
onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
|
|
234
|
+
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
235
|
+
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
236
|
+
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
237
|
+
onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
238
|
+
open: {
|
|
239
|
+
type: BooleanConstructor;
|
|
240
|
+
default: any;
|
|
241
|
+
};
|
|
242
|
+
animation: StringConstructor;
|
|
243
|
+
direction: {
|
|
244
|
+
type: PropType<"rtl" | "ltr">;
|
|
245
|
+
};
|
|
246
|
+
disabled: {
|
|
247
|
+
type: BooleanConstructor;
|
|
248
|
+
default: any;
|
|
249
|
+
};
|
|
250
|
+
prefixCls: StringConstructor;
|
|
251
|
+
id: StringConstructor;
|
|
252
|
+
autofocus: BooleanConstructor;
|
|
253
|
+
getPopupContainer: {
|
|
254
|
+
type: PropType<RenderDOMFunc>;
|
|
255
|
+
};
|
|
256
|
+
virtual: {
|
|
257
|
+
type: BooleanConstructor;
|
|
258
|
+
default: any;
|
|
259
|
+
};
|
|
260
|
+
dropdownMatchSelectWidth: {
|
|
261
|
+
type: PropType<number | boolean>;
|
|
262
|
+
default: any;
|
|
263
|
+
};
|
|
264
|
+
options: PropType< DefaultOptionType[]>;
|
|
265
|
+
showAction: {
|
|
266
|
+
type: PropType<("click" | "focus")[]>;
|
|
267
|
+
};
|
|
268
|
+
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
269
|
+
loading: {
|
|
270
|
+
type: BooleanConstructor;
|
|
271
|
+
default: any;
|
|
272
|
+
};
|
|
273
|
+
placeholder: VueTypeValidableDef<any>;
|
|
274
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
275
|
+
allowClear: {
|
|
276
|
+
type: BooleanConstructor;
|
|
277
|
+
default: any;
|
|
278
|
+
};
|
|
279
|
+
onSearch: PropType<(value: string) => void>;
|
|
280
|
+
fieldNames: PropType<FieldNames>;
|
|
281
|
+
dropdownStyle: {
|
|
282
|
+
type: PropType<CSSProperties>;
|
|
283
|
+
};
|
|
284
|
+
dropdownRender: {
|
|
285
|
+
type: PropType<DropdownRender>;
|
|
286
|
+
};
|
|
287
|
+
dropdownAlign: PropType<AlignType>;
|
|
288
|
+
showSearch: {
|
|
289
|
+
type: BooleanConstructor;
|
|
290
|
+
default: any;
|
|
291
|
+
};
|
|
292
|
+
searchValue: StringConstructor;
|
|
293
|
+
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
294
|
+
removeIcon: VueTypeValidableDef<any>;
|
|
295
|
+
maxTagCount: {
|
|
296
|
+
type: PropType<number | "responsive">;
|
|
297
|
+
};
|
|
298
|
+
maxTagTextLength: NumberConstructor;
|
|
299
|
+
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
300
|
+
tokenSeparators: {
|
|
301
|
+
type: PropType<string[]>;
|
|
302
|
+
};
|
|
303
|
+
tagRender: {
|
|
304
|
+
type: PropType<(props: CustomTagProps) => any>;
|
|
305
|
+
};
|
|
306
|
+
optionLabelRender: {
|
|
307
|
+
type: PropType<(option: Record<string, any>) => any>;
|
|
308
|
+
};
|
|
309
|
+
onClear: PropType<() => void>;
|
|
310
|
+
defaultOpen: {
|
|
311
|
+
type: BooleanConstructor;
|
|
312
|
+
default: any;
|
|
313
|
+
};
|
|
314
|
+
onDropdownVisibleChange: {
|
|
315
|
+
type: PropType<(open: boolean) => void>;
|
|
316
|
+
};
|
|
317
|
+
showArrow: {
|
|
318
|
+
type: BooleanConstructor;
|
|
319
|
+
default: any;
|
|
320
|
+
};
|
|
321
|
+
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
322
|
+
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
323
|
+
listItemHeight: NumberConstructor;
|
|
324
|
+
inputValue: StringConstructor;
|
|
325
|
+
autoClearSearchValue: {
|
|
326
|
+
type: BooleanConstructor;
|
|
327
|
+
default: any;
|
|
328
|
+
};
|
|
329
|
+
filterOption: {
|
|
330
|
+
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
331
|
+
default: any;
|
|
332
|
+
};
|
|
333
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
|
|
334
|
+
optionFilterProp: StringConstructor;
|
|
335
|
+
optionLabelProp: StringConstructor;
|
|
336
|
+
defaultActiveFirstOption: {
|
|
337
|
+
type: BooleanConstructor;
|
|
338
|
+
default: any;
|
|
339
|
+
};
|
|
340
|
+
labelInValue: {
|
|
341
|
+
type: BooleanConstructor;
|
|
342
|
+
default: any;
|
|
343
|
+
};
|
|
344
|
+
}>>, "mode" | "suffixIcon">>>> & {
|
|
345
|
+
onSubmit?: ((value: SelectValue) => any) | undefined;
|
|
346
|
+
"onOpen-change"?: ((value: boolean) => any) | undefined;
|
|
347
|
+
}, {}, {}>;
|
|
348
|
+
export default _default;
|
|
349
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
350
|
+
type __VLS_TypePropsToOption<T> = {
|
|
351
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
352
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
353
|
+
} : {
|
|
354
|
+
type: PropType<T[K]>;
|
|
355
|
+
required: true;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { defineComponent as O, ref as d, watchEffect as T, openBlock as z, createElementBlock as G, normalizeClass as p, unref as e, createVNode as a, withCtx as n, createElementVNode as s, mergeProps as R, createTextVNode as m, toDisplayString as f } from "vue";
|
|
2
|
+
import { Popover as A, Select as D, Button as h, Space as F } from "@aplus-frontend/antdv";
|
|
3
|
+
import "../../../config-provider/index.mjs";
|
|
4
|
+
import E from "../images/icon-line-select.vue.mjs";
|
|
5
|
+
import { wait as K } from "@aplus-frontend/utils";
|
|
6
|
+
import { useLocale as q } from "../../../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
import { useGlobalConfig as B } from "../../../config-provider/hooks/use-global-config.mjs";
|
|
8
|
+
import { useNamespace as H } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
const Z = /* @__PURE__ */ O({
|
|
10
|
+
__name: "index",
|
|
11
|
+
props: {
|
|
12
|
+
value: {},
|
|
13
|
+
defaultValue: {},
|
|
14
|
+
notFoundContent: {},
|
|
15
|
+
itemIcon: {},
|
|
16
|
+
size: {},
|
|
17
|
+
bordered: { type: Boolean },
|
|
18
|
+
transitionName: {},
|
|
19
|
+
choiceTransitionName: {},
|
|
20
|
+
popupClassName: {},
|
|
21
|
+
dropdownClassName: {},
|
|
22
|
+
placement: {},
|
|
23
|
+
status: {},
|
|
24
|
+
"onUpdate:value": {},
|
|
25
|
+
children: {},
|
|
26
|
+
listHeight: {},
|
|
27
|
+
onMouseenter: {},
|
|
28
|
+
onMouseleave: {},
|
|
29
|
+
tabindex: {},
|
|
30
|
+
onClick: {},
|
|
31
|
+
onFocus: {},
|
|
32
|
+
onBlur: {},
|
|
33
|
+
onChange: {},
|
|
34
|
+
onKeydown: {},
|
|
35
|
+
onKeyup: {},
|
|
36
|
+
onMousedown: {},
|
|
37
|
+
onSelect: {},
|
|
38
|
+
open: { type: Boolean },
|
|
39
|
+
animation: {},
|
|
40
|
+
direction: {},
|
|
41
|
+
disabled: { type: Boolean },
|
|
42
|
+
prefixCls: {},
|
|
43
|
+
id: {},
|
|
44
|
+
autofocus: { type: Boolean },
|
|
45
|
+
getPopupContainer: {},
|
|
46
|
+
virtual: { type: Boolean },
|
|
47
|
+
dropdownMatchSelectWidth: {},
|
|
48
|
+
options: {},
|
|
49
|
+
showAction: {},
|
|
50
|
+
onDeselect: {},
|
|
51
|
+
loading: { type: Boolean },
|
|
52
|
+
placeholder: {},
|
|
53
|
+
clearIcon: {},
|
|
54
|
+
allowClear: { type: Boolean },
|
|
55
|
+
onSearch: {},
|
|
56
|
+
fieldNames: {},
|
|
57
|
+
dropdownStyle: {},
|
|
58
|
+
dropdownRender: {},
|
|
59
|
+
dropdownAlign: {},
|
|
60
|
+
showSearch: { type: Boolean },
|
|
61
|
+
searchValue: {},
|
|
62
|
+
onInputKeyDown: {},
|
|
63
|
+
removeIcon: {},
|
|
64
|
+
maxTagCount: {},
|
|
65
|
+
maxTagTextLength: {},
|
|
66
|
+
maxTagPlaceholder: {},
|
|
67
|
+
tokenSeparators: {},
|
|
68
|
+
tagRender: {},
|
|
69
|
+
optionLabelRender: {},
|
|
70
|
+
onClear: {},
|
|
71
|
+
defaultOpen: { type: Boolean },
|
|
72
|
+
onDropdownVisibleChange: {},
|
|
73
|
+
showArrow: { type: Boolean },
|
|
74
|
+
onPopupScroll: {},
|
|
75
|
+
menuItemSelectedIcon: {},
|
|
76
|
+
listItemHeight: {},
|
|
77
|
+
inputValue: {},
|
|
78
|
+
autoClearSearchValue: { type: Boolean },
|
|
79
|
+
filterOption: {},
|
|
80
|
+
filterSort: {},
|
|
81
|
+
optionFilterProp: {},
|
|
82
|
+
optionLabelProp: {},
|
|
83
|
+
defaultActiveFirstOption: { type: Boolean },
|
|
84
|
+
labelInValue: { type: Boolean }
|
|
85
|
+
},
|
|
86
|
+
emits: ["submit", "open-change"],
|
|
87
|
+
setup(b, { emit: k }) {
|
|
88
|
+
const { t: l } = q(), x = B("uiMode", "aplus"), v = b, C = k, t = d([]), c = d(!1), g = d();
|
|
89
|
+
T(() => {
|
|
90
|
+
t.value = v.value;
|
|
91
|
+
});
|
|
92
|
+
const V = (o) => {
|
|
93
|
+
var S, w;
|
|
94
|
+
const u = `.${B("namespace").value}-ap-group-search`;
|
|
95
|
+
return document.querySelector(u) || ((w = (S = o == null ? void 0 : o.parentNode) == null ? void 0 : S.parentNode) == null ? void 0 : w.parentNode) || o;
|
|
96
|
+
}, _ = (o) => {
|
|
97
|
+
c.value = o, C("open-change", o);
|
|
98
|
+
}, y = () => {
|
|
99
|
+
c.value = !1;
|
|
100
|
+
}, I = () => {
|
|
101
|
+
t.value = [];
|
|
102
|
+
}, N = (o) => {
|
|
103
|
+
console.log("change!!!", o), t.value = o;
|
|
104
|
+
}, P = async () => {
|
|
105
|
+
var o;
|
|
106
|
+
(o = g.value) == null || o.blur(), y(), await K(150), C("submit", t.value);
|
|
107
|
+
}, { b: L, e: M, em: r } = H("ap-popover-select");
|
|
108
|
+
return (o, i) => (z(), G("div", {
|
|
109
|
+
class: p(e(L)())
|
|
110
|
+
}, [
|
|
111
|
+
a(e(A), {
|
|
112
|
+
overlayClassName: e(M)("popover"),
|
|
113
|
+
"get-popup-container": V,
|
|
114
|
+
trigger: "click",
|
|
115
|
+
open: c.value,
|
|
116
|
+
placement: "bottomLeft",
|
|
117
|
+
onOpenChange: _
|
|
118
|
+
}, {
|
|
119
|
+
content: n(() => [
|
|
120
|
+
s("div", null, [
|
|
121
|
+
s("div", {
|
|
122
|
+
class: p(e(r)("popover", "content"))
|
|
123
|
+
}, [
|
|
124
|
+
a(e(D), R({ ...v }, {
|
|
125
|
+
mode: "tags",
|
|
126
|
+
bordered: !1,
|
|
127
|
+
value: t.value,
|
|
128
|
+
onChange: i[0] || (i[0] = (u) => N(u)),
|
|
129
|
+
placeholder: e(l)("ap.apGroupSearch.tokenSeparatorsPlaceholder"),
|
|
130
|
+
tokenSeparators: [",", `
|
|
131
|
+
`, "\r"],
|
|
132
|
+
open: !1,
|
|
133
|
+
ref_key: "selectRef",
|
|
134
|
+
ref: g
|
|
135
|
+
}), null, 16, ["value", "placeholder"])
|
|
136
|
+
], 2),
|
|
137
|
+
s("div", {
|
|
138
|
+
class: p(
|
|
139
|
+
e(x) === "aplus" ? e(r)("popover", "footer") : e(r)("popover", "footer--admin")
|
|
140
|
+
)
|
|
141
|
+
}, [
|
|
142
|
+
a(e(h), {
|
|
143
|
+
size: "small",
|
|
144
|
+
onClick: y
|
|
145
|
+
}, {
|
|
146
|
+
default: n(() => [
|
|
147
|
+
m(f(e(l)("ap.apGroupSearch.close")), 1)
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}),
|
|
151
|
+
a(e(F), null, {
|
|
152
|
+
default: n(() => [
|
|
153
|
+
a(e(h), {
|
|
154
|
+
size: "small",
|
|
155
|
+
onClick: I
|
|
156
|
+
}, {
|
|
157
|
+
default: n(() => [
|
|
158
|
+
m(f(e(l)("ap.apGroupSearch.clear")), 1)
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}),
|
|
162
|
+
a(e(h), {
|
|
163
|
+
size: "small",
|
|
164
|
+
type: "primary",
|
|
165
|
+
onClick: P
|
|
166
|
+
}, {
|
|
167
|
+
default: n(() => [
|
|
168
|
+
m(f(e(l)("ap.apGroupSearch.confirm")), 1)
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
})
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
})
|
|
175
|
+
], 2)
|
|
176
|
+
])
|
|
177
|
+
]),
|
|
178
|
+
default: n(() => [
|
|
179
|
+
s("span", {
|
|
180
|
+
class: p(e(r)("popover", "trigger"))
|
|
181
|
+
}, [
|
|
182
|
+
a(E)
|
|
183
|
+
], 2)
|
|
184
|
+
]),
|
|
185
|
+
_: 1
|
|
186
|
+
}, 8, ["overlayClassName", "open"])
|
|
187
|
+
], 2));
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
export {
|
|
191
|
+
Z as default
|
|
192
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui-theme/src/ap-group-search/ap-group-search.css';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui-theme/src/ap-group-search/ap-group-search.less';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui-theme/dist/ap-group-search/ap-group-search.css';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui-theme/src/ap-group-search/ap-group-search.less';
|
|
@@ -1,41 +1,45 @@
|
|
|
1
1
|
import { default as t } from "./ap-table-modal/index.mjs";
|
|
2
2
|
import { ApAttachment as A } from "./ap-attachment/index.mjs";
|
|
3
|
-
import { ApBatchAction as
|
|
3
|
+
import { ApBatchAction as x } from "./ap-batch-action/index.mjs";
|
|
4
4
|
import { ApBatchActionGroup as f } from "./ap-batch-action-group/index.mjs";
|
|
5
5
|
import { ApButtonGroup as l } from "./ap-button-group/index.mjs";
|
|
6
|
-
import { ApCard as
|
|
6
|
+
import { ApCard as c } from "./ap-card/index.mjs";
|
|
7
7
|
import { ApExpandAlert as i } from "./ap-expand-alert/index.mjs";
|
|
8
|
-
import { ApExportGroup as
|
|
9
|
-
import { ApImage as
|
|
10
|
-
import { ApInputRadio as
|
|
11
|
-
import { ApLabel as
|
|
8
|
+
import { ApExportGroup as G } from "./ap-export-group/index.mjs";
|
|
9
|
+
import { ApImage as h } from "./ap-image/index.mjs";
|
|
10
|
+
import { ApInputRadio as b } from "./ap-input-radio/index.mjs";
|
|
11
|
+
import { ApLabel as E, ApLabelGroup as T } from "./ap-label/index.mjs";
|
|
12
12
|
import { ApLadder as I } from "./ap-ladder/index.mjs";
|
|
13
|
-
import { ApSelectLayout as
|
|
14
|
-
import { ApStatus as
|
|
15
|
-
import { ApTitle as
|
|
13
|
+
import { ApSelectLayout as v } from "./ap-select-layout/index.mjs";
|
|
14
|
+
import { ApStatus as D, ApStatusGroup as H } from "./ap-status/index.mjs";
|
|
15
|
+
import { ApTitle as P } from "./ap-title/index.mjs";
|
|
16
16
|
import "./hooks/index.mjs";
|
|
17
|
-
import { ApSummary as
|
|
18
|
-
import { ApAppendix as
|
|
19
|
-
import {
|
|
17
|
+
import { ApSummary as j } from "./ap-summary/index.mjs";
|
|
18
|
+
import { ApAppendix as q } from "./ap-appendix/index.mjs";
|
|
19
|
+
import { ApExtensionSelect as z, ApGroupSearch as F, ApPopoverSelect as J } from "./ap-group-search/index.mjs";
|
|
20
|
+
import { ApTransformDataHelper as N } from "../utils/ap-trans-data/index.mjs";
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
+
q as ApAppendix,
|
|
22
23
|
A as ApAttachment,
|
|
23
|
-
|
|
24
|
+
x as ApBatchAction,
|
|
24
25
|
f as ApBatchActionGroup,
|
|
25
26
|
l as ApButtonGroup,
|
|
26
|
-
|
|
27
|
+
c as ApCard,
|
|
27
28
|
i as ApExpandAlert,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
G as ApExportGroup,
|
|
30
|
+
z as ApExtensionSelect,
|
|
31
|
+
F as ApGroupSearch,
|
|
32
|
+
h as ApImage,
|
|
33
|
+
b as ApInputRadio,
|
|
34
|
+
E as ApLabel,
|
|
35
|
+
T as ApLabelGroup,
|
|
33
36
|
I as ApLadder,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
J as ApPopoverSelect,
|
|
38
|
+
v as ApSelectLayout,
|
|
39
|
+
D as ApStatus,
|
|
40
|
+
H as ApStatusGroup,
|
|
41
|
+
j as ApSummary,
|
|
38
42
|
t as ApTableModal,
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
P as ApTitle,
|
|
44
|
+
N as ApTransformDataHelper
|
|
41
45
|
};
|