runtime-dom.d.ts 57 KB

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