@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.
Files changed (75) hide show
  1. package/es/index.mjs +151 -147
  2. package/es/src/ap-field/interface.d.ts +2 -1
  3. package/es/src/ap-field/switch/index.vue.mjs +50 -49
  4. package/es/src/ap-form/drawer-form/index.vue.mjs +104 -99
  5. package/es/src/ap-table/constants.d.ts +7 -1189
  6. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +50 -0
  7. package/es/src/business/ap-group-search/ap-group-search.vue.mjs +4 -0
  8. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +184 -0
  9. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +355 -0
  10. package/es/src/business/ap-group-search/extension-select/index.vue.mjs +4 -0
  11. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +118 -0
  12. package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +3 -0
  13. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +28 -0
  14. package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +3 -0
  15. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +45 -0
  16. package/es/src/business/ap-group-search/index.d.ts +2823 -0
  17. package/es/src/business/ap-group-search/index.mjs +14 -0
  18. package/es/src/business/ap-group-search/interface.d.ts +11 -0
  19. package/es/src/business/ap-group-search/interface.mjs +1 -0
  20. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +357 -0
  21. package/es/src/business/ap-group-search/popover-select/index.vue.mjs +4 -0
  22. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +192 -0
  23. package/es/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
  24. package/es/src/business/ap-group-search/popover-select/style/css.js +1 -0
  25. package/es/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
  26. package/es/src/business/ap-group-search/popover-select/style/index.js +1 -0
  27. package/es/src/business/ap-group-search/style/css.d.ts +0 -0
  28. package/es/src/business/ap-group-search/style/css.js +1 -0
  29. package/es/src/business/ap-group-search/style/index.d.ts +0 -0
  30. package/es/src/business/ap-group-search/style/index.js +1 -0
  31. package/es/src/business/index.d.ts +1 -0
  32. package/es/src/business/index.mjs +30 -26
  33. package/es/src/check-card/index.vue2.mjs +43 -43
  34. package/es/src/index.mjs +33 -29
  35. package/es/src/locale/lang/en.mjs +8 -0
  36. package/es/src/locale/lang/zh-cn.mjs +8 -0
  37. package/es/src/path-map.mjs +3 -1
  38. package/lib/index.js +1 -1
  39. package/lib/src/ap-field/interface.d.ts +2 -1
  40. package/lib/src/ap-field/switch/index.vue.js +1 -1
  41. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  42. package/lib/src/ap-table/constants.d.ts +7 -1189
  43. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +50 -0
  44. package/lib/src/business/ap-group-search/ap-group-search.vue.js +1 -0
  45. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -0
  46. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +355 -0
  47. package/lib/src/business/ap-group-search/extension-select/index.vue.js +1 -0
  48. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -0
  49. package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +3 -0
  50. package/lib/src/business/ap-group-search/images/icon-down.vue.js +1 -0
  51. package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +3 -0
  52. package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +1 -0
  53. package/lib/src/business/ap-group-search/index.d.ts +2823 -0
  54. package/lib/src/business/ap-group-search/index.js +1 -0
  55. package/lib/src/business/ap-group-search/interface.d.ts +11 -0
  56. package/lib/src/business/ap-group-search/interface.js +1 -0
  57. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +357 -0
  58. package/lib/src/business/ap-group-search/popover-select/index.vue.js +1 -0
  59. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -0
  60. package/lib/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
  61. package/lib/src/business/ap-group-search/popover-select/style/css.js +1 -0
  62. package/lib/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
  63. package/lib/src/business/ap-group-search/popover-select/style/index.js +1 -0
  64. package/lib/src/business/ap-group-search/style/css.d.ts +0 -0
  65. package/lib/src/business/ap-group-search/style/css.js +1 -0
  66. package/lib/src/business/ap-group-search/style/index.d.ts +0 -0
  67. package/lib/src/business/ap-group-search/style/index.js +1 -0
  68. package/lib/src/business/index.d.ts +1 -0
  69. package/lib/src/business/index.js +1 -1
  70. package/lib/src/check-card/index.vue2.js +1 -1
  71. package/lib/src/index.js +1 -1
  72. package/lib/src/locale/lang/en.js +1 -1
  73. package/lib/src/locale/lang/zh-cn.js +1 -1
  74. package/lib/src/path-map.js +1 -1
  75. package/package.json +21 -8
