@arcgis/lumina 4.34.0-next.60 → 4.34.0-next.62
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/{Controller-6vd9TSNE.js → Controller-ik0igmGm.js} +3 -2
- package/dist/{ControllerInternals-DOZNgCJl.js → ControllerInternals-CWQrfEA8.js} +8 -9
- package/dist/context.js +1 -1
- package/dist/controllers/Controller.d.ts +1 -1
- package/dist/controllers/accessor/index.js +4 -4
- package/dist/controllers/index.js +9 -7
- package/dist/controllers/types.d.ts +1 -1
- package/dist/controllers/useT9n.d.ts +3 -3
- package/dist/hmrSupport.js +2 -2
- package/dist/index.js +8 -6
- package/dist/jsx/directives.d.ts +3 -3
- package/dist/{lazyLoad-DUvrNd2L.js → lazyLoad-B6Te7FRR.js} +7 -2
- package/dist/lazyLoad.d.ts +1 -1
- package/dist/{proxyExports-BgcDxXBO.js → proxyExports-Ch_IR1V2.js} +2 -2
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { safeCall, isEsriInternalEnv,
|
|
2
|
-
import { r as retrieveComponent, d as retrieveParentControllers, b as setParentController, s as setAmbientComponent, u as use, k as useRef, l as useRefSync, c as controllerSymbol } from "./ControllerInternals-
|
|
1
|
+
import { safeCall, isEsriInternalEnv, safeAsyncCall } from "@arcgis/toolkit/error";
|
|
2
|
+
import { r as retrieveComponent, d as retrieveParentControllers, b as setParentController, s as setAmbientComponent, u as use, k as useRef, l as useRefSync, c as controllerSymbol } from "./ControllerInternals-CWQrfEA8.js";
|
|
3
3
|
import { nothing } from "lit";
|
|
4
|
+
import { Deferred } from "@arcgis/toolkit/promise";
|
|
4
5
|
const trackPropertyKey = (object, onResolved, defaultValue) => {
|
|
5
6
|
const keys = Object.keys(object);
|
|
6
7
|
const keyCount = keys.length;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isEsriInternalEnv } from "@arcgis/
|
|
1
|
+
import { isEsriInternalEnv } from "@arcgis/toolkit/error";
|
|
2
2
|
const controllerSymbol = Symbol.for("controller");
|
|
3
3
|
const isController = (value) => typeof value === "object" && value !== null && (controllerSymbol in value || "hostConnected" in value || "hostDisconnected" in value || "hostUpdate" in value || "hostUpdated" in value);
|
|
4
4
|
const isPromise = (arg) => typeof arg?.then === "function";
|
|
@@ -20,15 +20,14 @@ const retrieveComponent = (name) => {
|
|
|
20
20
|
"- You might have multiple versions of ",
|
|
21
21
|
"@arcgis/lumina package installed\n",
|
|
22
22
|
...isEsriInternalEnv() ? [
|
|
23
|
-
"- You tried to create controller outside the component
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"instead.\n",
|
|
23
|
+
"- You tried to create controller outside the component (in ",
|
|
24
|
+
"non-component class or in global scope).",
|
|
25
|
+
"- You accidentally defined the controller using const a = ",
|
|
26
|
+
"makeController(...); rather than const a = () => ",
|
|
27
|
+
"makeController(...);",
|
|
29
28
|
"- You tried to create a controller inside an async function. ",
|
|
30
|
-
"This is allowed without calling controller.use(). Make
|
|
31
|
-
"use it like `await controller.use(useController())`."
|
|
29
|
+
"This is not allowed without calling controller.use(). Make ",
|
|
30
|
+
"sure you use it like `await controller.use(useController())`."
|
|
32
31
|
] : []
|
|
33
32
|
].join("")
|
|
34
33
|
);
|
package/dist/context.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContextProvider, ContextConsumer } from "@lit/context";
|
|
2
|
-
import { r as retrieveComponent } from "./ControllerInternals-
|
|
2
|
+
import { r as retrieveComponent } from "./ControllerInternals-CWQrfEA8.js";
|
|
3
3
|
const useContextProvider = (options) => {
|
|
4
4
|
const component = retrieveComponent();
|
|
5
5
|
const controller = new ContextProvider(component.el, options);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Deferred } from '@arcgis/
|
|
1
|
+
import { Deferred } from '@arcgis/toolkit/promise';
|
|
2
2
|
import { BaseController, ControllerLifecycleMethods, controllerSymbol } from './types';
|
|
3
3
|
import { use, useRef, useRefSync } from './ControllerInternals';
|
|
4
4
|
import { PropertyValues } from 'lit';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { isEsriInternalEnv } from "@arcgis/
|
|
2
|
-
import { r as retrieveComponent } from "../../ControllerInternals-
|
|
1
|
+
import { isEsriInternalEnv } from "@arcgis/toolkit/error";
|
|
2
|
+
import { r as retrieveComponent } from "../../ControllerInternals-CWQrfEA8.js";
|
|
3
3
|
import { on, watch } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
|
-
import { a as createEventFactory, G as GenericController, d as trackPropKey, t as trackKey } from "../../Controller-
|
|
5
|
-
import { p as proxyExports } from "../../proxyExports-
|
|
4
|
+
import { a as createEventFactory, G as GenericController, d as trackPropKey, t as trackKey } from "../../Controller-ik0igmGm.js";
|
|
5
|
+
import { p as proxyExports } from "../../proxyExports-Ch_IR1V2.js";
|
|
6
6
|
import { createObservable, trackAccess } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
7
7
|
import { property, subclass } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
8
8
|
import Accessor from "@arcgis/core/core/Accessor.js";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { C as Controller, t as trackKey, a as createEventFactory } from "../Controller-
|
|
2
|
-
import { G, k, d, b } from "../Controller-
|
|
3
|
-
import { s as setAmbientComponent, i as isPromise, b as setParentController, d as retrieveParentControllers, r as retrieveComponent } from "../ControllerInternals-
|
|
4
|
-
import { f, e, c, h, g } from "../ControllerInternals-
|
|
5
|
-
import { p as proxyExports } from "../proxyExports-
|
|
1
|
+
import { C as Controller, t as trackKey, a as createEventFactory } from "../Controller-ik0igmGm.js";
|
|
2
|
+
import { G, k, d, b } from "../Controller-ik0igmGm.js";
|
|
3
|
+
import { s as setAmbientComponent, i as isPromise, b as setParentController, d as retrieveParentControllers, r as retrieveComponent } from "../ControllerInternals-CWQrfEA8.js";
|
|
4
|
+
import { f, e, c, h, g } from "../ControllerInternals-CWQrfEA8.js";
|
|
5
|
+
import { p as proxyExports } from "../proxyExports-Ch_IR1V2.js";
|
|
6
6
|
import { isServer } from "lit";
|
|
7
|
-
import {
|
|
7
|
+
import { isEsriInternalEnv } from "@arcgis/toolkit/error";
|
|
8
|
+
import { observeAncestorsMutation, getElementAttribute } from "@arcgis/toolkit/dom";
|
|
9
|
+
import { getElementLocale, startLocaleObserver } from "@arcgis/toolkit/intl";
|
|
8
10
|
const makeController = (constructor) => proxy(void 0, constructor);
|
|
9
11
|
const makeGenericController = (constructor) => (component) => proxy(
|
|
10
12
|
component,
|
|
@@ -141,7 +143,7 @@ const useDirection = () => makeController((component, controller) => {
|
|
|
141
143
|
const makeT9nController = (getAssetPath) => (options = {}) => (
|
|
142
144
|
// eslint-disable-next-line @typescript-eslint/promise-function-async
|
|
143
145
|
makeController((component, controller) => {
|
|
144
|
-
const locale =
|
|
146
|
+
const locale = getElementLocale(component.el);
|
|
145
147
|
const pending = { ["_lang"]: locale.lang, ["_t9nLocale"]: locale.t9nLocale, ["_loading"]: true };
|
|
146
148
|
const componentWithOverrides = component;
|
|
147
149
|
controller.onLifecycle(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IHandle } from '@arcgis/
|
|
1
|
+
import { IHandle } from '@arcgis/toolkit/type';
|
|
2
2
|
import { ReactiveControllerHost, ReactiveController, PropertyDeclaration, PropertyValues } from 'lit';
|
|
3
3
|
import { LitElement } from '../LitElement';
|
|
4
4
|
export type TrackKeyResolution = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GenericT9nStrings,
|
|
1
|
+
import { GenericT9nStrings, LocaleObserverResult } from '@arcgis/toolkit/intl';
|
|
2
2
|
export type T9nMeta<T9nStrings extends GenericT9nStrings> = {
|
|
3
|
-
_lang:
|
|
4
|
-
_t9nLocale:
|
|
3
|
+
_lang: LocaleObserverResult["lang"];
|
|
4
|
+
_t9nLocale: LocaleObserverResult["t9nLocale"];
|
|
5
5
|
_loading: boolean;
|
|
6
6
|
/**
|
|
7
7
|
* The "_overrides" property won't actually exist at runtime and exists only
|
package/dist/hmrSupport.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as noShadowRoot, P as ProxyComponent } from "./lazyLoad-
|
|
2
|
-
import { camelToKebab } from "@arcgis/
|
|
1
|
+
import { n as noShadowRoot, P as ProxyComponent } from "./lazyLoad-B6Te7FRR.js";
|
|
2
|
+
import { camelToKebab } from "@arcgis/toolkit/string";
|
|
3
3
|
function handleHmrUpdate(newModules) {
|
|
4
4
|
newModules.forEach((newModule) => {
|
|
5
5
|
if (newModule === void 0) {
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { G as GenericController, k as keyTrackResolve } from "./Controller-
|
|
2
|
-
import { c } from "./Controller-
|
|
1
|
+
import { G as GenericController, k as keyTrackResolve } from "./Controller-ik0igmGm.js";
|
|
2
|
+
import { c } from "./Controller-ik0igmGm.js";
|
|
3
3
|
import { state } from "@lit/reactive-element/decorators/state.js";
|
|
4
4
|
import { property as property$1 } from "@lit/reactive-element/decorators/property.js";
|
|
5
|
-
import { e as emptyFunction, n as noShadowRoot, a as attachToAncestor } from "./lazyLoad-
|
|
6
|
-
import { d, m } from "./lazyLoad-
|
|
7
|
-
import { isEsriInternalEnv, safeCall,
|
|
5
|
+
import { e as emptyFunction, n as noShadowRoot, a as attachToAncestor } from "./lazyLoad-B6Te7FRR.js";
|
|
6
|
+
import { d, m } from "./lazyLoad-B6Te7FRR.js";
|
|
7
|
+
import { isEsriInternalEnv, safeCall, safeAsyncCall } from "@arcgis/toolkit/error";
|
|
8
|
+
import { camelToKebab } from "@arcgis/toolkit/string";
|
|
9
|
+
import { devToolsAwareTimeout, Deferred } from "@arcgis/toolkit/promise";
|
|
8
10
|
import { nothing as nothing$1, LitElement as LitElement$1, isServer, notEqual, noChange as noChange$1 } from "lit";
|
|
9
|
-
import { s as setAmbientComponent, c as controllerSymbol, a as shouldBypassReadOnly } from "./ControllerInternals-
|
|
11
|
+
import { s as setAmbientComponent, c as controllerSymbol, a as shouldBypassReadOnly } from "./ControllerInternals-CWQrfEA8.js";
|
|
10
12
|
import { propertyFlagAttribute, propertyFlagNoAccessor, propertyFlagReadOnly, propertyFlagState, propertyFlagBoolean, propertyFlagNumber, propertyFlagReflect } from "./config.js";
|
|
11
13
|
import { classMap } from "lit-html/directives/class-map.js";
|
|
12
14
|
import { styleMap } from "lit/directives/style-map.js";
|
package/dist/jsx/directives.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { nil } from '@arcgis/toolkit/type';
|
|
2
2
|
import { Properties as CssProperties } from 'csstype';
|
|
3
3
|
import { ClassInfo } from 'lit-html/directives/class-map.js';
|
|
4
4
|
import { DirectiveResult } from 'lit/directive.js';
|
|
@@ -30,7 +30,7 @@ import { noChange } from 'lit';
|
|
|
30
30
|
*
|
|
31
31
|
* @private
|
|
32
32
|
*/
|
|
33
|
-
export declare const safeClassMap: (parameters: ClassInfo |
|
|
33
|
+
export declare const safeClassMap: (parameters: ClassInfo | nil | string) => DirectiveResult<typeof ClassMapDirective> | nil | string;
|
|
34
34
|
/**
|
|
35
35
|
* You likely won't have to import this directly. It will be added during
|
|
36
36
|
* _JSX to lit-html_ conversion.
|
|
@@ -55,7 +55,7 @@ export declare const safeClassMap: (parameters: ClassInfo | Nil | string) => Dir
|
|
|
55
55
|
*
|
|
56
56
|
* @private
|
|
57
57
|
*/
|
|
58
|
-
export declare const safeStyleMap: (parameters: CssProperties |
|
|
58
|
+
export declare const safeStyleMap: (parameters: CssProperties | nil | string) => DirectiveResult<typeof StyleMapDirective> | nil | string;
|
|
59
59
|
declare class DeferLoad extends Directive {
|
|
60
60
|
update(part: ElementPart): void;
|
|
61
61
|
render(): typeof noChange;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { isEsriInternalEnv
|
|
1
|
+
import { isEsriInternalEnv } from "@arcgis/toolkit/error";
|
|
2
|
+
import { camelToKebab } from "@arcgis/toolkit/string";
|
|
3
|
+
import { Deferred } from "@arcgis/toolkit/promise";
|
|
2
4
|
import { lazyMetaGroupJoiner, lazyMetaItemJoiner, lazyMetaSubItemJoiner } from "./config.js";
|
|
3
5
|
function devOnlyDetectIncorrectLazyUsages(LitClass) {
|
|
4
6
|
const genericPrototype = LitClass.prototype;
|
|
@@ -276,7 +278,10 @@ class ProxyComponent extends HtmlElement {
|
|
|
276
278
|
this.#pendingAttributes.push(name);
|
|
277
279
|
}
|
|
278
280
|
if (process.env.NODE_ENV !== "production" && isEsriInternalEnv()) {
|
|
279
|
-
this
|
|
281
|
+
const isReflecting = this.#litElement?.["__reflectingProperty"] === name;
|
|
282
|
+
if (!isReflecting) {
|
|
283
|
+
this.devOnly$hmrSetAttributes.add(name);
|
|
284
|
+
}
|
|
280
285
|
}
|
|
281
286
|
}
|
|
282
287
|
connectedCallback() {
|
package/dist/lazyLoad.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as setParentController, d as retrieveParentControllers, j as setAmbientChildController, f as bypassReadOnly } from "./ControllerInternals-
|
|
2
|
-
import { t as trackKey } from "./Controller-
|
|
1
|
+
import { b as setParentController, d as retrieveParentControllers, j as setAmbientChildController, f as bypassReadOnly } from "./ControllerInternals-CWQrfEA8.js";
|
|
2
|
+
import { t as trackKey } from "./Controller-ik0igmGm.js";
|
|
3
3
|
const proxyExports = (Class) => (...args) => {
|
|
4
4
|
const ambientControllers = retrieveParentControllers();
|
|
5
5
|
const instance = new Class(...args);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/lumina",
|
|
3
|
-
"version": "4.34.0-next.
|
|
3
|
+
"version": "4.34.0-next.62",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@arcgis/
|
|
25
|
+
"@arcgis/toolkit": "4.34.0-next.62",
|
|
26
26
|
"csstype": "^3.1.3",
|
|
27
27
|
"tslib": "^2.8.1"
|
|
28
28
|
},
|