@arcgis/map-components 5.2.0-next.129 → 5.2.0-next.130

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 (160) hide show
  1. package/dist/cdn/{XHF3WRCS.js → 4IQGYUKD.js} +1 -1
  2. package/dist/cdn/{EFTRT3PC.js → 4J5X3RUS.js} +1 -1
  3. package/dist/cdn/{ZNFXHSNB.js → 4XLFPSJA.js} +1 -1
  4. package/dist/cdn/{2FXJBJQN.js → 5F5KCXDO.js} +1 -1
  5. package/dist/cdn/5S4BCDOW.js +2 -0
  6. package/dist/cdn/{4Q5CHT35.js → 5W3B6N7U.js} +1 -1
  7. package/dist/cdn/{YXFHYEU3.js → 7EJR45XN.js} +1 -1
  8. package/dist/cdn/{Q6QM5JFF.js → 7YFZUDWN.js} +1 -1
  9. package/dist/cdn/{S5NMZQ7S.js → AB5ED2JR.js} +1 -1
  10. package/dist/cdn/{XIU3BXC4.js → BAHKHMBR.js} +1 -1
  11. package/dist/cdn/BAOWXZTE.js +2 -0
  12. package/dist/cdn/BEAV4EJ5.js +2 -0
  13. package/dist/cdn/{SI275RZJ.js → BMMTFWDL.js} +1 -1
  14. package/dist/cdn/{YPW4CF4Y.js → BQ7NE3DK.js} +1 -1
  15. package/dist/cdn/{B62BAX3X.js → CWCTE5IC.js} +1 -1
  16. package/dist/cdn/{3AHZESDA.js → EF7GIYDU.js} +1 -1
  17. package/dist/cdn/EL7UV72L.js +2 -0
  18. package/dist/cdn/{FJREYXK7.js → ERHYWMHC.js} +1 -1
  19. package/dist/cdn/{XPIYOTEC.js → EV3HM55D.js} +1 -1
  20. package/dist/cdn/{5S3AIVW2.js → F3I3X5LJ.js} +1 -1
  21. package/dist/cdn/{JALZMYVE.js → F6AE2AOX.js} +1 -1
  22. package/dist/cdn/{WWASAY4M.js → I2ADFUKC.js} +1 -1
  23. package/dist/cdn/{UCX6CLDZ.js → JDF3QJHI.js} +1 -1
  24. package/dist/cdn/{ML3CEDNN.js → JMKQ5ZE3.js} +1 -1
  25. package/dist/cdn/{DFPVC4EG.js → JNNG6SGW.js} +1 -1
  26. package/dist/cdn/{HOBKD5P4.js → JXXITWQ3.js} +1 -1
  27. package/dist/cdn/JYFFD5QA.js +2 -0
  28. package/dist/cdn/{XFD7GEAG.js → K3TUMGVI.js} +1 -1
  29. package/dist/cdn/{GK6NLJ6Q.js → MCU53PRF.js} +1 -1
  30. package/dist/cdn/{Q2MFXSAM.js → N6IIYBKZ.js} +1 -1
  31. package/dist/cdn/{L5FBV74B.js → NST47N4L.js} +1 -1
  32. package/dist/cdn/{7XKNWVD4.js → ORZZVKYZ.js} +1 -1
  33. package/dist/cdn/OSMCEUNX.js +2 -0
  34. package/dist/cdn/{3FO2I44H.js → QAXZ4V3U.js} +1 -1
  35. package/dist/cdn/{VLDII7DK.js → QJWPUYT2.js} +1 -1
  36. package/dist/cdn/{3NUE2TJM.js → R54YGQ26.js} +1 -1
  37. package/dist/cdn/{2DJC25HT.js → RQ3C7MN3.js} +1 -1
  38. package/dist/cdn/{D2ILHVVB.js → RXRZKDP2.js} +1 -1
  39. package/dist/cdn/{2RYNWWMR.js → T6GHF2C6.js} +1 -1
  40. package/dist/cdn/{XUSJST2P.js → U3MXAIIV.js} +1 -1
  41. package/dist/cdn/{RA5SRNJJ.js → UGZMQPKL.js} +1 -1
  42. package/dist/cdn/{3QZFSJJZ.js → UONIIMIO.js} +1 -1
  43. package/dist/cdn/{7QUUVOSA.js → WH6A6PWO.js} +1 -1
  44. package/dist/cdn/{TWR7AJTM.js → WO4RKS5X.js} +1 -1
  45. package/dist/cdn/{JXODHIWF.js → WSJLW4KK.js} +1 -1
  46. package/dist/cdn/{EQ4D5HAS.js → XR33HMFY.js} +1 -1
  47. package/dist/cdn/XUUOPL4Q.js +2 -0
  48. package/dist/cdn/{7AM3AAIM.js → YIXQRLNL.js} +1 -1
  49. package/dist/cdn/YPRBAWD7.js +2 -0
  50. package/dist/cdn/{GE5OI5A7.js → ZTJ5RKET.js} +1 -1
  51. package/dist/cdn/assets/feature-form-next/t9n/messages.en.json +1 -1
  52. package/dist/cdn/assets/sketch/t9n/messages.en.json +1 -1
  53. package/dist/cdn/assets/time-bar/t9n/messages.ar.json +1 -1
  54. package/dist/cdn/assets/time-bar/t9n/messages.bg.json +1 -1
  55. package/dist/cdn/assets/time-bar/t9n/messages.bs.json +1 -1
  56. package/dist/cdn/assets/time-bar/t9n/messages.ca.json +1 -1
  57. package/dist/cdn/assets/time-bar/t9n/messages.cs.json +1 -1
  58. package/dist/cdn/assets/time-bar/t9n/messages.da.json +1 -1
  59. package/dist/cdn/assets/time-bar/t9n/messages.de.json +1 -1
  60. package/dist/cdn/assets/time-bar/t9n/messages.el.json +1 -1
  61. package/dist/cdn/assets/time-bar/t9n/messages.es.json +1 -1
  62. package/dist/cdn/assets/time-bar/t9n/messages.et.json +1 -1
  63. package/dist/cdn/assets/time-bar/t9n/messages.fi.json +1 -1
  64. package/dist/cdn/assets/time-bar/t9n/messages.fr.json +1 -1
  65. package/dist/cdn/assets/time-bar/t9n/messages.he.json +1 -1
  66. package/dist/cdn/assets/time-bar/t9n/messages.hr.json +1 -1
  67. package/dist/cdn/assets/time-bar/t9n/messages.hu.json +1 -1
  68. package/dist/cdn/assets/time-bar/t9n/messages.id.json +1 -1
  69. package/dist/cdn/assets/time-bar/t9n/messages.it.json +1 -1
  70. package/dist/cdn/assets/time-bar/t9n/messages.ja.json +1 -1
  71. package/dist/cdn/assets/time-bar/t9n/messages.ko.json +1 -1
  72. package/dist/cdn/assets/time-bar/t9n/messages.lt.json +1 -1
  73. package/dist/cdn/assets/time-bar/t9n/messages.lv.json +1 -1
  74. package/dist/cdn/assets/time-bar/t9n/messages.nl.json +1 -1
  75. package/dist/cdn/assets/time-bar/t9n/messages.no.json +1 -1
  76. package/dist/cdn/assets/time-bar/t9n/messages.pl.json +1 -1
  77. package/dist/cdn/assets/time-bar/t9n/messages.pt-BR.json +1 -1
  78. package/dist/cdn/assets/time-bar/t9n/messages.pt-PT.json +1 -1
  79. package/dist/cdn/assets/time-bar/t9n/messages.ro.json +1 -1
  80. package/dist/cdn/assets/time-bar/t9n/messages.ru.json +1 -1
  81. package/dist/cdn/assets/time-bar/t9n/messages.sk.json +1 -1
  82. package/dist/cdn/assets/time-bar/t9n/messages.sl.json +1 -1
  83. package/dist/cdn/assets/time-bar/t9n/messages.sr.json +1 -1
  84. package/dist/cdn/assets/time-bar/t9n/messages.sv.json +1 -1
  85. package/dist/cdn/assets/time-bar/t9n/messages.th.json +1 -1
  86. package/dist/cdn/assets/time-bar/t9n/messages.tr.json +1 -1
  87. package/dist/cdn/assets/time-bar/t9n/messages.uk.json +1 -1
  88. package/dist/cdn/assets/time-bar/t9n/messages.vi.json +1 -1
  89. package/dist/cdn/assets/time-bar/t9n/messages.zh-CN.json +1 -1
  90. package/dist/cdn/assets/time-bar/t9n/messages.zh-HK.json +1 -1
  91. package/dist/cdn/assets/time-bar/t9n/messages.zh-TW.json +1 -1
  92. package/dist/cdn/index.js +1 -1
  93. package/dist/chunks/measurementUtils.js +35 -27
  94. package/dist/chunks/svgUtils.js +1 -1
  95. package/dist/chunks/univariateUtils.js +1 -1
  96. package/dist/chunks/utils.js +75 -7
  97. package/dist/chunks/utils2.js +50 -74
  98. package/dist/chunks/utils3.js +13 -50
  99. package/dist/chunks/utils4.js +45 -13
  100. package/dist/chunks/utils5.js +48 -44
  101. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +9 -1
  102. package/dist/components/arcgis-area-measurement-2d/customElement.js +18 -12
  103. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +9 -1
  104. package/dist/components/arcgis-area-measurement-3d/customElement.js +18 -12
  105. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +1 -1
  106. package/dist/components/arcgis-building-discipline-tree/customElement.js +79 -79
  107. package/dist/components/arcgis-building-explorer/customElement.js +22 -22
  108. package/dist/components/arcgis-building-level-item/customElement.js +9 -9
  109. package/dist/components/arcgis-building-level-picker/customElement.js +16 -16
  110. package/dist/components/arcgis-building-phase-picker/customElement.js +25 -22
  111. package/dist/components/arcgis-compass/customElement.js +1 -1
  112. package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +9 -1
  113. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +15 -9
  114. package/dist/components/arcgis-directional-pad/DirectionalPadViewModel.d.ts +1 -0
  115. package/dist/components/arcgis-directional-pad/customElement.d.ts +2 -2
  116. package/dist/components/arcgis-directional-pad/customElement.js +190 -46
  117. package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +9 -1
  118. package/dist/components/arcgis-distance-measurement-2d/customElement.js +34 -28
  119. package/dist/components/arcgis-elevation-profile/customElement.d.ts +18 -0
  120. package/dist/components/arcgis-elevation-profile/customElement.js +27 -25
  121. package/dist/components/arcgis-layer-list-item-panel/customElement.js +1 -1
  122. package/dist/components/arcgis-layer-list-next/customElement.js +1 -1
  123. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +1 -1
  124. package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
  125. package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
  126. package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
  127. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
  128. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  129. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
  130. package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
  131. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +1 -1
  132. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.js +1 -1
  133. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  134. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  135. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  136. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  137. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  138. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  139. package/dist/components/arcgis-search/customElement.js +1 -1
  140. package/dist/components/arcgis-selection-list/customElement.js +28 -28
  141. package/dist/components/arcgis-sketch/customElement.d.ts +0 -4
  142. package/dist/components/arcgis-volume-measurement/customElement.d.ts +48 -5
  143. package/dist/components/arcgis-volume-measurement/customElement.js +47 -46
  144. package/dist/docs/api.json +1 -1
  145. package/dist/docs/docs.json +1 -1
  146. package/dist/docs/vscode.html-custom-data.json +1 -1
  147. package/dist/docs/web-types.json +1 -1
  148. package/package.json +6 -6
  149. package/dist/cdn/35M4DQZK.js +0 -2
  150. package/dist/cdn/6PE3IB3H.js +0 -2
  151. package/dist/cdn/G5VPRDMX.js +0 -2
  152. package/dist/cdn/JF4LCL3J.js +0 -2
  153. package/dist/cdn/JNQEJQFS.js +0 -2
  154. package/dist/cdn/MRFX6GG4.js +0 -2
  155. package/dist/cdn/SLLE4XAR.js +0 -2
  156. package/dist/cdn/WQISNLF7.js +0 -2
  157. /package/dist/cdn/{7DI2ZSB3.js → 3ZXNGXHC.js} +0 -0
  158. /package/dist/cdn/{SKNX46RX.js → DL57EVZ4.js} +0 -0
  159. /package/dist/cdn/{FUQUIU52.js → E6IRF6JO.js} +0 -0
  160. /package/dist/cdn/{MDTNPISF.js → VDTRRLON.js} +0 -0
