@arcgis/map-components 5.2.0-next.7 → 5.2.0-next.9

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.
Files changed (87) hide show
  1. package/dist/cdn/{WA7JHFV4.js → 2LRS7XSQ.js} +1 -1
  2. package/dist/cdn/462X4ZCG.js +2 -0
  3. package/dist/cdn/{Y27ZQGV5.js → CW7J5L5W.js} +1 -1
  4. package/dist/cdn/D2JUQOOB.js +2 -0
  5. package/dist/cdn/{YABPKPDP.js → GX45UPO4.js} +1 -1
  6. package/dist/cdn/{JQVWY2TG.js → HXDS4O7D.js} +1 -1
  7. package/dist/cdn/HXHMU23F.js +2 -0
  8. package/dist/cdn/{XKPUIYHL.js → JAANZHBL.js} +1 -1
  9. package/dist/cdn/K5NKFHWA.js +2 -0
  10. package/dist/cdn/{GRF2FJN5.js → OO3T24WP.js} +1 -1
  11. package/dist/cdn/{P3TXSVMD.js → QZB3WXJH.js} +2 -2
  12. package/dist/cdn/ROQ6HC6T.js +2 -0
  13. package/dist/cdn/{QM2RBDFO.js → TQYGI7O4.js} +1 -1
  14. package/dist/cdn/U5FGCB62.js +2 -0
  15. package/dist/cdn/{FZNGDLO6.js → U6FG3DCW.js} +1 -1
  16. package/dist/cdn/{FT2LXOKH.js → UADZMW3G.js} +1 -1
  17. package/dist/cdn/{2THVOG4Y.js → WA7IUOYU.js} +1 -1
  18. package/dist/cdn/{CUMFJ3AY.js → XMYIWNY6.js} +1 -1
  19. package/dist/cdn/XUDFNAMR.js +2 -0
  20. package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -1
  21. package/dist/cdn/index.js +1 -1
  22. package/dist/components/arcgis-feature-templates/customElement.d.ts +10 -8
  23. package/dist/components/arcgis-feature-templates/customElement.js +198 -247
  24. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +18 -15
  25. package/dist/components/arcgis-map/customElement.d.ts +21 -35
  26. package/dist/components/arcgis-measurement-content/customElement.js +5 -5
  27. package/dist/components/arcgis-paste/PasteViewModel.d.ts +2 -2
  28. package/dist/components/arcgis-template-image/customElement.d.ts +2 -2
  29. package/dist/components/arcgis-template-image/customElement.js +25 -22
  30. package/dist/components/arcgis-template-image/index.js +1 -0
  31. package/dist/components/arcgis-weather/customElement.js +108 -102
  32. package/dist/docs/api.json +1 -1
  33. package/dist/docs/docs.json +1 -1
  34. package/dist/docs/vscode.html-custom-data.json +1 -1
  35. package/dist/docs/web-types.json +1 -1
  36. package/package.json +5 -5
  37. package/dist/cdn/5T3MHTWU.js +0 -2
  38. package/dist/cdn/6N233F4I.js +0 -2
  39. package/dist/cdn/ABPHGXQN.js +0 -2
  40. package/dist/cdn/L34RL7Y3.js +0 -2
  41. package/dist/cdn/QY5F7WAO.js +0 -2
  42. package/dist/cdn/RJM52R4G.js +0 -2
  43. package/dist/cdn/UZWPHO3G.js +0 -2
  44. package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +0 -33
  45. /package/dist/cdn/{Q5PJLESJ.js → 2IJFHZMD.js} +0 -0
  46. /package/dist/cdn/{TIRTPJYQ.js → 2KJOV5HK.js} +0 -0
  47. /package/dist/cdn/{2LKEXUGD.js → 2SUHVYCI.js} +0 -0
  48. /package/dist/cdn/{27HHZNMM.js → 2YXRZJMN.js} +0 -0
  49. /package/dist/cdn/{XPS7ZSFJ.js → 3JMCA4ZR.js} +0 -0
  50. /package/dist/cdn/{HQPBHWPK.js → 4GKDVLBA.js} +0 -0
  51. /package/dist/cdn/{AK2M26FE.js → 4XU4I5VY.js} +0 -0
  52. /package/dist/cdn/{KIZ3ARHJ.js → 5DCYVSSO.js} +0 -0
  53. /package/dist/cdn/{SOOQCCHH.js → 5UPND3OG.js} +0 -0
  54. /package/dist/cdn/{O2CLPWU5.js → 6CGHMQTL.js} +0 -0
  55. /package/dist/cdn/{Y3B5PQ5E.js → 6DVVJ6UQ.js} +0 -0
  56. /package/dist/cdn/{XVY5OKH2.js → AQB6HLVS.js} +0 -0
  57. /package/dist/cdn/{IA3NCWIB.js → B4A4RH4L.js} +0 -0
  58. /package/dist/cdn/{VHB2BYFO.js → B5D6OPEJ.js} +0 -0
  59. /package/dist/cdn/{HUYCG6D3.js → C3LA23CB.js} +0 -0
  60. /package/dist/cdn/{NYHNV75B.js → C436KPG7.js} +0 -0
  61. /package/dist/cdn/{YJPDBYVX.js → CGISH4NH.js} +0 -0
  62. /package/dist/cdn/{AT6DOX43.js → DF5Q25A7.js} +0 -0
  63. /package/dist/cdn/{ZX5J6SMV.js → DIZDIIUN.js} +0 -0
  64. /package/dist/cdn/{3YVA4NJL.js → DJ3VJDLN.js} +0 -0
  65. /package/dist/cdn/{GLRISNYR.js → DVZKG2WC.js} +0 -0
  66. /package/dist/cdn/{PMWIRBWT.js → EFUEICKE.js} +0 -0
  67. /package/dist/cdn/{WFJH7WES.js → ELJCC3WK.js} +0 -0
  68. /package/dist/cdn/{FYDZH6BL.js → EPLP4YMK.js} +0 -0
  69. /package/dist/cdn/{QI5WIEJM.js → F7DW6VHH.js} +0 -0
  70. /package/dist/cdn/{CDAV4NEB.js → FBXUEXNZ.js} +0 -0
  71. /package/dist/cdn/{KEGLDP4A.js → FZYHVESP.js} +0 -0
  72. /package/dist/cdn/{HH3DMGSF.js → HAADLXJX.js} +0 -0
  73. /package/dist/cdn/{744JVRBH.js → HQZQCK6J.js} +0 -0
  74. /package/dist/cdn/{A4S3GECZ.js → L3L24SIA.js} +0 -0
  75. /package/dist/cdn/{3JU2AHMP.js → LM6ZA4HA.js} +0 -0
  76. /package/dist/cdn/{CTMF7NFP.js → LXZ2GZTN.js} +0 -0
  77. /package/dist/cdn/{6FT2R5PB.js → O263Z4SH.js} +0 -0
  78. /package/dist/cdn/{2G4VQVBD.js → O4PQUMJR.js} +0 -0
  79. /package/dist/cdn/{ADD3R54T.js → PU6QKY7I.js} +0 -0
  80. /package/dist/cdn/{UUUPIG6P.js → TW24OEJB.js} +0 -0
  81. /package/dist/cdn/{IBGSVDSQ.js → UJA6BLTS.js} +0 -0
  82. /package/dist/cdn/{24HADOKV.js → UUCYWMS2.js} +0 -0
  83. /package/dist/cdn/{FUTB3TZA.js → VKIVTDAN.js} +0 -0
  84. /package/dist/cdn/{BRANLHXP.js → WBNMJ4VE.js} +0 -0
  85. /package/dist/cdn/{APMRTXPD.js → WGGJPXPR.js} +0 -0
  86. /package/dist/cdn/{MLV3GXE7.js → YJMFI5UV.js} +0 -0
  87. /package/dist/cdn/{SWYSBYOY.js → YLLLSHFK.js} +0 -0
