runtime-dom.d.ts 46 KB

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