@aplus-frontend/ui 0.2.7 → 0.2.9

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 (79) hide show
  1. package/es/index.mjs +151 -147
  2. package/es/src/ap-field/switch/index.vue.mjs +38 -37
  3. package/es/src/ap-form/drawer-form/index.vue.mjs +104 -99
  4. package/es/src/ap-modal/utils/createModal.mjs +14 -13
  5. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +53 -0
  6. package/es/src/business/ap-group-search/ap-group-search.vue.mjs +4 -0
  7. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +191 -0
  8. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +355 -0
  9. package/es/src/business/ap-group-search/extension-select/index.vue.mjs +4 -0
  10. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +124 -0
  11. package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +3 -0
  12. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +28 -0
  13. package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +3 -0
  14. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +45 -0
  15. package/es/src/business/ap-group-search/index.d.ts +2830 -0
  16. package/es/src/business/ap-group-search/index.mjs +14 -0
  17. package/es/src/business/ap-group-search/interface.d.ts +11 -0
  18. package/es/src/business/ap-group-search/interface.mjs +1 -0
  19. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +357 -0
  20. package/es/src/business/ap-group-search/popover-select/index.vue.mjs +4 -0
  21. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +192 -0
  22. package/es/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
  23. package/es/src/business/ap-group-search/popover-select/style/css.js +1 -0
  24. package/es/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
  25. package/es/src/business/ap-group-search/popover-select/style/index.js +1 -0
  26. package/es/src/business/ap-group-search/style/css.d.ts +0 -0
  27. package/es/src/business/ap-group-search/style/css.js +1 -0
  28. package/es/src/business/ap-group-search/style/index.d.ts +0 -0
  29. package/es/src/business/ap-group-search/style/index.js +1 -0
  30. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +24 -23
  31. package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +17 -11
  32. package/es/src/business/index.d.ts +1 -0
  33. package/es/src/business/index.mjs +30 -26
  34. package/es/src/check-card/index.vue2.mjs +43 -43
  35. package/es/src/index.mjs +33 -29
  36. package/es/src/locale/lang/en.mjs +8 -0
  37. package/es/src/locale/lang/zh-cn.mjs +8 -0
  38. package/es/src/path-map.mjs +3 -1
  39. package/es/src/work-order-modal/createWorkOrder.mjs +13 -12
  40. package/lib/index.js +1 -1
  41. package/lib/src/ap-field/switch/index.vue.js +1 -1
  42. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  43. package/lib/src/ap-modal/utils/createModal.js +1 -1
  44. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +53 -0
  45. package/lib/src/business/ap-group-search/ap-group-search.vue.js +1 -0
  46. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -0
  47. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +355 -0
  48. package/lib/src/business/ap-group-search/extension-select/index.vue.js +1 -0
  49. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -0
  50. package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +3 -0
  51. package/lib/src/business/ap-group-search/images/icon-down.vue.js +1 -0
  52. package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +3 -0
  53. package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +1 -0
  54. package/lib/src/business/ap-group-search/index.d.ts +2830 -0
  55. package/lib/src/business/ap-group-search/index.js +1 -0
  56. package/lib/src/business/ap-group-search/interface.d.ts +11 -0
  57. package/lib/src/business/ap-group-search/interface.js +1 -0
  58. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +357 -0
  59. package/lib/src/business/ap-group-search/popover-select/index.vue.js +1 -0
  60. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -0
  61. package/lib/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
  62. package/lib/src/business/ap-group-search/popover-select/style/css.js +1 -0
  63. package/lib/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
  64. package/lib/src/business/ap-group-search/popover-select/style/index.js +1 -0
  65. package/lib/src/business/ap-group-search/style/css.d.ts +0 -0
  66. package/lib/src/business/ap-group-search/style/css.js +1 -0
  67. package/lib/src/business/ap-group-search/style/index.d.ts +0 -0
  68. package/lib/src/business/ap-group-search/style/index.js +1 -0
  69. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
  70. package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -1
  71. package/lib/src/business/index.d.ts +1 -0
  72. package/lib/src/business/index.js +1 -1
  73. package/lib/src/check-card/index.vue2.js +1 -1
  74. package/lib/src/index.js +1 -1
  75. package/lib/src/locale/lang/en.js +1 -1
  76. package/lib/src/locale/lang/zh-cn.js +1 -1
  77. package/lib/src/path-map.js +1 -1
  78. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  79. package/package.json +6 -5
