x-next 0.0.0-alpha.5 → 0.0.0-alpha.51

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 (200) hide show
  1. package/README.md +26 -1
  2. package/dist/_container/client-only.d.ts +4 -0
  3. package/dist/_container/parent-scroll-observer.d.ts +6 -0
  4. package/dist/_container/render-function.d.ts +14 -0
  5. package/dist/_container/resize-observer-2.d.ts +12 -0
  6. package/dist/_container/resize-observer.d.ts +6 -0
  7. package/dist/_container/utils.d.ts +12 -0
  8. package/dist/_hooks/_types.d.ts +4 -0
  9. package/dist/_hooks/use-children-components.d.ts +5 -0
  10. package/dist/_hooks/use-first-element.d.ts +5 -0
  11. package/dist/_hooks/use-index.d.ts +9 -0
  12. package/dist/_hooks/use-merge-state.d.ts +4 -0
  13. package/dist/_hooks/use-pick-slots.d.ts +2 -0
  14. package/dist/_hooks/use-popup-container.d.ts +6 -0
  15. package/dist/_hooks/use-popup-overflow-hidden.d.ts +6 -0
  16. package/dist/_hooks/use-resize-observer.d.ts +8 -0
  17. package/dist/_hooks/use-size.d.ts +7 -0
  18. package/dist/_hooks/use-state.d.ts +2 -0
  19. package/dist/_hooks/use-teleport-container.d.ts +10 -0
  20. package/dist/_props/constant.d.ts +4 -0
  21. package/dist/_props/types.d.ts +1 -0
  22. package/dist/_utils/click.d.ts +13 -0
  23. package/dist/_utils/config.d.ts +1 -1
  24. package/dist/_utils/constant.d.ts +17 -0
  25. package/dist/_utils/dom.d.ts +6 -0
  26. package/dist/_utils/is.d.ts +3 -0
  27. package/dist/_utils/omit.d.ts +2 -0
  28. package/dist/_utils/raf.d.ts +3 -0
  29. package/dist/_utils/throttle-by-raf.d.ts +4 -0
  30. package/dist/_utils/types.d.ts +1 -0
  31. package/dist/_utils/vue-eco.d.ts +14 -1
  32. package/dist/components/_components/icon-hover.vue.d.ts +38 -0
  33. package/dist/components/button/Button.d.ts +97 -0
  34. package/dist/components/button/index.d.ts +181 -0
  35. package/dist/{componets → components}/button/props.d.ts +4 -4
  36. package/dist/{componets/dialog/index.vue.d.ts → components/dialog/Dialog.d.ts} +13 -46
  37. package/dist/components/dialog/index.d.ts +334 -0
  38. package/dist/{componets → components}/dialog/props.d.ts +5 -5
  39. package/dist/components/drawer/index.d.ts +1474 -0
  40. package/dist/components/drawer/src/Drawer.vue.d.ts +744 -0
  41. package/dist/components/drawer/src/props.d.ts +75 -0
  42. package/dist/components/drawer/src/types.d.ts +1 -0
  43. package/dist/components/form/constants.d.ts +4 -0
  44. package/dist/components/form/form-item.d.ts +31 -0
  45. package/dist/components/form/form.d.ts +39 -0
  46. package/dist/components/form/hooks.d.ts +4 -0
  47. package/dist/components/form/types.d.ts +31 -0
  48. package/dist/components/image/ImagePreviewAction.d.ts +1354 -0
  49. package/dist/components/image/context.d.ts +6 -0
  50. package/dist/components/image/hooks/use-image-drag.d.ts +11 -0
  51. package/dist/components/image/hooks/use-image-load-status.d.ts +10 -0
  52. package/dist/components/image/image-footer.vue.d.ts +23 -0
  53. package/dist/components/image/interface.d.ts +45 -0
  54. package/dist/components/image/preview-arrow.vue.d.ts +122 -0
  55. package/dist/components/image/preview-toolbar.vue.d.ts +1388 -0
  56. package/dist/components/image/utils/get-fix-translate.d.ts +1 -0
  57. package/dist/components/image/utils/get-scale.d.ts +6 -0
  58. package/dist/components/image/utils/index.d.ts +1 -0
  59. package/dist/components/index.d.ts +17 -0
  60. package/dist/components/input/Input.d.ts +220 -0
  61. package/dist/components/input/index.d.ts +394 -0
  62. package/dist/components/input/props.d.ts +95 -0
  63. package/dist/components/input/utils.d.ts +6 -0
  64. package/dist/components/message/Message.d.ts +108 -0
  65. package/dist/{componets/message/index.vue.d.ts → components/message/MessageVue.vue.d.ts} +23 -48
  66. package/dist/components/message/index.d.ts +193 -0
  67. package/dist/components/message-box/index.d.ts +4 -0
  68. package/dist/components/message-box/warp.d.ts +2 -0
  69. package/dist/components/notification/Notification.d.ts +89 -0
  70. package/dist/components/notification/index.d.ts +166 -0
  71. package/dist/components/popconfirm/index.d.ts +193 -0
  72. package/dist/components/popconfirm/src/Popconfirm.d.ts +104 -0
  73. package/dist/components/popconfirm/src/popup.vue.d.ts +407 -0
  74. package/dist/components/popconfirm/src/props.d.ts +45 -0
  75. package/dist/components/popconfirm/src/types.d.ts +3 -0
  76. package/dist/components/popup/Popup.d.ts +188 -0
  77. package/dist/components/popup/index.d.ts +334 -0
  78. package/dist/components/popup/props.d.ts +83 -0
  79. package/dist/components/popup/use-props.d.ts +33 -0
  80. package/dist/components/popup/use.d.ts +3 -0
  81. package/dist/components/popup/warp.d.ts +2 -0
  82. package/dist/components/scrollbar/index.d.ts +291 -0
  83. package/dist/components/scrollbar/src/Scrollbar.vue.d.ts +134 -0
  84. package/dist/components/scrollbar/src/constant.d.ts +1 -0
  85. package/dist/components/scrollbar/src/scrollbar.d.ts +24 -0
  86. package/dist/components/scrollbar/src/thumb.d.ts +20 -0
  87. package/dist/components/scrollbar/src/thumb.vue.d.ts +47 -0
  88. package/dist/components/scrollbar/src/types.d.ts +18 -0
  89. package/dist/{componets/space/index.d.ts → components/space/Space.d.ts} +1 -1
  90. package/dist/components/space/index.d.ts +82 -0
  91. package/dist/components/tabs/TabPane.vue.d.ts +78 -0
  92. package/dist/components/tabs/Tabs.d.ts +349 -0
  93. package/dist/components/tabs/context.d.ts +11 -0
  94. package/dist/components/tabs/index.d.ts +400 -0
  95. package/dist/components/tabs/interface.d.ts +12 -0
  96. package/dist/components/tabs/tabs-button.d.ts +43 -0
  97. package/dist/components/tabs/tabs-nav-ink.vue.d.ts +36 -0
  98. package/dist/components/tabs/tabs-nav.d.ts +110 -0
  99. package/dist/components/tabs/tabs-tab.vue.d.ts +129 -0
  100. package/dist/components/tabs/utils.d.ts +13 -0
  101. package/dist/components/tag/Tag.vue.d.ts +375 -0
  102. package/dist/components/tag/index.d.ts +519 -0
  103. package/dist/components/tag/interface.d.ts +49 -0
  104. package/dist/components/timeline/index.d.ts +58 -0
  105. package/dist/components/timeline/src/Timeline.d.ts +24 -0
  106. package/dist/components/timeline/src/TimelineItem.d.ts +12 -0
  107. package/dist/components/timeline/src/context.d.ts +12 -0
  108. package/dist/components/timeline/src/props.d.ts +31 -0
  109. package/dist/components/timeline/src/types.d.ts +9 -0
  110. package/dist/components/timeline-item/index.d.ts +34 -0
  111. package/dist/components/tooltip/Tooltip.vue.d.ts +760 -0
  112. package/dist/components/tooltip/index.d.ts +1317 -0
  113. package/dist/components/trend-chart/components/TrendChart.d.ts +277 -0
  114. package/dist/components/trend-chart/components/trend-chart-curve.d.ts +111 -0
  115. package/dist/components/trend-chart/components/trend-chart-grid.d.ts +55 -0
  116. package/dist/components/trend-chart/components/trend-chart-labels.d.ts +22 -0
  117. package/dist/components/trend-chart/helpers/genPath.d.ts +8 -0
  118. package/dist/components/trend-chart/helpers/genPoints.d.ts +3 -0
  119. package/dist/components/trend-chart/helpers/getPadding.d.ts +7 -0
  120. package/dist/components/trend-chart/helpers/validatePadding.d.ts +2 -0
  121. package/dist/components/trend-chart/index.d.ts +535 -0
  122. package/dist/components/trend-chart/props.d.ts +203 -0
  123. package/dist/components/trend-chart/themes.d.ts +128 -0
  124. package/dist/{componets/trend-chart → components/trend-chart.bak}/components/trend-chart-curve.d.ts +2 -5
  125. package/dist/{componets/trend-chart → components/trend-chart.bak}/components/trend-chart.d.ts +19 -15
  126. package/dist/components/trend-chart.bak/index.d.ts +530 -0
  127. package/dist/{componets/trend-chart → components/trend-chart.bak}/props.d.ts +10 -5
  128. package/dist/components/trend-chart.bak/themes.d.ts +152 -0
  129. package/dist/components/trigger/index.d.ts +487 -0
  130. package/dist/components/trigger/src/_trigger.d.ts +217 -0
  131. package/dist/components/trigger/src/constant.d.ts +8 -0
  132. package/dist/components/trigger/src/trigger.d.ts +288 -0
  133. package/dist/components/trigger/src/utils.d.ts +50 -0
  134. package/dist/components/trigger-v2/context.d.ts +8 -0
  135. package/dist/components/trigger-v2/index.d.ts +562 -0
  136. package/dist/components/trigger-v2/interface.d.ts +40 -0
  137. package/dist/components/trigger-v2/trigger.d.ts +627 -0
  138. package/dist/components/trigger-v2/utils.d.ts +51 -0
  139. package/dist/directives/clipboard/cache.d.ts +8 -0
  140. package/dist/directives/clipboard/clipboard.d.ts +18 -0
  141. package/dist/directives/clipboard/convert.d.ts +3 -0
  142. package/dist/directives/clipboard/index.d.ts +3 -0
  143. package/dist/directives/clipboard/plugin.d.ts +2 -0
  144. package/dist/directives/clipboard/textarea.d.ts +3 -0
  145. package/dist/icons/{default/exclamation-circle-fill.vue.d.ts → _self/down.d.ts} +4 -9
  146. package/dist/icons/{default/close-circle-fill.vue.d.ts → _self/full-screen.d.ts} +4 -9
  147. package/dist/icons/{animation/animation-loading.vue.d.ts → _self/left.d.ts} +4 -9
  148. package/dist/icons/{default/check-circle-fill.vue.d.ts → _self/next.d.ts} +4 -9
  149. package/dist/icons/_self/original-size.d.ts +50 -0
  150. package/dist/icons/_self/plus.d.ts +50 -0
  151. package/dist/icons/_self/prev.d.ts +50 -0
  152. package/dist/icons/_self/right.d.ts +50 -0
  153. package/dist/icons/_self/rotate-left.d.ts +50 -0
  154. package/dist/icons/_self/rotate-right.d.ts +50 -0
  155. package/dist/icons/_self/up.d.ts +50 -0
  156. package/dist/icons/_self/zoom-in.d.ts +50 -0
  157. package/dist/icons/_self/zoom-out.d.ts +50 -0
  158. package/dist/icons/animation/animation-loading.d.ts +50 -0
  159. package/dist/icons/default/check-circle-fill.d.ts +50 -0
  160. package/dist/icons/default/close-circle-fill.d.ts +50 -0
  161. package/dist/icons/default/close.d.ts +50 -0
  162. package/dist/icons/default/exclamation-circle-fill.d.ts +50 -0
  163. package/dist/icons/default/info-circle-fill.d.ts +50 -0
  164. package/dist/icons/default/left.d.ts +50 -0
  165. package/dist/icons/default/logo-simple.d.ts +50 -0
  166. package/dist/icons/default/minus-circle-fill.d.ts +50 -0
  167. package/dist/icons/default/right.d.ts +50 -0
  168. package/dist/icons/icon.d.ts +51 -0
  169. package/dist/icons/index.d.ts +11 -7
  170. package/dist/index.d.ts +13 -0
  171. package/dist/index.es.js +7265 -1062
  172. package/dist/index.umd.js +1 -1
  173. package/dist/style.css +1 -1
  174. package/dist/types.d.ts +26 -0
  175. package/package.json +25 -11
  176. package/volar.d.ts +27 -0
  177. package/dist/_utils/icon.d.ts +0 -59
  178. package/dist/componets/button/index.vue.d.ts +0 -162
  179. package/dist/componets/message-box/warp.d.ts +0 -2
  180. package/dist/componets/notification/index.vue.d.ts +0 -160
  181. package/dist/componets/trend-chart/index.d.ts +0 -2
  182. package/dist/icons/default/info-circle-fill.vue.d.ts +0 -55
  183. package/dist/icons/default/minus-circle-fill.vue.d.ts +0 -55
  184. package/dist/ui.d.ts +0 -5
  185. /package/dist/{componets → components}/dialog/use-props.d.ts +0 -0
  186. /package/dist/{componets → components}/dialog/use.d.ts +0 -0
  187. /package/dist/{componets → components}/dialog/warp.d.ts +0 -0
  188. /package/dist/{componets → components}/message/props.d.ts +0 -0
  189. /package/dist/{componets → components}/message/warp.d.ts +0 -0
  190. /package/dist/{componets/message-box/index.d.ts → components/message-box/MessageBox.d.ts} +0 -0
  191. /package/dist/{componets → components}/message-box/props.d.ts +0 -0
  192. /package/dist/{componets → components}/notification/props.d.ts +0 -0
  193. /package/dist/{componets → components}/notification/warp.d.ts +0 -0
  194. /package/dist/{componets → components}/tag-cloud/index.d.ts +0 -0
  195. /package/dist/{componets/trend-chart → components/trend-chart.bak}/components/trend-chart-grid.d.ts +0 -0
  196. /package/dist/{componets/trend-chart → components/trend-chart.bak}/components/trend-chart-labels.d.ts +0 -0
  197. /package/dist/{componets/trend-chart → components/trend-chart.bak}/helpers/genPath.d.ts +0 -0
  198. /package/dist/{componets/trend-chart → components/trend-chart.bak}/helpers/genPoints.d.ts +0 -0
  199. /package/dist/{componets/trend-chart → components/trend-chart.bak}/helpers/getPadding.d.ts +0 -0
  200. /package/dist/{componets/trend-chart → components/trend-chart.bak}/helpers/validatePadding.d.ts +0 -0