@@ -0,0 +1,50 @@
1
+ import { SelectValue } from '@aplus-frontend/antdv/es/select';
2
+ import { GroupSearchProps } from './interface';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
4
+ declare function __VLS_template(): {
5
+ slots: {
6
+ search?(_: {
7
+ value: any;
8
+ change: (e: any) => void;
9
+ key: SelectValue;
10
+ }): any;
11
+ };
12
+ refs: {};
13
+ attrs: Partial<{}>;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<GroupSearchProps>, {
17
+ hasAll: boolean;
18
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
19
+ "update:value": (...args: any[]) => void;
20
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GroupSearchProps>, {
21
+ hasAll: boolean;
22
+ }>>> & {
23
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
24
+ }, {
25
+ hasAll: boolean;
26
+ }, {}>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithDefaults<P, D> = {
30
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
31
+ default: D[K];
32
+ }> : P[K];
33
+ };
34
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
35
+ type __VLS_TypePropsToOption<T> = {
36
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
37
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
38
+ } : {
39
+ type: PropType<T[K]>;
40
+ required: true;
41
+ };
42
+ };
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
48
+ type __VLS_PrettifyLocal<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ap-group-search.vue2.js");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("@aplus-frontend/antdv"),A=require("./images/icon-down.vue.js");require("./extension-select/index.vue.js");const V=require("../../hooks/useControllableValue.js");require("../../config-provider/index.js");const x=require("../../config-provider/hooks/use-locale.js"),k=require("../../config-provider/hooks/use-global-config.js"),N=require("../../config-provider/hooks/use-namespace.js"),q=require("./extension-select/index.vue2.js"),c="GROUP_SEARCH_ALL",I=e.defineComponent({__name:"ap-group-search",props:{value:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},mode:{},bordered:{type:Boolean},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},"onUpdate:value":{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},options:{},showAction:{},onDeselect:{},loading:{type:Boolean},placeholder:{},clearIcon:{},allowClear:{type:Boolean},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},showArrow:{type:Boolean},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean},labelInValue:{type:Boolean},hasAll:{type:Boolean,default:!0},style:{type:[Boolean,null,String,Object,Array]}},emits:["update:value"],setup(f,{emit:m}){const{t:p}=x.useLocale(),y=k.useGlobalConfig("uiMode","aplus"),l=f,v=m,{value:n,updateValue:s}=V.useControllableValue(l,v),g=o=>{let t=o;o===c&&(t=l.options.map(a=>a.value)),s({...n.value,key:t})},C=e.computed(()=>{let o=[];return l.hasAll&&(o=[{value:c,label:p("ap.apGroupSearch.all")}]),[...o,...l.options]}),S=e.computed(()=>{var r,u;const o=(r=n==null?void 0:n.value)==null?void 0:r.key,t=p("ap.apGroupSearch.defaultPlaceholder");if(!o)return t;const a=toString.call(o)==="[object Array]"?o:[o];return((u=l.options)==null?void 0:u.filter(i=>a.includes(i.value)).map(i=>i.label).join("/"))||t});e.onMounted(()=>{e.watch(()=>l.hasAll,()=>{var o,t;l.hasAll&&!((o=e.unref(n))!=null&&o.key)&&s({...e.unref(n),key:(t=l.options)==null?void 0:t.map(a=>a.value)})},{immediate:!0})});const b=e.computed(()=>{var a,r;const o=Object.prototype.toString,t=(a=e.unref(n))==null?void 0:a.key;if(t)return o.call(t)==="[object Array]"&&(t==null?void 0:t.length)===((r=l.options)==null?void 0:r.length)?c:t}),d=o=>{var t;o!==((t=e.unref(n))==null?void 0:t.value)&&s({...n.value,value:o})},{b:w,e:_,em:B}=N.useNamespace("ap-group-search");return(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(w)())},[e.createVNode(e.unref(h.Flex),null,{default:e.withCtx(()=>{var a,r;return[e.createVNode(e.unref(h.Select),{value:b.value,style:e.normalizeStyle(l.style),class:e.normalizeClass(`${o.$attrs.class} ${e.unref(y)==="admin"?e.unref(B)("search","admin"):e.unref(_)("search")}`),options:C.value,bordered:!1,onChange:g},{suffixIcon:e.withCtx(()=>[e.createVNode(A.default)]),_:1},8,["value","style","class","options"]),e.renderSlot(o.$slots,"search",{value:(a=e.unref(n))==null?void 0:a.value,change:d,key:(r=e.unref(n))==null?void 0:r.key},()=>{var u;return[e.createVNode(q.default,{style:{width:"100%"},maxTagCount:"responsive",value:(u=e.unref(n))==null?void 0:u.value,onChange:d,placeholder:S.value},null,8,["value","placeholder"])]})]}),_:3})],2))}});exports.default=I;
@@ -0,0 +1,355 @@
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
+ change: (value: SelectValue) => void;
177
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<Omit<Partial< ExtractPropTypes<{
178
+ value: {
179
+ type: PropType<SelectValue>;
180
+ default: SelectValue;
181
+ };
182
+ defaultValue: {
183
+ type: PropType<SelectValue>;
184
+ default: SelectValue;
185
+ };
186
+ notFoundContent: VueTypeValidableDef<any>;
187
+ suffixIcon: VueTypeValidableDef<any>;
188
+ itemIcon: VueTypeValidableDef<any>;
189
+ size: {
190
+ type: PropType<ButtonSize>;
191
+ default: ButtonSize;
192
+ };
193
+ mode: {
194
+ type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
195
+ default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
196
+ };
197
+ bordered: {
198
+ type: BooleanConstructor;
199
+ default: boolean;
200
+ };
201
+ transitionName: StringConstructor;
202
+ choiceTransitionName: {
203
+ type: PropType<"">;
204
+ default: "";
205
+ };
206
+ popupClassName: StringConstructor;
207
+ dropdownClassName: StringConstructor;
208
+ placement: {
209
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
210
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
211
+ };
212
+ status: {
213
+ type: PropType<"" | "error" | "warning">;
214
+ default: "" | "error" | "warning";
215
+ };
216
+ 'onUpdate:value': {
217
+ type: PropType<(val: SelectValue) => void>;
218
+ default: (val: SelectValue) => void;
219
+ };
220
+ children: PropType< VueNode[]>;
221
+ listHeight: NumberConstructor;
222
+ onMouseenter: PropType<(e: MouseEvent) => void>;
223
+ onMouseleave: PropType<(e: MouseEvent) => void>;
224
+ tabindex: NumberConstructor;
225
+ onClick: PropType<(e: MouseEvent) => void>;
226
+ onFocus: {
227
+ type: PropType<(e: FocusEvent) => void>;
228
+ };
229
+ onBlur: {
230
+ type: PropType<(e: FocusEvent) => void>;
231
+ };
232
+ onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
233
+ onKeydown: PropType<(e: KeyboardEvent) => void>;
234
+ onKeyup: PropType<(e: KeyboardEvent) => void>;
235
+ onMousedown: PropType<(e: MouseEvent) => void>;
236
+ onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
237
+ open: {
238
+ type: BooleanConstructor;
239
+ default: any;
240
+ };
241
+ animation: StringConstructor;
242
+ direction: {
243
+ type: PropType<"rtl" | "ltr">;
244
+ };
245
+ disabled: {
246
+ type: BooleanConstructor;
247
+ default: any;
248
+ };
249
+ prefixCls: StringConstructor;
250
+ id: StringConstructor;
251
+ autofocus: BooleanConstructor;
252
+ getPopupContainer: {
253
+ type: PropType<RenderDOMFunc>;
254
+ };
255
+ virtual: {
256
+ type: BooleanConstructor;
257
+ default: any;
258
+ };
259
+ dropdownMatchSelectWidth: {
260
+ type: PropType<number | boolean>;
261
+ default: any;
262
+ };
263
+ options: PropType< DefaultOptionType[]>;
264
+ showAction: {
265
+ type: PropType<("click" | "focus")[]>;
266
+ };
267
+ onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
268
+ loading: {
269
+ type: BooleanConstructor;
270
+ default: any;
271
+ };
272
+ placeholder: VueTypeValidableDef<any>;
273
+ clearIcon: VueTypeValidableDef<any>;
274
+ allowClear: {
275
+ type: BooleanConstructor;
276
+ default: any;
277
+ };
278
+ onSearch: PropType<(value: string) => void>;
279
+ fieldNames: PropType<FieldNames>;
280
+ dropdownStyle: {
281
+ type: PropType<CSSProperties>;
282
+ };
283
+ dropdownRender: {
284
+ type: PropType<DropdownRender>;
285
+ };
286
+ dropdownAlign: PropType<AlignType>;
287
+ showSearch: {
288
+ type: BooleanConstructor;
289
+ default: any;
290
+ };
291
+ searchValue: StringConstructor;
292
+ onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
293
+ removeIcon: VueTypeValidableDef<any>;
294
+ maxTagCount: {
295
+ type: PropType<number | "responsive">;
296
+ };
297
+ maxTagTextLength: NumberConstructor;
298
+ maxTagPlaceholder: VueTypeValidableDef<any>;
299
+ tokenSeparators: {
300
+ type: PropType<string[]>;
301
+ };
302
+ tagRender: {
303
+ type: PropType<(props: CustomTagProps) => any>;
304
+ };
305
+ optionLabelRender: {
306
+ type: PropType<(option: Record<string, any>) => any>;
307
+ };
308
+ onClear: PropType<() => void>;
309
+ defaultOpen: {
310
+ type: BooleanConstructor;
311
+ default: any;
312
+ };
313
+ onDropdownVisibleChange: {
314
+ type: PropType<(open: boolean) => void>;
315
+ };
316
+ showArrow: {
317
+ type: BooleanConstructor;
318
+ default: any;
319
+ };
320
+ onPopupScroll: PropType<(e: UIEvent) => void>;
321
+ menuItemSelectedIcon: VueTypeValidableDef<any>;
322
+ listItemHeight: NumberConstructor;
323
+ inputValue: StringConstructor;
324
+ autoClearSearchValue: {
325
+ type: BooleanConstructor;
326
+ default: any;
327
+ };
328
+ filterOption: {
329
+ type: PropType<boolean | FilterFunc<DefaultOptionType>>;
330
+ default: any;
331
+ };
332
+ filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
333
+ optionFilterProp: StringConstructor;
334
+ optionLabelProp: StringConstructor;
335
+ defaultActiveFirstOption: {
336
+ type: BooleanConstructor;
337
+ default: any;
338
+ };
339
+ labelInValue: {
340
+ type: BooleanConstructor;
341
+ default: any;
342
+ };
343
+ }>>, "mode" | "suffixIcon">>>> & {
344
+ onChange?: ((value: SelectValue) => any) | undefined;
345
+ }, {}, {}>;
346
+ export default _default;
347
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
348
+ type __VLS_TypePropsToOption<T> = {
349
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
350
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
351
+ } : {
352
+ type: PropType<T[K]>;
353
+ required: true;
354
+ };
355
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("@aplus-frontend/antdv");require("../popover-select/index.vue.js");require("../../../config-provider/index.js");const h=require("../../../config-provider/hooks/use-global-config.js"),g=require("../popover-select/index.vue2.js"),v=e.defineComponent({__name:"index",props:{value:{},defaultValue:{},notFoundContent:{},itemIcon:{},size:{},bordered:{type:Boolean},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},"onUpdate:value":{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},options:{},showAction:{},onDeselect:{},loading:{type:Boolean},placeholder:{},clearIcon:{},allowClear:{type:Boolean},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},showArrow:{type:Boolean},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean},labelInValue:{type:Boolean}},emits:["change"],setup(u,{emit:i}){const p=h.useGlobalConfig("uiMode","aplus"),a=u,o=e.ref(a.value),l=e.ref(!1),s=i,d=n=>{o.value=n},c=n=>{n&&(l.value=!1)};return e.watchEffect(()=>{s("change",o.value)}),(n,t)=>(e.openBlock(),e.createBlock(e.unref(m.Select),{value:o.value,style:e.normalizeStyle(n.$attrs.style),bordered:e.unref(p)==="admin",mode:"tags",showArrow:!0,open:l.value,onDropdownVisibleChange:t[0]||(t[0]=r=>l.value=r),onChange:t[1]||(t[1]=r=>o.value=r),maxTagCount:a.maxTagCount,placeholder:a.placeholder},{suffixIcon:e.withCtx(()=>[e.createVNode(g.default,{value:o.value,onSubmit:d,onOpenChange:c},null,8,["value"])]),_:1},8,["value","style","bordered","open","maxTagCount","placeholder"]))}});exports.default=v;
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../../../_virtual/_plugin-vue_export-helper.js"),n={},o={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",width:"16",height:"16",viewBox:"0 0 16 16"},l=e.createElementVNode("g",null,[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M5.248374744964599,6C4.7452713449646,6,4.465567744964599,6.581959,4.7798537449645995,6.974817L7.5314787449646,10.414349999999999C7.7716787449646,10.714590000000001,8.2283287449646,10.714590000000001,8.4685187449646,10.414349999999999L11.2201487449646,6.974817C11.5344287449646,6.581959,11.254728744964599,6,10.751628744964599,6L5.248374744964599,6Z",fill:"currentcolor","fill-opacity":"1"})])],-1),r=[l];function c(s,u){return e.openBlock(),e.createElementBlock("svg",o,r)}const i=t.default(n,[["render",c]]);exports.default=i;
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Q=require("vue"),e=require("../../../../_virtual/_plugin-vue_export-helper.js"),l={},t={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",width:"16",height:"16",viewBox:"0 0 16 16"},n=Q.createElementVNode("g",null,[Q.createElementVNode("g",null,[Q.createElementVNode("path",{d:"M3,4.5L13,4.5Q13.0492,4.5,13.0975,4.509607Q13.1458,4.519215,13.1913,4.53806Q13.2368,4.556906,13.2778,4.584265Q13.3187,4.611625,13.3536,4.646447Q13.3884,4.681269,13.4157,4.722215Q13.4431,4.763161,13.4619,4.808658Q13.4808,4.854155,13.4904,4.9024549Q13.5,4.9507543,13.5,5Q13.5,5.0492457,13.4904,5.0975451Q13.4808,5.145845,13.4619,5.191342Q13.4431,5.236839,13.4157,5.277785Q13.3884,5.318731,13.3536,5.353553Q13.3187,5.388375,13.2778,5.415735Q13.2368,5.443094,13.1913,5.46194Q13.1458,5.480785,13.0975,5.490393Q13.0492,5.5,13,5.5L3,5.5Q2.9507543,5.5,2.9024549,5.490393Q2.854155,5.480785,2.808658,5.46194Q2.763161,5.443094,2.722215,5.415735Q2.681269,5.388375,2.646447,5.353553Q2.611625,5.318731,2.584265,5.277785Q2.556906,5.236839,2.5380599999999998,5.191342Q2.519215,5.145845,2.509607,5.0975451Q2.5,5.0492457,2.5,5Q2.5,4.9507543,2.509607,4.9024549Q2.519215,4.854155,2.5380599999999998,4.808658Q2.556906,4.763161,2.584265,4.722215Q2.611625,4.681269,2.646447,4.646447Q2.681269,4.611625,2.722215,4.584265Q2.763161,4.556906,2.808658,4.53806Q2.854155,4.519215,2.9024549,4.509607Q2.9507543,4.5,3,4.5Z","fill-rule":"evenodd",fill:"#BFBFBF","fill-opacity":"1"})]),Q.createElementVNode("g",null,[Q.createElementVNode("path",{d:"M3,7.5L13,7.5Q13.0492,7.5,13.0975,7.509607Q13.1458,7.519215,13.1913,7.53806Q13.2368,7.556906,13.2778,7.584265Q13.3187,7.611625,13.3536,7.646447Q13.3884,7.681269,13.4157,7.722215Q13.4431,7.763161,13.4619,7.808658Q13.4808,7.854155,13.4904,7.9024549Q13.5,7.9507543,13.5,8Q13.5,8.0492457,13.4904,8.0975451Q13.4808,8.145845,13.4619,8.191342Q13.4431,8.236839,13.4157,8.277785Q13.3884,8.318731,13.3536,8.353553Q13.3187,8.388375,13.2778,8.415735Q13.2368,8.443094,13.1913,8.46194Q13.1458,8.480785000000001,13.0975,8.490393Q13.0492,8.5,13,8.5L3,8.5Q2.9507543,8.5,2.9024549,8.490393Q2.854155,8.480785000000001,2.808658,8.46194Q2.763161,8.443094,2.722215,8.415735Q2.681269,8.388375,2.646447,8.353553Q2.611625,8.318731,2.584265,8.277785Q2.556906,8.236839,2.5380599999999998,8.191342Q2.519215,8.145845,2.509607,8.0975451Q2.5,8.0492457,2.5,8Q2.5,7.9507543,2.509607,7.9024549Q2.519215,7.854155,2.5380599999999998,7.808658Q2.556906,7.763161,2.584265,7.722215Q2.611625,7.681269,2.646447,7.646447Q2.681269,7.611625,2.722215,7.584265Q2.763161,7.556906,2.808658,7.53806Q2.854155,7.519215,2.9024549,7.509607Q2.9507543,7.5,3,7.5Z","fill-rule":"evenodd",fill:"#BFBFBF","fill-opacity":"1"})]),Q.createElementVNode("g",null,[Q.createElementVNode("path",{d:"M3,10.5L8,10.5Q8.04925,10.5,8.09755,10.509607Q8.14584,10.519214999999999,8.19134,10.53806Q8.23684,10.556906,8.27778,10.584265Q8.31873,10.611625,8.35355,10.646447Q8.38837,10.681269,8.41573,10.722215Q8.44309,10.763161,8.46194,10.808658Q8.48078,10.854155,8.49039,10.9024549Q8.5,10.9507543,8.5,11Q8.5,11.0492457,8.49039,11.0975451Q8.48078,11.145845,8.46194,11.191342Q8.44309,11.236839,8.41573,11.277785Q8.38837,11.318731,8.35355,11.353553Q8.31873,11.388375,8.27778,11.415735Q8.23684,11.443094,8.19134,11.46194Q8.14584,11.480785000000001,8.09755,11.490393Q8.04925,11.5,8,11.5L3,11.5Q2.9507543,11.5,2.9024549,11.490393Q2.854155,11.480785000000001,2.808658,11.46194Q2.763161,11.443094,2.722215,11.415735Q2.681269,11.388375,2.646447,11.353553Q2.611625,11.318731,2.584265,11.277785Q2.556906,11.236839,2.5380599999999998,11.191342Q2.519215,11.145845,2.509607,11.0975451Q2.5,11.0492457,2.5,11Q2.5,10.9507543,2.509607,10.9024549Q2.519215,10.854155,2.5380599999999998,10.808658Q2.556906,10.763161,2.584265,10.722215Q2.611625,10.681269,2.646447,10.646447Q2.681269,10.611625,2.722215,10.584265Q2.763161,10.556906,2.808658,10.53806Q2.854155,10.519214999999999,2.9024549,10.509607Q2.9507543,10.5,3,10.5Z","fill-rule":"evenodd",fill:"#BFBFBF","fill-opacity":"1"})])],-1),o=[n];function i(c,d){return Q.openBlock(),Q.createElementBlock("svg",t,o)}const r=e.default(l,[["render",i]]);exports.default=r;