@arcgis/lumina-compiler 5.0.0-next.95 → 5.0.0-next.97
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.js +225 -211
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { externalizeDependencies as as, path as u, toSystemPathSeparators as de, retrievePackageJson as R, fetchPackageLocation as
|
|
1
|
+
import { externalizeDependencies as as, path as u, toSystemPathSeparators as de, retrievePackageJson as R, fetchPackageLocation as Ai, asyncRetrievePackageJson as Ni, existsAsync as U, findPath as cs, toPosixPathSeparators as De, isPosix as Li, getCwd as Fi } from "@arcgis/components-build-utils";
|
|
2
2
|
import ls from "vite-plugin-dts";
|
|
3
3
|
import o from "typescript";
|
|
4
4
|
import { f as E, l as T } from "./logger-hJvg0JOj.js";
|
|
5
|
-
import { getMemberName as Y, nodeDocToSynthesizedComment as X, apiMemberToNodeDoc as Q, unsafeGetUndocumentedPrinter as
|
|
5
|
+
import { getMemberName as Y, nodeDocToSynthesizedComment as X, apiMemberToNodeDoc as Q, unsafeGetUndocumentedPrinter as ji, unsafeUndocumentedTs as Re, findReferenceRanges as ds, globalPackageIdentifier as Di, getBasename as ps, setDefaultFromInitializer as ut, setApiDocFromSymbol as $t, apiExtractorError as Z, extractBooleanInitializer as re, ApiExtractor as ms, compareNamedNodes as tt, hasIgnoredModifier as us, symbolToDocs as _t, setApiDocFromJsDoc as Wt, multipleJsDocTags as fs, findDecorator as Ht, postProcessLinks as M, isApiMethod as gs, isApiProperty as ys } from "@arcgis/api-extractor";
|
|
6
6
|
import { isNotUndefined as j } from "@arcgis/toolkit/predicate";
|
|
7
|
-
import { camelToKebab as
|
|
8
|
-
import { lazyMetaSubItemJoiner as Ss, lazyMetaItemJoiner as it, lazyMetaGroupJoiner as ws, propertyFlagAttribute as
|
|
7
|
+
import { camelToKebab as Pt, kebabToPascal as hs, uncapitalize as ft, getPreamble as vs, capitalize as bs } from "@arcgis/toolkit/string";
|
|
8
|
+
import { lazyMetaSubItemJoiner as Ss, lazyMetaItemJoiner as it, lazyMetaGroupJoiner as ws, propertyFlagAttribute as Ut, propertyFlagReflect as Ts, propertyFlagBoolean as Es, propertyFlagNumber as Cs, propertyFlagState as $s, propertyFlagReadOnly as Ps, propertyFlagNoAccessor as xs } from "@arcgis/lumina/config";
|
|
9
9
|
import { readdir as Ge, readFile as B, rm as Is, mkdir as ee, cp as ks, writeFile as F, copyFile as As } from "node:fs/promises";
|
|
10
10
|
import { mappedFind as be } from "@arcgis/toolkit/array";
|
|
11
11
|
import { build as Ns } from "esbuild";
|
|
12
|
-
import { identity as
|
|
12
|
+
import { identity as gt } from "@arcgis/toolkit/function";
|
|
13
13
|
import { Deferred as Ri } from "@arcgis/toolkit/promise";
|
|
14
14
|
import { glob as Ls } from "glob";
|
|
15
15
|
import Fs from "mime-types";
|
|
@@ -33,7 +33,7 @@ function Rs(e) {
|
|
|
33
33
|
e.isInStorybook && (i.resolveId = void 0);
|
|
34
34
|
}, i;
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const xt = "customElement.js", Mi = "customElement.d.ts";
|
|
37
37
|
function Os(e, t, i) {
|
|
38
38
|
const s = i.split(u.sep).slice(2);
|
|
39
39
|
let r = t._componentPathMapping;
|
|
@@ -81,7 +81,7 @@ function Ji(e, t, i = ".d.ts") {
|
|
|
81
81
|
const s = (i === "" ? t : t.slice(0, -i.length)).split(u.sep);
|
|
82
82
|
return s.at(Ks) !== s.at(Bs) ? t : u.join(
|
|
83
83
|
s.slice(0, -1).join(u.sep),
|
|
84
|
-
i === "" ?
|
|
84
|
+
i === "" ? xt : Mi
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
87
|
const Ks = -1, Bs = -2, _s = /["']\.\.?\/[^'"]+/gu, Ki = (e, t, i, n) => e.replaceAll(_s, (s) => {
|
|
@@ -101,7 +101,7 @@ function Ws(e) {
|
|
|
101
101
|
return `/// <reference path="../../index.d.ts" />
|
|
102
102
|
${e}`;
|
|
103
103
|
}
|
|
104
|
-
const
|
|
104
|
+
const zt = "customElement", Hs = (e, t) => {
|
|
105
105
|
const { filePath: i, content: n } = e;
|
|
106
106
|
if (!i.startsWith(t.dir.distComponents))
|
|
107
107
|
return e;
|
|
@@ -120,7 +120,7 @@ const Ut = "customElement", Hs = (e, t) => {
|
|
|
120
120
|
if (t.apiModule?.declarations.forEach((r) => {
|
|
121
121
|
"customElement" in r && i.push(
|
|
122
122
|
o.factory.createExpressionStatement(
|
|
123
|
-
o.factory.createCallExpression(o.factory.createIdentifier(
|
|
123
|
+
o.factory.createCallExpression(o.factory.createIdentifier(zt), void 0, [
|
|
124
124
|
o.factory.createStringLiteral(r.tagName),
|
|
125
125
|
o.factory.createIdentifier(r.name)
|
|
126
126
|
])
|
|
@@ -138,7 +138,7 @@ const Ut = "customElement", Hs = (e, t) => {
|
|
|
138
138
|
!1,
|
|
139
139
|
void 0,
|
|
140
140
|
o.factory.createNamedImports([
|
|
141
|
-
o.factory.createImportSpecifier(!1, void 0, o.factory.createIdentifier(
|
|
141
|
+
o.factory.createImportSpecifier(!1, void 0, o.factory.createIdentifier(zt))
|
|
142
142
|
])
|
|
143
143
|
),
|
|
144
144
|
o.factory.createStringLiteral(n)
|
|
@@ -181,8 +181,8 @@ const zs = (e) => (t, i) => (
|
|
|
181
181
|
)
|
|
182
182
|
), qs = (e, t) => t.isInStorybook ? !1 : e, Vs = (e, t) => (
|
|
183
183
|
// Short-circuit quickly if file doesn't look like the one we want to exclude
|
|
184
|
-
e.filePath.endsWith(
|
|
185
|
-
),
|
|
184
|
+
e.filePath.endsWith(qt) && e.filePath === u.join(t.dir.dist, qt) ? !1 : e
|
|
185
|
+
), qt = "lumina.d.ts", Gs = (e, t) => {
|
|
186
186
|
const i = t.dir.dist, n = `${i}src/`;
|
|
187
187
|
return e.filePath.startsWith(n) ? { ...e, filePath: `${i}${e.filePath.slice(n.length)}` } : !1;
|
|
188
188
|
}, Wi = (e) => e.includes("__test") || e.includes(".e2e.") || e.includes(".spec.") || e.includes(".test."), Xs = (e) => Wi(e.filePath) || e.filePath.includes(".stories.") || e.filePath.includes(".story.") ? !1 : e, Qs = (e) => e.content.includes("__esri.") ? {
|
|
@@ -343,7 +343,7 @@ function ur(e, t, i) {
|
|
|
343
343
|
if (r === void 0)
|
|
344
344
|
return e;
|
|
345
345
|
const a = [], c = /* @__PURE__ */ new Set(), d = [], l = [];
|
|
346
|
-
|
|
346
|
+
yt = void 0;
|
|
347
347
|
for (let g = 0; g < n.members.length; g++) {
|
|
348
348
|
const y = n.members[g], h = gr(y, r, d, c, t);
|
|
349
349
|
h === void 0 ? a.push(y) : Array.isArray(h) ? l.push(...h) : (Ke(h, i), l.push(h));
|
|
@@ -386,7 +386,7 @@ function fr(e) {
|
|
|
386
386
|
(t) => o.isImportTypeNode(t) && t.qualifier !== void 0 && o.isIdentifier(t.qualifier) && t.qualifier.escapedText === "T9nMeta"
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
|
-
let
|
|
389
|
+
let yt;
|
|
390
390
|
function gr(e, t, i, n, s) {
|
|
391
391
|
const r = Y(e.name);
|
|
392
392
|
if (r === void 0)
|
|
@@ -394,15 +394,15 @@ function gr(e, t, i, n, s) {
|
|
|
394
394
|
const a = t.members.find((d) => d.name === r);
|
|
395
395
|
if (a?.privacy !== void 0)
|
|
396
396
|
return;
|
|
397
|
-
const c =
|
|
398
|
-
if (
|
|
397
|
+
const c = yt;
|
|
398
|
+
if (yt = r, a === void 0) {
|
|
399
399
|
if (o.isPropertyDeclaration(e)) {
|
|
400
400
|
const d = t.events?.find((p) => p.name === r);
|
|
401
401
|
if (d === void 0)
|
|
402
402
|
return;
|
|
403
403
|
const l = o.factory.updatePropertyDeclaration(
|
|
404
404
|
e,
|
|
405
|
-
|
|
405
|
+
Xt(e.modifiers),
|
|
406
406
|
e.name,
|
|
407
407
|
void 0,
|
|
408
408
|
vr(e.type, s),
|
|
@@ -416,19 +416,19 @@ function gr(e, t, i, n, s) {
|
|
|
416
416
|
if (a.readonly === !0) {
|
|
417
417
|
const d = o.factory.updatePropertyDeclaration(
|
|
418
418
|
e,
|
|
419
|
-
|
|
419
|
+
Xt(e.modifiers),
|
|
420
420
|
e.name,
|
|
421
421
|
void 0,
|
|
422
|
-
|
|
422
|
+
Gt(n, e.type, s),
|
|
423
423
|
e.initializer
|
|
424
424
|
);
|
|
425
425
|
return o.setSyntheticLeadingComments(d, X(Q(a))), d;
|
|
426
426
|
} else if (a.getterType !== void 0) {
|
|
427
|
-
const d =
|
|
427
|
+
const d = Vt.exec(a.getterType.text)?.groups;
|
|
428
428
|
if (d === void 0)
|
|
429
429
|
return T.error(
|
|
430
430
|
"@arcgis/lumina:transformComponentMembers",
|
|
431
|
-
`Expected bound accessor getter type to match ${
|
|
431
|
+
`Expected bound accessor getter type to match ${Vt}, but got ${a.getterType.text}`,
|
|
432
432
|
s.fileName
|
|
433
433
|
), e;
|
|
434
434
|
n.add(d.accessor);
|
|
@@ -466,7 +466,7 @@ function gr(e, t, i, n, s) {
|
|
|
466
466
|
)
|
|
467
467
|
];
|
|
468
468
|
} else
|
|
469
|
-
return
|
|
469
|
+
return Gt(n, e.type, s), o.setSyntheticLeadingComments(e, X(Q(a))), e;
|
|
470
470
|
else if (o.isGetAccessor(e) || o.isSetAccessor(e)) {
|
|
471
471
|
if (o.isSetAccessor(e)) {
|
|
472
472
|
if (a.readonly === !0)
|
|
@@ -482,8 +482,8 @@ function gr(e, t, i, n, s) {
|
|
|
482
482
|
} else if (o.isMethodDeclaration(e))
|
|
483
483
|
return o.setSyntheticLeadingComments(e, X(Q(a))), e;
|
|
484
484
|
}
|
|
485
|
-
const
|
|
486
|
-
function
|
|
485
|
+
const Vt = /^typeof this\.(?<accessor>[^.]+)\.(?<boundProperty>[^.]+)$/u;
|
|
486
|
+
function Gt(e, t, i) {
|
|
487
487
|
const s = (t?.pos !== -1 ? t?.getText(i) : void 0)?.match(yr) ?? [];
|
|
488
488
|
for (const r of s)
|
|
489
489
|
e.add(r);
|
|
@@ -534,7 +534,7 @@ function hr(e, t) {
|
|
|
534
534
|
}
|
|
535
535
|
return e;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function Xt(e) {
|
|
538
538
|
return e?.some((i) => i.kind === o.SyntaxKind.ReadonlyKeyword) ? e : [o.factory.createModifier(o.SyntaxKind.ReadonlyKeyword), ...e ?? []];
|
|
539
539
|
}
|
|
540
540
|
function Ne(e) {
|
|
@@ -558,12 +558,12 @@ function vr(e, t) {
|
|
|
558
558
|
t.fileName
|
|
559
559
|
), e);
|
|
560
560
|
}
|
|
561
|
-
const br = [rr, mr],
|
|
561
|
+
const br = [rr, mr], Qt = "@arcgis/lumina:componentDtsTransformer";
|
|
562
562
|
function Sr(e) {
|
|
563
563
|
let t;
|
|
564
564
|
const i = wr(e);
|
|
565
565
|
return {
|
|
566
|
-
name:
|
|
566
|
+
name: Qt,
|
|
567
567
|
supports(n) {
|
|
568
568
|
return t ??= new Set(e.componentFiles), n.endsWith(".tsx") && t.has(n);
|
|
569
569
|
},
|
|
@@ -572,7 +572,7 @@ function Sr(e) {
|
|
|
572
572
|
return [];
|
|
573
573
|
const s = e.typeScriptProgram.getSourceFile(n);
|
|
574
574
|
if (s === void 0)
|
|
575
|
-
throw Error(E(
|
|
575
|
+
throw Error(E(Qt, `Could not find source file: ${de(n)}`));
|
|
576
576
|
const r = [];
|
|
577
577
|
return e.typeScriptProgram.emit(
|
|
578
578
|
s,
|
|
@@ -686,7 +686,7 @@ function $r(e) {
|
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
688
|
}
|
|
689
|
-
const Pr = "Fragment", nt = "DynamicHtmlTag", st = "DynamicSvgTag", Be = Symbol("dynamic html tag name"),
|
|
689
|
+
const Pr = "Fragment", nt = "DynamicHtmlTag", st = "DynamicSvgTag", Be = Symbol("dynamic html tag name"), ht = Symbol("dynamic svg tag name"), Vi = /* @__PURE__ */ new Set([
|
|
690
690
|
/**
|
|
691
691
|
* There is a "className" property. However, in JSX typings we use "class"
|
|
692
692
|
* instead to keep name shorter and to match Stencil's name. Thus, it should
|
|
@@ -735,7 +735,7 @@ const Pr = "Fragment", nt = "DynamicHtmlTag", st = "DynamicSvgTag", Be = Symbol(
|
|
|
735
735
|
"exportParts",
|
|
736
736
|
"hreflang",
|
|
737
737
|
"media"
|
|
738
|
-
]),
|
|
738
|
+
]), vt = {
|
|
739
739
|
button: /* @__PURE__ */ new Set(["popoverTarget"]),
|
|
740
740
|
input: /* @__PURE__ */ new Set(["list", "capture"]),
|
|
741
741
|
iframe: /* @__PURE__ */ new Set(["sandbox"]),
|
|
@@ -1567,7 +1567,7 @@ function Xi(e) {
|
|
|
1567
1567
|
e.stringifiedNonReflected
|
|
1568
1568
|
));
|
|
1569
1569
|
}
|
|
1570
|
-
const
|
|
1570
|
+
const Zt = /* @__PURE__ */ new Set(["itemScope"]), Qi = /* @__PURE__ */ new Set([
|
|
1571
1571
|
"abort",
|
|
1572
1572
|
"animationCancel",
|
|
1573
1573
|
"animationEnd",
|
|
@@ -1683,7 +1683,7 @@ const Qt = /* @__PURE__ */ new Set(["itemScope"]), Qi = /* @__PURE__ */ new Set(
|
|
|
1683
1683
|
"source",
|
|
1684
1684
|
"track",
|
|
1685
1685
|
"wbr"
|
|
1686
|
-
]),
|
|
1686
|
+
]), It = /* @__PURE__ */ new Set([
|
|
1687
1687
|
"animate",
|
|
1688
1688
|
"animateMotion",
|
|
1689
1689
|
"animateTransform",
|
|
@@ -1742,7 +1742,7 @@ const Qt = /* @__PURE__ */ new Set(["itemScope"]), Qi = /* @__PURE__ */ new Set(
|
|
|
1742
1742
|
"tspan",
|
|
1743
1743
|
"use",
|
|
1744
1744
|
"view"
|
|
1745
|
-
]), Ir = /* @__PURE__ */ new Set(["title", "svg", "a", "script", "style"]),
|
|
1745
|
+
]), Ir = /* @__PURE__ */ new Set(["title", "svg", "a", "script", "style"]), kt = /* @__PURE__ */ new Set([
|
|
1746
1746
|
"annotation-xml",
|
|
1747
1747
|
"annotation",
|
|
1748
1748
|
"maction",
|
|
@@ -1801,7 +1801,7 @@ const Nr = (e) => e.replaceAll("\\", "\\\\").replace(Lr, "\\${").replaceAll("`",
|
|
|
1801
1801
|
"&": "&",
|
|
1802
1802
|
"<": "<",
|
|
1803
1803
|
">": ">"
|
|
1804
|
-
}, Zi = (e) => e.replace(Dr, (t) => Rr[t]),
|
|
1804
|
+
}, Zi = (e) => e.replace(Dr, (t) => Rr[t]), At = (e) => typeof e == "string" && e.includes("-") && !kr.has(e);
|
|
1805
1805
|
function Or(e) {
|
|
1806
1806
|
const t = [];
|
|
1807
1807
|
for (const i of e.matchAll(Mr)) {
|
|
@@ -1842,7 +1842,7 @@ const Mr = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, Jr = /\n\s+\
|
|
|
1842
1842
|
"bindProperty",
|
|
1843
1843
|
"bindEvent",
|
|
1844
1844
|
"bindAttribute"
|
|
1845
|
-
]), sn = /\.(?:css|s[ac]ss|less|styl(?:us)?|postcss|pcss|sss)(\\?|$)/u, ge = "@arcgis/lumina:loadLitCss", _e = "?litCss", ie = "?layeredLitCss",
|
|
1845
|
+
]), sn = /\.(?:css|s[ac]ss|less|styl(?:us)?|postcss|pcss|sss)(\\?|$)/u, ge = "@arcgis/lumina:loadLitCss", _e = "?litCss", ie = "?layeredLitCss", bt = "?globalFileLitCss", qr = (e) => ({
|
|
1846
1846
|
name: ge,
|
|
1847
1847
|
enforce: "pre",
|
|
1848
1848
|
configResolved(t) {
|
|
@@ -1878,8 +1878,8 @@ const Mr = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, Jr = /\n\s+\
|
|
|
1878
1878
|
c && (a = a.slice(0, -_e.length));
|
|
1879
1879
|
const d = a.endsWith(ie);
|
|
1880
1880
|
d && (a = a.slice(0, -ie.length));
|
|
1881
|
-
const l = a.endsWith(
|
|
1882
|
-
if (l && (a = a.slice(0, -
|
|
1881
|
+
const l = a.endsWith(bt);
|
|
1882
|
+
if (l && (a = a.slice(0, -bt.length)), !c && !d && !l)
|
|
1883
1883
|
return await n.handler.call(this, r, a);
|
|
1884
1884
|
const p = `${a}?inline`, f = await n.handler.call(this, r, p), { code: m, ...g } = typeof f == "string" ? { code: f } : f ?? {};
|
|
1885
1885
|
if (typeof m != "string" || !m.startsWith(rn) || !m.endsWith(Vr))
|
|
@@ -1962,7 +1962,7 @@ function no(e) {
|
|
|
1962
1962
|
"document.adoptedStyleSheets = [...document.adoptedStyleSheets, globalStyles.styleSheet!];",
|
|
1963
1963
|
cn("", e)
|
|
1964
1964
|
].join(`
|
|
1965
|
-
`) : `import "${i}${
|
|
1965
|
+
`) : `import "${i}${bt}";`;
|
|
1966
1966
|
}
|
|
1967
1967
|
const an = "hydrated";
|
|
1968
1968
|
function so(e) {
|
|
@@ -2026,7 +2026,7 @@ function ln(e) {
|
|
|
2026
2026
|
for (let s = 0; s < e.members.length; s++) {
|
|
2027
2027
|
const r = e.members[s];
|
|
2028
2028
|
if (r.kind === "field") {
|
|
2029
|
-
const a = typeof r.attribute == "string", c = a && r.attribute !==
|
|
2029
|
+
const a = typeof r.attribute == "string", c = a && r.attribute !== Pt(r.name);
|
|
2030
2030
|
t.push(
|
|
2031
2031
|
a && !c ? [r.name] : [r.name, c ? String(r.attribute) : ""]
|
|
2032
2032
|
);
|
|
@@ -2042,7 +2042,7 @@ if(import.meta.hot) {
|
|
|
2042
2042
|
${e.map((t) => ` "/${t}",`).join(`
|
|
2043
2043
|
`)}
|
|
2044
2044
|
], handleHmrUpdate);
|
|
2045
|
-
}`, dn = (e, t = u.resolve("src")) => u.relative(t, u.join(e, "..",
|
|
2045
|
+
}`, dn = (e, t = u.resolve("src")) => u.relative(t, u.join(e, "..", xt.slice(0, -3))), We = async (e, t, i = t) => await Ge(i, { recursive: !0 }).catch((n) => {
|
|
2046
2046
|
if (String(n).includes("ENOENT"))
|
|
2047
2047
|
return T.error("@arcgis/lumina", `Unable to find the ${i} directory (cwd: ${process.cwd()})`), [];
|
|
2048
2048
|
throw n;
|
|
@@ -2064,8 +2064,8 @@ function Te(e, t) {
|
|
|
2064
2064
|
return i === n;
|
|
2065
2065
|
}
|
|
2066
2066
|
const uo = -2;
|
|
2067
|
-
function
|
|
2068
|
-
const t = o.isUnionTypeNode(e) ? e.types.map(
|
|
2067
|
+
function Yt(e) {
|
|
2068
|
+
const t = o.isUnionTypeNode(e) ? e.types.map(ei) : [ei(e)], i = new Set(t), n = i.delete("true"), s = i.delete("false");
|
|
2069
2069
|
(n || s) && i.add("boolean");
|
|
2070
2070
|
let r = Array.from(i).sort();
|
|
2071
2071
|
if (r.length > 1 && (r = r.map((a) => a.includes("=>") ? `(${a})` : a)), !(r.length > fo))
|
|
@@ -2090,8 +2090,8 @@ function ho(e) {
|
|
|
2090
2090
|
};
|
|
2091
2091
|
}
|
|
2092
2092
|
function He(e, t, i, n, s = !1) {
|
|
2093
|
-
let { typeNode: r, references: a } =
|
|
2094
|
-
c === void 0 && ({ typeNode: r, references: a } =
|
|
2093
|
+
let { typeNode: r, references: a } = ii(e, t, i, n), c = Yt(r);
|
|
2094
|
+
c === void 0 && ({ typeNode: r, references: a } = ii(e, t, i, n, !1), c = Yt(r) ?? []);
|
|
2095
2095
|
const d = s ? c.filter((m) => m.type !== "null" && m.type !== "undefined") : c, l = pn(d), p = yo(d), f = ds(a, l);
|
|
2096
2096
|
return {
|
|
2097
2097
|
text: l,
|
|
@@ -2099,25 +2099,25 @@ function He(e, t, i, n, s = !1) {
|
|
|
2099
2099
|
values: p
|
|
2100
2100
|
};
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2102
|
+
function ei(e) {
|
|
2103
2103
|
vo.writeNode(o.EmitHint.Unspecified, e, void 0, rt);
|
|
2104
2104
|
const t = rt.getText();
|
|
2105
2105
|
return rt.clear(), t;
|
|
2106
2106
|
}
|
|
2107
|
-
const vo =
|
|
2107
|
+
const vo = ji({ removeComments: !0 }), rt = Re.createTextWriter(`
|
|
2108
2108
|
`), un = o.TypeFormatFlags.NoTruncation | o.TypeFormatFlags.WriteArrayAsGenericType | o.TypeFormatFlags.SuppressAnyReturnType | o.TypeFormatFlags.MultilineObjectLiterals, bo = un & o.TypeFormatFlags.NodeBuilderFlagsMask, So = bo | o.NodeBuilderFlags.IgnoreErrors | o.NodeBuilderFlags.NoTruncation;
|
|
2109
2109
|
function wo(e, t, i, n = !0) {
|
|
2110
2110
|
const s = /* @__PURE__ */ new Map();
|
|
2111
2111
|
oe(t, s, i, n);
|
|
2112
|
-
const r = t.flags & o.TypeFlags.Union ? t.types.every(
|
|
2112
|
+
const r = t.flags & o.TypeFlags.Union ? t.types.every(ti) : ti(t), a = e.typeToTypeNode(
|
|
2113
2113
|
t,
|
|
2114
2114
|
void 0,
|
|
2115
2115
|
So & (r ? ~o.TypeFormatFlags.MultilineObjectLiterals : -1)
|
|
2116
2116
|
);
|
|
2117
2117
|
return s.forEach(To), a === void 0 ? (T.warn("@arcgis/lumina", "Unexpected case: Failed to convert type to type node."), o.factory.createTypeReferenceNode(o.factory.createIdentifier("unknown"), void 0)) : a;
|
|
2118
2118
|
}
|
|
2119
|
-
const
|
|
2120
|
-
function
|
|
2119
|
+
const ti = (e) => e.flags & o.TypeFlags.Object ? e.getProperties().length === 1 : !!(e.flags & o.TypeFlags.PossiblyFalsy);
|
|
2120
|
+
function ii(e, t, i, n, s = !0) {
|
|
2121
2121
|
const r = [], a = /* @__PURE__ */ new Set();
|
|
2122
2122
|
function c(l, p) {
|
|
2123
2123
|
const f = l.aliasSymbol ?? l.symbol;
|
|
@@ -2200,7 +2200,7 @@ function Eo(e, t, i, n) {
|
|
|
2200
2200
|
if (s.length === 0)
|
|
2201
2201
|
return {
|
|
2202
2202
|
name: t,
|
|
2203
|
-
package:
|
|
2203
|
+
package: Di,
|
|
2204
2204
|
module: void 0
|
|
2205
2205
|
};
|
|
2206
2206
|
const { packageName: r, moduleName: a } = Co(s[0].fileName, n), c = e.declarations?.[0];
|
|
@@ -2260,20 +2260,20 @@ function gn(e, t, i) {
|
|
|
2260
2260
|
const n = e.declarations;
|
|
2261
2261
|
if (n !== void 0)
|
|
2262
2262
|
for (const s of n) {
|
|
2263
|
-
const r =
|
|
2263
|
+
const r = ni(s, t, i);
|
|
2264
2264
|
if (r !== void 0)
|
|
2265
2265
|
return r;
|
|
2266
2266
|
if (!("members" in s))
|
|
2267
2267
|
continue;
|
|
2268
2268
|
const a = s.members;
|
|
2269
2269
|
for (const c of a) {
|
|
2270
|
-
const d =
|
|
2270
|
+
const d = ni(c, t, i);
|
|
2271
2271
|
if (d !== void 0)
|
|
2272
2272
|
return i === "core" && d.includes("#event-") ? d : Ao(d);
|
|
2273
2273
|
}
|
|
2274
2274
|
}
|
|
2275
2275
|
}
|
|
2276
|
-
function
|
|
2276
|
+
function ni(e, t, i) {
|
|
2277
2277
|
const n = e.jsDoc?.[0];
|
|
2278
2278
|
if (n !== void 0)
|
|
2279
2279
|
return be([n, ...n.tags ?? []], ({ comment: s }) => {
|
|
@@ -2318,7 +2318,7 @@ function Lo(e, t, i, n, s) {
|
|
|
2318
2318
|
}
|
|
2319
2319
|
t.parameters.length === 0 && (t.parameters = void 0);
|
|
2320
2320
|
const a = i.getReturnTypeOfSignature(r), c = He(i, a, n, s), d = i.signatureToString(r, e, un, o.SignatureKind.Call);
|
|
2321
|
-
|
|
2321
|
+
$t(e.name, i, t), t.return = {
|
|
2322
2322
|
type: c
|
|
2323
2323
|
}, t.signature = d.replace(" =>", ":");
|
|
2324
2324
|
}
|
|
@@ -2351,7 +2351,7 @@ function jo(e, t, i, n) {
|
|
|
2351
2351
|
composed: void 0,
|
|
2352
2352
|
privacy: void 0
|
|
2353
2353
|
};
|
|
2354
|
-
return
|
|
2354
|
+
return $t(e.name, s, g), Do(e, g, n), g.privacy === void 0 ? g : void 0;
|
|
2355
2355
|
}
|
|
2356
2356
|
}
|
|
2357
2357
|
const Le = "createEvent";
|
|
@@ -2387,7 +2387,7 @@ function Do(e, t, i) {
|
|
|
2387
2387
|
!o.isPropertyAssignment(r) || !o.isIdentifier(r.name) || (r.name.text === "cancelable" && !re(r.initializer, i) && (t.cancelable = !1), r.name.text === "bubbles" && !re(r.initializer, i) && (t.bubbles = !1), r.name.text === "composed" && !re(r.initializer, i) && (t.composed = !1));
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
|
-
const Ro = "@arcgis/lumina-compiler",
|
|
2390
|
+
const Ro = "@arcgis/lumina-compiler", Nt = {
|
|
2391
2391
|
name: Ro
|
|
2392
2392
|
};
|
|
2393
2393
|
class Ue extends ms {
|
|
@@ -2396,7 +2396,7 @@ class Ue extends ms {
|
|
|
2396
2396
|
}
|
|
2397
2397
|
extract(t) {
|
|
2398
2398
|
const i = super.extract(t);
|
|
2399
|
-
return i.compiler.name =
|
|
2399
|
+
return i.compiler.name = Nt.name, i;
|
|
2400
2400
|
}
|
|
2401
2401
|
extractModules(t) {
|
|
2402
2402
|
const i = super.extractModules(t);
|
|
@@ -2491,7 +2491,7 @@ class Ue extends ms {
|
|
|
2491
2491
|
}
|
|
2492
2492
|
this.localCssImports = void 0;
|
|
2493
2493
|
}
|
|
2494
|
-
|
|
2494
|
+
$t(t.name, this.context.typeScriptTypeChecker, s);
|
|
2495
2495
|
const a = ft(s.name);
|
|
2496
2496
|
s.members.push({
|
|
2497
2497
|
kind: "method",
|
|
@@ -2582,7 +2582,7 @@ console.log("${s.tagName} is ready to go!");
|
|
|
2582
2582
|
default: void 0,
|
|
2583
2583
|
deprecated: void 0,
|
|
2584
2584
|
readonly: c || (s ? t.modifiers?.some((l) => l.kind === o.SyntaxKind.ReadonlyKeyword) : o.isGetAccessor(t) && this.pairedSetter === void 0) ? !0 : void 0,
|
|
2585
|
-
attribute: r === !1 ? void 0 : typeof r == "string" ? r :
|
|
2585
|
+
attribute: r === !1 ? void 0 : typeof r == "string" ? r : Pt(i),
|
|
2586
2586
|
reflects: a || void 0,
|
|
2587
2587
|
docsTags: void 0,
|
|
2588
2588
|
getterType: void 0,
|
|
@@ -2603,8 +2603,8 @@ console.log("${s.tagName} is ready to go!");
|
|
|
2603
2603
|
* When doing full API extraction, extract additional details for a field.
|
|
2604
2604
|
*/
|
|
2605
2605
|
extractComponentFieldDetails(t, i) {
|
|
2606
|
-
const n = i.readonly === !0, s = this.context.typeScriptTypeChecker, r = s.getSymbolAtLocation(t.name), a = r === void 0 ? void 0 :
|
|
2607
|
-
a !== void 0 &&
|
|
2606
|
+
const n = i.readonly === !0, s = this.context.typeScriptTypeChecker, r = s.getSymbolAtLocation(t.name), a = r === void 0 ? void 0 : _t(s, r), c = new Set(a?.docsTags.map((h) => h.name) ?? []);
|
|
2607
|
+
a !== void 0 && Wt(i, a);
|
|
2608
2608
|
let d = !n && i.readonly === !0;
|
|
2609
2609
|
const l = this.pairedSetter ?? t, p = i.default;
|
|
2610
2610
|
ut(t, i, this.file);
|
|
@@ -2618,13 +2618,13 @@ console.log("${s.tagName} is ready to go!");
|
|
|
2618
2618
|
if ("initializer" in t && t.initializer !== void 0 && (!i.default || !i.description) || g) {
|
|
2619
2619
|
const h = t.initializer, v = s.getSymbolAtLocation(h), b = v !== void 0 && ((v.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? s.getAliasedSymbol(v) : v, w = b?.getDeclarations() ?? [];
|
|
2620
2620
|
if (b !== void 0) {
|
|
2621
|
-
const C =
|
|
2621
|
+
const C = _t(s, b);
|
|
2622
2622
|
if (C.docsTags.length > 0) {
|
|
2623
2623
|
C.docsTags = C.docsTags.filter(
|
|
2624
2624
|
(k) => !c.has(k.name) || fs.has(k.name)
|
|
2625
2625
|
);
|
|
2626
2626
|
const S = i.description;
|
|
2627
|
-
|
|
2627
|
+
Wt(i, C), C.docsTags.forEach((k) => {
|
|
2628
2628
|
c.add(k.name);
|
|
2629
2629
|
}), i.description = S ?? i.description;
|
|
2630
2630
|
} else
|
|
@@ -2653,11 +2653,11 @@ console.log("${s.tagName} is ready to go!");
|
|
|
2653
2653
|
* Find the properties given to the `@property()` decorator.
|
|
2654
2654
|
*/
|
|
2655
2655
|
findPropertyOptions(t) {
|
|
2656
|
-
const i =
|
|
2656
|
+
const i = Ht(t, "property");
|
|
2657
2657
|
return i === void 0 ? void 0 : i.arguments?.find(o.isObjectLiteralExpression)?.properties ?? [];
|
|
2658
2658
|
}
|
|
2659
2659
|
extractComponentMethod(t, i) {
|
|
2660
|
-
if (
|
|
2660
|
+
if (Ht(t, "method") === void 0)
|
|
2661
2661
|
return;
|
|
2662
2662
|
const n = t.modifiers?.some?.((r) => r.kind === o.SyntaxKind.AsyncKeyword) ?? !1, s = {
|
|
2663
2663
|
kind: "method",
|
|
@@ -2828,7 +2828,7 @@ function Bo(e, t) {
|
|
|
2828
2828
|
function Fe(e, t) {
|
|
2829
2829
|
e !== void 0 && (e.references?.reduce((i, n) => Wo(n, t, i), 0), e.text = e.text.replaceAll(
|
|
2830
2830
|
Vo,
|
|
2831
|
-
(i, n) =>
|
|
2831
|
+
(i, n) => Lt(t.indexedComponents.get(n)) ?? i
|
|
2832
2832
|
), e.values?.forEach(Ho, t.indexedComponents));
|
|
2833
2833
|
}
|
|
2834
2834
|
const _o = (e) => (t, i) => {
|
|
@@ -2878,17 +2878,17 @@ function Wo(e, t, i) {
|
|
|
2878
2878
|
const n = t.indexedComponents.get(e.name);
|
|
2879
2879
|
if (n !== void 0) {
|
|
2880
2880
|
const s = e.name.length;
|
|
2881
|
-
e.name =
|
|
2882
|
-
const r = e.name.length - s -
|
|
2883
|
-
e.viewUrl = n.demos?.at(0)?.url.replace(t.alternativeDocumentationHost, t.normalizedDocumentationHost), e.start = e.start -
|
|
2881
|
+
e.name = Lt(n);
|
|
2882
|
+
const r = e.name.length - s - si;
|
|
2883
|
+
e.viewUrl = n.demos?.at(0)?.url.replace(t.alternativeDocumentationHost, t.normalizedDocumentationHost), e.start = e.start - si, e.end = e.end + r, i += r - qo;
|
|
2884
2884
|
}
|
|
2885
2885
|
}
|
|
2886
2886
|
return i;
|
|
2887
2887
|
}
|
|
2888
2888
|
function Ho(e) {
|
|
2889
|
-
e.type.startsWith("ToElement<") && (e.type =
|
|
2889
|
+
e.type.startsWith("ToElement<") && (e.type = Lt(this.get(e.type.slice(10, -1))) ?? e.type);
|
|
2890
2890
|
}
|
|
2891
|
-
const
|
|
2891
|
+
const Lt = (e) => e ? `HTML${e.pascalCaseName}Element` : void 0, Uo = "ToElement<", si = Uo.length, zo = ">", qo = zo.length, Vo = /ToElement<(\w+)>/gu;
|
|
2892
2892
|
async function Go(e, t) {
|
|
2893
2893
|
if (e.viteCommand === "serve" && (Object.hasOwn(e, "typeScriptHost") || (e.typeScriptHost = o.createCompilerHost(e.typeScriptConfig, !1))), e.typeScriptProgram !== void 0) {
|
|
2894
2894
|
const i = e.typeScriptProgram.getSourceFiles(), n = new Set(t);
|
|
@@ -2915,20 +2915,20 @@ function Xo() {
|
|
|
2915
2915
|
return ze;
|
|
2916
2916
|
}
|
|
2917
2917
|
function bn() {
|
|
2918
|
-
if (
|
|
2918
|
+
if (St === void 0)
|
|
2919
2919
|
throw Error(
|
|
2920
2920
|
E(
|
|
2921
2921
|
"@arcgis/lumina:retrieveFlatComponentDependencies",
|
|
2922
2922
|
"Component dependencies have not yet been initialized. Await componentDependenciesPromise promise first."
|
|
2923
2923
|
)
|
|
2924
2924
|
);
|
|
2925
|
-
return
|
|
2925
|
+
return St;
|
|
2926
2926
|
}
|
|
2927
2927
|
async function Qo(e, t) {
|
|
2928
2928
|
const i = R(e), n = i.dependencies ?? {}, s = i.peerDependencies ?? {}, a = (await Promise.all(
|
|
2929
2929
|
[...Object.keys(n), ...Object.keys(s)].filter((l) => !Zo.has(l)).flatMap(async (l) => await Sn(l, e))
|
|
2930
2930
|
)).filter(j);
|
|
2931
|
-
ze ??= a,
|
|
2931
|
+
ze ??= a, St = Object.fromEntries(a.flatMap((l) => Object.entries(l.components)));
|
|
2932
2932
|
const c = t?.serve?.extraDependencies?.map(
|
|
2933
2933
|
(l) => typeof l == "string" ? l : l.name
|
|
2934
2934
|
), d = c === void 0 ? a : a.filter((l) => !c.includes(l.packageName));
|
|
@@ -2970,9 +2970,9 @@ const Zo = /* @__PURE__ */ new Set([
|
|
|
2970
2970
|
"vscode-languageserver-textdocument",
|
|
2971
2971
|
"vscode-languageserver-types"
|
|
2972
2972
|
]);
|
|
2973
|
-
let ze,
|
|
2973
|
+
let ze, St, le;
|
|
2974
2974
|
async function Sn(e, t) {
|
|
2975
|
-
const i = await
|
|
2975
|
+
const i = await Ai(e, t), n = await Ni(i), s = "exports" in n, r = la.bind(void 0, s), a = "@stencil/core" in (n.dependencies ?? {}) || "@stencil/core" in (n.devDependencies ?? {}), c = u.join(i, "dist/esm/loader.js");
|
|
2976
2976
|
if (a ? await U(c) : !1) {
|
|
2977
2977
|
const g = await B(c, "utf8"), y = Yo(g, "bootstrapLazy("), h = g.indexOf(", options", y), v = g.slice(y, h), b = v.startsWith('JSON.parse("') ? v.slice(12, -2).replaceAll('\\"', '"') : v;
|
|
2978
2978
|
try {
|
|
@@ -2983,7 +2983,7 @@ async function Sn(e, t) {
|
|
|
2983
2983
|
Error: ${String(w)}`);
|
|
2984
2984
|
}
|
|
2985
2985
|
}
|
|
2986
|
-
const l =
|
|
2986
|
+
const l = ri(n.customElements);
|
|
2987
2987
|
if (l != null) {
|
|
2988
2988
|
const g = u.join(i, l), y = JSON.parse(await B(g, "utf-8")), h = ea(y), v = wn(y, {
|
|
2989
2989
|
packageName: e,
|
|
@@ -2991,7 +2991,7 @@ Error: ${String(w)}`);
|
|
|
2991
2991
|
});
|
|
2992
2992
|
return { type: h ? "@arcgis/lumina" : "unknown", packageName: e, components: v, packageLocation: i, packageJson: n };
|
|
2993
2993
|
}
|
|
2994
|
-
const p =
|
|
2994
|
+
const p = ri(n["web-types"]);
|
|
2995
2995
|
if (p != null) {
|
|
2996
2996
|
const g = u.join(i, p), y = JSON.parse(await B(g, "utf-8")), h = ta(y, {
|
|
2997
2997
|
packageName: e,
|
|
@@ -3009,7 +3009,7 @@ Error: ${String(w)}`);
|
|
|
3009
3009
|
return { type: "unknown", packageName: e, components: g, packageLocation: i, packageJson: n };
|
|
3010
3010
|
}
|
|
3011
3011
|
}
|
|
3012
|
-
const
|
|
3012
|
+
const ri = (e) => Array.isArray(e) ? e[0] : e;
|
|
3013
3013
|
function Yo(e, t) {
|
|
3014
3014
|
const i = e.indexOf(t);
|
|
3015
3015
|
return i === -1 ? -1 : i + t.length;
|
|
@@ -3051,7 +3051,7 @@ function wn(e, t, i = !1) {
|
|
|
3051
3051
|
}
|
|
3052
3052
|
return n;
|
|
3053
3053
|
}
|
|
3054
|
-
const ea = (e) => e.compiler?.name ===
|
|
3054
|
+
const ea = (e) => e.compiler?.name === Nt.name, ta = (e, t) => Object.fromEntries(
|
|
3055
3055
|
(e.contributions?.html?.elements ?? e.contributions?.html?.tags)?.map(
|
|
3056
3056
|
(i) => [
|
|
3057
3057
|
i.name,
|
|
@@ -3089,8 +3089,8 @@ const ea = (e) => e.compiler?.name === At.name, ta = (e, t) => Object.fromEntrie
|
|
|
3089
3089
|
}
|
|
3090
3090
|
];
|
|
3091
3091
|
})
|
|
3092
|
-
), la = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, da = (e) => e.startsWith("/") ? e : `/${e}`,
|
|
3093
|
-
function
|
|
3092
|
+
), la = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, da = (e) => e.startsWith("/") ? e : `/${e}`, Ft = (e, t) => `${e}@fs${da(t)}`;
|
|
3093
|
+
function oi(e, t, i) {
|
|
3094
3094
|
if (se(e))
|
|
3095
3095
|
return e;
|
|
3096
3096
|
{
|
|
@@ -3185,7 +3185,7 @@ const pa = /* @__PURE__ */ new Set([
|
|
|
3185
3185
|
return [s.name, ...c];
|
|
3186
3186
|
const [l, p] = c, f = s?.type === "stringifiedNonReflected";
|
|
3187
3187
|
if (r || f) {
|
|
3188
|
-
const m =
|
|
3188
|
+
const m = oi(
|
|
3189
3189
|
p,
|
|
3190
3190
|
e,
|
|
3191
3191
|
f ? "" : void 0
|
|
@@ -3201,7 +3201,7 @@ const pa = /* @__PURE__ */ new Set([
|
|
|
3201
3201
|
return [i];
|
|
3202
3202
|
if (n === !1)
|
|
3203
3203
|
return [];
|
|
3204
|
-
const s = Oe(e, t, !0), a = s[0] !== "=" ? s : [s[0],
|
|
3204
|
+
const s = Oe(e, t, !0), a = s[0] !== "=" ? s : [s[0], oi(s[1], e)];
|
|
3205
3205
|
return [i, ...a];
|
|
3206
3206
|
},
|
|
3207
3207
|
booleanAttribute(e, t, i) {
|
|
@@ -3214,7 +3214,7 @@ const pa = /* @__PURE__ */ new Set([
|
|
|
3214
3214
|
`Event prop value must be an expression. Found ${String(t?.getText(e.sourceFile))}`
|
|
3215
3215
|
);
|
|
3216
3216
|
const n = i.slice(2), s = ft(n);
|
|
3217
|
-
return [`@${Qi.has(s) ? n.toLowerCase() : ft(n)}=`, ...
|
|
3217
|
+
return [`@${Qi.has(s) ? n.toLowerCase() : ft(n)}=`, ...Rt(e, t, void 0)];
|
|
3218
3218
|
},
|
|
3219
3219
|
directives(e, t) {
|
|
3220
3220
|
if (t === void 0 || !o.isJsxExpression(t))
|
|
@@ -3249,13 +3249,13 @@ const pa = /* @__PURE__ */ new Set([
|
|
|
3249
3249
|
])
|
|
3250
3250
|
];
|
|
3251
3251
|
},
|
|
3252
|
-
class:
|
|
3253
|
-
style:
|
|
3254
|
-
key: (e, t) => [
|
|
3252
|
+
class: ci,
|
|
3253
|
+
style: ci,
|
|
3254
|
+
key: (e, t) => [jt(t, e.sourceFile)],
|
|
3255
3255
|
deferLoad(e, t, i, n) {
|
|
3256
3256
|
if (typeof n != "string")
|
|
3257
3257
|
throw Error("deferLoad prop is not currently supported on dynamic tag names.");
|
|
3258
|
-
if (!
|
|
3258
|
+
if (!At(n))
|
|
3259
3259
|
throw Error(`deferLoad prop is only supported on custom elements. Found ${String(n)}`);
|
|
3260
3260
|
e.neededImports.add("deferLoad");
|
|
3261
3261
|
const s = e.importRenames.deferLoad;
|
|
@@ -3294,7 +3294,7 @@ function at(e, t) {
|
|
|
3294
3294
|
if (s !== void 0)
|
|
3295
3295
|
return { name: s, type: "stringifiedNonReflected" };
|
|
3296
3296
|
}
|
|
3297
|
-
function
|
|
3297
|
+
function jt(e, t) {
|
|
3298
3298
|
if (e !== void 0 && o.isJsxExpression(e) && e.expression !== void 0)
|
|
3299
3299
|
return e.expression;
|
|
3300
3300
|
if (e !== void 0 && o.isStringLiteral(e))
|
|
@@ -3317,10 +3317,10 @@ function Oe(e, t, i = !1) {
|
|
|
3317
3317
|
`Invalid JSX syntax detected or there is a bug in Lumina. Found ${t.getText(e.sourceFile)}. Expected JSX attribute value to be wrapped in { }`
|
|
3318
3318
|
);
|
|
3319
3319
|
if (o.isStringLiteral(t))
|
|
3320
|
-
return
|
|
3320
|
+
return ai(t, i);
|
|
3321
3321
|
if (o.isJsxExpression(t) && t.expression) {
|
|
3322
3322
|
if (o.isStringLiteral(t.expression))
|
|
3323
|
-
return
|
|
3323
|
+
return ai(t.expression, i);
|
|
3324
3324
|
if (i) {
|
|
3325
3325
|
if (o.isNumericLiteral(t.expression))
|
|
3326
3326
|
return [`=${t.expression.text}`];
|
|
@@ -3328,9 +3328,9 @@ function Oe(e, t, i = !1) {
|
|
|
3328
3328
|
return [`=${t.expression.getText(e.sourceFile)}`];
|
|
3329
3329
|
}
|
|
3330
3330
|
}
|
|
3331
|
-
return ["=", ...
|
|
3331
|
+
return ["=", ...Rt(e, t, void 0)];
|
|
3332
3332
|
}
|
|
3333
|
-
function
|
|
3333
|
+
function ai(e, t) {
|
|
3334
3334
|
if (!t)
|
|
3335
3335
|
return ["=", e];
|
|
3336
3336
|
const i = e.text;
|
|
@@ -3348,7 +3348,7 @@ function oi(e, t) {
|
|
|
3348
3348
|
} else
|
|
3349
3349
|
return [`=${n}`];
|
|
3350
3350
|
}
|
|
3351
|
-
function
|
|
3351
|
+
function ci(e, t, i) {
|
|
3352
3352
|
if (t !== void 0 && o.isStringLiteral(t))
|
|
3353
3353
|
return [`${i}="${t.text}"`];
|
|
3354
3354
|
if (t === void 0 || !o.isJsxExpression(t) || t.expression === void 0)
|
|
@@ -3375,9 +3375,9 @@ function ya(e, t) {
|
|
|
3375
3375
|
]);
|
|
3376
3376
|
}
|
|
3377
3377
|
function ha(e) {
|
|
3378
|
-
if (e && o.isJsxExpression(e) && e.expression && o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text in
|
|
3378
|
+
if (e && o.isJsxExpression(e) && e.expression && o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text in li && e.expression.arguments.length <= 1)
|
|
3379
3379
|
return {
|
|
3380
|
-
propType:
|
|
3380
|
+
propType: li[e.expression.expression.text],
|
|
3381
3381
|
// To simplify checking logic in convertProps, wrap expression in JSX expression
|
|
3382
3382
|
initializer: o.factory.createJsxExpression(
|
|
3383
3383
|
void 0,
|
|
@@ -3386,17 +3386,17 @@ function ha(e) {
|
|
|
3386
3386
|
)
|
|
3387
3387
|
};
|
|
3388
3388
|
}
|
|
3389
|
-
const
|
|
3389
|
+
const li = {
|
|
3390
3390
|
bindProperty: "property",
|
|
3391
3391
|
bindAttribute: "attribute",
|
|
3392
3392
|
bindBooleanAttribute: "booleanAttribute",
|
|
3393
3393
|
bindEvent: "event"
|
|
3394
3394
|
};
|
|
3395
3395
|
function va(e, t, i) {
|
|
3396
|
-
return Sa.has(e) ? e : e.startsWith("on") && t !== void 0 && o.isJsxExpression(t) && t.expression !== void 0 ? "event" : Vi.has(e) || e.includes("-") ? "attribute" : !
|
|
3396
|
+
return Sa.has(e) ? e : e.startsWith("on") && t !== void 0 && o.isJsxExpression(t) && t.expression !== void 0 ? "event" : Vi.has(e) || e.includes("-") ? "attribute" : !At(i) && (Gi.has(e) || (i === ht ? !1 : i === Be ? (
|
|
3397
3397
|
// When tag name is dynamic, we can't help but check if the prop name matches an "always attribute" in any html element
|
|
3398
|
-
Object.values(
|
|
3399
|
-
) :
|
|
3398
|
+
Object.values(vt).some((r) => r.has(e))
|
|
3399
|
+
) : vt[i]?.has(e) === !0)) ? Zt.has(e) ? "booleanAttribute" : "attribute" : i === "svg" || i === "math" || i === ht || i !== Be && (It.has(i) || kt.has(i)) ? e in z.common.reflected || e in z.common.stringifiedReflected || e in z.common.stringifiedNonReflected ? "property" : Zt.has(e) ? "booleanAttribute" : "attribute" : "property";
|
|
3400
3400
|
}
|
|
3401
3401
|
const ba = ["class", "style", "ref", "directives", "key", "deferLoad"], Sa = new Set(ba), wa = (e) => typeof e != "string" || e.trim().length > 0;
|
|
3402
3402
|
function Xe({ key: e, parts: t, litTag: i }, n) {
|
|
@@ -3462,7 +3462,7 @@ function lt(e, t, i) {
|
|
|
3462
3462
|
}
|
|
3463
3463
|
const Tn = (e, t) => e.getFullText(t.sourceFile).slice(0, e.getLeadingTriviaWidth(t.sourceFile));
|
|
3464
3464
|
function En(e, t) {
|
|
3465
|
-
const i =
|
|
3465
|
+
const i = Dt(e);
|
|
3466
3466
|
return i.length === 0 ? t : o.setSyntheticLeadingComments(
|
|
3467
3467
|
t,
|
|
3468
3468
|
i.map((n) => ({
|
|
@@ -3473,9 +3473,9 @@ function En(e, t) {
|
|
|
3473
3473
|
}))
|
|
3474
3474
|
);
|
|
3475
3475
|
}
|
|
3476
|
-
const
|
|
3476
|
+
const Dt = (e) => e.trim().length === 0 ? [] : o.getLeadingCommentRanges(e, 0) ?? [];
|
|
3477
3477
|
function Ca(e) {
|
|
3478
|
-
const t =
|
|
3478
|
+
const t = Dt(e);
|
|
3479
3479
|
if (t.length === 0)
|
|
3480
3480
|
return [e || " "];
|
|
3481
3481
|
const i = t.reduceRight(
|
|
@@ -3516,7 +3516,7 @@ function Pa(e, t) {
|
|
|
3516
3516
|
return t;
|
|
3517
3517
|
const c = Ee(n.body);
|
|
3518
3518
|
let d = !0, l;
|
|
3519
|
-
if (
|
|
3519
|
+
if (di(c))
|
|
3520
3520
|
l = c;
|
|
3521
3521
|
else {
|
|
3522
3522
|
if (!o.isBlock(c))
|
|
@@ -3525,7 +3525,7 @@ function Pa(e, t) {
|
|
|
3525
3525
|
if (!(v && o.isReturnStatement(v) && v.expression))
|
|
3526
3526
|
return t;
|
|
3527
3527
|
const w = Ee(v.expression);
|
|
3528
|
-
if (!
|
|
3528
|
+
if (!di(w))
|
|
3529
3529
|
return t;
|
|
3530
3530
|
const P = c.statements.slice(0, -1);
|
|
3531
3531
|
if (P.some($n))
|
|
@@ -3538,7 +3538,7 @@ function Pa(e, t) {
|
|
|
3538
3538
|
const m = p.attributes.properties[f];
|
|
3539
3539
|
if (m === void 0 || !o.isJsxAttribute(m))
|
|
3540
3540
|
return t;
|
|
3541
|
-
const g =
|
|
3541
|
+
const g = jt(m.initializer, e.sourceFile), y = xa(r, n, g, d, e);
|
|
3542
3542
|
if (y === void 0)
|
|
3543
3543
|
return t;
|
|
3544
3544
|
e.liftedKeys.add(m.name), e.neededImports.add("repeat");
|
|
@@ -3560,7 +3560,7 @@ function Pa(e, t) {
|
|
|
3560
3560
|
)
|
|
3561
3561
|
]);
|
|
3562
3562
|
}
|
|
3563
|
-
const
|
|
3563
|
+
const di = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e);
|
|
3564
3564
|
function $n(e) {
|
|
3565
3565
|
if (o.isReturnStatement(e))
|
|
3566
3566
|
return !0;
|
|
@@ -3690,7 +3690,7 @@ function Pe(e, t) {
|
|
|
3690
3690
|
}
|
|
3691
3691
|
f.docsTags?.some((g) => g.name === "required") ? i.push(p.name) : n.push(p.name);
|
|
3692
3692
|
});
|
|
3693
|
-
const r =
|
|
3693
|
+
const r = pi(i), a = pi(n), c = [
|
|
3694
3694
|
r ? `Required<Pick<${e}, ${r}>>` : "",
|
|
3695
3695
|
a ? `Partial<Pick<${e}, ${a}>>` : "",
|
|
3696
3696
|
s ? `${e}SetterTypes` : ""
|
|
@@ -3698,7 +3698,7 @@ function Pe(e, t) {
|
|
|
3698
3698
|
type ${e}SetterTypes = ${e}["${qi}"]` : "", l = c.filter(Boolean).join(", ");
|
|
3699
3699
|
return [l.length === 0 ? "" : `${l}, `, d];
|
|
3700
3700
|
}
|
|
3701
|
-
const
|
|
3701
|
+
const pi = (e) => e.map((t) => `'${t}'`).join(" | ");
|
|
3702
3702
|
function V(e, t, i) {
|
|
3703
3703
|
if (we(i))
|
|
3704
3704
|
return In(e, i);
|
|
@@ -3732,7 +3732,7 @@ function kn(e, t) {
|
|
|
3732
3732
|
...S
|
|
3733
3733
|
};
|
|
3734
3734
|
}
|
|
3735
|
-
const c = r.text === nt ? Be : r.text === st ?
|
|
3735
|
+
const c = r.text === nt ? Be : r.text === st ? ht : r.text, d = r.text === nt ? pe : r.text === st ? te : Ir.has(c) ? Yi : It.has(c) ? ae : me, l = At(c), p = l ? e.localComponents[c]?.requiredProperties : void 0, f = p === void 0 ? void 0 : new Set(p);
|
|
3736
3736
|
let m;
|
|
3737
3737
|
const g = [];
|
|
3738
3738
|
let y = !1;
|
|
@@ -3762,7 +3762,7 @@ Found ${C.getText(e.sourceFile)}`
|
|
|
3762
3762
|
"mustIncludeAllRequiredProperties",
|
|
3763
3763
|
e.sourceFile.fileName,
|
|
3764
3764
|
`Missing required properties for <${c}> }: ${Array.from(f).join(", ")}`
|
|
3765
|
-
), g.length > 0 && h.push(...g), typeof c == "string" &&
|
|
3765
|
+
), g.length > 0 && h.push(...g), typeof c == "string" && kt.has(c))
|
|
3766
3766
|
throw Error(
|
|
3767
3767
|
`JSX syntax for MathML elements is not yet supported. If you need it, please request it. Otherwise, use the \`math\` function from Lit directly. Tried to use the "${c}" element`
|
|
3768
3768
|
);
|
|
@@ -3793,7 +3793,7 @@ Found ${C.getText(e.sourceFile)}`
|
|
|
3793
3793
|
}
|
|
3794
3794
|
function Da(e, t) {
|
|
3795
3795
|
const i = e.attributes.properties[An(e)];
|
|
3796
|
-
return i && o.isJsxAttribute(i) && !xn(i.name, t) ?
|
|
3796
|
+
return i && o.isJsxAttribute(i) && !xn(i.name, t) ? jt(i.initializer, t.sourceFile) : void 0;
|
|
3797
3797
|
}
|
|
3798
3798
|
const An = (e) => e.attributes.properties.findIndex(({ name: t }) => t && o.isIdentifier(t) && t.text === "key");
|
|
3799
3799
|
function Ra(e, t, i, n) {
|
|
@@ -3823,7 +3823,7 @@ function Me(e, t) {
|
|
|
3823
3823
|
if (o.isJsxText(s))
|
|
3824
3824
|
return [t.compiler.shouldMinifyJsx ? Ar(s.text) : s.text];
|
|
3825
3825
|
if (o.isJsxExpression(s))
|
|
3826
|
-
return
|
|
3826
|
+
return Rt(t, s, s);
|
|
3827
3827
|
{
|
|
3828
3828
|
const r = kn(t, s);
|
|
3829
3829
|
if (r.key === void 0 && r.litTag !== pe && r.litTag !== te) {
|
|
@@ -3847,12 +3847,12 @@ function Oa(e) {
|
|
|
3847
3847
|
o.factory.createStringLiteral("")
|
|
3848
3848
|
) : e;
|
|
3849
3849
|
}
|
|
3850
|
-
function
|
|
3850
|
+
function Rt(e, t, i) {
|
|
3851
3851
|
if (t.expression === void 0) {
|
|
3852
3852
|
if (e.compiler.shouldMinifyJsx)
|
|
3853
3853
|
return [];
|
|
3854
3854
|
const n = t.getText(e.sourceFile).slice(1, -1);
|
|
3855
|
-
return
|
|
3855
|
+
return Dt(n).length === 0 ? [] : [En(n, o.factory.createIdentifier("undefined"))];
|
|
3856
3856
|
}
|
|
3857
3857
|
return o.isStringLiteral(t.expression) ? [Zi(t.expression.text)] : (
|
|
3858
3858
|
/**
|
|
@@ -4184,7 +4184,7 @@ function Qa(e, t) {
|
|
|
4184
4184
|
return !0;
|
|
4185
4185
|
const l = d.name.text, p = d.initializer, f = p.kind === o.SyntaxKind.TrueKeyword, m = p.kind === o.SyntaxKind.FalseKeyword;
|
|
4186
4186
|
if (l === "attribute")
|
|
4187
|
-
return n = !1, i |= f ?
|
|
4187
|
+
return n = !1, i |= f ? Ut : 0, !f && !m;
|
|
4188
4188
|
if (l === "reflect")
|
|
4189
4189
|
return i |= f ? Ts : 0, !1;
|
|
4190
4190
|
if (l === "type" && o.isIdentifier(p)) {
|
|
@@ -4201,7 +4201,7 @@ function Qa(e, t) {
|
|
|
4201
4201
|
}
|
|
4202
4202
|
return !0;
|
|
4203
4203
|
}
|
|
4204
|
-
n && (i |=
|
|
4204
|
+
n && (i |= Ut);
|
|
4205
4205
|
const c = o.factory.createNumericLiteral(i);
|
|
4206
4206
|
return s.length === 0 && (t || r.length === 0) ? c : o.factory.createArrayLiteralExpression([
|
|
4207
4207
|
c,
|
|
@@ -4283,14 +4283,14 @@ function ic(e, t, i, n, s) {
|
|
|
4283
4283
|
l === "property" && (r = d), l === "state" && (a = d);
|
|
4284
4284
|
}
|
|
4285
4285
|
}), r !== -1) {
|
|
4286
|
-
const c = nc(e, t, i, n), d =
|
|
4286
|
+
const c = nc(e, t, i, n), d = mi(t, r, n), l = Za(t, d, e, n, c);
|
|
4287
4287
|
let p = !1;
|
|
4288
|
-
return s.set(c.name, l ?? o.factory.createObjectLiteralExpression()), p = !0, d.options = l,
|
|
4288
|
+
return s.set(c.name, l ?? o.factory.createObjectLiteralExpression()), p = !0, d.options = l, ui(t, d, r, p);
|
|
4289
4289
|
} else if (a !== -1) {
|
|
4290
|
-
const c =
|
|
4290
|
+
const c = mi(t, a, n), d = o.factory.createPropertyAssignment("state", o.factory.createTrue()), l = c.options === void 0 ? o.factory.createObjectLiteralExpression([d]) : o.factory.updateObjectLiteralExpression(c.options, [...c.options.properties, d]), p = Y(t.name);
|
|
4291
4291
|
if (p === void 0)
|
|
4292
4292
|
throw new Error("Failed to statically determine the state property name");
|
|
4293
|
-
return s.set(p, l),
|
|
4293
|
+
return s.set(p, l), ui(t, c, a, !0);
|
|
4294
4294
|
} else
|
|
4295
4295
|
return t;
|
|
4296
4296
|
}
|
|
@@ -4313,11 +4313,11 @@ function nc(e, t, i, n) {
|
|
|
4313
4313
|
throw Error(
|
|
4314
4314
|
`Failed to statically determine the property name: ${t.getText(n)} in ${i} in ${n.fileName}`
|
|
4315
4315
|
);
|
|
4316
|
-
r.name = a, r.attribute ??=
|
|
4316
|
+
r.name = a, r.attribute ??= Pt(a);
|
|
4317
4317
|
}
|
|
4318
4318
|
return r;
|
|
4319
4319
|
}
|
|
4320
|
-
function
|
|
4320
|
+
function mi(e, t, i) {
|
|
4321
4321
|
const n = e.modifiers[t], s = n.expression, r = s.arguments.at(0);
|
|
4322
4322
|
if (r && !o.isObjectLiteralExpression(r))
|
|
4323
4323
|
throw new Error(
|
|
@@ -4325,7 +4325,7 @@ function pi(e, t, i) {
|
|
|
4325
4325
|
);
|
|
4326
4326
|
return { decorator: n, callExpression: s, options: r };
|
|
4327
4327
|
}
|
|
4328
|
-
function
|
|
4328
|
+
function ui(e, t, i, n) {
|
|
4329
4329
|
const s = n ? void 0 : o.factory.updateDecorator(
|
|
4330
4330
|
t.decorator,
|
|
4331
4331
|
o.factory.updateCallExpression(
|
|
@@ -4377,7 +4377,7 @@ const sc = (e, t) => {
|
|
|
4377
4377
|
(c) => On(r, c, t, n, s)
|
|
4378
4378
|
);
|
|
4379
4379
|
};
|
|
4380
|
-
function On(e, t, i, n, s =
|
|
4380
|
+
function On(e, t, i, n, s = gt) {
|
|
4381
4381
|
if (o.isClassDeclaration(t) && // Ignore classes that don't extend anything - those are definitely not components
|
|
4382
4382
|
t.heritageClauses?.some((r) => r.token === o.SyntaxKind.ExtendsKeyword)) {
|
|
4383
4383
|
let r = !1;
|
|
@@ -4537,7 +4537,7 @@ function mc(e) {
|
|
|
4537
4537
|
if (n.error !== void 0)
|
|
4538
4538
|
throw Error(
|
|
4539
4539
|
o.formatDiagnosticsWithColorAndContext([n.error], {
|
|
4540
|
-
getCanonicalFileName:
|
|
4540
|
+
getCanonicalFileName: gt,
|
|
4541
4541
|
getCurrentDirectory: o.sys.getCurrentDirectory,
|
|
4542
4542
|
getNewLine: () => o.sys.newLine
|
|
4543
4543
|
})
|
|
@@ -4547,7 +4547,21 @@ function mc(e) {
|
|
|
4547
4547
|
include: [],
|
|
4548
4548
|
files: [],
|
|
4549
4549
|
exclude: []
|
|
4550
|
-
}, r = o.parseJsonConfigFileContent(
|
|
4550
|
+
}, r = o.parseJsonConfigFileContent(
|
|
4551
|
+
s,
|
|
4552
|
+
o.sys,
|
|
4553
|
+
u.dirname(i),
|
|
4554
|
+
void 0,
|
|
4555
|
+
u.basename(i)
|
|
4556
|
+
);
|
|
4557
|
+
if (r.errors.length > 0)
|
|
4558
|
+
throw Error(
|
|
4559
|
+
o.formatDiagnosticsWithColorAndContext(r.errors, {
|
|
4560
|
+
getCanonicalFileName: gt,
|
|
4561
|
+
getCurrentDirectory: o.sys.getCurrentDirectory,
|
|
4562
|
+
getNewLine: () => o.sys.newLine
|
|
4563
|
+
})
|
|
4564
|
+
);
|
|
4551
4565
|
e.typeScriptConfig = r.options, e.typeScriptConfigPath = i;
|
|
4552
4566
|
}
|
|
4553
4567
|
function Mn(e) {
|
|
@@ -4584,16 +4598,16 @@ function uc(e, t) {
|
|
|
4584
4598
|
e.typeScriptProgram = a.getProgram(), e.typeScriptTypeChecker = e.typeScriptProgram.getTypeChecker(), e._typeScriptReload?.resolve(), e._typeScriptReload = new Ri();
|
|
4585
4599
|
}, e.typeScriptWatchProgram = o.createWatchProgram(n), e.typeScriptConfig = e.typeScriptProgram.getCompilerOptions();
|
|
4586
4600
|
}
|
|
4587
|
-
e.typeScriptConfig.sourceMap = t, e._compilerOptionsForPrinter = pc(e), e._typeScriptPrinter =
|
|
4601
|
+
e.typeScriptConfig.sourceMap = t, e._compilerOptionsForPrinter = pc(e), e._typeScriptPrinter = ji(e._compilerOptionsForPrinter);
|
|
4588
4602
|
}
|
|
4589
|
-
const
|
|
4603
|
+
const wt = "@arcgis/core", dt = R(), xe = wt in (dt.dependencies ?? {}) || wt in (dt.peerDependencies ?? {}) || // Does not depend on `@arcgis/core` to avoid cycle, but uses core in Lumina tests
|
|
4590
4604
|
dt.name === "@arcgis/lumina";
|
|
4591
4605
|
async function fc(e, t, i) {
|
|
4592
4606
|
if (!xe)
|
|
4593
4607
|
return [];
|
|
4594
|
-
const n = await
|
|
4608
|
+
const n = await Ai(wt);
|
|
4595
4609
|
if (t === "cdn") {
|
|
4596
|
-
const s = await
|
|
4610
|
+
const s = await Ni(n), r = Ze({ name: "", version: s.version }, i);
|
|
4597
4611
|
return [
|
|
4598
4612
|
// Use the ESM CDN
|
|
4599
4613
|
// <script src="https://jsdev.arcgis.com/VERSION/"><\/script>
|
|
@@ -4609,12 +4623,12 @@ async function fc(e, t, i) {
|
|
|
4609
4623
|
})
|
|
4610
4624
|
},
|
|
4611
4625
|
// <link rel="stylesheet" id="arcgisCoreStylesheet" href="https://jsdev.arcgis.com/VERSION/esri/themes/light/main.css" />
|
|
4612
|
-
|
|
4626
|
+
fi(r)
|
|
4613
4627
|
];
|
|
4614
4628
|
} else
|
|
4615
|
-
return [
|
|
4629
|
+
return [fi(Ft(e, `${n}/assets/`))];
|
|
4616
4630
|
}
|
|
4617
|
-
const
|
|
4631
|
+
const fi = (e) => ({
|
|
4618
4632
|
// Not using join() because it would turn https:// into https:/
|
|
4619
4633
|
cssHref: `${e}esri/themes/light/main.css`,
|
|
4620
4634
|
// This is used be the theme switcher in `@arcgis/storybook-utils`
|
|
@@ -4907,7 +4921,7 @@ function Sc(e, t) {
|
|
|
4907
4921
|
}
|
|
4908
4922
|
function Bn(e, t) {
|
|
4909
4923
|
if (e.isProcessing) {
|
|
4910
|
-
e.isAsync = !0,
|
|
4924
|
+
e.isAsync = !0, gi(e);
|
|
4911
4925
|
return;
|
|
4912
4926
|
}
|
|
4913
4927
|
e.isProcessing = !0;
|
|
@@ -4927,8 +4941,8 @@ function Bn(e, t) {
|
|
|
4927
4941
|
if (N !== void 0) {
|
|
4928
4942
|
const Ae = [];
|
|
4929
4943
|
for (const et of N.slice(1, -1).split(",")) {
|
|
4930
|
-
const [
|
|
4931
|
-
J || r.add(
|
|
4944
|
+
const [Kt, Bt = Kt] = et.split(" as ");
|
|
4945
|
+
J || r.add(Bt), Ae.push(`${Kt}:${Bt}`);
|
|
4932
4946
|
}
|
|
4933
4947
|
if (J) {
|
|
4934
4948
|
const et = O.oldSingleExportName === void 0 ? `{${Ae.join(",")}}` : Ae[0].split(":")[1];
|
|
@@ -4952,7 +4966,7 @@ ${O.code}`
|
|
|
4952
4966
|
e.isProcessing = !1;
|
|
4953
4967
|
const l = e.isAsync === !0;
|
|
4954
4968
|
if (e.isAsync = l || a.length > 0, !e.isAsync) {
|
|
4955
|
-
e.code =
|
|
4969
|
+
e.code = yi(e.code, t);
|
|
4956
4970
|
return;
|
|
4957
4971
|
}
|
|
4958
4972
|
const p = Cc(r);
|
|
@@ -4966,13 +4980,13 @@ ${O.code}`
|
|
|
4966
4980
|
}
|
|
4967
4981
|
f = f.slice(0, k) + W + f.slice(k + L);
|
|
4968
4982
|
}
|
|
4969
|
-
const [m, g] =
|
|
4983
|
+
const [m, g] = gi(e), y = i.findLastIndex((S) => S.length > 0), h = i.slice(0, y + 1).join(","), b = `export default $arcgis.t(${i.length === 0 ? "_" : `([${h}])`}=>{`, w = n.join(","), P = `${g}},${w})`;
|
|
4970
4984
|
let A = e.code.slice(c, m);
|
|
4971
|
-
A = `${s.join("")}${A}`, A =
|
|
4985
|
+
A = `${s.join("")}${A}`, A = yi(A, t);
|
|
4972
4986
|
const C = `${f}${b}${A}${P}`;
|
|
4973
4987
|
e.code = C;
|
|
4974
4988
|
}
|
|
4975
|
-
function
|
|
4989
|
+
function gi(e) {
|
|
4976
4990
|
const t = Tc.exec(e.code), i = t?.index ?? e.code.length;
|
|
4977
4991
|
let n = "";
|
|
4978
4992
|
if (t !== null) {
|
|
@@ -5000,7 +5014,7 @@ function _n(e, t) {
|
|
|
5000
5014
|
throw Error(E(_, `Failed to infer whether the ${e} module has top-level await`));
|
|
5001
5015
|
return n;
|
|
5002
5016
|
}
|
|
5003
|
-
function
|
|
5017
|
+
function yi(e, t) {
|
|
5004
5018
|
return e.replaceAll(Ec, (i, n) => {
|
|
5005
5019
|
if (n.startsWith(Ve))
|
|
5006
5020
|
return `$arcgis.t(m=>m[0],"${Wn(n.slice(Ve.length))}")`;
|
|
@@ -5014,7 +5028,7 @@ function gi(e, t) {
|
|
|
5014
5028
|
}
|
|
5015
5029
|
const Ec = /(?<![.\w\d])import\("([^"]+)"\)/gu, Wn = (e) => e.endsWith(".js") ? e.slice(0, -3) : e;
|
|
5016
5030
|
function Cc(e) {
|
|
5017
|
-
const t = [
|
|
5031
|
+
const t = [Tt];
|
|
5018
5032
|
return () => {
|
|
5019
5033
|
for (; ; ) {
|
|
5020
5034
|
const i = xc(t);
|
|
@@ -5023,9 +5037,9 @@ function Cc(e) {
|
|
|
5023
5037
|
}
|
|
5024
5038
|
};
|
|
5025
5039
|
}
|
|
5026
|
-
const
|
|
5040
|
+
const Tt = 0, Ot = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_", Hn = `${Ot}0123456789`, $c = Ot.length, Pc = Hn.length;
|
|
5027
5041
|
function xc(e) {
|
|
5028
|
-
let t =
|
|
5042
|
+
let t = Ot[e[0]];
|
|
5029
5043
|
for (let i = 1; i < e.length; i++)
|
|
5030
5044
|
t += Hn[e[i]];
|
|
5031
5045
|
return t;
|
|
@@ -5035,11 +5049,11 @@ function Ic(e) {
|
|
|
5035
5049
|
for (; t >= 0; ) {
|
|
5036
5050
|
const i = t === 0 ? $c : Pc;
|
|
5037
5051
|
if (e[t] += 1, e[t] >= i)
|
|
5038
|
-
e[t] =
|
|
5052
|
+
e[t] = Tt, t--;
|
|
5039
5053
|
else
|
|
5040
5054
|
return;
|
|
5041
5055
|
}
|
|
5042
|
-
e.push(
|
|
5056
|
+
e.push(Tt);
|
|
5043
5057
|
}
|
|
5044
5058
|
function Ze(e = R(), t = !1) {
|
|
5045
5059
|
const i = e.version.includes("next"), n = e.name === "@esri/calcite-components";
|
|
@@ -5101,7 +5115,7 @@ async function Nc(e, t, i, n, s) {
|
|
|
5101
5115
|
...l,
|
|
5102
5116
|
`import { defineCustomElements as defineCustomElements$${n} } from "${p}";`,
|
|
5103
5117
|
`defineCustomElements$${n}(globalThis.window, {`,
|
|
5104
|
-
` resourcesUrl: "${
|
|
5118
|
+
` resourcesUrl: "${Ft(e, t.packageLocation)}/dist/${c}/",`,
|
|
5105
5119
|
"});"
|
|
5106
5120
|
]
|
|
5107
5121
|
}
|
|
@@ -5115,10 +5129,10 @@ async function Un(e) {
|
|
|
5115
5129
|
a === i
|
|
5116
5130
|
);
|
|
5117
5131
|
return r === void 0 ? await Promise.all(
|
|
5118
|
-
s.map(async (a) => await
|
|
5119
|
-
).then((a) => a.find(j)) : await
|
|
5132
|
+
s.map(async (a) => await hi(t, a))
|
|
5133
|
+
).then((a) => a.find(j)) : await hi(t, r);
|
|
5120
5134
|
}
|
|
5121
|
-
async function
|
|
5135
|
+
async function hi(e, t) {
|
|
5122
5136
|
const i = u.join(e, t, `${t}.css`), n = u.join(e, t, "assets"), s = u.join(e, t, `${t}.esm.js`), [r, a, c] = await Promise.all([
|
|
5123
5137
|
U(i),
|
|
5124
5138
|
U(n),
|
|
@@ -5153,7 +5167,7 @@ async function Lc(e, t, i, n, s) {
|
|
|
5153
5167
|
...f,
|
|
5154
5168
|
`import { defineCustomElements as defineCustomElements$${n} } from "${m}";`,
|
|
5155
5169
|
`defineCustomElements$${n}({`,
|
|
5156
|
-
` resourcesUrl: "${
|
|
5170
|
+
` resourcesUrl: "${Ft(e, t.packageLocation)}/dist/${c}/",`,
|
|
5157
5171
|
"});"
|
|
5158
5172
|
]
|
|
5159
5173
|
};
|
|
@@ -5233,7 +5247,7 @@ async function Oc(e) {
|
|
|
5233
5247
|
*/
|
|
5234
5248
|
!e.apiJsonEnabled
|
|
5235
5249
|
)
|
|
5236
|
-
return
|
|
5250
|
+
return vi(e);
|
|
5237
5251
|
const i = (await Ce(e)).map((n, s) => {
|
|
5238
5252
|
if ("javascriptCode" in n)
|
|
5239
5253
|
return n.javascriptCode.join(`
|
|
@@ -5257,9 +5271,9 @@ async function Oc(e) {
|
|
|
5257
5271
|
}).join(`
|
|
5258
5272
|
|
|
5259
5273
|
`);
|
|
5260
|
-
return [
|
|
5274
|
+
return [vi(e), i].join("");
|
|
5261
5275
|
}
|
|
5262
|
-
const
|
|
5276
|
+
const vi = (e) => [e.isInPuppeteerTestBackEnd ? Mc : "", Jc].join(""), Mc = `import { setupPuppeteerTest } from "@arcgis/lumina-compiler/puppeteerTesting";
|
|
5263
5277
|
setupPuppeteerTest();
|
|
5264
5278
|
`, Jc = `import { setupLuminaTest } from "@arcgis/lumina-compiler/testing";
|
|
5265
5279
|
setupLuminaTest();
|
|
@@ -5380,10 +5394,10 @@ function Kc(e) {
|
|
|
5380
5394
|
}
|
|
5381
5395
|
}];
|
|
5382
5396
|
}
|
|
5383
|
-
const
|
|
5384
|
-
function ve(e, t, i =
|
|
5397
|
+
const Et = "@arcgis/lumina:provideAssets";
|
|
5398
|
+
function ve(e, t, i = Mt) {
|
|
5385
5399
|
if (e.viteCommand !== "serve")
|
|
5386
|
-
throw Error(E(
|
|
5400
|
+
throw Error(E(Et, "serveAssets() is only available when Vite is running in serve mode"));
|
|
5387
5401
|
const n = e._serverConfigured, s = e.server.middlewares.stack.length;
|
|
5388
5402
|
if (t.forEach((r) => {
|
|
5389
5403
|
const a = Vn(r), c = Xn(e.dir, Gn(a)), d = _c(e.viteConfig.base, c, e.dir.distCdn);
|
|
@@ -5394,7 +5408,7 @@ function ve(e, t, i = Ot) {
|
|
|
5394
5408
|
p.setHeader("Cache-Control", "max-age=31536000, immutable"), p.setHeader("Content-Type", Fs.lookup(m) || "application/octet-stream"), p.write(b), p.end();
|
|
5395
5409
|
}).catch((v) => {
|
|
5396
5410
|
(a.type !== "directory" || process.env.DEBUG) && T.warn(
|
|
5397
|
-
|
|
5411
|
+
Et,
|
|
5398
5412
|
`Error occurred when trying to serve a file in response to request for "${l.originalUrl ?? m}":${String(v)}`
|
|
5399
5413
|
), f();
|
|
5400
5414
|
}), !0;
|
|
@@ -5404,7 +5418,7 @@ function ve(e, t, i = Ot) {
|
|
|
5404
5418
|
e.server.middlewares.stack.splice(0, 0, ...r);
|
|
5405
5419
|
}
|
|
5406
5420
|
}
|
|
5407
|
-
async function qn(e, t, i =
|
|
5421
|
+
async function qn(e, t, i = Mt) {
|
|
5408
5422
|
await Promise.all(
|
|
5409
5423
|
t.map(async (n) => {
|
|
5410
5424
|
const s = Vn(n), r = Xn(e.dir, Gn(s));
|
|
@@ -5415,11 +5429,11 @@ async function qn(e, t, i = Ot) {
|
|
|
5415
5429
|
});
|
|
5416
5430
|
await Zn(d.map(([l, p]) => p)), await Promise.all(
|
|
5417
5431
|
d.map(
|
|
5418
|
-
async ([l, p]) => await
|
|
5432
|
+
async ([l, p]) => await bi(l, p, i, e)
|
|
5419
5433
|
)
|
|
5420
5434
|
);
|
|
5421
5435
|
} else if (s.type === "file")
|
|
5422
|
-
await ee(u.dirname(r), { recursive: !0 }), await
|
|
5436
|
+
await ee(u.dirname(r), { recursive: !0 }), await bi(s.source, r, i, e);
|
|
5423
5437
|
else if (s.type === "dynamic") {
|
|
5424
5438
|
await ee(u.dirname(r), { recursive: !0 });
|
|
5425
5439
|
const a = await Promise.resolve(s.source());
|
|
@@ -5428,7 +5442,7 @@ async function qn(e, t, i = Ot) {
|
|
|
5428
5442
|
})
|
|
5429
5443
|
);
|
|
5430
5444
|
}
|
|
5431
|
-
const Vn =
|
|
5445
|
+
const Vn = Li ? (e) => e : (e) => e.type === "dynamic" ? {
|
|
5432
5446
|
...e,
|
|
5433
5447
|
destination: De(e.destination)
|
|
5434
5448
|
} : {
|
|
@@ -5436,7 +5450,7 @@ const Vn = Ni ? (e) => e : (e) => e.type === "dynamic" ? {
|
|
|
5436
5450
|
source: De(e.source),
|
|
5437
5451
|
destination: De(e.destination)
|
|
5438
5452
|
};
|
|
5439
|
-
async function
|
|
5453
|
+
async function bi(e, t, i, n) {
|
|
5440
5454
|
const s = i.find((r) => r.match(t, n));
|
|
5441
5455
|
if (s === void 0)
|
|
5442
5456
|
await As(e, t);
|
|
@@ -5452,7 +5466,7 @@ function Gn(e) {
|
|
|
5452
5466
|
if (e.type === "file")
|
|
5453
5467
|
throw Error(
|
|
5454
5468
|
E(
|
|
5455
|
-
|
|
5469
|
+
Et,
|
|
5456
5470
|
`Unexpectedly tried to provide an asset with type "file", whose source looks like a directory: ${de(e.source)}. If source is meant to be a directory, change to "type":"directory". If source is a file, make sure source path does not end with / or \\`
|
|
5457
5471
|
)
|
|
5458
5472
|
);
|
|
@@ -5469,10 +5483,10 @@ function Xn({ dist: e, distCdnAssets: t }, i) {
|
|
|
5469
5483
|
}
|
|
5470
5484
|
function Bc(e) {
|
|
5471
5485
|
if (e.startsWith(u.sep)) {
|
|
5472
|
-
const t =
|
|
5486
|
+
const t = Fi(), i = t.startsWith(u.sep) ? t.split(u.sep)[1] ?? "" : "";
|
|
5473
5487
|
return e.startsWith(`/${i}/`) || e.startsWith("/Users/");
|
|
5474
5488
|
} else
|
|
5475
|
-
return !!(!
|
|
5489
|
+
return !!(!Li && u.isAbsolute(e));
|
|
5476
5490
|
}
|
|
5477
5491
|
function _c(e, t, i) {
|
|
5478
5492
|
const n = Qn(u.relative(i, t)), s = n.startsWith("/") ? n.slice(1) : n;
|
|
@@ -5486,12 +5500,12 @@ async function Zn(e) {
|
|
|
5486
5500
|
const Hc = {
|
|
5487
5501
|
match: (e, t) => t.environment === "production" && e.endsWith(".json"),
|
|
5488
5502
|
transform: (e) => JSON.stringify(JSON.parse(e))
|
|
5489
|
-
},
|
|
5503
|
+
}, Mt = [Hc];
|
|
5490
5504
|
function Uc(e) {
|
|
5491
5505
|
let t;
|
|
5492
5506
|
const i = () => [
|
|
5493
5507
|
...e.options.assets?.transformers ?? [],
|
|
5494
|
-
...
|
|
5508
|
+
...Mt
|
|
5495
5509
|
];
|
|
5496
5510
|
return {
|
|
5497
5511
|
name: "@arcgis/lumina:handleStaticAssets",
|
|
@@ -5510,10 +5524,10 @@ function Uc(e) {
|
|
|
5510
5524
|
* `configureServer`.
|
|
5511
5525
|
*/
|
|
5512
5526
|
configResolved() {
|
|
5513
|
-
e.viteCommand === "serve" && (t =
|
|
5527
|
+
e.viteCommand === "serve" && (t = Si(e));
|
|
5514
5528
|
},
|
|
5515
5529
|
options() {
|
|
5516
|
-
e.viteCommand === "build" && (t =
|
|
5530
|
+
e.viteCommand === "build" && (t = Si(e));
|
|
5517
5531
|
},
|
|
5518
5532
|
async configureServer(n) {
|
|
5519
5533
|
e.server = n, ve(e, await t, i()), n.watcher.on("addDir", (s) => {
|
|
@@ -5528,7 +5542,7 @@ function Uc(e) {
|
|
|
5528
5542
|
}
|
|
5529
5543
|
};
|
|
5530
5544
|
}
|
|
5531
|
-
async function
|
|
5545
|
+
async function Si(e) {
|
|
5532
5546
|
const t = U("assets"), i = await e.componentFilesPromise, n = await Promise.all(
|
|
5533
5547
|
i.map(async (s) => {
|
|
5534
5548
|
const r = u.dirname(s), a = u.join(r, "assets");
|
|
@@ -5574,27 +5588,27 @@ const Yn = (e, t) => ({
|
|
|
5574
5588
|
console.log = f;
|
|
5575
5589
|
}
|
|
5576
5590
|
if (d > 0) {
|
|
5577
|
-
const g = l > 0 ? d : c, y =
|
|
5591
|
+
const g = l > 0 ? d : c, y = Ei(g), h = e.dir.relativeDist;
|
|
5578
5592
|
console.log(
|
|
5579
5593
|
[
|
|
5580
|
-
|
|
5594
|
+
Ti,
|
|
5581
5595
|
h,
|
|
5582
5596
|
qc,
|
|
5583
5597
|
"*",
|
|
5584
5598
|
" ".repeat(p - `${h}*`.length - y.length),
|
|
5585
5599
|
y,
|
|
5586
|
-
|
|
5587
|
-
l > 0 ? ` ${
|
|
5600
|
+
wi,
|
|
5601
|
+
l > 0 ? ` ${Ti}│ gzip: ${Ei(l)}${wi}` : ""
|
|
5588
5602
|
].join("")
|
|
5589
5603
|
);
|
|
5590
5604
|
}
|
|
5591
5605
|
};
|
|
5592
5606
|
}
|
|
5593
|
-
}),
|
|
5607
|
+
}), wi = "\x1B[22m\x1B[1m\x1B[22m", Ti = "\x1B[2m", qc = "\x1B[22m\x1B[36m", Vc = /\d+(?:,\d+)?\.\d{2} kB/gu, Gc = /\x1B\[\d+m/gu, Xc = new Intl.NumberFormat("en", {
|
|
5594
5608
|
maximumFractionDigits: 2,
|
|
5595
5609
|
minimumFractionDigits: 2
|
|
5596
|
-
}),
|
|
5597
|
-
name:
|
|
5610
|
+
}), Ei = (e) => `${Xc.format(e)} kB`, Ci = "@arcgis/lumina:configureVite", Qc = (e) => ({
|
|
5611
|
+
name: Ci,
|
|
5598
5612
|
async config({
|
|
5599
5613
|
server: t,
|
|
5600
5614
|
publicDir: i,
|
|
@@ -5696,7 +5710,7 @@ const Yn = (e, t) => ({
|
|
|
5696
5710
|
if (typeof p.setupFiles == "string" ? p.setupFiles = [...pt, p.setupFiles] : Array.isArray(p.setupFiles) ? p.setupFiles = [...pt, ...p.setupFiles] : p.setupFiles = [...pt], e.isInPuppeteerTestBackEnd) {
|
|
5697
5711
|
if (g?.enabled === !0)
|
|
5698
5712
|
throw Error(
|
|
5699
|
-
E(
|
|
5713
|
+
E(Ci, "Can't enable both Vitest browser mode and Puppeteer testing at the same time")
|
|
5700
5714
|
);
|
|
5701
5715
|
return {
|
|
5702
5716
|
test: {
|
|
@@ -6060,7 +6074,7 @@ class $ {
|
|
|
6060
6074
|
distComponents: v,
|
|
6061
6075
|
distCdn: b,
|
|
6062
6076
|
distCdnAssets: w
|
|
6063
|
-
}, T.initialize(l.logger, f), l.root !==
|
|
6077
|
+
}, T.initialize(l.logger, f), l.root !== Fi())
|
|
6064
6078
|
throw Error(
|
|
6065
6079
|
E(
|
|
6066
6080
|
H,
|
|
@@ -6128,7 +6142,7 @@ class $ {
|
|
|
6128
6142
|
}) : (this.componentStoriesPromise = void 0, this.componentStories = void 0);
|
|
6129
6143
|
}
|
|
6130
6144
|
_inferBuildSetup({ command: t, mode: i }, n) {
|
|
6131
|
-
this.isInTest = process.env.NODE_ENV === "test", i === "production" || i === "development" ? this.environment = i : i === "test" || i === "benchmark" ? (this.environment = "development", this.isInTest = !0) : (T.warn(
|
|
6145
|
+
this.isInTest = process.env.NODE_ENV === "test", i === "production" || i === "development" ? this.environment = i : i === "test" || i === "benchmark" ? (this.environment = "development", this.isInTest = !0) : (T.warn(Nt.name, `Vite is running in unknown mode "${i}". Assuming development`), this.environment = "development"), this.viteCommand = t;
|
|
6132
6146
|
const s = n?.__IS_IN_PUPPETEER__ === !0, r = this.viteCommand === "serve" && this.isInTest && this.options.puppeteerTesting?.enabled === !0;
|
|
6133
6147
|
this.isInPuppeteerTestBackEnd = r && !s, this.isInPuppeteerTestFrontEnd = r && s;
|
|
6134
6148
|
}
|
|
@@ -6292,19 +6306,19 @@ I([
|
|
|
6292
6306
|
I([
|
|
6293
6307
|
x("configResolved()")
|
|
6294
6308
|
], $.prototype, "_typeScriptPrinter");
|
|
6295
|
-
const
|
|
6309
|
+
const $i = "makeRuntime(", yl = "@arcgis/core", hl = "@arcgis/lumina:injectRuntimeOptions", vl = (e) => ({
|
|
6296
6310
|
name: hl,
|
|
6297
6311
|
transform: {
|
|
6298
6312
|
filter: {
|
|
6299
6313
|
id: /\/src\/runtime\.ts$/u
|
|
6300
6314
|
},
|
|
6301
6315
|
handler(t, i) {
|
|
6302
|
-
const n = t.indexOf(
|
|
6316
|
+
const n = t.indexOf($i);
|
|
6303
6317
|
if (n === -1)
|
|
6304
6318
|
throw new Error(
|
|
6305
6319
|
`Failed to find makeRuntime() function call in src/runtime.ts. Id: ${i}. Code: ${t}`
|
|
6306
6320
|
);
|
|
6307
|
-
const s = n +
|
|
6321
|
+
const s = n + $i.length, r = e.options.css?.commonStylesPath;
|
|
6308
6322
|
return {
|
|
6309
6323
|
code: [
|
|
6310
6324
|
r === void 0 ? "" : `import commonStyles from "${$e(e.dir.src, r)}${_e}";`,
|
|
@@ -6386,7 +6400,7 @@ Possible causes:
|
|
|
6386
6400
|
return;
|
|
6387
6401
|
const N = za(k, p);
|
|
6388
6402
|
if (N !== `./${p}`)
|
|
6389
|
-
return N.startsWith(".") ? `${N}/${
|
|
6403
|
+
return N.startsWith(".") ? `${N}/${Pi}` : N;
|
|
6390
6404
|
}
|
|
6391
6405
|
const m = new Set(a), g = new Set(c), y = Array.from(m, f).filter(j), h = (S) => `import "${S}";
|
|
6392
6406
|
`, v = y.map(h).join(""), b = /* @__PURE__ */ new Set(), w = Array.from(g, (S) => {
|
|
@@ -6402,41 +6416,41 @@ Possible causes:
|
|
|
6402
6416
|
return b.add(h(k)), `.set("${S}", () => import("${k}"))
|
|
6403
6417
|
`;
|
|
6404
6418
|
}
|
|
6405
|
-
}).filter(j), P = `${v}export * from "./${
|
|
6419
|
+
}).filter(j), P = `${v}export * from "./${xt}";`, A = Array.from(b).join("") + P, C = w.length > 0 ? `import { deferredLoaders } from "@arcgis/lumina";
|
|
6406
6420
|
${P}
|
|
6407
6421
|
deferredLoaders${w.join("")};` : P;
|
|
6408
6422
|
return [
|
|
6409
|
-
F(u.join(e.dir.dist, p,
|
|
6423
|
+
F(u.join(e.dir.dist, p, Pi), C),
|
|
6410
6424
|
F(u.join(e.dir.dist, p, wl), A)
|
|
6411
6425
|
];
|
|
6412
6426
|
});
|
|
6413
6427
|
await Promise.all(s);
|
|
6414
6428
|
}
|
|
6415
|
-
}),
|
|
6429
|
+
}), Pi = "index.js", wl = "index.d.ts", ns = (e, t, i, n = /* @__PURE__ */ new Set()) => t.flatMap((s) => i.has(s) ? [s] : n.has(s) ? [] : (n.add(s), ns(e, e[s].referencedBy, i, n))), Tl = (e) => ({
|
|
6416
6430
|
name: "@arcgis/lumina:handleDynamicAssets",
|
|
6417
6431
|
configureServer(t) {
|
|
6418
|
-
e.server = t,
|
|
6432
|
+
e.server = t, xi(e).forEach(({ assets: i, transformers: n }) => ve(e, i, n));
|
|
6419
6433
|
},
|
|
6420
6434
|
async writeBundle() {
|
|
6421
6435
|
await Promise.all(
|
|
6422
|
-
|
|
6436
|
+
xi(e).map(
|
|
6423
6437
|
async ({ assets: t, transformers: i }) => await qn(e, t, i)
|
|
6424
6438
|
)
|
|
6425
6439
|
);
|
|
6426
6440
|
}
|
|
6427
6441
|
});
|
|
6428
|
-
function
|
|
6442
|
+
function xi(e) {
|
|
6429
6443
|
const t = [], i = e.assetsToProvide?.filter((n) => n.apply === void 0 || n.apply === e.viteCommand) ?? [];
|
|
6430
6444
|
return e.options.assets?.extra?.forEach((n) => {
|
|
6431
6445
|
"type" in n ? t.push(n) : "assets" in n && t.push(...n.assets);
|
|
6432
6446
|
}), t.length > 0 && i.push({ assets: t }), e.isInBuildWatch || (e.assetsToProvide = void 0), i;
|
|
6433
6447
|
}
|
|
6434
|
-
const
|
|
6435
|
-
name:
|
|
6448
|
+
const Ct = "@arcgis/lumina:updatePackageJson", El = (e) => ({
|
|
6449
|
+
name: Ct,
|
|
6436
6450
|
apply: () => e.viteCommand === "serve" && e.environment === "development" && !e.isInTest && !e.isInCi,
|
|
6437
6451
|
configResolved() {
|
|
6438
6452
|
Cl(e).catch(
|
|
6439
|
-
(t) => T.error(
|
|
6453
|
+
(t) => T.error(Ct, `Failed to update package's package.json:${String(t)}`)
|
|
6440
6454
|
);
|
|
6441
6455
|
}
|
|
6442
6456
|
});
|
|
@@ -6448,7 +6462,7 @@ function $l(e, t) {
|
|
|
6448
6462
|
const i = e?.devDependencies ?? {};
|
|
6449
6463
|
Object.keys(e?.peerDependencies ?? {}).forEach((l) => {
|
|
6450
6464
|
l in i || T.warn(
|
|
6451
|
-
|
|
6465
|
+
Ct,
|
|
6452
6466
|
`Every peerDependency should also be a devDependency, or else some tools will get confused (like Turbo Build). Found "${l}" that is not a devDependency. Please edit your package.json`
|
|
6453
6467
|
);
|
|
6454
6468
|
});
|
|
@@ -6535,7 +6549,7 @@ function kl(e) {
|
|
|
6535
6549
|
complexType: t.type === void 0 ? void 0 : {
|
|
6536
6550
|
original: t.type.text,
|
|
6537
6551
|
resolved: t.type.text,
|
|
6538
|
-
references:
|
|
6552
|
+
references: Jt(t.type.references)
|
|
6539
6553
|
},
|
|
6540
6554
|
mutable: !0,
|
|
6541
6555
|
attr: "attribute" in t && typeof t.attribute == "string" ? t.attribute : void 0,
|
|
@@ -6554,12 +6568,12 @@ function kl(e) {
|
|
|
6554
6568
|
required: s
|
|
6555
6569
|
};
|
|
6556
6570
|
}
|
|
6557
|
-
const
|
|
6571
|
+
const Jt = (e) => Object.fromEntries(
|
|
6558
6572
|
e?.map(
|
|
6559
6573
|
(t) => [
|
|
6560
6574
|
t.name,
|
|
6561
6575
|
{
|
|
6562
|
-
location: t.package ===
|
|
6576
|
+
location: t.package === Di ? "global" : t.package === void 0 ? "local" : "import",
|
|
6563
6577
|
path: typeof t.module == "string" && typeof t.package == "string" ? u.join(t.package, t.module) : t.module ?? t.package,
|
|
6564
6578
|
id: "notImplemented"
|
|
6565
6579
|
}
|
|
@@ -6585,7 +6599,7 @@ function Al(e) {
|
|
|
6585
6599
|
signature: t.signature ?? "()=>unknown",
|
|
6586
6600
|
parameters: n,
|
|
6587
6601
|
return: t.return?.type?.text ?? "void",
|
|
6588
|
-
references:
|
|
6602
|
+
references: Jt([
|
|
6589
6603
|
...t.return?.type?.references ?? [],
|
|
6590
6604
|
...t.parameters?.flatMap((s) => s.type.references ?? []) ?? []
|
|
6591
6605
|
])
|
|
@@ -6606,7 +6620,7 @@ function Nl(e) {
|
|
|
6606
6620
|
complexType: {
|
|
6607
6621
|
original: e.type.text,
|
|
6608
6622
|
resolved: e.type.text,
|
|
6609
|
-
references:
|
|
6623
|
+
references: Jt(e.type.references)
|
|
6610
6624
|
},
|
|
6611
6625
|
cancelable: e.cancelable ?? !0,
|
|
6612
6626
|
composed: e.composed ?? !0,
|
|
@@ -6696,16 +6710,16 @@ const Kl = (e) => e.map((t) => ({
|
|
|
6696
6710
|
name: i.name,
|
|
6697
6711
|
description: i.description
|
|
6698
6712
|
})),
|
|
6699
|
-
events:
|
|
6713
|
+
events: Ii(t),
|
|
6700
6714
|
js: {
|
|
6701
6715
|
properties: Bl(t),
|
|
6702
|
-
events:
|
|
6716
|
+
events: Ii(t)
|
|
6703
6717
|
}
|
|
6704
6718
|
})), Bl = (e) => e.members.filter(ys).map((t) => ({
|
|
6705
6719
|
name: t.name,
|
|
6706
6720
|
description: t.description,
|
|
6707
6721
|
type: t.type?.text
|
|
6708
|
-
})) ?? [],
|
|
6722
|
+
})) ?? [], Ii = (e) => e.events?.map((t) => ({
|
|
6709
6723
|
name: t.name,
|
|
6710
6724
|
type: t.type?.text,
|
|
6711
6725
|
description: t.description
|
|
@@ -7032,10 +7046,10 @@ function dd(e) {
|
|
|
7032
7046
|
}
|
|
7033
7047
|
};
|
|
7034
7048
|
}
|
|
7035
|
-
const pd = "react",
|
|
7049
|
+
const pd = "react", ki = "@lit/react", md = `
|
|
7036
7050
|
import React from "${pd}";
|
|
7037
|
-
import { createComponent } from "${
|
|
7038
|
-
import type { EventName } from "${
|
|
7051
|
+
import { createComponent } from "${ki}";
|
|
7052
|
+
import type { EventName } from "${ki}";
|
|
7039
7053
|
import { makeReactWrapperFactory, getReactWrapperOptions } from "@arcgis/lumina";
|
|
7040
7054
|
|
|
7041
7055
|
const createWrapper = /*@__PURE__*/ makeReactWrapperFactory(React, createComponent) as typeof createComponent;
|
|
@@ -7094,11 +7108,11 @@ const jd = {
|
|
|
7094
7108
|
propertyToAttributeMappings: z,
|
|
7095
7109
|
findDeclaredComponent: Bi,
|
|
7096
7110
|
nativeEvents: Qi,
|
|
7097
|
-
svgElements:
|
|
7098
|
-
mathMlElements:
|
|
7111
|
+
svgElements: It,
|
|
7112
|
+
mathMlElements: kt,
|
|
7099
7113
|
alwaysAttributes: Vi,
|
|
7100
7114
|
nativeAlwaysAttributes: Gi,
|
|
7101
|
-
htmlAlwaysAttributes:
|
|
7115
|
+
htmlAlwaysAttributes: vt,
|
|
7102
7116
|
isPropertyEscapeNeeded: Qe
|
|
7103
7117
|
};
|
|
7104
7118
|
export {
|