@arcgis/map-components 5.1.0-next.104 → 5.1.0-next.105
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/cdn/3AKJIFJP.js +2 -0
- package/dist/cdn/6IRKJ76J.js +2 -0
- package/dist/cdn/6QJQJ4I7.js +2 -0
- package/dist/cdn/FMT63SES.js +2 -0
- package/dist/cdn/IMSDXTQ5.js +2 -0
- package/dist/cdn/JFWOTBXI.js +2 -0
- package/dist/cdn/JIAEOA2S.js +2 -0
- package/dist/cdn/PKV6NA3M.js +2 -0
- package/dist/cdn/TKQLQE4E.js +2 -0
- package/dist/cdn/TZVSBVJN.js +2 -0
- package/dist/cdn/{KASY64TA.js → UQCQAL4T.js} +1 -1
- package/dist/cdn/{UCPJMQPU.js → VVIDVEKK.js} +1 -1
- package/dist/cdn/{AWQHNAWY.js → XB5I52AG.js} +1 -1
- package/dist/cdn/XIJGC7OK.js +2 -0
- package/dist/cdn/assets/feature-next/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/features/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/action-utils.js +37 -23
- package/dist/components/arcgis-aggregated-features/customElement.js +1 -1
- package/dist/components/arcgis-aggregated-features/index.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature/customElement.d.ts +4 -4
- package/dist/components/arcgis-feature/customElement.js +69 -111
- package/dist/components/arcgis-feature-next/customElement.d.ts +444 -0
- package/dist/components/arcgis-feature-next/customElement.js +279 -0
- package/dist/components/arcgis-feature-next/index.d.ts +1 -0
- package/dist/components/arcgis-feature-next/index.js +13 -0
- package/dist/components/arcgis-feature-relationship/customElement.js +76 -73
- package/dist/components/arcgis-feature-relationship/index.js +1 -0
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +18 -15
- package/dist/components/arcgis-feature-utility-network-association-list/index.js +1 -0
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +63 -53
- package/dist/components/arcgis-features/customElement.d.ts +28 -52
- package/dist/components/arcgis-features/customElement.js +181 -184
- package/dist/components/arcgis-features/index.js +0 -1
- package/dist/components/arcgis-features-next/customElement.d.ts +678 -0
- package/dist/components/arcgis-features-next/customElement.js +400 -0
- package/dist/components/arcgis-features-next/index.d.ts +1 -0
- package/dist/components/arcgis-features-next/index.js +15 -0
- package/dist/components/arcgis-popup/customElement.d.ts +2 -2
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-popup/index.js +1 -1
- package/dist/components/arcgis-search/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +32 -33
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +5 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +47 -47
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/loader.js +7 -5
- package/dist/types/lumina.d.ts +17 -1
- package/dist/types/preact.d.ts +19 -1
- package/dist/types/react.d.ts +21 -1
- package/dist/types/stencil.d.ts +17 -1
- package/package.json +4 -4
- package/dist/cdn/37PU5RQF.js +0 -2
- package/dist/cdn/6U7WM64M.js +0 -2
- package/dist/cdn/AHWGHYPQ.js +0 -2
- package/dist/cdn/FNHPWOUX.js +0 -2
- package/dist/cdn/HVKDLP74.js +0 -2
- package/dist/cdn/LTUURA6B.js +0 -2
- package/dist/cdn/SKRNQKVO.js +0 -2
- package/dist/cdn/W2QDJLIF.js +0 -2
- package/dist/cdn/XIN3BIAA.js +0 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { i as f } from "./async-utils.js";
|
|
3
3
|
import { g as l } from "./feature-utils.js";
|
|
4
4
|
import { isZoomScreenSize as w } from "@arcgis/core/applications/Components/actionUtils.js";
|
|
5
|
-
function
|
|
5
|
+
function C(e) {
|
|
6
6
|
if (e.icon)
|
|
7
7
|
return e.icon;
|
|
8
8
|
if (!("image" in e && e.image) && !e.className)
|
|
@@ -17,45 +17,51 @@ function y(e) {
|
|
|
17
17
|
const { selectedFeature: t, location: o, view: r } = e;
|
|
18
18
|
return r ? t ?? o ?? null : null;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
function b(e) {
|
|
21
|
+
return "browseClusterEnabled" in e && "featureMenuOpen" in e;
|
|
22
|
+
}
|
|
23
|
+
function h(e) {
|
|
24
|
+
return "aggregatedFeaturesEnabled" in e;
|
|
25
|
+
}
|
|
26
|
+
async function E(e, t, o) {
|
|
27
|
+
const { location: r, selectedFeature: a, view: n, zoomFactor: i } = e;
|
|
22
28
|
await o?.viewModel?.updateGeometry();
|
|
23
|
-
const s = o?.graphic,
|
|
24
|
-
if (!
|
|
29
|
+
const s = o?.graphic, c = s?.geometry ? s : y(e);
|
|
30
|
+
if (!n || !c)
|
|
25
31
|
throw new Error("Cannot zoom to location without a target and view.");
|
|
26
|
-
const
|
|
32
|
+
const d = n.scale / i, u = s?.geometry ?? e.selectedFeature?.geometry ?? r, g = u?.type === "point" && await w(s ?? a, n);
|
|
27
33
|
t.active = !0, t.disabled = !0;
|
|
28
34
|
try {
|
|
29
35
|
await e.zoomTo({
|
|
30
36
|
target: {
|
|
31
|
-
target:
|
|
32
|
-
scale:
|
|
37
|
+
target: c,
|
|
38
|
+
scale: g ? d : void 0
|
|
33
39
|
}
|
|
34
40
|
});
|
|
35
|
-
} catch (
|
|
36
|
-
if (f(
|
|
41
|
+
} catch (m) {
|
|
42
|
+
if (f(m))
|
|
37
43
|
return;
|
|
38
44
|
throw new Error("Could not zoom to the location of the graphic.");
|
|
39
45
|
} finally {
|
|
40
|
-
t.active = !1, t.disabled = !1,
|
|
46
|
+
t.active = !1, t.disabled = !1, g && e.location !== u && (e.location = u);
|
|
41
47
|
}
|
|
42
48
|
}
|
|
43
49
|
async function p(e, t) {
|
|
44
50
|
const o = await e.whenLayerView(l(t)), r = o.createQuery(), a = t.getObjectId();
|
|
45
51
|
return r.aggregateIds = a != null ? [a] : [], [o, r];
|
|
46
52
|
}
|
|
47
|
-
async function
|
|
53
|
+
async function z(e, t) {
|
|
48
54
|
const { selectedFeature: o, view: r } = e;
|
|
49
55
|
if (r?.type !== "2d")
|
|
50
56
|
throw new Error("zoomToAggregate:invalid-view: View must be 2d MapView.");
|
|
51
57
|
if (!o?.isAggregate)
|
|
52
58
|
throw new Error("zoomToAggregate:invalid-selectedFeature: Selected feature must represent an aggregate graphic.");
|
|
53
|
-
const [a,
|
|
59
|
+
const [a, n] = await p(r, o);
|
|
54
60
|
t.active = !0, t.disabled = !0;
|
|
55
|
-
const { extent:
|
|
56
|
-
|
|
61
|
+
const { extent: i } = await a.queryExtent(n);
|
|
62
|
+
i && await e.zoomTo({ target: i }), t.active = !1, t.disabled = !1;
|
|
57
63
|
}
|
|
58
|
-
const
|
|
64
|
+
const q = async (e, t) => {
|
|
59
65
|
if (!e)
|
|
60
66
|
throw new Error("trigger-action:missing-arguments: Event has no action");
|
|
61
67
|
const { disabled: o, id: r } = e;
|
|
@@ -64,13 +70,21 @@ const V = async (e, t) => {
|
|
|
64
70
|
if (o)
|
|
65
71
|
throw new Error("trigger-action:invalid-action: Action is disabled");
|
|
66
72
|
if (r === "zoom-to-feature")
|
|
67
|
-
return await
|
|
73
|
+
return await E(t, e).catch((a) => {
|
|
68
74
|
if (!f(a))
|
|
69
75
|
throw a;
|
|
70
76
|
});
|
|
71
77
|
if (r === "zoom-to-aggregated-features")
|
|
72
|
-
return await
|
|
78
|
+
return await z(t, e);
|
|
79
|
+
if (r === "browse-clustered-features") {
|
|
80
|
+
if (!b(t))
|
|
81
|
+
throw new Error("trigger-action:invalid-view-model: browse-clustered-features requires FeaturesViewModel.");
|
|
82
|
+
t.browseClusterEnabled = !t.browseClusterEnabled, t.featureMenuOpen = t.browseClusterEnabled;
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
73
85
|
if (r === "browse-aggregated-features") {
|
|
86
|
+
if (!h(t))
|
|
87
|
+
throw new Error("trigger-action:invalid-view-model: browse-aggregated-features requires Features.");
|
|
74
88
|
t.aggregatedFeaturesEnabled = !t.aggregatedFeaturesEnabled;
|
|
75
89
|
return;
|
|
76
90
|
}
|
|
@@ -79,13 +93,13 @@ const V = async (e, t) => {
|
|
|
79
93
|
const { selectedFeature: a } = t;
|
|
80
94
|
if (!a)
|
|
81
95
|
throw new Error("trigger-action:missing-selected-feature: Cannot remove selected feature without a selected feature.");
|
|
82
|
-
const
|
|
83
|
-
|
|
96
|
+
const n = l(a);
|
|
97
|
+
n ? n.remove(a) : t.view?.graphics.remove(a);
|
|
84
98
|
}
|
|
85
99
|
};
|
|
86
100
|
export {
|
|
87
|
-
|
|
101
|
+
C as a,
|
|
88
102
|
T as g,
|
|
89
|
-
|
|
90
|
-
|
|
103
|
+
q as t,
|
|
104
|
+
E as z
|
|
91
105
|
};
|
|
@@ -164,7 +164,7 @@ class B extends p {
|
|
|
164
164
|
}
|
|
165
165
|
async _selectFeature(e) {
|
|
166
166
|
const { flowItems: t, view: r } = this;
|
|
167
|
-
t && this._addFlowItem(w(F(e, d`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .graphic=${e.graphic} .map=${this.map} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${r ?? void 0}></arcgis-feature>`)));
|
|
167
|
+
t && this._addFlowItem(w(F(e, d`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .graphic=${e.graphic} .map=${this.map} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${r ?? void 0}></arcgis-feature-next>`)));
|
|
168
168
|
}
|
|
169
169
|
async _selectRelativeAggregatedFeature(e) {
|
|
170
170
|
const { aggregatedFeatures: t, aggregatedFeatureItems: r, flowItems: s } = this;
|
|
@@ -18,7 +18,7 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
|
18
18
|
* When a bookmark with a timeExtent is selected, the [arcgis-map.timeExtent](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#timeExtent) of the Map will be set to the timeExtent of the selected bookmark.
|
|
19
19
|
* To disable time capability in the Bookmarks component, set [timeDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-bookmarks/#timeDisabled) to `true`.
|
|
20
20
|
*
|
|
21
|
-
* Starting with version `5.1`, on [@arcgisBookmarkSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-bookmarks/#event-arcgisBookmarkSelect) the selected bookmark's name is announced to assistive technologies. Visit the [Accessibility guide](
|
|
21
|
+
* Starting with version `5.1`, on [@arcgisBookmarkSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-bookmarks/#event-arcgisBookmarkSelect) the selected bookmark's name is announced to assistive technologies. Visit the [Accessibility guide](https://developers.arcgis.com/javascript/latest/accessibility/#assistive-technologies) to learn more
|
|
22
22
|
* about live announcements supporting more audiences.
|
|
23
23
|
*
|
|
24
24
|
* The Bookmarks component can be used to create, edit, reorder, and delete bookmarks.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type
|
|
2
|
+
import type FeatureViewModel from "@arcgis/core/widgets/Feature/FeatureViewModel.js";
|
|
3
3
|
import type Graphic from "@arcgis/core/Graphic.js";
|
|
4
4
|
import type SpatialReference from "@arcgis/core/geometry/SpatialReference.js";
|
|
5
5
|
import type Map from "@arcgis/core/Map.js";
|
|
@@ -8,7 +8,7 @@ import type { ArcgisReferenceElement, HeadingLevel } from "../types.js";
|
|
|
8
8
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
9
9
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
10
10
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
11
|
-
import type { State } from "@arcgis/core/
|
|
11
|
+
import type { State } from "@arcgis/core/widgets/Feature/types.js";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* The Feature component displays a graphic according to its [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/).
|
|
@@ -41,7 +41,7 @@ export abstract class ArcgisFeature extends LitElement {
|
|
|
41
41
|
* @default false
|
|
42
42
|
* @since 4.34
|
|
43
43
|
*/
|
|
44
|
-
accessor chartAnimationDisabled: boolean;
|
|
44
|
+
accessor chartAnimationDisabled: boolean | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* Enables automatic creation of a popup template for layers that have popups enabled but no
|
|
47
47
|
* popupTemplate defined. Automatic popup templates are supported for layers that
|
|
@@ -402,7 +402,7 @@ export abstract class ArcgisFeature extends LitElement {
|
|
|
402
402
|
*/
|
|
403
403
|
accessor view: MapViewOrSceneView | null | undefined;
|
|
404
404
|
/** @since 4.34 */
|
|
405
|
-
accessor viewModel:
|
|
405
|
+
accessor viewModel: FeatureViewModel;
|
|
406
406
|
/** Permanently destroy the component. */
|
|
407
407
|
destroy(): Promise<void>;
|
|
408
408
|
/**
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as $ } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
4
|
-
import { ref as
|
|
3
|
+
import { css as w, html as r } from "lit";
|
|
4
|
+
import { ref as y } from "lit/directives/ref.js";
|
|
5
5
|
import { u as I } from "../../chunks/useT9n.js";
|
|
6
6
|
import { classes as M } from "@arcgis/toolkit/dom";
|
|
7
7
|
import { usePropertyChange as C } from "@arcgis/lumina/controllers";
|
|
8
8
|
import { m as x } from "../../chunks/useViewModel.js";
|
|
9
|
-
import { LitElement as
|
|
9
|
+
import { LitElement as F, createEvent as b, nothing as _, safeClassMap as L } from "@arcgis/lumina";
|
|
10
10
|
import { substitute as T } from "@arcgis/core/intl.js";
|
|
11
11
|
import { renderingSanitizer as A } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
12
|
-
import { a as
|
|
13
|
-
import
|
|
14
|
-
import { watch as
|
|
15
|
-
import { stripHTML as
|
|
16
|
-
import
|
|
17
|
-
const z =
|
|
18
|
-
class S extends
|
|
12
|
+
import { a as D, g as k, c as R, b as V, s as c, i as B, d as H } from "../../chunks/feature-utils.js";
|
|
13
|
+
import N from "@arcgis/core/core/Collection.js";
|
|
14
|
+
import { watch as P } from "@arcgis/core/core/reactiveUtils.js";
|
|
15
|
+
import { stripHTML as Z } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
16
|
+
import E from "@arcgis/core/widgets/Feature/FeatureViewModel.js";
|
|
17
|
+
const z = w`:host{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1);--calcite-color-background: var(--calcite-color-foreground-1)}.root{flex:1 1 auto}.root calcite-icon{box-sizing:content-box}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.content-element{margin-bottom:var(--calcite-spacing-lg);padding:0 var(--calcite-spacing-sm);display:flex;flex-direction:column}.content-element:only-child,.content-element:last-child{margin-bottom:var(--calcite-spacing-xxs)}.last-edited-info{padding-top:var(--calcite-spacing-xs);font-size:var(--calcite-font-size-sm)}`, U = x(E);
|
|
18
|
+
class S extends F {
|
|
19
19
|
constructor() {
|
|
20
|
-
super(...arguments), this.messages = I(), this._rootFlowNode = null, this.internalFlowItems = new
|
|
20
|
+
super(...arguments), this.messages = I(), this._rootFlowNode = null, this.internalFlowItems = new N(), this.flowType = "feature", this.viewModel = U(this), this.view = this.viewModel.view, this.icon = "icon", this.isFeatureFromTable = this.viewModel.isFeatureFromTable, this.graphic = this.viewModel.graphic, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.headingLevel = 2, this.spatialReference = this.viewModel.spatialReference, this.timeZone = this.viewModel.timeZone, this.heading = this.viewModel.title, this.map = this.viewModel.map, this.chartAnimationDisabled = this.viewModel.abilities.chartAnimation, this.hideHeading = !1, this.hideContent = !1, this.hideAttachmentsContent = !1, this.hideCustomContent = !1, this.hideExpressionContent = !1, this.hideFieldsContent = !1, this.hideMediaContent = !1, this.showRelationshipContent = !1, this.hideTextContent = !1, this.showUtilityNetworkContent = !1, this.hideLastEditedInfo = !1, this.autoDestroyDisabled = !1, this.location = this.viewModel.location, this.state = this.viewModel.state, this.arcgisPropertyChange = C()("flowItems", "state"), this.arcgisReady = b();
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
23
|
this.properties = { popupTemplate: 16, sourceLayer: 16, fieldInfoMap: 16, values: 16, globalValues: 16, internalFlowItems: 16, flowType: 1, viewModel: 0, view: 0, flowItems: 0, referenceElement: 1, icon: 1, isFeatureFromTable: 36, graphic: 0, defaultPopupTemplateEnabled: 5, headingLevel: 9, spatialReference: 0, timeZone: 1, heading: 0, map: 0, chartAnimationDisabled: 5, hideHeading: 5, hideContent: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, showRelationshipContent: 5, hideTextContent: 5, showUtilityNetworkContent: 5, hideLastEditedInfo: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, location: 0, state: 32 };
|
|
@@ -26,13 +26,13 @@ class S extends b {
|
|
|
26
26
|
this.styles = z;
|
|
27
27
|
}
|
|
28
28
|
get popupTemplate() {
|
|
29
|
-
return
|
|
29
|
+
return D(this.graphic, this.defaultPopupTemplateEnabled) ?? void 0;
|
|
30
30
|
}
|
|
31
31
|
get sourceLayer() {
|
|
32
|
-
return
|
|
32
|
+
return k(this.graphic);
|
|
33
33
|
}
|
|
34
34
|
get fieldInfoMap() {
|
|
35
|
-
return V(
|
|
35
|
+
return R(V(this.popupTemplate), this.sourceLayer);
|
|
36
36
|
}
|
|
37
37
|
get values() {
|
|
38
38
|
return this.graphic?.attributes ?? {};
|
|
@@ -44,43 +44,22 @@ class S extends b {
|
|
|
44
44
|
this._removeFlowItems(), await this.manager.destroy();
|
|
45
45
|
}
|
|
46
46
|
async nextMedia(e) {
|
|
47
|
-
return this.
|
|
47
|
+
return this.viewModel.nextMedia(e);
|
|
48
48
|
}
|
|
49
49
|
async previousMedia(e) {
|
|
50
|
-
return this.
|
|
50
|
+
return this.viewModel.previousMedia(e);
|
|
51
51
|
}
|
|
52
52
|
async setActiveMedia(e, t) {
|
|
53
|
-
|
|
54
|
-
if (!Array.isArray(i))
|
|
55
|
-
return;
|
|
56
|
-
const s = i[e];
|
|
57
|
-
if (s?.type !== "media")
|
|
58
|
-
return;
|
|
59
|
-
const a = s;
|
|
60
|
-
return this._setContentElementMedia(a, t);
|
|
53
|
+
return this.viewModel.setActiveMedia(e, t);
|
|
61
54
|
}
|
|
62
55
|
async updateGeometry() {
|
|
63
56
|
return await this.viewModel.updateGeometry();
|
|
64
57
|
}
|
|
65
58
|
loaded() {
|
|
66
59
|
this.manager.onLifecycle(() => [
|
|
67
|
-
|
|
60
|
+
P(() => [this.internalFlowItems?.length], () => this._setFocus())
|
|
68
61
|
]);
|
|
69
62
|
}
|
|
70
|
-
_setContentElementMedia(e, t) {
|
|
71
|
-
const i = e.mediaInfos?.length ?? 0, s = (t + i) % i;
|
|
72
|
-
e.activeMediaInfoIndex = s;
|
|
73
|
-
}
|
|
74
|
-
_pageContentElementMedia(e, t) {
|
|
75
|
-
const i = this.viewModel.content;
|
|
76
|
-
if (!Array.isArray(i))
|
|
77
|
-
return;
|
|
78
|
-
const s = i[e];
|
|
79
|
-
if (s?.type !== "media")
|
|
80
|
-
return;
|
|
81
|
-
const a = s, { activeMediaInfoIndex: o } = a, r = (o ?? 0) + t;
|
|
82
|
-
this._setContentElementMedia(a, r);
|
|
83
|
-
}
|
|
84
63
|
_removeFlowItems() {
|
|
85
64
|
this.internalFlowItems?.destroyAll();
|
|
86
65
|
}
|
|
@@ -94,124 +73,117 @@ class S extends b {
|
|
|
94
73
|
this.internalFlowItems?.pop()?.destroy();
|
|
95
74
|
}
|
|
96
75
|
render() {
|
|
97
|
-
const { state: e } = this.viewModel, t =
|
|
98
|
-
return
|
|
76
|
+
const { state: e } = this.viewModel, t = r`<div class="container">${e === "error" ? this._renderError() : e === "loading" ? this._renderLoading() : this._renderContentContainer()}</div>`;
|
|
77
|
+
return r`<div class="root">${t}</div>`;
|
|
99
78
|
}
|
|
100
79
|
_renderError() {
|
|
101
80
|
const { messages: e, hideHeading: t } = this;
|
|
102
|
-
return
|
|
81
|
+
return r`<calcite-notice icon=exclamation-mark-circle kind=danger open scale=s>${t ? null : r`<div slot=title>${e.error}</div>`}<div slot=message>${e.loadingError}</div></calcite-notice>`;
|
|
103
82
|
}
|
|
104
83
|
_renderLoading() {
|
|
105
|
-
return
|
|
84
|
+
return r`<div class="loading-container"><calcite-loader inline label></calcite-loader></div>`;
|
|
106
85
|
}
|
|
107
86
|
_renderAttachments(e) {
|
|
108
|
-
const { values: t, fieldInfoMap: i, sourceLayer:
|
|
87
|
+
const { values: t, fieldInfoMap: i, sourceLayer: o, globalValues: a } = this, s = c({
|
|
109
88
|
values: t,
|
|
110
89
|
fieldInfoMap: i,
|
|
111
90
|
globalValues: a,
|
|
112
|
-
layer:
|
|
91
|
+
layer: o,
|
|
113
92
|
text: e.title
|
|
114
|
-
}),
|
|
93
|
+
}), n = c({
|
|
115
94
|
values: t,
|
|
116
95
|
fieldInfoMap: i,
|
|
117
96
|
globalValues: a,
|
|
118
|
-
layer:
|
|
97
|
+
layer: o,
|
|
119
98
|
text: e.description
|
|
120
99
|
});
|
|
121
|
-
return
|
|
100
|
+
return r`<arcgis-feature-attachments .headingLevel=${this.headingLevel} .heading=${s} class="content-element" .displayType=${e.displayType} .attachmentKeywords=${e.attachmentKeywords ?? void 0} .attachmentTypes=${e.attachmentTypes ?? void 0} .orderByFields=${e.orderByFields ?? void 0} .graphic=${this.graphic ?? void 0} .description=${n} .messages=${this.messages}></arcgis-feature-attachments>`;
|
|
122
101
|
}
|
|
123
102
|
_renderCustom(e) {
|
|
124
|
-
return
|
|
103
|
+
return r`<arcgis-feature-content .creator=${e.creator} .destroyer=${e.destroyer ?? void 0} .graphic=${this.graphic ?? void 0} class="content-element"></arcgis-feature-content>`;
|
|
125
104
|
}
|
|
126
105
|
_renderFields(e, t) {
|
|
127
|
-
const i = this.viewModel.formattedAttributes, { values:
|
|
128
|
-
values:
|
|
106
|
+
const i = this.viewModel.formattedAttributes, { values: o, fieldInfoMap: a, sourceLayer: s, popupTemplate: n, globalValues: l, graphic: d } = this, h = !!e?.fieldInfos, u = (e.fieldInfos ?? n?.fieldInfos ?? [])?.filter(({ fieldName: g }) => !!g && (B(g) || H(g) || g in o)), f = n?.expressionInfos, m = c({
|
|
107
|
+
values: o,
|
|
129
108
|
fieldInfoMap: a,
|
|
130
109
|
globalValues: l,
|
|
131
|
-
layer:
|
|
110
|
+
layer: s,
|
|
132
111
|
text: e.title
|
|
133
|
-
}), v =
|
|
134
|
-
values:
|
|
112
|
+
}), v = c({
|
|
113
|
+
values: o,
|
|
135
114
|
fieldInfoMap: a,
|
|
136
115
|
globalValues: l,
|
|
137
|
-
layer:
|
|
116
|
+
layer: s,
|
|
138
117
|
text: e.description
|
|
139
118
|
});
|
|
140
|
-
return
|
|
119
|
+
return r`<arcgis-feature-fields .headingLevel=${this.headingLevel} .heading=${m} class="content-element" .messages=${this.messages} .graphic=${d ?? void 0} .isContentFieldInfos=${h} .layer=${s} .description=${v} .values=${{
|
|
141
120
|
...i?.global,
|
|
142
121
|
...i?.content?.[t]
|
|
143
122
|
}} .fieldInfos=${u} .expressionInfos=${f ?? void 0}></arcgis-feature-fields>`;
|
|
144
123
|
}
|
|
145
124
|
_renderMedia(e, t) {
|
|
146
|
-
const { values: i, graphic:
|
|
147
|
-
...
|
|
148
|
-
...
|
|
149
|
-
},
|
|
125
|
+
const { values: i, graphic: o, fieldInfoMap: a, sourceLayer: s, popupTemplate: n, globalValues: l } = this, { formattedAttributes: d, relatedInfos: h } = this.viewModel, p = {
|
|
126
|
+
...d?.global,
|
|
127
|
+
...d?.content?.[t]
|
|
128
|
+
}, u = c({
|
|
150
129
|
values: i,
|
|
151
130
|
fieldInfoMap: a,
|
|
152
131
|
globalValues: l,
|
|
153
|
-
layer:
|
|
132
|
+
layer: s,
|
|
154
133
|
text: e.title
|
|
155
|
-
}),
|
|
134
|
+
}), f = c({
|
|
156
135
|
values: i,
|
|
157
136
|
fieldInfoMap: a,
|
|
158
137
|
globalValues: l,
|
|
159
|
-
layer:
|
|
138
|
+
layer: s,
|
|
160
139
|
text: e.description
|
|
161
140
|
});
|
|
162
|
-
return
|
|
141
|
+
return r`<arcgis-feature-media .activeMediaInfoIndex=${e.activeMediaInfoIndex ?? 0} .chartAnimationDisabled=${this.chartAnimationDisabled} .headingLevel=${this.headingLevel} .heading=${u} class="content-element" .description=${f} .values=${i} .layer=${s} .graphic=${o ?? void 0} .messages=${this.messages} .fieldInfoMap=${a} .mediaInfos=${e.mediaInfos ?? []} .popupTemplate=${n ?? void 0} .relatedInfos=${h} .formattedValues=${p}></arcgis-feature-media>`;
|
|
163
142
|
}
|
|
164
143
|
_renderText(e) {
|
|
165
|
-
|
|
166
|
-
return n`<arcgis-feature-content .creator=${d({
|
|
167
|
-
values: t,
|
|
168
|
-
fieldInfoMap: i,
|
|
169
|
-
globalValues: a,
|
|
170
|
-
layer: s,
|
|
171
|
-
text: e.text
|
|
172
|
-
})} .graphic=${this.graphic ?? void 0} class="content-element"></arcgis-feature-content>`;
|
|
144
|
+
return r`<arcgis-feature-content .creator=${e.text} .graphic=${this.graphic ?? void 0} class="content-element"></arcgis-feature-content>`;
|
|
173
145
|
}
|
|
174
146
|
_renderExpression(e, t) {
|
|
175
|
-
const i = this.viewModel.formattedAttributes, { fieldInfoMap:
|
|
176
|
-
return
|
|
147
|
+
const i = this.viewModel.formattedAttributes, { fieldInfoMap: o } = this;
|
|
148
|
+
return r`<arcgis-feature-expression .expressionInfo=${e.expressionInfo} .map=${this.map ?? void 0} .spatialReference=${this.spatialReference ?? void 0} .view=${this.viewModel.view ?? void 0} .graphic=${this.graphic ?? void 0} .location=${this.location ?? void 0} .headingLevel=${this.headingLevel} class="content-element" .interceptor=${this.viewModel.interceptor} .messages=${this.messages} .fieldInfoMap=${o} .values=${{
|
|
177
149
|
...i?.global,
|
|
178
150
|
...i?.content?.[t]
|
|
179
151
|
}}></arcgis-feature-expression>`;
|
|
180
152
|
}
|
|
181
153
|
_renderRelationship(e, t) {
|
|
182
|
-
const { values: i, graphic:
|
|
154
|
+
const { values: i, graphic: o, fieldInfoMap: a, sourceLayer: s, globalValues: n } = this, { displayCount: l, orderByFields: d, relationshipId: h } = e, { formattedAttributes: p, view: u } = this.viewModel, f = {
|
|
183
155
|
...p?.global,
|
|
184
156
|
...p?.content?.[t]
|
|
185
|
-
},
|
|
157
|
+
}, m = c({
|
|
186
158
|
values: i,
|
|
187
159
|
fieldInfoMap: a,
|
|
188
|
-
globalValues:
|
|
189
|
-
layer:
|
|
160
|
+
globalValues: n,
|
|
161
|
+
layer: s,
|
|
190
162
|
text: e.title
|
|
191
|
-
}), v =
|
|
163
|
+
}), v = c({
|
|
192
164
|
values: i,
|
|
193
165
|
fieldInfoMap: a,
|
|
194
|
-
globalValues:
|
|
195
|
-
layer:
|
|
166
|
+
globalValues: n,
|
|
167
|
+
layer: s,
|
|
196
168
|
text: e.description
|
|
197
169
|
});
|
|
198
|
-
return
|
|
170
|
+
return r`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} class="content-element" .flowItems=${this.flowItems ?? this.internalFlowItems} .description=${v} .layer=${s} .map=${this.map ?? void 0} .displayCount=${l} .graphic=${o ?? void 0} .heading=${m} .headingLevel=${this.headingLevel} .messages=${this.messages} .orderByFields=${d ?? void 0} .relationshipId=${h ?? void 0} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .values=${f} .view=${u ?? void 0}></arcgis-feature-relationship>`;
|
|
199
171
|
}
|
|
200
172
|
_renderAssociation(e) {
|
|
201
|
-
const { fieldInfoMap: t, globalValues: i, graphic:
|
|
202
|
-
values:
|
|
173
|
+
const { fieldInfoMap: t, globalValues: i, graphic: o, messages: a, sourceLayer: s, values: n } = this, l = c({
|
|
174
|
+
values: n,
|
|
203
175
|
fieldInfoMap: t,
|
|
204
176
|
globalValues: i,
|
|
205
|
-
layer:
|
|
177
|
+
layer: s,
|
|
206
178
|
text: e.title
|
|
207
|
-
}),
|
|
208
|
-
values:
|
|
179
|
+
}), d = c({
|
|
180
|
+
values: n,
|
|
209
181
|
fieldInfoMap: t,
|
|
210
182
|
globalValues: i,
|
|
211
|
-
layer:
|
|
183
|
+
layer: s,
|
|
212
184
|
text: e.description
|
|
213
185
|
});
|
|
214
|
-
return
|
|
186
|
+
return r`<arcgis-feature-utility-network-associations .autoDestroyDisabled=${this.autoDestroyDisabled} .associationTypes=${e.associationTypes} class="content-element" .description=${d} .flowItems=${this.flowItems ?? this.internalFlowItems} .graphic=${o ?? void 0} .heading=${l} .headingLevel=${this.headingLevel} .layer=${s} .map=${this.map ?? void 0} .messages=${a} .parentFeatureViewModel=${this.viewModel} .referenceElement=${this.referenceElement} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .view=${this.viewModel.view ?? void 0}></arcgis-feature-utility-network-associations>`;
|
|
215
187
|
}
|
|
216
188
|
_renderContentElement(e, t) {
|
|
217
189
|
switch (e.type) {
|
|
@@ -237,40 +209,26 @@ class S extends b {
|
|
|
237
209
|
}
|
|
238
210
|
_renderContent() {
|
|
239
211
|
const { content: e, graphic: t } = this.viewModel;
|
|
240
|
-
|
|
241
|
-
return null;
|
|
242
|
-
if (Array.isArray(e) && e.length)
|
|
243
|
-
return e.length ? e.map(this._renderContentElement, this) : null;
|
|
244
|
-
if (typeof e == "string") {
|
|
245
|
-
const { values: i, fieldInfoMap: s, sourceLayer: a, globalValues: o } = this;
|
|
246
|
-
return n`<arcgis-feature-content .creator=${d({
|
|
247
|
-
values: i,
|
|
248
|
-
fieldInfoMap: s,
|
|
249
|
-
globalValues: o,
|
|
250
|
-
layer: a,
|
|
251
|
-
text: e
|
|
252
|
-
})} .graphic=${t ?? void 0} class="content-element"></arcgis-feature-content>`;
|
|
253
|
-
}
|
|
254
|
-
return e instanceof HTMLElement ? e : null;
|
|
212
|
+
return e ? Array.isArray(e) && e.length ? e.length ? e.map(this._renderContentElement, this) : null : typeof e == "string" ? r`<arcgis-feature-content .creator=${e} .graphic=${t ?? void 0} class="content-element"></arcgis-feature-content>` : e instanceof HTMLElement ? e : null : null;
|
|
255
213
|
}
|
|
256
214
|
_renderContentContainer() {
|
|
257
|
-
const { hideContent: e, internalFlowItems: t, headingLevel: i, state:
|
|
215
|
+
const { hideContent: e, internalFlowItems: t, headingLevel: i, state: o, messages: a, heading: s, hideHeading: n } = this;
|
|
258
216
|
if (e)
|
|
259
217
|
return null;
|
|
260
|
-
const l =
|
|
261
|
-
return this.flowItems ? l :
|
|
218
|
+
const l = r`<div class="main">${[this._renderContent(), this._renderLastEditInfo()]}</div>`, d = a.returnToInitialFeature ?? "";
|
|
219
|
+
return this.flowItems ? l : r`<calcite-flow ${y(this._storeRootFlowNode)}><calcite-flow-item .loading=${o === "loading"} .headingLevel=${i} .heading=${this.hideHeading ? void 0 : Z(this.heading)} .selected=${!t.length}>${!n && s ? r`<div slot=heading><div .innerHTML=${A.sanitize(s ?? "") ?? ""}></div></div>` : null}${l}</calcite-flow-item>${t.toArray().map((h, p) => r`<calcite-flow-item @calciteFlowItemBack=${(u) => {
|
|
262
220
|
u.preventDefault(), this._handleDrillInBackClick();
|
|
263
|
-
}} .loading=${
|
|
221
|
+
}} .loading=${o === "loading"} .headingLevel=${i} .selected=${p === t.length - 1}><calcite-action icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${d} title=${d ?? _}></calcite-action>${h}</calcite-flow-item>`)}</calcite-flow>`;
|
|
264
222
|
}
|
|
265
223
|
_renderLastEditInfo() {
|
|
266
224
|
const { hideLastEditedInfo: e, messages: t } = this, { lastEditInfo: i } = this.viewModel;
|
|
267
225
|
if (!i || e)
|
|
268
226
|
return null;
|
|
269
|
-
const { date:
|
|
270
|
-
date:
|
|
227
|
+
const { date: o, user: a } = i, s = i.type === "edit" ? a ? t.lastEditedByUser : t.lastEdited : a ? t.lastCreatedByUser : t.lastCreated, n = T(s ?? "", {
|
|
228
|
+
date: o,
|
|
271
229
|
user: a
|
|
272
230
|
});
|
|
273
|
-
return
|
|
231
|
+
return r`<div class=${L(M("last-edited-info", "content-element"))}>${n}</div>`;
|
|
274
232
|
}
|
|
275
233
|
}
|
|
276
234
|
$("arcgis-feature", S);
|