@arcgis/lumina 4.32.0-next.7 → 4.32.0-next.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/jsx/jsx.d.ts DELETED
@@ -1,2043 +0,0 @@
1
- /**
2
- * This reference directive is removed by tsup at compile time. It is only
3
- * needed to correctly type-check this package. For consumers of this package,
4
- * they should have an `./src/lumina.ts` file like so:
5
- * ```ts
6
- * /// <reference types="@arcgis/lumina/typings" />
7
- * ```
8
- */
9
- /// <reference path="../typings/jsxGlobals.d.ts" />
10
- import type { Properties as CssProperties } from "csstype";
11
- import type { TemplateResult } from "lit-html";
12
- import type { DirectiveResult } from "lit-html/directive.js";
13
- import type { ClassMapDirective, ClassInfo } from "lit-html/directives/class-map.js";
14
- import type { StyleMapDirective } from "lit-html/directives/style-map.js";
15
- import type { Ref } from "lit-html/directives/ref.js";
16
- /**
17
- * The "h" namespace is used to import JSX types for elements and attributes.
18
- * It is imported in order to avoid conflicting global JSX issues.
19
- */
20
- export declare namespace h {
21
- export function h(sel: any, data?: any, text?: any): TemplateResult;
22
- export type { LuminaJsx as JSX };
23
- }
24
- /**
25
- * The references to this function are removed at build time.
26
- */
27
- export declare const Fragment: (props: {
28
- children?: JsxNode;
29
- }) => TemplateResult;
30
- /**
31
- * @internal
32
- * The references to this function are removed at build time. You do not need
33
- * to import it directly
34
- */
35
- export declare function jsx(type: string, props: unknown, key?: unknown): JsxNode;
36
- /**
37
- * @internal
38
- * The references to this function are removed at build time. You do not need
39
- * to import it directly
40
- */
41
- export declare function jsxs(type: string, props: unknown, key?: unknown): JsxNode;
42
- /**
43
- * The JSX to lit-html conversion has a heuristic to determine whether a prop
44
- * should be converted to a property or attribute at runtime. In cases where
45
- * that heuristic is not sufficient, you can use the `bindAttribute()` function to
46
- * explicitly tell the conversion to treat the prop as an attribute.
47
- *
48
- * This function call will be erased at build-time, thus it has no runtime
49
- * impact. But that also means you should not call this function anywhere other
50
- * than at the top level of a JSX prop value
51
- *
52
- * @example
53
- * ```tsx
54
- * <my-component
55
- * name={bindAttribute("Pass name as attribute rather than property")}
56
- * />
57
- * ```
58
- *
59
- * Will be converted at build time into:
60
- * ```ts
61
- * html`<my-component name="Pass name as attribute rather than property"></my-component>`
62
- * ```
63
- *
64
- * @remarks
65
- * If you often encounter cases where the JSX to lit-html incorrectly converts
66
- * the prop to a property necessitating the use of `bindAttribute()`, please open
67
- * an issue for Lumina.
68
- */
69
- export declare const bindAttribute: <T>(value: T) => T;
70
- /**
71
- * The JSX to lit-html conversion has a heuristic to determine whether a prop
72
- * should be converted to a property, attribute or boolean attribute at runtime.
73
- * In cases where that heuristic is not sufficient, you can use the
74
- * `bindBooleanAttribute()` function to explicitly tell the conversion to treat the
75
- * prop as a boolean attribute.
76
- *
77
- * This function call will be erased at build-time, thus it has no runtime
78
- * impact. But that also means you should not call this function anywhere other
79
- * than at the top level of a JSX prop value
80
- *
81
- * @see https://lit.dev/docs/templates/expressions/#boolean-attribute-expressions
82
- *
83
- * @example
84
- * ```tsx
85
- * <my-component
86
- * checked={bindBooleanAttribute(myBoolean)}
87
- * />
88
- * ```
89
- *
90
- * Will be converted at build time into:
91
- * ```ts
92
- * html`<my-component ?checked=${myBoolean}></my-component>`
93
- * ```
94
- *
95
- * @remarks
96
- * If you often encounter cases where the JSX to lit-html incorrectly converts
97
- * the prop necessitating the use of `bindBooleanAttribute()`, please open
98
- * an issue for Lumina.
99
- */
100
- export declare const bindBooleanAttribute: <T>(value: T) => T;
101
- /**
102
- * The JSX to lit-html conversion has a heuristic to determine whether a prop
103
- * should be converted to a property or attribute at runtime. In cases where
104
- * that heuristic is not sufficient, you can use the `bindProperty()` function to
105
- * explicitly tell the conversion to treat the prop as a property.
106
- *
107
- * This function call will be erased at build-time, thus it has no runtime
108
- * impact. But that also means you should not call this function anywhere other
109
- * than at the top level of a JSX prop value
110
- *
111
- * @example
112
- * ```tsx
113
- * <my-component
114
- * my-prop={bindProperty("Pass my-prop as a property rather than attribute")}
115
- * />
116
- * ```
117
- *
118
- * Will be converted at build time into:
119
- * ```ts
120
- * html`<my-component .my-prop="Pass my-prop as a property rather than attribute"></my-component>`
121
- * ```
122
- *
123
- * @remarks
124
- * If you often encounter cases where the JSX to lit-html incorrectly converts
125
- * the prop to an attribute necessitating the use of `bindProperty()`, please open
126
- * an issue for Lumina.
127
- *
128
- * @remarks
129
- * This function is not named `property()` because that is already taken by
130
- * Lit's \@property() decorator
131
- */
132
- export declare const bindProperty: <T>(value: T) => T;
133
- /**
134
- * The `bindEvent()` function lets you customize the event binding behavior by
135
- * providing options like passive, capture, once and other options that you
136
- * normally can provide to `addEventListener`
137
- *
138
- * This function call will be erased at build-time, thus it has no runtime
139
- * impact.
140
- *
141
- * @example
142
- * ```tsx
143
- * <my-component
144
- * onScroll={bindEvent({ handleEvent: console.log, passive:true })}
145
- * />
146
- * ```tsx
147
- *
148
- * ```ts
149
- * html`<my-component onScroll=${{ handleEvent: console.log, passive:true }}></my-component>`
150
- * ```
151
- *
152
- * @remarks
153
- * This function is a _JSX to lit-html_ adaptation of the Lit's event listener
154
- * customization syntax.
155
- * See https://lit.dev/docs/components/events/#event-options-decorator
156
- *
157
- *
158
- * @remarks
159
- * This function is not named `event` because there is a legacy `window.event`
160
- * global that was interfering with auto-imports of this function.
161
- */
162
- export declare const bindEvent: <T>(descriptor: T | (AddEventListenerOptions & {
163
- handleEvent: T;
164
- })) => T;
165
- export type JsxNode = DirectiveResult<any> | JsxNodeArray | Node | TemplateResult | boolean | number | (NonNullable<unknown> & string) | null | undefined;
166
- interface JsxNodeArray extends Array<JsxNode> {
167
- }
168
- /**
169
- * this.el property on a component only has the public properties of the
170
- * component. All internal methods, properties, as well as LitElement methods
171
- * are excluded. This type approximates what the public API of the component
172
- * looks like.
173
- *
174
- * @example
175
- * Usually, you don't need to use this type directly. If you have an
176
- * `ArcgisCounter` element, you can get it's el type by using
177
- * `ArcgisCounter["el"]`
178
- *
179
- * @remarks
180
- * By using Omit<>, TypeScript also "forgets" all private members of the
181
- * passed in type, which is convenient for us.
182
- */
183
- export type ToElement<Component> = Omit<Component, LuminaJsx.ExcludedProperties>;
184
- /**
185
- * Utility type for getting the JSX prop types for a given component. In particular:
186
- *
187
- * - Excludes LitElement properties that should not be exposed to the end-user
188
- * - Converts event .emit() properties into event callbacks
189
- * - Replaces original HTMLElement property typings with the ones we provide for
190
- * greater type-safety and control
191
- * - For native events listeners, makes currentTarget equal to the component's
192
- * HTML instance
193
- *
194
- * We mark all component properties as optional because there is no easy
195
- * way for us to differentiate between public component properties and just
196
- * regular members that don't have `@property()` decorator (presence or
197
- * absence of decorator does not change the type). Thus, if we don't mark all
198
- * properties as optional, TypeScript will force us to provide a value for all
199
- * methods, and regular properties component may have.
200
- */
201
- export type ToJsx<Component extends {
202
- el: unknown;
203
- }> = LuminaJsx.HTMLAttributes<Component["el"]> & LuminaJsx.RemapEvents<Component> & Partial<Omit<Component, LuminaJsx.ExcludedProperties | keyof HTMLElement | keyof LuminaJsx.RemapEvents<Component>>>;
204
- /**
205
- * Get the type of all events for a given component. Includes native DOM events
206
- * and custom events.
207
- *
208
- * @example
209
- * ```tsx
210
- * render() {
211
- * return <arcgis-counter onArcgisOverflow={this._handleOverflow} />
212
- * }
213
- * _handleOverflow(event: ToEvents<ArcgisCounter>["arcgisOverflow"]) {
214
- * // event.detail
215
- * // event.currentTarget
216
- * }
217
- * ```
218
- *
219
- * @remarks
220
- * Alternative implementation of this type that is simpler, and potentially
221
- * more performant, but looses "go to definition" information.
222
- *
223
- * ```tsx
224
- * export type ToEvents<Component extends { el: unknown }> = {
225
- * [Key in keyof ToJsx<Component> as Key extends `on${infer EventName}`
226
- * ? Uncapitalize<EventName>
227
- * : never]-?: ListenerToPayloadType<ToJsx<Component>[Key]>;
228
- * };
229
- *
230
- * type ListenerToPayloadType<Listener> = Listener extends (event: infer EventType) => unknown ? EventType : never;
231
- * ```
232
- *
233
- * TypeScript issues that may fix this:
234
- * - https://github.com/microsoft/TypeScript/issues/49909
235
- * - https://github.com/microsoft/TypeScript/issues/50715
236
- */
237
- export type ToEvents<Component> = GlobalEventTypes<MaybeEl<Component>> & {
238
- [Key in keyof Component as ListenerToPayloadType<Component[Key]> extends CustomEvent ? Key : never]-?: ListenerToPayloadType<Component[Key]> & {
239
- currentTarget: MaybeEl<Component>;
240
- };
241
- };
242
- type MaybeEl<Component> = Component extends {
243
- el: unknown;
244
- } ? Component["el"] : Component;
245
- /**
246
- * From "GlobalEventHandlersCamelCase" extract event names and their payloads.
247
- * Not using "HTMLElementEventMap" because that map has all events in lowercase.
248
- */
249
- type GlobalEventTypes<Target = HTMLElement> = {
250
- [Key in keyof LuminaJsx.GlobalEventHandlersCamelCase<Target> as Key extends `on${infer EventName}` ? Uncapitalize<EventName> : never]-?: Parameters<NonNullable<LuminaJsx.GlobalEventHandlersCamelCase<Target>[Key]>>[0];
251
- };
252
- type ListenerToPayloadType<Listener> = unknown extends Listener ? void : Listener extends {
253
- emit: (...rest: never[]) => infer PayloadType;
254
- } ? PayloadType : Listener extends CustomEvent ? Listener : void;
255
- /**
256
- * These typings are based on dom-expressions typings:
257
- * https://github.com/ryansolid/dom-expressions/blob/main/packages/dom-expressions/src/jsx.d.ts
258
- *
259
- * They in turn based the typings on Surplus and Inferno:
260
- * - https://github.com/adamhaile/surplus/blob/master/index.d.ts
261
- * - https://github.com/infernojs/inferno/blob/master/packages/inferno/src/core/types.ts
262
- *
263
- * Documentation about how to type JSX in TypeScript:
264
- * https://www.typescriptlang.org/docs/handbook/jsx.html
265
- */
266
- type DOMElement = Element;
267
- export declare namespace LuminaJsx {
268
- /**
269
- * Whether to pick TemplateResult or JsxNode here is a compromise.
270
- *
271
- * - If I tell it Lit JSX type is JsxNode, then even <a /> expression will
272
- * have a very broad JsxNode type (union of template results, null,
273
- * undefined, false, and more). This may slow down type-checking and may be
274
- * too-broad for certain use cases.
275
- * - Since <a /> would be typed very broad, you won't be able to declare
276
- * your function as receiving just TemplateResult
277
- * - Also, this makes TypeScript not allow you to return undefined from
278
- * your functional component
279
- * - This is what React did and what I am going with
280
- * - If I tell TypeScript that JSX type is TemplateResult, then my function
281
- * component is no longer allowed to return undefined or string or etc.
282
- *
283
- * This is mainly a TypeScript limitation. Issues tracking this:
284
- * - https://github.com/microsoft/TypeScript/issues/21699
285
- * - https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18912
286
- *
287
- */
288
- type Element = TemplateResult;
289
- interface ElementClass {
290
- }
291
- interface ElementAttributesProperty {
292
- }
293
- interface IntrinsicClassAttributes {
294
- }
295
- interface ElementChildrenAttribute {
296
- children: JsxNode;
297
- }
298
- interface IntrinsicAttributes {
299
- /**
300
- * The `key` is a special attribute that can be set on any element.
301
- *
302
- * At build-time it is translated into the `keyed()` directive:
303
- * https://lit.dev/docs/templates/directives/#keyed
304
- *
305
- * @remarks
306
- * Unlike in React or Stencil, any JavaScript value is acceptable as a key
307
- */
308
- key?: unknown;
309
- }
310
- interface IntrinsicElements extends HTMLElementTags, SVGElementTags, ReMappedComponents<globalThis.DeclareElements>, Omit<ReMapStencilComponents<globalThis.ImportStencilElements>, keyof HTMLElementTags | keyof SVGElementTags> {
311
- }
312
- /**
313
- * By not requiring to have some sort of typings generation watcher to run
314
- * in the background and generate types for the components based on the
315
- * exposed properties, we improve developer experience a lot.
316
- * (no need to run a watcher in the background, no need to commit an
317
- * autogenerated file, fewer merge conflicts...)
318
- *
319
- * The trade-off is that we can't tell in TypeScript if component's public
320
- * properties have a `@property()` decorator or not, so have to expose them
321
- * all. To reduce the noise, we exclude some properties that we know are
322
- * definitely not props (as they are coming from LitElement)
323
- *
324
- * An ESLint rule that mandates all properties to be private/protected or else
325
- * to have a `@property()` decorator would mitigate the issue to a large
326
- * extent.
327
- *
328
- * This does not impact the typings we publish - at build time we have all the
329
- * information and can generate the typings that expose only the actual
330
- * properties component declared.
331
- *
332
- * @remarks
333
- * Do not exclude "manager" and "componentOnReady" since these properties are
334
- * available both on lazy and non-lazy instance.
335
- */
336
- type ExcludedProperties = "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "el" | "listen" | "load" | "loaded" | "willUpdate" | "updated" | "render" | "renderOptions";
337
- type ReMappedComponents<Components> = {
338
- [Key in keyof Components]: Components[Key] extends {
339
- el: unknown;
340
- } ? ToJsx<Components[Key]> : never;
341
- };
342
- /**
343
- * From event emitters create event listener callbacks
344
- */
345
- type RemapEvents<Component extends {
346
- el: unknown;
347
- }> = {
348
- [Key in keyof Component as `on${Key & string}`]?: unknown extends Component[Key] ? never : Component[Key] extends {
349
- emit: (...rest: never[]) => infer PayloadType;
350
- } ? (event: PayloadType & {
351
- currentTarget: Component["el"];
352
- }) => void : never;
353
- };
354
- /**
355
- * - Make ref prop return HTMLElement rather than Stencil element type
356
- * - Uncapitalize the event properties to match the syntax of React 19,
357
- * Preact and Lumina
358
- * - Replace Stencil's HTMLElement property typings with the ones we provide
359
- * for greater type-safety, better documentation and more control
360
- */
361
- type ReMapStencilComponents<Components> = {
362
- [Key in keyof Pick<Components, keyof Components & keyof HTMLElementTagNameMap>]: ReMapStencilComponent<Components[Key]> & HTMLAttributes<HTMLElementTagNameMap[Key]>;
363
- };
364
- type ReMapStencilComponent<Component> = {
365
- [Key in keyof Component as Key extends "ref" | keyof HTMLElement ? never : FixupStencilEventCasing<Key>]: Component[Key];
366
- };
367
- type FixupStencilEventCasing<PropertyName extends PropertyKey> = PropertyName extends `on${infer EventName}` ? `on${Uncapitalize<EventName>}` : PropertyName;
368
- type EventHandlerUnion<T, E extends Event> = (e: E & {
369
- currentTarget: T;
370
- target: DOMElement;
371
- }) => void;
372
- type InputEventHandlerUnion<T, E extends InputEvent> = (e: E & {
373
- currentTarget: T;
374
- target: T extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement ? T : DOMElement;
375
- }) => void;
376
- type ChangeEventHandlerUnion<T, E extends Event> = (e: E & {
377
- currentTarget: T;
378
- target: T extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement ? T : DOMElement;
379
- }) => void;
380
- type FocusEventHandlerUnion<T, E extends FocusEvent> = (e: E & {
381
- currentTarget: T;
382
- target: T extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement ? T : DOMElement;
383
- }) => void;
384
- type RefCallback<T> = {
385
- bivarianceHack(instance: T | undefined): void;
386
- }["bivarianceHack"];
387
- interface CustomAttributes<T = HTMLElement> {
388
- /**
389
- * The `key` is a special attribute that can be set on any element.
390
- *
391
- * At build-time it is translated into the `keyed()` directive:
392
- * https://lit.dev/docs/templates/directives/#keyed
393
- *
394
- * @remarks
395
- * Unlike in React or Stencil, any JavaScript value is acceptable as a key
396
- */
397
- key?: unknown;
398
- ref?: RefCallback<T> | Ref<T>;
399
- directives?: readonly DirectiveResult[];
400
- }
401
- interface DOMAttributes<T = HTMLElement> extends CustomAttributes<T>, GlobalEventHandlersCamelCase<T> {
402
- children?: JsxNode;
403
- innerHTML?: string;
404
- innerText?: string | number;
405
- textContent?: string | number;
406
- class?: string | ClassInfo | DirectiveResult<typeof ClassMapDirective>;
407
- }
408
- interface GlobalEventHandlersCamelCase<T = HTMLElement> {
409
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */
410
- onAnimationCancel?: EventHandlerUnion<T, AnimationEvent>;
411
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */
412
- onAnimationEnd?: EventHandlerUnion<T, AnimationEvent>;
413
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */
414
- onAnimationIteration?: EventHandlerUnion<T, AnimationEvent>;
415
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */
416
- onAnimationStart?: EventHandlerUnion<T, AnimationEvent>;
417
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */
418
- onAuxClick?: EventHandlerUnion<T, MouseEvent>;
419
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforeinput_event) */
420
- onBeforeInput?: InputEventHandlerUnion<T, InputEvent>;
421
- /**
422
- * Fires when the object loses the input focus.
423
- *
424
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)
425
- */
426
- onBlur?: FocusEventHandlerUnion<T, FocusEvent>;
427
- /**
428
- * Fires when the contents of the object or selection have changed.
429
- *
430
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event)
431
- */
432
- onChange?: ChangeEventHandlerUnion<T, Event>;
433
- /**
434
- * Fires when the user clicks the left mouse button on the object
435
- *
436
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)
437
- */
438
- onClick?: EventHandlerUnion<T, PointerEvent>;
439
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/compositionend_event) */
440
- onCompositionEnd?: EventHandlerUnion<T, CompositionEvent>;
441
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/compositionstart_event) */
442
- onCompositionStart?: EventHandlerUnion<T, CompositionEvent>;
443
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/compositionupdate_event) */
444
- onCompositionUpdate?: EventHandlerUnion<T, CompositionEvent>;
445
- /**
446
- * Fires when the user clicks the right mouse button in the client area, opening the context menu.
447
- *
448
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
449
- */
450
- onContextMenu?: EventHandlerUnion<T, MouseEvent>;
451
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
452
- onCopy?: EventHandlerUnion<T, ClipboardEvent>;
453
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */
454
- onCut?: EventHandlerUnion<T, ClipboardEvent>;
455
- /**
456
- * Fires when the user double-clicks the object.
457
- *
458
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event)
459
- */
460
- onDblClick?: EventHandlerUnion<T, MouseEvent>;
461
- /**
462
- * Fires on the source object continuously during a drag operation.
463
- *
464
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event)
465
- */
466
- onDrag?: EventHandlerUnion<T, DragEvent>;
467
- /**
468
- * Fires on the source object when the user releases the mouse at the close of a drag operation.
469
- *
470
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event)
471
- */
472
- onDragEnd?: EventHandlerUnion<T, DragEvent>;
473
- /**
474
- * Fires on the target element when the user drags the object to a valid drop target.
475
- *
476
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event)
477
- */
478
- onDragEnter?: EventHandlerUnion<T, DragEvent>;
479
- /**
480
- * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
481
- *
482
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event)
483
- */
484
- onDragLeave?: EventHandlerUnion<T, DragEvent>;
485
- /**
486
- * Fires on the target element continuously while the user drags the object over a valid drop target.
487
- *
488
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event)
489
- */
490
- onDragOver?: EventHandlerUnion<T, DragEvent>;
491
- /**
492
- * Fires on the source object when the user starts to drag a text selection or selected object.
493
- *
494
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event)
495
- */
496
- onDragStart?: EventHandlerUnion<T, DragEvent>;
497
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */
498
- onDrop?: EventHandlerUnion<T, DragEvent>;
499
- onEncrypted?: EventHandlerUnion<T, Event>;
500
- /**
501
- * Fires when an error occurs during object loading.
502
- *
503
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event)
504
- */
505
- onError?: EventHandlerUnion<T, Event>;
506
- /**
507
- * Fires when the object receives focus.
508
- *
509
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event)
510
- */
511
- onFocus?: FocusEventHandlerUnion<T, FocusEvent>;
512
- /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Element/focusout_event) */
513
- onFocusOut?: FocusEventHandlerUnion<T, FocusEvent>;
514
- /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Element/focusin_event) */
515
- onFocusIn?: FocusEventHandlerUnion<T, FocusEvent>;
516
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */
517
- onFullscreenChange?: EventHandlerUnion<T, Event>;
518
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */
519
- onFullscreenError?: EventHandlerUnion<T, Event>;
520
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */
521
- onGotPointerCapture?: EventHandlerUnion<T, PointerEvent>;
522
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/input_event) */
523
- onInput?: InputEventHandlerUnion<T, InputEvent>;
524
- /**
525
- * Fires when the user presses a key.
526
- *
527
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event)
528
- */
529
- onKeyDown?: EventHandlerUnion<T, KeyboardEvent>;
530
- /**
531
- * Fires when the user releases a key.
532
- *
533
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event)
534
- */
535
- onKeyUp?: EventHandlerUnion<T, KeyboardEvent>;
536
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lostpointercapture_event) */
537
- onLostPointerCapture?: EventHandlerUnion<T, PointerEvent>;
538
- /**
539
- * Fires when the user clicks the object with either mouse button.
540
- *
541
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event)
542
- */
543
- onMouseDown?: EventHandlerUnion<T, MouseEvent>;
544
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */
545
- onMouseEnter?: EventHandlerUnion<T, MouseEvent>;
546
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */
547
- onMouseLeave?: EventHandlerUnion<T, MouseEvent>;
548
- /**
549
- * Fires when the user moves the mouse over the object.
550
- *
551
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event)
552
- */
553
- onMouseMove?: EventHandlerUnion<T, MouseEvent>;
554
- /**
555
- * Fires when the user moves the mouse pointer outside the boundaries of the object.
556
- *
557
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event)
558
- */
559
- onMouseOut?: EventHandlerUnion<T, MouseEvent>;
560
- /**
561
- * Fires when the user moves the mouse pointer into the object.
562
- *
563
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event)
564
- */
565
- onMouseOver?: EventHandlerUnion<T, MouseEvent>;
566
- /**
567
- * Fires when the user releases a mouse button while the mouse is over the object.
568
- *
569
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event)
570
- */
571
- onMouseUp?: EventHandlerUnion<T, MouseEvent>;
572
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */
573
- onPaste?: EventHandlerUnion<T, ClipboardEvent>;
574
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */
575
- onPointerCancel?: EventHandlerUnion<T, PointerEvent>;
576
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */
577
- onPointerDown?: EventHandlerUnion<T, PointerEvent>;
578
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */
579
- onPointerEnter?: EventHandlerUnion<T, PointerEvent>;
580
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */
581
- onPointerLeave?: EventHandlerUnion<T, PointerEvent>;
582
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */
583
- onPointerMove?: EventHandlerUnion<T, PointerEvent>;
584
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */
585
- onPointerOut?: EventHandlerUnion<T, PointerEvent>;
586
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
587
- onPointerOver?: EventHandlerUnion<T, PointerEvent>;
588
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
589
- onPointerUp?: EventHandlerUnion<T, PointerEvent>;
590
- /**
591
- * Fires when the user repositions the scroll box in the scroll bar on the object.
592
- *
593
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)
594
- */
595
- onScroll?: EventHandlerUnion<T, Event>;
596
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */
597
- onScrollEnd?: EventHandlerUnion<T, Event>;
598
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */
599
- onSecurityPolicyViolation?: EventHandlerUnion<T, SecurityPolicyViolationEvent>;
600
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */
601
- onSelectStart?: EventHandlerUnion<T, Event>;
602
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
603
- onTouchCancel?: EventHandlerUnion<T, TouchEvent>;
604
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */
605
- onTouchEnd?: EventHandlerUnion<T, TouchEvent>;
606
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */
607
- onTouchMove?: EventHandlerUnion<T, TouchEvent>;
608
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */
609
- onTouchStart?: EventHandlerUnion<T, TouchEvent>;
610
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */
611
- onTransitionCancel?: EventHandlerUnion<T, TransitionEvent>;
612
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */
613
- onTransitionEnd?: EventHandlerUnion<T, TransitionEvent>;
614
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */
615
- onTransitionRun?: EventHandlerUnion<T, TransitionEvent>;
616
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */
617
- onTransitionStart?: EventHandlerUnion<T, TransitionEvent>;
618
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */
619
- onWheel?: EventHandlerUnion<T, WheelEvent>;
620
- }
621
- type HTMLAutocapitalize = "off" | "none" | "on" | "sentences" | "words" | "characters";
622
- type HTMLDir = "ltr" | "rtl" | "auto";
623
- type HTMLFormEncType = "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain";
624
- type HTMLFormMethod = "post" | "get" | "dialog";
625
- type HTMLCrossOrigin = "anonymous" | "use-credentials" | "";
626
- type HTMLReferrerPolicy = "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
627
- type HTMLIframeSandbox = "allow-downloads-without-user-activation" | "allow-downloads" | "allow-forms" | "allow-modals" | "allow-orientation-lock" | "allow-pointer-lock" | "allow-popups" | "allow-popups-to-escape-sandbox" | "allow-presentation" | "allow-same-origin" | "allow-scripts" | "allow-storage-access-by-user-activation" | "allow-top-navigation" | "allow-top-navigation-by-user-activation" | "allow-top-navigation-to-custom-protocols";
628
- type HTMLLinkAs = "audio" | "document" | "embed" | "fetch" | "font" | "image" | "object" | "script" | "style" | "track" | "video" | "worker";
629
- /**
630
- * All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
631
- *
632
- * @remarks
633
- * If attribute is settable as a property, that is preferred - such aria
634
- * attributes are in camelCase in this interface. Some are settable as
635
- * DOM attribute only - such names are in kebab-case.
636
- */
637
- interface AriaAttributes {
638
- /**
639
- * Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
640
- *
641
- * @remarks
642
- * While HTML attributes on regular HTML elements are case-insensitive, when
643
- * the same common attributes are set on a foreign HTML elements (SVG/Math),
644
- * they are case sensitive. Thus, we can't author this as
645
- * "aria-activeDescendant"
646
- */
647
- ["aria-activedescendant"]?: string;
648
- ariaActiveDescendantElement?: HTMLElement;
649
- /** 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. */
650
- ariaAtomic?: boolean | "false" | "true";
651
- /**
652
- * 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
653
- * presented if they are made.
654
- */
655
- ariaAutoComplete?: "none" | "inline" | "list" | "both";
656
- /** 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. */
657
- ariaBusy?: boolean | "false" | "true";
658
- /**
659
- * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
660
- * @see ariaPressed
661
- * @see ariaSelected
662
- */
663
- ariaChecked?: boolean | "false" | "mixed" | "true";
664
- /**
665
- * Defines the total number of columns in a table, grid, or treegrid.
666
- * @see ariaColIndex
667
- */
668
- ariaColCount?: number | string;
669
- /**
670
- * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
671
- * @see ariaColCount
672
- * @see ariaColSpan
673
- */
674
- ariaColIndex?: number | string;
675
- /**
676
- * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
677
- * @see ariaColIndex
678
- * @see ariaRowSpan
679
- */
680
- ariaColSpan?: number | string;
681
- /**
682
- * Identifies the element (or elements) whose contents or presence are controlled by the current element.
683
- * @see ariaOwns.
684
- */
685
- ["aria-controls"]?: string;
686
- ariaControlsElements?: HTMLElement[];
687
- /** Indicates the element that represents the current item within a container or set of related elements. */
688
- ariaCurrent?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time";
689
- /**
690
- * Defines a string value that describes or annotates the current element.
691
- * @see aria-describedby
692
- */
693
- ariaDescription?: string;
694
- /**
695
- * Identifies the element (or elements) that describes the object.
696
- * @see aria-labelledby
697
- */
698
- ["aria-describedby"]?: string;
699
- ariaDescribedByElements?: HTMLElement;
700
- /**
701
- * Identifies the element that provides a detailed, extended description for the object.
702
- * @see aria-describedby
703
- */
704
- ["aria-details"]?: string;
705
- ariaDetailsElements?: HTMLElement;
706
- /**
707
- * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
708
- * @see ariaHidden
709
- * @see ariaReadonly
710
- */
711
- ariaDisabled?: boolean | "false" | "true";
712
- /**
713
- * Identifies the element that provides an error message for the object.
714
- * @see ariaInvalid
715
- * @see aria-describedby
716
- */
717
- ["aria-errormessage"]?: string;
718
- ariaErrorMessageElements?: HTMLElement;
719
- /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
720
- ariaExpanded?: boolean | "false" | "true";
721
- /**
722
- * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
723
- * allows assistive technology to override the general default of reading in document source order.
724
- */
725
- ["aria-flowto"]?: string;
726
- ariaFlowToElements?: HTMLElement;
727
- /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
728
- ariaHasPopup?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog";
729
- /**
730
- * Indicates whether the element is exposed to an accessibility API.
731
- * @see ariaDisabled
732
- */
733
- ariaHidden?: boolean | "false" | "true";
734
- /**
735
- * Indicates the entered value does not conform to the format expected by the application.
736
- * @see aria-errormessage
737
- */
738
- ariaInvalid?: boolean | "false" | "true" | "grammar" | "spelling";
739
- /** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
740
- ariaKeyShortcuts?: string;
741
- /**
742
- * Defines a string value that labels the current element.
743
- * @see aria-labelledby
744
- */
745
- ariaLabel?: string;
746
- /**
747
- * Identifies the element (or elements) that labels the current element.
748
- * @see aria-describedby
749
- */
750
- ["aria-labelledby"]?: string;
751
- ariaLabelledByElements?: HTMLElement;
752
- /** Defines the hierarchical level of an element within a structure. */
753
- ariaLevel?: number | string;
754
- /** 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. */
755
- ariaLive?: "off" | "assertive" | "polite";
756
- /** Indicates whether an element is modal when displayed. */
757
- ariaModal?: boolean | "false" | "true";
758
- /** Indicates whether a text box accepts multiple lines of input or only a single line. */
759
- ariaMultiLine?: boolean | "false" | "true";
760
- /** Indicates that the user may select more than one item from the current selectable descendants. */
761
- ariaMultiSelectable?: boolean | "false" | "true";
762
- /** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
763
- ariaOrientation?: "horizontal" | "vertical";
764
- /**
765
- * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
766
- * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
767
- * @see aria-controls
768
- */
769
- ["aria-owns"]?: string;
770
- ariaOwnsElements?: HTMLElement;
771
- /**
772
- * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
773
- * A hint could be a sample value or a brief description of the expected format.
774
- */
775
- ariaPlaceholder?: string;
776
- /**
777
- * 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.
778
- * @see ariaSetSize.
779
- */
780
- ariaPosInSet?: number | string;
781
- /**
782
- * Indicates the current "pressed" state of toggle buttons.
783
- * @see ariaChecked
784
- * @see ariaSelected
785
- */
786
- ariaPressed?: boolean | "false" | "mixed" | "true";
787
- /**
788
- * Indicates that the element is not editable, but is otherwise operable.
789
- * @see ariaDisabled
790
- */
791
- ariaReadOnly?: boolean | "false" | "true";
792
- /**
793
- * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
794
- * @see ariaAtomic
795
- */
796
- ariaRelevant?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals";
797
- /** Indicates that user input is required on the element before a form may be submitted. */
798
- ariaRequired?: boolean | "false" | "true";
799
- /** Defines a human-readable, author-localized description for the role of an element. */
800
- ariaRoleDescription?: string;
801
- /**
802
- * Defines the total number of rows in a table, grid, or treegrid.
803
- * @see ariaRowIndex
804
- */
805
- ariaRowCount?: number | string;
806
- /**
807
- * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
808
- * @see ariaRowCount
809
- * @see ariaRowSpan
810
- */
811
- ariaRowIndex?: number | string;
812
- /**
813
- * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
814
- * @see ariaRowIndex
815
- * @see ariaColSpan
816
- */
817
- ariaRowSpan?: number | string;
818
- /**
819
- * Indicates the current "selected" state of various widgets.
820
- * @see ariaChecked
821
- * @see ariaPressed
822
- */
823
- ariaSelected?: boolean | "false" | "true";
824
- /**
825
- * 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.
826
- * @see ariaPosInSet
827
- */
828
- ariaSetSize?: number | string;
829
- /** Indicates if items in a table or grid are sorted in ascending or descending order. */
830
- ariaSort?: "none" | "ascending" | "descending" | "other";
831
- /** Defines the maximum allowed value for a range widget. */
832
- ariaValueMax?: number | string;
833
- /** Defines the minimum allowed value for a range widget. */
834
- ariaValueMin?: number | string;
835
- /**
836
- * Defines the current value for a range widget.
837
- * @see ariaValueText.
838
- */
839
- ariaValueNow?: number | string;
840
- /** Defines the human readable text alternative of ariaValueNow for a range widget. */
841
- ariaValueText?: string;
842
- role?: "alert" | "alertdialog" | "application" | "article" | "banner" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "dialog" | "directory" | "document" | "feed" | "figure" | "form" | "grid" | "gridcell" | "group" | "heading" | "img" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "meter" | "navigation" | "none" | "note" | "option" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem";
843
- }
844
- interface HTMLAttributes<T = HTMLElement> extends AriaAttributes, DOMAttributes<T>, RdfaAttributes {
845
- accessKey?: string;
846
- dir?: HTMLDir;
847
- draggable?: boolean;
848
- hidden?: boolean | "hidden" | "until-found";
849
- id?: string;
850
- inert?: boolean;
851
- lang?: string;
852
- spellcheck?: boolean;
853
- style?: CssProperties | string | DirectiveResult<typeof StyleMapDirective>;
854
- title?: string;
855
- translate?: boolean;
856
- popover?: boolean | "manual" | "auto";
857
- slot?: string;
858
- part?: string;
859
- contentEditable?: boolean | "plaintext-only" | "inherit";
860
- tabIndex?: number | string;
861
- autocapitalize?: HTMLAutocapitalize;
862
- itemProp?: string;
863
- itemScope?: boolean;
864
- itemType?: string;
865
- itemId?: string;
866
- itemRef?: string;
867
- exportParts?: string;
868
- inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search";
869
- }
870
- interface RdfaAttributes {
871
- about?: string;
872
- datatype?: string;
873
- inList?: string;
874
- prefix?: string;
875
- property?: string;
876
- rel?: string;
877
- resource?: string;
878
- rev?: string;
879
- typeof?: string;
880
- vocab?: string;
881
- }
882
- interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
883
- /**
884
- * Provide empty string, or file name
885
- *
886
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download
887
- */
888
- download?: string;
889
- href?: string;
890
- hreflang?: string;
891
- media?: string;
892
- ping?: string;
893
- rel?: string;
894
- target?: string;
895
- type?: string;
896
- referrerPolicy?: HTMLReferrerPolicy;
897
- }
898
- interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
899
- }
900
- interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
901
- alt?: string;
902
- coords?: string;
903
- /**
904
- * Provide empty string, or file name
905
- *
906
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download
907
- */
908
- download?: string;
909
- href?: string;
910
- hreflang?: string;
911
- ping?: string;
912
- rel?: string;
913
- shape?: "rect" | "circle" | "poly" | "default";
914
- target?: string;
915
- referrerPolicy?: HTMLReferrerPolicy;
916
- }
917
- interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
918
- href?: string;
919
- target?: string;
920
- }
921
- interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
922
- cite?: string;
923
- }
924
- interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
925
- autofocus?: boolean;
926
- disabled?: boolean;
927
- form?: string;
928
- name?: string;
929
- type?: "submit" | "reset" | "button";
930
- value?: string | number;
931
- formAction?: string;
932
- formEnctype?: HTMLFormEncType;
933
- formMethod?: HTMLFormMethod;
934
- formNoValidate?: boolean;
935
- formTarget?: string;
936
- popoverTarget?: string;
937
- popoverTargetElement?: HTMLElement;
938
- popoverTargetAction?: "hide" | "show" | "toggle";
939
- }
940
- interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
941
- width?: number | string;
942
- height?: number | string;
943
- }
944
- interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
945
- span?: number | string;
946
- width?: number | string;
947
- }
948
- interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
949
- span?: number | string;
950
- }
951
- interface DataHTMLAttributes<T> extends HTMLAttributes<T> {
952
- value?: string | number;
953
- }
954
- interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
955
- open?: boolean;
956
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */
957
- onToggle?: EventHandlerUnion<T, Event>;
958
- }
959
- interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
960
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/open) */
961
- open?: boolean;
962
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/returnValue) */
963
- returnValue?: string;
964
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
965
- onCancel?: EventHandlerUnion<T, Event>;
966
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
967
- onClose?: EventHandlerUnion<T, Event>;
968
- }
969
- interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
970
- height?: number | string;
971
- src?: string;
972
- type?: string;
973
- width?: number | string;
974
- }
975
- interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
976
- disabled?: boolean;
977
- form?: string;
978
- name?: string;
979
- }
980
- interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
981
- acceptCharset?: string;
982
- action?: string;
983
- encoding?: HTMLFormEncType;
984
- enctype?: HTMLFormEncType;
985
- method?: HTMLFormMethod;
986
- name?: string;
987
- target?: string;
988
- noValidate?: boolean;
989
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */
990
- onFormData?: EventHandlerUnion<T, FormDataEvent>;
991
- /**
992
- * Fires when the user resets a form.
993
- *
994
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event)
995
- */
996
- onReset?: EventHandlerUnion<T, Event>;
997
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */
998
- onSubmit?: EventHandlerUnion<T, Event & {
999
- submitter: HTMLElement;
1000
- }>;
1001
- }
1002
- interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
1003
- allow?: string;
1004
- allowFullscreen?: boolean;
1005
- height?: number | string;
1006
- loading?: "eager" | "lazy";
1007
- name?: string;
1008
- sandbox?: HTMLIframeSandbox | string;
1009
- src?: string;
1010
- srcdoc?: string;
1011
- width?: number | string;
1012
- referrerPolicy?: HTMLReferrerPolicy;
1013
- }
1014
- interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
1015
- alt?: string;
1016
- decoding?: "sync" | "async" | "auto";
1017
- height?: number | string;
1018
- isMap?: boolean;
1019
- loading?: "eager" | "lazy";
1020
- referrerPolicy?: HTMLReferrerPolicy;
1021
- sizes?: string;
1022
- src?: string;
1023
- srcset?: string;
1024
- useMap?: string;
1025
- width?: number | string;
1026
- crossOrigin?: HTMLCrossOrigin;
1027
- elementTiming?: string;
1028
- fetchPriority?: "high" | "low" | "auto";
1029
- }
1030
- interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
1031
- autocomplete?: AutoFill;
1032
- accept?: string;
1033
- alt?: string;
1034
- autofocus?: boolean;
1035
- capture?: boolean | string;
1036
- checked?: boolean;
1037
- disabled?: boolean;
1038
- enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
1039
- form?: string;
1040
- height?: number | string;
1041
- incremental?: boolean;
1042
- list?: string;
1043
- max?: number | string;
1044
- min?: number | string;
1045
- multiple?: boolean;
1046
- name?: string;
1047
- pattern?: string;
1048
- placeholder?: string;
1049
- readOnly?: boolean;
1050
- results?: number;
1051
- required?: boolean;
1052
- size?: number | string;
1053
- src?: string;
1054
- step?: number | string;
1055
- type?: string;
1056
- value?: string | number;
1057
- defaultValue?: string | number;
1058
- width?: number | string;
1059
- formAction?: string;
1060
- formEnctype?: HTMLFormEncType;
1061
- formMethod?: HTMLFormMethod;
1062
- formNoValidate?: boolean;
1063
- formTarget?: string;
1064
- maxLength?: number | string;
1065
- minLength?: number | string;
1066
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */
1067
- onInvalid?: EventHandlerUnion<T, Event>;
1068
- /**
1069
- * Fires when the current selection changes.
1070
- *
1071
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event)
1072
- */
1073
- onSelect?: EventHandlerUnion<T, UIEvent>;
1074
- }
1075
- interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
1076
- cite?: string;
1077
- dateTime?: string;
1078
- }
1079
- interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
1080
- htmlFor?: string;
1081
- form?: string;
1082
- }
1083
- interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
1084
- value?: number | string;
1085
- }
1086
- interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
1087
- as?: HTMLLinkAs;
1088
- disabled?: boolean;
1089
- fetchPriority?: "high" | "low" | "auto";
1090
- href?: string;
1091
- hreflang?: string;
1092
- imageSizes?: string;
1093
- imageSrcset?: string;
1094
- integrity?: string;
1095
- media?: string;
1096
- rel?: string;
1097
- sizes?: string;
1098
- type?: string;
1099
- crossOrigin?: HTMLCrossOrigin;
1100
- referrerPolicy?: HTMLReferrerPolicy;
1101
- }
1102
- interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
1103
- name?: string;
1104
- }
1105
- interface MathMLAttributes<T = HTMLMathElement> extends HTMLAttributes<T> {
1106
- dir?: "ltr" | "rtl" | undefined;
1107
- /**
1108
- * HTML attributes in foreign elements are case-sensitive
1109
- */
1110
- displaystyle?: boolean | undefined;
1111
- nonce?: string | undefined;
1112
- /**
1113
- * HTML attributes in foreign elements are case-sensitive
1114
- */
1115
- scriptlevel?: boolean | string | undefined;
1116
- }
1117
- interface HTMLMathElement extends MathMLElement {
1118
- display?: "block" | "inline" | undefined;
1119
- }
1120
- interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
1121
- autoplay?: boolean;
1122
- controls?: boolean;
1123
- loop?: boolean;
1124
- muted?: boolean;
1125
- preload?: "none" | "metadata" | "auto" | "";
1126
- src?: string;
1127
- crossOrigin?: HTMLCrossOrigin;
1128
- /**
1129
- * Fires when the user aborts the download.
1130
- *
1131
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event)
1132
- */
1133
- onAbort?: EventHandlerUnion<T, Event>;
1134
- /**
1135
- * Occurs when playback is possible, but would require further buffering.
1136
- *
1137
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event)
1138
- */
1139
- onCanPlay?: EventHandlerUnion<T, Event>;
1140
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */
1141
- onCanPlayThrough?: EventHandlerUnion<T, Event>;
1142
- /**
1143
- * Occurs when the duration attribute is updated.
1144
- *
1145
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event)
1146
- */
1147
- onDurationChange?: EventHandlerUnion<T, Event>;
1148
- /**
1149
- * Occurs when the media element is reset to its initial state.
1150
- *
1151
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event)
1152
- */
1153
- onEmptied?: EventHandlerUnion<T, Event>;
1154
- /**
1155
- * Occurs when media data is loaded at the current playback position.
1156
- *
1157
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event)
1158
- */
1159
- onLoadedData?: EventHandlerUnion<T, Event>;
1160
- /**
1161
- * Occurs when the duration and dimensions of the media have been determined.
1162
- *
1163
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event)
1164
- */
1165
- onLoadedMetadata?: EventHandlerUnion<T, Event>;
1166
- /**
1167
- * Occurs when Internet Explorer begins looking for media data.
1168
- *
1169
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event)
1170
- */
1171
- onLoadStart?: EventHandlerUnion<T, Event>;
1172
- /**
1173
- * Occurs when playback is paused.
1174
- *
1175
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event)
1176
- */
1177
- onPause?: EventHandlerUnion<T, Event>;
1178
- /**
1179
- * Occurs when the play method is requested.
1180
- *
1181
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event)
1182
- */
1183
- onPlay?: EventHandlerUnion<T, Event>;
1184
- /**
1185
- * Occurs when the audio or video has started playing.
1186
- *
1187
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event)
1188
- */
1189
- onPlaying?: EventHandlerUnion<T, Event>;
1190
- /**
1191
- * Occurs to indicate progress while downloading media data.
1192
- *
1193
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event)
1194
- */
1195
- onProgress?: EventHandlerUnion<T, Event>;
1196
- /**
1197
- * Occurs when the playback rate is increased or decreased.
1198
- *
1199
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event)
1200
- */
1201
- onRateChange?: EventHandlerUnion<T, Event>;
1202
- /**
1203
- * Occurs when the seek operation ends.
1204
- *
1205
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event)
1206
- */
1207
- onSeeked?: EventHandlerUnion<T, Event>;
1208
- /**
1209
- * Occurs when the current playback position is moved.
1210
- *
1211
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event)
1212
- */
1213
- onSeeking?: EventHandlerUnion<T, Event>;
1214
- /**
1215
- * Occurs when the download has stopped.
1216
- *
1217
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event)
1218
- */
1219
- onStalled?: EventHandlerUnion<T, Event>;
1220
- /**
1221
- * Occurs if the load operation has been intentionally halted.
1222
- *
1223
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event)
1224
- */
1225
- onSuspend?: EventHandlerUnion<T, Event>;
1226
- /**
1227
- * Occurs to indicate the current playback position.
1228
- *
1229
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event)
1230
- */
1231
- onTimeUpdate?: EventHandlerUnion<T, Event>;
1232
- /**
1233
- * Occurs when the volume is changed, or playback is muted or unmuted.
1234
- *
1235
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event)
1236
- */
1237
- onVolumeChange?: EventHandlerUnion<T, Event>;
1238
- /**
1239
- * Occurs when playback stops because the next frame of a video resource is not available.
1240
- *
1241
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event)
1242
- */
1243
- onWaiting?: EventHandlerUnion<T, Event>;
1244
- }
1245
- interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
1246
- label?: string;
1247
- type?: "context" | "toolbar";
1248
- }
1249
- interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
1250
- charset?: string;
1251
- content?: string;
1252
- httpEquiv?: string;
1253
- name?: string;
1254
- media?: string;
1255
- }
1256
- interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
1257
- form?: string;
1258
- high?: number | string;
1259
- low?: number | string;
1260
- max?: number | string;
1261
- min?: number | string;
1262
- optimum?: number | string;
1263
- value?: string | number;
1264
- }
1265
- interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
1266
- cite?: string;
1267
- }
1268
- interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
1269
- data?: string;
1270
- form?: string;
1271
- height?: number | string;
1272
- name?: string;
1273
- type?: string;
1274
- width?: number | string;
1275
- useMap?: string;
1276
- }
1277
- interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
1278
- reversed?: boolean;
1279
- start?: number | string;
1280
- type?: "1" | "a" | "A" | "i" | "I";
1281
- }
1282
- interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1283
- disabled?: boolean;
1284
- label?: string;
1285
- }
1286
- interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
1287
- disabled?: boolean;
1288
- label?: string;
1289
- selected?: boolean;
1290
- value?: string | number;
1291
- }
1292
- interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
1293
- form?: string;
1294
- for?: string;
1295
- name?: string;
1296
- value?: string | number;
1297
- defaultValue?: string | number;
1298
- }
1299
- interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
1300
- max?: number | string;
1301
- value?: string | number;
1302
- }
1303
- interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
1304
- async?: boolean;
1305
- charset?: string;
1306
- defer?: boolean;
1307
- integrity?: string;
1308
- nonce?: string;
1309
- src?: string;
1310
- type?: string;
1311
- crossOrigin?: HTMLCrossOrigin;
1312
- noModule?: boolean;
1313
- referrerPolicy?: HTMLReferrerPolicy;
1314
- }
1315
- interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1316
- autofocus?: boolean;
1317
- disabled?: boolean;
1318
- form?: string;
1319
- multiple?: boolean;
1320
- name?: string;
1321
- required?: boolean;
1322
- size?: number | string;
1323
- value?: string | number;
1324
- }
1325
- interface SlotHTMLAttributes<T = HTMLSlotElement> extends HTMLAttributes<T> {
1326
- name?: string;
1327
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */
1328
- onSlotChange?: EventHandlerUnion<T, Event>;
1329
- }
1330
- interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
1331
- media?: string;
1332
- sizes?: string;
1333
- src?: string;
1334
- srcset?: string;
1335
- type?: string;
1336
- }
1337
- interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
1338
- media?: string;
1339
- nonce?: string;
1340
- scoped?: boolean;
1341
- type?: string;
1342
- }
1343
- interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
1344
- headers?: string;
1345
- colSpan?: number | string;
1346
- rowSpan?: number | string;
1347
- }
1348
- interface TemplateHTMLAttributes<T extends HTMLTemplateElement> extends HTMLAttributes<T> {
1349
- content?: DocumentFragment;
1350
- }
1351
- interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1352
- children?: "Error: Use value property instead. See https://lit.dev/docs/templates/expressions/#invalid-locations";
1353
- autofocus?: boolean;
1354
- cols?: number | string;
1355
- dirname?: string;
1356
- disabled?: boolean;
1357
- enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
1358
- form?: string;
1359
- name?: string;
1360
- placeholder?: string;
1361
- readOnly?: boolean;
1362
- required?: boolean;
1363
- rows?: number | string;
1364
- value?: string | number;
1365
- defaultValue?: string | number;
1366
- wrap?: "hard" | "soft" | "off";
1367
- maxLength?: number | string;
1368
- minLength?: number | string;
1369
- }
1370
- interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
1371
- headers?: string;
1372
- colSpan?: number | string;
1373
- rowSpan?: number | string;
1374
- scope?: "col" | "row" | "rowgroup" | "colgroup";
1375
- }
1376
- interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
1377
- dateTime?: string;
1378
- }
1379
- interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
1380
- default?: boolean;
1381
- kind?: "subtitles" | "captions" | "descriptions" | "chapters" | "metadata";
1382
- label?: string;
1383
- src?: string;
1384
- srclang?: string;
1385
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
1386
- onCueChange?: EventHandlerUnion<T, Event>;
1387
- }
1388
- interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
1389
- height?: number | string;
1390
- playsInline?: boolean;
1391
- poster?: string;
1392
- width?: number | string;
1393
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */
1394
- onResize?: EventHandlerUnion<T, UIEvent>;
1395
- }
1396
- type SVGPreserveAspectRatio = "none" | "xMinYMin" | "xMidYMin" | "xMaxYMin" | "xMinYMid" | "xMidYMid" | "xMaxYMid" | "xMinYMax" | "xMidYMax" | "xMaxYMax" | "xMinYMin meet" | "xMidYMin meet" | "xMaxYMin meet" | "xMinYMid meet" | "xMidYMid meet" | "xMaxYMid meet" | "xMinYMax meet" | "xMidYMax meet" | "xMaxYMax meet" | "xMinYMin slice" | "xMidYMin slice" | "xMaxYMin slice" | "xMinYMid slice" | "xMidYMid slice" | "xMaxYMid slice" | "xMinYMax slice" | "xMidYMax slice" | "xMaxYMax slice";
1397
- type ImagePreserveAspectRatio = SVGPreserveAspectRatio | "defer none" | "defer xMinYMin" | "defer xMidYMin" | "defer xMaxYMin" | "defer xMinYMid" | "defer xMidYMid" | "defer xMaxYMid" | "defer xMinYMax" | "defer xMidYMax" | "defer xMaxYMax" | "defer xMinYMin meet" | "defer xMidYMin meet" | "defer xMaxYMin meet" | "defer xMinYMid meet" | "defer xMidYMid meet" | "defer xMaxYMid meet" | "defer xMinYMax meet" | "defer xMidYMax meet" | "defer xMaxYMax meet" | "defer xMinYMin slice" | "defer xMidYMin slice" | "defer xMaxYMin slice" | "defer xMinYMid slice" | "defer xMidYMid slice" | "defer xMaxYMid slice" | "defer xMinYMax slice" | "defer xMidYMax slice" | "defer xMaxYMax slice";
1398
- type SVGUnits = "userSpaceOnUse" | "objectBoundingBox";
1399
- interface CoreSVGAttributes<T> extends AriaAttributes, DOMAttributes<T> {
1400
- id?: string;
1401
- lang?: string;
1402
- tabIndex?: number | string;
1403
- }
1404
- interface StylableSVGAttributes {
1405
- class?: string | ClassInfo | DirectiveResult<typeof ClassMapDirective>;
1406
- style?: CssProperties | string | DirectiveResult<typeof StyleMapDirective>;
1407
- }
1408
- interface TransformableSVGAttributes {
1409
- transform?: string | undefined;
1410
- }
1411
- interface ConditionalProcessingSVGAttributes {
1412
- requiredExtensions?: string;
1413
- requiredFeatures?: string;
1414
- systemLanguage?: string;
1415
- }
1416
- interface ExternalResourceSVGAttributes {
1417
- externalResourcesRequired?: boolean | "true" | "false";
1418
- }
1419
- interface AnimationTimingSVGAttributes {
1420
- begin?: string | undefined;
1421
- dur?: string | undefined;
1422
- end?: string | undefined;
1423
- min?: string | undefined;
1424
- max?: string | undefined;
1425
- restart?: "always" | "whenNotActive" | "never" | undefined;
1426
- repeatCount?: number | "indefinite" | undefined;
1427
- repeatDur?: string | undefined;
1428
- fill?: "freeze" | "remove" | undefined;
1429
- }
1430
- interface AnimationValueSVGAttributes {
1431
- calcMode?: "discrete" | "linear" | "paced" | "spline" | undefined;
1432
- values?: string | undefined;
1433
- keyTimes?: string | undefined;
1434
- keySplines?: string | undefined;
1435
- from?: number | string | undefined;
1436
- to?: number | string | undefined;
1437
- by?: number | string | undefined;
1438
- }
1439
- interface AnimationAdditionSVGAttributes {
1440
- attributeName?: string | undefined;
1441
- additive?: "replace" | "sum" | undefined;
1442
- accumulate?: "none" | "sum" | undefined;
1443
- }
1444
- interface AnimationAttributeTargetSVGAttributes {
1445
- attributeName?: string | undefined;
1446
- attributeType?: "CSS" | "XML" | "auto" | undefined;
1447
- }
1448
- interface PresentationSVGAttributes {
1449
- "alignment-baseline"?: "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit";
1450
- "baseline-shift"?: number | string;
1451
- "clip"?: string;
1452
- "clip-path"?: string;
1453
- "clip-rule"?: "nonzero" | "evenodd" | "inherit";
1454
- "color"?: string;
1455
- "color-interpolation"?: "auto" | "sRGB" | "linearRGB" | "inherit";
1456
- "color-interpolation-filters"?: "auto" | "sRGB" | "linearRGB" | "inherit";
1457
- "color-profile"?: string;
1458
- "color-rendering"?: "auto" | "optimizeSpeed" | "optimizeQuality" | "inherit";
1459
- "cursor"?: string;
1460
- "direction"?: "ltr" | "rtl" | "inherit";
1461
- "display"?: string;
1462
- "dominant-baseline"?: "auto" | "text-bottom" | "alphabetic" | "ideographic" | "middle" | "central" | "mathematical" | "hanging" | "text-top" | "inherit";
1463
- "enable-background"?: string;
1464
- "fill"?: string;
1465
- "fill-opacity"?: number | string | "inherit";
1466
- "fill-rule"?: "nonzero" | "evenodd" | "inherit";
1467
- "filter"?: string;
1468
- "flood-color"?: string;
1469
- "flood-opacity"?: number | string | "inherit";
1470
- "font-family"?: string;
1471
- "font-size"?: string;
1472
- "font-size-adjust"?: number | string;
1473
- "font-stretch"?: string;
1474
- "font-style"?: "normal" | "italic" | "oblique" | "inherit";
1475
- "font-variant"?: string;
1476
- "font-weight"?: number | string;
1477
- "glyph-orientation-horizontal"?: string;
1478
- "glyph-orientation-vertical"?: string;
1479
- "image-rendering"?: "auto" | "optimizeQuality" | "optimizeSpeed" | "inherit";
1480
- "kerning"?: string;
1481
- "letter-spacing"?: number | string;
1482
- "lighting-color"?: string;
1483
- "marker-end"?: string;
1484
- "marker-mid"?: string;
1485
- "marker-start"?: string;
1486
- "mask"?: string;
1487
- "opacity"?: number | string | "inherit";
1488
- "overflow"?: "visible" | "hidden" | "scroll" | "auto" | "inherit";
1489
- "pathLength"?: string | number;
1490
- "pointer-events"?: "bounding-box" | "visiblePainted" | "visibleFill" | "visibleStroke" | "visible" | "painted" | "color" | "fill" | "stroke" | "all" | "none" | "inherit";
1491
- "shape-rendering"?: "auto" | "optimizeSpeed" | "crispEdges" | "geometricPrecision" | "inherit";
1492
- "stop-color"?: string;
1493
- "stop-opacity"?: number | string | "inherit";
1494
- "stroke"?: string;
1495
- "stroke-dasharray"?: string;
1496
- "stroke-dashoffset"?: number | string;
1497
- "stroke-linecap"?: "butt" | "round" | "square" | "inherit";
1498
- "stroke-linejoin"?: "arcs" | "bevel" | "miter" | "miter-clip" | "round" | "inherit";
1499
- "stroke-miterlimit"?: number | string | "inherit";
1500
- "stroke-opacity"?: number | string | "inherit";
1501
- "stroke-width"?: number | string;
1502
- "text-anchor"?: "start" | "middle" | "end" | "inherit";
1503
- "text-decoration"?: "none" | "underline" | "overline" | "line-through" | "blink" | "inherit";
1504
- "text-rendering"?: "auto" | "optimizeSpeed" | "optimizeLegibility" | "geometricPrecision" | "inherit";
1505
- "unicode-bidi"?: string;
1506
- "visibility"?: "visible" | "hidden" | "collapse" | "inherit";
1507
- "word-spacing"?: number | string;
1508
- "writing-mode"?: "lr-tb" | "rl-tb" | "tb-rl" | "lr" | "rl" | "tb" | "inherit";
1509
- }
1510
- interface AnimationElementSVGAttributes<T> extends CoreSVGAttributes<T>, ExternalResourceSVGAttributes, ConditionalProcessingSVGAttributes {
1511
- }
1512
- interface ContainerElementSVGAttributes<T> extends CoreSVGAttributes<T>, ShapeElementSVGAttributes<T>, Pick<PresentationSVGAttributes, "clip-path" | "mask" | "cursor" | "opacity" | "filter" | "enable-background" | "color-interpolation" | "color-rendering"> {
1513
- }
1514
- interface FilterPrimitiveElementSVGAttributes<T> extends CoreSVGAttributes<T>, Pick<PresentationSVGAttributes, "color-interpolation-filters"> {
1515
- x?: number | string | undefined;
1516
- y?: number | string | undefined;
1517
- width?: number | string | undefined;
1518
- height?: number | string | undefined;
1519
- result?: string | undefined;
1520
- }
1521
- interface SingleInputFilterSVGAttributes {
1522
- in?: string | undefined;
1523
- }
1524
- interface DoubleInputFilterSVGAttributes {
1525
- in?: string | undefined;
1526
- in2?: string | undefined;
1527
- }
1528
- interface FitToViewBoxSVGAttributes {
1529
- viewBox?: string;
1530
- preserveAspectRatio?: SVGPreserveAspectRatio;
1531
- }
1532
- interface GradientElementSVGAttributes<T> extends CoreSVGAttributes<T>, ExternalResourceSVGAttributes, StylableSVGAttributes {
1533
- gradientUnits?: SVGUnits | undefined;
1534
- gradientTransform?: string | undefined;
1535
- spreadMethod?: "pad" | "reflect" | "repeat" | undefined;
1536
- href?: string | undefined;
1537
- }
1538
- interface GraphicsElementSVGAttributes<T> extends CoreSVGAttributes<T>, Pick<PresentationSVGAttributes, "clip-rule" | "mask" | "pointer-events" | "cursor" | "opacity" | "filter" | "display" | "visibility" | "color-interpolation" | "color-rendering"> {
1539
- }
1540
- interface LightSourceElementSVGAttributes<T> extends CoreSVGAttributes<T> {
1541
- }
1542
- interface NewViewportSVGAttributes<T> extends CoreSVGAttributes<T>, Pick<PresentationSVGAttributes, "overflow" | "clip"> {
1543
- viewBox?: string;
1544
- }
1545
- interface ShapeElementSVGAttributes<T> extends CoreSVGAttributes<T>, Pick<PresentationSVGAttributes, "color" | "fill" | "fill-rule" | "fill-opacity" | "stroke" | "stroke-width" | "stroke-linecap" | "stroke-linejoin" | "stroke-miterlimit" | "stroke-dasharray" | "stroke-dashoffset" | "stroke-opacity" | "shape-rendering" | "pathLength"> {
1546
- }
1547
- interface TextContentElementSVGAttributes<T> extends CoreSVGAttributes<T>, Pick<PresentationSVGAttributes, "font-family" | "font-style" | "font-variant" | "font-weight" | "font-stretch" | "font-size" | "font-size-adjust" | "kerning" | "letter-spacing" | "word-spacing" | "text-decoration" | "glyph-orientation-horizontal" | "glyph-orientation-vertical" | "direction" | "unicode-bidi" | "text-anchor" | "dominant-baseline" | "color" | "fill" | "fill-rule" | "fill-opacity" | "stroke" | "stroke-width" | "stroke-linecap" | "stroke-linejoin" | "stroke-miterlimit" | "stroke-dasharray" | "stroke-dashoffset" | "stroke-opacity"> {
1548
- }
1549
- interface ZoomAndPanSVGAttributes {
1550
- zoomAndPan?: "disable" | "magnify";
1551
- }
1552
- interface AnimateSVGAttributes<T> extends AnimationElementSVGAttributes<T>, AnimationAttributeTargetSVGAttributes, AnimationTimingSVGAttributes, AnimationValueSVGAttributes, AnimationAdditionSVGAttributes, Pick<PresentationSVGAttributes, "color-interpolation" | "color-rendering"> {
1553
- }
1554
- interface AnimateMotionSVGAttributes<T> extends AnimationElementSVGAttributes<T>, AnimationTimingSVGAttributes, AnimationValueSVGAttributes, AnimationAdditionSVGAttributes {
1555
- path?: string | undefined;
1556
- keyPoints?: string | undefined;
1557
- rotate?: number | string | "auto" | "auto-reverse" | undefined;
1558
- origin?: "default" | undefined;
1559
- }
1560
- interface AnimateTransformSVGAttributes<T> extends AnimationElementSVGAttributes<T>, AnimationAttributeTargetSVGAttributes, AnimationTimingSVGAttributes, AnimationValueSVGAttributes, AnimationAdditionSVGAttributes {
1561
- type?: "translate" | "scale" | "rotate" | "skewX" | "skewY" | undefined;
1562
- }
1563
- interface CircleSVGAttributes<T> extends GraphicsElementSVGAttributes<T>, ShapeElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, StylableSVGAttributes, TransformableSVGAttributes {
1564
- cx?: number | string | undefined;
1565
- cy?: number | string | undefined;
1566
- r?: number | string | undefined;
1567
- }
1568
- interface ClipPathSVGAttributes<T> extends CoreSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, TransformableSVGAttributes, Pick<PresentationSVGAttributes, "clip-path"> {
1569
- clipPathUnits?: SVGUnits | undefined;
1570
- }
1571
- interface DefsSVGAttributes<T> extends ContainerElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, TransformableSVGAttributes {
1572
- }
1573
- interface DescSVGAttributes<T> extends CoreSVGAttributes<T>, StylableSVGAttributes {
1574
- }
1575
- interface EllipseSVGAttributes<T> extends GraphicsElementSVGAttributes<T>, ShapeElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, TransformableSVGAttributes {
1576
- cx?: number | string | undefined;
1577
- cy?: number | string | undefined;
1578
- rx?: number | string | undefined;
1579
- ry?: number | string | undefined;
1580
- }
1581
- interface FeBlendSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, DoubleInputFilterSVGAttributes, StylableSVGAttributes {
1582
- mode?: "normal" | "multiply" | "screen" | "darken" | "lighten" | undefined;
1583
- }
1584
- interface FeColorMatrixSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, SingleInputFilterSVGAttributes, StylableSVGAttributes {
1585
- type?: "matrix" | "saturate" | "hueRotate" | "luminanceToAlpha" | undefined;
1586
- values?: string | undefined;
1587
- }
1588
- interface FeComponentTransferSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, SingleInputFilterSVGAttributes, StylableSVGAttributes {
1589
- }
1590
- interface FeCompositeSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, DoubleInputFilterSVGAttributes, StylableSVGAttributes {
1591
- operator?: "over" | "in" | "out" | "atop" | "xor" | "arithmetic" | undefined;
1592
- k1?: number | string | undefined;
1593
- k2?: number | string | undefined;
1594
- k3?: number | string | undefined;
1595
- k4?: number | string | undefined;
1596
- }
1597
- interface FeConvolveMatrixSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, SingleInputFilterSVGAttributes, StylableSVGAttributes {
1598
- order?: number | string | undefined;
1599
- kernelMatrix?: string | undefined;
1600
- divisor?: number | string | undefined;
1601
- bias?: number | string | undefined;
1602
- targetX?: number | string | undefined;
1603
- targetY?: number | string | undefined;
1604
- edgeMode?: "duplicate" | "wrap" | "none" | undefined;
1605
- kernelUnitLength?: number | string | undefined;
1606
- preserveAlpha?: boolean | "true" | "false" | undefined;
1607
- }
1608
- interface FeDiffuseLightingSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, SingleInputFilterSVGAttributes, StylableSVGAttributes, Pick<PresentationSVGAttributes, "color" | "lighting-color"> {
1609
- surfaceScale?: number | string | undefined;
1610
- diffuseConstant?: number | string | undefined;
1611
- kernelUnitLength?: number | string | undefined;
1612
- }
1613
- interface FeDisplacementMapSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, DoubleInputFilterSVGAttributes, StylableSVGAttributes {
1614
- scale?: number | string | undefined;
1615
- xChannelSelector?: "R" | "G" | "B" | "A" | undefined;
1616
- yChannelSelector?: "R" | "G" | "B" | "A" | undefined;
1617
- }
1618
- interface FeDistantLightSVGAttributes<T> extends LightSourceElementSVGAttributes<T> {
1619
- azimuth?: number | string | undefined;
1620
- elevation?: number | string | undefined;
1621
- }
1622
- interface FeDropShadowSVGAttributes<T> extends CoreSVGAttributes<T>, FilterPrimitiveElementSVGAttributes<T>, StylableSVGAttributes, Pick<PresentationSVGAttributes, "color" | "flood-color" | "flood-opacity"> {
1623
- dx?: number | string | undefined;
1624
- dy?: number | string | undefined;
1625
- stdDeviation?: number | string | undefined;
1626
- }
1627
- interface FeFloodSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, StylableSVGAttributes, Pick<PresentationSVGAttributes, "color" | "flood-color" | "flood-opacity"> {
1628
- }
1629
- interface FeFuncSVGAttributes<T> extends CoreSVGAttributes<T> {
1630
- type?: "identity" | "table" | "discrete" | "linear" | "gamma" | undefined;
1631
- tableValues?: string | undefined;
1632
- slope?: number | string | undefined;
1633
- intercept?: number | string | undefined;
1634
- amplitude?: number | string | undefined;
1635
- exponent?: number | string | undefined;
1636
- offset?: number | string | undefined;
1637
- }
1638
- interface FeGaussianBlurSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, SingleInputFilterSVGAttributes, StylableSVGAttributes {
1639
- stdDeviation?: number | string | undefined;
1640
- }
1641
- interface FeImageSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, ExternalResourceSVGAttributes, StylableSVGAttributes {
1642
- preserveAspectRatio?: SVGPreserveAspectRatio | undefined;
1643
- href?: string | undefined;
1644
- }
1645
- interface FeMergeSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, StylableSVGAttributes {
1646
- }
1647
- interface FeMergeNodeSVGAttributes<T> extends CoreSVGAttributes<T>, SingleInputFilterSVGAttributes {
1648
- }
1649
- interface FeMorphologySVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, SingleInputFilterSVGAttributes, StylableSVGAttributes {
1650
- operator?: "erode" | "dilate" | undefined;
1651
- radius?: number | string | undefined;
1652
- }
1653
- interface FeOffsetSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, SingleInputFilterSVGAttributes, StylableSVGAttributes {
1654
- dx?: number | string | undefined;
1655
- dy?: number | string | undefined;
1656
- }
1657
- interface FePointLightSVGAttributes<T> extends LightSourceElementSVGAttributes<T> {
1658
- x?: number | string | undefined;
1659
- y?: number | string | undefined;
1660
- z?: number | string | undefined;
1661
- }
1662
- interface FeSpecularLightingSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, SingleInputFilterSVGAttributes, StylableSVGAttributes, Pick<PresentationSVGAttributes, "color" | "lighting-color"> {
1663
- surfaceScale?: string | undefined;
1664
- specularConstant?: string | undefined;
1665
- specularExponent?: string | undefined;
1666
- kernelUnitLength?: number | string | undefined;
1667
- }
1668
- interface FeSpotLightSVGAttributes<T> extends LightSourceElementSVGAttributes<T> {
1669
- x?: number | string | undefined;
1670
- y?: number | string | undefined;
1671
- z?: number | string | undefined;
1672
- pointsAtX?: number | string | undefined;
1673
- pointsAtY?: number | string | undefined;
1674
- pointsAtZ?: number | string | undefined;
1675
- specularExponent?: number | string | undefined;
1676
- limitingConeAngle?: number | string | undefined;
1677
- }
1678
- interface FeTileSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, SingleInputFilterSVGAttributes, StylableSVGAttributes {
1679
- }
1680
- interface FeTurbulanceSVGAttributes<T> extends FilterPrimitiveElementSVGAttributes<T>, StylableSVGAttributes {
1681
- baseFrequency?: number | string | undefined;
1682
- numOctaves?: number | string | undefined;
1683
- seed?: number | string | undefined;
1684
- stitchTiles?: "stitch" | "noStitch" | undefined;
1685
- type?: "fractalNoise" | "turbulence" | undefined;
1686
- }
1687
- interface FilterSVGAttributes<T> extends CoreSVGAttributes<T>, ExternalResourceSVGAttributes, StylableSVGAttributes {
1688
- filterUnits?: SVGUnits | undefined;
1689
- primitiveUnits?: SVGUnits | undefined;
1690
- x?: number | string | undefined;
1691
- y?: number | string | undefined;
1692
- width?: number | string | undefined;
1693
- height?: number | string | undefined;
1694
- filterRes?: number | string | undefined;
1695
- }
1696
- interface ForeignObjectSVGAttributes<T> extends NewViewportSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, TransformableSVGAttributes, Pick<PresentationSVGAttributes, "display" | "visibility"> {
1697
- x?: number | string | undefined;
1698
- y?: number | string | undefined;
1699
- width?: number | string | undefined;
1700
- height?: number | string | undefined;
1701
- }
1702
- interface GSVGAttributes<T> extends ContainerElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, TransformableSVGAttributes, Pick<PresentationSVGAttributes, "display" | "visibility"> {
1703
- }
1704
- interface ImageSVGAttributes<T> extends NewViewportSVGAttributes<T>, GraphicsElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, StylableSVGAttributes, TransformableSVGAttributes, Pick<PresentationSVGAttributes, "color-profile" | "image-rendering"> {
1705
- x?: number | string | undefined;
1706
- y?: number | string | undefined;
1707
- width?: number | string | undefined;
1708
- height?: number | string | undefined;
1709
- preserveAspectRatio?: ImagePreserveAspectRatio | undefined;
1710
- href?: string | undefined;
1711
- }
1712
- interface LineSVGAttributes<T> extends GraphicsElementSVGAttributes<T>, ShapeElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, TransformableSVGAttributes, Pick<PresentationSVGAttributes, "marker-start" | "marker-mid" | "marker-end"> {
1713
- x1?: number | string | undefined;
1714
- y1?: number | string | undefined;
1715
- x2?: number | string | undefined;
1716
- y2?: number | string | undefined;
1717
- }
1718
- interface LinearGradientSVGAttributes<T> extends GradientElementSVGAttributes<T> {
1719
- x1?: number | string | undefined;
1720
- x2?: number | string | undefined;
1721
- y1?: number | string | undefined;
1722
- y2?: number | string | undefined;
1723
- }
1724
- interface MarkerSVGAttributes<T> extends ContainerElementSVGAttributes<T>, ExternalResourceSVGAttributes, StylableSVGAttributes, FitToViewBoxSVGAttributes, Pick<PresentationSVGAttributes, "overflow" | "clip"> {
1725
- markerUnits?: "strokeWidth" | "userSpaceOnUse" | undefined;
1726
- refX?: number | string | undefined;
1727
- refY?: number | string | undefined;
1728
- markerWidth?: number | string | undefined;
1729
- markerHeight?: number | string | undefined;
1730
- orient?: string | undefined;
1731
- }
1732
- interface MaskSVGAttributes<T> extends Omit<ContainerElementSVGAttributes<T>, "opacity" | "filter">, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes {
1733
- maskUnits?: SVGUnits | undefined;
1734
- maskContentUnits?: SVGUnits | undefined;
1735
- x?: number | string | undefined;
1736
- y?: number | string | undefined;
1737
- width?: number | string | undefined;
1738
- height?: number | string | undefined;
1739
- }
1740
- interface MetadataSVGAttributes<T> extends CoreSVGAttributes<T> {
1741
- }
1742
- interface MPathSVGAttributes<T> extends CoreSVGAttributes<T> {
1743
- }
1744
- interface PathSVGAttributes<T> extends GraphicsElementSVGAttributes<T>, ShapeElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, TransformableSVGAttributes, Pick<PresentationSVGAttributes, "marker-start" | "marker-mid" | "marker-end"> {
1745
- d?: string | undefined;
1746
- pathLength?: number | string | undefined;
1747
- }
1748
- interface PatternSVGAttributes<T> extends ContainerElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, FitToViewBoxSVGAttributes, Pick<PresentationSVGAttributes, "overflow" | "clip"> {
1749
- x?: number | string | undefined;
1750
- y?: number | string | undefined;
1751
- width?: number | string | undefined;
1752
- height?: number | string | undefined;
1753
- patternUnits?: SVGUnits | undefined;
1754
- patternContentUnits?: SVGUnits | undefined;
1755
- patternTransform?: string | undefined;
1756
- href?: string | undefined;
1757
- }
1758
- interface PolygonSVGAttributes<T> extends GraphicsElementSVGAttributes<T>, ShapeElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, TransformableSVGAttributes, Pick<PresentationSVGAttributes, "marker-start" | "marker-mid" | "marker-end"> {
1759
- points?: string | undefined;
1760
- }
1761
- interface PolylineSVGAttributes<T> extends GraphicsElementSVGAttributes<T>, ShapeElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, TransformableSVGAttributes, Pick<PresentationSVGAttributes, "marker-start" | "marker-mid" | "marker-end"> {
1762
- points?: string | undefined;
1763
- }
1764
- interface RadialGradientSVGAttributes<T> extends GradientElementSVGAttributes<T> {
1765
- cx?: number | string | undefined;
1766
- cy?: number | string | undefined;
1767
- r?: number | string | undefined;
1768
- fx?: number | string | undefined;
1769
- fy?: number | string | undefined;
1770
- }
1771
- interface RectSVGAttributes<T> extends GraphicsElementSVGAttributes<T>, ShapeElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, TransformableSVGAttributes {
1772
- x?: number | string | undefined;
1773
- y?: number | string | undefined;
1774
- width?: number | string | undefined;
1775
- height?: number | string | undefined;
1776
- rx?: number | string | undefined;
1777
- ry?: number | string | undefined;
1778
- }
1779
- interface SetSVGAttributes<T> extends CoreSVGAttributes<T>, StylableSVGAttributes, AnimationTimingSVGAttributes {
1780
- }
1781
- interface StopSVGAttributes<T> extends CoreSVGAttributes<T>, StylableSVGAttributes, Pick<PresentationSVGAttributes, "color" | "stop-color" | "stop-opacity"> {
1782
- offset?: number | string | undefined;
1783
- }
1784
- interface SvgSVGAttributes<T> extends ContainerElementSVGAttributes<T>, NewViewportSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, FitToViewBoxSVGAttributes, ZoomAndPanSVGAttributes, PresentationSVGAttributes {
1785
- version?: string;
1786
- baseProfile?: string;
1787
- x?: number | string;
1788
- y?: number | string;
1789
- width?: number | string;
1790
- height?: number | string;
1791
- contentScriptType?: string;
1792
- contentStyleType?: string;
1793
- xmlns?: string;
1794
- /**
1795
- * Fires immediately after the browser loads the object.
1796
- *
1797
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event)
1798
- */
1799
- onLoad?: EventHandlerUnion<T, Event>;
1800
- }
1801
- interface SwitchSVGAttributes<T> extends ContainerElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, TransformableSVGAttributes, Pick<PresentationSVGAttributes, "display" | "visibility"> {
1802
- }
1803
- interface SymbolSVGAttributes<T> extends ContainerElementSVGAttributes<T>, NewViewportSVGAttributes<T>, ExternalResourceSVGAttributes, StylableSVGAttributes, FitToViewBoxSVGAttributes {
1804
- width?: number | string | undefined;
1805
- height?: number | string | undefined;
1806
- preserveAspectRatio?: SVGPreserveAspectRatio | undefined;
1807
- refX?: number | string | undefined;
1808
- refY?: number | string | undefined;
1809
- viewBox?: string | undefined;
1810
- x?: number | string | undefined;
1811
- y?: number | string | undefined;
1812
- }
1813
- interface TextSVGAttributes<T> extends TextContentElementSVGAttributes<T>, GraphicsElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, TransformableSVGAttributes, Pick<PresentationSVGAttributes, "writing-mode" | "text-rendering"> {
1814
- x?: number | string | undefined;
1815
- y?: number | string | undefined;
1816
- dx?: number | string | undefined;
1817
- dy?: number | string | undefined;
1818
- rotate?: number | string | undefined;
1819
- textLength?: number | string | undefined;
1820
- lengthAdjust?: "spacing" | "spacingAndGlyphs" | undefined;
1821
- }
1822
- interface TextPathSVGAttributes<T> extends TextContentElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, Pick<PresentationSVGAttributes, "alignment-baseline" | "baseline-shift" | "display" | "visibility"> {
1823
- startOffset?: number | string | undefined;
1824
- method?: "align" | "stretch" | undefined;
1825
- spacing?: "auto" | "exact" | undefined;
1826
- href?: string | undefined;
1827
- }
1828
- interface TSpanSVGAttributes<T> extends TextContentElementSVGAttributes<T>, ConditionalProcessingSVGAttributes, ExternalResourceSVGAttributes, StylableSVGAttributes, Pick<PresentationSVGAttributes, "alignment-baseline" | "baseline-shift" | "display" | "visibility"> {
1829
- x?: number | string | undefined;
1830
- y?: number | string | undefined;
1831
- dx?: number | string | undefined;
1832
- dy?: number | string | undefined;
1833
- rotate?: number | string | undefined;
1834
- textLength?: number | string | undefined;
1835
- lengthAdjust?: "spacing" | "spacingAndGlyphs" | undefined;
1836
- }
1837
- /**
1838
- * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use
1839
- */
1840
- interface UseSVGAttributes<T> extends CoreSVGAttributes<T>, StylableSVGAttributes, ConditionalProcessingSVGAttributes, GraphicsElementSVGAttributes<T>, PresentationSVGAttributes, ExternalResourceSVGAttributes, TransformableSVGAttributes {
1841
- x?: number | string | undefined;
1842
- y?: number | string | undefined;
1843
- width?: number | string | undefined;
1844
- height?: number | string | undefined;
1845
- href?: string | undefined;
1846
- }
1847
- interface ViewSVGAttributes<T> extends CoreSVGAttributes<T>, ExternalResourceSVGAttributes, FitToViewBoxSVGAttributes, ZoomAndPanSVGAttributes {
1848
- viewTarget?: string | undefined;
1849
- }
1850
- /**
1851
- * A list of native HTML elements and their props.
1852
- *
1853
- * @see {HTMLElementTagNameMap}
1854
- */
1855
- interface HTMLElementTags {
1856
- a: AnchorHTMLAttributes<HTMLAnchorElement>;
1857
- abbr: HTMLAttributes;
1858
- address: HTMLAttributes;
1859
- area: AreaHTMLAttributes<HTMLAreaElement>;
1860
- article: HTMLAttributes;
1861
- aside: HTMLAttributes;
1862
- audio: AudioHTMLAttributes<HTMLAudioElement>;
1863
- b: HTMLAttributes;
1864
- base: BaseHTMLAttributes<HTMLBaseElement>;
1865
- bdi: HTMLAttributes;
1866
- bdo: HTMLAttributes;
1867
- blockquote: BlockquoteHTMLAttributes<HTMLQuoteElement>;
1868
- body: HTMLAttributes<HTMLBodyElement>;
1869
- br: HTMLAttributes<HTMLBRElement>;
1870
- button: ButtonHTMLAttributes<HTMLButtonElement>;
1871
- canvas: CanvasHTMLAttributes<HTMLCanvasElement>;
1872
- caption: HTMLAttributes;
1873
- cite: HTMLAttributes;
1874
- code: HTMLAttributes;
1875
- col: ColHTMLAttributes<HTMLTableColElement>;
1876
- colgroup: ColgroupHTMLAttributes<HTMLTableColElement>;
1877
- data: DataHTMLAttributes<HTMLDataElement>;
1878
- datalist: HTMLAttributes<HTMLDataListElement>;
1879
- dd: HTMLAttributes;
1880
- del: HTMLAttributes;
1881
- details: DetailsHTMLAttributes<HTMLDetailsElement>;
1882
- dfn: HTMLAttributes;
1883
- dialog: DialogHTMLAttributes<HTMLDialogElement>;
1884
- div: HTMLAttributes<HTMLDivElement>;
1885
- dl: HTMLAttributes<HTMLDListElement>;
1886
- dt: HTMLAttributes;
1887
- em: HTMLAttributes;
1888
- embed: EmbedHTMLAttributes<HTMLEmbedElement>;
1889
- fieldset: FieldsetHTMLAttributes<HTMLFieldSetElement>;
1890
- figcaption: HTMLAttributes;
1891
- figure: HTMLAttributes;
1892
- footer: HTMLAttributes;
1893
- form: FormHTMLAttributes<HTMLFormElement>;
1894
- h1: HTMLAttributes<HTMLHeadingElement>;
1895
- h2: HTMLAttributes<HTMLHeadingElement>;
1896
- h3: HTMLAttributes<HTMLHeadingElement>;
1897
- h4: HTMLAttributes<HTMLHeadingElement>;
1898
- h5: HTMLAttributes<HTMLHeadingElement>;
1899
- h6: HTMLAttributes<HTMLHeadingElement>;
1900
- head: HTMLAttributes<HTMLHeadElement>;
1901
- header: HTMLAttributes;
1902
- hgroup: HTMLAttributes;
1903
- hr: HTMLAttributes<HTMLHRElement>;
1904
- html: HTMLAttributes<HTMLHtmlElement>;
1905
- i: HTMLAttributes;
1906
- iframe: IframeHTMLAttributes<HTMLIFrameElement>;
1907
- img: ImgHTMLAttributes<HTMLImageElement>;
1908
- input: InputHTMLAttributes<HTMLInputElement>;
1909
- ins: InsHTMLAttributes<HTMLModElement>;
1910
- kbd: HTMLAttributes;
1911
- label: LabelHTMLAttributes<HTMLLabelElement>;
1912
- legend: HTMLAttributes<HTMLLegendElement>;
1913
- li: LiHTMLAttributes<HTMLLIElement>;
1914
- link: LinkHTMLAttributes<HTMLLinkElement>;
1915
- main: HTMLAttributes;
1916
- map: MapHTMLAttributes<HTMLMapElement>;
1917
- math: MathMLAttributes;
1918
- mark: HTMLAttributes;
1919
- menu: MenuHTMLAttributes<HTMLMenuElement>;
1920
- meta: MetaHTMLAttributes<HTMLMetaElement>;
1921
- meter: MeterHTMLAttributes<HTMLMeterElement>;
1922
- nav: HTMLAttributes;
1923
- noscript: HTMLAttributes;
1924
- object: ObjectHTMLAttributes<HTMLObjectElement>;
1925
- ol: OlHTMLAttributes<HTMLOListElement>;
1926
- optgroup: OptgroupHTMLAttributes<HTMLOptGroupElement>;
1927
- option: OptionHTMLAttributes<HTMLOptionElement>;
1928
- output: OutputHTMLAttributes<HTMLOutputElement>;
1929
- p: HTMLAttributes<HTMLParagraphElement>;
1930
- picture: HTMLAttributes;
1931
- pre: HTMLAttributes<HTMLPreElement>;
1932
- progress: ProgressHTMLAttributes<HTMLProgressElement>;
1933
- q: QuoteHTMLAttributes<HTMLQuoteElement>;
1934
- rp: HTMLAttributes;
1935
- rt: HTMLAttributes;
1936
- ruby: HTMLAttributes;
1937
- s: HTMLAttributes;
1938
- samp: HTMLAttributes;
1939
- script: ScriptHTMLAttributes<HTMLScriptElement>;
1940
- search: HTMLAttributes;
1941
- section: HTMLAttributes;
1942
- select: SelectHTMLAttributes<HTMLSelectElement>;
1943
- slot: SlotHTMLAttributes;
1944
- small: HTMLAttributes;
1945
- source: SourceHTMLAttributes<HTMLSourceElement>;
1946
- span: HTMLAttributes<HTMLSpanElement>;
1947
- strong: HTMLAttributes;
1948
- /**
1949
- * For use when you have a dynamic CSS string that needs to be added as a
1950
- * style. If you have a static string, use Lit's "styles" property instead
1951
- * for better performance.
1952
- */
1953
- style: StyleHTMLAttributes<HTMLStyleElement>;
1954
- svg: SvgSVGAttributes<SVGSVGElement>;
1955
- sub: HTMLAttributes;
1956
- summary: HTMLAttributes;
1957
- sup: HTMLAttributes;
1958
- table: HTMLAttributes<HTMLTableElement>;
1959
- tbody: HTMLAttributes<HTMLTableSectionElement>;
1960
- td: TdHTMLAttributes<HTMLTableCellElement>;
1961
- template: TemplateHTMLAttributes<HTMLTemplateElement>;
1962
- textarea: TextareaHTMLAttributes<HTMLTextAreaElement>;
1963
- tfoot: HTMLAttributes<HTMLTableSectionElement>;
1964
- th: ThHTMLAttributes<HTMLTableCellElement>;
1965
- thead: HTMLAttributes<HTMLTableSectionElement>;
1966
- time: TimeHTMLAttributes<HTMLTimeElement>;
1967
- title: HTMLAttributes<HTMLTitleElement>;
1968
- tr: HTMLAttributes<HTMLTableRowElement>;
1969
- track: TrackHTMLAttributes<HTMLTrackElement>;
1970
- u: HTMLAttributes;
1971
- ul: HTMLAttributes<HTMLUListElement>;
1972
- var: HTMLAttributes;
1973
- video: VideoHTMLAttributes<HTMLVideoElement>;
1974
- wbr: HTMLAttributes;
1975
- }
1976
- /**
1977
- * A list of native SVG elements and their props.
1978
- *
1979
- * @type {SVGElementTagNameMap}
1980
- */
1981
- interface SVGElementTags {
1982
- animate: AnimateSVGAttributes<SVGAnimateElement>;
1983
- animateMotion: AnimateMotionSVGAttributes<SVGAnimateMotionElement>;
1984
- animateTransform: AnimateTransformSVGAttributes<SVGAnimateTransformElement>;
1985
- circle: CircleSVGAttributes<SVGCircleElement>;
1986
- clipPath: ClipPathSVGAttributes<SVGClipPathElement>;
1987
- defs: DefsSVGAttributes<SVGDefsElement>;
1988
- desc: DescSVGAttributes<SVGDescElement>;
1989
- ellipse: EllipseSVGAttributes<SVGEllipseElement>;
1990
- feBlend: FeBlendSVGAttributes<SVGFEBlendElement>;
1991
- feColorMatrix: FeColorMatrixSVGAttributes<SVGFEColorMatrixElement>;
1992
- feComponentTransfer: FeComponentTransferSVGAttributes<SVGFEComponentTransferElement>;
1993
- feComposite: FeCompositeSVGAttributes<SVGFECompositeElement>;
1994
- feConvolveMatrix: FeConvolveMatrixSVGAttributes<SVGFEConvolveMatrixElement>;
1995
- feDiffuseLighting: FeDiffuseLightingSVGAttributes<SVGFEDiffuseLightingElement>;
1996
- feDisplacementMap: FeDisplacementMapSVGAttributes<SVGFEDisplacementMapElement>;
1997
- feDistantLight: FeDistantLightSVGAttributes<SVGFEDistantLightElement>;
1998
- feDropShadow: FeDropShadowSVGAttributes<SVGFEDropShadowElement>;
1999
- feFlood: FeFloodSVGAttributes<SVGFEFloodElement>;
2000
- feFuncA: FeFuncSVGAttributes<SVGFEFuncAElement>;
2001
- feFuncB: FeFuncSVGAttributes<SVGFEFuncBElement>;
2002
- feFuncG: FeFuncSVGAttributes<SVGFEFuncGElement>;
2003
- feFuncR: FeFuncSVGAttributes<SVGFEFuncRElement>;
2004
- feGaussianBlur: FeGaussianBlurSVGAttributes<SVGFEGaussianBlurElement>;
2005
- feImage: FeImageSVGAttributes<SVGFEImageElement>;
2006
- feMerge: FeMergeSVGAttributes<SVGFEMergeElement>;
2007
- feMergeNode: FeMergeNodeSVGAttributes<SVGFEMergeNodeElement>;
2008
- feMorphology: FeMorphologySVGAttributes<SVGFEMorphologyElement>;
2009
- feOffset: FeOffsetSVGAttributes<SVGFEOffsetElement>;
2010
- fePointLight: FePointLightSVGAttributes<SVGFEPointLightElement>;
2011
- feSpecularLighting: FeSpecularLightingSVGAttributes<SVGFESpecularLightingElement>;
2012
- feSpotLight: FeSpotLightSVGAttributes<SVGFESpotLightElement>;
2013
- feTile: FeTileSVGAttributes<SVGFETileElement>;
2014
- feTurbulence: FeTurbulanceSVGAttributes<SVGFETurbulenceElement>;
2015
- filter: FilterSVGAttributes<SVGFilterElement>;
2016
- foreignObject: ForeignObjectSVGAttributes<SVGForeignObjectElement>;
2017
- g: GSVGAttributes<SVGGElement>;
2018
- image: ImageSVGAttributes<SVGImageElement>;
2019
- line: LineSVGAttributes<SVGLineElement>;
2020
- linearGradient: LinearGradientSVGAttributes<SVGLinearGradientElement>;
2021
- marker: MarkerSVGAttributes<SVGMarkerElement>;
2022
- mask: MaskSVGAttributes<SVGMaskElement>;
2023
- metadata: MetadataSVGAttributes<SVGMetadataElement>;
2024
- mpath: MPathSVGAttributes<SVGMPathElement>;
2025
- path: PathSVGAttributes<SVGPathElement>;
2026
- pattern: PatternSVGAttributes<SVGPatternElement>;
2027
- polygon: PolygonSVGAttributes<SVGPolygonElement>;
2028
- polyline: PolylineSVGAttributes<SVGPolylineElement>;
2029
- radialGradient: RadialGradientSVGAttributes<SVGRadialGradientElement>;
2030
- rect: RectSVGAttributes<SVGRectElement>;
2031
- set: SetSVGAttributes<SVGSetElement>;
2032
- stop: StopSVGAttributes<SVGStopElement>;
2033
- svg: SvgSVGAttributes<SVGSVGElement>;
2034
- switch: SwitchSVGAttributes<SVGSwitchElement>;
2035
- symbol: SymbolSVGAttributes<SVGSymbolElement>;
2036
- text: TextSVGAttributes<SVGTextElement>;
2037
- textPath: TextPathSVGAttributes<SVGTextPathElement>;
2038
- tspan: TSpanSVGAttributes<SVGTSpanElement>;
2039
- use: UseSVGAttributes<SVGUseElement>;
2040
- view: ViewSVGAttributes<SVGViewElement>;
2041
- }
2042
- }
2043
- export {};