@arcgis/lumina 5.0.0-next.7 → 5.0.0-next.70
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 +6 -6
- package/dist/controllers/Controller.d.ts +3 -3
- package/dist/controllers/ControllerInternals.d.ts +5 -5
- package/dist/controllers/ControllerManager.d.ts +3 -3
- package/dist/controllers/accessor/index.d.ts +4 -4
- package/dist/controllers/accessor/reEmitEvent.d.ts +1 -1
- package/dist/controllers/accessor/store.d.ts +1 -1
- package/dist/controllers/accessor/useAccessor.d.ts +3 -3
- package/dist/controllers/functional.d.ts +2 -2
- package/dist/controllers/index.d.ts +20 -20
- package/dist/controllers/index.js +6 -4
- package/dist/controllers/load.d.ts +1 -1
- package/dist/controllers/proxyExports.d.ts +2 -2
- package/dist/controllers/trackKey.d.ts +2 -2
- package/dist/controllers/trackPropKey.d.ts +1 -1
- package/dist/controllers/trackPropertyKey.d.ts +2 -2
- package/dist/controllers/types.d.ts +1 -1
- package/dist/controllers/useDirection.d.ts +1 -1
- package/dist/controllers/useMedia.d.ts +1 -1
- package/dist/controllers/usePropertyChange.d.ts +3 -3
- package/dist/controllers/useT9n.d.ts +1 -1
- package/dist/controllers/useWatchAttributes.d.ts +2 -2
- package/dist/controllers/utils.d.ts +2 -2
- package/dist/createEvent.d.ts +1 -1
- package/dist/decorators.d.ts +1 -1
- package/dist/devOnlyDetectIncorrectLazyUsages.d.ts +1 -1
- package/dist/index.d.ts +16 -16
- package/dist/index.js +1 -1
- package/dist/jsx/baseTypes.d.ts +4 -4
- package/dist/jsx/directives.d.ts +3 -3
- package/dist/jsx/generatedTypes.d.ts +817 -539
- package/dist/jsx/types.d.ts +2 -2
- package/dist/lazyLoad.d.ts +3 -3
- package/dist/lifecycleSupport.d.ts +1 -1
- package/dist/makeRuntime.d.ts +2 -2
- package/dist/render.d.ts +1 -1
- package/dist/runtime.d.ts +2 -2
- package/dist/typings/jsxGlobals.d.ts +1 -1
- package/dist/utils.d.ts +12 -7
- package/package.json +4 -3
package/dist/LitElement.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CSSResultGroup, CSSResultOrNative, PropertyValues, ReactiveController, LitElement as OriginalLitElement } from 'lit';
|
|
2
|
-
import { Runtime } from './makeRuntime';
|
|
3
|
-
import { ProxyComponent } from './lazyLoad';
|
|
4
|
-
import { ToElement } from './jsx/types';
|
|
5
|
-
import { BaseController, LuminaPropertyDeclaration } from './controllers/types';
|
|
6
|
-
import { ControllerManager } from './controllers/ControllerManager';
|
|
7
|
-
import { Controller } from './controllers/Controller';
|
|
2
|
+
import { Runtime } from './makeRuntime.ts';
|
|
3
|
+
import { ProxyComponent } from './lazyLoad.ts';
|
|
4
|
+
import { ToElement } from './jsx/types.ts';
|
|
5
|
+
import { BaseController, LuminaPropertyDeclaration } from './controllers/types.ts';
|
|
6
|
+
import { ControllerManager } from './controllers/ControllerManager.ts';
|
|
7
|
+
import { Controller } from './controllers/Controller.ts';
|
|
8
8
|
type ComponentLifecycle = {
|
|
9
9
|
connectedCallback?: () => void;
|
|
10
10
|
disconnectedCallback?: () => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Deferred } from '@arcgis/toolkit/promise';
|
|
2
|
-
import { BaseController, ControllerLifecycleMethods, controllerSymbol } from './types';
|
|
3
|
-
import { use, useRef, useRefSync } from './ControllerInternals';
|
|
2
|
+
import { BaseController, ControllerLifecycleMethods, controllerSymbol } from './types.ts';
|
|
3
|
+
import { use, useRef, useRefSync } from './ControllerInternals.ts';
|
|
4
4
|
import { PropertyValues } from 'lit';
|
|
5
|
-
import { LitElement } from '../LitElement';
|
|
5
|
+
import { LitElement } from '../LitElement.ts';
|
|
6
6
|
/**
|
|
7
7
|
* Base class for Controllers defined using a class rather than a function.
|
|
8
8
|
* Defining controller using makeController() function is more succinct for smaller
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Controller } from './Controller';
|
|
2
|
-
import { BaseController } from './types';
|
|
3
|
-
import { LitElement } from '../LitElement';
|
|
1
|
+
import { Controller } from './Controller.ts';
|
|
2
|
+
import { BaseController } from './types.ts';
|
|
3
|
+
import { LitElement } from '../LitElement.ts';
|
|
4
4
|
export declare const setAmbientComponent: (component: LitElement) => void;
|
|
5
5
|
export declare const retrieveComponent: (name?: string) => LitElement;
|
|
6
6
|
export declare const setParentController: (controller: BaseController | undefined) => void;
|
|
@@ -22,11 +22,11 @@ export declare let shouldBypassReadOnly: boolean;
|
|
|
22
22
|
/**
|
|
23
23
|
* Permits updating read-only properties
|
|
24
24
|
*
|
|
25
|
-
* @see https://
|
|
25
|
+
* @see https://webgis.esri.com/references/lumina/properties#read-only-properties
|
|
26
26
|
*/
|
|
27
27
|
export declare const bypassReadOnly: <T = void>(callback: () => T) => T | void;
|
|
28
28
|
/**
|
|
29
|
-
* @deprecated see https://
|
|
29
|
+
* @deprecated see https://webgis.esri.com/references/lumina/properties#get-set-properties
|
|
30
30
|
*/
|
|
31
31
|
export declare const bypassSetter: <T = void>(callback: () => T) => T | void;
|
|
32
32
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseController } from './types';
|
|
2
|
-
import { GenericController } from './Controller';
|
|
1
|
+
import { BaseController } from './types.ts';
|
|
2
|
+
import { GenericController } from './Controller.ts';
|
|
3
3
|
import { PropertyValues } from 'lit';
|
|
4
|
-
import { LitElement } from '../LitElement';
|
|
4
|
+
import { LitElement } from '../LitElement.ts';
|
|
5
5
|
/**
|
|
6
6
|
* A manager for all other controllers. It finds all controllers on the
|
|
7
7
|
* component, loads them, and forwards lifecycle events to them.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { reEmitEvent } from './reEmitEvent';
|
|
2
|
-
export { makeAccessorController, AccessorController, reCreateAccessor, makeBinderProxy, getAccessorControllerBoundProperties, } from './useAccessor';
|
|
3
|
-
export { createStore, createLegacyStore } from './store';
|
|
4
|
-
export type { ObservableMap } from './store';
|
|
1
|
+
export { reEmitEvent } from './reEmitEvent.ts';
|
|
2
|
+
export { makeAccessorController, AccessorController, reCreateAccessor, makeBinderProxy, getAccessorControllerBoundProperties, } from './useAccessor.ts';
|
|
3
|
+
export { createStore, createLegacyStore } from './store.ts';
|
|
4
|
+
export type { ObservableMap } from './store.ts';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as Accessor } from '@arcgis/core/core/Accessor.js';
|
|
2
2
|
/**
|
|
3
|
-
* See https://
|
|
3
|
+
* See https://webgis.esri.com/references/lumina/controllers/useAccessor#createstore-utility
|
|
4
4
|
*/
|
|
5
5
|
export declare const createStore: <T extends object>(initializer: T | (() => T)) => __esri.Accessor & T;
|
|
6
6
|
/** @deprecated Use {@link createStore} instead */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GenericController } from '../Controller';
|
|
2
|
-
import { LitElement } from '../../LitElement';
|
|
1
|
+
import { GenericController } from '../Controller.ts';
|
|
2
|
+
import { LitElement } from '../../LitElement.ts';
|
|
3
3
|
type Requires<Props, Accessor extends __esri.Accessor, OmitProps extends string = never> = LitElement & Omit<Pick<Accessor, keyof Accessor & keyof Props>, AlwaysOmit | OmitProps> & {
|
|
4
4
|
autoDestroyDisabled: boolean;
|
|
5
5
|
destroy: () => Promise<void>;
|
|
@@ -9,7 +9,7 @@ type AlwaysOmit = "addHandles" | "declaredClass" | "destroyed" | "hasHandles" |
|
|
|
9
9
|
* Given an Accessor class, create a controller that will do two-way binding of
|
|
10
10
|
* props between the component and the Accessor.
|
|
11
11
|
*
|
|
12
|
-
* See https://
|
|
12
|
+
* See https://webgis.esri.com/references/lumina/controllers/useAccessor for
|
|
13
13
|
* documentation & examples.
|
|
14
14
|
*/
|
|
15
15
|
export declare const makeAccessorController: <Props, Accessor extends __esri.Accessor, OmitProps extends string = never>(createInstance: ((props?: Props) => Accessor) | (new (props?: Props) => Accessor), _options?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from '../LitElement';
|
|
2
|
-
import { GenericControllerType, Controller } from './Controller';
|
|
1
|
+
import { LitElement } from '../LitElement.ts';
|
|
2
|
+
import { GenericControllerType, Controller } from './Controller.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Controller is a function that takes a component instance and then can
|
|
5
5
|
* export some values to the component, or hook into component's lifecycle
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { EventEmitter as _EventEmitter } from '../createEvent';
|
|
2
|
-
export type { GenericControllerType } from './Controller';
|
|
3
|
-
export { Controller, GenericController } from './Controller';
|
|
4
|
-
export type { ControllerManager } from './ControllerManager';
|
|
5
|
-
export { retrieveComponent, bypassSetter, bypassReadOnly } from './ControllerInternals';
|
|
6
|
-
export { trackPropertyKey, propertyTrackResolve } from './trackPropertyKey';
|
|
7
|
-
export { trackPropKey } from './trackPropKey';
|
|
8
|
-
export { trackKey } from './trackKey';
|
|
9
|
-
export { makeController, makeGenericController } from './functional';
|
|
10
|
-
export { useWatchAttributes } from './useWatchAttributes';
|
|
11
|
-
export { load } from './load';
|
|
12
|
-
export { proxyExports } from './proxyExports';
|
|
13
|
-
export { toFunction } from './toFunction';
|
|
14
|
-
export * from './types';
|
|
15
|
-
export { useMedia } from './useMedia';
|
|
16
|
-
export { useDirection } from './useDirection';
|
|
17
|
-
export type { UseT9n, T9nMeta } from './useT9n';
|
|
18
|
-
export { makeT9nController } from './useT9n';
|
|
19
|
-
export { usePropertyChange } from './usePropertyChange';
|
|
20
|
-
export { isController, getControllersCount } from './utils';
|
|
1
|
+
import { EventEmitter as _EventEmitter } from '../createEvent.ts';
|
|
2
|
+
export type { GenericControllerType } from './Controller.ts';
|
|
3
|
+
export { Controller, GenericController } from './Controller.ts';
|
|
4
|
+
export type { ControllerManager } from './ControllerManager.ts';
|
|
5
|
+
export { retrieveComponent, bypassSetter, bypassReadOnly } from './ControllerInternals.ts';
|
|
6
|
+
export { trackPropertyKey, propertyTrackResolve } from './trackPropertyKey.ts';
|
|
7
|
+
export { trackPropKey } from './trackPropKey.ts';
|
|
8
|
+
export { trackKey } from './trackKey.ts';
|
|
9
|
+
export { makeController, makeGenericController } from './functional.ts';
|
|
10
|
+
export { useWatchAttributes } from './useWatchAttributes.ts';
|
|
11
|
+
export { load } from './load.ts';
|
|
12
|
+
export { proxyExports } from './proxyExports.ts';
|
|
13
|
+
export { toFunction } from './toFunction.ts';
|
|
14
|
+
export * from './types.ts';
|
|
15
|
+
export { useMedia } from './useMedia.ts';
|
|
16
|
+
export { useDirection } from './useDirection.ts';
|
|
17
|
+
export type { UseT9n, T9nMeta } from './useT9n.ts';
|
|
18
|
+
export { makeT9nController } from './useT9n.ts';
|
|
19
|
+
export { usePropertyChange } from './usePropertyChange.ts';
|
|
20
|
+
export { isController, getControllersCount } from './utils.ts';
|
|
21
21
|
/**
|
|
22
22
|
* @deprecated import from "@arcgis/lumina" instead
|
|
23
23
|
*/
|
|
@@ -197,10 +197,12 @@ const deepMerge = (original, overwrites) => {
|
|
|
197
197
|
}
|
|
198
198
|
const merged = { ...original };
|
|
199
199
|
Object.entries(overwrites).forEach(([key, value]) => {
|
|
200
|
-
if (
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
if (original[key] !== void 0) {
|
|
201
|
+
if (typeof value === "object") {
|
|
202
|
+
merged[key] = deepMerge(original[key], value);
|
|
203
|
+
} else {
|
|
204
|
+
merged[key] = value ?? original[key];
|
|
205
|
+
}
|
|
204
206
|
}
|
|
205
207
|
});
|
|
206
208
|
return merged;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Load a value from a promise and provide it to the component
|
|
3
3
|
*
|
|
4
|
-
* Documentation: https://
|
|
4
|
+
* Documentation: https://webgis.esri.com/references/lumina/controllers/load
|
|
5
5
|
*/
|
|
6
6
|
export declare const load: <T>(loader: () => Promise<T>) => T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Controller } from './Controller';
|
|
2
|
-
import { ControllerLifecycleMethods } from './types';
|
|
1
|
+
import { Controller } from './Controller.ts';
|
|
2
|
+
import { ControllerLifecycleMethods } from './types.ts';
|
|
3
3
|
/**
|
|
4
4
|
* If you wish to directly expose the "exports" property of your controller,
|
|
5
5
|
* rather than the entire controller class, wrap your class definition in
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from '../LitElement';
|
|
2
|
-
import { BaseController, TrackKeyResolution } from './types';
|
|
1
|
+
import { LitElement } from '../LitElement.ts';
|
|
2
|
+
import { BaseController, TrackKeyResolution } from './types.ts';
|
|
3
3
|
/**
|
|
4
4
|
* A combination of trackPropertyKey() and trackPropKey(). For usage when
|
|
5
5
|
* you want to track a property, but don't know if it will be defined with the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from '../LitElement';
|
|
2
|
-
import { BaseController } from './types';
|
|
1
|
+
import { LitElement } from '../LitElement.ts';
|
|
2
|
+
import { BaseController } from './types.ts';
|
|
3
3
|
/**
|
|
4
4
|
* A magical solution to finding out what property name a given controller
|
|
5
5
|
* on a given object was assigned to.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IHandle } from '@arcgis/toolkit/type';
|
|
2
2
|
import { ReactiveControllerHost, ReactiveController, PropertyDeclaration, PropertyValues } from 'lit';
|
|
3
|
-
import { LitElement } from '../LitElement';
|
|
3
|
+
import { LitElement } from '../LitElement.ts';
|
|
4
4
|
export type TrackKeyResolution = {
|
|
5
5
|
readonly key: string;
|
|
6
6
|
readonly host: BaseController | LitElement;
|
|
@@ -3,7 +3,7 @@ type Direction = "ltr" | "rtl";
|
|
|
3
3
|
* Finds the closest "dir" attribute to current component and returns it's value.
|
|
4
4
|
* Watches for changes to "dir" and will re-render your component if needed.
|
|
5
5
|
*
|
|
6
|
-
* Documentation: https://
|
|
6
|
+
* Documentation: https://webgis.esri.com/references/lumina/controllers/useDirection
|
|
7
7
|
*
|
|
8
8
|
* Design decisions: https://devtopia.esri.com/WebGIS/arcgis-web-components/discussions/987
|
|
9
9
|
*/
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* whether user asked to use reduced motion, or whether the screen size is above
|
|
4
4
|
* certain threshold).
|
|
5
5
|
*
|
|
6
|
-
* Documentation: https://
|
|
6
|
+
* Documentation: https://webgis.esri.com/references/lumina/controllers/useMedia
|
|
7
7
|
*/
|
|
8
8
|
export declare const useMedia: (query: string) => boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { EventEmitter } from '../createEvent';
|
|
2
|
-
import { LitElement } from '../LitElement';
|
|
1
|
+
import { EventEmitter } from '../createEvent.ts';
|
|
2
|
+
import { LitElement } from '../LitElement.ts';
|
|
3
3
|
type PropertyChangeController<Component extends LitElement> = <ToWatch extends keyof Component>(...toWatch: ToWatch[]) => EventEmitter<{
|
|
4
4
|
name: ToWatch & string;
|
|
5
5
|
}>;
|
|
6
6
|
/**
|
|
7
7
|
* Let user easily set watchers for component properties.
|
|
8
8
|
*
|
|
9
|
-
* Documentation: https://
|
|
9
|
+
* Documentation: https://webgis.esri.com/references/lumina/controllers/usePropertyChange
|
|
10
10
|
*/
|
|
11
11
|
export declare const usePropertyChange: <Component extends LitElement>(
|
|
12
12
|
/** Needed for typings only */
|
|
@@ -38,7 +38,7 @@ export interface UseT9n {
|
|
|
38
38
|
/**
|
|
39
39
|
* Load component's localization strings.
|
|
40
40
|
*
|
|
41
|
-
* Documentation: https://
|
|
41
|
+
* Documentation: https://webgis.esri.com/references/lumina/controllers/useT9n
|
|
42
42
|
*
|
|
43
43
|
* Design decisions:
|
|
44
44
|
* - https://devtopia.esri.com/WebGIS/arcgis-web-components/discussions/969
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Controller } from './Controller';
|
|
1
|
+
import { Controller } from './Controller.ts';
|
|
2
2
|
/**
|
|
3
3
|
* Watch when given attributes change on the component element.
|
|
4
4
|
*
|
|
5
|
-
* Documentation: https://
|
|
5
|
+
* Documentation: https://webgis.esri.com/references/lumina/controllers/useWatchAttributes
|
|
6
6
|
*/
|
|
7
7
|
export declare const useWatchAttributes: <T extends string>(attributes: readonly T[], callback: (newValue: string | null, oldValue: string | null, attribute: T) => void) => Controller;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from '../LitElement';
|
|
2
|
-
import { ControllerLifecycleMethods } from './types';
|
|
1
|
+
import { LitElement } from '../LitElement.ts';
|
|
2
|
+
import { ControllerLifecycleMethods } from './types.ts';
|
|
3
3
|
export declare const isController: (value: unknown) => value is ControllerLifecycleMethods;
|
|
4
4
|
/**
|
|
5
5
|
* Checks if the argument is a promise by checking if it has a `then` method.
|
package/dist/createEvent.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export type EventOptions = {
|
|
|
32
32
|
*/
|
|
33
33
|
composed?: boolean;
|
|
34
34
|
};
|
|
35
|
-
export declare const createEventFactory: <T = void>(eventName?: string, options?: EventOptions, component?: import('./LitElement').LitElement) => EventEmitter<T>;
|
|
35
|
+
export declare const createEventFactory: <T = void>(eventName?: string, options?: EventOptions, component?: import('./LitElement.ts').LitElement) => EventEmitter<T>;
|
|
36
36
|
/**
|
|
37
37
|
* Creates an event emitter.
|
|
38
38
|
* Events emitted by your component will be included in the documentation.
|
package/dist/decorators.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export type { EventEmitter, EventOptions } from './createEvent';
|
|
2
|
-
export { createEvent } from './createEvent';
|
|
3
|
-
export { state, property, method } from './decorators';
|
|
4
|
-
export type { DefineCustomElements, LazyLoadOptions, GlobalThisWithPuppeteerEnv } from './lazyLoad';
|
|
5
|
-
export { makeDefineCustomElements } from './lazyLoad';
|
|
6
|
-
export { LitElement, disableReactiveUtilsIntegration } from './LitElement';
|
|
7
|
-
export type { PublicLitElement } from './PublicLitElement';
|
|
8
|
-
export type { Runtime, RuntimeOptions, DevOnlyGlobalRuntime, DevOnlyGlobalComponentRefCallback } from './makeRuntime';
|
|
9
|
-
export { makeRuntime } from './makeRuntime';
|
|
10
|
-
export type { EventHandler } from './jsx/baseTypes';
|
|
11
|
-
export * from './jsx/types';
|
|
12
|
-
export { safeClassMap, safeStyleMap, deferLoad, deferredLoaders, stabilizedRef, directive, live, } from './jsx/directives';
|
|
13
|
-
export { nothing, noChange, setAttribute, stringOrBoolean } from './jsx/utils';
|
|
14
|
-
export { noShadowRoot, devOnly$getLitElementTagNameAndRuntime } from './utils';
|
|
15
|
-
export { makeReactWrapperFactory, getReactWrapperOptions } from './wrappersUtils';
|
|
16
|
-
export { renderElement } from './render';
|
|
1
|
+
export type { EventEmitter, EventOptions } from './createEvent.ts';
|
|
2
|
+
export { createEvent } from './createEvent.ts';
|
|
3
|
+
export { state, property, method } from './decorators.ts';
|
|
4
|
+
export type { DefineCustomElements, LazyLoadOptions, GlobalThisWithPuppeteerEnv } from './lazyLoad.ts';
|
|
5
|
+
export { makeDefineCustomElements } from './lazyLoad.ts';
|
|
6
|
+
export { LitElement, disableReactiveUtilsIntegration } from './LitElement.ts';
|
|
7
|
+
export type { PublicLitElement } from './PublicLitElement.ts';
|
|
8
|
+
export type { Runtime, RuntimeOptions, DevOnlyGlobalRuntime, DevOnlyGlobalComponentRefCallback, } from './makeRuntime.ts';
|
|
9
|
+
export { makeRuntime } from './makeRuntime.ts';
|
|
10
|
+
export type { EventHandler } from './jsx/baseTypes.ts';
|
|
11
|
+
export * from './jsx/types.ts';
|
|
12
|
+
export { safeClassMap, safeStyleMap, deferLoad, deferredLoaders, stabilizedRef, directive, live, } from './jsx/directives.ts';
|
|
13
|
+
export { nothing, noChange, setAttribute, stringOrBoolean } from './jsx/utils.ts';
|
|
14
|
+
export { noShadowRoot, devOnly$getLitElementTagNameAndRuntime } from './utils.ts';
|
|
15
|
+
export { makeReactWrapperFactory, getReactWrapperOptions } from './wrappersUtils.ts';
|
|
16
|
+
export { renderElement } from './render.ts';
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { state } from "lit/decorators/state.js";
|
|
|
4
4
|
import { property as property$1 } from "lit/decorators/property.js";
|
|
5
5
|
import { e as emptyFunction, n as noShadowRoot, a as attachToAncestor } from "./lazyLoad-BlK67lvm.js";
|
|
6
6
|
import { d, m } from "./lazyLoad-BlK67lvm.js";
|
|
7
|
-
import {
|
|
7
|
+
import { safeCall, isEsriInternalEnv, safeAsyncCall } from "@arcgis/toolkit/error";
|
|
8
8
|
import { camelToKebab } from "@arcgis/toolkit/string";
|
|
9
9
|
import { devToolsAwareTimeout, Deferred } from "@arcgis/toolkit/promise";
|
|
10
10
|
import { nothing as nothing$1, LitElement as LitElement$1, isServer, notEqual, noChange as noChange$1, render } from "lit";
|
package/dist/jsx/baseTypes.d.ts
CHANGED
|
@@ -21,19 +21,19 @@ export type EventHandler<E> = {
|
|
|
21
21
|
}["bivarianceHack"];
|
|
22
22
|
export interface CustomAttributes<T = HTMLElement> {
|
|
23
23
|
/**
|
|
24
|
-
* [Documentation](https://
|
|
24
|
+
* [Documentation](https://webgis.esri.com/references/lumina/jsx#key-prop)
|
|
25
25
|
*/
|
|
26
26
|
key?: unknown;
|
|
27
27
|
/**
|
|
28
|
-
* [Documentation](https://
|
|
28
|
+
* [Documentation](https://webgis.esri.com/references/lumina/jsx#refs)
|
|
29
29
|
*/
|
|
30
30
|
ref?: EventHandler<T | undefined> | Ref<T>;
|
|
31
31
|
/**
|
|
32
|
-
* [Documentation](https://
|
|
32
|
+
* [Documentation](https://webgis.esri.com/references/lumina/jsx#lit-directives)
|
|
33
33
|
*/
|
|
34
34
|
directives?: readonly DirectiveResult[];
|
|
35
35
|
/**
|
|
36
|
-
* [Documentation](https://
|
|
36
|
+
* [Documentation](https://webgis.esri.com/references/lumina/jsx#deferring-web-component-load)
|
|
37
37
|
*/
|
|
38
38
|
deferLoad?: true;
|
|
39
39
|
}
|
package/dist/jsx/directives.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { ClassInfo, ClassMapDirective } from 'lit/directives/class-map.js';
|
|
|
4
4
|
import { DirectiveResult, DirectiveClass, ElementPart, PartInfo, Directive } from 'lit/directive.js';
|
|
5
5
|
import { StyleMapDirective } from 'lit/directives/style-map.js';
|
|
6
6
|
import { noChange } from 'lit';
|
|
7
|
-
import { CustomAttributes } from './baseTypes';
|
|
7
|
+
import { CustomAttributes } from './baseTypes.ts';
|
|
8
8
|
import { RefDirective } from 'lit/directives/ref.js';
|
|
9
9
|
/**
|
|
10
10
|
* You likely won't have to import this directly. It will be added during
|
|
@@ -63,13 +63,13 @@ declare class DeferLoad extends Directive {
|
|
|
63
63
|
/**
|
|
64
64
|
* @private
|
|
65
65
|
* Do not use this directive directly. Use the `deferLoad` JSX prop instead.
|
|
66
|
-
* [Documentation](https://
|
|
66
|
+
* [Documentation](https://webgis.esri.com/references/lumina/jsx#deferring-web-component-load)
|
|
67
67
|
*/
|
|
68
68
|
export declare const deferLoad: DirectiveResult<typeof DeferLoad>;
|
|
69
69
|
/**
|
|
70
70
|
* @private
|
|
71
71
|
* Do not use this directly. Use the `deferLoad` JSX prop instead.
|
|
72
|
-
* [Documentation](https://
|
|
72
|
+
* [Documentation](https://webgis.esri.com/references/lumina/jsx#deferring-web-component-load)
|
|
73
73
|
*/
|
|
74
74
|
export declare const deferredLoaders: Map<string, () => Promise<unknown>>;
|
|
75
75
|
declare class StabilizedRef extends Directive {
|