@arcgis/map-components 5.2.0-next.120 → 5.2.0-next.121

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 (189) hide show
  1. package/dist/cdn/{YZUEPMQZ.js → 24SNB22W.js} +1 -1
  2. package/dist/cdn/33C5FBRZ.js +2 -0
  3. package/dist/cdn/{POEFPML6.js → 55AZTWOF.js} +1 -1
  4. package/dist/cdn/{2DDAZ3QO.js → 56PUZWIU.js} +1 -1
  5. package/dist/cdn/{23KFFLAG.js → 5E2DZJWK.js} +1 -1
  6. package/dist/cdn/{U35IJFNU.js → 6VR7MKOM.js} +1 -1
  7. package/dist/cdn/6XJFRQ75.js +2 -0
  8. package/dist/cdn/{UJVNCEXT.js → 7KWX2CED.js} +1 -1
  9. package/dist/cdn/7WBDTHNZ.js +2 -0
  10. package/dist/cdn/{RRC7AD75.js → ALEBI75Z.js} +1 -1
  11. package/dist/cdn/BAV6JF4F.js +2 -0
  12. package/dist/cdn/{HNMWTX7W.js → BEZWJEYM.js} +1 -1
  13. package/dist/cdn/{KKDZFKGV.js → BFVEHL3M.js} +1 -1
  14. package/dist/cdn/{LCNYVSCF.js → BTQUD5J4.js} +1 -1
  15. package/dist/cdn/DAPKG4DY.js +2 -0
  16. package/dist/cdn/DOR5MVML.js +2 -0
  17. package/dist/cdn/{GN4BH6SY.js → EMJLCAFX.js} +1 -1
  18. package/dist/cdn/{F5EC22X4.js → ESISPXFF.js} +1 -1
  19. package/dist/cdn/{2L6YCWXJ.js → EUV2XFUO.js} +1 -1
  20. package/dist/cdn/{LBVSFCZG.js → FR7ARNMJ.js} +1 -1
  21. package/dist/cdn/GC4D3K6B.js +2 -0
  22. package/dist/cdn/{BFGF2JTH.js → GLOUXFQV.js} +1 -1
  23. package/dist/cdn/GYTTYWIC.js +2 -0
  24. package/dist/cdn/{W5O3OCTG.js → H5FV4C72.js} +1 -1
  25. package/dist/cdn/{JKZMOIRA.js → HGCKG3CA.js} +1 -1
  26. package/dist/cdn/{P2X5UYZB.js → I2IBXGQM.js} +1 -1
  27. package/dist/cdn/{CWQN57H6.js → IZ7UWAQP.js} +1 -1
  28. package/dist/cdn/{Z3JADSL3.js → J4TWDZII.js} +1 -1
  29. package/dist/cdn/{CST7D7GR.js → JGHPNDIO.js} +1 -1
  30. package/dist/cdn/{OMZESNEM.js → JOOXDIS7.js} +1 -1
  31. package/dist/cdn/{KGBACXRG.js → JRFQGFRL.js} +1 -1
  32. package/dist/cdn/{ZSQCIUGN.js → KIHX5LRN.js} +1 -1
  33. package/dist/cdn/{FAN45DMA.js → LM6RYRCS.js} +1 -1
  34. package/dist/cdn/{REDWVTQJ.js → LP2PF2VT.js} +1 -1
  35. package/dist/cdn/{4IB44LRA.js → LWW6FUI2.js} +1 -1
  36. package/dist/cdn/{LH33ZRF7.js → MFBQRTJ3.js} +1 -1
  37. package/dist/cdn/{5RBUI62E.js → MLJ5RYY3.js} +1 -1
  38. package/dist/cdn/{WWGWIJMC.js → NZSCPBS7.js} +1 -1
  39. package/dist/cdn/{PQTX5YLB.js → OKW62U6T.js} +1 -1
  40. package/dist/cdn/{3OQZ3SMG.js → OPLR5W7O.js} +1 -1
  41. package/dist/cdn/{JD46SR26.js → Q6LQ5BUX.js} +1 -1
  42. package/dist/cdn/{HGYJFGKA.js → QGFWUN5S.js} +1 -1
  43. package/dist/cdn/{X7KSMNND.js → QIEX43LK.js} +1 -1
  44. package/dist/cdn/{B6JX5OWP.js → QNHJY7QE.js} +1 -1
  45. package/dist/cdn/RVJTWRVG.js +2 -0
  46. package/dist/cdn/{2KN3VFRG.js → TH6TT77M.js} +1 -1
  47. package/dist/cdn/TIDNGXMD.js +2 -0
  48. package/dist/cdn/{6XZKWBWD.js → TVZZB4KV.js} +1 -1
  49. package/dist/cdn/{XO3NPMHQ.js → UA5FRNJG.js} +1 -1
  50. package/dist/cdn/{SEMVPT7E.js → UJUD6U2G.js} +1 -1
  51. package/dist/cdn/{MZZGKPLV.js → UXUG6DBJ.js} +1 -1
  52. package/dist/cdn/{TL7OKFLN.js → V7BQUMJL.js} +1 -1
  53. package/dist/cdn/{TNY5ERJS.js → VSJ3MYSY.js} +1 -1
  54. package/dist/cdn/{IR2RGKT4.js → WC2DVIUW.js} +1 -1
  55. package/dist/cdn/{Q6MJXAPZ.js → WNLOSRMS.js} +1 -1
  56. package/dist/cdn/{6SKPV2U5.js → XGZ36AOT.js} +1 -1
  57. package/dist/cdn/{NEQHSO5U.js → XP4IZ2KQ.js} +1 -1
  58. package/dist/cdn/{D3F6S7NU.js → XQKZNHH7.js} +1 -1
  59. package/dist/cdn/{3VGRIUOZ.js → Y3Y3AB5L.js} +1 -1
  60. package/dist/cdn/{CONE7FEI.js → YG4HDEP3.js} +1 -1
  61. package/dist/cdn/Z44GSKHZ.js +2 -0
  62. package/dist/cdn/{EZVWEV6T.js → ZSVZL6PT.js} +1 -1
  63. package/dist/cdn/assets/feature-form-next/t9n/messages.ar.json +1 -1
  64. package/dist/cdn/assets/feature-form-next/t9n/messages.bg.json +1 -1
  65. package/dist/cdn/assets/feature-form-next/t9n/messages.ca.json +1 -1
  66. package/dist/cdn/assets/feature-form-next/t9n/messages.cs.json +1 -1
  67. package/dist/cdn/assets/feature-form-next/t9n/messages.da.json +1 -1
  68. package/dist/cdn/assets/feature-form-next/t9n/messages.de.json +1 -1
  69. package/dist/cdn/assets/feature-form-next/t9n/messages.el.json +1 -1
  70. package/dist/cdn/assets/feature-form-next/t9n/messages.en.json +1 -1
  71. package/dist/cdn/assets/feature-form-next/t9n/messages.es.json +1 -1
  72. package/dist/cdn/assets/feature-form-next/t9n/messages.et.json +1 -1
  73. package/dist/cdn/assets/feature-form-next/t9n/messages.fi.json +1 -1
  74. package/dist/cdn/assets/feature-form-next/t9n/messages.fr.json +1 -1
  75. package/dist/cdn/assets/feature-form-next/t9n/messages.he.json +1 -1
  76. package/dist/cdn/assets/feature-form-next/t9n/messages.hr.json +1 -1
  77. package/dist/cdn/assets/feature-form-next/t9n/messages.hu.json +1 -1
  78. package/dist/cdn/assets/feature-form-next/t9n/messages.id.json +1 -1
  79. package/dist/cdn/assets/feature-form-next/t9n/messages.it.json +1 -1
  80. package/dist/cdn/assets/feature-form-next/t9n/messages.ja.json +1 -1
  81. package/dist/cdn/assets/feature-form-next/t9n/messages.ko.json +1 -1
  82. package/dist/cdn/assets/feature-form-next/t9n/messages.lt.json +1 -1
  83. package/dist/cdn/assets/feature-form-next/t9n/messages.lv.json +1 -1
  84. package/dist/cdn/assets/feature-form-next/t9n/messages.nl.json +1 -1
  85. package/dist/cdn/assets/feature-form-next/t9n/messages.no.json +1 -1
  86. package/dist/cdn/assets/feature-form-next/t9n/messages.pl.json +1 -1
  87. package/dist/cdn/assets/feature-form-next/t9n/messages.pt-BR.json +1 -1
  88. package/dist/cdn/assets/feature-form-next/t9n/messages.pt-PT.json +1 -1
  89. package/dist/cdn/assets/feature-form-next/t9n/messages.ro.json +1 -1
  90. package/dist/cdn/assets/feature-form-next/t9n/messages.ru.json +1 -1
  91. package/dist/cdn/assets/feature-form-next/t9n/messages.sk.json +1 -1
  92. package/dist/cdn/assets/feature-form-next/t9n/messages.sl.json +1 -1
  93. package/dist/cdn/assets/feature-form-next/t9n/messages.sr.json +1 -1
  94. package/dist/cdn/assets/feature-form-next/t9n/messages.sv.json +1 -1
  95. package/dist/cdn/assets/feature-form-next/t9n/messages.th.json +1 -1
  96. package/dist/cdn/assets/feature-form-next/t9n/messages.tr.json +1 -1
  97. package/dist/cdn/assets/feature-form-next/t9n/messages.uk.json +1 -1
  98. package/dist/cdn/assets/feature-form-next/t9n/messages.vi.json +1 -1
  99. package/dist/cdn/assets/feature-form-next/t9n/messages.zh-CN.json +1 -1
  100. package/dist/cdn/assets/feature-form-next/t9n/messages.zh-TW.json +1 -1
  101. package/dist/cdn/assets/sketch/t9n/messages.ar.json +1 -1
  102. package/dist/cdn/assets/sketch/t9n/messages.bg.json +1 -1
  103. package/dist/cdn/assets/sketch/t9n/messages.bs.json +1 -1
  104. package/dist/cdn/assets/sketch/t9n/messages.ca.json +1 -1
  105. package/dist/cdn/assets/sketch/t9n/messages.cs.json +1 -1
  106. package/dist/cdn/assets/sketch/t9n/messages.da.json +1 -1
  107. package/dist/cdn/assets/sketch/t9n/messages.de.json +1 -1
  108. package/dist/cdn/assets/sketch/t9n/messages.el.json +1 -1
  109. package/dist/cdn/assets/sketch/t9n/messages.es.json +1 -1
  110. package/dist/cdn/assets/sketch/t9n/messages.et.json +1 -1
  111. package/dist/cdn/assets/sketch/t9n/messages.fi.json +1 -1
  112. package/dist/cdn/assets/sketch/t9n/messages.fr.json +1 -1
  113. package/dist/cdn/assets/sketch/t9n/messages.he.json +1 -1
  114. package/dist/cdn/assets/sketch/t9n/messages.hr.json +1 -1
  115. package/dist/cdn/assets/sketch/t9n/messages.hu.json +1 -1
  116. package/dist/cdn/assets/sketch/t9n/messages.id.json +1 -1
  117. package/dist/cdn/assets/sketch/t9n/messages.it.json +1 -1
  118. package/dist/cdn/assets/sketch/t9n/messages.ja.json +1 -1
  119. package/dist/cdn/assets/sketch/t9n/messages.ko.json +1 -1
  120. package/dist/cdn/assets/sketch/t9n/messages.lt.json +1 -1
  121. package/dist/cdn/assets/sketch/t9n/messages.lv.json +1 -1
  122. package/dist/cdn/assets/sketch/t9n/messages.nl.json +1 -1
  123. package/dist/cdn/assets/sketch/t9n/messages.no.json +1 -1
  124. package/dist/cdn/assets/sketch/t9n/messages.pl.json +1 -1
  125. package/dist/cdn/assets/sketch/t9n/messages.pt-BR.json +1 -1
  126. package/dist/cdn/assets/sketch/t9n/messages.pt-PT.json +1 -1
  127. package/dist/cdn/assets/sketch/t9n/messages.ro.json +1 -1
  128. package/dist/cdn/assets/sketch/t9n/messages.ru.json +1 -1
  129. package/dist/cdn/assets/sketch/t9n/messages.sk.json +1 -1
  130. package/dist/cdn/assets/sketch/t9n/messages.sl.json +1 -1
  131. package/dist/cdn/assets/sketch/t9n/messages.sr.json +1 -1
  132. package/dist/cdn/assets/sketch/t9n/messages.sv.json +1 -1
  133. package/dist/cdn/assets/sketch/t9n/messages.th.json +1 -1
  134. package/dist/cdn/assets/sketch/t9n/messages.tr.json +1 -1
  135. package/dist/cdn/assets/sketch/t9n/messages.uk.json +1 -1
  136. package/dist/cdn/assets/sketch/t9n/messages.vi.json +1 -1
  137. package/dist/cdn/assets/sketch/t9n/messages.zh-CN.json +1 -1
  138. package/dist/cdn/assets/sketch/t9n/messages.zh-HK.json +1 -1
  139. package/dist/cdn/assets/sketch/t9n/messages.zh-TW.json +1 -1
  140. package/dist/cdn/index.js +1 -1
  141. package/dist/cdn/main.css +1 -1
  142. package/dist/chunks/async-utils.js +3 -3
  143. package/dist/components/arcgis-attachment-validation-view/customElement.d.ts +81 -0
  144. package/dist/components/arcgis-attachment-validation-view/customElement.js +109 -0
  145. package/dist/components/arcgis-attachment-validation-view/index.d.ts +1 -0
  146. package/dist/components/arcgis-attachment-validation-view/index.js +2 -0
  147. package/dist/components/arcgis-basemap-gallery/customElement.d.ts +10 -9
  148. package/dist/components/arcgis-basemap-gallery/customElement.js +39 -28
  149. package/dist/components/arcgis-basemap-gallery-item/customElement.js +30 -30
  150. package/dist/components/arcgis-editor/customElement.d.ts +10 -2
  151. package/dist/components/arcgis-editor/customElement.js +2 -2
  152. package/dist/components/arcgis-expand/customElement.js +27 -21
  153. package/dist/components/arcgis-exploratory-analysis/customElement.d.ts +23 -0
  154. package/dist/components/arcgis-exploratory-analysis/customElement.js +50 -50
  155. package/dist/components/arcgis-feature-attachments/customElement.js +17 -17
  156. package/dist/components/arcgis-feature-form-field/customElement.d.ts +48 -0
  157. package/dist/components/arcgis-legend/customElement.d.ts +5 -6
  158. package/dist/components/arcgis-legend/customElement.js +5 -5
  159. package/dist/components/arcgis-link-chart/customElement.js +5 -2
  160. package/dist/components/arcgis-map/customElement.js +9 -6
  161. package/dist/components/arcgis-presentation/customElement.js +62 -62
  162. package/dist/components/arcgis-presentation-slide-list/customElement.js +1 -1
  163. package/dist/components/arcgis-scene/customElement.js +9 -6
  164. package/dist/components/arcgis-sketch/SketchComponentViewModel.d.ts +84 -0
  165. package/dist/components/arcgis-sketch/configuration.d.ts +33 -0
  166. package/dist/components/arcgis-sketch/customElement.d.ts +3 -2
  167. package/dist/components/arcgis-sketch/customElement.js +25 -21
  168. package/dist/docs/api.json +1 -1
  169. package/dist/docs/docs.json +1 -1
  170. package/dist/docs/vscode.html-custom-data.json +1 -1
  171. package/dist/docs/web-types.json +1 -1
  172. package/dist/index.d.ts +4 -0
  173. package/dist/loader.js +2 -1
  174. package/dist/types/lumina.d.ts +6 -1
  175. package/dist/types/preact.d.ts +7 -1
  176. package/dist/types/react.d.ts +8 -1
  177. package/dist/types/stencil.d.ts +6 -1
  178. package/package.json +7 -7
  179. package/dist/cdn/2OGEVHBC.js +0 -2
  180. package/dist/cdn/5PNAHYUT.js +0 -2
  181. package/dist/cdn/7AKMHKTT.js +0 -2
  182. package/dist/cdn/DDSMWDPS.js +0 -2
  183. package/dist/cdn/DOHO6T7Z.js +0 -2
  184. package/dist/cdn/IDE4IFH7.js +0 -2
  185. package/dist/cdn/IJTCIWOA.js +0 -2
  186. package/dist/cdn/IXVJQIMH.js +0 -2
  187. package/dist/cdn/KWJAKUM4.js +0 -2
  188. package/dist/cdn/WU7R423Z.js +0 -2
  189. /package/dist/cdn/{5DV4N5DK.js → OYD6YL32.js} +0 -0