@@ -45,11 +45,11 @@ function ne(i, e) {
45
45
  return m ? c`<span aria-hidden=true class=${d(P(i.itemActionIcon, { [i.itemActionImage]: !!m }))} style=${Ce(Te(m))}></span>` : null;
46
46
  }
47
47
  function te(i, e, l) {
48
- const { item: m, css: a, handleAction: y } = i, { active: C, disabled: I, title: g, type: S, indicator: f } = e, T = ie(e);
49
- return c`<calcite-action .active=${S === "toggle" ? e.value : !1} data-action-id=${e.id ?? r} .disabled=${I} .icon=${T} .indicator=${f} .loading=${C} @click=${() => Re(y, m, e)} scale=s slot=${(l ? void 0 : "actions-end") ?? r} .text=${g ?? ""} .textEnabled=${l} title=${g ?? void 0 ?? r}>${ne(a, e)}</calcite-action>`;
48
+ const { item: m, css: a, handleAction: v } = i, { active: C, disabled: I, title: g, type: S, indicator: f } = e, T = ie(e);
49
+ return c`<calcite-action .active=${S === "toggle" ? e.value : !1} data-action-id=${e.id ?? r} .disabled=${I} .icon=${T} .indicator=${f} .loading=${C} @click=${() => Re(v, m, e)} scale=s slot=${(l ? void 0 : "actions-end") ?? r} .text=${g ?? ""} .textEnabled=${l} title=${g ?? void 0 ?? r}>${ne(a, e)}</calcite-action>`;
50
50
  }