@@ -0,0 +1,627 @@
1
+ import { PropType, CSSProperties } from 'vue';
2
+ import { TriggerEvent, TriggerPosition } from '../../_props/constant';
3
+ import { TriggerPopupTranslate } from './interface';
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ /**
6
+ * @zh 弹出框是否可见
7
+ * @en Whether the popup is visible
8
+ * @vModel
9
+ */
10
+ popupVisible: {
11
+ type: BooleanConstructor;
12
+ default: undefined;
13
+ };
14
+ /**
15
+ * @zh 弹出框默认是否可见(非受控模式)
16
+ * @en Whether the popup is visible by default (uncontrolled mode)
17
+ */
18
+ defaultPopupVisible: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ /**
23
+ * @zh 触发方式
24
+ * @en Trigger method
25
+ * @values 'hover','click','focus','contextMenu'
26
+ */
27
+ trigger: {
28
+ type: PropType<TriggerEvent | TriggerEvent[]>;
29
+ default: string;
30
+ };
31
+ /**
32
+ * @zh 弹出位置
33
+ * @en Popup position
34
+ * @values 'top','tl','tr','bottom','bl','br','left','lt','lb','right','rt','rb'
35
+ */
36
+ position: {
37
+ type: PropType<TriggerPosition>;
38
+ default: string;
39
+ };
40
+ /**
41
+ * @zh 触发器是否禁用
42
+ * @en Whether the trigger is disabled
43
+ */
44
+ disabled: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ /**
49
+ * @zh 弹出框的偏移量(弹出框距离触发器的偏移距离)
50
+ * @en The offset of the popup (the offset distance of the popup from the trigger)
51
+ */
52
+ popupOffset: {
53
+ type: NumberConstructor;
54
+ default: number;
55
+ };
56
+ /**
57
+ * @zh 弹出框的移动距离
58
+ * @en The moving distance of the popup
59
+ */
60
+ popupTranslate: {
61
+ type: PropType<TriggerPopupTranslate>;
62
+ };
63
+ /**
64
+ * @zh 弹出框是否显示箭头
65
+ * @en Whether the popup shows an arrow
66
+ */
67
+ showArrow: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ /**
72
+ * @zh 弹出框是否跟随鼠标
73
+ * @en Whether the popup follows the mouse
74
+ */
75
+ alignPoint: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ /**
80
+ * @zh 是否在移出触发器,并移入弹出框时保持弹出框显示
81
+ * @en Whether to keep the popup displayed when the trigger is moved out and moved into the popup
82
+ */
83
+ popupHoverStay: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ /**
88
+ * @zh 是否在触发器失去焦点时关闭弹出框
89
+ * @en Whether to close the popup when the trigger loses focus
90
+ */
91
+ blurToClose: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ /**
96
+ * @zh 是否在点击触发器时关闭弹出框
97
+ * @en Whether to close the popup when the trigger is clicked
98
+ */
99
+ clickToClose: {
100
+ type: BooleanConstructor;
101
+ default: boolean;
102
+ };
103
+ /**
104
+ * @zh 是否在点击外部区域时关闭弹出框
105
+ * @en Whether to close the popup when clicking on the outer area
106
+ */
107
+ clickOutsideToClose: {
108
+ type: BooleanConstructor;
109
+ default: boolean;
110
+ };
111
+ /**
112
+ * @zh 是否在关闭时卸载弹出框节点
113
+ * @en Whether to uninstall the popup node when closing
114
+ */
115
+ unmountOnClose: {
116
+ type: BooleanConstructor;
117
+ default: boolean;
118
+ };
119
+ /**
120
+ * @zh 弹出框内容的类名
121
+ * @en The class name of the popup content
122
+ */
123
+ contentClass: {
124
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
125
+ };
126
+ /**
127
+ * @zh 弹出框内容的样式
128
+ * @en The style of the popup content
129
+ */
130
+ contentStyle: {
131
+ type: PropType<CSSProperties>;
132
+ };
133
+ /**
134
+ * @zh 弹出框箭头的类名
135
+ * @en The class name of the popup arrow
136
+ */
137
+ arrowClass: {
138
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
139
+ };
140
+ /**
141
+ * @zh 弹出框箭头的样式
142
+ * @en The style of the popup arrow
143
+ */
144
+ arrowStyle: {
145
+ type: PropType<CSSProperties>;
146
+ };
147
+ /**
148
+ * @zh 弹出框的样式
149
+ * @en The style of the popup
150
+ */
151
+ popupStyle: {
152
+ type: PropType<CSSProperties>;
153
+ };
154
+ /**
155
+ * @zh 弹出动画的name
156
+ * @en The name of the popup animation
157
+ */
158
+ animationName: {
159
+ type: StringConstructor;
160
+ default: string;
161
+ };
162
+ /**
163
+ * @zh 弹出动画的持续时间
164
+ * @en The duration of the popup animation
165
+ */
166
+ duration: {
167
+ type: PropType<number | {
168
+ enter: number;
169
+ leave: number;
170
+ }>;
171
+ };
172
+ /**
173
+ * @zh mouseenter事件延时触发的时间(毫秒)
174
+ * @en Delay trigger time of mouseenter event (ms)
175
+ */
176
+ mouseEnterDelay: {
177
+ type: NumberConstructor;
178
+ default: number;
179
+ };
180
+ /**
181
+ * @zh mouseleave事件延时触发的时间(毫秒)
182
+ * @en Delay trigger time of mouseleave event (ms)
183
+ */
184
+ mouseLeaveDelay: {
185
+ type: NumberConstructor;
186
+ default: number;
187
+ };
188
+ /**
189
+ * @zh focus事件延时触发的时间(毫秒)
190
+ * @en Delay trigger time of focus event (ms)
191
+ */
192
+ focusDelay: {
193
+ type: NumberConstructor;
194
+ default: number;
195
+ };
196
+ /**
197
+ * @zh 是否将弹出框宽度设置为触发器宽度
198
+ * @en Whether to set the width of the popup to the width of the trigger
199
+ */
200
+ autoFitPopupWidth: {
201
+ type: BooleanConstructor;
202
+ default: boolean;
203
+ };
204
+ /**
205
+ * @zh 是否将弹出框的最小宽度设置为触发器宽度
206
+ * @en Whether to set the minimum width of the popup to the trigger width
207
+ */
208
+ autoFitPopupMinWidth: {
209
+ type: BooleanConstructor;
210
+ default: boolean;
211
+ };
212
+ /**
213
+ * @zh 当触发器的尺寸发生变化时,是否重新计算弹出框位置
214
+ * @en When the size of the trigger changes, whether to recalculate the position of the popup
215
+ */
216
+ autoFixPosition: {
217
+ type: BooleanConstructor;
218
+ default: boolean;
219
+ };
220
+ /**
221
+ * @zh 弹出框的挂载容器
222
+ * @en Mount container for popup
223
+ */
224
+ popupContainer: {
225
+ type: PropType<string | HTMLElement>;
226
+ };
227
+ /**
228
+ * @zh 是否在容器滚动时更新弹出框的位置
229
+ * @us Whether to update the position of the popup when the container is scrolled
230
+ */
231
+ updateAtScroll: {
232
+ type: BooleanConstructor;
233
+ default: boolean;
234
+ };
235
+ autoFitTransformOrigin: {
236
+ type: BooleanConstructor;
237
+ default: boolean;
238
+ };
239
+ hideEmpty: {
240
+ type: BooleanConstructor;
241
+ default: boolean;
242
+ };
243
+ openedClass: {
244
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
245
+ };
246
+ /**
247
+ * @zh 是否自动调整弹出框位置,以适应窗口大小
248
+ * @en Whether to automatically adjust the position of the popup to fit the window size
249
+ */
250
+ autoFitPosition: {
251
+ type: BooleanConstructor;
252
+ default: boolean;
253
+ };
254
+ /**
255
+ * @zh 是否挂载在 `body` 元素下
256
+ * @en Whether to mount under the `body` element
257
+ */
258
+ renderToBody: {
259
+ type: BooleanConstructor;
260
+ default: boolean;
261
+ };
262
+ /**
263
+ * @zh 是否阻止弹出层中的元素点击时获取焦点
264
+ * @en Whether to prevent elements in the pop-up layer from gaining focus when clicked
265
+ */
266
+ preventFocus: {
267
+ type: BooleanConstructor;
268
+ default: boolean;
269
+ };
270
+ /**
271
+ * @zh 是否在滚动时关闭弹出框
272
+ * @en Whether to close the popover when scrolling
273
+ * @version 2.46.0
274
+ */
275
+ scrollToClose: {
276
+ type: BooleanConstructor;
277
+ default: boolean;
278
+ };
279
+ /**
280
+ * @zh 滚动阈值,当滚动距离超过该值时触发关闭
281
+ * @en Scroll threshold, trigger close when the scroll distance exceeds this value
282
+ */
283
+ scrollToCloseDistance: {
284
+ type: NumberConstructor;
285
+ default: number;
286
+ };
287
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
288
+ 'update:popupVisible': (visible: boolean) => true;
289
+ /**
290
+ * @zh 弹出框显示状态改变时触发
291
+ * @en Emitted when the status of the popup changes
292
+ * @param {boolean} visible
293
+ */
294
+ popupVisibleChange: (visible: boolean) => true;
295
+ /**
296
+ * @zh 弹出框显示后(动画结束)触发
297
+ * @en Triggered after the trigger is shown (the animation ends)
298
+ * @version 2.18.0
299
+ */
300
+ show: () => true;
301
+ /**
302
+ * @zh 弹出框隐藏后(动画结束)触发
303
+ * @en Triggered after the popup is hidden (the animation ends)
304
+ * @version 2.18.0
305
+ */
306
+ hide: () => true;
307
+ resize: () => true;
308
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
309
+ /**
310
+ * @zh 弹出框是否可见
311
+ * @en Whether the popup is visible
312
+ * @vModel
313
+ */
314
+ popupVisible: {
315
+ type: BooleanConstructor;
316
+ default: undefined;
317
+ };
318
+ /**
319
+ * @zh 弹出框默认是否可见(非受控模式)
320
+ * @en Whether the popup is visible by default (uncontrolled mode)
321
+ */
322
+ defaultPopupVisible: {
323
+ type: BooleanConstructor;
324
+ default: boolean;
325
+ };
326
+ /**
327
+ * @zh 触发方式
328
+ * @en Trigger method
329
+ * @values 'hover','click','focus','contextMenu'
330
+ */
331
+ trigger: {
332
+ type: PropType<TriggerEvent | TriggerEvent[]>;
333
+ default: string;
334
+ };
335
+ /**
336
+ * @zh 弹出位置
337
+ * @en Popup position
338
+ * @values 'top','tl','tr','bottom','bl','br','left','lt','lb','right','rt','rb'
339
+ */
340
+ position: {
341
+ type: PropType<TriggerPosition>;
342
+ default: string;
343
+ };
344
+ /**
345
+ * @zh 触发器是否禁用
346
+ * @en Whether the trigger is disabled
347
+ */
348
+ disabled: {
349
+ type: BooleanConstructor;
350
+ default: boolean;
351
+ };
352
+ /**
353
+ * @zh 弹出框的偏移量(弹出框距离触发器的偏移距离)
354
+ * @en The offset of the popup (the offset distance of the popup from the trigger)
355
+ */
356
+ popupOffset: {
357
+ type: NumberConstructor;
358
+ default: number;
359
+ };
360
+ /**
361
+ * @zh 弹出框的移动距离
362
+ * @en The moving distance of the popup
363
+ */
364
+ popupTranslate: {
365
+ type: PropType<TriggerPopupTranslate>;
366
+ };
367
+ /**
368
+ * @zh 弹出框是否显示箭头
369
+ * @en Whether the popup shows an arrow
370
+ */
371
+ showArrow: {
372
+ type: BooleanConstructor;
373
+ default: boolean;
374
+ };
375
+ /**
376
+ * @zh 弹出框是否跟随鼠标
377
+ * @en Whether the popup follows the mouse
378
+ */
379
+ alignPoint: {
380
+ type: BooleanConstructor;
381
+ default: boolean;
382
+ };
383
+ /**
384
+ * @zh 是否在移出触发器,并移入弹出框时保持弹出框显示
385
+ * @en Whether to keep the popup displayed when the trigger is moved out and moved into the popup
386
+ */
387
+ popupHoverStay: {
388
+ type: BooleanConstructor;
389
+ default: boolean;
390
+ };
391
+ /**
392
+ * @zh 是否在触发器失去焦点时关闭弹出框
393
+ * @en Whether to close the popup when the trigger loses focus
394
+ */
395
+ blurToClose: {
396
+ type: BooleanConstructor;
397
+ default: boolean;
398
+ };
399
+ /**
400
+ * @zh 是否在点击触发器时关闭弹出框
401
+ * @en Whether to close the popup when the trigger is clicked
402
+ */
403
+ clickToClose: {
404
+ type: BooleanConstructor;
405
+ default: boolean;
406
+ };
407
+ /**
408
+ * @zh 是否在点击外部区域时关闭弹出框
409
+ * @en Whether to close the popup when clicking on the outer area
410
+ */
411
+ clickOutsideToClose: {
412
+ type: BooleanConstructor;
413
+ default: boolean;
414
+ };
415
+ /**
416
+ * @zh 是否在关闭时卸载弹出框节点
417
+ * @en Whether to uninstall the popup node when closing
418
+ */
419
+ unmountOnClose: {
420
+ type: BooleanConstructor;
421
+ default: boolean;
422
+ };
423
+ /**
424
+ * @zh 弹出框内容的类名
425
+ * @en The class name of the popup content
426
+ */
427
+ contentClass: {
428
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
429
+ };
430
+ /**
431
+ * @zh 弹出框内容的样式
432
+ * @en The style of the popup content
433
+ */
434
+ contentStyle: {
435
+ type: PropType<CSSProperties>;
436
+ };
437
+ /**
438
+ * @zh 弹出框箭头的类名
439
+ * @en The class name of the popup arrow
440
+ */
441
+ arrowClass: {
442
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
443
+ };
444
+ /**
445
+ * @zh 弹出框箭头的样式
446
+ * @en The style of the popup arrow
447
+ */
448
+ arrowStyle: {
449
+ type: PropType<CSSProperties>;
450
+ };
451
+ /**
452
+ * @zh 弹出框的样式
453
+ * @en The style of the popup
454
+ */
455
+ popupStyle: {
456
+ type: PropType<CSSProperties>;
457
+ };
458
+ /**
459
+ * @zh 弹出动画的name
460
+ * @en The name of the popup animation
461
+ */
462
+ animationName: {
463
+ type: StringConstructor;
464
+ default: string;
465
+ };
466
+ /**
467
+ * @zh 弹出动画的持续时间
468
+ * @en The duration of the popup animation
469
+ */
470
+ duration: {
471
+ type: PropType<number | {
472
+ enter: number;
473
+ leave: number;
474
+ }>;
475
+ };
476
+ /**
477
+ * @zh mouseenter事件延时触发的时间(毫秒)
478
+ * @en Delay trigger time of mouseenter event (ms)
479
+ */
480
+ mouseEnterDelay: {
481
+ type: NumberConstructor;
482
+ default: number;
483
+ };
484
+ /**
485
+ * @zh mouseleave事件延时触发的时间(毫秒)
486
+ * @en Delay trigger time of mouseleave event (ms)
487
+ */
488
+ mouseLeaveDelay: {
489
+ type: NumberConstructor;
490
+ default: number;
491
+ };
492
+ /**
493
+ * @zh focus事件延时触发的时间(毫秒)
494
+ * @en Delay trigger time of focus event (ms)
495
+ */
496
+ focusDelay: {
497
+ type: NumberConstructor;
498
+ default: number;
499
+ };
500
+ /**
501
+ * @zh 是否将弹出框宽度设置为触发器宽度
502
+ * @en Whether to set the width of the popup to the width of the trigger
503
+ */
504
+ autoFitPopupWidth: {
505
+ type: BooleanConstructor;
506
+ default: boolean;
507
+ };
508
+ /**
509
+ * @zh 是否将弹出框的最小宽度设置为触发器宽度
510
+ * @en Whether to set the minimum width of the popup to the trigger width
511
+ */
512
+ autoFitPopupMinWidth: {
513
+ type: BooleanConstructor;
514
+ default: boolean;
515
+ };
516
+ /**
517
+ * @zh 当触发器的尺寸发生变化时,是否重新计算弹出框位置
518
+ * @en When the size of the trigger changes, whether to recalculate the position of the popup
519
+ */
520
+ autoFixPosition: {
521
+ type: BooleanConstructor;
522
+ default: boolean;
523
+ };
524
+ /**
525
+ * @zh 弹出框的挂载容器
526
+ * @en Mount container for popup
527
+ */
528
+ popupContainer: {
529
+ type: PropType<string | HTMLElement>;
530
+ };
531
+ /**
532
+ * @zh 是否在容器滚动时更新弹出框的位置
533
+ * @us Whether to update the position of the popup when the container is scrolled
534
+ */
535
+ updateAtScroll: {
536
+ type: BooleanConstructor;
537
+ default: boolean;
538
+ };
539
+ autoFitTransformOrigin: {
540
+ type: BooleanConstructor;
541
+ default: boolean;
542
+ };
543
+ hideEmpty: {
544
+ type: BooleanConstructor;
545
+ default: boolean;
546
+ };
547
+ openedClass: {
548
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
549
+ };
550
+ /**
551
+ * @zh 是否自动调整弹出框位置,以适应窗口大小
552
+ * @en Whether to automatically adjust the position of the popup to fit the window size
553
+ */
554
+ autoFitPosition: {
555
+ type: BooleanConstructor;
556
+ default: boolean;
557
+ };
558
+ /**
559
+ * @zh 是否挂载在 `body` 元素下
560
+ * @en Whether to mount under the `body` element
561
+ */
562
+ renderToBody: {
563
+ type: BooleanConstructor;
564
+ default: boolean;
565
+ };
566
+ /**
567
+ * @zh 是否阻止弹出层中的元素点击时获取焦点
568
+ * @en Whether to prevent elements in the pop-up layer from gaining focus when clicked
569
+ */
570
+ preventFocus: {
571
+ type: BooleanConstructor;
572
+ default: boolean;
573
+ };
574
+ /**
575
+ * @zh 是否在滚动时关闭弹出框
576
+ * @en Whether to close the popover when scrolling
577
+ * @version 2.46.0
578
+ */
579
+ scrollToClose: {
580
+ type: BooleanConstructor;
581
+ default: boolean;
582
+ };
583
+ /**
584
+ * @zh 滚动阈值,当滚动距离超过该值时触发关闭
585
+ * @en Scroll threshold, trigger close when the scroll distance exceeds this value
586
+ */
587
+ scrollToCloseDistance: {
588
+ type: NumberConstructor;
589
+ default: number;
590
+ };
591
+ }>> & Readonly<{
592
+ onResize?: (() => any) | undefined;
593
+ onHide?: (() => any) | undefined;
594
+ onShow?: (() => any) | undefined;
595
+ "onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
596
+ onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
597
+ }>, {
598
+ disabled: boolean;
599
+ animationName: string;
600
+ position: "br" | "rt" | "tr" | "bottom" | "left" | "right" | "top" | "rb" | "tl" | "bl" | "lt" | "lb";
601
+ autoFitPosition: boolean;
602
+ popupVisible: boolean;
603
+ defaultPopupVisible: boolean;
604
+ trigger: "click" | "focus" | "hover" | "contextMenu" | ("click" | "focus" | "hover" | "contextMenu")[];
605
+ popupOffset: number;
606
+ showArrow: boolean;
607
+ alignPoint: boolean;
608
+ popupHoverStay: boolean;
609
+ blurToClose: boolean;
610
+ clickToClose: boolean;
611
+ clickOutsideToClose: boolean;
612
+ unmountOnClose: boolean;
613
+ mouseEnterDelay: number;
614
+ mouseLeaveDelay: number;
615
+ focusDelay: number;
616
+ autoFitPopupWidth: boolean;
617
+ autoFitPopupMinWidth: boolean;
618
+ autoFixPosition: boolean;
619
+ updateAtScroll: boolean;
620
+ autoFitTransformOrigin: boolean;
621
+ hideEmpty: boolean;
622
+ renderToBody: boolean;
623
+ preventFocus: boolean;
624
+ scrollToClose: boolean;
625
+ scrollToCloseDistance: number;
626
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
627
+ export default _default;
@@ -0,0 +1,51 @@
1
+ import { CSSProperties } from 'vue';
2
+ import { TriggerPosition } from '../../_props/constant';
3
+ import { TriggerPopupTranslate } from './interface';
4
+ export interface ElementRect {
5
+ top: number;
6
+ bottom: number;
7
+ left: number;
8
+ right: number;
9
+ width: number;
10
+ height: number;
11
+ }
12
+ interface ScrollRect {
13
+ top: number;
14
+ bottom: number;
15
+ left: number;
16
+ right: number;
17
+ scrollTop: number;
18
+ scrollBottom: number;
19
+ scrollLeft: number;
20
+ scrollRight: number;
21
+ width: number;
22
+ height: number;
23
+ }
24
+ export declare const getElementScrollRect: (element: HTMLElement, containerRect: DOMRect) => {
25
+ top: number;
26
+ bottom: number;
27
+ left: number;
28
+ right: number;
29
+ scrollTop: number;
30
+ scrollBottom: number;
31
+ scrollLeft: number;
32
+ scrollRight: number;
33
+ width: number;
34
+ height: number;
35
+ };
36
+ export declare const getTransformOrigin: (position: TriggerPosition) => string;
37
+ export declare const getPopupStyle: (position: TriggerPosition, containerRect: DOMRect, triggerRect: ScrollRect, popupRect: ScrollRect, { offset, translate, customStyle, autoFitPosition, }?: {
38
+ offset?: number;
39
+ translate?: TriggerPopupTranslate;
40
+ customStyle?: CSSProperties;
41
+ autoFitPosition?: boolean;
42
+ }) => {
43
+ style: CSSProperties;
44
+ position: TriggerPosition;
45
+ };
46
+ export declare const getArrowStyle: (position: TriggerPosition, triggerRect: ScrollRect, popupRect: ScrollRect, { customStyle, }: {
47
+ customStyle?: CSSProperties;
48
+ }) => CSSProperties;
49
+ export declare const isScrollElement: (element: HTMLElement) => boolean;
50
+ export declare const getScrollElements: (container: HTMLElement | undefined) => HTMLElement[];
51
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare class Cache {
2
+ private seed;
3
+ private data;
4
+ private id;
5
+ add(value: Function, id?: string): string;
6
+ get(id: string): Function | undefined;
7
+ delete(id: string): void;
8
+ }
@@ -0,0 +1,18 @@
1
+ export declare const Clipboard: {
2
+ /**
3
+ * Requests Navigator API persmission to clipboard.
4
+ */
5
+ requestClipboardPermission(): Promise<PermissionStatus>;
6
+ /**
7
+ * Writes to cliboard using Navigator API.
8
+ */
9
+ writeClipboard(value: string): Promise<boolean>;
10
+ /**
11
+ * Writes to clipboard using old-school execCommand('copy').
12
+ */
13
+ writeClipboardExecCommand(value: string): boolean;
14
+ /**
15
+ * Maes an attempt to copy data to the clipboard.
16
+ */
17
+ copy(input: any): Promise<true | undefined>;
18
+ };
@@ -0,0 +1,3 @@
1
+ export declare const Convert: {
2
+ asString(value: any): string;
3
+ };
@@ -0,0 +1,3 @@
1
+ import { ClipboardPlugin } from './plugin';
2
+ export * from './clipboard';
3
+ export default ClipboardPlugin;