components
2 weeks ago
testing
2 years ago
components.d.ts
3 months ago
index.d.ts
5 years ago
interfaces.d.ts
3 months ago
stencil-public-runtime.d.ts
10 months ago
util.d.ts
2 years ago
stencil-public-runtime.d.ts
1710 lines
| 1 | declare type CustomMethodDecorator<T> = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void; |
| 2 | export interface ComponentDecorator { |
| 3 | (opts?: ComponentOptions): ClassDecorator; |
| 4 | } |
| 5 | export interface ComponentOptions { |
| 6 | /** |
| 7 | * When set to `true` this component will be form-associated. See |
| 8 | * https://stenciljs.com/docs/next/form-associated documentation on how to |
| 9 | * build form-associated Stencil components that integrate into forms like |
| 10 | * native browser elements such as `<input>` and `<textarea>`. |
| 11 | * |
| 12 | * The {@link AttachInternals} decorator allows for access to the |
| 13 | * `ElementInternals` object to modify the associated form. |
| 14 | */ |
| 15 | formAssociated?: boolean; |
| 16 | /** |
| 17 | * Tag name of the web component. Ideally, the tag name must be globally unique, |
| 18 | * so it's recommended to choose an unique prefix for all your components within the same collection. |
| 19 | * |
| 20 | * In addition, tag name must contain a '-' |
| 21 | */ |
| 22 | tag: string; |
| 23 | /** |
| 24 | * If `true`, the component will use scoped stylesheets. Similar to shadow-dom, |
| 25 | * but without native isolation. Defaults to `false`. |
| 26 | */ |
| 27 | scoped?: boolean; |
| 28 | /** |
| 29 | * If `true`, the component will use native shadow-dom encapsulation, it will fallback to |
| 30 | * `scoped` if the browser does not support shadow-dom natively. Defaults to `false`. |
| 31 | * Additionally, `shadow` can also be given options when attaching the shadow root. |
| 32 | */ |
| 33 | shadow?: boolean | ShadowRootOptions; |
| 34 | /** |
| 35 | * Relative URL to some external stylesheet file. It should be a `.css` file unless some |
| 36 | * external plugin is installed like `@stencil/sass`. |
| 37 | */ |
| 38 | styleUrl?: string; |
| 39 | /** |
| 40 | * Similar as `styleUrl` but allows to specify different stylesheets for different modes. |
| 41 | */ |
| 42 | styleUrls?: string[] | ModeStyles; |
| 43 | /** |
| 44 | * String that contains inlined CSS instead of using an external stylesheet. |
| 45 | * The performance characteristics of this feature are the same as using an external stylesheet. |
| 46 | * |
| 47 | * Notice, you can't use sass, or less, only `css` is allowed using `styles`, use `styleUrl` is you need more advanced features. |
| 48 | */ |
| 49 | styles?: string | { |
| 50 | [modeName: string]: any; |
| 51 | }; |
| 52 | /** |
| 53 | * Array of relative links to folders of assets required by the component. |
| 54 | */ |
| 55 | assetsDirs?: string[]; |
| 56 | } |
| 57 | export interface ShadowRootOptions { |
| 58 | /** |
| 59 | * When set to `true`, specifies behavior that mitigates custom element issues |
| 60 | * around focusability. When a non-focusable part of the shadow DOM is clicked, the first |
| 61 | * focusable part is given focus, and the shadow host is given any available `:focus` styling. |
| 62 | */ |
| 63 | delegatesFocus?: boolean; |
| 64 | } |
| 65 | export interface ModeStyles { |
| 66 | [modeName: string]: string | string[]; |
| 67 | } |
| 68 | export interface PropDecorator { |
| 69 | (opts?: PropOptions): PropertyDecorator; |
| 70 | } |
| 71 | export interface PropOptions { |
| 72 | /** |
| 73 | * The name of the associated DOM attribute. |
| 74 | * Stencil uses different heuristics to determine the default name of the attribute, |
| 75 | * but using this property, you can override the default behavior. |
| 76 | */ |
| 77 | attribute?: string | null; |
| 78 | /** |
| 79 | * A Prop is _by default_ immutable from inside the component logic. |
| 80 | * Once a value is set by a user, the component cannot update it internally. |
| 81 | * However, it's possible to explicitly allow a Prop to be mutated from inside the component, |
| 82 | * by setting this `mutable` option to `true`. |
| 83 | */ |
| 84 | mutable?: boolean; |
| 85 | /** |
| 86 | * In some cases it may be useful to keep a Prop in sync with an attribute. |
| 87 | * In this case you can set the `reflect` option to `true`, since it defaults to `false`: |
| 88 | */ |
| 89 | reflect?: boolean; |
| 90 | } |
| 91 | export interface MethodDecorator { |
| 92 | (opts?: MethodOptions): CustomMethodDecorator<any>; |
| 93 | } |
| 94 | export interface MethodOptions { |
| 95 | } |
| 96 | export interface ElementDecorator { |
| 97 | (): PropertyDecorator; |
| 98 | } |
| 99 | export interface EventDecorator { |
| 100 | (opts?: EventOptions): PropertyDecorator; |
| 101 | } |
| 102 | export interface EventOptions { |
| 103 | /** |
| 104 | * A string custom event name to override the default. |
| 105 | */ |
| 106 | eventName?: string; |
| 107 | /** |
| 108 | * A Boolean indicating whether the event bubbles up through the DOM or not. |
| 109 | */ |
| 110 | bubbles?: boolean; |
| 111 | /** |
| 112 | * A Boolean indicating whether the event is cancelable. |
| 113 | */ |
| 114 | cancelable?: boolean; |
| 115 | /** |
| 116 | * A Boolean value indicating whether or not the event can bubble across the boundary between the shadow DOM and the regular DOM. |
| 117 | */ |
| 118 | composed?: boolean; |
| 119 | } |
| 120 | export interface AttachInternalsDecorator { |
| 121 | (): PropertyDecorator; |
| 122 | } |
| 123 | export interface ListenDecorator { |
| 124 | (eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>; |
| 125 | } |
| 126 | export interface ListenOptions { |
| 127 | /** |
| 128 | * Handlers can also be registered for an event other than the host itself. |
| 129 | * The `target` option can be used to change where the event listener is attached, |
| 130 | * this is useful for listening to application-wide events. |
| 131 | */ |
| 132 | target?: ListenTargetOptions; |
| 133 | /** |
| 134 | * Event listener attached with `@Listen` does not "capture" by default, |
| 135 | * When a event listener is set to "capture", means the event will be dispatched |
| 136 | * during the "capture phase". Please see |
| 137 | * https://www.quirksmode.org/js/events_order.html for further information. |
| 138 | */ |
| 139 | capture?: boolean; |
| 140 | /** |
| 141 | * By default, Stencil uses several heuristics to determine if |
| 142 | * it must attach a `passive` event listener or not. |
| 143 | * |
| 144 | * Using the `passive` option can be used to change the default behavior. |
| 145 | * Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information. |
| 146 | */ |
| 147 | passive?: boolean; |
| 148 | } |
| 149 | export type ListenTargetOptions = 'body' | 'document' | 'window'; |
| 150 | export interface StateDecorator { |
| 151 | (): PropertyDecorator; |
| 152 | } |
| 153 | export interface WatchDecorator { |
| 154 | (propName: string): CustomMethodDecorator<any>; |
| 155 | } |
| 156 | export interface UserBuildConditionals { |
| 157 | isDev: boolean; |
| 158 | isBrowser: boolean; |
| 159 | isServer: boolean; |
| 160 | isTesting: boolean; |
| 161 | } |
| 162 | /** |
| 163 | * The `Build` object provides many build conditionals that can be used to |
| 164 | * include or exclude code depending on the build. |
| 165 | */ |
| 166 | export declare const Build: UserBuildConditionals; |
| 167 | /** |
| 168 | * The `Env` object provides access to the "env" object declared in the project's `stencil.config.ts`. |
| 169 | */ |
| 170 | export declare const Env: { |
| 171 | [prop: string]: string | undefined; |
| 172 | }; |
| 173 | /** |
| 174 | * The `@Component()` decorator is used to provide metadata about the component class. |
| 175 | * https://stenciljs.com/docs/component |
| 176 | */ |
| 177 | export declare const Component: ComponentDecorator; |
| 178 | /** |
| 179 | * The `@Element()` decorator is a reference to the actual host element |
| 180 | * once it has rendered. |
| 181 | */ |
| 182 | export declare const Element: ElementDecorator; |
| 183 | /** |
| 184 | * Components can emit data and events using the Event Emitter decorator. |
| 185 | * To dispatch Custom DOM events for other components to handle, use the |
| 186 | * `@Event()` decorator. The Event decorator also makes it easier for Stencil |
| 187 | * to automatically build types and documentation for the event data. |
| 188 | * https://stenciljs.com/docs/events |
| 189 | */ |
| 190 | export declare const Event: EventDecorator; |
| 191 | /** |
| 192 | * If the `formAssociated` option is set in options passed to the |
| 193 | * `@Component()` decorator then this decorator may be used to get access to the |
| 194 | * `ElementInternals` instance associated with the component. |
| 195 | */ |
| 196 | export declare const AttachInternals: AttachInternalsDecorator; |
| 197 | /** |
| 198 | * The `Listen()` decorator is for listening DOM events, including the ones |
| 199 | * dispatched from `@Events()`. |
| 200 | * https://stenciljs.com/docs/events#listen-decorator |
| 201 | */ |
| 202 | export declare const Listen: ListenDecorator; |
| 203 | /** |
| 204 | * The `@Method()` decorator is used to expose methods on the public API. |
| 205 | * Class methods decorated with the @Method() decorator can be called directly |
| 206 | * from the element, meaning they are intended to be callable from the outside. |
| 207 | * https://stenciljs.com/docs/methods |
| 208 | */ |
| 209 | export declare const Method: MethodDecorator; |
| 210 | /** |
| 211 | * Props are custom attribute/properties exposed publicly on the element |
| 212 | * that developers can provide values for. Children components do not need to |
| 213 | * know about or reference parent components, so Props can be used to pass |
| 214 | * data down from the parent to the child. Components need to explicitly |
| 215 | * declare the Props they expect to receive using the `@Prop()` decorator. |
| 216 | * Any value changes to a Prop will cause a re-render. |
| 217 | * https://stenciljs.com/docs/properties |
| 218 | */ |
| 219 | export declare const Prop: PropDecorator; |
| 220 | /** |
| 221 | * The `@State()` decorator can be used to manage internal data for a component. |
| 222 | * This means that a user cannot modify this data from outside the component, |
| 223 | * but the component can modify it however it sees fit. Any value changes to a |
| 224 | * `@State()` property will cause the components render function to be called again. |
| 225 | * https://stenciljs.com/docs/state |
| 226 | */ |
| 227 | export declare const State: StateDecorator; |
| 228 | /** |
| 229 | * When a property's value has changed, a method decorated with `@Watch()` will be |
| 230 | * called and passed the new value of the prop along with the old value. Watch is |
| 231 | * useful for validating props or handling side effects. Watch decorator does not |
| 232 | * fire when a component initially loads. |
| 233 | * https://stenciljs.com/docs/reactive-data#watch-decorator |
| 234 | */ |
| 235 | export declare const Watch: WatchDecorator; |
| 236 | export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null; |
| 237 | export type ErrorHandler = (err: any, element?: HTMLElement) => void; |
| 238 | /** |
| 239 | * `setMode()` is used for libraries which provide multiple "modes" for styles. |
| 240 | */ |
| 241 | export declare const setMode: (handler: ResolutionHandler) => void; |
| 242 | /** |
| 243 | * `getMode()` is used for libraries which provide multiple "modes" for styles. |
| 244 | * @param ref a reference to the node to get styles for |
| 245 | * @returns the current mode or undefined, if not found |
| 246 | */ |
| 247 | export declare function getMode<T = string | undefined>(ref: any): T; |
| 248 | export declare function setPlatformHelpers(helpers: { |
| 249 | jmp?: (c: any) => any; |
| 250 | raf?: (c: any) => number; |
| 251 | ael?: (el: any, eventName: string, listener: any, options: any) => void; |
| 252 | rel?: (el: any, eventName: string, listener: any, options: any) => void; |
| 253 | ce?: (eventName: string, opts?: any) => any; |
| 254 | }): void; |
| 255 | /** |
| 256 | * Get the base path to where the assets can be found. Use `setAssetPath(path)` |
| 257 | * if the path needs to be customized. |
| 258 | * @param path the path to use in calculating the asset path. this value will be |
| 259 | * used in conjunction with the base asset path |
| 260 | * @returns the base path |
| 261 | */ |
| 262 | export declare function getAssetPath(path: string): string; |
| 263 | /** |
| 264 | * Method to render a virtual DOM tree to a container element. |
| 265 | * |
| 266 | * @example |
| 267 | * ```tsx |
| 268 | * import { render } from '@stencil/core'; |
| 269 | * |
| 270 | * const vnode = ( |
| 271 | * <div> |
| 272 | * <h1>Hello, world!</h1> |
| 273 | * </div> |
| 274 | * ); |
| 275 | * render(vnode, document.body); |
| 276 | * ``` |
| 277 | * |
| 278 | * @param vnode - The virtual DOM tree to render |
| 279 | * @param container - The container element to render the virtual DOM tree to |
| 280 | */ |
| 281 | export declare function render(vnode: VNode, container: Element): void; |
| 282 | /** |
| 283 | * Used to manually set the base path where assets can be found. For lazy-loaded |
| 284 | * builds the asset path is automatically set and assets copied to the correct |
| 285 | * build directory. However, for custom elements builds, the `setAssetPath(path)` could |
| 286 | * be used to customize the asset path depending on how the script file is consumed. |
| 287 | * If the script is used as "module", it's recommended to use "import.meta.url", such |
| 288 | * as `setAssetPath(import.meta.url)`. Other options include |
| 289 | * `setAssetPath(document.currentScript.src)`, or using a bundler's replace plugin to |
| 290 | * dynamically set the path at build time, such as `setAssetPath(process.env.ASSET_PATH)`. |
| 291 | * But do note that this configuration depends on how your script is bundled, or lack of |
| 292 | * bundling, and where your assets can be loaded from. Additionally custom bundling |
| 293 | * will have to ensure the static assets are copied to its build directory. |
| 294 | * @param path the asset path to set |
| 295 | * @returns the set path |
| 296 | */ |
| 297 | export declare function setAssetPath(path: string): string; |
| 298 | /** |
| 299 | * Used to specify a nonce value that corresponds with an application's |
| 300 | * [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP). |
| 301 | * When set, the nonce will be added to all dynamically created script and style tags at runtime. |
| 302 | * Alternatively, the nonce value can be set on a `meta` tag in the DOM head |
| 303 | * (<meta name="csp-nonce" content="{ nonce value here }" />) and will result in the same behavior. |
| 304 | * @param nonce The value to be used for the nonce attribute. |
| 305 | */ |
| 306 | export declare function setNonce(nonce: string): void; |
| 307 | /** |
| 308 | * Retrieve a Stencil element for a given reference |
| 309 | * @param ref the ref to get the Stencil element for |
| 310 | * @returns a reference to the element |
| 311 | */ |
| 312 | export declare function getElement(ref: any): HTMLStencilElement; |
| 313 | /** |
| 314 | * Schedules a new render of the given instance or element even if no state changed. |
| 315 | * |
| 316 | * Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame. |
| 317 | * |
| 318 | * @param ref the node/element to force the re-render of |
| 319 | */ |
| 320 | export declare function forceUpdate(ref: any): void; |
| 321 | /** |
| 322 | * getRenderingRef |
| 323 | * @returns the rendering ref |
| 324 | */ |
| 325 | export declare function getRenderingRef(): any; |
| 326 | export interface HTMLStencilElement extends HTMLElement { |
| 327 | componentOnReady(): Promise<this>; |
| 328 | } |
| 329 | /** |
| 330 | * Schedules a DOM-write task. The provided callback will be executed |
| 331 | * in the best moment to perform DOM mutation without causing layout thrashing. |
| 332 | * |
| 333 | * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing |
| 334 | * |
| 335 | * @param task the DOM-write to schedule |
| 336 | */ |
| 337 | export declare function writeTask(task: RafCallback): void; |
| 338 | /** |
| 339 | * Schedules a DOM-read task. The provided callback will be executed |
| 340 | * in the best moment to perform DOM reads without causing layout thrashing. |
| 341 | * |
| 342 | * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing |
| 343 | * |
| 344 | * @param task the DOM-read to schedule |
| 345 | */ |
| 346 | export declare function readTask(task: RafCallback): void; |
| 347 | /** |
| 348 | * `setErrorHandler()` can be used to inject a custom global error handler. |
| 349 | * Unhandled exception raised while rendering, during event handling, or lifecycles will trigger the custom event handler. |
| 350 | */ |
| 351 | export declare const setErrorHandler: (handler: ErrorHandler) => void; |
| 352 | /** |
| 353 | * This file gets copied to all distributions of stencil component collections. |
| 354 | * - no imports |
| 355 | */ |
| 356 | export interface ComponentWillLoad { |
| 357 | /** |
| 358 | * The component is about to load and it has not |
| 359 | * rendered yet. |
| 360 | * |
| 361 | * This is the best place to make any data updates |
| 362 | * before the first render. |
| 363 | * |
| 364 | * componentWillLoad will only be called once. |
| 365 | */ |
| 366 | componentWillLoad(): Promise<void> | void; |
| 367 | } |
| 368 | export interface ComponentDidLoad { |
| 369 | /** |
| 370 | * The component has loaded and has already rendered. |
| 371 | * |
| 372 | * Updating data in this method will cause the |
| 373 | * component to re-render. |
| 374 | * |
| 375 | * componentDidLoad will only be called once. |
| 376 | */ |
| 377 | componentDidLoad(): void; |
| 378 | } |
| 379 | export interface ComponentWillUpdate { |
| 380 | /** |
| 381 | * The component is about to update and re-render. |
| 382 | * |
| 383 | * Called multiple times throughout the life of |
| 384 | * the component as it updates. |
| 385 | * |
| 386 | * componentWillUpdate is not called on the first render. |
| 387 | */ |
| 388 | componentWillUpdate(): Promise<void> | void; |
| 389 | } |
| 390 | export interface ComponentDidUpdate { |
| 391 | /** |
| 392 | * The component has just re-rendered. |
| 393 | * |
| 394 | * Called multiple times throughout the life of |
| 395 | * the component as it updates. |
| 396 | * |
| 397 | * componentWillUpdate is not called on the |
| 398 | * first render. |
| 399 | */ |
| 400 | componentDidUpdate(): void; |
| 401 | } |
| 402 | export interface ComponentInterface { |
| 403 | connectedCallback?(): void; |
| 404 | disconnectedCallback?(): void; |
| 405 | componentWillRender?(): Promise<void> | void; |
| 406 | componentDidRender?(): void; |
| 407 | /** |
| 408 | * The component is about to load and it has not |
| 409 | * rendered yet. |
| 410 | * |
| 411 | * This is the best place to make any data updates |
| 412 | * before the first render. |
| 413 | * |
| 414 | * componentWillLoad will only be called once. |
| 415 | */ |
| 416 | componentWillLoad?(): Promise<void> | void; |
| 417 | /** |
| 418 | * The component has loaded and has already rendered. |
| 419 | * |
| 420 | * Updating data in this method will cause the |
| 421 | * component to re-render. |
| 422 | * |
| 423 | * componentDidLoad will only be called once. |
| 424 | */ |
| 425 | componentDidLoad?(): void; |
| 426 | /** |
| 427 | * A `@Prop` or `@State` property changed and a rerender is about to be requested. |
| 428 | * |
| 429 | * Called multiple times throughout the life of |
| 430 | * the component as its properties change. |
| 431 | * |
| 432 | * componentShouldUpdate is not called on the first render. |
| 433 | */ |
| 434 | componentShouldUpdate?(newVal: any, oldVal: any, propName: string): boolean | void; |
| 435 | /** |
| 436 | * The component is about to update and re-render. |
| 437 | * |
| 438 | * Called multiple times throughout the life of |
| 439 | * the component as it updates. |
| 440 | * |
| 441 | * componentWillUpdate is not called on the first render. |
| 442 | */ |
| 443 | componentWillUpdate?(): Promise<void> | void; |
| 444 | /** |
| 445 | * The component has just re-rendered. |
| 446 | * |
| 447 | * Called multiple times throughout the life of |
| 448 | * the component as it updates. |
| 449 | * |
| 450 | * componentWillUpdate is not called on the |
| 451 | * first render. |
| 452 | */ |
| 453 | componentDidUpdate?(): void; |
| 454 | render?(): any; |
| 455 | [memberName: string]: any; |
| 456 | } |
| 457 | export interface EventEmitter<T = any> { |
| 458 | emit: (data?: T) => CustomEvent<T>; |
| 459 | } |
| 460 | export interface RafCallback { |
| 461 | (timeStamp: number): void; |
| 462 | } |
| 463 | export interface QueueApi { |
| 464 | tick: (cb: RafCallback) => void; |
| 465 | read: (cb: RafCallback) => void; |
| 466 | write: (cb: RafCallback) => void; |
| 467 | clear?: () => void; |
| 468 | flush?: (cb?: () => void) => void; |
| 469 | } |
| 470 | /** |
| 471 | * Host |
| 472 | */ |
| 473 | export interface HostAttributes { |
| 474 | class?: string | { |
| 475 | [className: string]: boolean; |
| 476 | }; |
| 477 | style?: { |
| 478 | [key: string]: string | undefined; |
| 479 | }; |
| 480 | ref?: (el: HTMLElement | null) => void; |
| 481 | [prop: string]: any; |
| 482 | } |
| 483 | /** |
| 484 | * Utilities for working with functional Stencil components. An object |
| 485 | * conforming to this interface is passed by the Stencil runtime as the third |
| 486 | * argument to a functional component, allowing component authors to work with |
| 487 | * features like children. |
| 488 | * |
| 489 | * The children of a functional component will be passed as the second |
| 490 | * argument, so a functional component which uses these utils to transform its |
| 491 | * children might look like the following: |
| 492 | * |
| 493 | * ```ts |
| 494 | * export const AddClass: FunctionalComponent = (_, children, utils) => ( |
| 495 | * utils.map(children, child => ({ |
| 496 | * ...child, |
| 497 | * vattrs: { |
| 498 | * ...child.vattrs, |
| 499 | * class: `${child.vattrs.class} add-class` |
| 500 | * } |
| 501 | * })) |
| 502 | * ); |
| 503 | * ``` |
| 504 | * |
| 505 | * For more see the Stencil documentation, here: |
| 506 | * https://stenciljs.com/docs/functional-components |
| 507 | */ |
| 508 | export interface FunctionalUtilities { |
| 509 | /** |
| 510 | * Utility for reading the children of a functional component at runtime. |
| 511 | * Since the Stencil runtime uses a different interface for children it is |
| 512 | * not recommended to read the children directly, and is preferable to use |
| 513 | * this utility to, for instance, perform a side effect for each child. |
| 514 | */ |
| 515 | forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void; |
| 516 | /** |
| 517 | * Utility for transforming the children of a functional component. Given an |
| 518 | * array of children and a callback this will return a list of the results of |
| 519 | * passing each child to the supplied callback. |
| 520 | */ |
| 521 | map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[]; |
| 522 | } |
| 523 | export interface FunctionalComponent<T = {}> { |
| 524 | (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[]; |
| 525 | } |
| 526 | /** |
| 527 | * A Child VDOM node |
| 528 | * |
| 529 | * This has most of the same properties as {@link VNode} but friendlier names |
| 530 | * (i.e. `vtag` instead of `$tag$`, `vchildren` instead of `$children$`) in |
| 531 | * order to provide a friendlier public interface for users of the |
| 532 | * {@link FunctionalUtilities}). |
| 533 | */ |
| 534 | export interface ChildNode { |
| 535 | vtag?: string | number | Function; |
| 536 | vkey?: string | number; |
| 537 | vtext?: string; |
| 538 | vchildren?: VNode[]; |
| 539 | vattrs?: any; |
| 540 | vname?: string; |
| 541 | } |
| 542 | /** |
| 543 | * Host is a functional component can be used at the root of the render function |
| 544 | * to set attributes and event listeners to the host element itself. |
| 545 | * |
| 546 | * For further information: https://stenciljs.com/docs/host-element |
| 547 | */ |
| 548 | export declare const Host: FunctionalComponent<HostAttributes>; |
| 549 | /** |
| 550 | * Fragment |
| 551 | */ |
| 552 | export declare const Fragment: FunctionalComponent<{}>; |
| 553 | /** |
| 554 | * The "h" namespace is used to import JSX types for elements and attributes. |
| 555 | * It is imported in order to avoid conflicting global JSX issues. |
| 556 | */ |
| 557 | export declare namespace h { |
| 558 | function h(sel: any): VNode; |
| 559 | function h(sel: Node, data: VNodeData | null): VNode; |
| 560 | function h(sel: any, data: VNodeData | null): VNode; |
| 561 | function h(sel: any, text: string): VNode; |
| 562 | function h(sel: any, children: Array<VNode | undefined | null>): VNode; |
| 563 | function h(sel: any, data: VNodeData | null, text: string): VNode; |
| 564 | function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode; |
| 565 | function h(sel: any, data: VNodeData | null, children: VNode): VNode; |
| 566 | namespace JSX { |
| 567 | interface IntrinsicElements extends LocalJSX.IntrinsicElements, JSXBase.IntrinsicElements { |
| 568 | [tagName: string]: any; |
| 569 | } |
| 570 | } |
| 571 | } |
| 572 | export declare function h(sel: any): VNode; |
| 573 | export declare function h(sel: Node, data: VNodeData | null): VNode; |
| 574 | export declare function h(sel: any, data: VNodeData | null): VNode; |
| 575 | export declare function h(sel: any, text: string): VNode; |
| 576 | export declare function h(sel: any, children: Array<VNode | undefined | null>): VNode; |
| 577 | export declare function h(sel: any, data: VNodeData | null, text: string): VNode; |
| 578 | export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode; |
| 579 | export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode; |
| 580 | /** |
| 581 | * A virtual DOM node |
| 582 | */ |
| 583 | export interface VNode { |
| 584 | $flags$: number; |
| 585 | $tag$: string | number | Function; |
| 586 | $elm$: any; |
| 587 | $text$: string; |
| 588 | $children$: VNode[]; |
| 589 | $attrs$?: any; |
| 590 | $name$?: string; |
| 591 | $key$?: string | number; |
| 592 | } |
| 593 | export interface VNodeData { |
| 594 | class?: { |
| 595 | [className: string]: boolean; |
| 596 | }; |
| 597 | style?: any; |
| 598 | [attrName: string]: any; |
| 599 | } |
| 600 | declare namespace LocalJSX { |
| 601 | interface Element { |
| 602 | } |
| 603 | interface IntrinsicElements { |
| 604 | } |
| 605 | } |
| 606 | export { LocalJSX as JSX }; |
| 607 | export declare namespace JSXBase { |
| 608 | interface IntrinsicElements { |
| 609 | slot: JSXBase.SlotAttributes; |
| 610 | a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>; |
| 611 | abbr: JSXBase.HTMLAttributes; |
| 612 | address: JSXBase.HTMLAttributes; |
| 613 | area: JSXBase.AreaHTMLAttributes<HTMLAreaElement>; |
| 614 | article: JSXBase.HTMLAttributes; |
| 615 | aside: JSXBase.HTMLAttributes; |
| 616 | audio: JSXBase.AudioHTMLAttributes<HTMLAudioElement>; |
| 617 | b: JSXBase.HTMLAttributes; |
| 618 | base: JSXBase.BaseHTMLAttributes<HTMLBaseElement>; |
| 619 | bdi: JSXBase.HTMLAttributes; |
| 620 | bdo: JSXBase.HTMLAttributes; |
| 621 | big: JSXBase.HTMLAttributes; |
| 622 | blockquote: JSXBase.BlockquoteHTMLAttributes<HTMLQuoteElement>; |
| 623 | body: JSXBase.HTMLAttributes<HTMLBodyElement>; |
| 624 | br: JSXBase.HTMLAttributes<HTMLBRElement>; |
| 625 | button: JSXBase.ButtonHTMLAttributes<HTMLButtonElement>; |
| 626 | canvas: JSXBase.CanvasHTMLAttributes<HTMLCanvasElement>; |
| 627 | caption: JSXBase.HTMLAttributes<HTMLTableCaptionElement>; |
| 628 | cite: JSXBase.HTMLAttributes; |
| 629 | code: JSXBase.HTMLAttributes; |
| 630 | col: JSXBase.ColHTMLAttributes<HTMLTableColElement>; |
| 631 | colgroup: JSXBase.ColgroupHTMLAttributes<HTMLTableColElement>; |
| 632 | data: JSXBase.HTMLAttributes<HTMLDataElement>; |
| 633 | datalist: JSXBase.HTMLAttributes<HTMLDataListElement>; |
| 634 | dd: JSXBase.HTMLAttributes; |
| 635 | del: JSXBase.DelHTMLAttributes<HTMLModElement>; |
| 636 | details: JSXBase.DetailsHTMLAttributes<HTMLElement>; |
| 637 | dfn: JSXBase.HTMLAttributes; |
| 638 | dialog: JSXBase.DialogHTMLAttributes<HTMLDialogElement>; |
| 639 | div: JSXBase.HTMLAttributes<HTMLDivElement>; |
| 640 | dl: JSXBase.HTMLAttributes<HTMLDListElement>; |
| 641 | dt: JSXBase.HTMLAttributes; |
| 642 | em: JSXBase.HTMLAttributes; |
| 643 | embed: JSXBase.EmbedHTMLAttributes<HTMLEmbedElement>; |
| 644 | fieldset: JSXBase.FieldsetHTMLAttributes<HTMLFieldSetElement>; |
| 645 | figcaption: JSXBase.HTMLAttributes; |
| 646 | figure: JSXBase.HTMLAttributes; |
| 647 | footer: JSXBase.HTMLAttributes; |
| 648 | form: JSXBase.FormHTMLAttributes<HTMLFormElement>; |
| 649 | h1: JSXBase.HTMLAttributes<HTMLHeadingElement>; |
| 650 | h2: JSXBase.HTMLAttributes<HTMLHeadingElement>; |
| 651 | h3: JSXBase.HTMLAttributes<HTMLHeadingElement>; |
| 652 | h4: JSXBase.HTMLAttributes<HTMLHeadingElement>; |
| 653 | h5: JSXBase.HTMLAttributes<HTMLHeadingElement>; |
| 654 | h6: JSXBase.HTMLAttributes<HTMLHeadingElement>; |
| 655 | head: JSXBase.HTMLAttributes<HTMLHeadElement>; |
| 656 | header: JSXBase.HTMLAttributes; |
| 657 | hgroup: JSXBase.HTMLAttributes; |
| 658 | hr: JSXBase.HTMLAttributes<HTMLHRElement>; |
| 659 | html: JSXBase.HTMLAttributes<HTMLHtmlElement>; |
| 660 | i: JSXBase.HTMLAttributes; |
| 661 | iframe: JSXBase.IframeHTMLAttributes<HTMLIFrameElement>; |
| 662 | img: JSXBase.ImgHTMLAttributes<HTMLImageElement>; |
| 663 | input: JSXBase.InputHTMLAttributes<HTMLInputElement>; |
| 664 | ins: JSXBase.InsHTMLAttributes<HTMLModElement>; |
| 665 | kbd: JSXBase.HTMLAttributes; |
| 666 | keygen: JSXBase.KeygenHTMLAttributes<HTMLElement>; |
| 667 | label: JSXBase.LabelHTMLAttributes<HTMLLabelElement>; |
| 668 | legend: JSXBase.HTMLAttributes<HTMLLegendElement>; |
| 669 | li: JSXBase.LiHTMLAttributes<HTMLLIElement>; |
| 670 | link: JSXBase.LinkHTMLAttributes<HTMLLinkElement>; |
| 671 | main: JSXBase.HTMLAttributes; |
| 672 | map: JSXBase.MapHTMLAttributes<HTMLMapElement>; |
| 673 | mark: JSXBase.HTMLAttributes; |
| 674 | menu: JSXBase.MenuHTMLAttributes<HTMLMenuElement>; |
| 675 | menuitem: JSXBase.HTMLAttributes; |
| 676 | meta: JSXBase.MetaHTMLAttributes<HTMLMetaElement>; |
| 677 | meter: JSXBase.MeterHTMLAttributes<HTMLMeterElement>; |
| 678 | nav: JSXBase.HTMLAttributes; |
| 679 | noscript: JSXBase.HTMLAttributes; |
| 680 | object: JSXBase.ObjectHTMLAttributes<HTMLObjectElement>; |
| 681 | ol: JSXBase.OlHTMLAttributes<HTMLOListElement>; |
| 682 | optgroup: JSXBase.OptgroupHTMLAttributes<HTMLOptGroupElement>; |
| 683 | option: JSXBase.OptionHTMLAttributes<HTMLOptionElement>; |
| 684 | output: JSXBase.OutputHTMLAttributes<HTMLOutputElement>; |
| 685 | p: JSXBase.HTMLAttributes<HTMLParagraphElement>; |
| 686 | param: JSXBase.ParamHTMLAttributes<HTMLParamElement>; |
| 687 | picture: JSXBase.HTMLAttributes<HTMLPictureElement>; |
| 688 | pre: JSXBase.HTMLAttributes<HTMLPreElement>; |
| 689 | progress: JSXBase.ProgressHTMLAttributes<HTMLProgressElement>; |
| 690 | q: JSXBase.QuoteHTMLAttributes<HTMLQuoteElement>; |
| 691 | rp: JSXBase.HTMLAttributes; |
| 692 | rt: JSXBase.HTMLAttributes; |
| 693 | ruby: JSXBase.HTMLAttributes; |
| 694 | s: JSXBase.HTMLAttributes; |
| 695 | samp: JSXBase.HTMLAttributes; |
| 696 | script: JSXBase.ScriptHTMLAttributes<HTMLScriptElement>; |
| 697 | section: JSXBase.HTMLAttributes; |
| 698 | select: JSXBase.SelectHTMLAttributes<HTMLSelectElement>; |
| 699 | small: JSXBase.HTMLAttributes; |
| 700 | source: JSXBase.SourceHTMLAttributes<HTMLSourceElement>; |
| 701 | span: JSXBase.HTMLAttributes<HTMLSpanElement>; |
| 702 | strong: JSXBase.HTMLAttributes; |
| 703 | style: JSXBase.StyleHTMLAttributes<HTMLStyleElement>; |
| 704 | sub: JSXBase.HTMLAttributes; |
| 705 | summary: JSXBase.HTMLAttributes; |
| 706 | sup: JSXBase.HTMLAttributes; |
| 707 | table: JSXBase.TableHTMLAttributes<HTMLTableElement>; |
| 708 | tbody: JSXBase.HTMLAttributes<HTMLTableSectionElement>; |
| 709 | td: JSXBase.TdHTMLAttributes<HTMLTableDataCellElement>; |
| 710 | textarea: JSXBase.TextareaHTMLAttributes<HTMLTextAreaElement>; |
| 711 | tfoot: JSXBase.HTMLAttributes<HTMLTableSectionElement>; |
| 712 | th: JSXBase.ThHTMLAttributes<HTMLTableHeaderCellElement>; |
| 713 | thead: JSXBase.HTMLAttributes<HTMLTableSectionElement>; |
| 714 | time: JSXBase.TimeHTMLAttributes<HTMLTimeElement>; |
| 715 | title: JSXBase.HTMLAttributes<HTMLTitleElement>; |
| 716 | tr: JSXBase.HTMLAttributes<HTMLTableRowElement>; |
| 717 | track: JSXBase.TrackHTMLAttributes<HTMLTrackElement>; |
| 718 | u: JSXBase.HTMLAttributes; |
| 719 | ul: JSXBase.HTMLAttributes<HTMLUListElement>; |
| 720 | var: JSXBase.HTMLAttributes; |
| 721 | video: JSXBase.VideoHTMLAttributes<HTMLVideoElement>; |
| 722 | wbr: JSXBase.HTMLAttributes; |
| 723 | animate: JSXBase.SVGAttributes; |
| 724 | circle: JSXBase.SVGAttributes; |
| 725 | clipPath: JSXBase.SVGAttributes; |
| 726 | defs: JSXBase.SVGAttributes; |
| 727 | desc: JSXBase.SVGAttributes; |
| 728 | ellipse: JSXBase.SVGAttributes; |
| 729 | feBlend: JSXBase.SVGAttributes; |
| 730 | feColorMatrix: JSXBase.SVGAttributes; |
| 731 | feComponentTransfer: JSXBase.SVGAttributes; |
| 732 | feComposite: JSXBase.SVGAttributes; |
| 733 | feConvolveMatrix: JSXBase.SVGAttributes; |
| 734 | feDiffuseLighting: JSXBase.SVGAttributes; |
| 735 | feDisplacementMap: JSXBase.SVGAttributes; |
| 736 | feDistantLight: JSXBase.SVGAttributes; |
| 737 | feDropShadow: JSXBase.SVGAttributes; |
| 738 | feFlood: JSXBase.SVGAttributes; |
| 739 | feFuncA: JSXBase.SVGAttributes; |
| 740 | feFuncB: JSXBase.SVGAttributes; |
| 741 | feFuncG: JSXBase.SVGAttributes; |
| 742 | feFuncR: JSXBase.SVGAttributes; |
| 743 | feGaussianBlur: JSXBase.SVGAttributes; |
| 744 | feImage: JSXBase.SVGAttributes; |
| 745 | feMerge: JSXBase.SVGAttributes; |
| 746 | feMergeNode: JSXBase.SVGAttributes; |
| 747 | feMorphology: JSXBase.SVGAttributes; |
| 748 | feOffset: JSXBase.SVGAttributes; |
| 749 | fePointLight: JSXBase.SVGAttributes; |
| 750 | feSpecularLighting: JSXBase.SVGAttributes; |
| 751 | feSpotLight: JSXBase.SVGAttributes; |
| 752 | feTile: JSXBase.SVGAttributes; |
| 753 | feTurbulence: JSXBase.SVGAttributes; |
| 754 | filter: JSXBase.SVGAttributes; |
| 755 | foreignObject: JSXBase.SVGAttributes; |
| 756 | g: JSXBase.SVGAttributes; |
| 757 | image: JSXBase.SVGAttributes; |
| 758 | line: JSXBase.SVGAttributes; |
| 759 | linearGradient: JSXBase.SVGAttributes; |
| 760 | marker: JSXBase.SVGAttributes; |
| 761 | mask: JSXBase.SVGAttributes; |
| 762 | metadata: JSXBase.SVGAttributes; |
| 763 | path: JSXBase.SVGAttributes; |
| 764 | pattern: JSXBase.SVGAttributes; |
| 765 | polygon: JSXBase.SVGAttributes; |
| 766 | polyline: JSXBase.SVGAttributes; |
| 767 | radialGradient: JSXBase.SVGAttributes; |
| 768 | rect: JSXBase.SVGAttributes; |
| 769 | stop: JSXBase.SVGAttributes; |
| 770 | svg: JSXBase.SVGAttributes; |
| 771 | switch: JSXBase.SVGAttributes; |
| 772 | symbol: JSXBase.SVGAttributes; |
| 773 | text: JSXBase.SVGAttributes; |
| 774 | textPath: JSXBase.SVGAttributes; |
| 775 | tspan: JSXBase.SVGAttributes; |
| 776 | use: JSXBase.SVGAttributes; |
| 777 | view: JSXBase.SVGAttributes; |
| 778 | } |
| 779 | interface SlotAttributes extends JSXAttributes { |
| 780 | name?: string; |
| 781 | slot?: string; |
| 782 | onSlotchange?: (event: Event) => void; |
| 783 | } |
| 784 | interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> { |
| 785 | download?: any; |
| 786 | href?: string; |
| 787 | hrefLang?: string; |
| 788 | hreflang?: string; |
| 789 | media?: string; |
| 790 | ping?: string; |
| 791 | rel?: string; |
| 792 | target?: string; |
| 793 | referrerPolicy?: ReferrerPolicy; |
| 794 | } |
| 795 | interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> { |
| 796 | } |
| 797 | interface AreaHTMLAttributes<T> extends HTMLAttributes<T> { |
| 798 | alt?: string; |
| 799 | coords?: string; |
| 800 | download?: any; |
| 801 | href?: string; |
| 802 | hrefLang?: string; |
| 803 | hreflang?: string; |
| 804 | media?: string; |
| 805 | rel?: string; |
| 806 | shape?: string; |
| 807 | target?: string; |
| 808 | } |
| 809 | interface BaseHTMLAttributes<T> extends HTMLAttributes<T> { |
| 810 | href?: string; |
| 811 | target?: string; |
| 812 | } |
| 813 | interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> { |
| 814 | cite?: string; |
| 815 | } |
| 816 | interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> { |
| 817 | disabled?: boolean; |
| 818 | form?: string; |
| 819 | formAction?: string; |
| 820 | formaction?: string; |
| 821 | formEncType?: string; |
| 822 | formenctype?: string; |
| 823 | formMethod?: string; |
| 824 | formmethod?: string; |
| 825 | formNoValidate?: boolean; |
| 826 | formnovalidate?: boolean; |
| 827 | formTarget?: string; |
| 828 | formtarget?: string; |
| 829 | name?: string; |
| 830 | type?: string; |
| 831 | value?: string | string[] | number; |
| 832 | popoverTargetAction?: string; |
| 833 | popoverTargetElement?: Element | null; |
| 834 | popoverTarget?: string; |
| 835 | } |
| 836 | interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> { |
| 837 | height?: number | string; |
| 838 | width?: number | string; |
| 839 | } |
| 840 | interface ColHTMLAttributes<T> extends HTMLAttributes<T> { |
| 841 | span?: number; |
| 842 | } |
| 843 | interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> { |
| 844 | span?: number; |
| 845 | } |
| 846 | interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> { |
| 847 | open?: boolean; |
| 848 | name?: string; |
| 849 | onToggle?: (event: ToggleEvent) => void; |
| 850 | } |
| 851 | interface DelHTMLAttributes<T> extends HTMLAttributes<T> { |
| 852 | cite?: string; |
| 853 | dateTime?: string; |
| 854 | datetime?: string; |
| 855 | } |
| 856 | interface DialogHTMLAttributes<T> extends HTMLAttributes<T> { |
| 857 | onCancel?: (event: Event) => void; |
| 858 | onClose?: (event: Event) => void; |
| 859 | open?: boolean; |
| 860 | returnValue?: string; |
| 861 | } |
| 862 | interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> { |
| 863 | height?: number | string; |
| 864 | src?: string; |
| 865 | type?: string; |
| 866 | width?: number | string; |
| 867 | } |
| 868 | interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> { |
| 869 | disabled?: boolean; |
| 870 | form?: string; |
| 871 | name?: string; |
| 872 | } |
| 873 | interface FormHTMLAttributes<T> extends HTMLAttributes<T> { |
| 874 | acceptCharset?: string; |
| 875 | acceptcharset?: string; |
| 876 | action?: string; |
| 877 | autoComplete?: string; |
| 878 | autocomplete?: string; |
| 879 | encType?: string; |
| 880 | enctype?: string; |
| 881 | method?: string; |
| 882 | name?: string; |
| 883 | noValidate?: boolean; |
| 884 | novalidate?: boolean | string; |
| 885 | target?: string; |
| 886 | } |
| 887 | interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> { |
| 888 | manifest?: string; |
| 889 | } |
| 890 | interface IframeHTMLAttributes<T> extends HTMLAttributes<T> { |
| 891 | allow?: string; |
| 892 | allowFullScreen?: boolean; |
| 893 | allowfullScreen?: string | boolean; |
| 894 | allowTransparency?: boolean; |
| 895 | allowtransparency?: string | boolean; |
| 896 | frameBorder?: number | string; |
| 897 | frameborder?: number | string; |
| 898 | importance?: 'low' | 'auto' | 'high'; |
| 899 | height?: number | string; |
| 900 | loading?: 'lazy' | 'auto' | 'eager'; |
| 901 | marginHeight?: number; |
| 902 | marginheight?: string | number; |
| 903 | marginWidth?: number; |
| 904 | marginwidth?: string | number; |
| 905 | name?: string; |
| 906 | referrerPolicy?: ReferrerPolicy; |
| 907 | sandbox?: string; |
| 908 | scrolling?: string; |
| 909 | seamless?: boolean; |
| 910 | src?: string; |
| 911 | srcDoc?: string; |
| 912 | srcdoc?: string; |
| 913 | width?: number | string; |
| 914 | } |
| 915 | interface ImgHTMLAttributes<T> extends HTMLAttributes<T> { |
| 916 | alt?: string; |
| 917 | crossOrigin?: string; |
| 918 | crossorigin?: string; |
| 919 | decoding?: 'async' | 'auto' | 'sync'; |
| 920 | importance?: 'low' | 'auto' | 'high'; |
| 921 | height?: number | string; |
| 922 | loading?: 'lazy' | 'auto' | 'eager'; |
| 923 | sizes?: string; |
| 924 | src?: string; |
| 925 | srcSet?: string; |
| 926 | srcset?: string; |
| 927 | useMap?: string; |
| 928 | usemap?: string; |
| 929 | width?: number | string; |
| 930 | } |
| 931 | interface InsHTMLAttributes<T> extends HTMLAttributes<T> { |
| 932 | cite?: string; |
| 933 | dateTime?: string; |
| 934 | datetime?: string; |
| 935 | } |
| 936 | interface InputHTMLAttributes<T> extends HTMLAttributes<T> { |
| 937 | accept?: string; |
| 938 | allowdirs?: boolean; |
| 939 | alt?: string; |
| 940 | autoCapitalize?: string; |
| 941 | autocapitalize?: string; |
| 942 | autoComplete?: string; |
| 943 | autocomplete?: string; |
| 944 | capture?: string; |
| 945 | checked?: boolean; |
| 946 | crossOrigin?: string; |
| 947 | crossorigin?: string; |
| 948 | defaultChecked?: boolean; |
| 949 | defaultValue?: string; |
| 950 | dirName?: string; |
| 951 | disabled?: boolean; |
| 952 | files?: any; |
| 953 | form?: string; |
| 954 | formAction?: string; |
| 955 | formaction?: string; |
| 956 | formEncType?: string; |
| 957 | formenctype?: string; |
| 958 | formMethod?: string; |
| 959 | formmethod?: string; |
| 960 | formNoValidate?: boolean; |
| 961 | formnovalidate?: boolean; |
| 962 | formTarget?: string; |
| 963 | formtarget?: string; |
| 964 | height?: number | string; |
| 965 | indeterminate?: boolean; |
| 966 | list?: string; |
| 967 | max?: number | string; |
| 968 | maxLength?: number; |
| 969 | maxlength?: number | string; |
| 970 | min?: number | string; |
| 971 | minLength?: number; |
| 972 | minlength?: number | string; |
| 973 | multiple?: boolean; |
| 974 | name?: string; |
| 975 | onSelect?: (event: Event) => void; |
| 976 | onselect?: (event: Event) => void; |
| 977 | pattern?: string; |
| 978 | placeholder?: string; |
| 979 | readOnly?: boolean; |
| 980 | readonly?: boolean | string; |
| 981 | required?: boolean; |
| 982 | selectionStart?: number | string; |
| 983 | selectionEnd?: number | string; |
| 984 | selectionDirection?: string; |
| 985 | size?: number; |
| 986 | src?: string; |
| 987 | step?: number | string; |
| 988 | type?: string; |
| 989 | value?: string | string[] | number; |
| 990 | valueAsDate?: any; |
| 991 | valueAsNumber?: any; |
| 992 | webkitdirectory?: boolean; |
| 993 | webkitEntries?: any; |
| 994 | width?: number | string; |
| 995 | popoverTargetAction?: string; |
| 996 | popoverTargetElement?: Element | null; |
| 997 | popoverTarget?: string; |
| 998 | } |
| 999 | interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1000 | challenge?: string; |
| 1001 | disabled?: boolean; |
| 1002 | form?: string; |
| 1003 | keyType?: string; |
| 1004 | keytype?: string; |
| 1005 | keyParams?: string; |
| 1006 | keyparams?: string; |
| 1007 | name?: string; |
| 1008 | } |
| 1009 | interface LabelHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1010 | form?: string; |
| 1011 | htmlFor?: string; |
| 1012 | } |
| 1013 | interface LiHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1014 | value?: string | string[] | number; |
| 1015 | } |
| 1016 | interface LinkHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1017 | as?: string; |
| 1018 | href?: string; |
| 1019 | hrefLang?: string; |
| 1020 | hreflang?: string; |
| 1021 | importance?: 'low' | 'auto' | 'high'; |
| 1022 | integrity?: string; |
| 1023 | media?: string; |
| 1024 | rel?: string; |
| 1025 | sizes?: string; |
| 1026 | type?: string; |
| 1027 | } |
| 1028 | interface MapHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1029 | name?: string; |
| 1030 | } |
| 1031 | interface MenuHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1032 | type?: string; |
| 1033 | } |
| 1034 | interface MediaHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1035 | autoPlay?: boolean; |
| 1036 | autoplay?: boolean | string; |
| 1037 | controls?: boolean; |
| 1038 | controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback'; |
| 1039 | controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback'; |
| 1040 | crossOrigin?: string; |
| 1041 | crossorigin?: string; |
| 1042 | loop?: boolean; |
| 1043 | mediaGroup?: string; |
| 1044 | mediagroup?: string; |
| 1045 | muted?: boolean; |
| 1046 | preload?: string; |
| 1047 | src?: string; |
| 1048 | onAbort?: (event: Event) => void; |
| 1049 | onCanPlay?: (event: Event) => void; |
| 1050 | onCanPlayThrough?: (event: Event) => void; |
| 1051 | onDurationChange?: (event: Event) => void; |
| 1052 | onEmptied?: (event: Event) => void; |
| 1053 | onEnded?: (event: Event) => void; |
| 1054 | onError?: (event: Event) => void; |
| 1055 | onInterruptBegin?: (event: Event) => void; |
| 1056 | onInterruptEnd?: (event: Event) => void; |
| 1057 | onLoadedData?: (event: Event) => void; |
| 1058 | onLoadedMetaData?: (event: Event) => void; |
| 1059 | onLoadStart?: (event: Event) => void; |
| 1060 | onMozAudioAvailable?: (event: Event) => void; |
| 1061 | onPause?: (event: Event) => void; |
| 1062 | onPlay?: (event: Event) => void; |
| 1063 | onPlaying?: (event: Event) => void; |
| 1064 | onProgress?: (event: Event) => void; |
| 1065 | onRateChange?: (event: Event) => void; |
| 1066 | onSeeked?: (event: Event) => void; |
| 1067 | onSeeking?: (event: Event) => void; |
| 1068 | onStalled?: (event: Event) => void; |
| 1069 | onSuspend?: (event: Event) => void; |
| 1070 | onTimeUpdate?: (event: Event) => void; |
| 1071 | onVolumeChange?: (event: Event) => void; |
| 1072 | onWaiting?: (event: Event) => void; |
| 1073 | } |
| 1074 | interface MetaHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1075 | charSet?: string; |
| 1076 | charset?: string; |
| 1077 | content?: string; |
| 1078 | httpEquiv?: string; |
| 1079 | httpequiv?: string; |
| 1080 | name?: string; |
| 1081 | } |
| 1082 | interface MeterHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1083 | form?: string; |
| 1084 | high?: number; |
| 1085 | low?: number; |
| 1086 | max?: number | string; |
| 1087 | min?: number | string; |
| 1088 | optimum?: number; |
| 1089 | value?: string | string[] | number; |
| 1090 | } |
| 1091 | interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1092 | cite?: string; |
| 1093 | } |
| 1094 | interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1095 | classID?: string; |
| 1096 | classid?: string; |
| 1097 | data?: string; |
| 1098 | form?: string; |
| 1099 | height?: number | string; |
| 1100 | name?: string; |
| 1101 | type?: string; |
| 1102 | useMap?: string; |
| 1103 | usemap?: string; |
| 1104 | width?: number | string; |
| 1105 | wmode?: string; |
| 1106 | } |
| 1107 | interface OlHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1108 | reversed?: boolean; |
| 1109 | start?: number; |
| 1110 | } |
| 1111 | interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1112 | disabled?: boolean; |
| 1113 | label?: string; |
| 1114 | } |
| 1115 | interface OptionHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1116 | disabled?: boolean; |
| 1117 | label?: string; |
| 1118 | selected?: boolean; |
| 1119 | value?: string | string[] | number; |
| 1120 | } |
| 1121 | interface OutputHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1122 | form?: string; |
| 1123 | htmlFor?: string; |
| 1124 | name?: string; |
| 1125 | } |
| 1126 | interface ParamHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1127 | name?: string; |
| 1128 | value?: string | string[] | number; |
| 1129 | } |
| 1130 | interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1131 | max?: number | string; |
| 1132 | value?: string | string[] | number; |
| 1133 | } |
| 1134 | interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1135 | async?: boolean; |
| 1136 | charSet?: string; |
| 1137 | charset?: string; |
| 1138 | crossOrigin?: string; |
| 1139 | crossorigin?: string; |
| 1140 | defer?: boolean; |
| 1141 | importance?: 'low' | 'auto' | 'high'; |
| 1142 | integrity?: string; |
| 1143 | nonce?: string; |
| 1144 | src?: string; |
| 1145 | type?: string; |
| 1146 | } |
| 1147 | interface SelectHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1148 | disabled?: boolean; |
| 1149 | form?: string; |
| 1150 | multiple?: boolean; |
| 1151 | name?: string; |
| 1152 | required?: boolean; |
| 1153 | size?: number; |
| 1154 | autoComplete?: string; |
| 1155 | autocomplete?: string; |
| 1156 | } |
| 1157 | interface SourceHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1158 | height?: number; |
| 1159 | media?: string; |
| 1160 | sizes?: string; |
| 1161 | src?: string; |
| 1162 | srcSet?: string; |
| 1163 | type?: string; |
| 1164 | width?: number; |
| 1165 | } |
| 1166 | interface StyleHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1167 | media?: string; |
| 1168 | nonce?: string; |
| 1169 | scoped?: boolean; |
| 1170 | type?: string; |
| 1171 | } |
| 1172 | interface TableHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1173 | cellPadding?: number | string; |
| 1174 | cellpadding?: number | string; |
| 1175 | cellSpacing?: number | string; |
| 1176 | cellspacing?: number | string; |
| 1177 | summary?: string; |
| 1178 | } |
| 1179 | interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1180 | autoComplete?: string; |
| 1181 | autocomplete?: string; |
| 1182 | cols?: number; |
| 1183 | disabled?: boolean; |
| 1184 | form?: string; |
| 1185 | maxLength?: number; |
| 1186 | maxlength?: number | string; |
| 1187 | minLength?: number; |
| 1188 | minlength?: number | string; |
| 1189 | name?: string; |
| 1190 | onSelect?: (event: Event) => void; |
| 1191 | onselect?: (event: Event) => void; |
| 1192 | placeholder?: string; |
| 1193 | readOnly?: boolean; |
| 1194 | readonly?: boolean | string; |
| 1195 | required?: boolean; |
| 1196 | rows?: number; |
| 1197 | value?: string | string[] | number; |
| 1198 | wrap?: string; |
| 1199 | } |
| 1200 | interface TdHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1201 | colSpan?: number; |
| 1202 | headers?: string; |
| 1203 | rowSpan?: number; |
| 1204 | } |
| 1205 | interface ThHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1206 | abbr?: string; |
| 1207 | colSpan?: number; |
| 1208 | headers?: string; |
| 1209 | rowSpan?: number; |
| 1210 | rowspan?: number | string; |
| 1211 | scope?: string; |
| 1212 | } |
| 1213 | interface TimeHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1214 | dateTime?: string; |
| 1215 | } |
| 1216 | interface TrackHTMLAttributes<T> extends HTMLAttributes<T> { |
| 1217 | default?: boolean; |
| 1218 | kind?: string; |
| 1219 | label?: string; |
| 1220 | src?: string; |
| 1221 | srcLang?: string; |
| 1222 | srclang?: string; |
| 1223 | } |
| 1224 | interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> { |
| 1225 | height?: number | string; |
| 1226 | playsInline?: boolean; |
| 1227 | playsinline?: boolean | string; |
| 1228 | poster?: string; |
| 1229 | width?: number | string; |
| 1230 | } |
| 1231 | interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> { |
| 1232 | innerHTML?: string; |
| 1233 | accessKey?: string; |
| 1234 | autoFocus?: boolean; |
| 1235 | autofocus?: boolean | string; |
| 1236 | class?: string | { |
| 1237 | [className: string]: boolean; |
| 1238 | }; |
| 1239 | contentEditable?: boolean | string; |
| 1240 | contenteditable?: boolean | string; |
| 1241 | contextMenu?: string; |
| 1242 | contextmenu?: string; |
| 1243 | dir?: string; |
| 1244 | draggable?: boolean; |
| 1245 | hidden?: boolean; |
| 1246 | id?: string; |
| 1247 | inert?: boolean; |
| 1248 | lang?: string; |
| 1249 | spellcheck?: 'true' | 'false' | any; |
| 1250 | style?: { |
| 1251 | [key: string]: string | undefined; |
| 1252 | }; |
| 1253 | tabIndex?: number; |
| 1254 | tabindex?: number | string; |
| 1255 | title?: string; |
| 1256 | popover?: string | null; |
| 1257 | inputMode?: string; |
| 1258 | inputmode?: string; |
| 1259 | enterKeyHint?: string; |
| 1260 | enterkeyhint?: string; |
| 1261 | is?: string; |
| 1262 | radioGroup?: string; |
| 1263 | radiogroup?: string; |
| 1264 | role?: string; |
| 1265 | about?: string; |
| 1266 | datatype?: string; |
| 1267 | inlist?: any; |
| 1268 | prefix?: string; |
| 1269 | property?: string; |
| 1270 | resource?: string; |
| 1271 | typeof?: string; |
| 1272 | vocab?: string; |
| 1273 | autoCapitalize?: string; |
| 1274 | autocapitalize?: string; |
| 1275 | autoCorrect?: string; |
| 1276 | autocorrect?: string; |
| 1277 | autoSave?: string; |
| 1278 | autosave?: string; |
| 1279 | color?: string; |
| 1280 | itemProp?: string; |
| 1281 | itemprop?: string; |
| 1282 | itemScope?: boolean; |
| 1283 | itemscope?: boolean; |
| 1284 | itemType?: string; |
| 1285 | itemtype?: string; |
| 1286 | itemID?: string; |
| 1287 | itemid?: string; |
| 1288 | itemRef?: string; |
| 1289 | itemref?: string; |
| 1290 | results?: number; |
| 1291 | security?: string; |
| 1292 | unselectable?: boolean; |
| 1293 | } |
| 1294 | interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> { |
| 1295 | class?: string | { |
| 1296 | [className: string]: boolean; |
| 1297 | }; |
| 1298 | color?: string; |
| 1299 | height?: number | string; |
| 1300 | id?: string; |
| 1301 | lang?: string; |
| 1302 | max?: number | string; |
| 1303 | media?: string; |
| 1304 | method?: string; |
| 1305 | min?: number | string; |
| 1306 | name?: string; |
| 1307 | style?: { |
| 1308 | [key: string]: string | undefined; |
| 1309 | }; |
| 1310 | target?: string; |
| 1311 | type?: string; |
| 1312 | width?: number | string; |
| 1313 | role?: string; |
| 1314 | tabindex?: number; |
| 1315 | 'accent-height'?: number | string; |
| 1316 | accumulate?: 'none' | 'sum'; |
| 1317 | additive?: 'replace' | 'sum'; |
| 1318 | 'alignment-baseline'?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit'; |
| 1319 | allowReorder?: 'no' | 'yes'; |
| 1320 | alphabetic?: number | string; |
| 1321 | amplitude?: number | string; |
| 1322 | 'arabic-form'?: 'initial' | 'medial' | 'terminal' | 'isolated'; |
| 1323 | ascent?: number | string; |
| 1324 | attributeName?: string; |
| 1325 | attributeType?: string; |
| 1326 | autoReverse?: number | string; |
| 1327 | azimuth?: number | string; |
| 1328 | baseFrequency?: number | string; |
| 1329 | 'baseline-shift'?: number | string; |
| 1330 | baseProfile?: number | string; |
| 1331 | bbox?: number | string; |
| 1332 | begin?: number | string; |
| 1333 | bias?: number | string; |
| 1334 | by?: number | string; |
| 1335 | calcMode?: number | string; |
| 1336 | 'cap-height'?: number | string; |
| 1337 | clip?: number | string; |
| 1338 | 'clip-path'?: string; |
| 1339 | clipPathUnits?: number | string; |
| 1340 | 'clip-rule'?: number | string; |
| 1341 | 'color-interpolation'?: number | string; |
| 1342 | 'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB'; |
| 1343 | 'color-profile'?: number | string; |
| 1344 | 'color-rendering'?: number | string; |
| 1345 | contentScriptType?: number | string; |
| 1346 | contentStyleType?: number | string; |
| 1347 | cursor?: number | string; |
| 1348 | cx?: number | string; |
| 1349 | cy?: number | string; |
| 1350 | d?: string; |
| 1351 | decelerate?: number | string; |
| 1352 | descent?: number | string; |
| 1353 | diffuseConstant?: number | string; |
| 1354 | direction?: number | string; |
| 1355 | display?: number | string; |
| 1356 | divisor?: number | string; |
| 1357 | 'dominant-baseline'?: number | string; |
| 1358 | dur?: number | string; |
| 1359 | dx?: number | string; |
| 1360 | dy?: number | string; |
| 1361 | 'edge-mode'?: number | string; |
| 1362 | elevation?: number | string; |
| 1363 | 'enable-background'?: number | string; |
| 1364 | end?: number | string; |
| 1365 | exponent?: number | string; |
| 1366 | externalResourcesRequired?: number | string; |
| 1367 | fill?: string; |
| 1368 | 'fill-opacity'?: number | string; |
| 1369 | 'fill-rule'?: 'nonzero' | 'evenodd' | 'inherit'; |
| 1370 | filter?: string; |
| 1371 | filterRes?: number | string; |
| 1372 | filterUnits?: number | string; |
| 1373 | 'flood-color'?: number | string; |
| 1374 | 'flood-opacity'?: number | string; |
| 1375 | focusable?: number | string; |
| 1376 | 'font-family'?: string; |
| 1377 | 'font-size'?: number | string; |
| 1378 | 'font-size-adjust'?: number | string; |
| 1379 | 'font-stretch'?: number | string; |
| 1380 | 'font-style'?: number | string; |
| 1381 | 'font-variant'?: number | string; |
| 1382 | 'font-weight'?: number | string; |
| 1383 | format?: number | string; |
| 1384 | from?: number | string; |
| 1385 | fx?: number | string; |
| 1386 | fy?: number | string; |
| 1387 | g1?: number | string; |
| 1388 | g2?: number | string; |
| 1389 | 'glyph-name'?: number | string; |
| 1390 | 'glyph-orientation-horizontal'?: number | string; |
| 1391 | 'glyph-orientation-vertical'?: number | string; |
| 1392 | glyphRef?: number | string; |
| 1393 | gradientTransform?: string; |
| 1394 | gradientUnits?: string; |
| 1395 | hanging?: number | string; |
| 1396 | 'horiz-adv-x'?: number | string; |
| 1397 | 'horiz-origin-x'?: number | string; |
| 1398 | href?: string; |
| 1399 | ideographic?: number | string; |
| 1400 | 'image-rendering'?: number | string; |
| 1401 | in2?: number | string; |
| 1402 | in?: string; |
| 1403 | intercept?: number | string; |
| 1404 | k1?: number | string; |
| 1405 | k2?: number | string; |
| 1406 | k3?: number | string; |
| 1407 | k4?: number | string; |
| 1408 | k?: number | string; |
| 1409 | kernelMatrix?: number | string; |
| 1410 | kernelUnitLength?: number | string; |
| 1411 | kerning?: number | string; |
| 1412 | keyPoints?: number | string; |
| 1413 | keySplines?: number | string; |
| 1414 | keyTimes?: number | string; |
| 1415 | lengthAdjust?: number | string; |
| 1416 | 'letter-spacing'?: number | string; |
| 1417 | 'lighting-color'?: number | string; |
| 1418 | limitingConeAngle?: number | string; |
| 1419 | local?: number | string; |
| 1420 | 'marker-end'?: string; |
| 1421 | markerHeight?: number | string; |
| 1422 | 'marker-mid'?: string; |
| 1423 | 'marker-start'?: string; |
| 1424 | markerUnits?: number | string; |
| 1425 | markerWidth?: number | string; |
| 1426 | mask?: string; |
| 1427 | maskContentUnits?: number | string; |
| 1428 | maskUnits?: number | string; |
| 1429 | mathematical?: number | string; |
| 1430 | mode?: number | string; |
| 1431 | numOctaves?: number | string; |
| 1432 | offset?: number | string; |
| 1433 | opacity?: number | string; |
| 1434 | operator?: number | string; |
| 1435 | order?: number | string; |
| 1436 | orient?: number | string; |
| 1437 | orientation?: number | string; |
| 1438 | origin?: number | string; |
| 1439 | overflow?: number | string; |
| 1440 | 'overline-position'?: number | string; |
| 1441 | 'overline-thickness'?: number | string; |
| 1442 | 'paint-order'?: number | string; |
| 1443 | panose1?: number | string; |
| 1444 | pathLength?: number | string; |
| 1445 | patternContentUnits?: string; |
| 1446 | patternTransform?: number | string; |
| 1447 | patternUnits?: string; |
| 1448 | 'pointer-events'?: number | string; |
| 1449 | points?: string; |
| 1450 | pointsAtX?: number | string; |
| 1451 | pointsAtY?: number | string; |
| 1452 | pointsAtZ?: number | string; |
| 1453 | preserveAlpha?: number | string; |
| 1454 | preserveAspectRatio?: string; |
| 1455 | primitiveUnits?: number | string; |
| 1456 | r?: number | string; |
| 1457 | radius?: number | string; |
| 1458 | refX?: number | string; |
| 1459 | refY?: number | string; |
| 1460 | 'rendering-intent'?: number | string; |
| 1461 | repeatCount?: number | string; |
| 1462 | repeatDur?: number | string; |
| 1463 | requiredextensions?: number | string; |
| 1464 | requiredFeatures?: number | string; |
| 1465 | restart?: number | string; |
| 1466 | result?: string; |
| 1467 | rotate?: number | string; |
| 1468 | rx?: number | string; |
| 1469 | ry?: number | string; |
| 1470 | scale?: number | string; |
| 1471 | seed?: number | string; |
| 1472 | 'shape-rendering'?: number | string; |
| 1473 | slope?: number | string; |
| 1474 | spacing?: number | string; |
| 1475 | specularConstant?: number | string; |
| 1476 | specularExponent?: number | string; |
| 1477 | speed?: number | string; |
| 1478 | spreadMethod?: string; |
| 1479 | startOffset?: number | string; |
| 1480 | stdDeviation?: number | string; |
| 1481 | stemh?: number | string; |
| 1482 | stemv?: number | string; |
| 1483 | stitchTiles?: number | string; |
| 1484 | 'stop-color'?: string; |
| 1485 | 'stop-opacity'?: number | string; |
| 1486 | 'strikethrough-position'?: number | string; |
| 1487 | 'strikethrough-thickness'?: number | string; |
| 1488 | string?: number | string; |
| 1489 | stroke?: string; |
| 1490 | 'stroke-dasharray'?: string | number; |
| 1491 | 'stroke-dashoffset'?: string | number; |
| 1492 | 'stroke-linecap'?: 'butt' | 'round' | 'square' | 'inherit'; |
| 1493 | 'stroke-linejoin'?: 'miter' | 'round' | 'bevel' | 'inherit'; |
| 1494 | 'stroke-miterlimit'?: string; |
| 1495 | 'stroke-opacity'?: number | string; |
| 1496 | 'stroke-width'?: number | string; |
| 1497 | surfaceScale?: number | string; |
| 1498 | systemLanguage?: number | string; |
| 1499 | tableValues?: number | string; |
| 1500 | targetX?: number | string; |
| 1501 | targetY?: number | string; |
| 1502 | 'text-anchor'?: string; |
| 1503 | 'text-decoration'?: number | string; |
| 1504 | textLength?: number | string; |
| 1505 | 'text-rendering'?: number | string; |
| 1506 | to?: number | string; |
| 1507 | transform?: string; |
| 1508 | u1?: number | string; |
| 1509 | u2?: number | string; |
| 1510 | 'underline-position'?: number | string; |
| 1511 | 'underline-thickness'?: number | string; |
| 1512 | unicode?: number | string; |
| 1513 | 'unicode-bidi'?: number | string; |
| 1514 | 'unicode-range'?: number | string; |
| 1515 | 'units-per-em'?: number | string; |
| 1516 | 'v-alphabetic'?: number | string; |
| 1517 | values?: string; |
| 1518 | 'vector-effect'?: number | string; |
| 1519 | version?: string; |
| 1520 | 'vert-adv-y'?: number | string; |
| 1521 | 'vert-origin-x'?: number | string; |
| 1522 | 'vert-origin-y'?: number | string; |
| 1523 | 'v-hanging'?: number | string; |
| 1524 | 'v-ideographic'?: number | string; |
| 1525 | viewBox?: string; |
| 1526 | viewTarget?: number | string; |
| 1527 | visibility?: number | string; |
| 1528 | 'v-mathematical'?: number | string; |
| 1529 | widths?: number | string; |
| 1530 | 'word-spacing'?: number | string; |
| 1531 | 'writing-mode'?: number | string; |
| 1532 | x1?: number | string; |
| 1533 | x2?: number | string; |
| 1534 | x?: number | string; |
| 1535 | 'x-channel-selector'?: string; |
| 1536 | 'x-height'?: number | string; |
| 1537 | xlinkActuate?: string; |
| 1538 | xlinkArcrole?: string; |
| 1539 | xlinkHref?: string; |
| 1540 | xlinkRole?: string; |
| 1541 | xlinkShow?: string; |
| 1542 | xlinkTitle?: string; |
| 1543 | xlinkType?: string; |
| 1544 | xmlBase?: string; |
| 1545 | xmlLang?: string; |
| 1546 | xmlns?: string; |
| 1547 | xmlSpace?: string; |
| 1548 | y1?: number | string; |
| 1549 | y2?: number | string; |
| 1550 | y?: number | string; |
| 1551 | yChannelSelector?: string; |
| 1552 | z?: number | string; |
| 1553 | zoomAndPan?: string; |
| 1554 | } |
| 1555 | /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */ |
| 1556 | interface ToggleEvent extends Event { |
| 1557 | /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */ |
| 1558 | readonly newState: string; |
| 1559 | /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */ |
| 1560 | readonly oldState: string; |
| 1561 | } |
| 1562 | interface DOMAttributes<T> extends JSXAttributes<T> { |
| 1563 | slot?: string; |
| 1564 | part?: string; |
| 1565 | exportparts?: string; |
| 1566 | onCopy?: (event: ClipboardEvent) => void; |
| 1567 | onCopyCapture?: (event: ClipboardEvent) => void; |
| 1568 | onCut?: (event: ClipboardEvent) => void; |
| 1569 | onCutCapture?: (event: ClipboardEvent) => void; |
| 1570 | onPaste?: (event: ClipboardEvent) => void; |
| 1571 | onPasteCapture?: (event: ClipboardEvent) => void; |
| 1572 | onCompositionend?: (event: CompositionEvent) => void; |
| 1573 | onCompositionendCapture?: (event: CompositionEvent) => void; |
| 1574 | onCompositionstart?: (event: CompositionEvent) => void; |
| 1575 | onCompositionstartCapture?: (event: CompositionEvent) => void; |
| 1576 | onCompositionupdate?: (event: CompositionEvent) => void; |
| 1577 | onCompositionupdateCapture?: (event: CompositionEvent) => void; |
| 1578 | onBeforeToggle?: (event: ToggleEvent) => void; |
| 1579 | onBeforeToggleCapture?: (event: ToggleEvent) => void; |
| 1580 | onToggle?: (event: ToggleEvent) => void; |
| 1581 | onToggleCapture?: (event: ToggleEvent) => void; |
| 1582 | onFocus?: (event: FocusEvent) => void; |
| 1583 | onFocusCapture?: (event: FocusEvent) => void; |
| 1584 | onFocusin?: (event: FocusEvent) => void; |
| 1585 | onFocusinCapture?: (event: FocusEvent) => void; |
| 1586 | onFocusout?: (event: FocusEvent) => void; |
| 1587 | onFocusoutCapture?: (event: FocusEvent) => void; |
| 1588 | onBlur?: (event: FocusEvent) => void; |
| 1589 | onBlurCapture?: (event: FocusEvent) => void; |
| 1590 | onChange?: (event: Event) => void; |
| 1591 | onChangeCapture?: (event: Event) => void; |
| 1592 | onInput?: (event: InputEvent) => void; |
| 1593 | onInputCapture?: (event: InputEvent) => void; |
| 1594 | onReset?: (event: Event) => void; |
| 1595 | onResetCapture?: (event: Event) => void; |
| 1596 | onSubmit?: (event: Event) => void; |
| 1597 | onSubmitCapture?: (event: Event) => void; |
| 1598 | onInvalid?: (event: Event) => void; |
| 1599 | onInvalidCapture?: (event: Event) => void; |
| 1600 | onLoad?: (event: Event) => void; |
| 1601 | onLoadCapture?: (event: Event) => void; |
| 1602 | onError?: (event: Event) => void; |
| 1603 | onErrorCapture?: (event: Event) => void; |
| 1604 | onKeyDown?: (event: KeyboardEvent) => void; |
| 1605 | onKeyDownCapture?: (event: KeyboardEvent) => void; |
| 1606 | onKeyPress?: (event: KeyboardEvent) => void; |
| 1607 | onKeyPressCapture?: (event: KeyboardEvent) => void; |
| 1608 | onKeyUp?: (event: KeyboardEvent) => void; |
| 1609 | onKeyUpCapture?: (event: KeyboardEvent) => void; |
| 1610 | onAuxClick?: (event: MouseEvent) => void; |
| 1611 | onClick?: (event: PointerEvent) => void; |
| 1612 | onClickCapture?: (event: MouseEvent) => void; |
| 1613 | onContextMenu?: (event: MouseEvent) => void; |
| 1614 | onContextMenuCapture?: (event: MouseEvent) => void; |
| 1615 | onDblClick?: (event: MouseEvent) => void; |
| 1616 | onDblClickCapture?: (event: MouseEvent) => void; |
| 1617 | onDrag?: (event: DragEvent) => void; |
| 1618 | onDragCapture?: (event: DragEvent) => void; |
| 1619 | onDragEnd?: (event: DragEvent) => void; |
| 1620 | onDragEndCapture?: (event: DragEvent) => void; |
| 1621 | onDragEnter?: (event: DragEvent) => void; |
| 1622 | onDragEnterCapture?: (event: DragEvent) => void; |
| 1623 | onDragExit?: (event: DragEvent) => void; |
| 1624 | onDragExitCapture?: (event: DragEvent) => void; |
| 1625 | onDragLeave?: (event: DragEvent) => void; |
| 1626 | onDragLeaveCapture?: (event: DragEvent) => void; |
| 1627 | onDragOver?: (event: DragEvent) => void; |
| 1628 | onDragOverCapture?: (event: DragEvent) => void; |
| 1629 | onDragStart?: (event: DragEvent) => void; |
| 1630 | onDragStartCapture?: (event: DragEvent) => void; |
| 1631 | onDrop?: (event: DragEvent) => void; |
| 1632 | onDropCapture?: (event: DragEvent) => void; |
| 1633 | onMouseDown?: (event: MouseEvent) => void; |
| 1634 | onMouseDownCapture?: (event: MouseEvent) => void; |
| 1635 | onMouseEnter?: (event: MouseEvent) => void; |
| 1636 | onMouseLeave?: (event: MouseEvent) => void; |
| 1637 | onMouseMove?: (event: MouseEvent) => void; |
| 1638 | onMouseMoveCapture?: (event: MouseEvent) => void; |
| 1639 | onMouseOut?: (event: MouseEvent) => void; |
| 1640 | onMouseOutCapture?: (event: MouseEvent) => void; |
| 1641 | onMouseOver?: (event: MouseEvent) => void; |
| 1642 | onMouseOverCapture?: (event: MouseEvent) => void; |
| 1643 | onMouseUp?: (event: MouseEvent) => void; |
| 1644 | onMouseUpCapture?: (event: MouseEvent) => void; |
| 1645 | onTouchCancel?: (event: TouchEvent) => void; |
| 1646 | onTouchCancelCapture?: (event: TouchEvent) => void; |
| 1647 | onTouchEnd?: (event: TouchEvent) => void; |
| 1648 | onTouchEndCapture?: (event: TouchEvent) => void; |
| 1649 | onTouchMove?: (event: TouchEvent) => void; |
| 1650 | onTouchMoveCapture?: (event: TouchEvent) => void; |
| 1651 | onTouchStart?: (event: TouchEvent) => void; |
| 1652 | onTouchStartCapture?: (event: TouchEvent) => void; |
| 1653 | onPointerDown?: (event: PointerEvent) => void; |
| 1654 | onPointerDownCapture?: (event: PointerEvent) => void; |
| 1655 | onPointerMove?: (event: PointerEvent) => void; |
| 1656 | onPointerMoveCapture?: (event: PointerEvent) => void; |
| 1657 | onPointerUp?: (event: PointerEvent) => void; |
| 1658 | onPointerUpCapture?: (event: PointerEvent) => void; |
| 1659 | onPointerCancel?: (event: PointerEvent) => void; |
| 1660 | onPointerCancelCapture?: (event: PointerEvent) => void; |
| 1661 | onPointerEnter?: (event: PointerEvent) => void; |
| 1662 | onPointerEnterCapture?: (event: PointerEvent) => void; |
| 1663 | onPointerLeave?: (event: PointerEvent) => void; |
| 1664 | onPointerLeaveCapture?: (event: PointerEvent) => void; |
| 1665 | onPointerOver?: (event: PointerEvent) => void; |
| 1666 | onPointerOverCapture?: (event: PointerEvent) => void; |
| 1667 | onPointerOut?: (event: PointerEvent) => void; |
| 1668 | onPointerOutCapture?: (event: PointerEvent) => void; |
| 1669 | onGotPointerCapture?: (event: PointerEvent) => void; |
| 1670 | onGotPointerCaptureCapture?: (event: PointerEvent) => void; |
| 1671 | onLostPointerCapture?: (event: PointerEvent) => void; |
| 1672 | onLostPointerCaptureCapture?: (event: PointerEvent) => void; |
| 1673 | onScroll?: (event: UIEvent) => void; |
| 1674 | onScrollCapture?: (event: UIEvent) => void; |
| 1675 | onWheel?: (event: WheelEvent) => void; |
| 1676 | onWheelCapture?: (event: WheelEvent) => void; |
| 1677 | onAnimationStart?: (event: AnimationEvent) => void; |
| 1678 | onAnimationStartCapture?: (event: AnimationEvent) => void; |
| 1679 | onAnimationEnd?: (event: AnimationEvent) => void; |
| 1680 | onAnimationEndCapture?: (event: AnimationEvent) => void; |
| 1681 | onAnimationIteration?: (event: AnimationEvent) => void; |
| 1682 | onAnimationIterationCapture?: (event: AnimationEvent) => void; |
| 1683 | onTransitionCancel?: (event: TransitionEvent) => void; |
| 1684 | onTransitionCancelCapture?: (event: TransitionEvent) => void; |
| 1685 | onTransitionEnd?: (event: TransitionEvent) => void; |
| 1686 | onTransitionEndCapture?: (event: TransitionEvent) => void; |
| 1687 | onTransitionRun?: (event: TransitionEvent) => void; |
| 1688 | onTransitionRunCapture?: (event: TransitionEvent) => void; |
| 1689 | onTransitionStart?: (event: TransitionEvent) => void; |
| 1690 | onTransitionStartCapture?: (event: TransitionEvent) => void; |
| 1691 | [key: `aria-${string}`]: string | boolean | undefined; |
| 1692 | [key: `aria${string}`]: string | boolean | undefined; |
| 1693 | } |
| 1694 | } |
| 1695 | export interface JSXAttributes<T = Element> { |
| 1696 | key?: string | number; |
| 1697 | ref?: (elm?: T) => void; |
| 1698 | } |
| 1699 | export interface CustomElementsDefineOptions { |
| 1700 | exclude?: string[]; |
| 1701 | resourcesUrl?: string; |
| 1702 | syncQueue?: boolean; |
| 1703 | transformTagName?: (tagName: string) => string; |
| 1704 | jmp?: (c: Function) => any; |
| 1705 | raf?: (c: FrameRequestCallback) => number; |
| 1706 | ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void; |
| 1707 | rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void; |
| 1708 | ce?: (eventName: string, opts?: any) => CustomEvent; |
| 1709 | } |
| 1710 |