@@ -1,15 +1,15 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as b } from "../../chunks/runtime.js";
3
3
  import { css as y, html as r } from "lit";
4
- import { on as _, when as d, watch as w } from "@arcgis/core/core/reactiveUtils.js";
4
+ import { on as _, when as p, watch as w } from "@arcgis/core/core/reactiveUtils.js";
5
5
  import { g as $ } from "../../chunks/globalCss.js";
6
- import { u as k } from "../../chunks/useT9n.js";
6
+ import { u as C } from "../../chunks/useT9n.js";
7
7
  import { createRef as g, ref as h } from "lit/directives/ref.js";
8
8
  import E from "@arcgis/core/core/Accessor.js";
9
- import { property as p, subclass as C } from "@arcgis/core/core/accessorSupport/decorators.js";
9
+ import { property as d, subclass as k } from "@arcgis/core/core/accessorSupport/decorators.js";
10
10
  import { usePropertyChange as D } from "@arcgis/lumina/controllers";
11
- import { m as T } from "../../chunks/useViewModel.js";
12
- import { LitElement as I, createEvent as H, safeClassMap as u, nothing as M } from "@arcgis/lumina";
11
+ import { m as I } from "../../chunks/useViewModel.js";
12
+ import { LitElement as T, createEvent as H, safeClassMap as u, nothing as M } from "@arcgis/lumina";
13
13
  import { classes as m } from "@arcgis/toolkit/dom";
