@arcgis/lumina 4.32.0-next.9 → 4.32.0-next.91

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.
@@ -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
+ }
@@ -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
  /**