runtime-dom.d.ts 56 KB

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