@@ -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 { CSSProperties } 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?: CSSProperties;
11
+ };
@@ -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,4 @@
1
+ import f from "./index.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -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
+ };
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/src/ap-group-search/ap-group-search.css';
@@ -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';
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/src/ap-group-search/ap-group-search.less';
@@ -1,12 +1,12 @@
1
- import { ref as T, defineComponent as g, h as r, render as u, onUnmounted as C } from "vue";
1
+ import { ref as T, defineComponent as g, h as r, render as d, onUnmounted as C } from "vue";
2
2
  import "../table-modal.vue.mjs";
3
3
  import "../../../index.mjs";
4
4
  import { omit as y } from "lodash-unified";
5
5
  import { ConfigProvider as A, globalConfigCached as h } from "../../../config-provider/config-provider.mjs";
6
6
  import I from "../table-modal.vue2.mjs";
7
- function E(l) {
7
+ function x(l) {
8
8
  let n = !0;
9
- const s = document.body, t = T(), { destroyOnUnmounted: i = !0 } = l, a = document.createElement("div"), m = () => {
9
+ const u = document.body, o = T(), { destroyOnUnmounted: i = !0 } = l, a = document.createElement("div"), m = () => {
10
10
  const e = g({
11
11
  setup() {
12
12
  return () => r(
@@ -14,45 +14,46 @@ function E(l) {
14
14
  { ...h.value },
15
15
  r(I, {
16
16
  ...y(l, "destroyOnUnmounted"),
17
- ref: t
17
+ ref: o
18
18
  })
19
19
  );
20
20
  }
21
21
  });
22
- s.appendChild(a), u(r(e), a), n = !1;
23
- }, c = () => {
22
+ u.appendChild(a), d(r(e), a), n = !1;
23
+ }, s = () => {
24
24
  var e;
25
- (e = t.value) == null || e.close(), n || setTimeout(() => {
26
- u(null, a), s.removeChild(a), n = !0;
25
+ (e = o.value) == null || e.close(), n || setTimeout(() => {
26
+ var t;
27
+ d(null, a), (t = a.parentElement) == null || t.removeChild(a), n = !0;
27
28
  }, 400);
28
- }, f = async (e = [], o = {}) => {
29
- var d;
30
- return t.value || m(), (d = t.value) == null ? void 0 : d.open(e, o);
31
- }, p = () => {
29
+ }, p = async (e = [], t = {}) => {
30
+ var c;
31
+ return o.value || m(), (c = o.value) == null ? void 0 : c.open(e, t);
32
+ }, f = () => {
32
33
  var e;
33
- n || (e = t.value) == null || e.close();
34
+ n || (e = o.value) == null || e.close();
34
35
  }, v = () => {
35
- var e, o;
36
- (o = (e = t.value) == null ? void 0 : e.getApTableInstance()) == null || o.submit();
36
+ var e, t;
37
+ (t = (e = o.value) == null ? void 0 : e.getApTableInstance()) == null || t.submit();
37
38
  }, b = () => {
38
- var e, o;
39
- (o = (e = t.value) == null ? void 0 : e.getApTableInstance()) == null || o.reset();
39
+ var e, t;
40
+ (t = (e = o.value) == null ? void 0 : e.getApTableInstance()) == null || t.reset();
40
41
  };
41
42
  return C(() => {
42
- i && c();
43
+ i && s();
43
44
  }), {
44
- openModal: f,
45
- closeModal: p,
46
- destroy: c,
45
+ openModal: p,
46
+ closeModal: f,
47
+ destroy: s,
47
48
  reloadApTableData: v,
48
49
  resetApTableData: b,
49
50
  getApTableInstance: () => {
50
51
  var e;
51
- return (e = t.value) == null ? void 0 : e.getApTableInstance();
52
+ return (e = o.value) == null ? void 0 : e.getApTableInstance();
52
53
  },
53
54
  isDestroyed: n
54
55
  };
55
56
  }
56
57
  export {
57
- E as useCreateTableModal
58
+ x as useCreateTableModal
58
59
  };