@arcgis/lumina 4.32.0-next.9 → 4.32.0-next.90
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/LitElement.d.ts +9 -1
- package/dist/PublicLitElement.d.ts +1 -0
- package/dist/chunk-6HCCSL5F.js +418 -0
- package/dist/{chunk-CH52Q2MB.js → chunk-PGHUBTOM.js} +0 -6
- package/dist/config.d.ts +0 -8
- package/dist/config.js +1 -7
- package/dist/context.d.ts +26 -0
- package/dist/createEvent.d.ts +5 -0
- package/dist/decorators.d.ts +1 -1
- package/dist/hmrSupport.d.ts +5 -0
- package/dist/hmrSupport.js +127 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +112 -529
- package/dist/jsx/baseTypes.d.ts +35 -0
- package/dist/jsx/directives.d.ts +4 -0
- package/dist/jsx/generatedTypes.d.ts +2300 -0
- package/dist/jsx/types.d.ts +421 -0
- package/dist/lazyLoad.d.ts +13 -2
- package/dist/runtime.d.ts +4 -0
- package/dist/stencilSsrCompatibility/index.d.ts +0 -1
- package/dist/typings/index.d.ts +4 -4
- package/dist/typings/jsxGlobals.d.ts +17 -19
- package/dist/wrappersUtils.d.ts +31 -7
- package/dist/wrappersUtils.test.d.ts +1 -0
- package/package.json +5 -3
- package/dist/jsx/jsx.d.ts +0 -2043
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { DirectiveResult } from "lit-html/directive.js";
|
|
2
|
+
import type { Ref } from "lit-html/directives/ref.js";
|
|
3
|
+
export type EventHandlerUnion<T, E extends Event> = (e: E & {
|
|
4
|
+
currentTarget: T;
|
|
5
|
+
target: Element;
|
|
6
|
+
}) => void;
|
|
7
|
+
export type InputEventHandlerUnion<T, E extends InputEvent> = (e: E & {
|
|
8
|
+
currentTarget: T;
|
|
9
|
+
target: T extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement ? T : Element;
|
|
10
|
+
}) => void;
|
|
11
|
+
export type ChangeEventHandlerUnion<T, E extends Event> = (e: E & {
|
|
12
|
+
currentTarget: T;
|
|
13
|
+
target: T extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement ? T : Element;
|
|
14
|
+
}) => void;
|
|
15
|
+
export type FocusEventHandlerUnion<T, E extends FocusEvent> = (e: E & {
|
|
16
|
+
currentTarget: T;
|
|
17
|
+
target: T extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement ? T : Element;
|
|
18
|
+
}) => void;
|
|
19
|
+
export type EventHandler<E> = {
|
|
20
|
+
bivarianceHack(event: E): void;
|
|
21
|
+
}["bivarianceHack"];
|
|
22
|
+
export interface CustomAttributes<T = HTMLElement> {
|
|
23
|
+
/**
|
|
24
|
+
* The `key` is a special attribute that can be set on any element.
|
|
25
|
+
*
|
|
26
|
+
* At build-time it is translated into the `keyed()` directive:
|
|
27
|
+
* https://lit.dev/docs/templates/directives/#keyed
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Unlike in React or Stencil, any JavaScript value is acceptable as a key
|
|
31
|
+
*/
|
|
32
|
+
key?: unknown;
|
|
33
|
+
ref?: EventHandler<T | undefined> | Ref<T>;
|
|
34
|
+
directives?: readonly DirectiveResult[];
|
|
35
|
+
}
|
package/dist/jsx/directives.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ import type { DirectiveClass } from "lit-html/directive.js";
|
|
|
26
26
|
* Instead, if the prop value is a object definition, variable reference,
|
|
27
27
|
* ternary expression or etc, the `safeClassMap` will be called, which will
|
|
28
28
|
* determine at runtime if directive should be called
|
|
29
|
+
*
|
|
30
|
+
* @private
|
|
29
31
|
*/
|
|
30
32
|
export declare const safeClassMap: (parameters: ClassInfo | Nil | string) => DirectiveResult<typeof ClassMapDirective> | Nil | string;
|
|
31
33
|
/**
|
|
@@ -49,6 +51,8 @@ export declare const safeClassMap: (parameters: ClassInfo | Nil | string) => Dir
|
|
|
49
51
|
* Instead, if the prop value is a object definition, variable reference,
|
|
50
52
|
* ternary expression or etc, the `safeStyleMap` will be called, which will
|
|
51
53
|
* determine at runtime if directive should be called
|
|
54
|
+
*
|
|
55
|
+
* @private
|
|
52
56
|
*/
|
|
53
57
|
export declare const safeStyleMap: (parameters: CssProperties | Nil | string) => DirectiveResult<typeof StyleMapDirective> | Nil | string;
|
|
54
58
|
/**
|