@aplus-frontend/ui 0.6.8 → 6.10.0

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 (156) hide show
  1. package/es/index.mjs +187 -193
  2. package/es/src/ap-descriptions/formatter/index.d.ts +5 -0
  3. package/es/src/ap-descriptions/formatter/index.mjs +39 -38
  4. package/es/src/ap-descriptions/interface.d.ts +7 -1
  5. package/es/src/ap-field/rate/index.vue.d.ts +1 -1
  6. package/es/src/ap-form/interface.d.ts +6 -5
  7. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +42 -36
  8. package/es/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +5 -0
  9. package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +39 -0
  10. package/es/src/ap-grid/hooks/use-row-selection.mjs +57 -62
  11. package/es/src/ap-grid/utils/renderer.mjs +9 -9
  12. package/es/src/business/ap-label/ApLabel.d.ts +1 -1
  13. package/es/src/business/ap-label/index.d.ts +3 -3
  14. package/es/src/business/ap-view/ap-view.vue.d.ts +1 -0
  15. package/es/src/business/ap-view/ap-view.vue2.mjs +122 -118
  16. package/es/src/business/ap-view/index.d.ts +3 -0
  17. package/es/src/business/ap-view/interface.d.ts +4 -0
  18. package/es/src/business/hooks/usePageListApGrid.mjs +23 -30
  19. package/es/src/business/index.d.ts +0 -1
  20. package/es/src/business/index.mjs +42 -46
  21. package/es/src/index.d.ts +0 -1
  22. package/es/src/index.mjs +274 -281
  23. package/es/src/locale/lang/en.mjs +0 -7
  24. package/es/src/locale/lang/zh-cn.mjs +0 -7
  25. package/es/src/path-map.mjs +0 -2
  26. package/es/src/version.d.ts +1 -1
  27. package/es/src/version.mjs +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/src/ap-descriptions/formatter/index.d.ts +5 -0
  30. package/lib/src/ap-descriptions/formatter/index.js +1 -1
  31. package/lib/src/ap-descriptions/interface.d.ts +7 -1
  32. package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
  33. package/lib/src/ap-form/interface.d.ts +6 -5
  34. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  35. package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +5 -0
  36. package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -0
  37. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
  38. package/lib/src/ap-grid/utils/renderer.js +1 -1
  39. package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
  40. package/lib/src/business/ap-label/index.d.ts +3 -3
  41. package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -0
  42. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  43. package/lib/src/business/ap-view/index.d.ts +3 -0
  44. package/lib/src/business/ap-view/interface.d.ts +4 -0
  45. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  46. package/lib/src/business/index.d.ts +0 -1
  47. package/lib/src/business/index.js +1 -1
  48. package/lib/src/index.d.ts +0 -1
  49. package/lib/src/index.js +1 -1
  50. package/lib/src/locale/lang/en.js +1 -1
  51. package/lib/src/locale/lang/zh-cn.js +1 -1
  52. package/lib/src/path-map.js +1 -1
  53. package/lib/src/version.d.ts +1 -1
  54. package/lib/src/version.js +1 -1
  55. package/package.json +5 -10
  56. package/theme/ap-form/index.css +16 -0
  57. package/theme/ap-form/search-form.css +16 -0
  58. package/theme/ap-form/search-form.less +16 -0
  59. package/theme/ap-grid/index.css +24 -0
  60. package/theme/ap-grid/index.less +8 -0
  61. package/theme/ap-table/ap-table.css +16 -0
  62. package/theme/ap-table-modal/index.css +16 -0
  63. package/theme/editable-table/index.css +16 -0
  64. package/theme/index.css +24 -0
  65. package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +0 -73
  66. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +0 -46
  67. package/es/src/ap-info-layout/ApInfoLayout.vue2.mjs +0 -4
  68. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +0 -29
  69. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs +0 -4
  70. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +0 -41
  71. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +0 -30
  72. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.mjs +0 -4
  73. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +0 -71
  74. package/es/src/ap-info-layout/index.d.ts +0 -3
  75. package/es/src/ap-info-layout/index.mjs +0 -2
  76. package/es/src/ap-info-layout/interface.d.ts +0 -10
  77. package/es/src/ap-info-layout/interface.mjs +0 -1
  78. package/es/src/ap-info-layout/style/css.d.ts +0 -0
  79. package/es/src/ap-info-layout/style/css.js +0 -1
  80. package/es/src/ap-info-layout/style/index.d.ts +0 -0
  81. package/es/src/ap-info-layout/style/index.js +0 -1
  82. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +0 -35
  83. package/es/src/business/ap-group-search/ap-group-search.vue.mjs +0 -4
  84. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +0 -202
  85. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +0 -14
  86. package/es/src/business/ap-group-search/extension-select/index.vue.mjs +0 -4
  87. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +0 -135
  88. package/es/src/business/ap-group-search/extension-select/style/css.d.ts +0 -0
  89. package/es/src/business/ap-group-search/extension-select/style/css.js +0 -1
  90. package/es/src/business/ap-group-search/extension-select/style/index.d.ts +0 -0
  91. package/es/src/business/ap-group-search/extension-select/style/index.js +0 -1
  92. package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +0 -3
  93. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +0 -28
  94. package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +0 -3
  95. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +0 -45
  96. package/es/src/business/ap-group-search/index.d.ts +0 -1536
  97. package/es/src/business/ap-group-search/index.mjs +0 -14
  98. package/es/src/business/ap-group-search/interface.d.ts +0 -11
  99. package/es/src/business/ap-group-search/interface.mjs +0 -1
  100. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +0 -424
  101. package/es/src/business/ap-group-search/popover-select/index.vue.mjs +0 -4
  102. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +0 -193
  103. package/es/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
  104. package/es/src/business/ap-group-search/popover-select/style/css.js +0 -1
  105. package/es/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
  106. package/es/src/business/ap-group-search/popover-select/style/index.js +0 -1
  107. package/es/src/business/ap-group-search/style/css.d.ts +0 -0
  108. package/es/src/business/ap-group-search/style/css.js +0 -1
  109. package/es/src/business/ap-group-search/style/index.d.ts +0 -0
  110. package/es/src/business/ap-group-search/style/index.js +0 -1
  111. package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +0 -73
  112. package/lib/src/ap-info-layout/ApInfoLayout.vue.js +0 -1
  113. package/lib/src/ap-info-layout/ApInfoLayout.vue2.js +0 -1
  114. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +0 -29
  115. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.js +0 -1
  116. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +0 -1
  117. package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +0 -30
  118. package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.js +0 -1
  119. package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.js +0 -1
  120. package/lib/src/ap-info-layout/index.d.ts +0 -3
  121. package/lib/src/ap-info-layout/index.js +0 -1
  122. package/lib/src/ap-info-layout/interface.d.ts +0 -10
  123. package/lib/src/ap-info-layout/interface.js +0 -1
  124. package/lib/src/ap-info-layout/style/css.cjs +0 -1
  125. package/lib/src/ap-info-layout/style/css.d.ts +0 -0
  126. package/lib/src/ap-info-layout/style/index.cjs +0 -1
  127. package/lib/src/ap-info-layout/style/index.d.ts +0 -0
  128. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +0 -35
  129. package/lib/src/business/ap-group-search/ap-group-search.vue.js +0 -1
  130. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +0 -1
  131. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +0 -14
  132. package/lib/src/business/ap-group-search/extension-select/index.vue.js +0 -1
  133. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +0 -1
  134. package/lib/src/business/ap-group-search/extension-select/style/css.cjs +0 -1
  135. package/lib/src/business/ap-group-search/extension-select/style/css.d.ts +0 -0
  136. package/lib/src/business/ap-group-search/extension-select/style/index.cjs +0 -1
  137. package/lib/src/business/ap-group-search/extension-select/style/index.d.ts +0 -0
  138. package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +0 -3
  139. package/lib/src/business/ap-group-search/images/icon-down.vue.js +0 -1
  140. package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +0 -3
  141. package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +0 -1
  142. package/lib/src/business/ap-group-search/index.d.ts +0 -1536
  143. package/lib/src/business/ap-group-search/index.js +0 -1
  144. package/lib/src/business/ap-group-search/interface.d.ts +0 -11
  145. package/lib/src/business/ap-group-search/interface.js +0 -1
  146. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +0 -424
  147. package/lib/src/business/ap-group-search/popover-select/index.vue.js +0 -1
  148. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +0 -2
  149. package/lib/src/business/ap-group-search/popover-select/style/css.cjs +0 -1
  150. package/lib/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
  151. package/lib/src/business/ap-group-search/popover-select/style/index.cjs +0 -1
  152. package/lib/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
  153. package/lib/src/business/ap-group-search/style/css.cjs +0 -1
  154. package/lib/src/business/ap-group-search/style/css.d.ts +0 -0
  155. package/lib/src/business/ap-group-search/style/index.cjs +0 -1
  156. package/lib/src/business/ap-group-search/style/index.d.ts +0 -0
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/utils");require("./ap-group-search.vue.js");require("./extension-select/index.vue.js");require("./popover-select/index.vue.js");require("./interface.js");const t=require("./ap-group-search.vue2.js"),r=require("./extension-select/index.vue2.js"),u=require("./popover-select/index.vue2.js"),i=e.withInstall(t.default),p=e.withInstall(r.default),n=e.withInstall(u.default);exports.ApExtensionSelect=p;exports.ApGroupSearch=i;exports.ApPopoverSelect=n;
@@ -1,11 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,424 +0,0 @@
1
- import { SelectProps } from '@aplus-frontend/antdv';
2
- import { SelectValue, DefaultOptionType, LabeledValue } from '@aplus-frontend/antdv/es/select';
3
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, CSSProperties, GlobalComponents, GlobalDirectives } from 'vue';
4
- import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
5
- import { ButtonSize } from '@aplus-frontend/antdv/es/button';
6
- import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
7
- import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
8
- import { RenderDOMFunc, DropdownRender, CustomTagProps } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
9
- import { AlignType } from '@aplus-frontend/antdv/es/vc-trigger/interface';
10
- type __VLS_Props = Omit<SelectProps, 'mode' | 'suffixIcon'> & {
11
- __parentRef: HTMLElement;
12
- };
13
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
14
- submit: (value: SelectValue) => any;
15
- "open-change": (value: boolean) => any;
16
- }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
17
- onSubmit?: ((value: SelectValue) => any) | undefined;
18
- "onOpen-change"?: ((value: boolean) => any) | undefined;
19
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
20
- selectRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
21
- value: {
22
- type: PropType<SelectValue>;
23
- default: SelectValue;
24
- };
25
- defaultValue: {
26
- type: PropType<SelectValue>;
27
- default: SelectValue;
28
- };
29
- notFoundContent: VueTypeValidableDef<any>;
30
- suffixIcon: VueTypeValidableDef<any>;
31
- itemIcon: VueTypeValidableDef<any>;
32
- size: {
33
- type: PropType<ButtonSize>;
34
- default: ButtonSize;
35
- };
36
- mode: {
37
- type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
38
- default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
39
- };
40
- bordered: {
41
- type: BooleanConstructor;
42
- default: boolean;
43
- };
44
- transitionName: StringConstructor;
45
- choiceTransitionName: {
46
- type: PropType<"">;
47
- default: "";
48
- };
49
- popupClassName: StringConstructor;
50
- dropdownClassName: StringConstructor;
51
- placement: {
52
- type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
53
- default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
54
- };
55
- status: {
56
- type: PropType<"" | "error" | "warning">;
57
- default: "" | "error" | "warning";
58
- };
59
- 'onUpdate:value': {
60
- type: PropType<(val: SelectValue) => void>;
61
- default: (val: SelectValue) => void;
62
- };
63
- children: PropType< VueNode[]>;
64
- listHeight: NumberConstructor;
65
- onMouseenter: PropType<(e: MouseEvent) => void>;
66
- onMouseleave: PropType<(e: MouseEvent) => void>;
67
- tabindex: NumberConstructor;
68
- onClick: PropType<(e: MouseEvent) => void>;
69
- onFocus: {
70
- type: PropType<(e: FocusEvent) => void>;
71
- };
72
- onBlur: {
73
- type: PropType<(e: FocusEvent) => void>;
74
- };
75
- onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
76
- onKeydown: PropType<(e: KeyboardEvent) => void>;
77
- onKeyup: PropType<(e: KeyboardEvent) => void>;
78
- onMousedown: PropType<(e: MouseEvent) => void>;
79
- onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
80
- open: {
81
- type: BooleanConstructor;
82
- default: any;
83
- };
84
- animation: StringConstructor;
85
- direction: {
86
- type: PropType<"rtl" | "ltr">;
87
- };
88
- disabled: {
89
- type: BooleanConstructor;
90
- default: any;
91
- };
92
- prefixCls: StringConstructor;
93
- id: StringConstructor;
94
- autofocus: BooleanConstructor;
95
- getPopupContainer: {
96
- type: PropType<RenderDOMFunc>;
97
- };
98
- virtual: {
99
- type: BooleanConstructor;
100
- default: any;
101
- };
102
- dropdownMatchSelectWidth: {
103
- type: PropType<number | boolean>;
104
- default: any;
105
- };
106
- options: PropType< DefaultOptionType[]>;
107
- showAction: {
108
- type: PropType<("click" | "focus")[]>;
109
- };
110
- onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
111
- loading: {
112
- type: BooleanConstructor;
113
- default: any;
114
- };
115
- placeholder: VueTypeValidableDef<any>;
116
- clearIcon: VueTypeValidableDef<any>;
117
- allowClear: {
118
- type: BooleanConstructor;
119
- default: any;
120
- };
121
- onSearch: PropType<(value: string) => void>;
122
- fieldNames: PropType<FieldNames>;
123
- dropdownStyle: {
124
- type: PropType<CSSProperties>;
125
- };
126
- dropdownRender: {
127
- type: PropType<DropdownRender>;
128
- };
129
- dropdownAlign: PropType<AlignType>;
130
- showSearch: {
131
- type: BooleanConstructor;
132
- default: any;
133
- };
134
- searchValue: StringConstructor;
135
- onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
136
- removeIcon: VueTypeValidableDef<any>;
137
- maxTagCount: {
138
- type: PropType<number | "responsive">;
139
- };
140
- maxTagTextLength: NumberConstructor;
141
- maxTagPlaceholder: VueTypeValidableDef<any>;
142
- tokenSeparators: {
143
- type: PropType<string[]>;
144
- };
145
- tagRender: {
146
- type: PropType<(props: CustomTagProps) => any>;
147
- };
148
- optionLabelRender: {
149
- type: PropType<(option: Record<string, any>) => any>;
150
- };
151
- onClear: PropType<() => void>;
152
- defaultOpen: {
153
- type: BooleanConstructor;
154
- default: any;
155
- };
156
- onDropdownVisibleChange: {
157
- type: PropType<(open: boolean) => void>;
158
- };
159
- showArrow: {
160
- type: BooleanConstructor;
161
- default: any;
162
- };
163
- onPopupScroll: PropType<(e: UIEvent) => void>;
164
- menuItemSelectedIcon: VueTypeValidableDef<any>;
165
- listItemHeight: NumberConstructor;
166
- inputValue: StringConstructor;
167
- autoClearSearchValue: {
168
- type: BooleanConstructor;
169
- default: any;
170
- };
171
- filterOption: {
172
- type: PropType<boolean | FilterFunc<DefaultOptionType>>;
173
- default: any;
174
- };
175
- filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
176
- optionFilterProp: StringConstructor;
177
- optionLabelProp: StringConstructor;
178
- defaultActiveFirstOption: {
179
- type: BooleanConstructor;
180
- default: any;
181
- };
182
- onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
183
- labelInValue: {
184
- type: BooleanConstructor;
185
- default: any;
186
- };
187
- }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
188
- size: ButtonSize;
189
- value: SelectValue;
190
- mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
191
- open: boolean;
192
- disabled: boolean;
193
- autofocus: boolean;
194
- virtual: boolean;
195
- dropdownMatchSelectWidth: number | boolean;
196
- status: "" | "error" | "warning";
197
- defaultValue: SelectValue;
198
- 'onUpdate:value': (val: SelectValue) => void;
199
- placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
200
- loading: boolean;
201
- bordered: boolean;
202
- allowClear: boolean;
203
- showSearch: boolean;
204
- choiceTransitionName: "";
205
- defaultOpen: boolean;
206
- showArrow: boolean;
207
- autoClearSearchValue: boolean;
208
- filterOption: boolean | FilterFunc<DefaultOptionType>;
209
- defaultActiveFirstOption: boolean;
210
- labelInValue: boolean;
211
- }, true, {}, CustomSlotsType<{
212
- notFoundContent: any;
213
- suffixIcon: any;
214
- itemIcon: any;
215
- removeIcon: any;
216
- clearIcon: any;
217
- dropdownRender: any;
218
- option: any;
219
- placeholder: any;
220
- tagRender: any;
221
- maxTagPlaceholder: any;
222
- optionLabel: any;
223
- default: any;
224
- }>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
225
- P: {};
226
- B: {};
227
- D: {};
228
- C: {};
229
- M: {};
230
- Defaults: {};
231
- }, Readonly< ExtractPropTypes<{
232
- value: {
233
- type: PropType<SelectValue>;
234
- default: SelectValue;
235
- };
236
- defaultValue: {
237
- type: PropType<SelectValue>;
238
- default: SelectValue;
239
- };
240
- notFoundContent: VueTypeValidableDef<any>;
241
- suffixIcon: VueTypeValidableDef<any>;
242
- itemIcon: VueTypeValidableDef<any>;
243
- size: {
244
- type: PropType<ButtonSize>;
245
- default: ButtonSize;
246
- };
247
- mode: {
248
- type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
249
- default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
250
- };
251
- bordered: {
252
- type: BooleanConstructor;
253
- default: boolean;
254
- };
255
- transitionName: StringConstructor;
256
- choiceTransitionName: {
257
- type: PropType<"">;
258
- default: "";
259
- };
260
- popupClassName: StringConstructor;
261
- dropdownClassName: StringConstructor;
262
- placement: {
263
- type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
264
- default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
265
- };
266
- status: {
267
- type: PropType<"" | "error" | "warning">;
268
- default: "" | "error" | "warning";
269
- };
270
- 'onUpdate:value': {
271
- type: PropType<(val: SelectValue) => void>;
272
- default: (val: SelectValue) => void;
273
- };
274
- children: PropType< VueNode[]>;
275
- listHeight: NumberConstructor;
276
- onMouseenter: PropType<(e: MouseEvent) => void>;
277
- onMouseleave: PropType<(e: MouseEvent) => void>;
278
- tabindex: NumberConstructor;
279
- onClick: PropType<(e: MouseEvent) => void>;
280
- onFocus: {
281
- type: PropType<(e: FocusEvent) => void>;
282
- };
283
- onBlur: {
284
- type: PropType<(e: FocusEvent) => void>;
285
- };
286
- onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
287
- onKeydown: PropType<(e: KeyboardEvent) => void>;
288
- onKeyup: PropType<(e: KeyboardEvent) => void>;
289
- onMousedown: PropType<(e: MouseEvent) => void>;
290
- onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
291
- open: {
292
- type: BooleanConstructor;
293
- default: any;
294
- };
295
- animation: StringConstructor;
296
- direction: {
297
- type: PropType<"rtl" | "ltr">;
298
- };
299
- disabled: {
300
- type: BooleanConstructor;
301
- default: any;
302
- };
303
- prefixCls: StringConstructor;
304
- id: StringConstructor;
305
- autofocus: BooleanConstructor;
306
- getPopupContainer: {
307
- type: PropType<RenderDOMFunc>;
308
- };
309
- virtual: {
310
- type: BooleanConstructor;
311
- default: any;
312
- };
313
- dropdownMatchSelectWidth: {
314
- type: PropType<number | boolean>;
315
- default: any;
316
- };
317
- options: PropType< DefaultOptionType[]>;
318
- showAction: {
319
- type: PropType<("click" | "focus")[]>;
320
- };
321
- onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
322
- loading: {
323
- type: BooleanConstructor;
324
- default: any;
325
- };
326
- placeholder: VueTypeValidableDef<any>;
327
- clearIcon: VueTypeValidableDef<any>;
328
- allowClear: {
329
- type: BooleanConstructor;
330
- default: any;
331
- };
332
- onSearch: PropType<(value: string) => void>;
333
- fieldNames: PropType<FieldNames>;
334
- dropdownStyle: {
335
- type: PropType<CSSProperties>;
336
- };
337
- dropdownRender: {
338
- type: PropType<DropdownRender>;
339
- };
340
- dropdownAlign: PropType<AlignType>;
341
- showSearch: {
342
- type: BooleanConstructor;
343
- default: any;
344
- };
345
- searchValue: StringConstructor;
346
- onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
347
- removeIcon: VueTypeValidableDef<any>;
348
- maxTagCount: {
349
- type: PropType<number | "responsive">;
350
- };
351
- maxTagTextLength: NumberConstructor;
352
- maxTagPlaceholder: VueTypeValidableDef<any>;
353
- tokenSeparators: {
354
- type: PropType<string[]>;
355
- };
356
- tagRender: {
357
- type: PropType<(props: CustomTagProps) => any>;
358
- };
359
- optionLabelRender: {
360
- type: PropType<(option: Record<string, any>) => any>;
361
- };
362
- onClear: PropType<() => void>;
363
- defaultOpen: {
364
- type: BooleanConstructor;
365
- default: any;
366
- };
367
- onDropdownVisibleChange: {
368
- type: PropType<(open: boolean) => void>;
369
- };
370
- showArrow: {
371
- type: BooleanConstructor;
372
- default: any;
373
- };
374
- onPopupScroll: PropType<(e: UIEvent) => void>;
375
- menuItemSelectedIcon: VueTypeValidableDef<any>;
376
- listItemHeight: NumberConstructor;
377
- inputValue: StringConstructor;
378
- autoClearSearchValue: {
379
- type: BooleanConstructor;
380
- default: any;
381
- };
382
- filterOption: {
383
- type: PropType<boolean | FilterFunc<DefaultOptionType>>;
384
- default: any;
385
- };
386
- filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
387
- optionFilterProp: StringConstructor;
388
- optionLabelProp: StringConstructor;
389
- defaultActiveFirstOption: {
390
- type: BooleanConstructor;
391
- default: any;
392
- };
393
- onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
394
- labelInValue: {
395
- type: BooleanConstructor;
396
- default: any;
397
- };
398
- }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
399
- size: ButtonSize;
400
- value: SelectValue;
401
- mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
402
- open: boolean;
403
- disabled: boolean;
404
- autofocus: boolean;
405
- virtual: boolean;
406
- dropdownMatchSelectWidth: number | boolean;
407
- status: "" | "error" | "warning";
408
- defaultValue: SelectValue;
409
- 'onUpdate:value': (val: SelectValue) => void;
410
- placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
411
- loading: boolean;
412
- bordered: boolean;
413
- allowClear: boolean;
414
- showSearch: boolean;
415
- choiceTransitionName: "";
416
- defaultOpen: boolean;
417
- showArrow: boolean;
418
- autoClearSearchValue: boolean;
419
- filterOption: boolean | FilterFunc<DefaultOptionType>;
420
- defaultActiveFirstOption: boolean;
421
- labelInValue: boolean;
422
- }> | null;
423
- }, HTMLDivElement>;
424
- export default _default;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");exports.default=e.default;
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const V=require("../images/icon-line-select.vue.js"),B=require("@aplus-frontend/utils"),b=require("../../../config-provider/hooks/use-locale.js"),x=require("../../../config-provider/hooks/use-global-config.js"),_=require("../../../config-provider/hooks/use-namespace.js"),k=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},onClickOption:{},labelInValue:{type:Boolean},__parentRef:{}},emits:["submit","open-change"],setup(f,{emit:m}){const{t:l}=b.useLocale(),p=x.useGlobalConfig("uiMode","aplus"),r=f,u=m,t=e.ref([]),s=e.ref(!1),c=e.ref();e.watchEffect(()=>{t.value=r.value});const h=o=>r.__parentRef||o,g=o=>{s.value=o,u("open-change",o)},i=()=>{s.value=!1},v=()=>{t.value=[]},C=o=>{t.value=o},y=async()=>{var o;(o=c.value)==null||o.blur(),i(),await B.wait(150),u("submit",t.value)},{b:S,e:w,em:a}=_.useNamespace("ap-popover-select");return(o,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(S)())},[e.createVNode(e.unref(n.Popover),{"overlay-class-name":e.unref(w)("popover"),"get-popup-container":h,trigger:"click",open:s.value,placement:"bottomLeft",onOpenChange:g},{content:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a)("popover","content"))},[e.createVNode(e.unref(n.Select),e.mergeProps({...r},{ref_key:"selectRef",ref:c,mode:"tags",bordered:!1,value:t.value,placeholder:e.unref(l)("ap.apGroupSearch.tokenSeparatorsPlaceholder"),"token-separators":[",",`
2
- `,"\r"],"max-tag-count":200,open:!1,onChange:d[0]||(d[0]=N=>C(N))}),null,16,["value","placeholder"])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)==="aplus"?e.unref(a)("popover","footer"):e.unref(a)("popover","footer--admin"))},[e.createVNode(e.unref(n.Button),{size:"small",onClick:i},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("ap.apGroupSearch.close")),1)]),_:1}),e.createVNode(e.unref(n.Space),null,{default:e.withCtx(()=>[e.createVNode(e.unref(n.Button),{size:"small",onClick:v},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("ap.apGroupSearch.clear")),1)]),_:1}),e.createVNode(e.unref(n.Button),{size:"small",type:"primary",onClick:y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("ap.apGroupSearch.confirm")),1)]),_:1})]),_:1})],2)])]),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(p)==="aplus"?e.unref(a)("popover","trigger"):e.unref(a)("popover","trigger--admin"))},[e.createVNode(V.default)],2)]),_:1},8,["overlay-class-name","open"])],2))}});exports.default=k;
@@ -1 +0,0 @@
1
- import '@aplus-frontend/ui/theme/ap-group-search/ap-popover-select.css';
@@ -1 +0,0 @@
1
- import '@aplus-frontend/ui/theme/ap-group-search/ap-popover-select.less';
@@ -1 +0,0 @@
1
- import '@aplus-frontend/ui/theme/ap-group-search/ap-group-search.css';
File without changes
@@ -1 +0,0 @@
1
- import '@aplus-frontend/ui/theme/ap-group-search/ap-group-search.less';
File without changes