@arcgis/lumina 4.32.0-next.2 → 4.32.0-next.20
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 +3 -0
- package/dist/{chunk-CH52Q2MB.js → chunk-PGHUBTOM.js} +0 -6
- package/dist/config.d.ts +0 -8
- package/dist/config.js +1 -7
- package/dist/createEvent.d.ts +7 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +61 -75
- package/dist/jsx/directives.d.ts +0 -8
- package/dist/jsx/jsx.d.ts +8 -7
- package/dist/lazyLoad.d.ts +5 -2
- package/dist/runtime.d.ts +3 -3
- package/dist/stencilSsrCompatibility/index.d.ts +0 -1
- package/dist/typings/index.d.ts +4 -4
- package/package.json +5 -24
package/dist/LitElement.d.ts
CHANGED
|
@@ -36,6 +36,9 @@ export declare class LitElement extends OriginalLitElement implements ComponentL
|
|
|
36
36
|
/** @internal */
|
|
37
37
|
static runtime: Runtime;
|
|
38
38
|
static tagName: string;
|
|
39
|
+
/**
|
|
40
|
+
* Customize Lit's default style handling to support non-shadow-root styles
|
|
41
|
+
*/
|
|
39
42
|
static finalizeStyles(styles?: CSSResultGroup): CSSResultOrNative[];
|
|
40
43
|
static createProperty(name: PropertyKey,
|
|
41
44
|
/**
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
var lazyMetaGroupJoiner = ";";
|
|
3
3
|
var lazyMetaItemJoiner = ",";
|
|
4
4
|
var lazyMetaSubItemJoiner = ":";
|
|
5
|
-
var defaultEventBubbles = true;
|
|
6
|
-
var defaultEventCancelable = true;
|
|
7
|
-
var defaultEventComposed = true;
|
|
8
5
|
var PropertyFlags = /* @__PURE__ */ ((PropertyFlags2) => {
|
|
9
6
|
PropertyFlags2[PropertyFlags2["ATTRIBUTE"] = 1] = "ATTRIBUTE";
|
|
10
7
|
PropertyFlags2[PropertyFlags2["REFLECT"] = 2] = "REFLECT";
|
|
@@ -20,8 +17,5 @@ export {
|
|
|
20
17
|
lazyMetaGroupJoiner,
|
|
21
18
|
lazyMetaItemJoiner,
|
|
22
19
|
lazyMetaSubItemJoiner,
|
|
23
|
-
defaultEventBubbles,
|
|
24
|
-
defaultEventCancelable,
|
|
25
|
-
defaultEventComposed,
|
|
26
20
|
PropertyFlags
|
|
27
21
|
};
|
package/dist/config.d.ts
CHANGED
|
@@ -6,14 +6,6 @@
|
|
|
6
6
|
export declare const lazyMetaGroupJoiner = ";";
|
|
7
7
|
export declare const lazyMetaItemJoiner = ",";
|
|
8
8
|
export declare const lazyMetaSubItemJoiner = ":";
|
|
9
|
-
/**
|
|
10
|
-
* While these defaults don't match DOM defaults (all false), they match
|
|
11
|
-
* Stencil and Shoelace defaults. Also, they make more sense for our
|
|
12
|
-
* usage (i.e why would you want events to not be cancelable by default?)
|
|
13
|
-
*/
|
|
14
|
-
export declare const defaultEventBubbles = true;
|
|
15
|
-
export declare const defaultEventCancelable = true;
|
|
16
|
-
export declare const defaultEventComposed = true;
|
|
17
9
|
/**
|
|
18
10
|
* By default in Lit, the `@property()` decorator accepts an object. However, to
|
|
19
11
|
* keep the bundle size smaller, in production builds, instead of passing it an
|
package/dist/config.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PropertyFlags,
|
|
3
|
-
defaultEventBubbles,
|
|
4
|
-
defaultEventCancelable,
|
|
5
|
-
defaultEventComposed,
|
|
6
3
|
lazyMetaGroupJoiner,
|
|
7
4
|
lazyMetaItemJoiner,
|
|
8
5
|
lazyMetaSubItemJoiner
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PGHUBTOM.js";
|
|
10
7
|
export {
|
|
11
8
|
PropertyFlags,
|
|
12
|
-
defaultEventBubbles,
|
|
13
|
-
defaultEventCancelable,
|
|
14
|
-
defaultEventComposed,
|
|
15
9
|
lazyMetaGroupJoiner,
|
|
16
10
|
lazyMetaItemJoiner,
|
|
17
11
|
lazyMetaSubItemJoiner
|
package/dist/createEvent.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import type { EventEmitter } from "@arcgis/components-controllers";
|
|
1
|
+
import type { BaseComponent, EventEmitter } from "@arcgis/components-controllers";
|
|
2
|
+
/**
|
|
3
|
+
* While these defaults don't match DOM defaults (all false), they match
|
|
4
|
+
* Stencil and Shoelace defaults. Also, they make more sense for our
|
|
5
|
+
* usage (i.e why would you want events to not be cancelable by default?)
|
|
6
|
+
*/
|
|
2
7
|
export type EventOptions = {
|
|
3
8
|
/**
|
|
4
9
|
* A Boolean indicating whether the event bubbles up through the DOM or not.
|
|
@@ -22,7 +27,7 @@ export type EventOptions = {
|
|
|
22
27
|
*/
|
|
23
28
|
composed?: boolean;
|
|
24
29
|
};
|
|
25
|
-
export declare const createEventFactory: <T = undefined>(eventName?: string, options?: EventOptions, component?:
|
|
30
|
+
export declare const createEventFactory: <T = undefined>(eventName?: string, options?: EventOptions, component?: BaseComponent) => EventEmitter<T>;
|
|
26
31
|
/**
|
|
27
32
|
* Creates an event emitter.
|
|
28
33
|
* Events emitted by your component will be included in the documentation.
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type { PublicLitElement } from "./PublicLitElement";
|
|
|
10
10
|
export type { Runtime, RuntimeOptions, DevOnlyGlobalRuntime, DevOnlyGlobalComponentRefCallback } from "./runtime";
|
|
11
11
|
export { makeRuntime } from "./runtime";
|
|
12
12
|
export * from "./jsx/jsx";
|
|
13
|
-
export { safeClassMap, safeStyleMap, directive,
|
|
13
|
+
export { safeClassMap, safeStyleMap, directive, live } from "./jsx/directives";
|
|
14
14
|
export { nothing, noChange, setAttribute, stringOrBoolean } from "./jsx/utils";
|
|
15
15
|
export { noShadowRoot } from "./utils";
|
|
16
16
|
export { createPrototypeProxy } from "./wrappersUtils";
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
defaultEventBubbles,
|
|
3
|
-
defaultEventCancelable,
|
|
4
|
-
defaultEventComposed,
|
|
5
2
|
lazyMetaGroupJoiner,
|
|
6
3
|
lazyMetaItemJoiner,
|
|
7
4
|
lazyMetaSubItemJoiner
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PGHUBTOM.js";
|
|
9
6
|
|
|
10
7
|
// src/createEvent.ts
|
|
11
8
|
import { retrieveComponent, trackPropertyKey, keyTrackResolve } from "@arcgis/components-controllers";
|
|
@@ -25,9 +22,9 @@ var createEventFactory = (eventName = "", options = {}, component = retrieveComp
|
|
|
25
22
|
}
|
|
26
23
|
const event = new CustomEvent(eventName, {
|
|
27
24
|
detail: payload,
|
|
28
|
-
cancelable:
|
|
29
|
-
bubbles:
|
|
30
|
-
composed:
|
|
25
|
+
cancelable: true,
|
|
26
|
+
bubbles: true,
|
|
27
|
+
composed: true,
|
|
31
28
|
...options
|
|
32
29
|
});
|
|
33
30
|
component.el.dispatchEvent(event);
|
|
@@ -212,8 +209,10 @@ var ProxyComponent = class extends HtmlElement {
|
|
|
212
209
|
this._initializeComponent({ a: ProxyClass._LitConstructor });
|
|
213
210
|
} else {
|
|
214
211
|
void ProxyClass._loadPromise.then(this._initializeComponent.bind(this)).catch((error) => {
|
|
215
|
-
console.error(error);
|
|
216
212
|
this._postLoaded.reject(error);
|
|
213
|
+
setTimeout(() => {
|
|
214
|
+
throw error;
|
|
215
|
+
});
|
|
217
216
|
});
|
|
218
217
|
}
|
|
219
218
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -332,7 +331,7 @@ var ProxyComponent = class extends HtmlElement {
|
|
|
332
331
|
}
|
|
333
332
|
connectedCallback() {
|
|
334
333
|
if (this._litElement) {
|
|
335
|
-
this._litElement.connectedCallback();
|
|
334
|
+
this._litElement.connectedCallback?.();
|
|
336
335
|
} else {
|
|
337
336
|
queueMicrotask(() => {
|
|
338
337
|
this._ancestorLoad = attachToAncestor(this);
|
|
@@ -340,19 +339,20 @@ var ProxyComponent = class extends HtmlElement {
|
|
|
340
339
|
}
|
|
341
340
|
}
|
|
342
341
|
disconnectedCallback() {
|
|
343
|
-
this._litElement?.disconnectedCallback();
|
|
342
|
+
this._litElement?.disconnectedCallback?.();
|
|
344
343
|
}
|
|
345
344
|
/**
|
|
346
345
|
* Create a promise that resolves once component is fully loaded
|
|
347
346
|
*/
|
|
348
347
|
async componentOnReady() {
|
|
349
348
|
await this._postLoaded.promise;
|
|
350
|
-
return this
|
|
349
|
+
return this;
|
|
351
350
|
}
|
|
352
351
|
/** @internal */
|
|
353
352
|
_initializeComponent(module) {
|
|
354
353
|
const ProxyClass = this.constructor;
|
|
355
354
|
const tagName = ProxyClass._name;
|
|
355
|
+
const store = this._store;
|
|
356
356
|
if (process.env.NODE_ENV !== "production") {
|
|
357
357
|
Object.entries(module).forEach(([name, LitConstructor2]) => {
|
|
358
358
|
if (name !== "exportsForTests" && typeof LitConstructor2 !== "function" || typeof LitConstructor2.tagName !== "string") {
|
|
@@ -406,6 +406,7 @@ var ProxyComponent = class extends HtmlElement {
|
|
|
406
406
|
} else {
|
|
407
407
|
this._litElement = litElement;
|
|
408
408
|
}
|
|
409
|
+
this._store = litElement;
|
|
409
410
|
this._pendingAttributes.forEach((name) => {
|
|
410
411
|
const value = this.getAttribute(name);
|
|
411
412
|
litElement.attributeChangedCallback(
|
|
@@ -415,8 +416,7 @@ var ProxyComponent = class extends HtmlElement {
|
|
|
415
416
|
value
|
|
416
417
|
);
|
|
417
418
|
});
|
|
418
|
-
Object.entries(
|
|
419
|
-
this._store = litElement;
|
|
419
|
+
Object.entries(store).forEach(syncLitElement, litElement);
|
|
420
420
|
if (process.env.NODE_ENV !== "production") {
|
|
421
421
|
const litObserved = LitConstructor.observedAttributes ?? [];
|
|
422
422
|
const lazyObserved = ProxyClass.observedAttributes ?? [];
|
|
@@ -484,6 +484,21 @@ function handleHmrUpdate(newModules) {
|
|
|
484
484
|
}
|
|
485
485
|
function reInitialize(instance, newModule) {
|
|
486
486
|
const PreviousLitConstructor = instance._litElement.constructor;
|
|
487
|
+
const isShadowRoot = PreviousLitConstructor.shadowRootOptions !== noShadowRoot;
|
|
488
|
+
if (!isShadowRoot) {
|
|
489
|
+
const root = instance.getRootNode() ?? document;
|
|
490
|
+
if ("adoptedStyleSheets" in root) {
|
|
491
|
+
const rootStyles = Array.from(root.adoptedStyleSheets);
|
|
492
|
+
PreviousLitConstructor.elementStyles.forEach((style) => {
|
|
493
|
+
const styleSheet = "styleSheet" in style ? style.styleSheet : style;
|
|
494
|
+
const index = rootStyles.lastIndexOf(styleSheet);
|
|
495
|
+
if (index > -1) {
|
|
496
|
+
rootStyles.splice(index, 1);
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
root.adoptedStyleSheets = rootStyles;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
487
502
|
const properties = PreviousLitConstructor.elementProperties;
|
|
488
503
|
const preservedProperties = Array.from(properties.entries()).filter(
|
|
489
504
|
([propertyName, descriptor]) => typeof propertyName === "string" && (instance._hmrSetProps.has(propertyName) || typeof descriptor.attribute === "string" && instance._hmrSetAttributes.has(descriptor.attribute))
|
|
@@ -501,10 +516,11 @@ function handleComponentMetaUpdate(meta) {
|
|
|
501
516
|
return;
|
|
502
517
|
}
|
|
503
518
|
const attributes = meta.properties.map(([property2, attribute]) => attribute ?? camelToKebab2(property2)).filter(Boolean);
|
|
519
|
+
const observedAttributes = initializeAttributeObserver();
|
|
504
520
|
observedAttributes[meta.tagName] ??= {};
|
|
505
521
|
observedAttributes[meta.tagName].original ??= new Set(ProxyClass.observedAttributes);
|
|
506
522
|
const originallyObserved = observedAttributes[meta.tagName].original;
|
|
507
|
-
observedAttributes[meta.tagName].manuallyObserved
|
|
523
|
+
observedAttributes[meta.tagName].manuallyObserved = new Set(
|
|
508
524
|
/**
|
|
509
525
|
* Never manually observe attributes that were in the original
|
|
510
526
|
* observedAttributes as those would be observed by the browser
|
|
@@ -516,27 +532,30 @@ function handleComponentMetaUpdate(meta) {
|
|
|
516
532
|
ProxyClass._properties = meta.properties.map(([name]) => name);
|
|
517
533
|
ProxyClass.observedAttributes = attributes;
|
|
518
534
|
}
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
535
|
+
function initializeAttributeObserver() {
|
|
536
|
+
const observedAttributesSymbol = Symbol.for("@arcgis/lumina:observedAttributes");
|
|
537
|
+
const globalThisWithObservedAttributes = globalThis;
|
|
538
|
+
const alreadyHadObservers = observedAttributesSymbol in globalThisWithObservedAttributes;
|
|
539
|
+
globalThisWithObservedAttributes[observedAttributesSymbol] ??= {};
|
|
540
|
+
const observedAttributes = globalThisWithObservedAttributes[observedAttributesSymbol];
|
|
541
|
+
if (!alreadyHadObservers) {
|
|
542
|
+
const makeObserver = (original) => function observeAttributes(qualifiedName, ...rest) {
|
|
543
|
+
const observed = observedAttributes[this.tagName.toLowerCase()]?.manuallyObserved;
|
|
544
|
+
if (observed?.has(qualifiedName)) {
|
|
545
|
+
const oldValue = this.getAttribute(qualifiedName);
|
|
546
|
+
const returns = original.call(this, qualifiedName, ...rest);
|
|
547
|
+
const newValue = this.getAttribute(qualifiedName);
|
|
548
|
+
this.attributeChangedCallback(qualifiedName, oldValue, newValue);
|
|
549
|
+
return returns;
|
|
550
|
+
} else {
|
|
551
|
+
return original.call(this, qualifiedName, ...rest);
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
ProxyComponent.prototype.setAttribute = makeObserver(ProxyComponent.prototype.setAttribute);
|
|
555
|
+
ProxyComponent.prototype.toggleAttribute = makeObserver(ProxyComponent.prototype.toggleAttribute);
|
|
556
|
+
ProxyComponent.prototype.removeAttribute = makeObserver(ProxyComponent.prototype.removeAttribute);
|
|
557
|
+
}
|
|
558
|
+
return observedAttributes;
|
|
540
559
|
}
|
|
541
560
|
|
|
542
561
|
// src/LitElement.ts
|
|
@@ -598,13 +617,15 @@ var LitElement = class _LitElement extends OriginalLitElement {
|
|
|
598
617
|
this.el.setAttribute(this.constructor.runtime.hydratedAttribute, "");
|
|
599
618
|
}
|
|
600
619
|
}
|
|
620
|
+
/**
|
|
621
|
+
* Customize Lit's default style handling to support non-shadow-root styles
|
|
622
|
+
*/
|
|
601
623
|
static finalizeStyles(styles) {
|
|
602
624
|
if (process.env.NODE_ENV === "test" && Array.isArray(styles)) {
|
|
603
625
|
styles = styles.filter(Boolean);
|
|
604
626
|
}
|
|
605
627
|
const finalizedStyles = super.finalizeStyles(styles);
|
|
606
|
-
const
|
|
607
|
-
const useLightDom = options === noShadowRoot;
|
|
628
|
+
const useLightDom = this.shadowRootOptions === noShadowRoot;
|
|
608
629
|
return this.runtime?.commonStyles === void 0 || useLightDom ? finalizedStyles : [this.runtime.commonStyles, ...finalizedStyles];
|
|
609
630
|
}
|
|
610
631
|
static createProperty(name, options) {
|
|
@@ -655,8 +676,10 @@ var LitElement = class _LitElement extends OriginalLitElement {
|
|
|
655
676
|
queueMicrotask(
|
|
656
677
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises, @typescript-eslint/promise-function-async
|
|
657
678
|
() => this._load().catch((error) => {
|
|
658
|
-
console.error(error);
|
|
659
679
|
this._postLoaded.reject(error);
|
|
680
|
+
setTimeout(() => {
|
|
681
|
+
throw error;
|
|
682
|
+
});
|
|
660
683
|
})
|
|
661
684
|
);
|
|
662
685
|
}
|
|
@@ -797,47 +820,11 @@ var bindEvent = void 0;
|
|
|
797
820
|
// src/jsx/directives.ts
|
|
798
821
|
import { classMap } from "lit-html/directives/class-map.js";
|
|
799
822
|
import { styleMap } from "lit/directives/style-map.js";
|
|
800
|
-
import { Directive } from "lit-html/directive.js";
|
|
801
823
|
import { directive as litDirective } from "lit-html/directive.js";
|
|
802
824
|
import { live as litLive } from "lit-html/directives/live.js";
|
|
803
825
|
var safeClassMap = (parameters) => typeof parameters === "object" && parameters != null ? classMap(parameters) : parameters;
|
|
804
826
|
var safeStyleMap = (parameters) => typeof parameters === "object" && parameters != null ? styleMap(parameters) : parameters;
|
|
805
827
|
var directive = litDirective;
|
|
806
|
-
var DynamicHtmlValueDirective = class extends Directive {
|
|
807
|
-
update(part, [prop, value]) {
|
|
808
|
-
if (process.env.NODE_ENV !== "production") {
|
|
809
|
-
if (part.type !== 6) {
|
|
810
|
-
throw new Error("DynamicHtmlValueDirective can only be used in the element part position");
|
|
811
|
-
}
|
|
812
|
-
if (prop !== "value" && prop !== "defaultValue") {
|
|
813
|
-
throw new Error('Expected the first argument to DynamicHtmlValueDirective to be "value" or "defaultValue"');
|
|
814
|
-
}
|
|
815
|
-
if (typeof value === "object" && value != null) {
|
|
816
|
-
if ("_$litDirective$" in value) {
|
|
817
|
-
throw new Error(
|
|
818
|
-
"Directive is not supported as a value for the `value` or `defaultValue` prop when the tag name is dynamic."
|
|
819
|
-
);
|
|
820
|
-
} else {
|
|
821
|
-
throw new Error(
|
|
822
|
-
`Tried to set an object as the value/defaultValue prop in a <${part.element.tagName}> element.`
|
|
823
|
-
);
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
const element = part.element;
|
|
828
|
-
const tagName = element.tagName;
|
|
829
|
-
if (prop === "value" ? tagName === "INPUT" : tagName === "BUTTON" || tagName === "DATA") {
|
|
830
|
-
if (element[prop] !== value) {
|
|
831
|
-
element[prop] = value;
|
|
832
|
-
}
|
|
833
|
-
} else if (value != null) {
|
|
834
|
-
element.setAttribute("value", value);
|
|
835
|
-
} else {
|
|
836
|
-
element.removeAttribute("value");
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
};
|
|
840
|
-
var dynamicValueDirective = directive(DynamicHtmlValueDirective);
|
|
841
828
|
var live = litLive;
|
|
842
829
|
|
|
843
830
|
// src/jsx/utils.ts
|
|
@@ -884,7 +871,6 @@ export {
|
|
|
884
871
|
createEvent,
|
|
885
872
|
createPrototypeProxy,
|
|
886
873
|
directive,
|
|
887
|
-
dynamicValueDirective,
|
|
888
874
|
handleComponentMetaUpdate,
|
|
889
875
|
handleHmrUpdate,
|
|
890
876
|
live,
|
package/dist/jsx/directives.d.ts
CHANGED
|
@@ -60,14 +60,6 @@ export declare const safeStyleMap: (parameters: CssProperties | Nil | string) =>
|
|
|
60
60
|
* "never" to allow it be set as a value for any JSX attribute.
|
|
61
61
|
*/
|
|
62
62
|
export declare const directive: <C extends DirectiveClass>(c: C) => (...values: Parameters<InstanceType<C>["render"]>) => never;
|
|
63
|
-
/**
|
|
64
|
-
* Do not import this directly. It will be inserted automatically by JSX to
|
|
65
|
-
* lit-html transformer when you are setting "value" or "defaultValue" JSX prop
|
|
66
|
-
* in an element with dynamic tag name.
|
|
67
|
-
*
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
70
|
-
export declare const dynamicValueDirective: (...values: never) => never;
|
|
71
63
|
/**
|
|
72
64
|
* Checks binding values against live DOM values, instead of previously bound
|
|
73
65
|
* values, when determining whether to update the value.
|
package/dist/jsx/jsx.d.ts
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* /// <reference types="@arcgis/lumina/typings" />
|
|
7
7
|
* ```
|
|
8
8
|
*/
|
|
9
|
-
/// <reference path="../typings/jsxGlobals.d.ts" />
|
|
10
9
|
import type { Properties as CssProperties } from "csstype";
|
|
11
10
|
import type { TemplateResult } from "lit-html";
|
|
12
11
|
import type { DirectiveResult } from "lit-html/directive.js";
|
|
@@ -1293,6 +1292,8 @@ export declare namespace LuminaJsx {
|
|
|
1293
1292
|
form?: string;
|
|
1294
1293
|
for?: string;
|
|
1295
1294
|
name?: string;
|
|
1295
|
+
value?: string | number;
|
|
1296
|
+
defaultValue?: string | number;
|
|
1296
1297
|
}
|
|
1297
1298
|
interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1298
1299
|
max?: number | string;
|
|
@@ -1862,7 +1863,7 @@ export declare namespace LuminaJsx {
|
|
|
1862
1863
|
base: BaseHTMLAttributes<HTMLBaseElement>;
|
|
1863
1864
|
bdi: HTMLAttributes;
|
|
1864
1865
|
bdo: HTMLAttributes;
|
|
1865
|
-
blockquote: BlockquoteHTMLAttributes<
|
|
1866
|
+
blockquote: BlockquoteHTMLAttributes<HTMLQuoteElement>;
|
|
1866
1867
|
body: HTMLAttributes<HTMLBodyElement>;
|
|
1867
1868
|
br: HTMLAttributes<HTMLBRElement>;
|
|
1868
1869
|
button: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
@@ -1872,7 +1873,7 @@ export declare namespace LuminaJsx {
|
|
|
1872
1873
|
code: HTMLAttributes;
|
|
1873
1874
|
col: ColHTMLAttributes<HTMLTableColElement>;
|
|
1874
1875
|
colgroup: ColgroupHTMLAttributes<HTMLTableColElement>;
|
|
1875
|
-
data: DataHTMLAttributes<
|
|
1876
|
+
data: DataHTMLAttributes<HTMLDataElement>;
|
|
1876
1877
|
datalist: HTMLAttributes<HTMLDataListElement>;
|
|
1877
1878
|
dd: HTMLAttributes;
|
|
1878
1879
|
del: HTMLAttributes;
|
|
@@ -1914,16 +1915,16 @@ export declare namespace LuminaJsx {
|
|
|
1914
1915
|
map: MapHTMLAttributes<HTMLMapElement>;
|
|
1915
1916
|
math: MathMLAttributes;
|
|
1916
1917
|
mark: HTMLAttributes;
|
|
1917
|
-
menu: MenuHTMLAttributes<
|
|
1918
|
+
menu: MenuHTMLAttributes<HTMLMenuElement>;
|
|
1918
1919
|
meta: MetaHTMLAttributes<HTMLMetaElement>;
|
|
1919
|
-
meter: MeterHTMLAttributes<
|
|
1920
|
+
meter: MeterHTMLAttributes<HTMLMeterElement>;
|
|
1920
1921
|
nav: HTMLAttributes;
|
|
1921
1922
|
noscript: HTMLAttributes;
|
|
1922
1923
|
object: ObjectHTMLAttributes<HTMLObjectElement>;
|
|
1923
1924
|
ol: OlHTMLAttributes<HTMLOListElement>;
|
|
1924
1925
|
optgroup: OptgroupHTMLAttributes<HTMLOptGroupElement>;
|
|
1925
1926
|
option: OptionHTMLAttributes<HTMLOptionElement>;
|
|
1926
|
-
output: OutputHTMLAttributes<
|
|
1927
|
+
output: OutputHTMLAttributes<HTMLOutputElement>;
|
|
1927
1928
|
p: HTMLAttributes<HTMLParagraphElement>;
|
|
1928
1929
|
picture: HTMLAttributes;
|
|
1929
1930
|
pre: HTMLAttributes<HTMLPreElement>;
|
|
@@ -1961,7 +1962,7 @@ export declare namespace LuminaJsx {
|
|
|
1961
1962
|
tfoot: HTMLAttributes<HTMLTableSectionElement>;
|
|
1962
1963
|
th: ThHTMLAttributes<HTMLTableCellElement>;
|
|
1963
1964
|
thead: HTMLAttributes<HTMLTableSectionElement>;
|
|
1964
|
-
time: TimeHTMLAttributes<
|
|
1965
|
+
time: TimeHTMLAttributes<HTMLTimeElement>;
|
|
1965
1966
|
title: HTMLAttributes<HTMLTitleElement>;
|
|
1966
1967
|
tr: HTMLAttributes<HTMLTableRowElement>;
|
|
1967
1968
|
track: TrackHTMLAttributes<HTMLTrackElement>;
|
package/dist/lazyLoad.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Deferred } from "@arcgis/components-utils";
|
|
|
2
2
|
import type { LitElement } from "./LitElement";
|
|
3
3
|
import type { Runtime } from "./runtime";
|
|
4
4
|
import type { ControllerManager } from "@arcgis/components-controllers";
|
|
5
|
+
import type { PublicLitElement } from "./PublicLitElement";
|
|
5
6
|
/**
|
|
6
7
|
* Defines lazy-loading proxy components for all web components in this package.
|
|
7
8
|
*
|
|
@@ -105,7 +106,9 @@ export declare abstract class ProxyComponent extends HtmlElement {
|
|
|
105
106
|
/**
|
|
106
107
|
* Direct offspring that should be awaited before loaded() is emitted
|
|
107
108
|
*/
|
|
108
|
-
_offspring: (
|
|
109
|
+
_offspring: (PublicLitElement & {
|
|
110
|
+
manager?: LitElement["manager"];
|
|
111
|
+
})[];
|
|
109
112
|
/**
|
|
110
113
|
* Promise that resolves once parent's load() completed. False if there is no
|
|
111
114
|
* parent
|
|
@@ -147,7 +150,7 @@ export declare abstract class ProxyComponent extends HtmlElement {
|
|
|
147
150
|
/**
|
|
148
151
|
* Create a promise that resolves once component is fully loaded
|
|
149
152
|
*/
|
|
150
|
-
componentOnReady(): Promise<
|
|
153
|
+
componentOnReady(): Promise<this>;
|
|
151
154
|
/** @internal */
|
|
152
155
|
_initializeComponent(module: Record<string, typeof LitElement>): void;
|
|
153
156
|
}
|
package/dist/runtime.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { LitElement } from "./LitElement";
|
|
|
8
8
|
export type Runtime = RuntimeOptions & {
|
|
9
9
|
/**
|
|
10
10
|
* Get the base path to where the package assets can be found.
|
|
11
|
-
* By default, the package asset path is set to
|
|
11
|
+
* By default, the package asset path is set to `https://js.arcgis.com/<simplified-package-name>/<released-verion>/`.
|
|
12
12
|
* We are hosting our assets on a CDN (Content Delivery Network) to ensure fast and reliable access.
|
|
13
13
|
* It is CORS-enabled, so you can load the assets from any domain.
|
|
14
14
|
* Use "setAssetPath(path)" if the path needs to be customized.
|
|
@@ -18,8 +18,8 @@ export type Runtime = RuntimeOptions & {
|
|
|
18
18
|
* Used to manually set the base path where package assets (like localization
|
|
19
19
|
* and icons) can be found.
|
|
20
20
|
*
|
|
21
|
-
* By default, the package asset path is set to
|
|
22
|
-
* For example,
|
|
21
|
+
* By default, the package asset path is set to `https://js.arcgis.com/<simplified-package-name>/<released-verion>/`.
|
|
22
|
+
* For example, `https://js.arcgis.com/map-components/4.30/`.
|
|
23
23
|
* We are hosting our assets on a CDN (Content Delivery Network) to ensure fast and reliable access.
|
|
24
24
|
* It is CORS-enabled, so you can load the assets from any domain.
|
|
25
25
|
* This is the recommended way to load the assets and avoid bundling them with your application.
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference path="jsxGlobals.d.ts" />
|
|
2
|
-
/// <reference path="loadLitCss.d.ts" />
|
|
3
|
-
/// <reference path="viteEnv.d.ts" />
|
|
4
|
-
/// <reference path="importMeta.d.ts" />
|
|
1
|
+
/// <reference path="jsxGlobals.d.ts" preserve="true" />
|
|
2
|
+
/// <reference path="loadLitCss.d.ts" preserve="true" />
|
|
3
|
+
/// <reference path="viteEnv.d.ts" preserve="true" />
|
|
4
|
+
/// <reference path="importMeta.d.ts" preserve="true" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/lumina",
|
|
3
|
-
"version": "4.32.0-next.
|
|
3
|
+
"version": "4.32.0-next.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -17,33 +17,14 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"dist/"
|
|
19
19
|
],
|
|
20
|
-
"publishConfig": {
|
|
21
|
-
"registry": "https://registry.npmjs.org/",
|
|
22
|
-
"access": "public"
|
|
23
|
-
},
|
|
24
20
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
25
|
-
"scripts": {
|
|
26
|
-
"build": "tsup",
|
|
27
|
-
"build:dev": "tsup --sourcemap",
|
|
28
|
-
"watch": "yarn build:dev --watch",
|
|
29
|
-
"clean": "rimraf ./dist ./build ./turbo ./node_modules"
|
|
30
|
-
},
|
|
31
21
|
"dependencies": {
|
|
32
|
-
"@arcgis/components-controllers": "4.32.0-next.
|
|
33
|
-
"@arcgis/components-utils": "4.32.0-next.
|
|
22
|
+
"@arcgis/components-controllers": "4.32.0-next.20",
|
|
23
|
+
"@arcgis/components-utils": "4.32.0-next.20",
|
|
34
24
|
"@lit-labs/ssr": "^3.2.2",
|
|
35
25
|
"@lit-labs/ssr-client": "^1.1.7",
|
|
36
26
|
"csstype": "^3.1.3",
|
|
37
27
|
"lit": "^3.2.0",
|
|
38
28
|
"tslib": "^2.7.0"
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
"@arcgis/typescript-config": "4.32.0-next.2",
|
|
42
|
-
"@types/node": "^20.2.5",
|
|
43
|
-
"eslint": "^8.55.0",
|
|
44
|
-
"rimraf": "^5.0.0",
|
|
45
|
-
"tsup": "^8.3.0",
|
|
46
|
-
"typescript": "~5.4.0"
|
|
47
|
-
},
|
|
48
|
-
"gitHead": "8c9d6f7c0e88ea1b6ddbc00ebdb1c89069b0cbbf"
|
|
49
|
-
}
|
|
29
|
+
}
|
|
30
|
+
}
|