@arcgis/lumina 5.0.0-next.6 → 5.0.0-next.61
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/controllers/ControllerInternals.d.ts +2 -2
- package/dist/controllers/accessor/store.d.ts +1 -1
- package/dist/controllers/accessor/useAccessor.d.ts +1 -1
- package/dist/controllers/index.js +6 -4
- package/dist/controllers/load.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 +1 -1
- package/dist/controllers/useT9n.d.ts +1 -1
- package/dist/controllers/useWatchAttributes.d.ts +1 -1
- package/dist/jsx/baseTypes.d.ts +4 -4
- package/dist/jsx/directives.d.ts +2 -2
- package/dist/jsx/generatedTypes.d.ts +815 -537
- package/package.json +3 -3
|
@@ -22,11 +22,11 @@ export declare let shouldBypassReadOnly: boolean;
|
|
|
22
22
|
/**
|
|
23
23
|
* Permits updating read-only properties
|
|
24
24
|
*
|
|
25
|
-
* @see https://qawebgis.esri.com/
|
|
25
|
+
* @see https://qawebgis.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://qawebgis.esri.com/
|
|
29
|
+
* @deprecated see https://qawebgis.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,6 +1,6 @@
|
|
|
1
1
|
import { default as Accessor } from '@arcgis/core/core/Accessor.js';
|
|
2
2
|
/**
|
|
3
|
-
* See https://qawebgis.esri.com/
|
|
3
|
+
* See https://qawebgis.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 */
|
|
@@ -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://qawebgis.esri.com/
|
|
12
|
+
* See https://qawebgis.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?: {
|
|
@@ -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://qawebgis.esri.com/
|
|
4
|
+
* Documentation: https://qawebgis.esri.com/references/lumina/controllers/load
|
|
5
5
|
*/
|
|
6
6
|
export declare const load: <T>(loader: () => Promise<T>) => T;
|
|
@@ -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://qawebgis.esri.com/
|
|
6
|
+
* Documentation: https://qawebgis.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://qawebgis.esri.com/
|
|
6
|
+
* Documentation: https://qawebgis.esri.com/references/lumina/controllers/useMedia
|
|
7
7
|
*/
|
|
8
8
|
export declare const useMedia: (query: string) => boolean;
|
|
@@ -6,7 +6,7 @@ type PropertyChangeController<Component extends LitElement> = <ToWatch extends k
|
|
|
6
6
|
/**
|
|
7
7
|
* Let user easily set watchers for component properties.
|
|
8
8
|
*
|
|
9
|
-
* Documentation: https://qawebgis.esri.com/
|
|
9
|
+
* Documentation: https://qawebgis.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://qawebgis.esri.com/
|
|
41
|
+
* Documentation: https://qawebgis.esri.com/references/lumina/controllers/useT9n
|
|
42
42
|
*
|
|
43
43
|
* Design decisions:
|
|
44
44
|
* - https://devtopia.esri.com/WebGIS/arcgis-web-components/discussions/969
|
|
@@ -2,6 +2,6 @@ import { Controller } from './Controller';
|
|
|
2
2
|
/**
|
|
3
3
|
* Watch when given attributes change on the component element.
|
|
4
4
|
*
|
|
5
|
-
* Documentation: https://qawebgis.esri.com/
|
|
5
|
+
* Documentation: https://qawebgis.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;
|
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://qawebgis.esri.com/
|
|
24
|
+
* [Documentation](https://qawebgis.esri.com/references/lumina/jsx#key-prop)
|
|
25
25
|
*/
|
|
26
26
|
key?: unknown;
|
|
27
27
|
/**
|
|
28
|
-
* [Documentation](https://qawebgis.esri.com/
|
|
28
|
+
* [Documentation](https://qawebgis.esri.com/references/lumina/jsx#refs)
|
|
29
29
|
*/
|
|
30
30
|
ref?: EventHandler<T | undefined> | Ref<T>;
|
|
31
31
|
/**
|
|
32
|
-
* [Documentation](https://qawebgis.esri.com/
|
|
32
|
+
* [Documentation](https://qawebgis.esri.com/references/lumina/jsx#lit-directives)
|
|
33
33
|
*/
|
|
34
34
|
directives?: readonly DirectiveResult[];
|
|
35
35
|
/**
|
|
36
|
-
* [Documentation](https://qawebgis.esri.com/
|
|
36
|
+
* [Documentation](https://qawebgis.esri.com/references/lumina/jsx#deferring-web-component-load)
|
|
37
37
|
*/
|
|
38
38
|
deferLoad?: true;
|
|
39
39
|
}
|
package/dist/jsx/directives.d.ts
CHANGED
|
@@ -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://qawebgis.esri.com/
|
|
66
|
+
* [Documentation](https://qawebgis.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://qawebgis.esri.com/
|
|
72
|
+
* [Documentation](https://qawebgis.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 {
|