@@ -147,13 +147,21 @@ export abstract class ArcgisVolumeMeasurement extends LitElement {
147
147
  * Unit system (imperial, metric) or specific unit used for displaying the area. Possible values are listed in
148
148
  * [areaDisplayUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#areaDisplayUnitOptions).
149
149
  *
150
+ * When no area unit is explicitly set on the component or its analysis, this property uses the area unit configured in the view through
151
+ * [view.options.displayUnits.area](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits).
152
+ * This property overrides the area unit on this component's analysis without changing the units configured in the view.
153
+ *
150
154
  * @since 5.0
151
155
  */
152
156
  accessor areaDisplayUnit: SystemOrAreaUnit;
153
157
  /**
154
158
  * List of available units and unit systems (imperial, metric) that are shown in the component's area display unit dropdown.
155
159
  * By default, the following units are included: `metric`, `imperial`, `square-inches`, `square-feet`, `square-yards`, `square-miles`, `square-nautical-miles`, `square-us-feet`, `square-millimeters`, `square-centimeters`, `square-decimeters`, `square-meters`, `square-kilometers`, `acres`, `ares`, `hectares`.
156
- * Possible [areaDisplayUnit](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#areaDisplayUnit) values can only be a subset of this list.
160
+ * If the unit inherited from the view through
161
+ * [view.options.displayUnits.area](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits)
162
+ * is not listed in [areaDisplayUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#areaDisplayUnitOptions), the component checks whether its default unit is listed there.
163
+ * If it is, the component uses that default. If neither unit is listed, it uses the first entry in
164
+ * [areaDisplayUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#areaDisplayUnitOptions).
157
165
  *
158
166
  * @since 5.0
159
167
  */
@@ -181,13 +189,21 @@ export abstract class ArcgisVolumeMeasurement extends LitElement {
181
189
  * Unit system (imperial, metric) or specific unit used for displaying the cut and fill target elevation. Possible values are listed in
182
190
  * [elevationDisplayUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#elevationDisplayUnitOptions).
183
191
  *
192
+ * When no elevation unit is explicitly set on the component or its analysis, this property uses the vertical length unit configured in the view through
193
+ * [view.options.displayUnits.verticalLength](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits).
194
+ * This property overrides the elevation unit on this component's analysis without changing the units configured in the view.
195
+ *
184
196
  * @since 5.0
185
197
  */
186
198
  accessor elevationDisplayUnit: SystemOrLengthUnit;
187
199
  /**
188
200
  * List of available units and unit systems (imperial, metric) that are shown in the component's dropdown.
189
201
  * By default, the following units are included: `metric`, `imperial`, `meters`, `millimeters`, `centimeters`, `decimeters`, `kilometers`, `inches`, `feet`, `yards`, `miles`, `nautical-miles`, `us-feet`.
190
- * Possible [elevationDisplayUnit](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#elevationDisplayUnit) values can only be a subset of this list.
202
+ * If the unit inherited from the view through
203
+ * [view.options.displayUnits.verticalLength](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits)
204
+ * is not listed in [elevationDisplayUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#elevationDisplayUnitOptions), the component checks whether its default unit is listed there.
205
+ * If it is, the component uses that default. If neither unit is listed, it uses the first entry in
206
+ * [elevationDisplayUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#elevationDisplayUnitOptions).
191
207
  *
192
208
  * @since 5.0
193
209
  */
@@ -199,6 +215,12 @@ export abstract class ArcgisVolumeMeasurement extends LitElement {
199
215
  * This controls which unit is used when entering an elevation value via the tool's UI (for example, using the
200
216
  * shift manipulator tooltip input in "Cut & Fill Volume" mode).
201
217
  *
218
+ * When no elevation input unit is explicitly set on the component or its analysis, this property uses the vertical length input unit configured in the view through
219
+ * [view.options.inputUnits.verticalLength](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#inputUnits).
220
+ * The `metric` and `imperial` measurement systems resolve to `meters` and `feet`, respectively.
221
+ * This property overrides the elevation input unit on this component's analysis without changing the units configured in the view.
222
+ * Changing this property preserves the target surface elevation.
223
+ *
202
224
  * @since 5.0
203
225
  */
204
226
  accessor elevationInputUnit: LengthUnit;
@@ -207,7 +229,12 @@ export abstract class ArcgisVolumeMeasurement extends LitElement {
207
229
  *
208
230
  * By default, the following units are included: `inches`, `feet`, `yards`, `miles`, `nautical-miles`, `us-feet`,
209
231
  * `millimeters`, `centimeters`, `decimeters`, `meters`, `kilometers`.
210
- * The current [elevationInputUnit](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#elevationInputUnit) value can only be a subset of this list.
232
+ * The unit inherited from the view through
233
+ * [view.options.inputUnits.verticalLength](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#inputUnits)
234
+ * resolves to `meters` for `metric` and `feet` for `imperial`.
235
+ * If the inherited unit is not listed in [elevationInputUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#elevationInputUnitOptions), the component checks whether its default unit is listed there.
236
+ * If it is, the component uses that default. If neither unit is listed, it uses the first entry in
237
+ * [elevationInputUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#elevationInputUnitOptions).
211
238
  *
212
239
  * @since 5.0
213
240
  */
@@ -427,13 +454,21 @@ export abstract class ArcgisVolumeMeasurement extends LitElement {
427
454
  * Unit system (imperial, metric) or specific unit used for displaying the perimeter values. Possible values are
428
455
  * listed in [perimeterDisplayUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#perimeterDisplayUnitOptions).
429
456
  *
457
+ * When no perimeter unit is explicitly set on the component or its analysis, this property uses the length unit configured in the view through
458
+ * [view.options.displayUnits.length](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits).
459
+ * This property overrides the perimeter unit on this component's analysis without changing the units configured in the view.
460
+ *
430
461
  * @since 5.0
431
462
  */
432
463
  accessor perimeterDisplayUnit: SystemOrLengthUnit;
433
464
  /**
434
465
  * List of available units and unit systems (imperial, metric) that are shown in the component's perimeter display unit dropdown.
435
466
  * By default, the following units are included: `metric`, `imperial`, `meters`, `millimeters`, `centimeters`, `decimeters`, `kilometers`, `inches`, `feet`, `yards`, `miles`, `nautical-miles`, `us-feet`.
436
- * Possible [perimeterDisplayUnit](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#perimeterDisplayUnit) values can only be a subset of this list.
467
+ * If the unit inherited from the view through
468
+ * [view.options.displayUnits.length](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits)
469
+ * is not listed in [perimeterDisplayUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#perimeterDisplayUnitOptions), the component checks whether its default unit is listed there.
470
+ * If it is, the component uses that default. If neither unit is listed, it uses the first entry in
471
+ * [perimeterDisplayUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#perimeterDisplayUnitOptions).
437
472
  *
438
473
  * @since 5.0
439
474
  */
@@ -464,13 +499,21 @@ export abstract class ArcgisVolumeMeasurement extends LitElement {
464
499
  * Unit system (imperial, metric) or specific unit used for displaying the volume values. Possible values are listed in
465
500
  * [volumeDisplayUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#volumeDisplayUnitOptions).
466
501
  *
502
+ * When no volume unit is explicitly set on the component or its analysis, this property uses the volume unit configured in the view through
503
+ * [view.options.displayUnits.volume](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits).
504
+ * This property overrides the volume unit on this component's analysis without changing the units configured in the view.
505
+ *
467
506
  * @since 5.0
468
507
  */
469
508
  accessor volumeDisplayUnit: SystemOrVolumeUnit;
470
509
  /**
471
510
  * List of available units and unit systems (imperial, metric) that are shown in the component's dropdown.
472
511
  * By default, the following units are included: `imperial`, `metric`, `liters`, `megaliters`, `gigaliters`, `cubic-millimeters`, `cubic-centimeters`, `cubic-decimeters`, `cubic-meters`, `cubic-kilometers`, `cubic-inches`, `cubic-us-feet`, `cubic-feet`, `cubic-yards`, `cubic-miles`.
473
- * Possible [volumeDisplayUnit](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#volumeDisplayUnit) values can only be a subset of this list.
512
+ * If the unit inherited from the view through
513
+ * [view.options.displayUnits.volume](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits)
514
+ * is not listed in [volumeDisplayUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#volumeDisplayUnitOptions), the component checks whether its default unit is listed there.
515
+ * If it is, the component uses that default. If neither unit is listed, it uses the first entry in
516
+ * [volumeDisplayUnitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-volume-measurement/#volumeDisplayUnitOptions).
474
517
  *
475
518
  * @since 5.0
476
519
  */
@@ -1,7 +1,7 @@
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 H, html as d } from "lit";
4
- import { LitElement as R, createEvent as F, nothing as D, safeClassMap as O, safeStyleMap as q } from "@arcgis/lumina";
4
+ import { LitElement as R, createEvent as q, nothing as D, safeClassMap as O, safeStyleMap as F } from "@arcgis/lumina";
5
5
  import { usePropertyChange as Z } from "@arcgis/lumina/controllers";
6
6
  import { createRef as X, ref as k } from "lit/directives/ref.js";
7
7
  import { u as G } from "../../chunks/useT9n.js";
@@ -90,12 +90,13 @@ let r = class extends ee {
90
90
  }
91
91
  get volumeDisplayUnit() {
92
92
  const i = this.volumeDisplayUnitOptions;
93
- return m(
94
- this._userVolumeDisplayUnit,
95
- this.analysis.displayUnits?.volume,
96
- i,
97
- this.defaultMeasurementSystem
98
- );
93
+ return m({
94
+ userUnit: this._userVolumeDisplayUnit,
95
+ analysisUnit: this.analysis.displayUnits?.volume,
96
+ options: i,
97
+ defaultUnit: this.defaultMeasurementSystem,
98
+ viewUnit: this.view?.options.displayUnits.volume
99
+ });
99
100
  }
100
101
  set volumeDisplayUnit(i) {
101
102
  this._userVolumeDisplayUnit = i;
@@ -108,12 +109,13 @@ let r = class extends ee {
108
109
  }
109
110
  get elevationDisplayUnit() {
110
111
  const i = this.elevationDisplayUnitOptions;
111
- return m(
112
- this._userElevationDisplayUnit,
113
- this.analysis.displayUnits?.elevation,
114
- i,
115
- this.defaultMeasurementSystem
116
- );
112
+ return m({
113
+ userUnit: this._userElevationDisplayUnit,
114
+ analysisUnit: this.analysis.displayUnits?.elevation,
115
+ options: i,
116
+ defaultUnit: this.defaultMeasurementSystem,
117
+ viewUnit: this.view?.options.displayUnits.verticalLength
118
+ });
117
119
  }
118
120
  set elevationDisplayUnit(i) {
119
121
  this._userElevationDisplayUnit = i;
@@ -125,21 +127,18 @@ let r = class extends ee {
125
127
  this._userElevationInputUnitOptions = i;
126
128
  }
127
129
  get elevationInputUnit() {
128
- const i = this.elevationInputUnitOptions;
129
- return m(
130
- this._userElevationInputUnit,
131
- this.analysis.inputUnits?.elevation,
132
- i,
133
- this._defaultElevationInputUnit
134
- );
130
+ const i = this.elevationInputUnitOptions, e = this.view?.options.inputUnits.verticalLength, t = e === "imperial" ? "feet" : e === "metric" ? "meters" : e;
131
+ return m({
132
+ userUnit: this._userElevationInputUnit,
133
+ analysisUnit: this.analysis.inputUnits?.elevation,
134
+ options: i,
135
+ defaultUnit: this._defaultElevationInputUnit,
136
+ viewUnit: t
137
+ });
135
138
  }
136
139
  set elevationInputUnit(i) {
137
- const e = this.analysis.cutFillOptions.targetElevation ?? 0;
138
- this.analysis.cutFillOptions.targetElevation = re(
139
- e,
140
- this.elevationInputUnit,
141
- i ?? this.elevationInputUnit
142
- ), this._userElevationInputUnit = i;
140
+ const { cutFillOptions: e, inputUnits: t } = this.analysis, { targetElevation: a } = e;
141
+ i && a != null && (e.targetElevation = re(a, t.elevation ?? "meters", i)), this._userElevationInputUnit = i;
143
142
  }
144
143
  get areaDisplayUnitOptions() {
145
144
  return g(this._userAreaUnitOptions, V, V);
@@ -149,12 +148,13 @@ let r = class extends ee {
149
148
  }
150
149
  get areaDisplayUnit() {
151
150
  const i = this.areaDisplayUnitOptions;
152
- return m(
153
- this._userAreaDisplayUnit,
154
- this.analysis.displayUnits?.area,
155
- i,
156
- this.defaultMeasurementSystem
157
- );
151
+ return m({
152
+ userUnit: this._userAreaDisplayUnit,
153
+ analysisUnit: this.analysis.displayUnits?.area,
154
+ options: i,
155
+ defaultUnit: this.defaultMeasurementSystem,
156
+ viewUnit: this.view?.options.displayUnits.area
157
+ });
158
158
  }
159
159
  set areaDisplayUnit(i) {
160
160
  this._userAreaDisplayUnit = i;
@@ -167,12 +167,13 @@ let r = class extends ee {
167
167
  }
168
168
  get perimeterDisplayUnit() {
169
169
  const i = this.perimeterDisplayUnitOptions;
170
- return m(
171
- this._userPerimeterDisplayUnit,
172
- this.analysis.displayUnits?.length,
173
- i,
174
- this.defaultMeasurementSystem
175
- );
170
+ return m({
171
+ userUnit: this._userPerimeterDisplayUnit,
172
+ analysisUnit: this.analysis.displayUnits?.length,
173
+ options: i,
174
+ defaultUnit: this.defaultMeasurementSystem,
175
+ viewUnit: this.view?.options.displayUnits.length
176
+ });
176
177
  }
177
178
  set perimeterDisplayUnit(i) {
178
179
  this._userPerimeterDisplayUnit = i;
@@ -256,7 +257,7 @@ r = s([
256
257
  const oe = J(r);
257
258
  class le extends R {
258
259
  constructor() {
259
- super(...arguments), this.viewModel = oe(this), this.messages = G({ blocking: !0 }), this.#e = X(), this._settingsPopoverIsOpen = !1, this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.icon = "cut-and-fill-volume-calculation", this.interactionDisabled = this.viewModel.interactionDisabled, this.state = this.viewModel.state, this.volumeDisplayUnit = this.viewModel.volumeDisplayUnit, this.volumeDisplayUnitOptions = this.viewModel.volumeDisplayUnitOptions, this.elevationDisplayUnit = this.viewModel.elevationDisplayUnit, this.elevationDisplayUnitOptions = this.viewModel.elevationDisplayUnitOptions, this.elevationInputUnit = this.viewModel.elevationInputUnit, this.elevationInputUnitOptions = this.viewModel.elevationInputUnitOptions, this.areaDisplayUnit = this.viewModel.areaDisplayUnit, this.areaDisplayUnitOptions = this.viewModel.areaDisplayUnitOptions, this.perimeterDisplayUnit = this.viewModel.perimeterDisplayUnit, this.perimeterDisplayUnitOptions = this.viewModel.perimeterDisplayUnitOptions, this.hideHeader = !1, this.hideSettingsButton = !1, this.hideElevationDisplayUnitSelect = !1, this.hideElevationInputUnitSelect = !1, this.hideVolumeDisplayUnitSelect = !1, this.hideModeSelect = !1, this.hideStartButton = !1, this.hideVisualization = this.viewModel.hideVisualization, this.headingLevel = 2, this.hideAreaDisplayUnitSelect = !1, this.hidePerimeterDisplayUnitSelect = !1, this.arcgisPropertyChange = Z()("analysis", "interactionDisabled", "state"), this.arcgisReady = F();
260
+ super(...arguments), this.viewModel = oe(this), this.messages = G({ blocking: !0 }), this.#e = X(), this._settingsPopoverIsOpen = !1, this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.icon = "cut-and-fill-volume-calculation", this.interactionDisabled = this.viewModel.interactionDisabled, this.state = this.viewModel.state, this.volumeDisplayUnit = this.viewModel.volumeDisplayUnit, this.volumeDisplayUnitOptions = this.viewModel.volumeDisplayUnitOptions, this.elevationDisplayUnit = this.viewModel.elevationDisplayUnit, this.elevationDisplayUnitOptions = this.viewModel.elevationDisplayUnitOptions, this.elevationInputUnit = this.viewModel.elevationInputUnit, this.elevationInputUnitOptions = this.viewModel.elevationInputUnitOptions, this.areaDisplayUnit = this.viewModel.areaDisplayUnit, this.areaDisplayUnitOptions = this.viewModel.areaDisplayUnitOptions, this.perimeterDisplayUnit = this.viewModel.perimeterDisplayUnit, this.perimeterDisplayUnitOptions = this.viewModel.perimeterDisplayUnitOptions, this.hideHeader = !1, this.hideSettingsButton = !1, this.hideElevationDisplayUnitSelect = !1, this.hideElevationInputUnitSelect = !1, this.hideVolumeDisplayUnitSelect = !1, this.hideModeSelect = !1, this.hideStartButton = !1, this.hideVisualization = this.viewModel.hideVisualization, this.headingLevel = 2, this.hideAreaDisplayUnitSelect = !1, this.hidePerimeterDisplayUnitSelect = !1, this.arcgisPropertyChange = Z()("analysis", "interactionDisabled", "state"), this.arcgisReady = q();
260
261
  }
261
262
  static {
262
263
  this.properties = { _settingsPopoverIsOpen: 16, view: 0, analysis: 0, autoDestroyDisabled: 5, icon: 3, interactionDisabled: 5, label: 1, messageOverrides: 0, referenceElement: 1, mode: 1, state: 32, volumeDisplayUnit: 1, volumeDisplayUnitOptions: 0, elevationDisplayUnit: 1, elevationDisplayUnitOptions: 0, elevationInputUnit: 1, elevationInputUnitOptions: 0, areaDisplayUnit: 1, areaDisplayUnitOptions: 0, perimeterDisplayUnit: 1, perimeterDisplayUnitOptions: 0, hideHeader: 5, hideSettingsButton: 5, hideElevationDisplayUnitSelect: 5, hideElevationInputUnitSelect: 5, hideVolumeDisplayUnitSelect: 5, hideModeSelect: 5, hideStartButton: 5, hideVisualization: 5, headingLevel: 9, hideAreaDisplayUnitSelect: 5, hidePerimeterDisplayUnitSelect: 5 };
@@ -292,13 +293,13 @@ class le extends R {
292
293
  this._settingsPopoverIsOpen = !0;
293
294
  }
294
295
  render() {
295
- const { messages: e, viewModel: t } = this, { measurement: a, state: o } = t, c = this.volumeDisplayUnitOptions, p = this.volumeDisplayUnit, _ = this.elevationDisplayUnitOptions, $ = this.elevationDisplayUnit, I = this.elevationInputUnitOptions, E = this.elevationInputUnit, P = this.perimeterDisplayUnitOptions, C = this.perimeterDisplayUnit, A = this.areaDisplayUnitOptions, L = this.areaDisplayUnit, U = t.analysisView?.error?.name, T = [
296
- v({ hidden: this.hideElevationInputUnitSelect, options: I, selectLabel: e.elevationInputUnit, value: E, onChange: (l) => {
296
+ const { messages: e, viewModel: t } = this, { measurement: a, state: o } = t, c = this.volumeDisplayUnitOptions, p = this.volumeDisplayUnit, _ = this.elevationDisplayUnitOptions, $ = this.elevationDisplayUnit, E = this.elevationInputUnitOptions, I = this.elevationInputUnit, P = this.perimeterDisplayUnitOptions, C = this.perimeterDisplayUnit, A = this.areaDisplayUnitOptions, L = this.areaDisplayUnit, U = t.analysisView?.error?.name, j = [
297
+ v({ hidden: this.hideElevationInputUnitSelect, options: E, selectLabel: e.elevationInputUnit, value: I, onChange: (l) => {
297
298
  this.viewModel.elevationInputUnit = l;
298
299
  } })
299
- ], j = [
300
+ ], T = [
300
301
  v({ hidden: this.hideElevationDisplayUnitSelect, options: _, selectLabel: e.elevationDisplayUnit, value: $, onChange: (l) => {
301
- this.analysis.displayUnits.elevation = l;
302
+ this.viewModel.elevationDisplayUnit = l;
302
303
  } }),
303
304
  v({ hidden: this.hideVolumeDisplayUnitSelect, options: c, selectLabel: e.volumeDisplayUnit, value: p, onChange: (l) => {
304
305
  this.viewModel.volumeDisplayUnit = l;
@@ -314,15 +315,15 @@ class le extends R {
314
315
  this.hideVolumeDisplayUnitSelect,
315
316
  this.hideAreaDisplayUnitSelect,
316
317
  this.hidePerimeterDisplayUnitSelect
317
- ].filter((l) => !l).length === 0, x = this.hideSettingsButton || f && b, w = (this._settingsPopoverIsOpen ? e.hideSettings : e.showSettings) ?? "";
318
+ ].filter((l) => !l).length === 0, w = this.hideSettingsButton || f && b, x = (this._settingsPopoverIsOpen ? e.hideSettings : e.showSettings) ?? "";
318
319
  return d`<div aria-label=${e.componentLabel ?? D} class=${O({
319
320
  root: !0,
320
321
  [M.widget]: !0,
321
322
  [M.panel]: !0
322
- })} role=presentation>${o === "disabled" && d`<calcite-scrim></calcite-scrim>` || ""}${h({ hidden: this.hideHeader && x, children: d`<div class=${O({
323
+ })} role=presentation>${o === "disabled" && d`<calcite-scrim></calcite-scrim>` || ""}${h({ hidden: this.hideHeader && w, children: d`<div class=${O({
323
324
  header: !0,
324
325
  "no-content": this.hideHeader
325
- })}>${h({ hidden: this.hideHeader, children: K({ class: "heading", level: this.headingLevel, children: e.title }) })}<span style=${q({ flex: 1 })}></span>${h({ hidden: x, children: d`<calcite-action icon=gear slot=settings .text=${w} title=${w ?? D} ${k(this.#e)}></calcite-action><calcite-popover slot=settings .label=${w} .referenceElement=${this.#e.value} overlay-positioning=fixed placement=bottom-end auto-close .open=${x ? !1 : void 0} @calcitePopoverOpen=${this._onSettingsPopoverOpen} @calcitePopoverClose=${this._onSettingsPopoverClose} ${k(this.#i)}><div class="settings-content">${h({ hidden: f, children: d`<div><p .hidden=${b}>${e.inputUnits}</p>${T}</div>` })}${h({ hidden: b, children: d`<div><p .hidden=${f}>${e.displayUnits}</p>${j}</div>` })}</div></calcite-popover>` })}</div>` })}<div class="content">${h({ hidden: this.hideModeSelect, children: d`<calcite-label>${this.messages.measurementMode}<calcite-select label="Select measurement mode" .value=${this.mode} @calciteSelectChange=${(l) => {
326
+ })}>${h({ hidden: this.hideHeader, children: K({ class: "heading", level: this.headingLevel, children: e.title }) })}<span style=${F({ flex: 1 })}></span>${h({ hidden: w, children: d`<calcite-action icon=gear slot=settings .text=${x} title=${x ?? D} ${k(this.#e)}></calcite-action><calcite-popover slot=settings .label=${x} .referenceElement=${this.#e.value} overlay-positioning=fixed placement=bottom-end auto-close .open=${w ? !1 : void 0} @calcitePopoverOpen=${this._onSettingsPopoverOpen} @calcitePopoverClose=${this._onSettingsPopoverClose} ${k(this.#i)}><div class="settings-content">${h({ hidden: f, children: d`<div><p .hidden=${b}>${e.inputUnits}</p>${j}</div>` })}${h({ hidden: b, children: d`<div><p .hidden=${f}>${e.displayUnits}</p>${T}</div>` })}</div></calcite-popover>` })}</div>` })}<div class="content">${h({ hidden: this.hideModeSelect, children: d`<calcite-label>${this.messages.measurementMode}<calcite-select label="Select measurement mode" .value=${this.mode} @calciteSelectChange=${(l) => {
326
327
  this.analysis.measureType = l.target.selectedOption.value;
327
328
  }}><calcite-option value=cut-fill>${e.cutAndFillMode}</calcite-option><calcite-option value=stockpile>${e.stockpileMode}</calcite-option></calcite-select></calcite-label>` })}${U != null && ce({ error: U, messages: e }) || ""}<arcgis-measurement-content .state=${t.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[
328
329
  {