index.d.mts 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  1. import * as vue from 'vue';
  2. import { ComponentPropsOptions, ExtractPropTypes, Ref, EffectScope, PropType } from 'vue';
  3. declare const block: readonly ["top", "bottom"];
  4. declare const inline: readonly ["start", "end", "left", "right"];
  5. type Tblock = typeof block[number];
  6. type Tinline = typeof inline[number];
  7. type Anchor = Tblock | Tinline | 'center' | 'center center' | `${Tblock} ${Tinline | 'center'}` | `${Tinline} ${Tblock | 'center'}`;
  8. declare class Box {
  9. x: number;
  10. y: number;
  11. width: number;
  12. height: number;
  13. constructor({ x, y, width, height }: {
  14. x: number;
  15. y: number;
  16. width: number;
  17. height: number;
  18. });
  19. get top(): number;
  20. get bottom(): number;
  21. get left(): number;
  22. get right(): number;
  23. }
  24. interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
  25. filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): [yes: Partial<Pick<T, U>>, no: Omit<T, U>];
  26. }
  27. interface LocationStrategyData {
  28. contentEl: Ref<HTMLElement | undefined>;
  29. activatorEl: Ref<HTMLElement | undefined>;
  30. isActive: Ref<boolean>;
  31. isRtl: Ref<boolean>;
  32. }
  33. type LocationStrategyFn = (data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => undefined | {
  34. updateLocation: (e: Event) => void;
  35. };
  36. declare const locationStrategies: {
  37. static: typeof staticLocationStrategy;
  38. connected: typeof connectedLocationStrategy;
  39. };
  40. interface StrategyProps$1 {
  41. locationStrategy: keyof typeof locationStrategies | LocationStrategyFn;
  42. location: Anchor;
  43. origin: Anchor | 'auto' | 'overlap';
  44. offset?: number | string | number[];
  45. maxHeight?: number | string;
  46. maxWidth?: number | string;
  47. minHeight?: number | string;
  48. minWidth?: number | string;
  49. }
  50. declare function staticLocationStrategy(): void;
  51. declare function connectedLocationStrategy(data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>): {
  52. updateLocation: () => {
  53. available: {
  54. x: number;
  55. y: number;
  56. };
  57. contentBox: Box;
  58. } | undefined;
  59. };
  60. interface ScrollStrategyData {
  61. root: Ref<HTMLElement | undefined>;
  62. contentEl: Ref<HTMLElement | undefined>;
  63. activatorEl: Ref<HTMLElement | undefined>;
  64. isActive: Ref<boolean>;
  65. updateLocation: Ref<((e: Event) => void) | undefined>;
  66. }
  67. type ScrollStrategyFn = (data: ScrollStrategyData, props: StrategyProps, scope: EffectScope) => void;
  68. declare const scrollStrategies: {
  69. none: null;
  70. close: typeof closeScrollStrategy;
  71. block: typeof blockScrollStrategy;
  72. reposition: typeof repositionScrollStrategy;
  73. };
  74. interface StrategyProps {
  75. scrollStrategy: keyof typeof scrollStrategies | ScrollStrategyFn;
  76. contained: boolean | undefined;
  77. }
  78. declare function closeScrollStrategy(data: ScrollStrategyData): void;
  79. declare function blockScrollStrategy(data: ScrollStrategyData, props: StrategyProps): void;
  80. declare function repositionScrollStrategy(data: ScrollStrategyData, props: StrategyProps, scope: EffectScope): void;
  81. declare const VOverlay: {
  82. new (...args: any[]): {
  83. $: vue.ComponentInternalInstance;
  84. $data: {};
  85. $props: {
  86. absolute?: boolean | undefined;
  87. location?: Anchor | undefined;
  88. origin?: "auto" | Anchor | "overlap" | undefined;
  89. transition?: string | boolean | (vue.TransitionProps & {
  90. component?: vue.Component | undefined;
  91. }) | undefined;
  92. zIndex?: string | number | undefined;
  93. style?: vue.StyleValue | undefined;
  94. eager?: boolean | undefined;
  95. disabled?: boolean | undefined;
  96. modelValue?: boolean | undefined;
  97. locationStrategy?: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
  98. updateLocation: (e: Event) => void;
  99. } | undefined) | undefined;
  100. scrollStrategy?: "none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition" | undefined;
  101. activatorProps?: Record<string, any> | undefined;
  102. openOnClick?: boolean | undefined;
  103. openOnHover?: boolean | undefined;
  104. openOnFocus?: boolean | undefined;
  105. closeOnContentClick?: boolean | undefined;
  106. closeOnBack?: boolean | undefined;
  107. contained?: boolean | undefined;
  108. noClickAnimation?: boolean | undefined;
  109. persistent?: boolean | undefined;
  110. scrim?: string | boolean | undefined;
  111. _disableGlobalStack?: boolean | undefined;
  112. offset?: string | number | number[] | undefined;
  113. key?: string | number | symbol | undefined;
  114. height?: string | number | undefined;
  115. width?: string | number | undefined;
  116. maxHeight?: string | number | undefined;
  117. maxWidth?: string | number | undefined;
  118. minHeight?: string | number | undefined;
  119. minWidth?: string | number | undefined;
  120. class?: any;
  121. onAfterLeave?: (() => any) | undefined;
  122. $children?: vue.VNodeChild | {
  123. default?: ((arg: {
  124. isActive: Ref<boolean>;
  125. }) => vue.VNodeChild) | undefined;
  126. activator?: ((arg: {
  127. isActive: boolean;
  128. props: Record<string, any>;
  129. }) => vue.VNodeChild) | undefined;
  130. } | ((arg: {
  131. isActive: Ref<boolean>;
  132. }) => vue.VNodeChild);
  133. ref?: vue.VNodeRef | undefined;
  134. ref_for?: boolean | undefined;
  135. ref_key?: string | undefined;
  136. theme?: string | undefined;
  137. "v-slot:default"?: false | ((arg: {
  138. isActive: Ref<boolean>;
  139. }) => vue.VNodeChild) | undefined;
  140. 'v-slots'?: {
  141. default?: false | ((arg: {
  142. isActive: Ref<boolean>;
  143. }) => vue.VNodeChild) | undefined;
  144. activator?: false | ((arg: {
  145. isActive: boolean;
  146. props: Record<string, any>;
  147. }) => vue.VNodeChild) | undefined;
  148. } | undefined;
  149. contentClass?: any;
  150. onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  151. [key: string]: any;
  152. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  153. [key: string]: any;
  154. }>) => void)[] | undefined;
  155. onVnodeMounted?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  156. [key: string]: any;
  157. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  158. [key: string]: any;
  159. }>) => void)[] | undefined;
  160. onVnodeBeforeUpdate?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  161. [key: string]: any;
  162. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  163. [key: string]: any;
  164. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  165. [key: string]: any;
  166. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  167. [key: string]: any;
  168. }>) => void)[] | undefined;
  169. onVnodeUpdated?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  170. [key: string]: any;
  171. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  172. [key: string]: any;
  173. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  174. [key: string]: any;
  175. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  176. [key: string]: any;
  177. }>) => void)[] | undefined;
  178. onVnodeBeforeUnmount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  179. [key: string]: any;
  180. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  181. [key: string]: any;
  182. }>) => void)[] | undefined;
  183. onVnodeUnmounted?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  184. [key: string]: any;
  185. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  186. [key: string]: any;
  187. }>) => void)[] | undefined;
  188. "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
  189. activator?: string | Element | vue.ComponentPublicInstance | undefined;
  190. "v-slot:activator"?: false | ((arg: {
  191. isActive: boolean;
  192. props: Record<string, any>;
  193. }) => vue.VNodeChild) | undefined;
  194. closeDelay?: string | number | undefined;
  195. openDelay?: string | number | undefined;
  196. contentProps?: any;
  197. attach?: string | boolean | Element | undefined;
  198. "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
  199. };
  200. $attrs: {
  201. [x: string]: unknown;
  202. };
  203. $refs: {
  204. [x: string]: unknown;
  205. };
  206. $slots: Readonly<{
  207. default?: ((arg: {
  208. isActive: Ref<boolean>;
  209. }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
  210. [key: string]: any;
  211. }>[]) | undefined;
  212. activator?: ((arg: {
  213. isActive: boolean;
  214. props: Record<string, any>;
  215. }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
  216. [key: string]: any;
  217. }>[]) | undefined;
  218. }>;
  219. $root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
  220. $parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
  221. $emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "afterLeave") => void);
  222. $el: any;
  223. $options: vue.ComponentOptionsBase<{
  224. absolute: boolean;
  225. location: Anchor;
  226. origin: "auto" | Anchor | "overlap";
  227. transition: string | boolean | (vue.TransitionProps & {
  228. component?: vue.Component | undefined;
  229. });
  230. zIndex: string | number;
  231. style: vue.StyleValue;
  232. eager: boolean;
  233. disabled: boolean;
  234. modelValue: boolean;
  235. locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
  236. updateLocation: (e: Event) => void;
  237. } | undefined);
  238. scrollStrategy: "none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition";
  239. activatorProps: Record<string, any>;
  240. openOnHover: boolean;
  241. closeOnContentClick: boolean;
  242. closeOnBack: boolean;
  243. contained: boolean;
  244. noClickAnimation: boolean;
  245. persistent: boolean;
  246. scrim: string | boolean;
  247. _disableGlobalStack: boolean;
  248. } & {
  249. offset?: string | number | number[] | undefined;
  250. height?: string | number | undefined;
  251. width?: string | number | undefined;
  252. maxHeight?: string | number | undefined;
  253. maxWidth?: string | number | undefined;
  254. minHeight?: string | number | undefined;
  255. minWidth?: string | number | undefined;
  256. class?: any;
  257. theme?: string | undefined;
  258. contentClass?: any;
  259. activator?: string | Element | vue.ComponentPublicInstance | undefined;
  260. closeDelay?: string | number | undefined;
  261. openDelay?: string | number | undefined;
  262. openOnClick?: boolean | undefined;
  263. openOnFocus?: boolean | undefined;
  264. contentProps?: any;
  265. attach?: string | boolean | Element | undefined;
  266. } & {
  267. $children?: vue.VNodeChild | {
  268. default?: ((arg: {
  269. isActive: Ref<boolean>;
  270. }) => vue.VNodeChild) | undefined;
  271. activator?: ((arg: {
  272. isActive: boolean;
  273. props: Record<string, any>;
  274. }) => vue.VNodeChild) | undefined;
  275. } | ((arg: {
  276. isActive: Ref<boolean>;
  277. }) => vue.VNodeChild);
  278. 'v-slots'?: {
  279. default?: false | ((arg: {
  280. isActive: Ref<boolean>;
  281. }) => vue.VNodeChild) | undefined;
  282. activator?: false | ((arg: {
  283. isActive: boolean;
  284. props: Record<string, any>;
  285. }) => vue.VNodeChild) | undefined;
  286. } | undefined;
  287. } & {
  288. "v-slot:default"?: false | ((arg: {
  289. isActive: Ref<boolean>;
  290. }) => vue.VNodeChild) | undefined;
  291. "v-slot:activator"?: false | ((arg: {
  292. isActive: boolean;
  293. props: Record<string, any>;
  294. }) => vue.VNodeChild) | undefined;
  295. } & {
  296. onAfterLeave?: (() => any) | undefined;
  297. "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
  298. "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
  299. }, {
  300. activatorEl: Ref<HTMLElement | undefined>;
  301. animateClick: () => void;
  302. contentEl: Ref<HTMLElement | undefined>;
  303. globalTop: Readonly<Ref<boolean>>;
  304. localTop: vue.ComputedRef<boolean>;
  305. updateLocation: Ref<((e: Event) => void) | undefined>;
  306. }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  307. 'click:outside': (e: MouseEvent) => true;
  308. 'update:modelValue': (value: boolean) => true;
  309. afterLeave: () => true;
  310. }, string, {
  311. absolute: boolean;
  312. location: Anchor;
  313. origin: "auto" | Anchor | "overlap";
  314. transition: string | boolean | (vue.TransitionProps & {
  315. component?: vue.Component | undefined;
  316. });
  317. zIndex: string | number;
  318. style: vue.StyleValue;
  319. eager: boolean;
  320. disabled: boolean;
  321. modelValue: boolean;
  322. locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
  323. updateLocation: (e: Event) => void;
  324. } | undefined);
  325. scrollStrategy: "none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition";
  326. activatorProps: Record<string, any>;
  327. openOnClick: boolean;
  328. openOnHover: boolean;
  329. openOnFocus: boolean;
  330. closeOnContentClick: boolean;
  331. closeOnBack: boolean;
  332. contained: boolean;
  333. noClickAnimation: boolean;
  334. persistent: boolean;
  335. scrim: string | boolean;
  336. _disableGlobalStack: boolean;
  337. }, {}, string, vue.SlotsType<Partial<{
  338. default: (arg: {
  339. isActive: Ref<boolean>;
  340. }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
  341. [key: string]: any;
  342. }>[];
  343. activator: (arg: {
  344. isActive: boolean;
  345. props: Record<string, any>;
  346. }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
  347. [key: string]: any;
  348. }>[];
  349. }>>> & {
  350. beforeCreate?: ((() => void) | (() => void)[]) | undefined;
  351. created?: ((() => void) | (() => void)[]) | undefined;
  352. beforeMount?: ((() => void) | (() => void)[]) | undefined;
  353. mounted?: ((() => void) | (() => void)[]) | undefined;
  354. beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
  355. updated?: ((() => void) | (() => void)[]) | undefined;
  356. activated?: ((() => void) | (() => void)[]) | undefined;
  357. deactivated?: ((() => void) | (() => void)[]) | undefined;
  358. beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
  359. beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
  360. destroyed?: ((() => void) | (() => void)[]) | undefined;
  361. unmounted?: ((() => void) | (() => void)[]) | undefined;
  362. renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
  363. renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
  364. errorCaptured?: (((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
  365. };
  366. $forceUpdate: () => void;
  367. $nextTick: typeof vue.nextTick;
  368. $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: vue.WatchOptions<boolean> | undefined): vue.WatchStopHandle;
  369. } & {
  370. absolute: boolean;
  371. location: Anchor;
  372. origin: "auto" | Anchor | "overlap";
  373. transition: string | boolean | (vue.TransitionProps & {
  374. component?: vue.Component | undefined;
  375. });
  376. zIndex: string | number;
  377. style: vue.StyleValue;
  378. eager: boolean;
  379. disabled: boolean;
  380. modelValue: boolean;
  381. locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
  382. updateLocation: (e: Event) => void;
  383. } | undefined);
  384. scrollStrategy: "none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition";
  385. activatorProps: Record<string, any>;
  386. openOnHover: boolean;
  387. closeOnContentClick: boolean;
  388. closeOnBack: boolean;
  389. contained: boolean;
  390. noClickAnimation: boolean;
  391. persistent: boolean;
  392. scrim: string | boolean;
  393. _disableGlobalStack: boolean;
  394. } & {
  395. offset?: string | number | number[] | undefined;
  396. height?: string | number | undefined;
  397. width?: string | number | undefined;
  398. maxHeight?: string | number | undefined;
  399. maxWidth?: string | number | undefined;
  400. minHeight?: string | number | undefined;
  401. minWidth?: string | number | undefined;
  402. class?: any;
  403. theme?: string | undefined;
  404. contentClass?: any;
  405. activator?: string | Element | vue.ComponentPublicInstance | undefined;
  406. closeDelay?: string | number | undefined;
  407. openDelay?: string | number | undefined;
  408. openOnClick?: boolean | undefined;
  409. openOnFocus?: boolean | undefined;
  410. contentProps?: any;
  411. attach?: string | boolean | Element | undefined;
  412. } & {
  413. $children?: vue.VNodeChild | {
  414. default?: ((arg: {
  415. isActive: Ref<boolean>;
  416. }) => vue.VNodeChild) | undefined;
  417. activator?: ((arg: {
  418. isActive: boolean;
  419. props: Record<string, any>;
  420. }) => vue.VNodeChild) | undefined;
  421. } | ((arg: {
  422. isActive: Ref<boolean>;
  423. }) => vue.VNodeChild);
  424. 'v-slots'?: {
  425. default?: false | ((arg: {
  426. isActive: Ref<boolean>;
  427. }) => vue.VNodeChild) | undefined;
  428. activator?: false | ((arg: {
  429. isActive: boolean;
  430. props: Record<string, any>;
  431. }) => vue.VNodeChild) | undefined;
  432. } | undefined;
  433. } & {
  434. "v-slot:default"?: false | ((arg: {
  435. isActive: Ref<boolean>;
  436. }) => vue.VNodeChild) | undefined;
  437. "v-slot:activator"?: false | ((arg: {
  438. isActive: boolean;
  439. props: Record<string, any>;
  440. }) => vue.VNodeChild) | undefined;
  441. } & {
  442. onAfterLeave?: (() => any) | undefined;
  443. "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
  444. "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
  445. } & vue.ShallowUnwrapRef<{
  446. activatorEl: Ref<HTMLElement | undefined>;
  447. animateClick: () => void;
  448. contentEl: Ref<HTMLElement | undefined>;
  449. globalTop: Readonly<Ref<boolean>>;
  450. localTop: vue.ComputedRef<boolean>;
  451. updateLocation: Ref<((e: Event) => void) | undefined>;
  452. }> & {} & vue.ComponentCustomProperties & {};
  453. __isFragment?: undefined;
  454. __isTeleport?: undefined;
  455. __isSuspense?: undefined;
  456. } & vue.ComponentOptionsBase<{
  457. absolute: boolean;
  458. location: Anchor;
  459. origin: "auto" | Anchor | "overlap";
  460. transition: string | boolean | (vue.TransitionProps & {
  461. component?: vue.Component | undefined;
  462. });
  463. zIndex: string | number;
  464. style: vue.StyleValue;
  465. eager: boolean;
  466. disabled: boolean;
  467. modelValue: boolean;
  468. locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
  469. updateLocation: (e: Event) => void;
  470. } | undefined);
  471. scrollStrategy: "none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition";
  472. activatorProps: Record<string, any>;
  473. openOnHover: boolean;
  474. closeOnContentClick: boolean;
  475. closeOnBack: boolean;
  476. contained: boolean;
  477. noClickAnimation: boolean;
  478. persistent: boolean;
  479. scrim: string | boolean;
  480. _disableGlobalStack: boolean;
  481. } & {
  482. offset?: string | number | number[] | undefined;
  483. height?: string | number | undefined;
  484. width?: string | number | undefined;
  485. maxHeight?: string | number | undefined;
  486. maxWidth?: string | number | undefined;
  487. minHeight?: string | number | undefined;
  488. minWidth?: string | number | undefined;
  489. class?: any;
  490. theme?: string | undefined;
  491. contentClass?: any;
  492. activator?: string | Element | vue.ComponentPublicInstance | undefined;
  493. closeDelay?: string | number | undefined;
  494. openDelay?: string | number | undefined;
  495. openOnClick?: boolean | undefined;
  496. openOnFocus?: boolean | undefined;
  497. contentProps?: any;
  498. attach?: string | boolean | Element | undefined;
  499. } & {
  500. $children?: vue.VNodeChild | {
  501. default?: ((arg: {
  502. isActive: Ref<boolean>;
  503. }) => vue.VNodeChild) | undefined;
  504. activator?: ((arg: {
  505. isActive: boolean;
  506. props: Record<string, any>;
  507. }) => vue.VNodeChild) | undefined;
  508. } | ((arg: {
  509. isActive: Ref<boolean>;
  510. }) => vue.VNodeChild);
  511. 'v-slots'?: {
  512. default?: false | ((arg: {
  513. isActive: Ref<boolean>;
  514. }) => vue.VNodeChild) | undefined;
  515. activator?: false | ((arg: {
  516. isActive: boolean;
  517. props: Record<string, any>;
  518. }) => vue.VNodeChild) | undefined;
  519. } | undefined;
  520. } & {
  521. "v-slot:default"?: false | ((arg: {
  522. isActive: Ref<boolean>;
  523. }) => vue.VNodeChild) | undefined;
  524. "v-slot:activator"?: false | ((arg: {
  525. isActive: boolean;
  526. props: Record<string, any>;
  527. }) => vue.VNodeChild) | undefined;
  528. } & {
  529. onAfterLeave?: (() => any) | undefined;
  530. "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
  531. "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
  532. }, {
  533. activatorEl: Ref<HTMLElement | undefined>;
  534. animateClick: () => void;
  535. contentEl: Ref<HTMLElement | undefined>;
  536. globalTop: Readonly<Ref<boolean>>;
  537. localTop: vue.ComputedRef<boolean>;
  538. updateLocation: Ref<((e: Event) => void) | undefined>;
  539. }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  540. 'click:outside': (e: MouseEvent) => true;
  541. 'update:modelValue': (value: boolean) => true;
  542. afterLeave: () => true;
  543. }, string, {
  544. absolute: boolean;
  545. location: Anchor;
  546. origin: "auto" | Anchor | "overlap";
  547. transition: string | boolean | (vue.TransitionProps & {
  548. component?: vue.Component | undefined;
  549. });
  550. zIndex: string | number;
  551. style: vue.StyleValue;
  552. eager: boolean;
  553. disabled: boolean;
  554. modelValue: boolean;
  555. locationStrategy: "connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
  556. updateLocation: (e: Event) => void;
  557. } | undefined);
  558. scrollStrategy: "none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition";
  559. activatorProps: Record<string, any>;
  560. openOnClick: boolean;
  561. openOnHover: boolean;
  562. openOnFocus: boolean;
  563. closeOnContentClick: boolean;
  564. closeOnBack: boolean;
  565. contained: boolean;
  566. noClickAnimation: boolean;
  567. persistent: boolean;
  568. scrim: string | boolean;
  569. _disableGlobalStack: boolean;
  570. }, {}, string, vue.SlotsType<Partial<{
  571. default: (arg: {
  572. isActive: Ref<boolean>;
  573. }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
  574. [key: string]: any;
  575. }>[];
  576. activator: (arg: {
  577. isActive: boolean;
  578. props: Record<string, any>;
  579. }) => vue.VNode<vue.RendererNode, vue.RendererElement, {
  580. [key: string]: any;
  581. }>[];
  582. }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
  583. transition: {
  584. type: PropType<string | boolean | (vue.TransitionProps & {
  585. component?: vue.Component | undefined;
  586. })>;
  587. default: string;
  588. validator: (val: unknown) => boolean;
  589. };
  590. theme: StringConstructor;
  591. scrollStrategy: {
  592. type: PropType<"none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition">;
  593. default: string;
  594. validator: (val: any) => boolean;
  595. };
  596. locationStrategy: {
  597. type: PropType<"connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
  598. updateLocation: (e: Event) => void;
  599. } | undefined)>;
  600. default: string;
  601. validator: (val: any) => boolean;
  602. };
  603. location: {
  604. type: PropType<Anchor>;
  605. default: string;
  606. };
  607. origin: {
  608. type: PropType<"auto" | Anchor | "overlap">;
  609. default: string;
  610. };
  611. offset: PropType<string | number | number[] | undefined>;
  612. eager: BooleanConstructor;
  613. height: (StringConstructor | NumberConstructor)[];
  614. maxHeight: (StringConstructor | NumberConstructor)[];
  615. maxWidth: (StringConstructor | NumberConstructor)[];
  616. minHeight: (StringConstructor | NumberConstructor)[];
  617. minWidth: (StringConstructor | NumberConstructor)[];
  618. width: (StringConstructor | NumberConstructor)[];
  619. class: PropType<any>;
  620. style: {
  621. type: PropType<vue.StyleValue>;
  622. default: null;
  623. };
  624. closeDelay: (StringConstructor | NumberConstructor)[];
  625. openDelay: (StringConstructor | NumberConstructor)[];
  626. activator: PropType<string | Element | vue.ComponentPublicInstance | undefined>;
  627. activatorProps: {
  628. type: PropType<Record<string, any>>;
  629. default: () => {};
  630. };
  631. openOnClick: {
  632. type: BooleanConstructor;
  633. default: undefined;
  634. };
  635. openOnHover: BooleanConstructor;
  636. openOnFocus: {
  637. type: BooleanConstructor;
  638. default: undefined;
  639. };
  640. closeOnContentClick: BooleanConstructor;
  641. absolute: BooleanConstructor;
  642. attach: PropType<string | boolean | Element>;
  643. closeOnBack: {
  644. type: BooleanConstructor;
  645. default: boolean;
  646. };
  647. contained: BooleanConstructor;
  648. contentClass: null;
  649. contentProps: null;
  650. disabled: BooleanConstructor;
  651. noClickAnimation: BooleanConstructor;
  652. modelValue: BooleanConstructor;
  653. persistent: BooleanConstructor;
  654. scrim: {
  655. type: (StringConstructor | BooleanConstructor)[];
  656. default: boolean;
  657. };
  658. zIndex: {
  659. type: (StringConstructor | NumberConstructor)[];
  660. default: number;
  661. };
  662. _disableGlobalStack: BooleanConstructor;
  663. }, vue.ExtractPropTypes<{
  664. transition: {
  665. type: PropType<string | boolean | (vue.TransitionProps & {
  666. component?: vue.Component | undefined;
  667. })>;
  668. default: string;
  669. validator: (val: unknown) => boolean;
  670. };
  671. theme: StringConstructor;
  672. scrollStrategy: {
  673. type: PropType<"none" | "block" | "close" | ((data: ScrollStrategyData, props: StrategyProps, scope: vue.EffectScope) => void) | "reposition">;
  674. default: string;
  675. validator: (val: any) => boolean;
  676. };
  677. locationStrategy: {
  678. type: PropType<"connected" | "static" | ((data: LocationStrategyData, props: StrategyProps$1, contentStyles: Ref<Record<string, string>>) => {
  679. updateLocation: (e: Event) => void;
  680. } | undefined)>;
  681. default: string;
  682. validator: (val: any) => boolean;
  683. };
  684. location: {
  685. type: PropType<Anchor>;
  686. default: string;
  687. };
  688. origin: {
  689. type: PropType<"auto" | Anchor | "overlap">;
  690. default: string;
  691. };
  692. offset: PropType<string | number | number[] | undefined>;
  693. eager: BooleanConstructor;
  694. height: (StringConstructor | NumberConstructor)[];
  695. maxHeight: (StringConstructor | NumberConstructor)[];
  696. maxWidth: (StringConstructor | NumberConstructor)[];
  697. minHeight: (StringConstructor | NumberConstructor)[];
  698. minWidth: (StringConstructor | NumberConstructor)[];
  699. width: (StringConstructor | NumberConstructor)[];
  700. class: PropType<any>;
  701. style: {
  702. type: PropType<vue.StyleValue>;
  703. default: null;
  704. };
  705. closeDelay: (StringConstructor | NumberConstructor)[];
  706. openDelay: (StringConstructor | NumberConstructor)[];
  707. activator: PropType<string | Element | vue.ComponentPublicInstance | undefined>;
  708. activatorProps: {
  709. type: PropType<Record<string, any>>;
  710. default: () => {};
  711. };
  712. openOnClick: {
  713. type: BooleanConstructor;
  714. default: undefined;
  715. };
  716. openOnHover: BooleanConstructor;
  717. openOnFocus: {
  718. type: BooleanConstructor;
  719. default: undefined;
  720. };
  721. closeOnContentClick: BooleanConstructor;
  722. absolute: BooleanConstructor;
  723. attach: PropType<string | boolean | Element>;
  724. closeOnBack: {
  725. type: BooleanConstructor;
  726. default: boolean;
  727. };
  728. contained: BooleanConstructor;
  729. contentClass: null;
  730. contentProps: null;
  731. disabled: BooleanConstructor;
  732. noClickAnimation: BooleanConstructor;
  733. modelValue: BooleanConstructor;
  734. persistent: BooleanConstructor;
  735. scrim: {
  736. type: (StringConstructor | BooleanConstructor)[];
  737. default: boolean;
  738. };
  739. zIndex: {
  740. type: (StringConstructor | NumberConstructor)[];
  741. default: number;
  742. };
  743. _disableGlobalStack: BooleanConstructor;
  744. }>>;
  745. type VOverlay = InstanceType<typeof VOverlay>;
  746. export { VOverlay };