@arcgis/lumina 4.32.0-next.2 → 4.32.0-next.3
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/index.d.ts +1 -1
- package/dist/index.js +6 -39
- package/dist/jsx/directives.d.ts +0 -8
- package/dist/jsx/jsx.d.ts +8 -6
- package/package.json +5 -5
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
|
@@ -212,8 +212,10 @@ var ProxyComponent = class extends HtmlElement {
|
|
|
212
212
|
this._initializeComponent({ a: ProxyClass._LitConstructor });
|
|
213
213
|
} else {
|
|
214
214
|
void ProxyClass._loadPromise.then(this._initializeComponent.bind(this)).catch((error) => {
|
|
215
|
-
console.error(error);
|
|
216
215
|
this._postLoaded.reject(error);
|
|
216
|
+
setTimeout(() => {
|
|
217
|
+
throw error;
|
|
218
|
+
});
|
|
217
219
|
});
|
|
218
220
|
}
|
|
219
221
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -655,8 +657,10 @@ var LitElement = class _LitElement extends OriginalLitElement {
|
|
|
655
657
|
queueMicrotask(
|
|
656
658
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises, @typescript-eslint/promise-function-async
|
|
657
659
|
() => this._load().catch((error) => {
|
|
658
|
-
console.error(error);
|
|
659
660
|
this._postLoaded.reject(error);
|
|
661
|
+
setTimeout(() => {
|
|
662
|
+
throw error;
|
|
663
|
+
});
|
|
660
664
|
})
|
|
661
665
|
);
|
|
662
666
|
}
|
|
@@ -797,47 +801,11 @@ var bindEvent = void 0;
|
|
|
797
801
|
// src/jsx/directives.ts
|
|
798
802
|
import { classMap } from "lit-html/directives/class-map.js";
|
|
799
803
|
import { styleMap } from "lit/directives/style-map.js";
|
|
800
|
-
import { Directive } from "lit-html/directive.js";
|
|
801
804
|
import { directive as litDirective } from "lit-html/directive.js";
|
|
802
805
|
import { live as litLive } from "lit-html/directives/live.js";
|
|
803
806
|
var safeClassMap = (parameters) => typeof parameters === "object" && parameters != null ? classMap(parameters) : parameters;
|
|
804
807
|
var safeStyleMap = (parameters) => typeof parameters === "object" && parameters != null ? styleMap(parameters) : parameters;
|
|
805
808
|
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
809
|
var live = litLive;
|
|
842
810
|
|
|
843
811
|
// src/jsx/utils.ts
|
|
@@ -884,7 +852,6 @@ export {
|
|
|
884
852
|
createEvent,
|
|
885
853
|
createPrototypeProxy,
|
|
886
854
|
directive,
|
|
887
|
-
dynamicValueDirective,
|
|
888
855
|
handleComponentMetaUpdate,
|
|
889
856
|
handleHmrUpdate,
|
|
890
857
|
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
|
@@ -1293,6 +1293,8 @@ export declare namespace LuminaJsx {
|
|
|
1293
1293
|
form?: string;
|
|
1294
1294
|
for?: string;
|
|
1295
1295
|
name?: string;
|
|
1296
|
+
value?: string | number;
|
|
1297
|
+
defaultValue?: string | number;
|
|
1296
1298
|
}
|
|
1297
1299
|
interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1298
1300
|
max?: number | string;
|
|
@@ -1862,7 +1864,7 @@ export declare namespace LuminaJsx {
|
|
|
1862
1864
|
base: BaseHTMLAttributes<HTMLBaseElement>;
|
|
1863
1865
|
bdi: HTMLAttributes;
|
|
1864
1866
|
bdo: HTMLAttributes;
|
|
1865
|
-
blockquote: BlockquoteHTMLAttributes<
|
|
1867
|
+
blockquote: BlockquoteHTMLAttributes<HTMLQuoteElement>;
|
|
1866
1868
|
body: HTMLAttributes<HTMLBodyElement>;
|
|
1867
1869
|
br: HTMLAttributes<HTMLBRElement>;
|
|
1868
1870
|
button: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
@@ -1872,7 +1874,7 @@ export declare namespace LuminaJsx {
|
|
|
1872
1874
|
code: HTMLAttributes;
|
|
1873
1875
|
col: ColHTMLAttributes<HTMLTableColElement>;
|
|
1874
1876
|
colgroup: ColgroupHTMLAttributes<HTMLTableColElement>;
|
|
1875
|
-
data: DataHTMLAttributes<
|
|
1877
|
+
data: DataHTMLAttributes<HTMLDataElement>;
|
|
1876
1878
|
datalist: HTMLAttributes<HTMLDataListElement>;
|
|
1877
1879
|
dd: HTMLAttributes;
|
|
1878
1880
|
del: HTMLAttributes;
|
|
@@ -1914,16 +1916,16 @@ export declare namespace LuminaJsx {
|
|
|
1914
1916
|
map: MapHTMLAttributes<HTMLMapElement>;
|
|
1915
1917
|
math: MathMLAttributes;
|
|
1916
1918
|
mark: HTMLAttributes;
|
|
1917
|
-
menu: MenuHTMLAttributes<
|
|
1919
|
+
menu: MenuHTMLAttributes<HTMLMenuElement>;
|
|
1918
1920
|
meta: MetaHTMLAttributes<HTMLMetaElement>;
|
|
1919
|
-
meter: MeterHTMLAttributes<
|
|
1921
|
+
meter: MeterHTMLAttributes<HTMLMeterElement>;
|
|
1920
1922
|
nav: HTMLAttributes;
|
|
1921
1923
|
noscript: HTMLAttributes;
|
|
1922
1924
|
object: ObjectHTMLAttributes<HTMLObjectElement>;
|
|
1923
1925
|
ol: OlHTMLAttributes<HTMLOListElement>;
|
|
1924
1926
|
optgroup: OptgroupHTMLAttributes<HTMLOptGroupElement>;
|
|
1925
1927
|
option: OptionHTMLAttributes<HTMLOptionElement>;
|
|
1926
|
-
output: OutputHTMLAttributes<
|
|
1928
|
+
output: OutputHTMLAttributes<HTMLOutputElement>;
|
|
1927
1929
|
p: HTMLAttributes<HTMLParagraphElement>;
|
|
1928
1930
|
picture: HTMLAttributes;
|
|
1929
1931
|
pre: HTMLAttributes<HTMLPreElement>;
|
|
@@ -1961,7 +1963,7 @@ export declare namespace LuminaJsx {
|
|
|
1961
1963
|
tfoot: HTMLAttributes<HTMLTableSectionElement>;
|
|
1962
1964
|
th: ThHTMLAttributes<HTMLTableCellElement>;
|
|
1963
1965
|
thead: HTMLAttributes<HTMLTableSectionElement>;
|
|
1964
|
-
time: TimeHTMLAttributes<
|
|
1966
|
+
time: TimeHTMLAttributes<HTMLTimeElement>;
|
|
1965
1967
|
title: HTMLAttributes<HTMLTitleElement>;
|
|
1966
1968
|
tr: HTMLAttributes<HTMLTableRowElement>;
|
|
1967
1969
|
track: TrackHTMLAttributes<HTMLTrackElement>;
|
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.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"clean": "rimraf ./dist ./build ./turbo ./node_modules"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@arcgis/components-controllers": "4.32.0-next.
|
|
33
|
-
"@arcgis/components-utils": "4.32.0-next.
|
|
32
|
+
"@arcgis/components-controllers": "4.32.0-next.3",
|
|
33
|
+
"@arcgis/components-utils": "4.32.0-next.3",
|
|
34
34
|
"@lit-labs/ssr": "^3.2.2",
|
|
35
35
|
"@lit-labs/ssr-client": "^1.1.7",
|
|
36
36
|
"csstype": "^3.1.3",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"tslib": "^2.7.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@arcgis/typescript-config": "4.32.0-next.
|
|
41
|
+
"@arcgis/typescript-config": "4.32.0-next.3",
|
|
42
42
|
"@types/node": "^20.2.5",
|
|
43
43
|
"eslint": "^8.55.0",
|
|
44
44
|
"rimraf": "^5.0.0",
|
|
45
45
|
"tsup": "^8.3.0",
|
|
46
46
|
"typescript": "~5.4.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "afc83258caec2a09162da0def77c2ff3867212c1"
|
|
49
49
|
}
|