dash-button-web 0.0.23-beta.6 → 0.0.24
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/dash-button.cjs.entry.js +4274 -0
- package/dist/cjs/dash-button.cjs.entry.js.map +1 -0
- package/dist/cjs/index-bc7ebbee.js +1817 -0
- package/dist/cjs/index-bc7ebbee.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +7 -5
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/web-compnont.cjs.js +15 -15
- package/dist/cjs/web-compnont.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +3 -13
- package/dist/collection/components/my-component/dash-button.css +224 -0
- package/dist/collection/components/my-component/dash-button.e2e.js +26 -0
- package/dist/collection/components/my-component/dash-button.e2e.js.map +1 -0
- package/dist/collection/components/my-component/dash-button.js +117 -162
- package/dist/collection/components/my-component/dash-button.js.map +1 -0
- package/dist/collection/components/my-component/dash-button.spec.js +35 -0
- package/dist/collection/components/my-component/dash-button.spec.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/services/config.js +5 -3
- package/dist/collection/services/config.js.map +1 -0
- package/dist/collection/services/menu.js +5 -3
- package/dist/collection/services/menu.js.map +1 -0
- package/dist/components/dash-button.js +4310 -1
- package/dist/components/dash-button.js.map +1 -0
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +3 -1
- package/dist/components/index.js.map +1 -0
- package/dist/esm/dash-button.entry.js +4270 -0
- package/dist/esm/dash-button.entry.js.map +1 -0
- package/dist/esm/index-51aa24d3.js +1790 -0
- package/dist/esm/index-51aa24d3.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +6 -6
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/web-compnont.js +14 -15
- package/dist/esm/web-compnont.js.map +1 -0
- package/dist/types/components/my-component/dash-button.d.ts +17 -9
- package/dist/types/components.d.ts +2 -83
- package/dist/types/stencil-public-runtime.d.ts +70 -268
- package/dist/web-compnont/index.esm.js +2 -0
- package/dist/web-compnont/index.esm.js.map +1 -0
- package/dist/web-compnont/p-06623215.js +3 -0
- package/dist/web-compnont/p-06623215.js.map +1 -0
- package/dist/web-compnont/p-55f91c48.entry.js +10 -0
- package/dist/web-compnont/p-55f91c48.entry.js.map +1 -0
- package/dist/web-compnont/web-compnont.esm.js +2 -1
- package/dist/web-compnont/web-compnont.esm.js.map +1 -0
- package/loader/cdn.js +3 -1
- package/loader/index.cjs.js +3 -1
- package/loader/index.d.ts +1 -4
- package/loader/index.es2017.js +3 -1
- package/loader/index.js +3 -1
- package/loader/package.json +11 -0
- package/package.json +2 -3
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
- package/dist/cjs/dash-button_4.cjs.entry.js +0 -10867
- package/dist/cjs/index-DcvBej9f.js +0 -1625
- package/dist/components/loading-component.js +0 -1
- package/dist/components/loading-component2.js +0 -1
- package/dist/components/notification-component.js +0 -1
- package/dist/components/notification-component2.js +0 -1
- package/dist/components/notification-table.js +0 -1
- package/dist/components/notification-table2.js +0 -2
- package/dist/esm/app-globals-DQuL1Twl.js +0 -3
- package/dist/esm/dash-button_4.entry.js +0 -10862
- package/dist/esm/index-p0GxQx6x.js +0 -1617
- package/dist/web-compnont/p-99f4c836.entry.js +0 -3
- package/dist/web-compnont/p-DQuL1Twl.js +0 -1
- package/dist/web-compnont/p-p0GxQx6x.js +0 -3
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
type CustomMethodDecorator<T> = (target:
|
|
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;
|
|
1
|
+
declare type CustomMethodDecorator<T> = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
|
|
4
2
|
export interface ComponentDecorator {
|
|
5
3
|
(opts?: ComponentOptions): ClassDecorator;
|
|
6
4
|
}
|
|
@@ -63,12 +61,6 @@ export interface ShadowRootOptions {
|
|
|
63
61
|
* focusable part is given focus, and the shadow host is given any available `:focus` styling.
|
|
64
62
|
*/
|
|
65
63
|
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';
|
|
72
64
|
}
|
|
73
65
|
export interface ModeStyles {
|
|
74
66
|
[modeName: string]: string | string[];
|
|
@@ -125,34 +117,12 @@ export interface EventOptions {
|
|
|
125
117
|
*/
|
|
126
118
|
composed?: boolean;
|
|
127
119
|
}
|
|
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
|
-
}
|
|
147
120
|
export interface AttachInternalsDecorator {
|
|
148
|
-
(
|
|
121
|
+
(): PropertyDecorator;
|
|
149
122
|
}
|
|
150
123
|
export interface ListenDecorator {
|
|
151
124
|
(eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
|
|
152
125
|
}
|
|
153
|
-
export interface ResolveVarFunction {
|
|
154
|
-
<T>(variable: T): string;
|
|
155
|
-
}
|
|
156
126
|
export interface ListenOptions {
|
|
157
127
|
/**
|
|
158
128
|
* Handlers can also be registered for an event other than the host itself.
|
|
@@ -181,15 +151,7 @@ export interface StateDecorator {
|
|
|
181
151
|
(): PropertyDecorator;
|
|
182
152
|
}
|
|
183
153
|
export interface WatchDecorator {
|
|
184
|
-
(propName: any
|
|
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>;
|
|
154
|
+
(propName: string): CustomMethodDecorator<any>;
|
|
193
155
|
}
|
|
194
156
|
export interface UserBuildConditionals {
|
|
195
157
|
isDev: boolean;
|
|
@@ -238,24 +200,6 @@ export declare const AttachInternals: AttachInternalsDecorator;
|
|
|
238
200
|
* https://stenciljs.com/docs/events#listen-decorator
|
|
239
201
|
*/
|
|
240
202
|
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;
|
|
259
203
|
/**
|
|
260
204
|
* The `@Method()` decorator is used to expose methods on the public API.
|
|
261
205
|
* Class methods decorated with the @Method() decorator can be called directly
|
|
@@ -289,14 +233,6 @@ export declare const State: StateDecorator;
|
|
|
289
233
|
* https://stenciljs.com/docs/reactive-data#watch-decorator
|
|
290
234
|
*/
|
|
291
235
|
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;
|
|
300
236
|
export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
|
|
301
237
|
export type ErrorHandler = (err: any, element?: HTMLElement) => void;
|
|
302
238
|
/**
|
|
@@ -324,25 +260,6 @@ export declare function setPlatformHelpers(helpers: {
|
|
|
324
260
|
* @returns the base path
|
|
325
261
|
*/
|
|
326
262
|
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;
|
|
346
263
|
/**
|
|
347
264
|
* Used to manually set the base path where assets can be found. For lazy-loaded
|
|
348
265
|
* builds the asset path is automatically set and assets copied to the correct
|
|
@@ -413,58 +330,6 @@ export declare function readTask(task: RafCallback): void;
|
|
|
413
330
|
* Unhandled exception raised while rendering, during event handling, or lifecycles will trigger the custom event handler.
|
|
414
331
|
*/
|
|
415
332
|
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]>>;
|
|
468
333
|
/**
|
|
469
334
|
* This file gets copied to all distributions of stencil component collections.
|
|
470
335
|
* - no imports
|
|
@@ -637,7 +502,7 @@ export interface FunctionalUtilities {
|
|
|
637
502
|
map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
|
|
638
503
|
}
|
|
639
504
|
export interface FunctionalComponent<T = {}> {
|
|
640
|
-
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[]
|
|
505
|
+
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
|
|
641
506
|
}
|
|
642
507
|
/**
|
|
643
508
|
* A Child VDOM node
|
|
@@ -679,7 +544,6 @@ export declare namespace h {
|
|
|
679
544
|
function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
680
545
|
function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
681
546
|
function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
682
|
-
function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
|
|
683
547
|
namespace JSX {
|
|
684
548
|
interface IntrinsicElements extends LocalJSX.IntrinsicElements, JSXBase.IntrinsicElements {
|
|
685
549
|
[tagName: string]: any;
|
|
@@ -694,36 +558,6 @@ export declare function h(sel: any, children: Array<VNode | undefined | null>):
|
|
|
694
558
|
export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
695
559
|
export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
696
560
|
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;
|
|
727
561
|
/**
|
|
728
562
|
* A virtual DOM node
|
|
729
563
|
*/
|
|
@@ -752,8 +586,8 @@ declare namespace LocalJSX {
|
|
|
752
586
|
}
|
|
753
587
|
export { LocalJSX as JSX };
|
|
754
588
|
export declare namespace JSXBase {
|
|
755
|
-
|
|
756
|
-
slot: JSXBase.SlotAttributes
|
|
589
|
+
interface IntrinsicElements {
|
|
590
|
+
slot: JSXBase.SlotAttributes;
|
|
757
591
|
a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
758
592
|
abbr: JSXBase.HTMLAttributes;
|
|
759
593
|
address: JSXBase.HTMLAttributes;
|
|
@@ -923,25 +757,24 @@ export declare namespace JSXBase {
|
|
|
923
757
|
use: JSXBase.SVGAttributes;
|
|
924
758
|
view: JSXBase.SVGAttributes;
|
|
925
759
|
}
|
|
926
|
-
|
|
760
|
+
interface SlotAttributes extends JSXAttributes {
|
|
927
761
|
name?: string;
|
|
928
762
|
slot?: string;
|
|
929
763
|
onSlotchange?: (event: Event) => void;
|
|
930
764
|
}
|
|
931
|
-
|
|
765
|
+
interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
932
766
|
download?: any;
|
|
933
767
|
href?: string;
|
|
934
768
|
hrefLang?: string;
|
|
935
769
|
hreflang?: string;
|
|
936
770
|
media?: string;
|
|
937
|
-
ping?: string;
|
|
938
771
|
rel?: string;
|
|
939
772
|
target?: string;
|
|
940
773
|
referrerPolicy?: ReferrerPolicy;
|
|
941
774
|
}
|
|
942
|
-
|
|
775
|
+
interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
943
776
|
}
|
|
944
|
-
|
|
777
|
+
interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
945
778
|
alt?: string;
|
|
946
779
|
coords?: string;
|
|
947
780
|
download?: any;
|
|
@@ -953,14 +786,15 @@ export declare namespace JSXBase {
|
|
|
953
786
|
shape?: string;
|
|
954
787
|
target?: string;
|
|
955
788
|
}
|
|
956
|
-
|
|
789
|
+
interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
957
790
|
href?: string;
|
|
958
791
|
target?: string;
|
|
959
792
|
}
|
|
960
|
-
|
|
793
|
+
interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
961
794
|
cite?: string;
|
|
962
795
|
}
|
|
963
|
-
|
|
796
|
+
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
797
|
+
autoFocus?: boolean;
|
|
964
798
|
disabled?: boolean;
|
|
965
799
|
form?: string;
|
|
966
800
|
formAction?: string;
|
|
@@ -979,49 +813,44 @@ export declare namespace JSXBase {
|
|
|
979
813
|
popoverTargetAction?: string;
|
|
980
814
|
popoverTargetElement?: Element | null;
|
|
981
815
|
popoverTarget?: string;
|
|
982
|
-
command?: string;
|
|
983
|
-
commandFor?: string;
|
|
984
|
-
commandfor?: string;
|
|
985
816
|
}
|
|
986
|
-
|
|
817
|
+
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
987
818
|
height?: number | string;
|
|
988
819
|
width?: number | string;
|
|
989
820
|
}
|
|
990
|
-
|
|
821
|
+
interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
991
822
|
span?: number;
|
|
992
823
|
}
|
|
993
|
-
|
|
824
|
+
interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
994
825
|
span?: number;
|
|
995
826
|
}
|
|
996
|
-
|
|
827
|
+
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
997
828
|
open?: boolean;
|
|
998
|
-
|
|
999
|
-
onToggle?: (event: ToggleEvent) => void;
|
|
829
|
+
onToggle?: (event: Event) => void;
|
|
1000
830
|
}
|
|
1001
|
-
|
|
831
|
+
interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1002
832
|
cite?: string;
|
|
1003
833
|
dateTime?: string;
|
|
1004
834
|
datetime?: string;
|
|
1005
835
|
}
|
|
1006
|
-
|
|
836
|
+
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1007
837
|
onCancel?: (event: Event) => void;
|
|
1008
838
|
onClose?: (event: Event) => void;
|
|
1009
839
|
open?: boolean;
|
|
1010
840
|
returnValue?: string;
|
|
1011
|
-
closedby?: 'any' | 'closerequest' | 'none';
|
|
1012
841
|
}
|
|
1013
|
-
|
|
842
|
+
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1014
843
|
height?: number | string;
|
|
1015
844
|
src?: string;
|
|
1016
845
|
type?: string;
|
|
1017
846
|
width?: number | string;
|
|
1018
847
|
}
|
|
1019
|
-
|
|
848
|
+
interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1020
849
|
disabled?: boolean;
|
|
1021
850
|
form?: string;
|
|
1022
851
|
name?: string;
|
|
1023
852
|
}
|
|
1024
|
-
|
|
853
|
+
interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1025
854
|
acceptCharset?: string;
|
|
1026
855
|
acceptcharset?: string;
|
|
1027
856
|
action?: string;
|
|
@@ -1035,10 +864,10 @@ export declare namespace JSXBase {
|
|
|
1035
864
|
novalidate?: boolean | string;
|
|
1036
865
|
target?: string;
|
|
1037
866
|
}
|
|
1038
|
-
|
|
867
|
+
interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1039
868
|
manifest?: string;
|
|
1040
869
|
}
|
|
1041
|
-
|
|
870
|
+
interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1042
871
|
allow?: string;
|
|
1043
872
|
allowFullScreen?: boolean;
|
|
1044
873
|
allowfullScreen?: string | boolean;
|
|
@@ -1046,8 +875,6 @@ export declare namespace JSXBase {
|
|
|
1046
875
|
allowtransparency?: string | boolean;
|
|
1047
876
|
frameBorder?: number | string;
|
|
1048
877
|
frameborder?: number | string;
|
|
1049
|
-
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1050
|
-
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1051
878
|
importance?: 'low' | 'auto' | 'high';
|
|
1052
879
|
height?: number | string;
|
|
1053
880
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -1065,17 +892,14 @@ export declare namespace JSXBase {
|
|
|
1065
892
|
srcdoc?: string;
|
|
1066
893
|
width?: number | string;
|
|
1067
894
|
}
|
|
1068
|
-
|
|
895
|
+
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1069
896
|
alt?: string;
|
|
1070
897
|
crossOrigin?: string;
|
|
1071
898
|
crossorigin?: string;
|
|
1072
899
|
decoding?: 'async' | 'auto' | 'sync';
|
|
1073
|
-
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1074
|
-
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1075
900
|
importance?: 'low' | 'auto' | 'high';
|
|
1076
901
|
height?: number | string;
|
|
1077
902
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
1078
|
-
referrerPolicy?: ReferrerPolicy;
|
|
1079
903
|
sizes?: string;
|
|
1080
904
|
src?: string;
|
|
1081
905
|
srcSet?: string;
|
|
@@ -1084,12 +908,12 @@ export declare namespace JSXBase {
|
|
|
1084
908
|
usemap?: string;
|
|
1085
909
|
width?: number | string;
|
|
1086
910
|
}
|
|
1087
|
-
|
|
911
|
+
interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1088
912
|
cite?: string;
|
|
1089
913
|
dateTime?: string;
|
|
1090
914
|
datetime?: string;
|
|
1091
915
|
}
|
|
1092
|
-
|
|
916
|
+
interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1093
917
|
accept?: string;
|
|
1094
918
|
allowdirs?: boolean;
|
|
1095
919
|
alt?: string;
|
|
@@ -1097,6 +921,8 @@ export declare namespace JSXBase {
|
|
|
1097
921
|
autocapitalize?: string;
|
|
1098
922
|
autoComplete?: string;
|
|
1099
923
|
autocomplete?: string;
|
|
924
|
+
autoFocus?: boolean;
|
|
925
|
+
autofocus?: boolean | string;
|
|
1100
926
|
capture?: string;
|
|
1101
927
|
checked?: boolean;
|
|
1102
928
|
crossOrigin?: string;
|
|
@@ -1152,7 +978,9 @@ export declare namespace JSXBase {
|
|
|
1152
978
|
popoverTargetElement?: Element | null;
|
|
1153
979
|
popoverTarget?: string;
|
|
1154
980
|
}
|
|
1155
|
-
|
|
981
|
+
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
982
|
+
autoFocus?: boolean;
|
|
983
|
+
autofocus?: boolean | string;
|
|
1156
984
|
challenge?: string;
|
|
1157
985
|
disabled?: boolean;
|
|
1158
986
|
form?: string;
|
|
@@ -1162,17 +990,16 @@ export declare namespace JSXBase {
|
|
|
1162
990
|
keyparams?: string;
|
|
1163
991
|
name?: string;
|
|
1164
992
|
}
|
|
1165
|
-
|
|
993
|
+
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1166
994
|
form?: string;
|
|
1167
995
|
htmlFor?: string;
|
|
996
|
+
htmlfor?: string;
|
|
1168
997
|
}
|
|
1169
|
-
|
|
998
|
+
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1170
999
|
value?: string | string[] | number;
|
|
1171
1000
|
}
|
|
1172
|
-
|
|
1001
|
+
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1173
1002
|
as?: string;
|
|
1174
|
-
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1175
|
-
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1176
1003
|
href?: string;
|
|
1177
1004
|
hrefLang?: string;
|
|
1178
1005
|
hreflang?: string;
|
|
@@ -1183,18 +1010,16 @@ export declare namespace JSXBase {
|
|
|
1183
1010
|
sizes?: string;
|
|
1184
1011
|
type?: string;
|
|
1185
1012
|
}
|
|
1186
|
-
|
|
1013
|
+
interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1187
1014
|
name?: string;
|
|
1188
1015
|
}
|
|
1189
|
-
|
|
1016
|
+
interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1190
1017
|
type?: string;
|
|
1191
1018
|
}
|
|
1192
|
-
|
|
1019
|
+
interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1193
1020
|
autoPlay?: boolean;
|
|
1194
1021
|
autoplay?: boolean | string;
|
|
1195
1022
|
controls?: boolean;
|
|
1196
|
-
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1197
|
-
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1198
1023
|
crossOrigin?: string;
|
|
1199
1024
|
crossorigin?: string;
|
|
1200
1025
|
loop?: boolean;
|
|
@@ -1229,7 +1054,7 @@ export declare namespace JSXBase {
|
|
|
1229
1054
|
onVolumeChange?: (event: Event) => void;
|
|
1230
1055
|
onWaiting?: (event: Event) => void;
|
|
1231
1056
|
}
|
|
1232
|
-
|
|
1057
|
+
interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1233
1058
|
charSet?: string;
|
|
1234
1059
|
charset?: string;
|
|
1235
1060
|
content?: string;
|
|
@@ -1237,7 +1062,7 @@ export declare namespace JSXBase {
|
|
|
1237
1062
|
httpequiv?: string;
|
|
1238
1063
|
name?: string;
|
|
1239
1064
|
}
|
|
1240
|
-
|
|
1065
|
+
interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1241
1066
|
form?: string;
|
|
1242
1067
|
high?: number;
|
|
1243
1068
|
low?: number;
|
|
@@ -1246,10 +1071,10 @@ export declare namespace JSXBase {
|
|
|
1246
1071
|
optimum?: number;
|
|
1247
1072
|
value?: string | string[] | number;
|
|
1248
1073
|
}
|
|
1249
|
-
|
|
1074
|
+
interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1250
1075
|
cite?: string;
|
|
1251
1076
|
}
|
|
1252
|
-
|
|
1077
|
+
interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1253
1078
|
classID?: string;
|
|
1254
1079
|
classid?: string;
|
|
1255
1080
|
data?: string;
|
|
@@ -1262,49 +1087,49 @@ export declare namespace JSXBase {
|
|
|
1262
1087
|
width?: number | string;
|
|
1263
1088
|
wmode?: string;
|
|
1264
1089
|
}
|
|
1265
|
-
|
|
1090
|
+
interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1266
1091
|
reversed?: boolean;
|
|
1267
1092
|
start?: number;
|
|
1268
1093
|
}
|
|
1269
|
-
|
|
1094
|
+
interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1270
1095
|
disabled?: boolean;
|
|
1271
1096
|
label?: string;
|
|
1272
1097
|
}
|
|
1273
|
-
|
|
1098
|
+
interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1274
1099
|
disabled?: boolean;
|
|
1275
1100
|
label?: string;
|
|
1276
1101
|
selected?: boolean;
|
|
1277
1102
|
value?: string | string[] | number;
|
|
1278
1103
|
}
|
|
1279
|
-
|
|
1104
|
+
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1280
1105
|
form?: string;
|
|
1281
1106
|
htmlFor?: string;
|
|
1107
|
+
htmlfor?: string;
|
|
1282
1108
|
name?: string;
|
|
1283
1109
|
}
|
|
1284
|
-
|
|
1110
|
+
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1285
1111
|
name?: string;
|
|
1286
1112
|
value?: string | string[] | number;
|
|
1287
1113
|
}
|
|
1288
|
-
|
|
1114
|
+
interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1289
1115
|
max?: number | string;
|
|
1290
1116
|
value?: string | string[] | number;
|
|
1291
1117
|
}
|
|
1292
|
-
|
|
1118
|
+
interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1293
1119
|
async?: boolean;
|
|
1294
1120
|
charSet?: string;
|
|
1295
1121
|
charset?: string;
|
|
1296
1122
|
crossOrigin?: string;
|
|
1297
1123
|
crossorigin?: string;
|
|
1298
1124
|
defer?: boolean;
|
|
1299
|
-
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1300
|
-
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1301
1125
|
importance?: 'low' | 'auto' | 'high';
|
|
1302
1126
|
integrity?: string;
|
|
1303
1127
|
nonce?: string;
|
|
1304
1128
|
src?: string;
|
|
1305
1129
|
type?: string;
|
|
1306
1130
|
}
|
|
1307
|
-
|
|
1131
|
+
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1132
|
+
autoFocus?: boolean;
|
|
1308
1133
|
disabled?: boolean;
|
|
1309
1134
|
form?: string;
|
|
1310
1135
|
multiple?: boolean;
|
|
@@ -1314,7 +1139,7 @@ export declare namespace JSXBase {
|
|
|
1314
1139
|
autoComplete?: string;
|
|
1315
1140
|
autocomplete?: string;
|
|
1316
1141
|
}
|
|
1317
|
-
|
|
1142
|
+
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1318
1143
|
height?: number;
|
|
1319
1144
|
media?: string;
|
|
1320
1145
|
sizes?: string;
|
|
@@ -1323,22 +1148,24 @@ export declare namespace JSXBase {
|
|
|
1323
1148
|
type?: string;
|
|
1324
1149
|
width?: number;
|
|
1325
1150
|
}
|
|
1326
|
-
|
|
1151
|
+
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1327
1152
|
media?: string;
|
|
1328
1153
|
nonce?: string;
|
|
1329
1154
|
scoped?: boolean;
|
|
1330
1155
|
type?: string;
|
|
1331
1156
|
}
|
|
1332
|
-
|
|
1157
|
+
interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1333
1158
|
cellPadding?: number | string;
|
|
1334
1159
|
cellpadding?: number | string;
|
|
1335
1160
|
cellSpacing?: number | string;
|
|
1336
1161
|
cellspacing?: number | string;
|
|
1337
1162
|
summary?: string;
|
|
1338
1163
|
}
|
|
1339
|
-
|
|
1164
|
+
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1340
1165
|
autoComplete?: string;
|
|
1341
1166
|
autocomplete?: string;
|
|
1167
|
+
autoFocus?: boolean;
|
|
1168
|
+
autofocus?: boolean | string;
|
|
1342
1169
|
cols?: number;
|
|
1343
1170
|
disabled?: boolean;
|
|
1344
1171
|
form?: string;
|
|
@@ -1357,12 +1184,12 @@ export declare namespace JSXBase {
|
|
|
1357
1184
|
value?: string | string[] | number;
|
|
1358
1185
|
wrap?: string;
|
|
1359
1186
|
}
|
|
1360
|
-
|
|
1187
|
+
interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1361
1188
|
colSpan?: number;
|
|
1362
1189
|
headers?: string;
|
|
1363
1190
|
rowSpan?: number;
|
|
1364
1191
|
}
|
|
1365
|
-
|
|
1192
|
+
interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1366
1193
|
abbr?: string;
|
|
1367
1194
|
colSpan?: number;
|
|
1368
1195
|
headers?: string;
|
|
@@ -1370,10 +1197,10 @@ export declare namespace JSXBase {
|
|
|
1370
1197
|
rowspan?: number | string;
|
|
1371
1198
|
scope?: string;
|
|
1372
1199
|
}
|
|
1373
|
-
|
|
1200
|
+
interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1374
1201
|
dateTime?: string;
|
|
1375
1202
|
}
|
|
1376
|
-
|
|
1203
|
+
interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1377
1204
|
default?: boolean;
|
|
1378
1205
|
kind?: string;
|
|
1379
1206
|
label?: string;
|
|
@@ -1381,18 +1208,16 @@ export declare namespace JSXBase {
|
|
|
1381
1208
|
srcLang?: string;
|
|
1382
1209
|
srclang?: string;
|
|
1383
1210
|
}
|
|
1384
|
-
|
|
1211
|
+
interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
1385
1212
|
height?: number | string;
|
|
1386
1213
|
playsInline?: boolean;
|
|
1387
1214
|
playsinline?: boolean | string;
|
|
1388
1215
|
poster?: string;
|
|
1389
1216
|
width?: number | string;
|
|
1390
1217
|
}
|
|
1391
|
-
|
|
1218
|
+
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1392
1219
|
innerHTML?: string;
|
|
1393
1220
|
accessKey?: string;
|
|
1394
|
-
autoFocus?: boolean;
|
|
1395
|
-
autofocus?: boolean | string;
|
|
1396
1221
|
class?: string | {
|
|
1397
1222
|
[className: string]: boolean;
|
|
1398
1223
|
};
|
|
@@ -1413,10 +1238,7 @@ export declare namespace JSXBase {
|
|
|
1413
1238
|
tabIndex?: number;
|
|
1414
1239
|
tabindex?: number | string;
|
|
1415
1240
|
title?: string;
|
|
1416
|
-
translate?: 'yes' | 'no' | (string & {});
|
|
1417
1241
|
popover?: string | null;
|
|
1418
|
-
focusgroup?: string;
|
|
1419
|
-
focusgroupstart?: boolean;
|
|
1420
1242
|
inputMode?: string;
|
|
1421
1243
|
inputmode?: string;
|
|
1422
1244
|
enterKeyHint?: string;
|
|
@@ -1454,7 +1276,7 @@ export declare namespace JSXBase {
|
|
|
1454
1276
|
security?: string;
|
|
1455
1277
|
unselectable?: boolean;
|
|
1456
1278
|
}
|
|
1457
|
-
|
|
1279
|
+
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1458
1280
|
class?: string | {
|
|
1459
1281
|
[className: string]: boolean;
|
|
1460
1282
|
};
|
|
@@ -1715,20 +1537,7 @@ export declare namespace JSXBase {
|
|
|
1715
1537
|
z?: number | string;
|
|
1716
1538
|
zoomAndPan?: string;
|
|
1717
1539
|
}
|
|
1718
|
-
|
|
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 {
|
|
1540
|
+
interface DOMAttributes<T> extends JSXAttributes<T> {
|
|
1732
1541
|
slot?: string;
|
|
1733
1542
|
part?: string;
|
|
1734
1543
|
exportparts?: string;
|
|
@@ -1744,10 +1553,6 @@ export declare namespace JSXBase {
|
|
|
1744
1553
|
onCompositionstartCapture?: (event: CompositionEvent) => void;
|
|
1745
1554
|
onCompositionupdate?: (event: CompositionEvent) => void;
|
|
1746
1555
|
onCompositionupdateCapture?: (event: CompositionEvent) => void;
|
|
1747
|
-
onBeforeToggle?: (event: ToggleEvent) => void;
|
|
1748
|
-
onBeforeToggleCapture?: (event: ToggleEvent) => void;
|
|
1749
|
-
onToggle?: (event: ToggleEvent) => void;
|
|
1750
|
-
onToggleCapture?: (event: ToggleEvent) => void;
|
|
1751
1556
|
onFocus?: (event: FocusEvent) => void;
|
|
1752
1557
|
onFocusCapture?: (event: FocusEvent) => void;
|
|
1753
1558
|
onFocusin?: (event: FocusEvent) => void;
|
|
@@ -1777,7 +1582,7 @@ export declare namespace JSXBase {
|
|
|
1777
1582
|
onKeyUp?: (event: KeyboardEvent) => void;
|
|
1778
1583
|
onKeyUpCapture?: (event: KeyboardEvent) => void;
|
|
1779
1584
|
onAuxClick?: (event: MouseEvent) => void;
|
|
1780
|
-
onClick?: (event:
|
|
1585
|
+
onClick?: (event: MouseEvent) => void;
|
|
1781
1586
|
onClickCapture?: (event: MouseEvent) => void;
|
|
1782
1587
|
onContextMenu?: (event: MouseEvent) => void;
|
|
1783
1588
|
onContextMenuCapture?: (event: MouseEvent) => void;
|
|
@@ -1857,9 +1662,7 @@ export declare namespace JSXBase {
|
|
|
1857
1662
|
onTransitionRunCapture?: (event: TransitionEvent) => void;
|
|
1858
1663
|
onTransitionStart?: (event: TransitionEvent) => void;
|
|
1859
1664
|
onTransitionStartCapture?: (event: TransitionEvent) => void;
|
|
1860
|
-
[key: `aria-${string}`]: string | boolean | undefined;
|
|
1861
1665
|
}
|
|
1862
|
-
export {};
|
|
1863
1666
|
}
|
|
1864
1667
|
export interface JSXAttributes<T = Element> {
|
|
1865
1668
|
key?: string | number;
|
|
@@ -1869,7 +1672,6 @@ export interface CustomElementsDefineOptions {
|
|
|
1869
1672
|
exclude?: string[];
|
|
1870
1673
|
resourcesUrl?: string;
|
|
1871
1674
|
syncQueue?: boolean;
|
|
1872
|
-
/** @deprecated in-favour of `setTagTransformer` and `transformTag` */
|
|
1873
1675
|
transformTagName?: (tagName: string) => string;
|
|
1874
1676
|
jmp?: (c: Function) => any;
|
|
1875
1677
|
raf?: (c: FrameRequestCallback) => number;
|