runtime-dom.d.ts 43 KB

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