14
14
  var P = Object.defineProperty, O = Object.getOwnPropertyDescriptor, c = (i, e, t, a) => {
15
15
  for (var n = a > 1 ? void 0 : a ? O(e, t) : e, o = i.length - 1, l; o >= 0; o--)
@@ -17,7 +17,7 @@ var P = Object.defineProperty, O = Object.getOwnPropertyDescriptor, c = (i, e, t
17
17
  return a && n && P(e, t, n), n;
18
18
  };
19
19
  const v = new EventTarget();
20
- function L(i, e, t) {
20
+ function S(i, e, t) {
21
21
  let a = !1;
22
22
  const n = w(
23
23
  i,
@@ -65,7 +65,7 @@ let s = class extends E {
65
65
  return this.view?.ready ? "ready" : "disabled";
66
66
  }
67
67
  set view(i) {
68
- this._get("view") !== i && (this._set("view", i), i && d(
68
+ this._get("view") !== i && (this._set("view", i), i && p(
69
69
  () => i.ready,
70
70
  () => {
71
71
  this.view === i && this._watchViewpoint();
@@ -76,7 +76,7 @@ let s = class extends E {
76
76
  //#endregion
77
77
  //#region Private Methods
78
78
  _viewpointHandleChange(i) {
79
- this._viewpointHandle && (i ? d(
79
+ this._viewpointHandle && (i ? p(
80
80
  () => this.view?.stationary,
81
81
  () => this._viewpointHandle?.resume(),
82
82
  { once: !0, initial: !0 }
@@ -88,7 +88,7 @@ let s = class extends E {
88
88
  const { autoCollapse: e, view: t } = this;
89
89
  if (!t || !e)
90
90
  return;
91
- const a = L(
91
+ const a = S(
92
92
  () => t.type === "3d" ? t.camera : t.viewpoint,
93
93
  () => this._collapse()
94
94
  );
@@ -100,33 +100,33 @@ let s = class extends E {
100
100
  //#endregion
101
101
  };
102
102
  c([
103
- p({ value: !1 })
103
+ d({ value: !1 })
104
104
  ], s.prototype, "autoCollapse", 1);
105
105
  c([
106
- p({ value: !1 })
106
+ d({ value: !1 })
107
107
  ], s.prototype, "expanded", 1);
108
108
  c([
109
- p()
109
+ d()
110
110
  ], s.prototype, "group", 2);
111
111
  c([
112
- p({ readOnly: !0 })
112
+ d({ readOnly: !0 })
113
113
  ], s.prototype, "state", 1);
114
114
  c([
115
- p({ value: null })
115
+ d({ value: null })
116
116
  ], s.prototype, "view", 1);
117
117
  s = c([
118
- C("map-components.expand.ExpandViewModel")
118
+ k("map-components.expand.ExpandViewModel")
119
119
  ], s);
120
- const S = y`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none;--arcgis-internal-expand-action-background-color: var( --calcite-action-background-color, var(--calcite-color-foreground-1) );--arcgis-internal-expand-action-background-color-hover: var( --calcite-action-background-color-hover, var(--calcite-color-foreground-2) );--arcgis-internal-expand-action-background-color-press: var( --calcite-action-background-color-press, var(--calcite-color-foreground-3) )}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto;--calcite-action-corner-radius: 0}.action{--calcite-action-background-color: var(--arcgis-internal-expand-action-background-color);--calcite-action-background-color-hover: var(--arcgis-internal-expand-action-background-color-hover);--calcite-action-background-color-press: var(--arcgis-internal-expand-action-background-color-press);cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`, f = "chevrons-left", x = "chevrons-right", V = T(s);
121
- class z extends I {
120
+ const L = y`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none;--arcgis-internal-expand-action-background-color: var( --calcite-action-background-color, var(--calcite-color-foreground-1) );--arcgis-internal-expand-action-background-color-hover: var( --calcite-action-background-color-hover, var(--calcite-color-foreground-2) );--arcgis-internal-expand-action-background-color-press: var( --calcite-action-background-color-press, var(--calcite-color-foreground-3) )}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto;--calcite-action-corner-radius: 0}.action{--calcite-action-background-color: var(--arcgis-internal-expand-action-background-color);--calcite-action-background-color-hover: var(--arcgis-internal-expand-action-background-color-hover);--calcite-action-background-color-press: var(--arcgis-internal-expand-action-background-color-press);cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-exploratory-analysis,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`, f = "chevrons-left", x = "chevrons-right", V = I(s);
121
+ class z extends T {
122
122
  constructor() {
123
- super(...arguments), this.popoverEl = g(), this.messages = k({}), this.viewModel = V(this), this.toggleActionEl = g(), this.view = this.viewModel.view, this.state = this.viewModel.state, this.autoDestroyDisabled = !1, this.autoCollapse = this.viewModel.autoCollapse, this.closeOnEscDisabled = !1, this.content = "", this.expanded = this.viewModel.expanded, this.expandTooltip = "", this.collapseTooltip = "", this.focusTrapDisabled = !1, this.group = this.viewModel.group, this.iconNumber = 0, this.mode = "auto", this.topLayerDisabled = !1, this.visualScale = "m", this.arcgisPropertyChange = D()("expanded"), this.arcgisReady = H();
123
+ super(...arguments), this.popoverEl = g(), this.messages = C({}), this.viewModel = V(this), this.toggleActionEl = g(), this.view = this.viewModel.view, this.state = this.viewModel.state, this.autoDestroyDisabled = !1, this.autoCollapse = this.viewModel.autoCollapse, this.closeOnEscDisabled = !1, this.content = "", this.expanded = this.viewModel.expanded, this.expandTooltip = "", this.collapseTooltip = "", this.focusTrapDisabled = !1, this.group = this.viewModel.group, this.iconNumber = 0, this.mode = "auto", this.topLayerDisabled = !1, this.visualScale = "m", this.arcgisPropertyChange = D()("expanded"), this.arcgisReady = H();
124
124
  }
125
125
  static {
126
- this.properties = { expandTitle: 16, _displaySheet: 16, view: 0, state: 32, icon: 1, label: 1, autoDestroyDisabled: 5, referenceElement: 1, autoCollapse: 5, closeOnEscDisabled: 5, content: 1, expanded: 7, expandIcon: 3, expandTooltip: 1, collapseIcon: 3, collapseTooltip: 1, focusTrapDisabled: 5, group: 1, iconNumber: 9, mode: 1, placement: 1, messageOverrides: 0, topLayerDisabled: 5, visualScale: 1 };
126
+ this.properties = { _slottedIcon: 16, expandTitle: 16, _displaySheet: 16, view: 0, state: 32, icon: 1, label: 1, autoDestroyDisabled: 5, referenceElement: 1, autoCollapse: 5, closeOnEscDisabled: 5, content: 1, expanded: 7, expandIcon: 3, expandTooltip: 1, collapseIcon: 3, collapseTooltip: 1, focusTrapDisabled: 5, group: 1, iconNumber: 9, mode: 1, placement: 1, messageOverrides: 0, topLayerDisabled: 5, visualScale: 1 };
127
127
  }
128
128
  static {
129
- this.styles = S;
129
+ this.styles = L;
130
130
  }
131
131
  get expandTitle() {
132
132
  const { expanded: e, messages: t, collapseTooltip: a, expandTooltip: n } = this;
@@ -145,6 +145,8 @@ class z extends I {
145
145
  get expandIcon() {
146
146
  if (this._expandIcon)
147
147
  return this._expandIcon;
148
+ if (this._slottedIcon)
149
+ return this._slottedIcon;
148
150
  let e = null;
149
151
  return this.content instanceof HTMLElement && ("widget" in this.content && this.content.widget?.icon ? e = this.content.widget.icon : "icon" in this.content ? e = this.content.icon : e = this.content.getAttribute("icon")), e ?? f;
150
152
  }
@@ -206,6 +208,10 @@ class z extends I {
206
208
  _handleKeyDown(e) {
207
209
  this.expanded && e.key === "Escape" && this._isCloseOnEscapeDisabled(e) && e.preventDefault();
208
210
  }
211
+ _handleSlotChange({ currentTarget: e }) {
212
+ const t = e.assignedElements().find((a) => "icon" in a);
213
+ this._slottedIcon = t?.icon;
214
+ }
209
215
  render() {
210
216
  const { _displaySheet: e, toggleActionEl: t, expanded: a, label: n, topLayerDisabled: o } = this;
211
217
  return r`<div class=${u(m("root", $.widget))}>${this._renderToggle()}${e ? r`<calcite-sheet class="sheet" height=l .label=${n ?? ""} .topLayerDisabled=${o} @keydown=${this._handleKeyDown} .open=${a} position=block-end @calciteSheetClose=${this.collapse}><calcite-panel class="panel" closable .closed=${!a} .heading=${n} @keydown=${this._handleKeyDown} @calcitePanelClose=${this.collapse}><div class="panel-content">${this._renderContent()}</div></calcite-panel></calcite-sheet>` : t.value ? r`<calcite-popover .focusTrapDisabled=${this.focusTrapDisabled} .label=${n ?? ""} @keydown=${this._handleKeyDown} trigger-disabled .open=${a} overlay-positioning=fixed .placement=${this.getPopoverPlacement()} .referenceElement=${t.value} .topLayerDisabled=${o} @calcitePopoverClose=${this._handlePopoverClose} ${h(this.popoverEl)}><div class="popover-content">${this._renderContent()}</div></calcite-popover>` : null}</div>`;
@@ -222,7 +228,7 @@ class z extends I {
222
228
  return r`<div class="toggle">${this._renderToggleButton()}${this._renderBadgeNumber()}</div>`;
223
229
  }
224
230
  _renderContent() {
225
- return r`<div class="content-container"><slot></slot></div>`;
231
+ return r`<div class="content-container"><slot @slotchange=${this._handleSlotChange}></slot></div>`;
226
232
  }
227
233
  }
228
234
  b("arcgis-expand", z);
@@ -6,6 +6,7 @@ import type { ArcgisDirectLineMeasurement3d } from "../arcgis-direct-line-measur
6
6
  import type { ArcgisDistanceMeasurement2d } from "../arcgis-distance-measurement-2d/customElement.js";
7
7
  import type { ArcgisElevationProfile } from "../arcgis-elevation-profile/customElement.js";
8
8
  import type { ArcgisVolumeMeasurement } from "../arcgis-volume-measurement/customElement.js";
9
+ import type { IconName } from "../types.js";
9
10
  import type { T9nMeta } from "@arcgis/lumina/controllers";
10
11
 
11
12
  /**
@@ -116,6 +117,14 @@ export abstract class ArcgisExploratoryAnalysis extends LitElement {
116
117
  *
117
118
  */
118
119
  accessor closed: boolean;
120
+ /**
121
+ * Icon which represents the component.
122
+ * Typically used when the component is controlled by another component (e.g. by the Expand component).
123
+ *
124
+ * @default "measure"
125
+ * @see [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)
126
+ */
127
+ accessor icon: IconName;
119
128
  /**
120
129
  * Replace localized message strings with your own strings.
121
130
  *
@@ -129,6 +138,20 @@ export abstract class ArcgisExploratoryAnalysis extends LitElement {
129
138
  newMeasurement?: string | undefined;
130
139
  newProfile?: string | undefined;
131
140
  };
141
+ /**
142
+ * Specifies whether analysis results are preserved when the active analysis component changes.
143
+ * By default, the current analysis is cleared before another analysis component becomes active.
144
+ *
145
+ * @default false
146
+ * @example
147
+ * ```html
148
+ * <arcgis-exploratory-analysis preserve-analysis-on-change>
149
+ * <arcgis-direct-line-measurement-3d></arcgis-direct-line-measurement-3d>
150
+ * <arcgis-area-measurement-3d></arcgis-area-measurement-3d>
151
+ * </arcgis-exploratory-analysis>
152
+ * ```
153
+ */
154
+ accessor preserveAnalysisOnChange: boolean;
132
155
  /**
133
156
  * This property provides the ability to show or hide the close button. When the close button is shown, the `ESC` key can be used to close the component via keyboard when the focus is within the component.
134
157
  *
@@ -5,120 +5,120 @@ import { watch as y } from "@arcgis/core/core/reactiveUtils.js";
5
5
  import { LitElement as v, createEvent as r, nothing as h } from "@arcgis/lumina";
6
6
  import { usePropertyChange as g } from "@arcgis/lumina/controllers";
7
7
  import { getSlotAssignedElements as p } from "@arcgis/toolkit/dom/slots";
8
- import { u as f } from "../../chunks/useT9n.js";
8
+ import { u as A } from "../../chunks/useT9n.js";
9
9
  import { r as d } from "../../chunks/maybe.js";
10
- const A = u`:host{min-width:var(--arcgis-internal-panel-width, 300px)}calcite-action-bar{width:100%}.selection-notice-container{padding:var(--calcite-spacing-md)}.selection-notice-list{margin-block:0;padding-inline-start:var(--calcite-spacing-lg)}.measurement-content{--arcgis-internal-padding: var(--calcite-space-md) var(--calcite-space-none);margin-block-end:var(--calcite-space-none)}.measurement-content,slot::slotted(*){width:100%}.footer{display:grid;grid-template-columns:1fr 2fr;gap:var(--calcite-spacing-md);width:100%}`, b = [
10
+ const f = u`:host{min-width:var(--arcgis-internal-panel-width, 300px)}calcite-action-bar{width:100%}.selection-notice-container{padding:var(--calcite-spacing-md)}.selection-notice-list{margin-block:0;padding-inline-start:var(--calcite-spacing-lg)}.measurement-content{--arcgis-internal-padding: var(--calcite-space-md) var(--calcite-space-none);margin-block-end:var(--calcite-space-none)}.measurement-content,slot::slotted(*){width:100%}.footer{display:grid;grid-template-columns:1fr 2fr;gap:var(--calcite-spacing-md);width:100%}`, b = [
11
11
  "arcgis-area-measurement-2d",
12
12
  "arcgis-area-measurement-3d",
13
13
  "arcgis-direct-line-measurement-3d",
14
14
  "arcgis-distance-measurement-2d",
15
15
  "arcgis-elevation-profile",
16
16
  "arcgis-volume-measurement"
17
- ], _ = b.join(",");
18
- class C extends v {
17
+ ], C = b.join(",");
18
+ class _ extends v {
19
19
  constructor() {
20
- super(), this._messages = f({ blocking: !0 }), this.#i = !1, this.#t = /* @__PURE__ */ new WeakMap(), this._activeAnalysisHasInput = !1, this._measurements = [], this.autoDestroyDisabled = !1, this.autoStartDisabled = !1, this.closed = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showHeading = !1, this.arcgisClose = r(), this.arcgisPropertyChange = g()("activeAnalysis"), this.arcgisReady = r(), this.listen("arcgisPropertyChange", this.#r.bind(this)), this.listen("arcgisReady", this.#r.bind(this));
20
+ super(), this._messages = A({ blocking: !0 }), this.#i = !1, this.#e = /* @__PURE__ */ new WeakMap(), this._activeAnalysisHasInput = !1, this._measurements = [], this.autoDestroyDisabled = !1, this.autoStartDisabled = !1, this.closed = !1, this.icon = "measure", this.preserveAnalysisOnChange = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showHeading = !1, this.arcgisClose = r(), this.arcgisPropertyChange = g()("activeAnalysis"), this.arcgisReady = r(), this.listen("arcgisPropertyChange", this.#r.bind(this)), this.listen("arcgisReady", this.#r.bind(this));
21
21
  }
22
22
  static {
23
- this.properties = { _activeAnalysisHasInput: 16, _activeAnalysisState: 16, _measurements: 16, activeAnalysis: 1, autoDestroyDisabled: 5, autoStartDisabled: 5, closed: 5, messageOverrides: 0, showCloseButton: 5, showCollapseButton: 5, showHeading: 5 };
23
+ this.properties = { _activeAnalysisHasInput: 16, _activeAnalysisState: 16, _measurements: 16, activeAnalysis: 1, autoDestroyDisabled: 5, autoStartDisabled: 5, closed: 5, icon: 1, messageOverrides: 0, preserveAnalysisOnChange: 5, showCloseButton: 5, showCollapseButton: 5, showHeading: 5 };
24
24
  }
25
25
  static {
26
- this.styles = A;
26
+ this.styles = f;
27
27
  }
28
28
  #a;
29
29
  #i;
30
- #t;
31
30
  #e;
31
+ #t;
32
32
  #n;
33
33
  #s;
34
34
  get activeAnalysis() {
35
35
  return this.#a;
36
36
  }
37
- set activeAnalysis(e) {
38
- this.#e = typeof e == "string" ? e : void 0, this.#l(typeof e == "string" ? this._measurements.find((s) => s.localName === e) : e ?? void 0);
37
+ set activeAnalysis(t) {
38
+ this.#t = typeof t == "string" ? t : void 0, this.#c(typeof t == "string" ? this._measurements.find((s) => s.localName === t) : t ?? void 0);
39
39
  }
40
40
  async destroy() {
41
41
  await this.manager.destroy();
42
42
  }
43
43
  load() {
44
- this.manager.onLifecycle(() => (this.#c(), () => {
44
+ this.manager.onLifecycle(() => (this.#o(), () => {
45
45
  this.#s = d(this.#s), this.#n = void 0;
46
46
  }));
47
47
  }
48
- async #o() {
48
+ async #l() {
49
49
  await this.activeAnalysis?.clear();
50
50
  }
51
51
  #m() {
52
52
  this.closed = !0, this.arcgisClose.emit(), this.autoDestroyDisabled || this.destroy();
53
53
  }
54
- async #u({ target: e }) {
55
- const s = Number(e.selectedActions.at(0)?.dataset.measurementIndex), i = this._measurements[s];
54
+ async #u({ target: t }) {
55
+ const s = Number(t.selectedActions.at(0)?.dataset.measurementIndex), i = this._measurements[s];
56
56
  if (i) {
57
- if (this.#h(i), this.autoStartDisabled || i.interactionDisabled)
57
+ if (i !== this.activeAnalysis && !this.preserveAnalysisOnChange && await this.#l(), this.#h(i), this.autoStartDisabled || i.interactionDisabled || this.preserveAnalysisOnChange && i.analysis?.valid)
58
58
  return;
59
59
  await i.start();
60
60
  } else
61
- await this.#o(), this.#h(void 0);
61
+ await this.#l(), this.#h(void 0);
62
62
  }
63
63
  #r() {
64
- this._activeAnalysisState = this.activeAnalysis ? this.activeAnalysis.state ?? "disabled" : void 0, this.#c(), this.#d(), this.requestUpdate();
64
+ this._activeAnalysisState = this.activeAnalysis ? this.activeAnalysis.state ?? "disabled" : void 0, this.#o(), this.#d(), this.requestUpdate();
65
65
  }
66
- #y({ currentTarget: e }) {
67
- const s = p(e, _), i = this._measurements.filter((t) => !s.includes(t));
68
- for (const t of i) {
69
- const n = this.#t.get(t);
70
- t.hidden = n?.hidden ?? !1, t.hideStartButton = n?.hideStartButton ?? !1, "hideClearButton" in t && (t.hideClearButton = n?.hideClearButton ?? !1), "hideHeader" in t && (t.hideHeader = n?.hideHeader ?? !1), this.#t.delete(t);
66
+ #y({ currentTarget: t }) {
67
+ const s = p(t, C), i = this._measurements.filter((e) => !s.includes(e));
68
+ for (const e of i) {
69
+ const n = this.#e.get(e);
70
+ e.hidden = n?.hidden ?? !1, e.hideStartButton = n?.hideStartButton ?? !1, "hideClearButton" in e && (e.hideClearButton = n?.hideClearButton ?? !1), "hideHeader" in e && (e.hideHeader = n?.hideHeader ?? !1), this.#e.delete(e);
71
71
  }
72
- for (const t of s)
73
- this.#t.has(t) || (this.#t.set(t, {
74
- hidden: t.hidden,
75
- hideClearButton: "hideClearButton" in t ? t.hideClearButton : void 0,
76
- hideStartButton: t.hideStartButton,
77
- hideHeader: "hideHeader" in t ? t.hideHeader : void 0
78
- }), t.componentOnReady().then(() => {
79
- this.isConnected && t.isConnected && this._measurements.includes(t) && this.requestUpdate();
80
- })), t.hideStartButton = !0, "hideClearButton" in t && (t.hideClearButton = !0), "hideHeader" in t && (t.hideHeader = !0);
72
+ for (const e of s)
73
+ this.#e.has(e) || (this.#e.set(e, {
74
+ hidden: e.hidden,
75
+ hideClearButton: "hideClearButton" in e ? e.hideClearButton : void 0,
76
+ hideStartButton: e.hideStartButton,
77
+ hideHeader: "hideHeader" in e ? e.hideHeader : void 0
78
+ }), e.componentOnReady().then(() => {
79
+ this.isConnected && e.isConnected && this._measurements.includes(e) && this.requestUpdate();
80
+ })), e.hideStartButton = !0, "hideClearButton" in e && (e.hideClearButton = !0), "hideHeader" in e && (e.hideHeader = !0);
81
81
  this._measurements = s;
82
82
  let l;
83
- this.#e && (l = s.find((t) => t.localName === this.#e));
83
+ this.#t && (l = s.find((e) => e.localName === this.#t));
84
84
  let c;
85
- !this.#e && s.length === 1 && (c = s[0]);
85
+ !this.#t && s.length === 1 && (c = s[0]);
86
86
  let a;
87
- this.#e ? a = l : this.#i && s.length > 1 ? a = void 0 : this.activeAnalysis && s.includes(this.activeAnalysis) ? a = this.activeAnalysis : a = c, this.#l(a), this.#i = !!c;
87
+ this.#t ? a = l : this.#i && s.length > 1 ? a = void 0 : this.activeAnalysis && s.includes(this.activeAnalysis) ? a = this.activeAnalysis : a = c, this.#c(a), this.#i = !!c;
88
88
  }
89
- #h(e) {
90
- this.#e = void 0, this.#i = !1, this.#l(e);
89
+ #h(t) {
90
+ this.#t = void 0, this.#i = !1, this.#c(t);
91
91
  }
92
- #l(e) {
92
+ #c(t) {
93
93
  const s = this.#a;
94
- this.#a = e, this.requestUpdate("activeAnalysis", s), this.#v();
94
+ this.#a = t, this.requestUpdate("activeAnalysis", s), this.#v();
95
95
  }
96
96
  #v() {
97
- this._activeAnalysisState = this.activeAnalysis ? this.activeAnalysis.state ?? "disabled" : void 0, this.#c(), this.#d();
97
+ this._activeAnalysisState = this.activeAnalysis ? this.activeAnalysis.state ?? "disabled" : void 0, this.#o(), this.#d();
98
98
  }
99
99
  #d() {
100
- for (const e of this._measurements)
101
- e.hidden = e !== this.activeAnalysis || (this.#t.get(e)?.hidden ?? !1) || e === this.activeAnalysis && this._activeAnalysisState === "ready";
100
+ for (const t of this._measurements)
101
+ t.hidden = t !== this.activeAnalysis || (this.#e.get(t)?.hidden ?? !1) || t === this.activeAnalysis && this._activeAnalysisState === "ready";
102
102
  }
103
103
  async #g() {
104
104
  await this.activeAnalysis?.start();
105
105
  }
106
- #c() {
107
- const e = this.activeAnalysis?.analysis;
108
- if (!(e === this.#n && (e == null || this.#s))) {
109
- if (this.#s = d(this.#s), this.#n = e, !e) {
106
+ #o() {
107
+ const t = this.activeAnalysis?.analysis;
108
+ if (!(t === this.#n && (t == null || this.#s))) {
109
+ if (this.#s = d(this.#s), this.#n = t, !t) {
110
110
  this._activeAnalysisHasInput = !1;
111
111
  return;
112
112
  }
113
- this.#s = y(() => e.valid, (s) => this._activeAnalysisHasInput = s, { initial: !0, sync: !0 });
113
+ this.#s = y(() => t.valid, (s) => this._activeAnalysisHasInput = s, { initial: !0, sync: !0 });
114
114
  }
115
115
  }
116
116
  render() {
117
- const { showCloseButton: e, showCollapseButton: s, showHeading: i } = this, l = this._activeAnalysisState === "disabled", c = this._measurements.length > 1, a = this.activeAnalysis?.label || this._messages.componentLabel;
118
- return o`<calcite-panel .closed=${this.closed} .heading=${i ? this._messages.componentLabel : void 0} .collapsible=${s} .closable=${e} @calcitePanelClose=${this.#m}><div .hidden=${!c}><calcite-action-bar expand-toggle-disabled layout=horizontal><calcite-action-group .label=${this._messages.toolbarLabel} @calciteActionGroupChange=${this.#u} selection-mode=single>${this._measurements.map((t, n) => o`<calcite-action .active=${t === this.activeAnalysis} data-measurement-index=${n ?? h} .icon=${t.icon} .label=${t.label} .text=${t.label ?? ""} title=${t.label ?? h}></calcite-action>`)}</calcite-action-group></calcite-action-bar></div><div class="measurement-container" .hidden=${!this.activeAnalysis || l}><calcite-block class="measurement-content" .expanded=${this.isConnected && !!this.activeAnalysis && !l} .heading=${a}><slot @slotchange=${this.#y}></slot></calcite-block></div>${this.activeAnalysis ? o`<div class="footer" slot=footer><calcite-button appearance=transparent .disabled=${!this._activeAnalysisHasInput} kind=danger @click=${this.#o} width=full>${this._messages.clear}</calcite-button><calcite-button .disabled=${this.activeAnalysis.interactionDisabled || this._activeAnalysisState !== "ready" && !this._activeAnalysisHasInput} @click=${this.#g} width=full>${this.activeAnalysis?.matches("arcgis-elevation-profile") ? this._messages.newProfile : this._messages.newMeasurement}</calcite-button></div>` : null}</calcite-panel>`;
117
+ const { showCloseButton: t, showCollapseButton: s, showHeading: i } = this, l = this._activeAnalysisState === "disabled", c = this._measurements.length > 1, a = this.activeAnalysis?.label || this._messages.componentLabel;
118
+ return o`<calcite-panel .closed=${this.closed} .heading=${i ? this._messages.componentLabel : void 0} .collapsible=${s} .closable=${t} @calcitePanelClose=${this.#m}><div .hidden=${!c}><calcite-action-bar expand-toggle-disabled layout=horizontal><calcite-action-group .label=${this._messages.toolbarLabel} @calciteActionGroupChange=${this.#u} selection-mode=single>${this._measurements.map((e, n) => o`<calcite-action .active=${e === this.activeAnalysis} data-measurement-index=${n ?? h} .icon=${e.icon} .label=${e.label} .text=${e.label ?? ""} title=${e.label ?? h}></calcite-action>`)}</calcite-action-group></calcite-action-bar></div><div class="measurement-container" .hidden=${!this.activeAnalysis || l}><calcite-block class="measurement-content" .expanded=${this.isConnected && !!this.activeAnalysis && !l} .heading=${a}><slot @slotchange=${this.#y.bind(this)}></slot></calcite-block></div>${this.activeAnalysis ? o`<div class="footer" slot=footer><calcite-button appearance=transparent .disabled=${!this._activeAnalysisHasInput} kind=danger @click=${this.#l} width=full>${this._messages.clear}</calcite-button><calcite-button .disabled=${this.activeAnalysis.interactionDisabled || this._activeAnalysisState !== "ready" && !this._activeAnalysisHasInput} @click=${this.#g} width=full>${this.activeAnalysis?.matches("arcgis-elevation-profile") ? this._messages.newProfile : this._messages.newMeasurement}</calcite-button></div>` : null}</calcite-panel>`;
119
119
  }
120
120
  }
121
- m("arcgis-exploratory-analysis", C);
121
+ m("arcgis-exploratory-analysis", _);
122
122
  export {
123
- C as ArcgisExploratoryAnalysis
123
+ _ as ArcgisExploratoryAnalysis
124
124
  };
@@ -4,8 +4,8 @@ import { css as I, html as a } from "lit";
4
4
  import _ from "@arcgis/core/rest/query/support/AttachmentInfo.js";
5
5
  import L from "@arcgis/core/rest/support/AttachmentQuery.js";
6
6
  import z from "@arcgis/core/core/Collection.js";
7
- import A from "@arcgis/core/core/Error.js";
8
- import { LitElement as S, nothing as u, safeClassMap as $, safeStyleMap as w } from "@arcgis/lumina";
7
+ import w from "@arcgis/core/core/Error.js";
8
+ import { LitElement as S, nothing as u, safeClassMap as A, safeStyleMap as $ } from "@arcgis/lumina";
9
9
  import { bypassReadOnly as P } from "@arcgis/lumina/controllers";
10
10
  import { classes as v } from "@arcgis/toolkit/dom";
11
11
  import { g as b } from "../../chunks/feature-utils.js";
@@ -17,7 +17,7 @@ function y(i) {
17
17
  function x(i) {
18
18
  return i ? i === "text/plain" ? "file-text" : i === "application/pdf" ? "file-pdf" : i === "text/csv" ? "file-csv" : i === "application/gpx+xml" ? "file-gpx" : i === "application/x-dwf" ? "file-cad" : i === "application/postscript" || i === "application/json" || i === "text/xml" || i === "model/vrml" ? "file-code" : i === "application/x-zip-compressed" || i === "application/x-7z-compressed" || i === "application/x-gzip" || i === "application/x-tar" || i === "application/x-gtar" || i === "application/x-bzip2" || i === "application/gzip" || i === "application/x-compress" || i === "application/x-apple-diskimage" || i === "application/x-rar-compressed" || i === "application/zip" ? "file-zip" : i.includes("image/") ? "file-image" : i.includes("audio/") ? "file-sound" : i.includes("video/") ? "file-video" : i.includes("msexcel") || i.includes("ms-excel") || i.includes("spreadsheetml") ? "file-excel" : i.includes("msword") || i.includes("ms-word") || i.includes("wordprocessingml") ? "file-word" : i.includes("powerpoint") || i.includes("presentationml") ? "file-report" : "file" : "file";
19
19
  }
20
- const j = I`:host([empty]){display:none}.item-link{display:flex;flex-grow:1;color:var(--calcite-color-text-3)}.item-link:visited,.item-link:hover,.item-link:focus-visible,.item-link:active{color:var(--calcite-color-text-1)}.item-link img{max-width:100%;max-height:100%;object-fit:contain}.item-link--list{align-items:center;justify-content:center;width:64px;max-height:64px;overflow:hidden;border-radius:var(--calcite-corner-radius-sm)}.item-link--list img{border-radius:var(--calcite-corner-radius-sm)}.item-link--list-icon{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.item-link--list calcite-icon{margin:var(--calcite-spacing-lg)}.item-link--preview{align-items:center;justify-content:center}.item-link--preview calcite-icon{margin-block:var(--calcite-spacing-lg)}.item-description{text-align:center;word-wrap:break-word;word-break:break-word}calcite-link{--calcite-link-text-color: var(--calcite-color-text-3);padding-inline:var(--calcite-spacing-sm);word-wrap:break-word;word-break:break-word}calcite-card{width:100%}`, E = z.ofType(_);
20
+ const j = I`:host([empty]){display:none}.item-link{display:flex;flex-grow:1;color:var(--calcite-color-text-3)}.item-link:visited,.item-link:hover,.item-link:focus-visible,.item-link:active{color:var(--calcite-color-text-1)}.item-link img{max-width:100%;max-height:100%;object-fit:contain}.item-link--list{align-items:center;justify-content:center;width:64px;max-height:64px;overflow:hidden;border-radius:var(--calcite-corner-radius-sm)}.item-link--list img{border-radius:var(--calcite-corner-radius-sm)}.item-link--list-icon{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.item-link--list calcite-icon{margin:var(--calcite-spacing-lg)}.item-link--preview{align-items:center;justify-content:center}.item-link--preview calcite-icon{margin-block:var(--calcite-spacing-lg)}.item-description{text-align:center;word-wrap:break-word;word-break:break-word}calcite-link{--calcite-link-text-color: var(--calcite-color-text-3);padding-inline:var(--calcite-spacing-sm);word-wrap:break-word;word-break:break-word}calcite-card{width:100%}calcite-card:hover,calcite-card:focus,calcite-card:focus-within{--calcite-card-border-color: var(--calcite-color-text-1)}`, E = z.ofType(_);
21
21
  class R extends S {
22
22
  constructor() {
23
23
  super(...arguments), this._attachmentLayer = null, this._supportsImageOrientation = window?.CSS?.supports("image-orientation", "from-image"), this.hideSection = !1, this._attachmentInfos = new E(), this.headingLevel = 2, this.hidePreviewImageAttachmentName = !1, this.empty = !1;
@@ -55,22 +55,22 @@ class R extends S {
55
55
  ]);
56
56
  }
57
57
  async getAttachments() {
58
- const { _attachmentLayer: t, _attachmentInfos: e, orderByFields: r, attachmentTypes: c, attachmentKeywords: l, _supportsTypeWildcard: o } = this;
58
+ const { _attachmentLayer: t, _attachmentInfos: e, orderByFields: r, attachmentTypes: n, attachmentKeywords: l, _supportsTypeWildcard: o } = this;
59
59
  if (!t || typeof t.queryAttachments != "function")
60
- throw new A("invalid-layer", "getAttachments(): A valid layer is required.");
60
+ throw new w("invalid-layer", "getAttachments(): A valid layer is required.");
61
61
  const m = this.graphic?.getObjectId();
62
62
  if (typeof m != "number")
63
- throw new A("invalid-object-id", "getAttachments(): Numeric object id is required");
64
- const g = r?.map((s) => `${s.field} ${s.order === "descending" ? "DESC" : "ASC"}`), n = new L({
63
+ throw new w("invalid-object-id", "getAttachments(): Numeric object id is required");
64
+ const g = r?.map((s) => `${s.field} ${s.order === "descending" ? "DESC" : "ASC"}`), c = new L({
65
65
  objectIds: [m],
66
66
  returnMetadata: !0,
67
67
  orderByFields: g,
68
- attachmentTypes: o ? c?.filter(Boolean).map((s) => `${s}/*`) : void 0,
68
+ attachmentTypes: o ? n?.filter(Boolean).map((s) => `${s}/*`) : void 0,
69
69
  keywords: l
70
- }), h = [], p = t.queryAttachments(n).then((s) => s[m] || h).catch(() => h);
71
- this.getAttachmentsPromise = p, this._setEmpty(!1);
72
- const d = await p;
73
- e.destroyAll(), d.length && e.addMany(d), this.getAttachmentsPromise = null, this._setEmpty(!this._hasContent);
70
+ }), h = [], d = t.queryAttachments(c).then((s) => s[m] || h).catch(() => h);
71
+ this.getAttachmentsPromise = d, this._setEmpty(!1);
72
+ const p = await d;
73
+ e.destroyAll(), p.length && e.addMany(p), this.getAttachmentsPromise = null, this._setEmpty(!this._hasContent);
74
74
  }
75
75
  _setEmpty(t) {
76
76
  P(() => this.empty = t);
@@ -113,14 +113,14 @@ class R extends S {
113
113
  return t === "carousel" ? this.renderAttachmentsCarousel(e) : t === "preview" ? this.renderAttachmentsPreview(e) : this.renderAttachmentsList(e);
114
114
  }
115
115
  renderAttachmentListItem(t) {
116
- const { supportsResizeAttachments: e } = this, { contentType: r, name: c, url: l, size: o } = t, m = 64, g = c || this.messages?.noTitle, n = x(r), h = this.getCSSTransform(t), p = h ? { transform: h, "image-orientation": "none" } : {}, d = e && y(r), s = a`<a class=${$(v("item-link", "item-link--list", {
117
- "item-link--list-icon": !d
118
- }))} slot=content-start href=${l ?? void 0 ?? u} rel=noreferrer target=_blank>${d ? a`<img alt=${c ?? u} src=${`${l}${l?.includes("?") ? "&" : "?"}w=${m}&s=${o}`} style=${w(p)} title=${c ?? u}>` : a`<calcite-icon .icon=${n}></calcite-icon>`}</a>`, f = a`<calcite-link slot=content .href=${l ?? void 0} rel=noreferrer target=_blank>${g}</calcite-link>`;
116
+ const { supportsResizeAttachments: e } = this, { contentType: r, name: n, url: l, size: o } = t, m = 64, g = n || this.messages?.noTitle, c = x(r), h = this.getCSSTransform(t), d = h ? { transform: h, "image-orientation": "none" } : {}, p = e && y(r), s = a`<a class=${A(v("item-link", "item-link--list", {
117
+ "item-link--list-icon": !p
118
+ }))} slot=content-start href=${l ?? void 0 ?? u} rel=noreferrer target=_blank>${p ? a`<img alt=${n ?? u} src=${`${l}${l?.includes("?") ? "&" : "?"}w=${m}&s=${o}`} style=${$(d)} title=${n ?? u}>` : a`<calcite-icon .icon=${c}></calcite-icon>`}</a>`, f = a`<calcite-link slot=content .href=${l ?? void 0} rel=noreferrer target=_blank>${g}</calcite-link>`;
119
119
  return a`<calcite-list-item .label=${g}>${s}${f}</calcite-list-item>`;
120
120
  }
121
121
  renderAttachmentPreviewItem(t, e = !1) {
122
- const { supportsResizeAttachments: r } = this, { contentType: c, name: l, url: o, size: m } = t, g = 225, n = l || this.messages?.noTitle, h = x(c), p = this.getCSSTransform(t), d = p ? { transform: p, "image-orientation": "none" } : {}, s = r && y(c), f = a`<a class=${$(v("item-link", "item-link--preview"))} slot=thumbnail href=${o ?? void 0 ?? u} rel=noreferrer target=_blank aria-label=${n ?? u} title=${n ?? u}>${s ? a`<img alt=${n ?? u} src=${`${o}${o?.includes("?") ? "&" : "?"}w=${g}&s=${m}`} style=${w(d)}>` : a`<calcite-icon scale=l .icon=${h}></calcite-icon>`}</a>`;
123
- return a`<calcite-card .label=${n}>${f}${(e || this.hidePreviewImageAttachmentName) && s ? null : a`<span class="item-description" slot=description>${n}</span>`}</calcite-card>`;
122
+ const { supportsResizeAttachments: r } = this, { contentType: n, name: l, url: o, size: m } = t, g = 225, c = l || this.messages?.noTitle, h = x(n), d = this.getCSSTransform(t), p = d ? { transform: d, "image-orientation": "none" } : {}, s = r && y(n), f = a`<a class=${A(v("item-link", "item-link--preview"))} slot=thumbnail href=${o ?? void 0 ?? u} rel=noreferrer target=_blank aria-label=${c ?? u} title=${c ?? u}>${s ? a`<img alt=${c ?? u} src=${`${o}${o?.includes("?") ? "&" : "?"}w=${g}&s=${m}`} style=${$(p)}>` : a`<calcite-icon scale=l .icon=${h}></calcite-icon>`}</a>`;
123
+ return a`<calcite-card .label=${c}>${f}${(e || this.hidePreviewImageAttachmentName) && s ? null : a`<span class="item-description" slot=description>${c}</span>`}</calcite-card>`;
124
124
  }
125
125
  }
126
126
  k("arcgis-feature-attachments", R);
@@ -8,10 +8,42 @@ export abstract class ArcgisFeatureFormField extends LitElement {
8
8
  /** @internal */
9
9
  protected _messages: Partial<{
10
10
  componentLabel: string;
11
+ components: { attachments: { "attachment-validation-view": { validations: {
12
+ errorFileUnsupported: string;
13
+ maximumAudioLength: string;
14
+ maximumImageSize: string;
15
+ maximumFileSize: string;
16
+ maximumNumberOfFiles: string;
17
+ maximumVideoLength: string;
18
+ minimumNumberOfFiles: string;
19
+ }; }; }; };
20
+ units: { bytes: {
21
+ B: string;
22
+ kB: string;
23
+ MB: string;
24
+ GB: string;
25
+ TB: string;
26
+ }; };
11
27
  differentValuesPlaceholder: string;
12
28
  empty: string;
13
29
  }> & T9nMeta<{
14
30
  componentLabel: string;
31
+ components: { attachments: { "attachment-validation-view": { validations: {
32
+ errorFileUnsupported: string;
33
+ maximumAudioLength: string;
34
+ maximumImageSize: string;
35
+ maximumFileSize: string;
36
+ maximumNumberOfFiles: string;
37
+ maximumVideoLength: string;
38
+ minimumNumberOfFiles: string;
39
+ }; }; }; };
40
+ units: { bytes: {
41
+ B: string;
42
+ kB: string;
43
+ MB: string;
44
+ GB: string;
45
+ TB: string;
46
+ }; };
15
47
  differentValuesPlaceholder: string;
16
48
  empty: string;
17
49
  }>;
@@ -25,6 +57,22 @@ export abstract class ArcgisFeatureFormField extends LitElement {
25
57
  accessor input: FieldInput | undefined;
26
58
  accessor messageOverrides: {
27
59
  componentLabel?: string | undefined;
60
+ components?: { attachments?: { "attachment-validation-view"?: { validations?: {
61
+ errorFileUnsupported?: string | undefined;
62
+ maximumAudioLength?: string | undefined;
63
+ maximumImageSize?: string | undefined;
64
+ maximumFileSize?: string | undefined;
65
+ maximumNumberOfFiles?: string | undefined;
66
+ maximumVideoLength?: string | undefined;
67
+ minimumNumberOfFiles?: string | undefined;
68
+ } | undefined; } | undefined; } | undefined; } | undefined;
69
+ units?: { bytes?: {
70
+ B?: string | undefined;
71
+ kB?: string | undefined;
72
+ MB?: string | undefined;
73
+ GB?: string | undefined;
74
+ TB?: string | undefined;
75
+ } | undefined; } | undefined;
28
76
  differentValuesPlaceholder?: string | undefined;
29
77
  empty?: string | undefined;
30
78
  };
@@ -1,13 +1,12 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import type ActiveLayerInfo from "@arcgis/core/widgets/Legend/support/ActiveLayerInfo.js";
2
+ import type ActiveLayerInfo from "@arcgis/core/legend/ActiveLayerInfo.js";
3
3
  import type LinkChartView from "@arcgis/core/views/LinkChartView.js";
4
4
  import type Collection from "@arcgis/core/core/Collection.js";
5
5
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
6
6
  import type { ArcgisReferenceElement, HeadingLevel } from "../types.js";
7
7
  import type { T9nMeta } from "@arcgis/lumina/controllers";
8
8
  import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
9
- import type { LayerInfo } from "@arcgis/core/widgets/types.js";
10
- import type { LegendViewModelState } from "@arcgis/core/widgets/Legend/LegendViewModel.js";
9
+ import type { LayerInfo, LegendContentState } from "@arcgis/core/legend/types.js";
11
10
 
12
11
  /**
13
12
  * The Legend component displays the symbols and labels used to represent layers in 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/).
@@ -89,9 +88,9 @@ import type { LegendViewModelState } from "@arcgis/core/widgets/Legend/LegendVie
89
88
  */
90
89
  export abstract class ArcgisLegend extends LitElement {
91
90
  /**
92
- * Collection of [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/widgets/Legend/support/ActiveLayerInfo/) objects used by the legend view to
91
+ * Collection of [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/) objects used by the legend view to
93
92
  * display data in the legend. The legend component watches this property to hide or display the layer's legend when
94
- * an [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/widgets/Legend/support/ActiveLayerInfo/) is removed from or added to this collection.
93
+ * an [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/references/core/legend/ActiveLayerInfo/) is removed from or added to this collection.
95
94
  */
96
95
  accessor activeLayerInfos: Collection<ActiveLayerInfo>;
97
96
  /**
@@ -445,7 +444,7 @@ export abstract class ArcgisLegend extends LitElement {
445
444
  *
446
445
  * @default "disabled"
447
446
  */
448
- get state(): LegendViewModelState;
447
+ get state(): LegendContentState;
449
448
  /**
450
449
  * The view associated with the component.
451
450
  * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-legend component will be associated with a map or scene component rather than using the `view` property.