51
51
  function Ge(i) {
52
- const { item: e, parent: l, hideStatusIndicators: m, css: a, visibilityAppearance: y, hideCatalogLayerList: C, dragEnabled: I = !1, rootGroupUid: g, listModeDisabled: S = !1, selectionMode: f, displayMode: T, layerTablesEnabled: x, showErrors: ce, parentTitles: F, selectedItems: se, activeItem: oe, handleCatalogOpen: re, handleTablesOpen: de, selectedDragItemLayerUid: ue, handleSelectedDragItemLayerUidChange: me, handlePanelOpen: pe, messages: n, setCurrentActiveItem: O, clearActiveItem: R } = i, $ = X(), M = X(), b = e.title || ("untitledTable" in n ? n.untitledTable : n.untitledLayer ?? "");
52
+ const { item: e, parent: l, hideStatusIndicators: m, css: a, visibilityAppearance: v, hideCatalogLayerList: C, dragEnabled: I = !1, rootGroupUid: g, listModeDisabled: S = !1, selectionMode: f, displayMode: T, layerTablesEnabled: x, showErrors: ce, parentTitles: F, selectedItems: se, activeItem: oe, handleCatalogOpen: re, handleTablesOpen: de, selectedDragItemLayerUid: ue, handleSelectedDragItemLayerUidChange: me, handlePanelOpen: pe, messages: n, setCurrentActiveItem: O, clearActiveItem: R } = i, $ = X(), M = X(), b = e.title || ("untitledTable" in n ? n.untitledTable : n.untitledLayer ?? "");
53
53
  let V = null;
54
54
  m || (V = c`<arcgis-layer-list-item-indicator class=${d(a.statusIndicator)} .messages=${n} .item=${e} .parent=${l} slot=content-end></arcgis-layer-list-item-indicator>`);
55
55
  let G = null;
@@ -58,16 +58,16 @@ function Ge(i) {
58
58
  (i.showTemporaryLayerIndicators || i.showTemporaryTableIndicators) && s && (G = c`<calcite-icon class=${d(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${n.temporary ?? r}></calcite-icon>`);
59
59
  }
60
60
  let H = null;
61
- if ("visible" in e && "visibleToggle" in a && y) {
61
+ if ("visible" in e && "visibleToggle" in a && v) {
62
62
  const t = D(l);
63
63
  if (t !== "inherited") {
64
64
  const s = xe({
65
65
  visible: e.visible,
66
66
  exclusive: t === "exclusive",
67
- visibilityAppearance: y
68
- }), o = y === "checkbox", p = n.layerVisibility, h = le(e.layer?.id);
69
- H = c`<calcite-action .aria=${{ pressed: h }} class=${d(a.visibleToggle)} .icon=${o ? s : void 0} @click=${(v) => {
70
- De(v.currentTarget, e.layer?.id), ee(e, l);
67
+ visibilityAppearance: v
68
+ }), o = v === "checkbox", p = n.layerVisibility, h = le(e.layer?.id);
69
+ H = c`<calcite-action .aria=${{ pressed: h }} class=${d(a.visibleToggle)} .icon=${o ? s : void 0} @click=${(y) => {
70
+ De(y.currentTarget, e.layer?.id), ee(e, l);
71
71
  }} .slot=${o ? "actions-start" : "actions-end"} .text=${p ?? ""} title=${p ?? r}>${o ? null : c`<calcite-icon class=${d(P({
72
72
  [a.visibleIcon]: t !== "exclusive" && e.visible
73
73
  }))} .icon=${s} scale=s></calcite-icon>`}</calcite-action>`;
@@ -82,8 +82,8 @@ function Ge(i) {
82
82
  {
83
83
  const t = e.panel;
84
84
  if (t?.visible) {
85
- const { open: s, title: o, disabled: p } = t, h = { icon: t.icon, image: t.image, indicator: !1 }, v = ie(h);
86
- q = c`<calcite-action .active=${s} .disabled=${p} .icon=${v} @click=${() => Fe(e, pe)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? r}>${ne(a, t)}</calcite-action>`;
85
+ const { open: s, title: o, disabled: p } = t, h = { icon: t.icon, image: t.image, indicator: !1 }, y = ie(h);
86
+ q = c`<calcite-action .active=${s} .disabled=${p} .icon=${y} @click=${() => Fe(e, pe)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? r}>${ne(a, t)}</calcite-action>`;
87
87
  }
88
88
  }
89
89
  let j = null;
@@ -118,11 +118,14 @@ function Ge(i) {
118
118
  }
119
119
  let z = null;
120
120
  if ("children" in e) {
121
- const t = [...F ?? [], e.title], { children: s, layer: o } = e, p = o?.type !== "catalog-dynamic-group" && Me(e), h = S ? !1 : Le(o), v = o?.type === "group", fe = !h && !p && I && v, he = I && "childrenSortable" in e && e.childrenSortable && Ee(e), Ie = p ? Se(s?.filter((u) => !u.hidden && (ce || !u.error)).toArray() ?? [], (u) => u.uid, (u) => Ge({ ...i, item: u, parent: e, parentTitles: t })) : null;
122
- (p || fe) && (z = c`<calcite-list .canPull=${(u) => i.canMove ? i.canMove(u, "pull") : !1} .canPut=${(u) => i.canMove ? i.canMove(u, "put") : !1} data-item=${e.uid ?? r} data-layer-type=${g ?? r} .displayMode=${T} .dragEnabled=${he} .group=${v ? g : `${g}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${f}>${Ie}${_}</calcite-list>`);
121
+ const t = [...F ?? [], e.title], { children: s, layer: o } = e, p = o?.type !== "catalog-dynamic-group" && Me(e), h = S ? !1 : Le(o), y = o?.type === "group", fe = !h && !p && I && y, he = I && "childrenSortable" in e && e.childrenSortable && Ee(e), Ie = p ? Se(s?.filter((u) => !u.hidden && (ce || !u.error)).toArray() ?? [], (u) => u.uid, (u) => Ge({ ...i, item: u, parent: e, parentTitles: t })) : null;
122
+ (p || fe) && (z = c`<calcite-list .canPull=${(u) => i.canMove ? i.canMove(u, "pull") : !1} .canPut=${(u) => i.canMove ? i.canMove(u, "put") : !1} data-item=${e.uid ?? r} data-layer-type=${g ?? r} .displayMode=${T} .dragEnabled=${he} .group=${y ? g : `${g}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${f}>${Ie}${_}</calcite-list>`);
123
123
  }
124
124
  let E = null;
125
- e.error ? E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${"tableError" in n ? n.tableError : n.layerError}</div></calcite-notice></div>` : "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${Y(M)}><div slot=message>${n.layerIncompatible}</div></calcite-notice></div>`);
125
+ if (e.error) {
126
+ const t = "layerError" in n ? n.layerError : n.tableError;
127
+ E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${t}</div></calcite-notice></div>`;
128
+ } else "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${Y(M)}><div slot=message>${n.layerIncompatible}</div></calcite-notice></div>`);
126
129
  const J = Ve(e), k = e.actionsSections.reduce((t, s) => t + s.length, 0), K = ke(J), $e = J.toArray().map((t) => c`<calcite-action-group>${t.toArray().map((s) => te(i, s, !0))}</calcite-action-group>`), ge = (t) => {
127
130
  e.actionsOpen = t.currentTarget.open;
128
131
  };
@@ -133,10 +136,10 @@ function Ge(i) {
133
136
  }} icon=ellipsis scale=s slot=trigger .text=${n.options ?? ""} title=${n.options ?? r}></calcite-action>${$e}</calcite-action-menu>`);
134
137
  let w = null;
135
138
  k === 1 && K ? w = te(i, K, !1) : k > 1 && (w = Q);
136
- const be = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${b} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${b} (${n.layerInvisibleAtScale})` : b, ve = "parent" in e && e.parent?.layer?.type === "catalog", A = e.layer, ye = "visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent;
139
+ const be = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${b} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${b} (${n.layerInvisibleAtScale})` : b, ye = "parent" in e && e.parent?.layer?.type === "catalog", A = e.layer, ve = "visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent;
137
140
  return queueMicrotask(() => {
138
141
  Oe($.value ?? null, e, ue, me), M.value && (i.handleTooltipReferenceChange?.(A?.uid, M.value), queueMicrotask(() => i.handleTooltipReferenceChange?.(A?.uid, null))), e.panel && (e.panel.container = $.value);
139
- }), W(e.uid, c`<calcite-list-item class=${d(P(a.item, "itemActive" in a && { [a.itemActive]: oe?.uid === e.uid }))} data-item=${e.uid ?? r} data-layer-id=${A?.id ?? r} .dragDisabled=${!("sortable" in e && e.sortable) || ve} id=${A?.uid ?? r} .label=${b} .metadata=${{ parentTitles: F ?? [], _title: b }} .expanded=${"open" in e && e.open} .selected=${f !== "none" ? se.includes(e) : !1} title=${be ?? r} .unavailable=${ye} .value=${e} @focusin=${() => {
142
+ }), W(e.uid, c`<calcite-list-item class=${d(P(a.item, "itemActive" in a && { [a.itemActive]: oe?.uid === e.uid }))} data-item=${e.uid ?? r} data-layer-id=${A?.id ?? r} .dragDisabled=${!("sortable" in e && e.sortable) || ye} id=${A?.uid ?? r} .label=${b} .metadata=${{ parentTitles: F ?? [], _title: b }} .expanded=${"open" in e && e.open} .selected=${f !== "none" ? se.includes(e) : !1} title=${be ?? r} .unavailable=${ve} .value=${e} @focusin=${() => {
140
143
  O?.(e), $.value?.classList.add(a.itemActive);
141
144
  }} @focusout=${() => {
142
145
  R?.(), $.value?.classList.remove(a.itemActive);
@@ -994,42 +994,28 @@ export abstract class ArcgisMap extends LitElement {
994
994
  */
995
995
  goTo(target: GoToTarget2D, options?: GoToOptions2D): Promise<unknown>;
996
996
  /**
997
- * Returns [hit test results](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#HitTestResult)
998
- * from each layer that intersects the specified screen coordinates. The results are
999
- * organized as an array of objects containing different [result types](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#HitTestResult).
1000
- *
1001
- * The following layer types will return all [features](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#GraphicHit) if a hit is
1002
- * made on intersecting features: [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/),
1003
- * [CatalogLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CatalogLayer/),
1004
- * [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/),
1005
- * [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/),
1006
- * [GeoRSSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoRSSLayer/),
1007
- * [GraphicsLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GraphicsLayer/),
1008
- * [KMLLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/KMLLayer/),
1009
- * [MapNotesLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MapNotesLayer/),
1010
- * [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OGCFeatureLayer/),
1011
- * [StreamLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/StreamLayer/),
1012
- * [SubtypeSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/support/SubtypeSublayer/),
1013
- * [VectorTileLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VectorTileLayer/), and
1014
- * [WFSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WFSLayer/).
1015
- *
1016
- * The [ParquetLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ParquetLayer/) hit result returns only the topmost feature
1017
- * when the hit occurs on overlapping features in a ParquetLayer.
1018
- *
1019
- * The [VectorTileLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VectorTileLayer/) hit test result contains an array of objects containing
1020
- * a [graphic](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#GraphicHit).
1021
- * The graphic returns attributes of a style layer. In addition, the graphic's [origin](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#origin)
1022
- * contains the style layer's [id](https://maplibre.org/maplibre-style-spec/layers/#id) and layer index within the [vector tile style](https://doc.arcgis.com/en/arcgis-online/reference/tile-layers.htm#ESRI_SECTION1_8F68399EB47B48FF9EF46719FCC96978).
1023
- * Spatial information about the actual feature represented in the style layer is returned only if the style layer is a [symbol layer](https://maplibre.org/maplibre-style-spec/layers/#symbol).
1024
- * Otherwise, the graphic's geometry is `null`.
1025
- *
1026
- * The [MediaLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MediaLayer/) hit test result contains all media elements if the hit is made on intersecting elements.
1027
- * The [RouteLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer/) hit test result contains all route elements if the hit is made on intersecting elements.
1028
- *
1029
- * If the [polygon](https://developers.arcgis.com/javascript/latest/references/core/geometry/Polygon/) feature's symbol
1030
- * [style](https://developers.arcgis.com/javascript/latest/references/core/symbols/SimpleFillSymbol/#style) is set to `none`, the hitTest method will not
997
+ * Returns [hit test results](https://developers.arcgis.com/javascript/latest/references/core/views/types/#ViewHitTestResult) from each layer that intersects the specified screen point or screen rectangle.
998
+ * The results are organized as an array of objects containing different [ViewHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#ViewHit) result types such as graphics, raster pixels, media elements, or routes.
999
+ *
1000
+ * **2D hitTest() behavior by layer type**
1001
+ * | Layer type | Hit test behavior |
1002
+ * | :--- | :--- |
1003
+ * | [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer), [CatalogFootprintLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/catalog/CatalogFootprintLayer), [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer), [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer), [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OGCFeatureLayer), [OrientedImageryLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OrientedImageryLayer), [StreamLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/StreamLayer), [SubtypeGroupLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SubtypeGroupLayer), [WFSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WFSLayer) | Returns all intersecting [GraphicHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#GraphicHit) features at the hit location. |
1004
+ * | [ParquetLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ParquetLayer) | Returns only the topmost [GraphicHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#GraphicHit) feature when the hit occurs on overlapping features. (as of version 4.34). |
1005
+ * | [GeoRSSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoRSSLayer), [GraphicsLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GraphicsLayer), [KMLLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/KMLLayer), [MapNotesLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MapNotesLayer) | Returns all intersecting [GraphicHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#GraphicHit) features at the hit location. |
1006
+ * | [ImageryLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ImageryLayer), [ImageryTileLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ImageryTileLayer)| Returns [RasterHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#RasterHit) result containing raster pixel value used in rendering and bandId info on intersecting pixels. The `screenRect` hitTarget is not supported for these layers. |
1007
+ * | [VectorTileLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VectorTileLayer) | Returns a result for all intersecting [GraphicHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#GraphicHit) features containing attributes of style layers (as of version 4.29; in prior releases, only the topmost style layer result was returned). In addition, the graphic's [origin](https://developers.arcgis.com/javascript/latest/references/core/Graphic#origin) contains the style layer's [id](https://maplibre.org/maplibre-style-spec/layers/#id) and layer index within the [vector tile style](https://doc.arcgis.com/en/arcgis-online/reference/tile-layers.htm#ESRI_SECTION1_8F68399EB47B48FF9EF46719FCC96978). Spatial information about the actual feature represented in the style layer is returned only if the style layer is a [symbol layer](https://maplibre.org/maplibre-style-spec/layers/#symbol). Otherwise, the graphic's geometry is `null`. |
1008
+ * | [MediaLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MediaLayer) | Returns [MediaHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#MediaHit) result containing all media elements if the hit is made on intersecting elements. |
1009
+ * | [RouteLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer) | Returns [RouteHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#RouteHit) result containing all intersecting route elements if the hit is made on intersecting elements. |
1010
+ *
1011
+ * **Note:** If the [Polygon](https://developers.arcgis.com/javascript/latest/references/core/geometry/Polygon) feature's symbol [SimpleFillSymbol.style](https://developers.arcgis.com/javascript/latest/references/core/symbols/SimpleFillSymbol#style) is set to "none", the hitTest method will not
1031
1012
  * return results when the fill is clicked. However, it will return results when the outline is clicked. To get results when clicking the fill, set the
1032
- * [color](https://developers.arcgis.com/javascript/latest/references/core/symbols/SimpleFillSymbol/#color) to a transparent color instead.
1013
+ * [SimpleFillSymbol.color](https://developers.arcgis.com/javascript/latest/references/core/symbols/SimpleFillSymbol#color) to a transparent color instead.
1014
+ *
1015
+ * Release-specific changes:
1016
+ * * At version 5.1, the [ScreenRect](https://developers.arcgis.com/javascript/latest/references/core/core/types/#ScreenRect) option was added to perform hit tests on rectangular areas.
1017
+ * * At version 4.24, [ViewHitTestResult](https://developers.arcgis.com/javascript/latest/references/core/views/types/#ViewHitTestResult) returns an array of objects containing [GraphicHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#GraphicHit) graphic, [MediaHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#MediaHit) media element, and [RouteHit](https://developers.arcgis.com/javascript/latest/references/core/views/types/#RouteHit) route.
1018
+ * * At version 4.23, all hit test features from feature layers are returned in the result. In prior releases, only the top most feature was returned.
1033
1019
  *
1034
1020
  * @param hitTarget
1035
1021
  * @param options
@@ -6,8 +6,8 @@ import c from "@arcgis/core/applications/Components/QuantityFormatter.js";
6
6
  import { LitElement as o, safeClassMap as n } from "@arcgis/lumina";
7
7
  import { generateGuid as u } from "@arcgis/toolkit/string";
8
8
  import { f as g } from "../../chunks/measurementUtils.js";
9
- const p = s`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host,.hint,.error,.section,.actions,.item{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap);animation:esri-fade-in .25s ease-in-out}.error{color:var(--calcite-color-status-danger)}.error,.hint{overflow:hidden;p{margin:0;padding:0}}.results-grid{display:grid;column-gap:var(--calcite-spacing-xxs);row-gap:var(--calcite-spacing-md);grid-template-columns:1fr max-content max-content;&.vertical{display:flex;flex-direction:column;align-items:flex-start;.item{display:block}.title{margin-bottom:var(--calcite-spacing-xxs)}.value{align-self:flex-start}}}.item{display:contents;&.disabled>*{color:var(--calcite-color-text-1);opacity:var(--calcite-opacity-light)}}.title{grid-column:1;word-break:break-word;--calcite-label-margin-bottom: 0}.value{grid-column:2;font-weight:var(--calcite-font-weight-semibold);white-space:nowrap;align-self:center;justify-self:flex-end;font-variant-numeric:tabular-nums;&:has(~:empty){grid-column:span 2}~:empty{display:none}}.unit{font-weight:var(--calcite-font-weight-semibold);text-align:left}.actions{justify-content:center;gap:var(--arcgis-internal-panel-actions-gap);&[hidden]{display:none}}`;
10
- class m extends o {
9
+ const m = s`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host,.hint,.error,.section,.actions,.item{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap);animation:esri-fade-in .25s ease-in-out}.error{color:var(--calcite-color-status-danger)}.error,.hint{overflow:hidden;p{margin:0;padding:0}}.results-grid{display:grid;column-gap:var(--calcite-spacing-xxs);row-gap:var(--calcite-spacing-md);grid-template-columns:auto minmax(0,1fr) max-content;&.vertical{display:flex;flex-direction:column;align-items:flex-start;.item{display:block}.title{margin-bottom:var(--calcite-spacing-xxs)}.value{align-self:flex-start}}}.item{display:contents;&.disabled>*{color:var(--calcite-color-text-1);opacity:var(--calcite-opacity-light)}}.title{grid-column:1;--calcite-label-margin-bottom: 0}.value{grid-column:2;font-weight:var(--calcite-font-weight-semibold);white-space:normal;min-width:0;max-width:100%;align-self:center;justify-self:flex-end;text-align:end;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;word-break:normal;text-wrap:pretty;&:has(~:empty){grid-column:span 2}~:empty{display:none}}.unit{font-weight:var(--calcite-font-weight-semibold);text-align:left;grid-column:3;align-self:center}.actions{justify-content:center;gap:var(--arcgis-internal-panel-actions-gap);&[hidden]{display:none}}`;
10
+ class p extends o {
11
11
  constructor() {
12
12
  super(...arguments), this._formatter = new c(), this._baseId = u(), this._hasActionsContent = !1, this.layout = "horizontal", this.items = [], this.state = "disabled", this.unsupportedLabel = "";
13
13
  }
@@ -15,7 +15,7 @@ class m extends o {
15
15
  this.properties = { _hasActionsContent: 16, hintLabel: 1, layout: 1, items: 0, state: 1, unsupportedLabel: 1 };
16
16
  }
17
17
  static {
18
- this.styles = p;
18
+ this.styles = m;
19
19
  }
20
20
  async load() {
21
21
  await this._formatter.when();
@@ -61,7 +61,7 @@ function v(t) {
61
61
  disabled: t.measurement.state !== "available"
62
62
  })}><calcite-label layout=inline class="title" .for=${t.valueId}>${t.title ?? ""}</calcite-label>${h({ value: a })}</div>`;
63
63
  }
64
- r("arcgis-measurement-content", m);
64
+ r("arcgis-measurement-content", p);
65
65
  export {
66
- m as ArcgisMeasurementContent
66
+ p as ArcgisMeasurementContent
67
67
  };
@@ -9,7 +9,7 @@ import type SceneView from "@arcgis/core/views/SceneView.js";
9
9
  import type MapView from "@arcgis/core/views/MapView.js";
10
10
  import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
11
11
  import type BatchAttributeFormViewModel from "@arcgis/core/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js";
12
- import type TemplateItem from "../arcgis-feature-templates/TemplateItem.js";
12
+ import type TemplateListItem from "@arcgis/core/editing/templates/TemplateListItem.js";
13
13
  import type { EsriClipboard, ClipboardItem as EsriClipboardItem } from "@arcgis/core/applications/Components/clipboard.js";
14
14
  import type { ApplySet, ApplySetLayerEditResult, ApplySetServiceEditResult } from "@arcgis/core/applications/Components/applySetUtils.js";
15
15
  import type { ClipboardMove } from "./ClipboardMove.js";
@@ -127,7 +127,7 @@ export default class PasteViewModel extends Accessor {
127
127
  disabled: boolean;
128
128
  available: boolean;
129
129
  }[];
130
- accessor pasteTemplate: TemplateItem | undefined;
130
+ accessor pasteTemplate: TemplateListItem | undefined;
131
131
  get pasteTemplateIsValid(): boolean;
132
132
  /** @default true */
133
133
  accessor pasteWithAttributes: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import type TemplateItem from "../arcgis-feature-templates/TemplateItem.js";
2
+ import type TemplateListItem from "@arcgis/core/editing/templates/TemplateListItem.js";
3
3
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
4
 
5
5
  /**
@@ -10,5 +10,5 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
10
10
  * @internal
11
11
  */
12
12
  export abstract class ArcgisTemplateImage extends LitElement {
13
- accessor template: TemplateItem | undefined;
13
+ accessor template: TemplateListItem | undefined;
14
14
  }
@@ -1,21 +1,24 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as h } from "../../chunks/runtime.js";
3
- import g from "@arcgis/core/Graphic.js";
4
- import { css as p, html as s } from "lit";
3
+ import p from "@arcgis/core/Graphic.js";
4
+ import { css as g, html as s } from "lit";
5
5
  import { createRef as d, ref as f } from "lit/directives/ref.js";
6
- import { unsafeHTML as _ } from "lit/directives/unsafe-html.js";
7
- import { LitElement as b, safeStyleMap as y } from "@arcgis/lumina";
6
+ import { unsafeHTML as b } from "lit/directives/unsafe-html.js";
7
+ import { LitElement as _, safeStyleMap as y } from "@arcgis/lumina";
8
8
  import * as l from "@arcgis/toolkit/log";
9
- import { isSharedTemplateMetadata as u, isStandardFeatureTemplate as v } from "@arcgis/core/applications/Components/templateUtils.js";
9
+ import { isSharedTemplateMetadata as c, isStandardFeatureTemplate as v } from "@arcgis/core/applications/Components/templateUtils.js";
10
10
  import "@arcgis/core/editing/sharedTemplates/SharedTemplateMetadata.js";
11
11
  import { renderPreviewHTML as w } from "@arcgis/core/symbols/support/symbolUtils.js";
12
- const I = p`.esri-thumbnail-preview{width:3%;height:32px;background-size:contain;background-position:center}.template-image-container{width:32px;height:32px;display:flex;align-items:center;justify-content:center}`;
13
- async function D(e, t, i) {
14
- if (u(e) && e.thumbnail) {
15
- const c = `data:image/png;base64,${e.thumbnail.imageData}`;
16
- return s`<div class="esri-thumbnail-preview" style=${y({ backgroundImage: `url(${c})` })}></div>`;
12
+ import { isTable as I } from "@arcgis/core/applications/Components/layerUtils.js";
13
+ const D = g`.esri-thumbnail-preview{width:22px;height:22px;background-position:50% 50%;background-repeat:no-repeat}.template-image-container{width:32px;height:32px;display:flex;align-items:center;justify-content:center}`;
14
+ async function x(e, t, i) {
15
+ if (c(e) && e.thumbnail) {
16
+ const u = `data:image/png;base64,${e.thumbnail.imageData}`;
17
+ return s`<div class="esri-thumbnail-preview" style=${y({ backgroundImage: `url(${u})` })}></div>`;
17
18
  }
18
- const r = await x(t, e);
19
+ if (I(t))
20
+ return s`<calcite-icon icon=table scale=s></calcite-icon>`;
21
+ const r = await T(t, e);
19
22
  if (r == null)
20
23
  return null;
21
24
  const n = { maxSize: 24, ariaLabel: i?.ariaLabel };
@@ -23,13 +26,13 @@ async function D(e, t, i) {
23
26
  attributes: e.prototype.attributes ?? {}
24
27
  });
25
28
  const o = await w(r, n);
26
- return o ? s`${_(o.outerHTML)}` : null;
29
+ return o ? s`${b(o.outerHTML)}` : null;
27
30
  }
28
- async function x(e, t) {
29
- if (u(t))
31
+ async function T(e, t) {
32
+ if (c(t))
30
33
  return await m(e);
31
34
  if ("renderer" in e && e.renderer) {
32
- const { renderer: i } = e, r = new g({ attributes: t.prototype.attributes });
35
+ const { renderer: i } = e, r = new p({ attributes: t.prototype.attributes });
33
36
  if ("getSymbolAsync" in i) {
34
37
  const a = await i.getSymbolAsync(r);
35
38
  if (a)
@@ -38,14 +41,14 @@ async function x(e, t) {
38
41
  }
39
42
  return await m(e);
40
43
  }
41
- async function T(e) {
44
+ async function C(e) {
42
45
  const t = e === "point" || e === "multipoint" ? await import("@arcgis/core/symbols/SimpleMarkerSymbol.js") : e === "polyline" ? await import("@arcgis/core/symbols/SimpleLineSymbol.js") : e === "polygon" || e === "mesh" || e === "multipatch" ? await import("@arcgis/core/symbols/SimpleFillSymbol.js") : null;
43
46
  return t ? new t.default() : null;
44
47
  }
45
48
  async function m(e) {
46
- return "geometryType" in e && e.geometryType ? await T(e.geometryType) : null;
49
+ return "geometryType" in e && e.geometryType ? await C(e.geometryType) : null;
47
50
  }
48
- class C extends b {
51
+ class L extends _ {
49
52
  constructor() {
50
53
  super(...arguments), this._lastRun = 0, this._attempted = !1, this._isCurrentlyInView = !1, this._intersectionObserver = null, this._imageContainerDiv = d(), this._generatedImageData = null;
51
54
  }
@@ -53,7 +56,7 @@ class C extends b {
53
56
  this.properties = { _generatedImageData: 16, template: 0 };
54
57
  }
55
58
  static {
56
- this.styles = I;
59
+ this.styles = D;
57
60
  }
58
61
  get rootLayer() {
59
62
  return this.template?.layer?.type === "subtype-sublayer" ? this.template.layer.parent : this.template?.layer;
@@ -75,7 +78,7 @@ class C extends b {
75
78
  this._generatedImageData = null, this._attempted = !1;
76
79
  }
77
80
  async _generateImage() {
78
- return this.template ? await D(this.template.template, this.template.layer) : "";
81
+ return this.template ? await x(this.template.template, this.template.layer) : "";
79
82
  }
80
83
  async _handleImage() {
81
84
  const t = ++this._lastRun;
@@ -113,7 +116,7 @@ class C extends b {
113
116
  return s`<div class="template-image-container" ${f(this._imageContainerDiv)}>${this._generatedImageData ?? ""}</div>`;
114
117
  }
115
118
  }
116
- h("arcgis-template-image", C);
119
+ h("arcgis-template-image", L);
117
120
  export {
118
- C as ArcgisTemplateImage
121
+ L as ArcgisTemplateImage
119
122
  };
@@ -1 +1,2 @@
1
+ import "@esri/calcite-components/components/calcite-icon";
1
2
  export * from "./customElement.js";