dash-button-web 0.0.21 → 0.0.23-beta.0
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/cjs/app-globals-cd54EKuF.js +15 -0
- package/dist/cjs/dash-button.cjs.entry.js +2189 -2074
- package/dist/cjs/index-BfwSK14n.js +1507 -0
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +5 -7
- package/dist/cjs/web-compnont.cjs.js +15 -15
- package/dist/collection/collection-manifest.json +5 -3
- package/dist/collection/components/my-component/dash-button.js +134 -38
- package/dist/collection/global/app.js +7 -0
- package/dist/collection/index.js +0 -1
- package/dist/collection/services/config.js +2 -1
- package/dist/collection/services/menu.js +18 -5
- package/dist/components/dash-button.js +1 -4233
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -3
- package/dist/esm/app-globals-B2hgy9FG.js +13 -0
- package/dist/esm/dash-button.entry.js +2189 -2072
- package/dist/esm/index-6_Ga3Eox.js +1499 -0
- package/dist/esm/index.js +0 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/web-compnont.js +15 -14
- package/dist/types/components/my-component/dash-button.d.ts +3 -0
- package/dist/types/components.d.ts +75 -3
- package/dist/types/global/app.d.ts +2 -0
- package/dist/types/services/config.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +268 -70
- package/dist/web-compnont/index.esm.js +0 -2
- package/dist/web-compnont/p-39949e8a.entry.js +1 -0
- package/dist/web-compnont/p-6_Ga3Eox.js +3 -0
- package/dist/web-compnont/p-DiU1T8CW.js +1 -0
- package/dist/web-compnont/web-compnont.esm.js +1 -2
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +4 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/package.json +3 -2
- package/readme.md +43 -19
- package/dist/cjs/dash-button.cjs.entry.js.map +0 -1
- package/dist/cjs/index-87d4993d.js +0 -1793
- package/dist/cjs/index-87d4993d.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/web-compnont.cjs.js.map +0 -1
- package/dist/collection/components/my-component/dash-button.e2e.js +0 -26
- package/dist/collection/components/my-component/dash-button.e2e.js.map +0 -1
- package/dist/collection/components/my-component/dash-button.js.map +0 -1
- package/dist/collection/components/my-component/dash-button.spec.js +0 -35
- package/dist/collection/components/my-component/dash-button.spec.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/services/config.js.map +0 -1
- package/dist/collection/services/menu.js.map +0 -1
- package/dist/components/dash-button.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/esm/dash-button.entry.js.map +0 -1
- package/dist/esm/index-e3df5eaf.js +0 -1766
- package/dist/esm/index-e3df5eaf.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/web-compnont.js.map +0 -1
- package/dist/web-compnont/index.esm.js.map +0 -1
- package/dist/web-compnont/p-c1ec12fe.js +0 -3
- package/dist/web-compnont/p-c1ec12fe.js.map +0 -1
- package/dist/web-compnont/p-fc02a292.entry.js +0 -10
- package/dist/web-compnont/p-fc02a292.entry.js.map +0 -1
- package/dist/web-compnont/web-compnont.esm.js.map +0 -1
- package/loader/package.json +0 -11
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
type CustomMethodDecorator<T> = (target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
|
|
2
|
+
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
3
|
+
type MixinInstance<F> = F extends (base: MixedInCtor) => MixedInCtor<infer I> ? I : never;
|
|
2
4
|
export interface ComponentDecorator {
|
|
3
5
|
(opts?: ComponentOptions): ClassDecorator;
|
|
4
6
|
}
|
|
@@ -61,6 +63,12 @@ export interface ShadowRootOptions {
|
|
|
61
63
|
* focusable part is given focus, and the shadow host is given any available `:focus` styling.
|
|
62
64
|
*/
|
|
63
65
|
delegatesFocus?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Sets the slot assignment mode for the shadow root. When set to `'manual'`, enables imperative
|
|
68
|
+
* slotting using the `HTMLSlotElement.assign()` method. Defaults to `'named'` for standard
|
|
69
|
+
* declarative slotting behavior.
|
|
70
|
+
*/
|
|
71
|
+
slotAssignment?: 'manual' | 'named';
|
|
64
72
|
}
|
|
65
73
|
export interface ModeStyles {
|
|
66
74
|
[modeName: string]: string | string[];
|
|
@@ -117,12 +125,34 @@ export interface EventOptions {
|
|
|
117
125
|
*/
|
|
118
126
|
composed?: boolean;
|
|
119
127
|
}
|
|
128
|
+
export interface AttachInternalsOptions {
|
|
129
|
+
/**
|
|
130
|
+
* Initial custom states to set on the ElementInternals.states CustomStateSet.
|
|
131
|
+
* Each key is the state name and the value is the initial boolean state.
|
|
132
|
+
*
|
|
133
|
+
* These states can be targeted with the CSS `:state()` pseudo-class.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```tsx
|
|
137
|
+
* @AttachInternals({ states: { open: true, active: false } })
|
|
138
|
+
* internals: ElementInternals;
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
141
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/CustomStateSet
|
|
142
|
+
*/
|
|
143
|
+
states?: {
|
|
144
|
+
[stateName: string]: boolean;
|
|
145
|
+
};
|
|
146
|
+
}
|
|
120
147
|
export interface AttachInternalsDecorator {
|
|
121
|
-
(): PropertyDecorator;
|
|
148
|
+
(opts?: AttachInternalsOptions): PropertyDecorator;
|
|
122
149
|
}
|
|
123
150
|
export interface ListenDecorator {
|
|
124
151
|
(eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
|
|
125
152
|
}
|
|
153
|
+
export interface ResolveVarFunction {
|
|
154
|
+
<T>(variable: T): string;
|
|
155
|
+
}
|
|
126
156
|
export interface ListenOptions {
|
|
127
157
|
/**
|
|
128
158
|
* Handlers can also be registered for an event other than the host itself.
|
|
@@ -151,7 +181,15 @@ export interface StateDecorator {
|
|
|
151
181
|
(): PropertyDecorator;
|
|
152
182
|
}
|
|
153
183
|
export interface WatchDecorator {
|
|
154
|
-
(propName:
|
|
184
|
+
(propName: any, watchOptions?: {
|
|
185
|
+
immediate?: boolean;
|
|
186
|
+
}): CustomMethodDecorator<(newValue?: any, oldValue?: any, propName?: any, ...args: any[]) => any | void>;
|
|
187
|
+
}
|
|
188
|
+
export interface PropSerializeDecorator {
|
|
189
|
+
(propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => string | null>;
|
|
190
|
+
}
|
|
191
|
+
export interface AttrDeserializeDecorator {
|
|
192
|
+
(propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => any>;
|
|
155
193
|
}
|
|
156
194
|
export interface UserBuildConditionals {
|
|
157
195
|
isDev: boolean;
|
|
@@ -200,6 +238,24 @@ export declare const AttachInternals: AttachInternalsDecorator;
|
|
|
200
238
|
* https://stenciljs.com/docs/events#listen-decorator
|
|
201
239
|
*/
|
|
202
240
|
export declare const Listen: ListenDecorator;
|
|
241
|
+
/**
|
|
242
|
+
* The `resolveVar()` function is a compile-time utility that resolves const variables
|
|
243
|
+
* and object properties to their string literal values. This allows variables to be
|
|
244
|
+
* used in `@Listen` and `@Event` decorators instead of hardcoded strings.
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* ```ts
|
|
248
|
+
* const MY_EVENT = 'myEvent';
|
|
249
|
+
* @Listen(resolveVar(MY_EVENT))
|
|
250
|
+
* ```
|
|
251
|
+
*
|
|
252
|
+
* @example
|
|
253
|
+
* ```ts
|
|
254
|
+
* const EVENTS = { MY_EVENT: 'myEvent' } as const;
|
|
255
|
+
* @Event({ eventName: resolveVar(EVENTS.MY_EVENT) })
|
|
256
|
+
* ```
|
|
257
|
+
*/
|
|
258
|
+
export declare const resolveVar: ResolveVarFunction;
|
|
203
259
|
/**
|
|
204
260
|
* The `@Method()` decorator is used to expose methods on the public API.
|
|
205
261
|
* Class methods decorated with the @Method() decorator can be called directly
|
|
@@ -233,6 +289,14 @@ export declare const State: StateDecorator;
|
|
|
233
289
|
* https://stenciljs.com/docs/reactive-data#watch-decorator
|
|
234
290
|
*/
|
|
235
291
|
export declare const Watch: WatchDecorator;
|
|
292
|
+
/**
|
|
293
|
+
* Decorator to serialize a property to an attribute string.
|
|
294
|
+
*/
|
|
295
|
+
export declare const PropSerialize: PropSerializeDecorator;
|
|
296
|
+
/**
|
|
297
|
+
* Decorator to deserialize an attribute string to a property.
|
|
298
|
+
*/
|
|
299
|
+
export declare const AttrDeserialize: AttrDeserializeDecorator;
|
|
236
300
|
export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
|
|
237
301
|
export type ErrorHandler = (err: any, element?: HTMLElement) => void;
|
|
238
302
|
/**
|
|
@@ -260,6 +324,25 @@ export declare function setPlatformHelpers(helpers: {
|
|
|
260
324
|
* @returns the base path
|
|
261
325
|
*/
|
|
262
326
|
export declare function getAssetPath(path: string): string;
|
|
327
|
+
/**
|
|
328
|
+
* Method to render a virtual DOM tree to a container element.
|
|
329
|
+
*
|
|
330
|
+
* @example
|
|
331
|
+
* ```tsx
|
|
332
|
+
* import { render } from '@stencil/core';
|
|
333
|
+
*
|
|
334
|
+
* const vnode = (
|
|
335
|
+
* <div>
|
|
336
|
+
* <h1>Hello, world!</h1>
|
|
337
|
+
* </div>
|
|
338
|
+
* );
|
|
339
|
+
* render(vnode, document.body);
|
|
340
|
+
* ```
|
|
341
|
+
*
|
|
342
|
+
* @param vnode - The virtual DOM tree to render
|
|
343
|
+
* @param container - The container element to render the virtual DOM tree to
|
|
344
|
+
*/
|
|
345
|
+
export declare function render(vnode: VNode, container: Element): void;
|
|
263
346
|
/**
|
|
264
347
|
* Used to manually set the base path where assets can be found. For lazy-loaded
|
|
265
348
|
* builds the asset path is automatically set and assets copied to the correct
|
|
@@ -330,6 +413,58 @@ export declare function readTask(task: RafCallback): void;
|
|
|
330
413
|
* Unhandled exception raised while rendering, during event handling, or lifecycles will trigger the custom event handler.
|
|
331
414
|
*/
|
|
332
415
|
export declare const setErrorHandler: (handler: ErrorHandler) => void;
|
|
416
|
+
export type TagTransformer = (tag: string) => string;
|
|
417
|
+
/**
|
|
418
|
+
* Sets a tag transformer to be used when rendering your custom elements.
|
|
419
|
+
* ```ts
|
|
420
|
+
* setTagTransformer((tag) => {
|
|
421
|
+
* if (tag.startsWith('my-')) return `new-${tag}`
|
|
422
|
+
* return tag;
|
|
423
|
+
* });
|
|
424
|
+
* ```
|
|
425
|
+
* Will mean all your components that start with `my-` are defined instead with `new-my-` prefix.
|
|
426
|
+
*
|
|
427
|
+
* @param transformer the transformer function to use which must return a string.
|
|
428
|
+
*/
|
|
429
|
+
export declare function setTagTransformer(transformer: TagTransformer): void;
|
|
430
|
+
/**
|
|
431
|
+
* Transforms a tag name using a transformer set via `setTagTransformer`
|
|
432
|
+
*
|
|
433
|
+
* @param tag - the tag to transform e.g. `my-tag`
|
|
434
|
+
* @returns the transformed tag e.g. `new-my-tag`
|
|
435
|
+
*/
|
|
436
|
+
export declare function transformTag(tag: string): string;
|
|
437
|
+
/**
|
|
438
|
+
* @deprecated - Use `MixedInCtor` instead:
|
|
439
|
+
* ```ts
|
|
440
|
+
* import { MixedInCtor } from '@stencil/core';
|
|
441
|
+
*
|
|
442
|
+
* const AFactoryFn = <B extends MixedInCtor>(Base: B) => {class A extends Base { propA = A }; return A;}
|
|
443
|
+
* ```
|
|
444
|
+
*/
|
|
445
|
+
export type MixinFactory = (base: MixedInCtor) => MixedInCtor;
|
|
446
|
+
export type MixedInCtor<T = {}> = new (...args: any[]) => T;
|
|
447
|
+
/**
|
|
448
|
+
* Compose multiple mixin classes into a single constructor.
|
|
449
|
+
* The resulting class has the combined instance types of all mixed-in classes.
|
|
450
|
+
*
|
|
451
|
+
* Example:
|
|
452
|
+
* ```ts
|
|
453
|
+
* import { Mixin, MixedInCtor } from '@stencil/core';
|
|
454
|
+
*
|
|
455
|
+
* const AWrap = <B extends MixedInCtor>(Base: B) => {class A extends Base { propA = A }; return A;}
|
|
456
|
+
* const BWrap = <B extends MixedInCtor>(Base: B) => {class B extends Base { propB = B }; return B;}
|
|
457
|
+
* const CWrap = <B extends MixedInCtor>(Base: B) => {class C extends Base { propC = C }; return C;}
|
|
458
|
+
*
|
|
459
|
+
* class X extends Mixin(AWrap, BWrap, CWrap) {
|
|
460
|
+
* render() { return <div>{this.propA} {this.propB} {this.propC}</div>; }
|
|
461
|
+
* }
|
|
462
|
+
* ```
|
|
463
|
+
*
|
|
464
|
+
* @param mixinFactories mixin factory functions that return a class which extends from the provided class.
|
|
465
|
+
* @returns a class that is composed from extending each of the provided classes in the order they were provided.
|
|
466
|
+
*/
|
|
467
|
+
export declare function Mixin<const TMixins extends readonly MixinFactory[]>(...mixinFactories: TMixins): abstract new (...args: any[]) => UnionToIntersection<MixinInstance<TMixins[number]>>;
|
|
333
468
|
/**
|
|
334
469
|
* This file gets copied to all distributions of stencil component collections.
|
|
335
470
|
* - no imports
|
|
@@ -502,7 +637,7 @@ export interface FunctionalUtilities {
|
|
|
502
637
|
map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
|
|
503
638
|
}
|
|
504
639
|
export interface FunctionalComponent<T = {}> {
|
|
505
|
-
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
|
|
640
|
+
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[] | null;
|
|
506
641
|
}
|
|
507
642
|
/**
|
|
508
643
|
* A Child VDOM node
|
|
@@ -544,6 +679,7 @@ export declare namespace h {
|
|
|
544
679
|
function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
545
680
|
function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
546
681
|
function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
682
|
+
function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
|
|
547
683
|
namespace JSX {
|
|
548
684
|
interface IntrinsicElements extends LocalJSX.IntrinsicElements, JSXBase.IntrinsicElements {
|
|
549
685
|
[tagName: string]: any;
|
|
@@ -558,6 +694,36 @@ export declare function h(sel: any, children: Array<VNode | undefined | null>):
|
|
|
558
694
|
export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
559
695
|
export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
560
696
|
export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
697
|
+
export declare function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
|
|
698
|
+
/**
|
|
699
|
+
* Automatic JSX runtime functions for TypeScript's react-jsx mode.
|
|
700
|
+
* These functions are called automatically by TypeScript when using "jsx": "react-jsx".
|
|
701
|
+
* @param type type of node
|
|
702
|
+
* @param props properties of node
|
|
703
|
+
* @param key optional key for the node
|
|
704
|
+
* @returns a jsx vnode
|
|
705
|
+
*/
|
|
706
|
+
export declare function jsx(type: any, props: any, key?: string): VNode;
|
|
707
|
+
/**
|
|
708
|
+
* Automatic JSX runtime functions for TypeScript's react-jsxmode with multiple children.
|
|
709
|
+
* @param type type of node
|
|
710
|
+
* @param props properties of node
|
|
711
|
+
* @param key optional key for the node
|
|
712
|
+
* @returns a jsx vnode
|
|
713
|
+
*/
|
|
714
|
+
export declare function jsxs(type: any, props: any, key?: string): VNode;
|
|
715
|
+
/**
|
|
716
|
+
* Automatic JSX runtime functions for TypeScript's react-jsxdev mode.
|
|
717
|
+
* These functions are called automatically by TypeScript when using "jsx": "react-jsxdev".
|
|
718
|
+
* @param type type of node
|
|
719
|
+
* @param props properties of node
|
|
720
|
+
* @param key optional key for the node
|
|
721
|
+
* @param isStaticChildren indicates if the children are static
|
|
722
|
+
* @param source source information
|
|
723
|
+
* @param self reference to the component instance
|
|
724
|
+
* @returns a jsx vnode
|
|
725
|
+
*/
|
|
726
|
+
export declare function jsxDEV(type: any, props: any, key?: string | number, isStaticChildren?: boolean, source?: any, self?: any): VNode;
|
|
561
727
|
/**
|
|
562
728
|
* A virtual DOM node
|
|
563
729
|
*/
|
|
@@ -586,8 +752,8 @@ declare namespace LocalJSX {
|
|
|
586
752
|
}
|
|
587
753
|
export { LocalJSX as JSX };
|
|
588
754
|
export declare namespace JSXBase {
|
|
589
|
-
interface IntrinsicElements {
|
|
590
|
-
slot: JSXBase.SlotAttributes
|
|
755
|
+
export interface IntrinsicElements {
|
|
756
|
+
slot: JSXBase.SlotAttributes<HTMLSlotElement>;
|
|
591
757
|
a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
592
758
|
abbr: JSXBase.HTMLAttributes;
|
|
593
759
|
address: JSXBase.HTMLAttributes;
|
|
@@ -757,24 +923,25 @@ export declare namespace JSXBase {
|
|
|
757
923
|
use: JSXBase.SVGAttributes;
|
|
758
924
|
view: JSXBase.SVGAttributes;
|
|
759
925
|
}
|
|
760
|
-
interface SlotAttributes extends JSXAttributes {
|
|
926
|
+
export interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
|
|
761
927
|
name?: string;
|
|
762
928
|
slot?: string;
|
|
763
929
|
onSlotchange?: (event: Event) => void;
|
|
764
930
|
}
|
|
765
|
-
interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
931
|
+
export interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
766
932
|
download?: any;
|
|
767
933
|
href?: string;
|
|
768
934
|
hrefLang?: string;
|
|
769
935
|
hreflang?: string;
|
|
770
936
|
media?: string;
|
|
937
|
+
ping?: string;
|
|
771
938
|
rel?: string;
|
|
772
939
|
target?: string;
|
|
773
940
|
referrerPolicy?: ReferrerPolicy;
|
|
774
941
|
}
|
|
775
|
-
interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
942
|
+
export interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
776
943
|
}
|
|
777
|
-
interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
944
|
+
export interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
778
945
|
alt?: string;
|
|
779
946
|
coords?: string;
|
|
780
947
|
download?: any;
|
|
@@ -786,15 +953,14 @@ export declare namespace JSXBase {
|
|
|
786
953
|
shape?: string;
|
|
787
954
|
target?: string;
|
|
788
955
|
}
|
|
789
|
-
interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
956
|
+
export interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
790
957
|
href?: string;
|
|
791
958
|
target?: string;
|
|
792
959
|
}
|
|
793
|
-
interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
960
|
+
export interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
794
961
|
cite?: string;
|
|
795
962
|
}
|
|
796
|
-
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
797
|
-
autoFocus?: boolean;
|
|
963
|
+
export interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
798
964
|
disabled?: boolean;
|
|
799
965
|
form?: string;
|
|
800
966
|
formAction?: string;
|
|
@@ -813,44 +979,49 @@ export declare namespace JSXBase {
|
|
|
813
979
|
popoverTargetAction?: string;
|
|
814
980
|
popoverTargetElement?: Element | null;
|
|
815
981
|
popoverTarget?: string;
|
|
982
|
+
command?: string;
|
|
983
|
+
commandFor?: string;
|
|
984
|
+
commandfor?: string;
|
|
816
985
|
}
|
|
817
|
-
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
986
|
+
export interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
818
987
|
height?: number | string;
|
|
819
988
|
width?: number | string;
|
|
820
989
|
}
|
|
821
|
-
interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
990
|
+
export interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
822
991
|
span?: number;
|
|
823
992
|
}
|
|
824
|
-
interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
993
|
+
export interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
825
994
|
span?: number;
|
|
826
995
|
}
|
|
827
|
-
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
996
|
+
export interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
828
997
|
open?: boolean;
|
|
829
|
-
|
|
998
|
+
name?: string;
|
|
999
|
+
onToggle?: (event: ToggleEvent) => void;
|
|
830
1000
|
}
|
|
831
|
-
interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1001
|
+
export interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
832
1002
|
cite?: string;
|
|
833
1003
|
dateTime?: string;
|
|
834
1004
|
datetime?: string;
|
|
835
1005
|
}
|
|
836
|
-
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1006
|
+
export interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
837
1007
|
onCancel?: (event: Event) => void;
|
|
838
1008
|
onClose?: (event: Event) => void;
|
|
839
1009
|
open?: boolean;
|
|
840
1010
|
returnValue?: string;
|
|
1011
|
+
closedby?: 'any' | 'closerequest' | 'none';
|
|
841
1012
|
}
|
|
842
|
-
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1013
|
+
export interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
843
1014
|
height?: number | string;
|
|
844
1015
|
src?: string;
|
|
845
1016
|
type?: string;
|
|
846
1017
|
width?: number | string;
|
|
847
1018
|
}
|
|
848
|
-
interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1019
|
+
export interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
849
1020
|
disabled?: boolean;
|
|
850
1021
|
form?: string;
|
|
851
1022
|
name?: string;
|
|
852
1023
|
}
|
|
853
|
-
interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1024
|
+
export interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
854
1025
|
acceptCharset?: string;
|
|
855
1026
|
acceptcharset?: string;
|
|
856
1027
|
action?: string;
|
|
@@ -864,10 +1035,10 @@ export declare namespace JSXBase {
|
|
|
864
1035
|
novalidate?: boolean | string;
|
|
865
1036
|
target?: string;
|
|
866
1037
|
}
|
|
867
|
-
interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1038
|
+
export interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
868
1039
|
manifest?: string;
|
|
869
1040
|
}
|
|
870
|
-
interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1041
|
+
export interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
871
1042
|
allow?: string;
|
|
872
1043
|
allowFullScreen?: boolean;
|
|
873
1044
|
allowfullScreen?: string | boolean;
|
|
@@ -875,6 +1046,8 @@ export declare namespace JSXBase {
|
|
|
875
1046
|
allowtransparency?: string | boolean;
|
|
876
1047
|
frameBorder?: number | string;
|
|
877
1048
|
frameborder?: number | string;
|
|
1049
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1050
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
878
1051
|
importance?: 'low' | 'auto' | 'high';
|
|
879
1052
|
height?: number | string;
|
|
880
1053
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -892,14 +1065,17 @@ export declare namespace JSXBase {
|
|
|
892
1065
|
srcdoc?: string;
|
|
893
1066
|
width?: number | string;
|
|
894
1067
|
}
|
|
895
|
-
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1068
|
+
export interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
896
1069
|
alt?: string;
|
|
897
1070
|
crossOrigin?: string;
|
|
898
1071
|
crossorigin?: string;
|
|
899
1072
|
decoding?: 'async' | 'auto' | 'sync';
|
|
1073
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1074
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
900
1075
|
importance?: 'low' | 'auto' | 'high';
|
|
901
1076
|
height?: number | string;
|
|
902
1077
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
1078
|
+
referrerPolicy?: ReferrerPolicy;
|
|
903
1079
|
sizes?: string;
|
|
904
1080
|
src?: string;
|
|
905
1081
|
srcSet?: string;
|
|
@@ -908,12 +1084,12 @@ export declare namespace JSXBase {
|
|
|
908
1084
|
usemap?: string;
|
|
909
1085
|
width?: number | string;
|
|
910
1086
|
}
|
|
911
|
-
interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1087
|
+
export interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
912
1088
|
cite?: string;
|
|
913
1089
|
dateTime?: string;
|
|
914
1090
|
datetime?: string;
|
|
915
1091
|
}
|
|
916
|
-
interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1092
|
+
export interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
917
1093
|
accept?: string;
|
|
918
1094
|
allowdirs?: boolean;
|
|
919
1095
|
alt?: string;
|
|
@@ -921,8 +1097,6 @@ export declare namespace JSXBase {
|
|
|
921
1097
|
autocapitalize?: string;
|
|
922
1098
|
autoComplete?: string;
|
|
923
1099
|
autocomplete?: string;
|
|
924
|
-
autoFocus?: boolean;
|
|
925
|
-
autofocus?: boolean | string;
|
|
926
1100
|
capture?: string;
|
|
927
1101
|
checked?: boolean;
|
|
928
1102
|
crossOrigin?: string;
|
|
@@ -978,9 +1152,7 @@ export declare namespace JSXBase {
|
|
|
978
1152
|
popoverTargetElement?: Element | null;
|
|
979
1153
|
popoverTarget?: string;
|
|
980
1154
|
}
|
|
981
|
-
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
982
|
-
autoFocus?: boolean;
|
|
983
|
-
autofocus?: boolean | string;
|
|
1155
|
+
export interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
984
1156
|
challenge?: string;
|
|
985
1157
|
disabled?: boolean;
|
|
986
1158
|
form?: string;
|
|
@@ -990,16 +1162,17 @@ export declare namespace JSXBase {
|
|
|
990
1162
|
keyparams?: string;
|
|
991
1163
|
name?: string;
|
|
992
1164
|
}
|
|
993
|
-
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1165
|
+
export interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
994
1166
|
form?: string;
|
|
995
1167
|
htmlFor?: string;
|
|
996
|
-
htmlfor?: string;
|
|
997
1168
|
}
|
|
998
|
-
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1169
|
+
export interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
999
1170
|
value?: string | string[] | number;
|
|
1000
1171
|
}
|
|
1001
|
-
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1172
|
+
export interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1002
1173
|
as?: string;
|
|
1174
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1175
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1003
1176
|
href?: string;
|
|
1004
1177
|
hrefLang?: string;
|
|
1005
1178
|
hreflang?: string;
|
|
@@ -1010,16 +1183,18 @@ export declare namespace JSXBase {
|
|
|
1010
1183
|
sizes?: string;
|
|
1011
1184
|
type?: string;
|
|
1012
1185
|
}
|
|
1013
|
-
interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1186
|
+
export interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1014
1187
|
name?: string;
|
|
1015
1188
|
}
|
|
1016
|
-
interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1189
|
+
export interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1017
1190
|
type?: string;
|
|
1018
1191
|
}
|
|
1019
|
-
interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1192
|
+
export interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1020
1193
|
autoPlay?: boolean;
|
|
1021
1194
|
autoplay?: boolean | string;
|
|
1022
1195
|
controls?: boolean;
|
|
1196
|
+
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1197
|
+
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1023
1198
|
crossOrigin?: string;
|
|
1024
1199
|
crossorigin?: string;
|
|
1025
1200
|
loop?: boolean;
|
|
@@ -1054,7 +1229,7 @@ export declare namespace JSXBase {
|
|
|
1054
1229
|
onVolumeChange?: (event: Event) => void;
|
|
1055
1230
|
onWaiting?: (event: Event) => void;
|
|
1056
1231
|
}
|
|
1057
|
-
interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1232
|
+
export interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1058
1233
|
charSet?: string;
|
|
1059
1234
|
charset?: string;
|
|
1060
1235
|
content?: string;
|
|
@@ -1062,7 +1237,7 @@ export declare namespace JSXBase {
|
|
|
1062
1237
|
httpequiv?: string;
|
|
1063
1238
|
name?: string;
|
|
1064
1239
|
}
|
|
1065
|
-
interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1240
|
+
export interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1066
1241
|
form?: string;
|
|
1067
1242
|
high?: number;
|
|
1068
1243
|
low?: number;
|
|
@@ -1071,10 +1246,10 @@ export declare namespace JSXBase {
|
|
|
1071
1246
|
optimum?: number;
|
|
1072
1247
|
value?: string | string[] | number;
|
|
1073
1248
|
}
|
|
1074
|
-
interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1249
|
+
export interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1075
1250
|
cite?: string;
|
|
1076
1251
|
}
|
|
1077
|
-
interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1252
|
+
export interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1078
1253
|
classID?: string;
|
|
1079
1254
|
classid?: string;
|
|
1080
1255
|
data?: string;
|
|
@@ -1087,49 +1262,49 @@ export declare namespace JSXBase {
|
|
|
1087
1262
|
width?: number | string;
|
|
1088
1263
|
wmode?: string;
|
|
1089
1264
|
}
|
|
1090
|
-
interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1265
|
+
export interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1091
1266
|
reversed?: boolean;
|
|
1092
1267
|
start?: number;
|
|
1093
1268
|
}
|
|
1094
|
-
interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1269
|
+
export interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1095
1270
|
disabled?: boolean;
|
|
1096
1271
|
label?: string;
|
|
1097
1272
|
}
|
|
1098
|
-
interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1273
|
+
export interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1099
1274
|
disabled?: boolean;
|
|
1100
1275
|
label?: string;
|
|
1101
1276
|
selected?: boolean;
|
|
1102
1277
|
value?: string | string[] | number;
|
|
1103
1278
|
}
|
|
1104
|
-
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1279
|
+
export interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1105
1280
|
form?: string;
|
|
1106
1281
|
htmlFor?: string;
|
|
1107
|
-
htmlfor?: string;
|
|
1108
1282
|
name?: string;
|
|
1109
1283
|
}
|
|
1110
|
-
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1284
|
+
export interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1111
1285
|
name?: string;
|
|
1112
1286
|
value?: string | string[] | number;
|
|
1113
1287
|
}
|
|
1114
|
-
interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1288
|
+
export interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1115
1289
|
max?: number | string;
|
|
1116
1290
|
value?: string | string[] | number;
|
|
1117
1291
|
}
|
|
1118
|
-
interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1292
|
+
export interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1119
1293
|
async?: boolean;
|
|
1120
1294
|
charSet?: string;
|
|
1121
1295
|
charset?: string;
|
|
1122
1296
|
crossOrigin?: string;
|
|
1123
1297
|
crossorigin?: string;
|
|
1124
1298
|
defer?: boolean;
|
|
1299
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1300
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1125
1301
|
importance?: 'low' | 'auto' | 'high';
|
|
1126
1302
|
integrity?: string;
|
|
1127
1303
|
nonce?: string;
|
|
1128
1304
|
src?: string;
|
|
1129
1305
|
type?: string;
|
|
1130
1306
|
}
|
|
1131
|
-
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1132
|
-
autoFocus?: boolean;
|
|
1307
|
+
export interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1133
1308
|
disabled?: boolean;
|
|
1134
1309
|
form?: string;
|
|
1135
1310
|
multiple?: boolean;
|
|
@@ -1139,7 +1314,7 @@ export declare namespace JSXBase {
|
|
|
1139
1314
|
autoComplete?: string;
|
|
1140
1315
|
autocomplete?: string;
|
|
1141
1316
|
}
|
|
1142
|
-
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1317
|
+
export interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1143
1318
|
height?: number;
|
|
1144
1319
|
media?: string;
|
|
1145
1320
|
sizes?: string;
|
|
@@ -1148,24 +1323,22 @@ export declare namespace JSXBase {
|
|
|
1148
1323
|
type?: string;
|
|
1149
1324
|
width?: number;
|
|
1150
1325
|
}
|
|
1151
|
-
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1326
|
+
export interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1152
1327
|
media?: string;
|
|
1153
1328
|
nonce?: string;
|
|
1154
1329
|
scoped?: boolean;
|
|
1155
1330
|
type?: string;
|
|
1156
1331
|
}
|
|
1157
|
-
interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1332
|
+
export interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1158
1333
|
cellPadding?: number | string;
|
|
1159
1334
|
cellpadding?: number | string;
|
|
1160
1335
|
cellSpacing?: number | string;
|
|
1161
1336
|
cellspacing?: number | string;
|
|
1162
1337
|
summary?: string;
|
|
1163
1338
|
}
|
|
1164
|
-
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1339
|
+
export interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1165
1340
|
autoComplete?: string;
|
|
1166
1341
|
autocomplete?: string;
|
|
1167
|
-
autoFocus?: boolean;
|
|
1168
|
-
autofocus?: boolean | string;
|
|
1169
1342
|
cols?: number;
|
|
1170
1343
|
disabled?: boolean;
|
|
1171
1344
|
form?: string;
|
|
@@ -1184,12 +1357,12 @@ export declare namespace JSXBase {
|
|
|
1184
1357
|
value?: string | string[] | number;
|
|
1185
1358
|
wrap?: string;
|
|
1186
1359
|
}
|
|
1187
|
-
interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1360
|
+
export interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1188
1361
|
colSpan?: number;
|
|
1189
1362
|
headers?: string;
|
|
1190
1363
|
rowSpan?: number;
|
|
1191
1364
|
}
|
|
1192
|
-
interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1365
|
+
export interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1193
1366
|
abbr?: string;
|
|
1194
1367
|
colSpan?: number;
|
|
1195
1368
|
headers?: string;
|
|
@@ -1197,10 +1370,10 @@ export declare namespace JSXBase {
|
|
|
1197
1370
|
rowspan?: number | string;
|
|
1198
1371
|
scope?: string;
|
|
1199
1372
|
}
|
|
1200
|
-
interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1373
|
+
export interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1201
1374
|
dateTime?: string;
|
|
1202
1375
|
}
|
|
1203
|
-
interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1376
|
+
export interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1204
1377
|
default?: boolean;
|
|
1205
1378
|
kind?: string;
|
|
1206
1379
|
label?: string;
|
|
@@ -1208,16 +1381,18 @@ export declare namespace JSXBase {
|
|
|
1208
1381
|
srcLang?: string;
|
|
1209
1382
|
srclang?: string;
|
|
1210
1383
|
}
|
|
1211
|
-
interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
1384
|
+
export interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
1212
1385
|
height?: number | string;
|
|
1213
1386
|
playsInline?: boolean;
|
|
1214
1387
|
playsinline?: boolean | string;
|
|
1215
1388
|
poster?: string;
|
|
1216
1389
|
width?: number | string;
|
|
1217
1390
|
}
|
|
1218
|
-
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1391
|
+
export interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1219
1392
|
innerHTML?: string;
|
|
1220
1393
|
accessKey?: string;
|
|
1394
|
+
autoFocus?: boolean;
|
|
1395
|
+
autofocus?: boolean | string;
|
|
1221
1396
|
class?: string | {
|
|
1222
1397
|
[className: string]: boolean;
|
|
1223
1398
|
};
|
|
@@ -1238,7 +1413,10 @@ export declare namespace JSXBase {
|
|
|
1238
1413
|
tabIndex?: number;
|
|
1239
1414
|
tabindex?: number | string;
|
|
1240
1415
|
title?: string;
|
|
1416
|
+
translate?: 'yes' | 'no' | (string & {});
|
|
1241
1417
|
popover?: string | null;
|
|
1418
|
+
focusgroup?: string;
|
|
1419
|
+
focusgroupstart?: boolean;
|
|
1242
1420
|
inputMode?: string;
|
|
1243
1421
|
inputmode?: string;
|
|
1244
1422
|
enterKeyHint?: string;
|
|
@@ -1276,7 +1454,7 @@ export declare namespace JSXBase {
|
|
|
1276
1454
|
security?: string;
|
|
1277
1455
|
unselectable?: boolean;
|
|
1278
1456
|
}
|
|
1279
|
-
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1457
|
+
export interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1280
1458
|
class?: string | {
|
|
1281
1459
|
[className: string]: boolean;
|
|
1282
1460
|
};
|
|
@@ -1537,7 +1715,20 @@ export declare namespace JSXBase {
|
|
|
1537
1715
|
z?: number | string;
|
|
1538
1716
|
zoomAndPan?: string;
|
|
1539
1717
|
}
|
|
1540
|
-
|
|
1718
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
|
|
1719
|
+
export interface ToggleEvent extends Event {
|
|
1720
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
|
|
1721
|
+
readonly newState: string;
|
|
1722
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
|
|
1723
|
+
readonly oldState: string;
|
|
1724
|
+
}
|
|
1725
|
+
type AriaIDLPropertyName = {
|
|
1726
|
+
[K in keyof ARIAMixin]: ARIAMixin[K] extends string | null ? K : never;
|
|
1727
|
+
}[keyof ARIAMixin];
|
|
1728
|
+
type JSXAriaProperties = {
|
|
1729
|
+
[K in AriaIDLPropertyName]?: string | boolean | undefined;
|
|
1730
|
+
};
|
|
1731
|
+
export interface DOMAttributes<T> extends JSXAttributes<T>, JSXAriaProperties {
|
|
1541
1732
|
slot?: string;
|
|
1542
1733
|
part?: string;
|
|
1543
1734
|
exportparts?: string;
|
|
@@ -1553,6 +1744,10 @@ export declare namespace JSXBase {
|
|
|
1553
1744
|
onCompositionstartCapture?: (event: CompositionEvent) => void;
|
|
1554
1745
|
onCompositionupdate?: (event: CompositionEvent) => void;
|
|
1555
1746
|
onCompositionupdateCapture?: (event: CompositionEvent) => void;
|
|
1747
|
+
onBeforeToggle?: (event: ToggleEvent) => void;
|
|
1748
|
+
onBeforeToggleCapture?: (event: ToggleEvent) => void;
|
|
1749
|
+
onToggle?: (event: ToggleEvent) => void;
|
|
1750
|
+
onToggleCapture?: (event: ToggleEvent) => void;
|
|
1556
1751
|
onFocus?: (event: FocusEvent) => void;
|
|
1557
1752
|
onFocusCapture?: (event: FocusEvent) => void;
|
|
1558
1753
|
onFocusin?: (event: FocusEvent) => void;
|
|
@@ -1582,7 +1777,7 @@ export declare namespace JSXBase {
|
|
|
1582
1777
|
onKeyUp?: (event: KeyboardEvent) => void;
|
|
1583
1778
|
onKeyUpCapture?: (event: KeyboardEvent) => void;
|
|
1584
1779
|
onAuxClick?: (event: MouseEvent) => void;
|
|
1585
|
-
onClick?: (event:
|
|
1780
|
+
onClick?: (event: PointerEvent) => void;
|
|
1586
1781
|
onClickCapture?: (event: MouseEvent) => void;
|
|
1587
1782
|
onContextMenu?: (event: MouseEvent) => void;
|
|
1588
1783
|
onContextMenuCapture?: (event: MouseEvent) => void;
|
|
@@ -1662,7 +1857,9 @@ export declare namespace JSXBase {
|
|
|
1662
1857
|
onTransitionRunCapture?: (event: TransitionEvent) => void;
|
|
1663
1858
|
onTransitionStart?: (event: TransitionEvent) => void;
|
|
1664
1859
|
onTransitionStartCapture?: (event: TransitionEvent) => void;
|
|
1860
|
+
[key: `aria-${string}`]: string | boolean | undefined;
|
|
1665
1861
|
}
|
|
1862
|
+
export {};
|
|
1666
1863
|
}
|
|
1667
1864
|
export interface JSXAttributes<T = Element> {
|
|
1668
1865
|
key?: string | number;
|
|
@@ -1672,6 +1869,7 @@ export interface CustomElementsDefineOptions {
|
|
|
1672
1869
|
exclude?: string[];
|
|
1673
1870
|
resourcesUrl?: string;
|
|
1674
1871
|
syncQueue?: boolean;
|
|
1872
|
+
/** @deprecated in-favour of `setTagTransformer` and `transformTag` */
|
|
1675
1873
|
transformTagName?: (tagName: string) => string;
|
|
1676
1874
|
jmp?: (c: Function) => any;
|
|
1677
1875
|
raf?: (c: FrameRequestCallback) => number;
|