runtime-dom.d.ts 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523
  1. import { BaseTransitionProps } from '@vue/runtime-core';
  2. import { ComponentInternalInstance } from '@vue/runtime-core';
  3. import { ComponentOptionsMixin } from '@vue/runtime-core';
  4. import { ComponentOptionsWithArrayProps } from '@vue/runtime-core';
  5. import { ComponentOptionsWithObjectProps } from '@vue/runtime-core';
  6. import { ComponentOptionsWithoutProps } from '@vue/runtime-core';
  7. import { ComponentPropsOptions } from '@vue/runtime-core';
  8. import { ComponentPublicInstance } from '@vue/runtime-core';
  9. import { ComputedOptions } from '@vue/runtime-core';
  10. import { ConcreteComponent } from '@vue/runtime-core';
  11. import { CreateAppFunction } from '@vue/runtime-core';
  12. import { EmitsOptions } from '@vue/runtime-core';
  13. import { ExtractPropTypes } from '@vue/runtime-core';
  14. import { FunctionalComponent } from '@vue/runtime-core';
  15. import { MethodOptions } from '@vue/runtime-core';
  16. import { ObjectDirective } from '@vue/runtime-core';
  17. import { RenderFunction } from '@vue/runtime-core';
  18. import { RootHydrateFunction } from '@vue/runtime-core';
  19. import { RootRenderFunction } from '@vue/runtime-core';
  20. import { SetupContext } from '@vue/runtime-core';
  21. declare const ANIMATION = "animation";
  22. declare type AssignerFn = (value: any) => void;
  23. declare const BaseClass: {
  24. new (): HTMLElement;
  25. prototype: HTMLElement;
  26. };
  27. export declare const createApp: CreateAppFunction<Element>;
  28. export declare const createSSRApp: CreateAppFunction<Element>;
  29. export declare function defineCustomElement<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): VueElementConstructor<Props>;
  30. export declare function defineCustomElement<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE> & {
  31. styles?: string[];
  32. }): VueElementConstructor<Props>;
  33. export declare function defineCustomElement<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE> & {
  34. styles?: string[];
  35. }): VueElementConstructor<{
  36. [K in PropNames]: any;
  37. }>;
  38. export declare function defineCustomElement<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE> & {
  39. styles?: string[];
  40. }): VueElementConstructor<ExtractPropTypes<PropsOptions>>;
  41. export declare function defineCustomElement(options: {
  42. new (...args: any[]): ComponentPublicInstance;
  43. }): VueElementConstructor;
  44. export declare const defineSSRCustomElement: typeof defineCustomElement;
  45. export declare const hydrate: RootHydrateFunction;
  46. /* Excluded from this release type: initDirectivesForSSR */
  47. declare type InnerComponentDef = ConcreteComponent & {
  48. styles?: string[];
  49. };
  50. declare type ModelDirective<T> = ObjectDirective<T & {
  51. _assign: AssignerFn;
  52. }>;
  53. export declare const render: RootRenderFunction<Element | ShadowRoot>;
  54. declare const TRANSITION = "transition";
  55. export declare const Transition: FunctionalComponent<TransitionProps>;
  56. export declare const TransitionGroup: new () => {
  57. $props: TransitionGroupProps;
  58. };
  59. export declare type TransitionGroupProps = Omit<TransitionProps, 'mode'> & {
  60. tag?: string;
  61. moveClass?: string;
  62. };
  63. export declare interface TransitionProps extends BaseTransitionProps<Element> {
  64. name?: string;
  65. type?: typeof TRANSITION | typeof ANIMATION;
  66. css?: boolean;
  67. duration?: number | {
  68. enter: number;
  69. leave: number;
  70. };
  71. enterFromClass?: string;
  72. enterActiveClass?: string;
  73. enterToClass?: string;
  74. appearFromClass?: string;
  75. appearActiveClass?: string;
  76. appearToClass?: string;
  77. leaveFromClass?: string;
  78. leaveActiveClass?: string;
  79. leaveToClass?: string;
  80. }
  81. export declare function useCssModule(name?: string): Record<string, string>;
  82. /**
  83. * Runtime helper for SFC's CSS variable injection feature.
  84. * @private
  85. */
  86. export declare function useCssVars(getter: (ctx: any) => Record<string, string>): void;
  87. export declare const vModelCheckbox: ModelDirective<HTMLInputElement>;
  88. export declare const vModelDynamic: ObjectDirective<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
  89. export declare const vModelRadio: ModelDirective<HTMLInputElement>;
  90. export declare const vModelSelect: ModelDirective<HTMLSelectElement>;
  91. export declare const vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement>;
  92. export declare const vShow: ObjectDirective<VShowElement>;
  93. declare interface VShowElement extends HTMLElement {
  94. _vod: string;
  95. }
  96. export declare class VueElement extends BaseClass {
  97. private _def;
  98. private _props;
  99. /* Excluded from this release type: _instance */
  100. private _connected;
  101. private _resolved;
  102. private _numberProps;
  103. private _styles?;
  104. constructor(_def: InnerComponentDef, _props?: Record<string, any>, hydrate?: RootHydrateFunction);
  105. connectedCallback(): void;
  106. disconnectedCallback(): void;
  107. /**
  108. * resolve inner component definition (handle possible async component)
  109. */
  110. private _resolveDef;
  111. protected _setAttr(key: string): void;
  112. /* Excluded from this release type: _getProp */
  113. /* Excluded from this release type: _setProp */
  114. private _update;
  115. private _createVNode;
  116. private _applyStyles;
  117. }
  118. export declare type VueElementConstructor<P = {}> = {
  119. new (initialProps?: Record<string, any>): VueElement & P;
  120. };
  121. /**
  122. * @private
  123. */
  124. export declare const withKeys: (fn: Function, modifiers: string[]) => (event: KeyboardEvent) => any;
  125. /**
  126. * @private
  127. */
  128. export declare const withModifiers: (fn: Function, modifiers: string[]) => (event: Event, ...args: unknown[]) => any;
  129. export * from "@vue/runtime-core";
  130. export { }
  131. // Note: this file is auto concatenated to the end of the bundled d.ts during
  132. // build.
  133. // This code is based on react definition in DefinitelyTyped published under the MIT license.
  134. // Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
  135. // Path in the repository: types/react/index.d.ts
  136. //
  137. // Copyrights of original definition are:
  138. // AssureSign <http://www.assuresign.com>
  139. // Microsoft <https://microsoft.com>
  140. // John Reilly <https://github.com/johnnyreilly>
  141. // Benoit Benezech <https://github.com/bbenezech>
  142. // Patricio Zavolinsky <https://github.com/pzavolinsky>
  143. // Digiguru <https://github.com/digiguru>
  144. // Eric Anderson <https://github.com/ericanderson>
  145. // Dovydas Navickas <https://github.com/DovydasNavickas>
  146. // Josh Rutherford <https://github.com/theruther4d>
  147. // Guilherme Hübner <https://github.com/guilhermehubner>
  148. // Ferdy Budhidharma <https://github.com/ferdaber>
  149. // Johann Rakotoharisoa <https://github.com/jrakotoharisoa>
  150. // Olivier Pascal <https://github.com/pascaloliv>
  151. // Martin Hochel <https://github.com/hotell>
  152. // Frank Li <https://github.com/franklixuefei>
  153. // Jessica Franco <https://github.com/Jessidhia>
  154. // Saransh Kataria <https://github.com/saranshkataria>
  155. // Kanitkorn Sujautra <https://github.com/lukyth>
  156. // Sebastian Silbermann <https://github.com/eps1lon>
  157. import { VNode } from '@vue/runtime-core'
  158. import * as CSS from 'csstype'
  159. export interface CSSProperties
  160. extends CSS.Properties<string | number>,
  161. CSS.PropertiesHyphen<string | number> {
  162. /**
  163. * The index signature was removed to enable closed typing for style
  164. * using CSSType. You're able to use type assertion or module augmentation
  165. * to add properties or an index signature of your own.
  166. *
  167. * For examples and more information, visit:
  168. * https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors
  169. */
  170. }
  171. type Booleanish = boolean | 'true' | 'false'
  172. type Numberish = number | string
  173. // All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
  174. interface AriaAttributes {
  175. /** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
  176. 'aria-activedescendant'?: string
  177. /** Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. */
  178. 'aria-atomic'?: Booleanish
  179. /**
  180. * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
  181. * presented if they are made.
  182. */
  183. 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both'
  184. /** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */
  185. 'aria-busy'?: Booleanish
  186. /**
  187. * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
  188. * @see aria-pressed @see aria-selected.
  189. */
  190. 'aria-checked'?: Booleanish | 'mixed'
  191. /**
  192. * Defines the total number of columns in a table, grid, or treegrid.
  193. * @see aria-colindex.
  194. */
  195. 'aria-colcount'?: Numberish
  196. /**
  197. * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
  198. * @see aria-colcount @see aria-colspan.
  199. */
  200. 'aria-colindex'?: Numberish
  201. /**
  202. * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
  203. * @see aria-colindex @see aria-rowspan.
  204. */
  205. 'aria-colspan'?: Numberish
  206. /**
  207. * Identifies the element (or elements) whose contents or presence are controlled by the current element.
  208. * @see aria-owns.
  209. */
  210. 'aria-controls'?: string
  211. /** Indicates the element that represents the current item within a container or set of related elements. */
  212. 'aria-current'?: Booleanish | 'page' | 'step' | 'location' | 'date' | 'time'
  213. /**
  214. * Identifies the element (or elements) that describes the object.
  215. * @see aria-labelledby
  216. */
  217. 'aria-describedby'?: string
  218. /**
  219. * Identifies the element that provides a detailed, extended description for the object.
  220. * @see aria-describedby.
  221. */
  222. 'aria-details'?: string
  223. /**
  224. * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
  225. * @see aria-hidden @see aria-readonly.
  226. */
  227. 'aria-disabled'?: Booleanish
  228. /**
  229. * Indicates what functions can be performed when a dragged object is released on the drop target.
  230. * @deprecated in ARIA 1.1
  231. */
  232. 'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup'
  233. /**
  234. * Identifies the element that provides an error message for the object.
  235. * @see aria-invalid @see aria-describedby.
  236. */
  237. 'aria-errormessage'?: string
  238. /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
  239. 'aria-expanded'?: Booleanish
  240. /**
  241. * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
  242. * allows assistive technology to override the general default of reading in document source order.
  243. */
  244. 'aria-flowto'?: string
  245. /**
  246. * Indicates an element's "grabbed" state in a drag-and-drop operation.
  247. * @deprecated in ARIA 1.1
  248. */
  249. 'aria-grabbed'?: Booleanish
  250. /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
  251. 'aria-haspopup'?: Booleanish | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog'
  252. /**
  253. * Indicates whether the element is exposed to an accessibility API.
  254. * @see aria-disabled.
  255. */
  256. 'aria-hidden'?: Booleanish
  257. /**
  258. * Indicates the entered value does not conform to the format expected by the application.
  259. * @see aria-errormessage.
  260. */
  261. 'aria-invalid'?: Booleanish | 'grammar' | 'spelling'
  262. /** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
  263. 'aria-keyshortcuts'?: string
  264. /**
  265. * Defines a string value that labels the current element.
  266. * @see aria-labelledby.
  267. */
  268. 'aria-label'?: string
  269. /**
  270. * Identifies the element (or elements) that labels the current element.
  271. * @see aria-describedby.
  272. */
  273. 'aria-labelledby'?: string
  274. /** Defines the hierarchical level of an element within a structure. */
  275. 'aria-level'?: Numberish
  276. /** Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. */
  277. 'aria-live'?: 'off' | 'assertive' | 'polite'
  278. /** Indicates whether an element is modal when displayed. */
  279. 'aria-modal'?: Booleanish
  280. /** Indicates whether a text box accepts multiple lines of input or only a single line. */
  281. 'aria-multiline'?: Booleanish
  282. /** Indicates that the user may select more than one item from the current selectable descendants. */
  283. 'aria-multiselectable'?: Booleanish
  284. /** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
  285. 'aria-orientation'?: 'horizontal' | 'vertical'
  286. /**
  287. * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
  288. * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
  289. * @see aria-controls.
  290. */
  291. 'aria-owns'?: string
  292. /**
  293. * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
  294. * A hint could be a sample value or a brief description of the expected format.
  295. */
  296. 'aria-placeholder'?: string
  297. /**
  298. * Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
  299. * @see aria-setsize.
  300. */
  301. 'aria-posinset'?: Numberish
  302. /**
  303. * Indicates the current "pressed" state of toggle buttons.
  304. * @see aria-checked @see aria-selected.
  305. */
  306. 'aria-pressed'?: Booleanish | 'mixed'
  307. /**
  308. * Indicates that the element is not editable, but is otherwise operable.
  309. * @see aria-disabled.
  310. */
  311. 'aria-readonly'?: Booleanish
  312. /**
  313. * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
  314. * @see aria-atomic.
  315. */
  316. 'aria-relevant'?: 'additions' | 'additions text' | 'all' | 'removals' | 'text'
  317. /** Indicates that user input is required on the element before a form may be submitted. */
  318. 'aria-required'?: Booleanish
  319. /** Defines a human-readable, author-localized description for the role of an element. */
  320. 'aria-roledescription'?: string
  321. /**
  322. * Defines the total number of rows in a table, grid, or treegrid.
  323. * @see aria-rowindex.
  324. */
  325. 'aria-rowcount'?: Numberish
  326. /**
  327. * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
  328. * @see aria-rowcount @see aria-rowspan.
  329. */
  330. 'aria-rowindex'?: Numberish
  331. /**
  332. * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
  333. * @see aria-rowindex @see aria-colspan.
  334. */
  335. 'aria-rowspan'?: Numberish
  336. /**
  337. * Indicates the current "selected" state of various widgets.
  338. * @see aria-checked @see aria-pressed.
  339. */
  340. 'aria-selected'?: Booleanish
  341. /**
  342. * Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
  343. * @see aria-posinset.
  344. */
  345. 'aria-setsize'?: Numberish
  346. /** Indicates if items in a table or grid are sorted in ascending or descending order. */
  347. 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other'
  348. /** Defines the maximum allowed value for a range widget. */
  349. 'aria-valuemax'?: Numberish
  350. /** Defines the minimum allowed value for a range widget. */
  351. 'aria-valuemin'?: Numberish
  352. /**
  353. * Defines the current value for a range widget.
  354. * @see aria-valuetext.
  355. */
  356. 'aria-valuenow'?: Numberish
  357. /** Defines the human readable text alternative of aria-valuenow for a range widget. */
  358. 'aria-valuetext'?: string
  359. }
  360. // Vue's style normalization supports nested arrays
  361. export type StyleValue = string | CSSProperties | Array<StyleValue>
  362. export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
  363. innerHTML?: string
  364. class?: any
  365. style?: StyleValue
  366. // Standard HTML Attributes
  367. accesskey?: string
  368. contenteditable?: Booleanish | 'inherit'
  369. contextmenu?: string
  370. dir?: string
  371. draggable?: Booleanish
  372. hidden?: Booleanish
  373. id?: string
  374. lang?: string
  375. placeholder?: string
  376. spellcheck?: Booleanish
  377. tabindex?: Numberish
  378. title?: string
  379. translate?: 'yes' | 'no'
  380. // Unknown
  381. radiogroup?: string // <command>, <menuitem>
  382. // WAI-ARIA
  383. role?: string
  384. // RDFa Attributes
  385. about?: string
  386. datatype?: string
  387. inlist?: any
  388. prefix?: string
  389. property?: string
  390. resource?: string
  391. typeof?: string
  392. vocab?: string
  393. // Non-standard Attributes
  394. autocapitalize?: string
  395. autocorrect?: string
  396. autocave?: string
  397. color?: string
  398. itemprop?: string
  399. itemscope?: Booleanish
  400. itemtype?: string
  401. itemid?: string
  402. itemref?: string
  403. results?: Numberish
  404. security?: string
  405. unselectable?: 'on' | 'off'
  406. // Living Standard
  407. /**
  408. * Hints at the type of data that might be entered by the user while editing the element or its contents
  409. * @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
  410. */
  411. inputmode?:
  412. | 'none'
  413. | 'text'
  414. | 'tel'
  415. | 'url'
  416. | 'email'
  417. | 'numeric'
  418. | 'decimal'
  419. | 'search'
  420. /**
  421. * Specify that a standard HTML element should behave like a defined custom built-in element
  422. * @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
  423. */
  424. is?: string
  425. }
  426. export interface AnchorHTMLAttributes extends HTMLAttributes {
  427. download?: any
  428. href?: string
  429. hreflang?: string
  430. media?: string
  431. ping?: string
  432. rel?: string
  433. target?: string
  434. type?: string
  435. referrerpolicy?: string
  436. }
  437. export interface AreaHTMLAttributes extends HTMLAttributes {
  438. alt?: string
  439. coords?: string
  440. download?: any
  441. href?: string
  442. hreflang?: string
  443. media?: string
  444. rel?: string
  445. shape?: string
  446. target?: string
  447. }
  448. export interface AudioHTMLAttributes extends MediaHTMLAttributes {}
  449. export interface BaseHTMLAttributes extends HTMLAttributes {
  450. href?: string
  451. target?: string
  452. }
  453. export interface BlockquoteHTMLAttributes extends HTMLAttributes {
  454. cite?: string
  455. }
  456. export interface ButtonHTMLAttributes extends HTMLAttributes {
  457. autofocus?: Booleanish
  458. disabled?: Booleanish
  459. form?: string
  460. formaction?: string
  461. formenctype?: string
  462. formmethod?: string
  463. formnovalidate?: Booleanish
  464. formtarget?: string
  465. name?: string
  466. type?: 'submit' | 'reset' | 'button'
  467. value?: string | string[] | number
  468. }
  469. export interface CanvasHTMLAttributes extends HTMLAttributes {
  470. height?: Numberish
  471. width?: Numberish
  472. }
  473. export interface ColHTMLAttributes extends HTMLAttributes {
  474. span?: Numberish
  475. width?: Numberish
  476. }
  477. export interface ColgroupHTMLAttributes extends HTMLAttributes {
  478. span?: Numberish
  479. }
  480. export interface DataHTMLAttributes extends HTMLAttributes {
  481. value?: string | string[] | number
  482. }
  483. export interface DetailsHTMLAttributes extends HTMLAttributes {
  484. open?: Booleanish
  485. }
  486. export interface DelHTMLAttributes extends HTMLAttributes {
  487. cite?: string
  488. datetime?: string
  489. }
  490. export interface DialogHTMLAttributes extends HTMLAttributes {
  491. open?: Booleanish
  492. }
  493. export interface EmbedHTMLAttributes extends HTMLAttributes {
  494. height?: Numberish
  495. src?: string
  496. type?: string
  497. width?: Numberish
  498. }
  499. export interface FieldsetHTMLAttributes extends HTMLAttributes {
  500. disabled?: Booleanish
  501. form?: string
  502. name?: string
  503. }
  504. export interface FormHTMLAttributes extends HTMLAttributes {
  505. acceptcharset?: string
  506. action?: string
  507. autocomplete?: string
  508. enctype?: string
  509. method?: string
  510. name?: string
  511. novalidate?: Booleanish
  512. target?: string
  513. }
  514. export interface HtmlHTMLAttributes extends HTMLAttributes {
  515. manifest?: string
  516. }
  517. export interface IframeHTMLAttributes extends HTMLAttributes {
  518. allow?: string
  519. allowfullscreen?: Booleanish
  520. allowtransparency?: Booleanish
  521. frameborder?: Numberish
  522. height?: Numberish
  523. marginheight?: Numberish
  524. marginwidth?: Numberish
  525. name?: string
  526. referrerpolicy?: string
  527. sandbox?: string
  528. scrolling?: string
  529. seamless?: Booleanish
  530. src?: string
  531. srcdoc?: string
  532. width?: Numberish
  533. }
  534. export interface ImgHTMLAttributes extends HTMLAttributes {
  535. alt?: string
  536. crossorigin?: 'anonymous' | 'use-credentials' | ''
  537. decoding?: 'async' | 'auto' | 'sync'
  538. height?: Numberish
  539. sizes?: string
  540. src?: string
  541. srcset?: string
  542. usemap?: string
  543. width?: Numberish
  544. }
  545. export interface InsHTMLAttributes extends HTMLAttributes {
  546. cite?: string
  547. datetime?: string
  548. }
  549. export interface InputHTMLAttributes extends HTMLAttributes {
  550. accept?: string
  551. alt?: string
  552. autocomplete?: string
  553. autofocus?: Booleanish
  554. capture?: boolean | 'user' | 'environment' // https://www.w3.org/tr/html-media-capture/#the-capture-attribute
  555. checked?: Booleanish | any[] // for IDE v-model multi-checkbox support
  556. crossorigin?: string
  557. disabled?: Booleanish
  558. form?: string
  559. formaction?: string
  560. formenctype?: string
  561. formmethod?: string
  562. formnovalidate?: Booleanish
  563. formtarget?: string
  564. height?: Numberish
  565. list?: string
  566. max?: Numberish
  567. maxlength?: Numberish
  568. min?: Numberish
  569. minlength?: Numberish
  570. multiple?: Booleanish
  571. name?: string
  572. pattern?: string
  573. placeholder?: string
  574. readonly?: Booleanish
  575. required?: Booleanish
  576. size?: Numberish
  577. src?: string
  578. step?: Numberish
  579. type?: string
  580. value?: any // we support :value to be bound to anything w/ v-model
  581. width?: Numberish
  582. }
  583. export interface KeygenHTMLAttributes extends HTMLAttributes {
  584. autofocus?: Booleanish
  585. challenge?: string
  586. disabled?: Booleanish
  587. form?: string
  588. keytype?: string
  589. keyparams?: string
  590. name?: string
  591. }
  592. export interface LabelHTMLAttributes extends HTMLAttributes {
  593. for?: string
  594. form?: string
  595. }
  596. export interface LiHTMLAttributes extends HTMLAttributes {
  597. value?: string | string[] | number
  598. }
  599. export interface LinkHTMLAttributes extends HTMLAttributes {
  600. as?: string
  601. crossorigin?: string
  602. href?: string
  603. hreflang?: string
  604. integrity?: string
  605. media?: string
  606. rel?: string
  607. sizes?: string
  608. type?: string
  609. }
  610. export interface MapHTMLAttributes extends HTMLAttributes {
  611. name?: string
  612. }
  613. export interface MenuHTMLAttributes extends HTMLAttributes {
  614. type?: string
  615. }
  616. export interface MediaHTMLAttributes extends HTMLAttributes {
  617. autoplay?: Booleanish
  618. controls?: Booleanish
  619. controlslist?: string
  620. crossorigin?: string
  621. loop?: Booleanish
  622. mediagroup?: string
  623. muted?: Booleanish
  624. playsinline?: Booleanish
  625. preload?: string
  626. src?: string
  627. }
  628. export interface MetaHTMLAttributes extends HTMLAttributes {
  629. charset?: string
  630. content?: string
  631. httpequiv?: string
  632. name?: string
  633. }
  634. export interface MeterHTMLAttributes extends HTMLAttributes {
  635. form?: string
  636. high?: Numberish
  637. low?: Numberish
  638. max?: Numberish
  639. min?: Numberish
  640. optimum?: Numberish
  641. value?: string | string[] | number
  642. }
  643. export interface QuoteHTMLAttributes extends HTMLAttributes {
  644. cite?: string
  645. }
  646. export interface ObjectHTMLAttributes extends HTMLAttributes {
  647. classid?: string
  648. data?: string
  649. form?: string
  650. height?: Numberish
  651. name?: string
  652. type?: string
  653. usemap?: string
  654. width?: Numberish
  655. wmode?: string
  656. }
  657. export interface OlHTMLAttributes extends HTMLAttributes {
  658. reversed?: Booleanish
  659. start?: Numberish
  660. type?: '1' | 'a' | 'A' | 'i' | 'I'
  661. }
  662. export interface OptgroupHTMLAttributes extends HTMLAttributes {
  663. disabled?: Booleanish
  664. label?: string
  665. }
  666. export interface OptionHTMLAttributes extends HTMLAttributes {
  667. disabled?: Booleanish
  668. label?: string
  669. selected?: Booleanish
  670. value?: any // we support :value to be bound to anything w/ v-model
  671. }
  672. export interface OutputHTMLAttributes extends HTMLAttributes {
  673. for?: string
  674. form?: string
  675. name?: string
  676. }
  677. export interface ParamHTMLAttributes extends HTMLAttributes {
  678. name?: string
  679. value?: string | string[] | number
  680. }
  681. export interface ProgressHTMLAttributes extends HTMLAttributes {
  682. max?: Numberish
  683. value?: string | string[] | number
  684. }
  685. export interface ScriptHTMLAttributes extends HTMLAttributes {
  686. async?: Booleanish
  687. charset?: string
  688. crossorigin?: string
  689. defer?: Booleanish
  690. integrity?: string
  691. nomodule?: Booleanish
  692. nonce?: string
  693. src?: string
  694. type?: string
  695. }
  696. export interface SelectHTMLAttributes extends HTMLAttributes {
  697. autocomplete?: string
  698. autofocus?: Booleanish
  699. disabled?: Booleanish
  700. form?: string
  701. multiple?: Booleanish
  702. name?: string
  703. required?: Booleanish
  704. size?: Numberish
  705. value?: any // we support :value to be bound to anything w/ v-model
  706. }
  707. export interface SourceHTMLAttributes extends HTMLAttributes {
  708. media?: string
  709. sizes?: string
  710. src?: string
  711. srcset?: string
  712. type?: string
  713. }
  714. export interface StyleHTMLAttributes extends HTMLAttributes {
  715. media?: string
  716. nonce?: string
  717. scoped?: Booleanish
  718. type?: string
  719. }
  720. export interface TableHTMLAttributes extends HTMLAttributes {
  721. cellpadding?: Numberish
  722. cellspacing?: Numberish
  723. summary?: string
  724. }
  725. export interface TextareaHTMLAttributes extends HTMLAttributes {
  726. autocomplete?: string
  727. autofocus?: Booleanish
  728. cols?: Numberish
  729. dirname?: string
  730. disabled?: Booleanish
  731. form?: string
  732. maxlength?: Numberish
  733. minlength?: Numberish
  734. name?: string
  735. placeholder?: string
  736. readonly?: boolean
  737. required?: Booleanish
  738. rows?: Numberish
  739. value?: string | string[] | number
  740. wrap?: string
  741. }
  742. export interface TdHTMLAttributes extends HTMLAttributes {
  743. align?: 'left' | 'center' | 'right' | 'justify' | 'char'
  744. colspan?: Numberish
  745. headers?: string
  746. rowspan?: Numberish
  747. scope?: string
  748. valign?: 'top' | 'middle' | 'bottom' | 'baseline'
  749. }
  750. export interface ThHTMLAttributes extends HTMLAttributes {
  751. align?: 'left' | 'center' | 'right' | 'justify' | 'char'
  752. colspan?: Numberish
  753. headers?: string
  754. rowspan?: Numberish
  755. scope?: string
  756. }
  757. export interface TimeHTMLAttributes extends HTMLAttributes {
  758. datetime?: string
  759. }
  760. export interface TrackHTMLAttributes extends HTMLAttributes {
  761. default?: Booleanish
  762. kind?: string
  763. label?: string
  764. src?: string
  765. srclang?: string
  766. }
  767. export interface VideoHTMLAttributes extends MediaHTMLAttributes {
  768. height?: Numberish
  769. playsinline?: Booleanish
  770. poster?: string
  771. width?: Numberish
  772. disablePictureInPicture?: Booleanish
  773. }
  774. export interface WebViewHTMLAttributes extends HTMLAttributes {
  775. allowfullscreen?: Booleanish
  776. allowpopups?: Booleanish
  777. autoFocus?: Booleanish
  778. autosize?: Booleanish
  779. blinkfeatures?: string
  780. disableblinkfeatures?: string
  781. disableguestresize?: Booleanish
  782. disablewebsecurity?: Booleanish
  783. guestinstance?: string
  784. httpreferrer?: string
  785. nodeintegration?: Booleanish
  786. partition?: string
  787. plugins?: Booleanish
  788. preload?: string
  789. src?: string
  790. useragent?: string
  791. webpreferences?: string
  792. }
  793. export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
  794. innerHTML?: string
  795. /**
  796. * SVG Styling Attributes
  797. * @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
  798. */
  799. class?: any
  800. style?: string | CSSProperties
  801. color?: string
  802. height?: Numberish
  803. id?: string
  804. lang?: string
  805. max?: Numberish
  806. media?: string
  807. method?: string
  808. min?: Numberish
  809. name?: string
  810. target?: string
  811. type?: string
  812. width?: Numberish
  813. // Other HTML properties supported by SVG elements in browsers
  814. role?: string
  815. tabindex?: Numberish
  816. // SVG Specific attributes
  817. 'accent-height'?: Numberish
  818. accumulate?: 'none' | 'sum'
  819. additive?: 'replace' | 'sum'
  820. 'alignment-baseline'?:
  821. | 'auto'
  822. | 'baseline'
  823. | 'before-edge'
  824. | 'text-before-edge'
  825. | 'middle'
  826. | 'central'
  827. | 'after-edge'
  828. | 'text-after-edge'
  829. | 'ideographic'
  830. | 'alphabetic'
  831. | 'hanging'
  832. | 'mathematical'
  833. | 'inherit'
  834. allowReorder?: 'no' | 'yes'
  835. alphabetic?: Numberish
  836. amplitude?: Numberish
  837. 'arabic-form'?: 'initial' | 'medial' | 'terminal' | 'isolated'
  838. ascent?: Numberish
  839. attributeName?: string
  840. attributeType?: string
  841. autoReverse?: Numberish
  842. azimuth?: Numberish
  843. baseFrequency?: Numberish
  844. 'baseline-shift'?: Numberish
  845. baseProfile?: Numberish
  846. bbox?: Numberish
  847. begin?: Numberish
  848. bias?: Numberish
  849. by?: Numberish
  850. calcMode?: Numberish
  851. 'cap-height'?: Numberish
  852. clip?: Numberish
  853. 'clip-path'?: string
  854. clipPathUnits?: Numberish
  855. 'clip-rule'?: Numberish
  856. 'color-interpolation'?: Numberish
  857. 'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB' | 'inherit'
  858. 'color-profile'?: Numberish
  859. 'color-rendering'?: Numberish
  860. contentScriptType?: Numberish
  861. contentStyleType?: Numberish
  862. cursor?: Numberish
  863. cx?: Numberish
  864. cy?: Numberish
  865. d?: string
  866. decelerate?: Numberish
  867. descent?: Numberish
  868. diffuseConstant?: Numberish
  869. direction?: Numberish
  870. display?: Numberish
  871. divisor?: Numberish
  872. 'dominant-baseline'?: Numberish
  873. dur?: Numberish
  874. dx?: Numberish
  875. dy?: Numberish
  876. edgeMode?: Numberish
  877. elevation?: Numberish
  878. 'enable-background'?: Numberish
  879. end?: Numberish
  880. exponent?: Numberish
  881. externalResourcesRequired?: Numberish
  882. fill?: string
  883. 'fill-opacity'?: Numberish
  884. 'fill-rule'?: 'nonzero' | 'evenodd' | 'inherit'
  885. filter?: string
  886. filterRes?: Numberish
  887. filterUnits?: Numberish
  888. 'flood-color'?: Numberish
  889. 'flood-opacity'?: Numberish
  890. focusable?: Numberish
  891. 'font-family'?: string
  892. 'font-size'?: Numberish
  893. 'font-size-adjust'?: Numberish
  894. 'font-stretch'?: Numberish
  895. 'font-style'?: Numberish
  896. 'font-variant'?: Numberish
  897. 'font-weight'?: Numberish
  898. format?: Numberish
  899. from?: Numberish
  900. fx?: Numberish
  901. fy?: Numberish
  902. g1?: Numberish
  903. g2?: Numberish
  904. 'glyph-name'?: Numberish
  905. 'glyph-orientation-horizontal'?: Numberish
  906. 'glyph-orientation-vertical'?: Numberish
  907. glyphRef?: Numberish
  908. gradientTransform?: string
  909. gradientUnits?: string
  910. hanging?: Numberish
  911. 'horiz-adv-x'?: Numberish
  912. 'horiz-origin-x'?: Numberish
  913. href?: string
  914. ideographic?: Numberish
  915. 'image-rendering'?: Numberish
  916. in2?: Numberish
  917. in?: string
  918. intercept?: Numberish
  919. k1?: Numberish
  920. k2?: Numberish
  921. k3?: Numberish
  922. k4?: Numberish
  923. k?: Numberish
  924. kernelMatrix?: Numberish
  925. kernelUnitLength?: Numberish
  926. kerning?: Numberish
  927. keyPoints?: Numberish
  928. keySplines?: Numberish
  929. keyTimes?: Numberish
  930. lengthAdjust?: Numberish
  931. 'letter-spacing'?: Numberish
  932. 'lighting-color'?: Numberish
  933. limitingConeAngle?: Numberish
  934. local?: Numberish
  935. 'marker-end'?: string
  936. markerHeight?: Numberish
  937. 'marker-mid'?: string
  938. 'marker-start'?: string
  939. markerUnits?: Numberish
  940. markerWidth?: Numberish
  941. mask?: string
  942. maskContentUnits?: Numberish
  943. maskUnits?: Numberish
  944. mathematical?: Numberish
  945. mode?: Numberish
  946. numOctaves?: Numberish
  947. offset?: Numberish
  948. opacity?: Numberish
  949. operator?: Numberish
  950. order?: Numberish
  951. orient?: Numberish
  952. orientation?: Numberish
  953. origin?: Numberish
  954. overflow?: Numberish
  955. 'overline-position'?: Numberish
  956. 'overline-thickness'?: Numberish
  957. 'paint-order'?: Numberish
  958. 'panose-1'?: Numberish
  959. pathLength?: Numberish
  960. patternContentUnits?: string
  961. patternTransform?: Numberish
  962. patternUnits?: string
  963. 'pointer-events'?: Numberish
  964. points?: string
  965. pointsAtX?: Numberish
  966. pointsAtY?: Numberish
  967. pointsAtZ?: Numberish
  968. preserveAlpha?: Numberish
  969. preserveAspectRatio?: string
  970. primitiveUnits?: Numberish
  971. r?: Numberish
  972. radius?: Numberish
  973. refX?: Numberish
  974. refY?: Numberish
  975. renderingIntent?: Numberish
  976. repeatCount?: Numberish
  977. repeatDur?: Numberish
  978. requiredExtensions?: Numberish
  979. requiredFeatures?: Numberish
  980. restart?: Numberish
  981. result?: string
  982. rotate?: Numberish
  983. rx?: Numberish
  984. ry?: Numberish
  985. scale?: Numberish
  986. seed?: Numberish
  987. 'shape-rendering'?: Numberish
  988. slope?: Numberish
  989. spacing?: Numberish
  990. specularConstant?: Numberish
  991. specularExponent?: Numberish
  992. speed?: Numberish
  993. spreadMethod?: string
  994. startOffset?: Numberish
  995. stdDeviation?: Numberish
  996. stemh?: Numberish
  997. stemv?: Numberish
  998. stitchTiles?: Numberish
  999. 'stop-color'?: string
  1000. 'stop-opacity'?: Numberish
  1001. 'strikethrough-position'?: Numberish
  1002. 'strikethrough-thickness'?: Numberish
  1003. string?: Numberish
  1004. stroke?: string
  1005. 'stroke-dasharray'?: Numberish
  1006. 'stroke-dashoffset'?: Numberish
  1007. 'stroke-linecap'?: 'butt' | 'round' | 'square' | 'inherit'
  1008. 'stroke-linejoin'?: 'miter' | 'round' | 'bevel' | 'inherit'
  1009. 'stroke-miterlimit'?: Numberish
  1010. 'stroke-opacity'?: Numberish
  1011. 'stroke-width'?: Numberish
  1012. surfaceScale?: Numberish
  1013. systemLanguage?: Numberish
  1014. tableValues?: Numberish
  1015. targetX?: Numberish
  1016. targetY?: Numberish
  1017. 'text-anchor'?: string
  1018. 'text-decoration'?: Numberish
  1019. textLength?: Numberish
  1020. 'text-rendering'?: Numberish
  1021. to?: Numberish
  1022. transform?: string
  1023. u1?: Numberish
  1024. u2?: Numberish
  1025. 'underline-position'?: Numberish
  1026. 'underline-thickness'?: Numberish
  1027. unicode?: Numberish
  1028. 'unicode-bidi'?: Numberish
  1029. 'unicode-range'?: Numberish
  1030. 'unitsPer-em'?: Numberish
  1031. 'v-alphabetic'?: Numberish
  1032. values?: string
  1033. 'vector-effect'?: Numberish
  1034. version?: string
  1035. 'vert-adv-y'?: Numberish
  1036. 'vert-origin-x'?: Numberish
  1037. 'vert-origin-y'?: Numberish
  1038. 'v-hanging'?: Numberish
  1039. 'v-ideographic'?: Numberish
  1040. viewBox?: string
  1041. viewTarget?: Numberish
  1042. visibility?: Numberish
  1043. 'v-mathematical'?: Numberish
  1044. widths?: Numberish
  1045. 'word-spacing'?: Numberish
  1046. 'writing-mode'?: Numberish
  1047. x1?: Numberish
  1048. x2?: Numberish
  1049. x?: Numberish
  1050. xChannelSelector?: string
  1051. 'x-height'?: Numberish
  1052. xlinkActuate?: string
  1053. xlinkArcrole?: string
  1054. xlinkHref?: string
  1055. xlinkRole?: string
  1056. xlinkShow?: string
  1057. xlinkTitle?: string
  1058. xlinkType?: string
  1059. xmlns?: string
  1060. y1?: Numberish
  1061. y2?: Numberish
  1062. y?: Numberish
  1063. yChannelSelector?: string
  1064. z?: Numberish
  1065. zoomAndPan?: string
  1066. }
  1067. interface IntrinsicElementAttributes {
  1068. a: AnchorHTMLAttributes
  1069. abbr: HTMLAttributes
  1070. address: HTMLAttributes
  1071. area: AreaHTMLAttributes
  1072. article: HTMLAttributes
  1073. aside: HTMLAttributes
  1074. audio: AudioHTMLAttributes
  1075. b: HTMLAttributes
  1076. base: BaseHTMLAttributes
  1077. bdi: HTMLAttributes
  1078. bdo: HTMLAttributes
  1079. blockquote: BlockquoteHTMLAttributes
  1080. body: HTMLAttributes
  1081. br: HTMLAttributes
  1082. button: ButtonHTMLAttributes
  1083. canvas: CanvasHTMLAttributes
  1084. caption: HTMLAttributes
  1085. cite: HTMLAttributes
  1086. code: HTMLAttributes
  1087. col: ColHTMLAttributes
  1088. colgroup: ColgroupHTMLAttributes
  1089. data: DataHTMLAttributes
  1090. datalist: HTMLAttributes
  1091. dd: HTMLAttributes
  1092. del: DelHTMLAttributes
  1093. details: DetailsHTMLAttributes
  1094. dfn: HTMLAttributes
  1095. dialog: DialogHTMLAttributes
  1096. div: HTMLAttributes
  1097. dl: HTMLAttributes
  1098. dt: HTMLAttributes
  1099. em: HTMLAttributes
  1100. embed: EmbedHTMLAttributes
  1101. fieldset: FieldsetHTMLAttributes
  1102. figcaption: HTMLAttributes
  1103. figure: HTMLAttributes
  1104. footer: HTMLAttributes
  1105. form: FormHTMLAttributes
  1106. h1: HTMLAttributes
  1107. h2: HTMLAttributes
  1108. h3: HTMLAttributes
  1109. h4: HTMLAttributes
  1110. h5: HTMLAttributes
  1111. h6: HTMLAttributes
  1112. head: HTMLAttributes
  1113. header: HTMLAttributes
  1114. hgroup: HTMLAttributes
  1115. hr: HTMLAttributes
  1116. html: HtmlHTMLAttributes
  1117. i: HTMLAttributes
  1118. iframe: IframeHTMLAttributes
  1119. img: ImgHTMLAttributes
  1120. input: InputHTMLAttributes
  1121. ins: InsHTMLAttributes
  1122. kbd: HTMLAttributes
  1123. keygen: KeygenHTMLAttributes
  1124. label: LabelHTMLAttributes
  1125. legend: HTMLAttributes
  1126. li: LiHTMLAttributes
  1127. link: LinkHTMLAttributes
  1128. main: HTMLAttributes
  1129. map: MapHTMLAttributes
  1130. mark: HTMLAttributes
  1131. menu: MenuHTMLAttributes
  1132. meta: MetaHTMLAttributes
  1133. meter: MeterHTMLAttributes
  1134. nav: HTMLAttributes
  1135. noindex: HTMLAttributes
  1136. noscript: HTMLAttributes
  1137. object: ObjectHTMLAttributes
  1138. ol: OlHTMLAttributes
  1139. optgroup: OptgroupHTMLAttributes
  1140. option: OptionHTMLAttributes
  1141. output: OutputHTMLAttributes
  1142. p: HTMLAttributes
  1143. param: ParamHTMLAttributes
  1144. picture: HTMLAttributes
  1145. pre: HTMLAttributes
  1146. progress: ProgressHTMLAttributes
  1147. q: QuoteHTMLAttributes
  1148. rp: HTMLAttributes
  1149. rt: HTMLAttributes
  1150. ruby: HTMLAttributes
  1151. s: HTMLAttributes
  1152. samp: HTMLAttributes
  1153. script: ScriptHTMLAttributes
  1154. section: HTMLAttributes
  1155. select: SelectHTMLAttributes
  1156. small: HTMLAttributes
  1157. source: SourceHTMLAttributes
  1158. span: HTMLAttributes
  1159. strong: HTMLAttributes
  1160. style: StyleHTMLAttributes
  1161. sub: HTMLAttributes
  1162. summary: HTMLAttributes
  1163. sup: HTMLAttributes
  1164. table: TableHTMLAttributes
  1165. template: HTMLAttributes
  1166. tbody: HTMLAttributes
  1167. td: TdHTMLAttributes
  1168. textarea: TextareaHTMLAttributes
  1169. tfoot: HTMLAttributes
  1170. th: ThHTMLAttributes
  1171. thead: HTMLAttributes
  1172. time: TimeHTMLAttributes
  1173. title: HTMLAttributes
  1174. tr: HTMLAttributes
  1175. track: TrackHTMLAttributes
  1176. u: HTMLAttributes
  1177. ul: HTMLAttributes
  1178. var: HTMLAttributes
  1179. video: VideoHTMLAttributes
  1180. wbr: HTMLAttributes
  1181. webview: WebViewHTMLAttributes
  1182. // SVG
  1183. svg: SVGAttributes
  1184. animate: SVGAttributes
  1185. animateMotion: SVGAttributes
  1186. animateTransform: SVGAttributes
  1187. circle: SVGAttributes
  1188. clipPath: SVGAttributes
  1189. defs: SVGAttributes
  1190. desc: SVGAttributes
  1191. ellipse: SVGAttributes
  1192. feBlend: SVGAttributes
  1193. feColorMatrix: SVGAttributes
  1194. feComponentTransfer: SVGAttributes
  1195. feComposite: SVGAttributes
  1196. feConvolveMatrix: SVGAttributes
  1197. feDiffuseLighting: SVGAttributes
  1198. feDisplacementMap: SVGAttributes
  1199. feDistantLight: SVGAttributes
  1200. feDropShadow: SVGAttributes
  1201. feFlood: SVGAttributes
  1202. feFuncA: SVGAttributes
  1203. feFuncB: SVGAttributes
  1204. feFuncG: SVGAttributes
  1205. feFuncR: SVGAttributes
  1206. feGaussianBlur: SVGAttributes
  1207. feImage: SVGAttributes
  1208. feMerge: SVGAttributes
  1209. feMergeNode: SVGAttributes
  1210. feMorphology: SVGAttributes
  1211. feOffset: SVGAttributes
  1212. fePointLight: SVGAttributes
  1213. feSpecularLighting: SVGAttributes
  1214. feSpotLight: SVGAttributes
  1215. feTile: SVGAttributes
  1216. feTurbulence: SVGAttributes
  1217. filter: SVGAttributes
  1218. foreignObject: SVGAttributes
  1219. g: SVGAttributes
  1220. image: SVGAttributes
  1221. line: SVGAttributes
  1222. linearGradient: SVGAttributes
  1223. marker: SVGAttributes
  1224. mask: SVGAttributes
  1225. metadata: SVGAttributes
  1226. mpath: SVGAttributes
  1227. path: SVGAttributes
  1228. pattern: SVGAttributes
  1229. polygon: SVGAttributes
  1230. polyline: SVGAttributes
  1231. radialGradient: SVGAttributes
  1232. rect: SVGAttributes
  1233. stop: SVGAttributes
  1234. switch: SVGAttributes
  1235. symbol: SVGAttributes
  1236. text: SVGAttributes
  1237. textPath: SVGAttributes
  1238. tspan: SVGAttributes
  1239. use: SVGAttributes
  1240. view: SVGAttributes
  1241. }
  1242. export interface Events {
  1243. // clipboard events
  1244. onCopy: ClipboardEvent
  1245. onCut: ClipboardEvent
  1246. onPaste: ClipboardEvent
  1247. // composition events
  1248. onCompositionend: CompositionEvent
  1249. onCompositionstart: CompositionEvent
  1250. onCompositionupdate: CompositionEvent
  1251. // drag drop events
  1252. onDrag: DragEvent
  1253. onDragend: DragEvent
  1254. onDragenter: DragEvent
  1255. onDragexit: DragEvent
  1256. onDragleave: DragEvent
  1257. onDragover: DragEvent
  1258. onDragstart: DragEvent
  1259. onDrop: DragEvent
  1260. // focus events
  1261. onFocus: FocusEvent
  1262. onFocusin: FocusEvent
  1263. onFocusout: FocusEvent
  1264. onBlur: FocusEvent
  1265. // form events
  1266. onChange: Event
  1267. onBeforeinput: Event
  1268. onInput: Event
  1269. onReset: Event
  1270. onSubmit: Event
  1271. onInvalid: Event
  1272. // image events
  1273. onLoad: Event
  1274. onError: Event
  1275. // keyboard events
  1276. onKeydown: KeyboardEvent
  1277. onKeypress: KeyboardEvent
  1278. onKeyup: KeyboardEvent
  1279. // mouse events
  1280. onAuxclick: MouseEvent
  1281. onClick: MouseEvent
  1282. onContextmenu: MouseEvent
  1283. onDblclick: MouseEvent
  1284. onMousedown: MouseEvent
  1285. onMouseenter: MouseEvent
  1286. onMouseleave: MouseEvent
  1287. onMousemove: MouseEvent
  1288. onMouseout: MouseEvent
  1289. onMouseover: MouseEvent
  1290. onMouseup: MouseEvent
  1291. // media events
  1292. onAbort: Event
  1293. onCanplay: Event
  1294. onCanplaythrough: Event
  1295. onDurationchange: Event
  1296. onEmptied: Event
  1297. onEncrypted: Event
  1298. onEnded: Event
  1299. onLoadeddata: Event
  1300. onLoadedmetadata: Event
  1301. onLoadstart: Event
  1302. onPause: Event
  1303. onPlay: Event
  1304. onPlaying: Event
  1305. onProgress: Event
  1306. onRatechange: Event
  1307. onSeeked: Event
  1308. onSeeking: Event
  1309. onStalled: Event
  1310. onSuspend: Event
  1311. onTimeupdate: Event
  1312. onVolumechange: Event
  1313. onWaiting: Event
  1314. // selection events
  1315. onSelect: Event
  1316. // UI events
  1317. onScroll: UIEvent
  1318. // touch events
  1319. onTouchcancel: TouchEvent
  1320. onTouchend: TouchEvent
  1321. onTouchmove: TouchEvent
  1322. onTouchstart: TouchEvent
  1323. // pointer events
  1324. onPointerdown: PointerEvent
  1325. onPointermove: PointerEvent
  1326. onPointerup: PointerEvent
  1327. onPointercancel: PointerEvent
  1328. onPointerenter: PointerEvent
  1329. onPointerleave: PointerEvent
  1330. onPointerover: PointerEvent
  1331. onPointerout: PointerEvent
  1332. // wheel events
  1333. onWheel: WheelEvent
  1334. // animation events
  1335. onAnimationstart: AnimationEvent
  1336. onAnimationend: AnimationEvent
  1337. onAnimationiteration: AnimationEvent
  1338. // transition events
  1339. onTransitionend: TransitionEvent
  1340. onTransitionstart: TransitionEvent
  1341. }
  1342. type EventHandlers<E> = {
  1343. [K in keyof E]?: E[K] extends Function ? E[K] : (payload: E[K]) => void
  1344. }
  1345. // use namespace import to avoid collision with generated types which use
  1346. // named imports.
  1347. import * as RuntimeCore from '@vue/runtime-core'
  1348. type ReservedProps = {
  1349. key?: string | number | symbol
  1350. ref?:
  1351. | string
  1352. | RuntimeCore.Ref
  1353. | ((ref: Element | RuntimeCore.ComponentPublicInstance | null) => void)
  1354. ref_for?: boolean
  1355. ref_key?: string
  1356. }
  1357. type ElementAttrs<T> = T & ReservedProps
  1358. type NativeElements = {
  1359. [K in keyof IntrinsicElementAttributes]: ElementAttrs<
  1360. IntrinsicElementAttributes[K]
  1361. >
  1362. }
  1363. declare global {
  1364. namespace JSX {
  1365. interface Element extends VNode {}
  1366. interface ElementClass {
  1367. $props: {}
  1368. }
  1369. interface ElementAttributesProperty {
  1370. $props: {}
  1371. }
  1372. interface IntrinsicElements extends NativeElements {
  1373. // allow arbitrary elements
  1374. // @ts-ignore suppress ts:2374 = Duplicate string index signature.
  1375. [name: string]: any
  1376. }
  1377. interface IntrinsicAttributes extends ReservedProps {}
  1378. }
  1379. }
  1380. // suppress ts:2669
  1381. export {}
  1382. // Note: this file is auto concatenated to the end of the bundled d.ts during
  1383. // build.
  1384. declare module '@vue/reactivity' {
  1385. export interface RefUnwrapBailTypes {
  1386. runtimeDOMBailTypes: Node | Window
  1387. }
  1388. }