@arcgis/lumina 4.32.0-next.58 → 4.32.0-next.59
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 +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/jsx/baseTypes.d.ts +35 -0
- package/dist/jsx/generatedTypes.d.ts +2300 -0
- package/dist/jsx/types.d.ts +421 -0
- package/dist/typings/jsxGlobals.d.ts +1 -1
- package/package.json +3 -3
- package/dist/jsx/jsx.d.ts +0 -2096
package/dist/LitElement.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { LitElement as OriginalLitElement } from "lit";
|
|
|
3
3
|
import type { LuminaPropertyDeclaration } from "@arcgis/components-controllers";
|
|
4
4
|
import type { Runtime } from "./runtime";
|
|
5
5
|
import type { ProxyComponent } from "./lazyLoad";
|
|
6
|
-
import type { ToElement } from "./jsx/
|
|
6
|
+
import type { ToElement } from "./jsx/types";
|
|
7
7
|
type ComponentLifecycle = {
|
|
8
8
|
connectedCallback?: () => void;
|
|
9
9
|
disconnectedCallback?: () => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,8 @@ export { LitElement } from "./LitElement";
|
|
|
8
8
|
export type { PublicLitElement } from "./PublicLitElement";
|
|
9
9
|
export type { Runtime, RuntimeOptions, DevOnlyGlobalRuntime, DevOnlyGlobalComponentRefCallback } from "./runtime";
|
|
10
10
|
export { makeRuntime } from "./runtime";
|
|
11
|
-
export
|
|
11
|
+
export type { EventHandler } from "./jsx/baseTypes";
|
|
12
|
+
export * from "./jsx/types";
|
|
12
13
|
export { safeClassMap, safeStyleMap, directive, live } from "./jsx/directives";
|
|
13
14
|
export { nothing, noChange, setAttribute, stringOrBoolean } from "./jsx/utils";
|
|
14
15
|
export { noShadowRoot } from "./utils";
|
package/dist/index.js
CHANGED
|
@@ -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
|
+
}
|