@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
|
@@ -0,0 +1,678 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type ActionButton from "@arcgis/core/support/actions/ActionButton.js";
|
|
3
|
+
import type Collection from "@arcgis/core/core/Collection.js";
|
|
4
|
+
import type Features from "@arcgis/core/popup/Features.js";
|
|
5
|
+
import type ActionToggle from "@arcgis/core/support/actions/ActionToggle.js";
|
|
6
|
+
import type Graphic from "@arcgis/core/Graphic.js";
|
|
7
|
+
import type FeatureAbilities from "@arcgis/core/popup/support/FeatureAbilities.js";
|
|
8
|
+
import type Map from "@arcgis/core/Map.js";
|
|
9
|
+
import type SpatialReference from "@arcgis/core/geometry/SpatialReference.js";
|
|
10
|
+
import type { ActionEvent, FetchFeaturesOptions } from "@arcgis/core/widgets/Popup/types.js";
|
|
11
|
+
import type { ArcgisReferenceElement, IconName, HeadingLevel } from "../types.js";
|
|
12
|
+
import type { ScreenPoint } from "@arcgis/core/core/types.js";
|
|
13
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
14
|
+
import type { ArcgisFeatureNext } from "../arcgis-feature-next/customElement.js";
|
|
15
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
16
|
+
import type { PopupAction, InitialDisplayOptions, State } from "@arcgis/core/popup/types.js";
|
|
17
|
+
import type { GoToOverride } from "@arcgis/core/widgets/support/types.js";
|
|
18
|
+
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The Features component allows users to view a feature's popupTemplate content such as attributes,
|
|
22
|
+
* actions, related records, etc., without having to be tied to an [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/) or [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/) component.
|
|
23
|
+
* This component looks and behaves similarly to the [arcgis-popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) component,
|
|
24
|
+
* however unlike Popup, the Features component can be placed outside of the map or scene component.
|
|
25
|
+
* For example, when features are selected in the [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/),
|
|
26
|
+
* the [arcgis-popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) opens within the map whether it is docked
|
|
27
|
+
* or anchored to the selected feature.
|
|
28
|
+
* With the Features component, the same information that Popup provides is shown in a separate container from the map, such as
|
|
29
|
+
* a HTML div within a Calcite Design System
|
|
30
|
+
* [Shell Panel](https://developers.arcgis.com/calcite-design-system/components/shell-panel/).
|
|
31
|
+
*
|
|
32
|
+
* If multiple features are passed into the Features component, the component provides buttons to page though the features and a feature menu that allows the
|
|
33
|
+
* list of features to be displayed so the user can choose which feature content to display in the component. The component also respects
|
|
34
|
+
* feature reduction PopupTemplates for [binning](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FeatureReductionBinning/#popupTemplate) and [clustering](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FeatureReductionCluster/#popupTemplate).
|
|
35
|
+
*
|
|
36
|
+
* The Features component should be used if needing to use the Popup functionality outside of the map or scene component. If wanting to show a single feature's content without
|
|
37
|
+
* actions, related records, clustering configuration, etc., then use the [arcgis-feature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-feature/) component.
|
|
38
|
+
*
|
|
39
|
+
* @see [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/)
|
|
40
|
+
* @since 5.1
|
|
41
|
+
*/
|
|
42
|
+
export abstract class ArcgisFeaturesNext extends LitElement {
|
|
43
|
+
/**
|
|
44
|
+
* A [collection](https://developers.arcgis.com/javascript/latest/references/core/core/Collection/) of [action button](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionButton/) or [action toggle](https://developers.arcgis.com/javascript/latest/references/core/support/actions/ActionToggle/) objects. Each action may be executed by clicking the icon or image symbolizing them.
|
|
45
|
+
* There is a default `Zoom To` action styled with a magnifying glass icon to zoom in four LODs and center the map on the selected feature. This default action can be removed by setting [includeDefaultActionsDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#includeDefaultActionsDisabled) to `true`, or by setting the [`overwriteActions`](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/#overwriteActions) property to `true` in a [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/).
|
|
46
|
+
*
|
|
47
|
+
* The order of each action is the order in which they appear in the actions [Collection](https://developers.arcgis.com/javascript/latest/references/core/core/Collection/). The [@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#event-arcgisTriggerAction) event fires each time an action is clicked.
|
|
48
|
+
*
|
|
49
|
+
* @see [@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#event-arcgisTriggerAction)
|
|
50
|
+
* @see [Popup actions sample](https://developers.arcgis.com/javascript/latest/sample-code/popup-actions/)
|
|
51
|
+
*/
|
|
52
|
+
accessor actions: Collection<PopupAction>;
|
|
53
|
+
/**
|
|
54
|
+
* Indicates if the component is active when it is visible and is not [waiting](https://developers.arcgis.com/javascript/latest/references/core/popup/Features/#waitingForResult) for results.
|
|
55
|
+
*
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
get active(): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* If true, the component will not be destroyed automatically when it is
|
|
61
|
+
* disconnected from the document. This is useful when you want to move the
|
|
62
|
+
* component to a different place on the page, or temporarily hide it. If this
|
|
63
|
+
* is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#destroy) method when you are done to
|
|
64
|
+
* prevent memory leaks.
|
|
65
|
+
*
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
accessor autoDestroyDisabled: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Disables chart animation within the component.
|
|
71
|
+
*
|
|
72
|
+
* @default false
|
|
73
|
+
* @since 5.1
|
|
74
|
+
*/
|
|
75
|
+
accessor chartAnimationDisabled: boolean | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Indicates whether the component displays its content. If `true`, only the header displays.
|
|
78
|
+
* This property is only honored if [arcgis-features.showCollapseButton](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#showCollapseButton) is `true`.
|
|
79
|
+
*
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
82
|
+
accessor collapsed: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* The content of the component. When set directly on the component, this content is static and cannot use fields to set content templates. To set a template for the content based on field or attribute names, see [PopupTemplate.content](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/#content).
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```js
|
|
88
|
+
* // This sets generic instructions in the component that will always be displayed
|
|
89
|
+
* // unless it is overridden by a PopupTemplate.
|
|
90
|
+
* component.content = "Click a feature on the map to view its attributes";
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
accessor content: string | HTMLElement | null | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Enables automatic creation of a popup template for layers that have popups enabled but no popupTemplate defined. Automatic popup templates are supported for layers that support the `createPopupTemplate` method.
|
|
96
|
+
*
|
|
97
|
+
* **Note:** Starting with version 4.28, `date` fields are formatted using the `short-date-short-time` preset [dateFormat](https://developers.arcgis.com/javascript/latest/references/core/popup/support/FieldInfoFormat/#dateFormat) rather than `long-month-day-year` in default [popup](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) created by setting the `defaultPopupTemplateEnabled` property to `true`.
|
|
98
|
+
* For example, previously a date that may have appeared as `"December 30, 1997"` will now appear as `"12/30/1997 6:00 PM"`.
|
|
99
|
+
*
|
|
100
|
+
* @default false
|
|
101
|
+
* @since 5.1
|
|
102
|
+
*/
|
|
103
|
+
accessor defaultPopupTemplateEnabled: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* The heading currently displayed for the selected feature. This value resolves to the [selected feature item's heading](https://developers.arcgis.com/javascript/latest/references/core/popup/Features/#effectiveHeading) when available, otherwise it falls back to the component's [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#heading).
|
|
106
|
+
*
|
|
107
|
+
* @since 5.1
|
|
108
|
+
* @see [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#heading)
|
|
109
|
+
* @see [selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#selectedFeature)
|
|
110
|
+
*/
|
|
111
|
+
get effectiveHeading(): string | null | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* The number of [features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#features) available in the component.
|
|
114
|
+
*
|
|
115
|
+
* @since 5.1
|
|
116
|
+
*/
|
|
117
|
+
accessor featureCount: number;
|
|
118
|
+
/** Defines the specific [abilities](https://developers.arcgis.com/javascript/latest/references/core/widgets/Feature/FeatureViewModel/#Abilities) that can be used when querying and displaying content. */
|
|
119
|
+
accessor featureItemAbilities: FeatureAbilities | null | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* This property enables multiple features in the component to display in a list rather than displaying the first selected feature. Setting this to `true` allows the user to scroll through the list of features. This value will only be honored if [initialDisplayMode](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#initialDisplayMode) is set to "feature".
|
|
122
|
+
*
|
|
123
|
+
* @default false
|
|
124
|
+
* @since 5.1
|
|
125
|
+
*/
|
|
126
|
+
accessor featureMenuOpen: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Sets the title to display on the component while viewing the feature menu.
|
|
129
|
+
*
|
|
130
|
+
* @since 5.1
|
|
131
|
+
*/
|
|
132
|
+
accessor featureMenuTitle: string | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* Indicates whether the feature navigation arrows are displayed at the top of the component.
|
|
135
|
+
* By default, the navigation arrows are displayed at the bottom of the component.
|
|
136
|
+
*
|
|
137
|
+
* @default false
|
|
138
|
+
* @since 5.1
|
|
139
|
+
*/
|
|
140
|
+
accessor featureNavigationTop: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* An array of features associated with the component. Each graphic in this array must have a valid [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) set. They may share the same [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) or have unique [PopupTemplates](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) depending on their attributes. The [content](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#content) and [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#heading) of the component is set based on the `content` and `title` properties of each graphic's respective [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/).
|
|
143
|
+
*
|
|
144
|
+
* When more than one graphic exists in this array, the current content of the component is set based on the value of the [selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#selectedFeature)).
|
|
145
|
+
*
|
|
146
|
+
* This value is `null` if no features are associated with the component.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* ```js
|
|
150
|
+
* // When setting the features property, the graphics pushed to this property
|
|
151
|
+
* // must have a PopupTemplate set.
|
|
152
|
+
* let g1 = new Graphic();
|
|
153
|
+
* g1.popupTemplate = new PopupTemplate({
|
|
154
|
+
* title: "Results title",
|
|
155
|
+
* content: "Results: {ATTRIBUTE_NAME}"
|
|
156
|
+
* });
|
|
157
|
+
* // Set the graphics as an array to the popup instance. The content and title of
|
|
158
|
+
* // the component will be set depending on the PopupTemplate of the graphics.
|
|
159
|
+
* // Each graphic may share the same PopupTemplate or have a unique PopupTemplate
|
|
160
|
+
* let graphics = [g1, g2, g3, g4, g5];
|
|
161
|
+
* component.features = graphics;
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
accessor features: Array<Graphic>;
|
|
165
|
+
/**
|
|
166
|
+
* The number of features to fetch at one time.
|
|
167
|
+
*
|
|
168
|
+
* @default 20
|
|
169
|
+
*/
|
|
170
|
+
accessor featuresPerPage: number;
|
|
171
|
+
/**
|
|
172
|
+
* This function provides the ability to override either the [arcgis-map.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#goTo) or [arcgis-scene.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#goTo) methods.
|
|
173
|
+
*
|
|
174
|
+
* @since 4.33
|
|
175
|
+
* @example
|
|
176
|
+
* ```js
|
|
177
|
+
* component.goToOverride = function(view, goToParams) {
|
|
178
|
+
* goToParams.options = {
|
|
179
|
+
* duration: updatedDuration
|
|
180
|
+
* };
|
|
181
|
+
* return view.goTo(goToParams.target, goToParams.options);
|
|
182
|
+
* };
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
185
|
+
accessor goToOverride: GoToOverride | null | undefined;
|
|
186
|
+
/** The actions that are displayed in the header of the component. */
|
|
187
|
+
accessor headerActions: Collection<ActionButton | ActionToggle>;
|
|
188
|
+
/**
|
|
189
|
+
* The title of the Features component. This can be set to any string value no
|
|
190
|
+
* matter the features that are selected. If the [arcgis-features.selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeature)
|
|
191
|
+
* has a [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/), then the title set in the
|
|
192
|
+
* corresponding template is used here.
|
|
193
|
+
*
|
|
194
|
+
* @see [arcgis-features.headingLevel](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#headingLevel)
|
|
195
|
+
* @since 5.1
|
|
196
|
+
* @example
|
|
197
|
+
* ```js
|
|
198
|
+
* // This title will display in the component unless a selected feature's
|
|
199
|
+
* // PopupTemplate overrides it.
|
|
200
|
+
* featuresComponent.title = "Population by zip codes in Southern California";
|
|
201
|
+
* ```
|
|
202
|
+
*/
|
|
203
|
+
accessor heading: string | null | undefined;
|
|
204
|
+
/**
|
|
205
|
+
* Indicates the heading level to use for the [arcgis-features.heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#heading) of the component.
|
|
206
|
+
* By default, the heading is rendered
|
|
207
|
+
* as a level 2 heading (e.g. `<h2>Popup title</h2>`). Depending on the component's placement
|
|
208
|
+
* in your app, you may need to adjust this heading for proper semantics. This is
|
|
209
|
+
* important for meeting accessibility standards.
|
|
210
|
+
*
|
|
211
|
+
* @default 2
|
|
212
|
+
*/
|
|
213
|
+
accessor headingLevel: HeadingLevel;
|
|
214
|
+
/**
|
|
215
|
+
* Indicates whether to hide the action bar that holds the feature's [arcgis-features.actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#actions).
|
|
216
|
+
*
|
|
217
|
+
* @default false
|
|
218
|
+
*/
|
|
219
|
+
accessor hideActionBar: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* This property provides the ability to hide or show [attachments content](https://developers.arcgis.com/javascript/latest/references/core/popup/content/AttachmentsContent/) within the component.
|
|
222
|
+
*
|
|
223
|
+
* @default false
|
|
224
|
+
* @since 5.1
|
|
225
|
+
*/
|
|
226
|
+
accessor hideAttachmentsContent: boolean | undefined;
|
|
227
|
+
/**
|
|
228
|
+
* Indicates whether to hide the close button in the component.
|
|
229
|
+
*
|
|
230
|
+
* @default false
|
|
231
|
+
*/
|
|
232
|
+
accessor hideCloseButton: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* This property provides the ability to hide or show content within the component.
|
|
235
|
+
*
|
|
236
|
+
* @default false
|
|
237
|
+
* @since 5.1
|
|
238
|
+
*/
|
|
239
|
+
accessor hideContent: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* This property provides the ability to hide or show [custom content](https://developers.arcgis.com/javascript/latest/references/core/popup/content/CustomContent/) within the component.
|
|
242
|
+
*
|
|
243
|
+
* @default false
|
|
244
|
+
* @since 5.1
|
|
245
|
+
*/
|
|
246
|
+
accessor hideCustomContent: boolean | undefined;
|
|
247
|
+
/**
|
|
248
|
+
* This property provides the ability to hide or show [expression content](https://developers.arcgis.com/javascript/latest/references/core/popup/content/ExpressionContent/) within the component.
|
|
249
|
+
*
|
|
250
|
+
* @default false
|
|
251
|
+
* @since 5.1
|
|
252
|
+
*/
|
|
253
|
+
accessor hideExpressionContent: boolean;
|
|
254
|
+
/**
|
|
255
|
+
* Indicates whether to hide the group heading for a list of multiple features.
|
|
256
|
+
*
|
|
257
|
+
* @default false
|
|
258
|
+
* @since 5.1
|
|
259
|
+
*/
|
|
260
|
+
accessor hideFeatureListLayerTitle: boolean;
|
|
261
|
+
/**
|
|
262
|
+
* Indicates whether to hide the feature menu heading and description in the component's feature menu list.
|
|
263
|
+
*
|
|
264
|
+
* @default false
|
|
265
|
+
*/
|
|
266
|
+
accessor hideFeatureMenuHeading: boolean;
|
|
267
|
+
/**
|
|
268
|
+
* Indicates whether to hide the feature navigation in the component. This allows the user to scroll through various [features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#features) using pagination arrows.
|
|
269
|
+
*
|
|
270
|
+
* @default false
|
|
271
|
+
*/
|
|
272
|
+
accessor hideFeatureNavigation: boolean;
|
|
273
|
+
/**
|
|
274
|
+
* This property provides the ability to hide or show [fields content](https://developers.arcgis.com/javascript/latest/references/core/popup/content/FieldsContent/) within the component.
|
|
275
|
+
*
|
|
276
|
+
* @default false
|
|
277
|
+
* @since 5.1
|
|
278
|
+
*/
|
|
279
|
+
accessor hideFieldsContent: boolean | undefined;
|
|
280
|
+
/**
|
|
281
|
+
* Indicates whether to hide the heading in the component.
|
|
282
|
+
*
|
|
283
|
+
* @default false
|
|
284
|
+
*/
|
|
285
|
+
accessor hideHeading: boolean;
|
|
286
|
+
/**
|
|
287
|
+
* This property provides the ability to hide or show the last edited info within the component.
|
|
288
|
+
*
|
|
289
|
+
* @default false
|
|
290
|
+
* @since 5.1
|
|
291
|
+
*/
|
|
292
|
+
accessor hideLastEditedInfo: boolean;
|
|
293
|
+
/**
|
|
294
|
+
* This property provides the ability to hide or show [media content](https://developers.arcgis.com/javascript/latest/references/core/popup/content/MediaContent/) within the component.
|
|
295
|
+
*
|
|
296
|
+
* @default false
|
|
297
|
+
* @since 5.1
|
|
298
|
+
*/
|
|
299
|
+
accessor hideMediaContent: boolean | undefined;
|
|
300
|
+
/**
|
|
301
|
+
* This property provides the ability to hide or show [relationship content](https://developers.arcgis.com/javascript/latest/references/core/popup/content/RelationshipContent/) within the component.
|
|
302
|
+
*
|
|
303
|
+
* @default false
|
|
304
|
+
* @since 5.1
|
|
305
|
+
*/
|
|
306
|
+
accessor hideRelationshipContent: boolean | undefined;
|
|
307
|
+
/**
|
|
308
|
+
* Indicates whether to hide the *select feature* action when viewing associated and related features.
|
|
309
|
+
*
|
|
310
|
+
* @default false
|
|
311
|
+
* @since 5.1
|
|
312
|
+
*/
|
|
313
|
+
accessor hideSelectFeature: boolean;
|
|
314
|
+
/**
|
|
315
|
+
* Indicates whether to hide the spinner in the component.
|
|
316
|
+
*
|
|
317
|
+
* @default false
|
|
318
|
+
*/
|
|
319
|
+
accessor hideSpinner: boolean;
|
|
320
|
+
/**
|
|
321
|
+
* This property provides the ability to hide or show [text content](https://developers.arcgis.com/javascript/latest/references/core/popup/content/TextContent/) within the component.
|
|
322
|
+
*
|
|
323
|
+
* @default false
|
|
324
|
+
* @since 5.1
|
|
325
|
+
*/
|
|
326
|
+
accessor hideTextContent: boolean | undefined;
|
|
327
|
+
/**
|
|
328
|
+
* This property provides the ability to hide or show [utility network content](https://developers.arcgis.com/javascript/latest/references/core/popup/content/UtilityNetworkAssociationsContent/) within the component.
|
|
329
|
+
*
|
|
330
|
+
* @default false
|
|
331
|
+
* @since 5.1
|
|
332
|
+
*/
|
|
333
|
+
accessor hideUtilityNetworkContent: boolean | undefined;
|
|
334
|
+
/**
|
|
335
|
+
* Indicates whether to highlight the [arcgis-features.selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeature) in the associated
|
|
336
|
+
* [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/) or [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/) component.
|
|
337
|
+
*
|
|
338
|
+
* @default false
|
|
339
|
+
* @since 5.1
|
|
340
|
+
*/
|
|
341
|
+
accessor highlightDisabled: boolean;
|
|
342
|
+
/**
|
|
343
|
+
* Icon which represents the component.
|
|
344
|
+
* Typically used when the component is controlled by another component (e.g. by the Expand component).
|
|
345
|
+
*
|
|
346
|
+
* @see [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)
|
|
347
|
+
*/
|
|
348
|
+
accessor icon: IconName | undefined;
|
|
349
|
+
/**
|
|
350
|
+
* Indicates whether to include the default actions in the component.
|
|
351
|
+
* In order to disable any default actions, it is necessary to set `includeDefaultActionsDisabled` to `true`.
|
|
352
|
+
*
|
|
353
|
+
* @default false
|
|
354
|
+
* @since 5.1
|
|
355
|
+
*/
|
|
356
|
+
accessor includeDefaultActionsDisabled: boolean;
|
|
357
|
+
/**
|
|
358
|
+
* Indicates whether to initially display a list of features, or the content for one feature.
|
|
359
|
+
*
|
|
360
|
+
* @default "feature"
|
|
361
|
+
*/
|
|
362
|
+
accessor initialDisplayMode: InitialDisplayOptions;
|
|
363
|
+
/** The component's default label. */
|
|
364
|
+
accessor label: string | undefined;
|
|
365
|
+
/**
|
|
366
|
+
* A map is required when the input [arcgis-features.features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#features) have a popupTemplate that contains [Arcade](https://developers.arcgis.com/arcade) expressions in [ExpressionInfo](https://developers.arcgis.com/javascript/latest/references/core/popup/ExpressionInfo/) or [ExpressionContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/ExpressionContent/) that may use the `$map` profile variable to access data from layers within a map. Without a map, expressions that use `$map` will throw an error.
|
|
367
|
+
*
|
|
368
|
+
* Alternatively, the [arcgis-features.view](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#view) property can be used to provide the map instance for this property.
|
|
369
|
+
*
|
|
370
|
+
* @default null
|
|
371
|
+
* @see [Type system](https://developers.arcgis.com/arcade/guide/types/#featuresetcollection)
|
|
372
|
+
* @see [Arcade Profiles: Popup](https://developers.arcgis.com/arcade/profiles/popup/)
|
|
373
|
+
* @example
|
|
374
|
+
* ```js
|
|
375
|
+
* // The building footprints represent the buildings that intersect a clicked parcel
|
|
376
|
+
* let buildingFootprints = Intersects($feature, FeatureSetByName($map, "Building Footprints"));
|
|
377
|
+
* ```
|
|
378
|
+
*/
|
|
379
|
+
accessor map: Map | null | undefined;
|
|
380
|
+
/**
|
|
381
|
+
* Replace localized message strings with your own strings.
|
|
382
|
+
*
|
|
383
|
+
* _**Note**: Individual message keys may change between releases._
|
|
384
|
+
*
|
|
385
|
+
* @since 5.1
|
|
386
|
+
*/
|
|
387
|
+
accessor messageOverrides: {
|
|
388
|
+
componentLabel?: string | undefined;
|
|
389
|
+
zoom?: string | undefined;
|
|
390
|
+
browseAggregatedFeatures?: string | undefined;
|
|
391
|
+
aggregatedFeatures?: string | undefined;
|
|
392
|
+
aggregatedFeaturesPlaceholder?: string | undefined;
|
|
393
|
+
collapse?: string | undefined;
|
|
394
|
+
expand?: string | undefined;
|
|
395
|
+
noAggregatedFeatures?: string | undefined;
|
|
396
|
+
featuresList?: string | undefined;
|
|
397
|
+
total?: string | undefined;
|
|
398
|
+
pageText?: string | undefined;
|
|
399
|
+
selectFeature?: string | undefined;
|
|
400
|
+
down?: string | undefined;
|
|
401
|
+
first?: string | undefined;
|
|
402
|
+
last?: string | undefined;
|
|
403
|
+
next?: string | undefined;
|
|
404
|
+
page?: string | undefined;
|
|
405
|
+
previous?: string | undefined;
|
|
406
|
+
up?: string | undefined;
|
|
407
|
+
untitled?: string | undefined;
|
|
408
|
+
loading?: string | undefined;
|
|
409
|
+
back?: string | undefined;
|
|
410
|
+
errorMessage?: string | undefined;
|
|
411
|
+
returnToInitialFeature?: string | undefined;
|
|
412
|
+
};
|
|
413
|
+
/** @internal */
|
|
414
|
+
protected messages: Partial<{
|
|
415
|
+
componentLabel: string;
|
|
416
|
+
zoom: string;
|
|
417
|
+
browseAggregatedFeatures: string;
|
|
418
|
+
aggregatedFeatures: string;
|
|
419
|
+
aggregatedFeaturesPlaceholder: string;
|
|
420
|
+
collapse: string;
|
|
421
|
+
expand: string;
|
|
422
|
+
noAggregatedFeatures: string;
|
|
423
|
+
featuresList: string;
|
|
424
|
+
total: string;
|
|
425
|
+
pageText: string;
|
|
426
|
+
selectFeature: string;
|
|
427
|
+
down: string;
|
|
428
|
+
first: string;
|
|
429
|
+
last: string;
|
|
430
|
+
next: string;
|
|
431
|
+
page: string;
|
|
432
|
+
previous: string;
|
|
433
|
+
up: string;
|
|
434
|
+
untitled: string;
|
|
435
|
+
loading: string;
|
|
436
|
+
back: string;
|
|
437
|
+
errorMessage: string;
|
|
438
|
+
returnToInitialFeature: string;
|
|
439
|
+
}> & T9nMeta<{
|
|
440
|
+
componentLabel: string;
|
|
441
|
+
zoom: string;
|
|
442
|
+
browseAggregatedFeatures: string;
|
|
443
|
+
aggregatedFeatures: string;
|
|
444
|
+
aggregatedFeaturesPlaceholder: string;
|
|
445
|
+
collapse: string;
|
|
446
|
+
expand: string;
|
|
447
|
+
noAggregatedFeatures: string;
|
|
448
|
+
featuresList: string;
|
|
449
|
+
total: string;
|
|
450
|
+
pageText: string;
|
|
451
|
+
selectFeature: string;
|
|
452
|
+
down: string;
|
|
453
|
+
first: string;
|
|
454
|
+
last: string;
|
|
455
|
+
next: string;
|
|
456
|
+
page: string;
|
|
457
|
+
previous: string;
|
|
458
|
+
up: string;
|
|
459
|
+
untitled: string;
|
|
460
|
+
loading: string;
|
|
461
|
+
back: string;
|
|
462
|
+
errorMessage: string;
|
|
463
|
+
returnToInitialFeature: string;
|
|
464
|
+
}>;
|
|
465
|
+
/**
|
|
466
|
+
* Indicates whether the component is visible. This property is `true` when the component is querying for results, even if it is not open. Use this property to check if the component is visible.
|
|
467
|
+
*
|
|
468
|
+
* When setting the [content](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#content) and [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#heading) directly, it is recommended to call [clear()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#clear) before setting `open` to `true` to remove any existing promises, features, heading, location, and content from the component. Otherwise, the old content will display.
|
|
469
|
+
*
|
|
470
|
+
* @default false
|
|
471
|
+
* @see [fetchFeatures()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#fetchFeatures)
|
|
472
|
+
* @see [active](https://developers.arcgis.com/javascript/latest/references/core/popup/Features/#active)
|
|
473
|
+
* @see [clear()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#clear)
|
|
474
|
+
* @since 5.0
|
|
475
|
+
* @example
|
|
476
|
+
* ```js
|
|
477
|
+
* // Listen for clicks on the view and open the component at the clicked location with custom content.
|
|
478
|
+
* viewElement.addEventListener("arcgisViewClick", (event) => {
|
|
479
|
+
* const { mapPoint } = event.detail;
|
|
480
|
+
* component.clear();
|
|
481
|
+
* component.location = mapPoint;
|
|
482
|
+
* component.heading = "You clicked here";
|
|
483
|
+
* component.content = "Latitude: " + mapPoint.latitude.toFixed(3) + ", Longitude: " + mapPoint.longitude.toFixed(3);
|
|
484
|
+
* component.open = true;
|
|
485
|
+
* });
|
|
486
|
+
* ```
|
|
487
|
+
*/
|
|
488
|
+
accessor open: boolean;
|
|
489
|
+
/**
|
|
490
|
+
* An array of pending Promises that have not yet been fulfilled. If there are
|
|
491
|
+
* no pending promises, the value is `null`. When the pending promises are
|
|
492
|
+
* resolved they are removed from this array and the features they return
|
|
493
|
+
* are pushed into the [arcgis-features.features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#features) array.
|
|
494
|
+
*/
|
|
495
|
+
accessor promises: Array<Promise<Array<Graphic>>>;
|
|
496
|
+
/**
|
|
497
|
+
* By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.
|
|
498
|
+
*
|
|
499
|
+
* @see [Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)
|
|
500
|
+
*/
|
|
501
|
+
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
502
|
+
/**
|
|
503
|
+
* The feature that the component has drilled into.
|
|
504
|
+
* This feature is either associated with the selected feature in a [relationship](https://developers.arcgis.com/javascript/latest/references/core/popup/content/RelationshipContent/)
|
|
505
|
+
* or [utility network](https://developers.arcgis.com/javascript/latest/references/core/popup/content/UtilityNetworkAssociationsContent/) element.
|
|
506
|
+
*
|
|
507
|
+
* @since 5.1
|
|
508
|
+
*/
|
|
509
|
+
get selectedDrillInFeature(): Graphic | undefined;
|
|
510
|
+
/**
|
|
511
|
+
* The selected feature accessed by the Features component. The content displayed in the component is
|
|
512
|
+
* determined based on the [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) assigned to this feature.
|
|
513
|
+
*/
|
|
514
|
+
get selectedFeature(): Graphic | null;
|
|
515
|
+
/**
|
|
516
|
+
* Returns a reference to the current [arcgis-feature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-feature/) component.
|
|
517
|
+
* This is useful if needing to get a reference to the Feature component in order to make any changes to it.
|
|
518
|
+
*
|
|
519
|
+
* @since 5.1
|
|
520
|
+
*/
|
|
521
|
+
get selectedFeatureComponent(): ArcgisFeatureNext | undefined;
|
|
522
|
+
/**
|
|
523
|
+
* Index of the feature that is [arcgis-features.selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeature). When [arcgis-features.features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#features) are set,
|
|
524
|
+
* the first index is automatically selected.
|
|
525
|
+
*/
|
|
526
|
+
accessor selectedFeatureIndex: number;
|
|
527
|
+
/**
|
|
528
|
+
* Indicates whether to show the collapse button in the component.
|
|
529
|
+
*
|
|
530
|
+
* @default false
|
|
531
|
+
*/
|
|
532
|
+
accessor showCollapseButton: boolean;
|
|
533
|
+
/**
|
|
534
|
+
* The spatial reference used for [Arcade](https://developers.arcgis.com/arcade) operations.
|
|
535
|
+
* This property should be set if the Features component executes Arcade expressions that contain [geometry functions](https://developers.arcgis.com/arcade/function-reference/geometry_functions/).
|
|
536
|
+
*
|
|
537
|
+
* Alternatively, the [arcgis-features.view](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#view) property can be used to provide the spatial reference instance for this property.
|
|
538
|
+
*
|
|
539
|
+
* @default null
|
|
540
|
+
* @see [Type system](https://developers.arcgis.com/arcade/guide/types/#featuresetcollection)
|
|
541
|
+
* @see [Arcade Profiles: Popup](https://developers.arcgis.com/arcade/profiles/popup/)
|
|
542
|
+
*/
|
|
543
|
+
accessor spatialReference: SpatialReference | null | undefined;
|
|
544
|
+
/**
|
|
545
|
+
* The current state of the component.
|
|
546
|
+
*
|
|
547
|
+
* @default "disabled"
|
|
548
|
+
*/
|
|
549
|
+
get state(): State;
|
|
550
|
+
/**
|
|
551
|
+
* Dates and times displayed in the component will be displayed in this time zone. By default this time zone is
|
|
552
|
+
* inherited from [arcgis-map.timeZone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#timeZone) if the [arcgis-features.view](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#view) property is set. When a MapView is not associated with the component
|
|
553
|
+
* then the property will fallback to the `system` time zone.
|
|
554
|
+
*
|
|
555
|
+
* **Possible Values**
|
|
556
|
+
* - `system`: Dates and times will be displayed in the timezone of the device or browser.
|
|
557
|
+
* - `unknown`: Dates and time are not adjusted for any timezone.
|
|
558
|
+
* - `Specified IANA timezone`: Dates and times will be displayed in the specified IANA time zone. See [wikipedia - List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
559
|
+
*
|
|
560
|
+
* @since 5.1
|
|
561
|
+
*/
|
|
562
|
+
accessor timeZone: string;
|
|
563
|
+
/**
|
|
564
|
+
* Indicates whether to update the feature location when the [arcgis-features.selectedFeatureIndex](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeatureIndex) changes.
|
|
565
|
+
*
|
|
566
|
+
* @default false
|
|
567
|
+
* @since 5.1
|
|
568
|
+
*/
|
|
569
|
+
accessor updateLocationEnabled: boolean;
|
|
570
|
+
/**
|
|
571
|
+
* A reference to the [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/) or [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/).
|
|
572
|
+
* The Features component requires a `view` to be set if:
|
|
573
|
+
* - The [arcgis-features.features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#features) have a popupTemplate containing Arcade expressions in [ExpressionInfo](https://developers.arcgis.com/javascript/latest/references/core/popup/ExpressionInfo/) or [ExpressionContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/ExpressionContent/) that may use [geometry functions](https://developers.arcgis.com/arcade/function-reference/geometry_functions/) or reference the `$map` profile variable (i.e. access data from layers within a map). Alternatively, set the [arcgis-features.map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#map) property.
|
|
574
|
+
* - Content is displayed from the popup template of an [aggregate feature](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#isAggregate) (i.e. a [cluster](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FeatureReductionCluster/) or [bin](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FeatureReductionBinning/)).
|
|
575
|
+
* - Values from `date` and `timestamp-offset` fields should respect the view's [time zone](https://developers.arcgis.com/javascript/latest/references/core/views/View/#timeZone).
|
|
576
|
+
* Alternatively, set the [arcgis-features.timeZone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#timeZone) property.
|
|
577
|
+
* - Using the [arcgis-features.fetchFeatures()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#fetchFeatures) method or the `fetchFeatures` option in the [arcgis-features.open](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#open) method.
|
|
578
|
+
* - Using the `Zoom to` default action. If the `view` is not specified, set the [arcgis-features.includeDefaultActionsDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#includeDefaultActionsDisabled) property to `true` to remove this default action.
|
|
579
|
+
*
|
|
580
|
+
* @since 5.1
|
|
581
|
+
*/
|
|
582
|
+
accessor view: MapViewOrSceneView | null | undefined;
|
|
583
|
+
/** @since 5.1 */
|
|
584
|
+
accessor viewModel: Features;
|
|
585
|
+
/**
|
|
586
|
+
* Removes [arcgis-features.promises](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#promises), [arcgis-features.features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#features), [arcgis-features.content](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#content), and
|
|
587
|
+
* [arcgis-features.heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#heading) from the Features component.
|
|
588
|
+
*/
|
|
589
|
+
clear(): void;
|
|
590
|
+
/** A convenience method to close the component. */
|
|
591
|
+
close(): void;
|
|
592
|
+
/** Permanently destroy the component. */
|
|
593
|
+
destroy(): Promise<void>;
|
|
594
|
+
/**
|
|
595
|
+
* Use this method to return feature(s) at a given screen location. These features are fetched from all of the [LayerViews](https://developers.arcgis.com/javascript/latest/references/core/views/layers/LayerView/) in the [view](https://developers.arcgis.com/javascript/latest/references/core/views/View/). In order to use this, a layer must already have an associated [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) and have its [popupEnabled](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#popupEnabled). This method allows a developer to control how the input location is handled. For example, you may want to fetch features on a `click` event or on a `pointer-move` event. This method automatically sets the location based on the input event's screen coordinates.
|
|
596
|
+
*
|
|
597
|
+
* @param screenPoint
|
|
598
|
+
* @param options
|
|
599
|
+
* @see [open](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#open)
|
|
600
|
+
* @example
|
|
601
|
+
* ```js
|
|
602
|
+
* const viewElement = document.querySelector("arcgis-map");
|
|
603
|
+
* // Get viewElement's click event
|
|
604
|
+
* reactiveUtils.on(()=>viewElement, "arcgisViewClick", async (event)=>{
|
|
605
|
+
* // Call fetchFeatures on the component and pass in the click event detail
|
|
606
|
+
* await component.fetchFeatures(event.detail);
|
|
607
|
+
* });
|
|
608
|
+
* // Watch for changes to the features property and open the component when features are available.
|
|
609
|
+
* reactiveUtils.watch(
|
|
610
|
+
* () => component.features,
|
|
611
|
+
* () => {
|
|
612
|
+
* component.open = component.features ? true : false;
|
|
613
|
+
* },
|
|
614
|
+
* );
|
|
615
|
+
* ```
|
|
616
|
+
*/
|
|
617
|
+
fetchFeatures(screenPoint?: ScreenPoint, options?: FetchFeaturesOptions): Promise<void>;
|
|
618
|
+
/**
|
|
619
|
+
* Selects the feature at the next index in relation to the [arcgis-features.selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeature).
|
|
620
|
+
*
|
|
621
|
+
* @see [arcgis-features.selectedFeatureIndex](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeatureIndex)
|
|
622
|
+
*/
|
|
623
|
+
next(): void;
|
|
624
|
+
/**
|
|
625
|
+
* Selects the feature at the previous index in relation to the [arcgis-features.selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeature).
|
|
626
|
+
*
|
|
627
|
+
* @see [arcgis-features.selectedFeatureIndex](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeatureIndex)
|
|
628
|
+
*/
|
|
629
|
+
previous(): void;
|
|
630
|
+
/**
|
|
631
|
+
* Use this method to give focus to the Component if the component is able to be focused.
|
|
632
|
+
*
|
|
633
|
+
* @since 5.1
|
|
634
|
+
*/
|
|
635
|
+
setFocus(): Promise<void>;
|
|
636
|
+
/**
|
|
637
|
+
* Triggers the [arcgis-features.@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#event-arcgisTriggerAction) event and executes the action
|
|
638
|
+
* at the specified index in the [arcgis-features.actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#actions) array.
|
|
639
|
+
*
|
|
640
|
+
* @param action
|
|
641
|
+
*/
|
|
642
|
+
triggerAction(action: ActionButton | ActionToggle): Promise<void>;
|
|
643
|
+
/** Emitted when the component's close button is clicked. */
|
|
644
|
+
readonly arcgisClose: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
645
|
+
/** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
|
|
646
|
+
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "active" | "collapsed" | "effectiveHeading" | "featureCount" | "featureMenuOpen" | "features" | "promises" | "selectedDrillInFeature" | "selectedFeature" | "selectedFeatureComponent" | "selectedFeatureIndex" | "state" | "open"; }>;
|
|
647
|
+
/** Emitted when the component associated with a map or scene view is ready to be interacted with. */
|
|
648
|
+
readonly arcgisReady: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
649
|
+
/**
|
|
650
|
+
* Fires after the user clicks on an action in the component.
|
|
651
|
+
* This event may be used to define a custom function to execute when particular actions are clicked.
|
|
652
|
+
*
|
|
653
|
+
* @see [arcgis-features.actions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#actions)
|
|
654
|
+
* @see [PopupTemplate.actions](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/#actions)
|
|
655
|
+
* @see [arcgis-features.open](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#open)
|
|
656
|
+
* @example
|
|
657
|
+
* ```js
|
|
658
|
+
* // Fires each time an action is clicked
|
|
659
|
+
* reactiveUtils.on(()=> component, "arcgisTriggerAction", (event)=>{
|
|
660
|
+
* // If the zoom-out action is clicked, execute the following code
|
|
661
|
+
* if(event.detail.action.id === "zoom-out"){
|
|
662
|
+
* // Zoom out two levels (LODs)
|
|
663
|
+
* viewElement.goTo({
|
|
664
|
+
* center: viewElement.center,
|
|
665
|
+
* zoom: viewElement.zoom - 2
|
|
666
|
+
* });
|
|
667
|
+
* }
|
|
668
|
+
* });
|
|
669
|
+
* ```
|
|
670
|
+
*/
|
|
671
|
+
readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this, ActionEvent>;
|
|
672
|
+
readonly "@eventTypes": {
|
|
673
|
+
arcgisClose: ArcgisFeaturesNext["arcgisClose"]["detail"];
|
|
674
|
+
arcgisPropertyChange: ArcgisFeaturesNext["arcgisPropertyChange"]["detail"];
|
|
675
|
+
arcgisReady: ArcgisFeaturesNext["arcgisReady"]["detail"];
|
|
676
|
+
arcgisTriggerAction: ArcgisFeaturesNext["arcgisTriggerAction"]["detail"];
|
|
677
|
+
};
|
|
678
|
+
}
|