@arcgis/core 6.0.0-next.1 → 6.0.0-next.10

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 (701) hide show
  1. package/analysis/AreaMeasurementAnalysis.d.ts +11 -1
  2. package/analysis/DimensionSimpleStyle.js +1 -1
  3. package/analysis/DirectLineMeasurementAnalysis.d.ts +11 -1
  4. package/analysis/DistanceMeasurementAnalysis.d.ts +8 -0
  5. package/arcade/featureSetUtils.js +1 -1
  6. package/arcade/functions/knowledgegraph.js +1 -1
  7. package/arcade/geometry/unitConversion.js +1 -1
  8. package/arcgisGlobal.d.ts +5 -5
  9. package/assets/esri/core/workers/RemoteClient.js +1 -1
  10. package/assets/esri/core/workers/chunks/01803f76bc0d9f2cd566.js +1 -0
  11. package/assets/esri/core/workers/chunks/{f09c9d9a554c33a753b4.js → 02253bdffbd580af22d8.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{5078b66ba31b770b689f.js → 037a8cc19debbaaa4e10.js} +1 -1
  13. package/assets/esri/core/workers/chunks/066550852483ab8f77bc.js +1 -0
  14. package/assets/esri/core/workers/chunks/{1ede8666d804c553803e.js → 0b6941781e35ce0f7274.js} +1 -1
  15. package/assets/esri/core/workers/chunks/0ccab50877b24f862d6e.js +1 -0
  16. package/assets/esri/core/workers/chunks/0f725cf79ce00e790a7d.js +1 -0
  17. package/assets/esri/core/workers/chunks/{a0d459bdb91ee892d4b6.js → 116293b1ee788a89ce1e.js} +1 -1
  18. package/assets/esri/core/workers/chunks/12a7997a40c77f5c9160.js +1 -0
  19. package/assets/esri/core/workers/chunks/{a7325ebb7edf3273bb34.js → 12b84262dedc6b393136.js} +1 -1
  20. package/assets/esri/core/workers/chunks/1b077c92345ffb5916c2.js +1 -0
  21. package/assets/esri/core/workers/chunks/{6dd0b79fa3a629ab4f27.js → 1bca39e0e651426bdbb5.js} +1 -1
  22. package/assets/esri/core/workers/chunks/1c0c5cb13c2590aae906.js +1 -0
  23. package/assets/esri/core/workers/chunks/{8959a825f5e1ce6f38ac.js → 1c65ab9ed611c322ce27.js} +1 -1
  24. package/assets/esri/core/workers/chunks/1e0d2715d603f48a7e0b.js +1 -0
  25. package/assets/esri/core/workers/chunks/261fea092ee7d27608a0.js +1 -0
  26. package/assets/esri/core/workers/chunks/2686fe5b62dd0be699c0.js +1 -0
  27. package/assets/esri/core/workers/chunks/2a97268000c6d03ef720.js +1 -0
  28. package/assets/esri/core/workers/chunks/{83589144eeeb08f45557.js → 2aeb5cc32284dd3e4d22.js} +1 -1
  29. package/assets/esri/core/workers/chunks/2d9a1f23ec6ce90723ac.js +1 -0
  30. package/assets/esri/core/workers/chunks/2e096537a3a5555a4a93.js +1 -0
  31. package/assets/esri/core/workers/chunks/{7a05b18f655c1167ce0a.js → 2ef5237e4c876d6a4ee0.js} +1 -1
  32. package/assets/esri/core/workers/chunks/37d6a264a3f1d8072aa0.js +1 -0
  33. package/assets/esri/core/workers/chunks/3b3e519f15ed52c83f0c.js +1 -0
  34. package/assets/esri/core/workers/chunks/3c0ed15b544df6fb0903.js +1 -0
  35. package/assets/esri/core/workers/chunks/{b612de42ee86c0d95247.js → 3d9d7d3a40b51eb7ee3d.js} +1 -1
  36. package/assets/esri/core/workers/chunks/3df5500a85345577480a.js +1 -0
  37. package/assets/esri/core/workers/chunks/3ffda5bf0b91700dc308.js +1 -0
  38. package/assets/esri/core/workers/chunks/40a584cb952e94326e9e.js +1 -0
  39. package/assets/esri/core/workers/chunks/{1317ecdfd0cfa683a493.js → 42323093827adffe56d3.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{1ba0dfbe0958cdbd7c9f.js → 42fd2a7b22b03dacc6a7.js} +1 -1
  41. package/assets/esri/core/workers/chunks/444e5f214abce3d607cd.js +1 -0
  42. package/assets/esri/core/workers/chunks/{d201fbf3ceff946d2bd6.js → 44d5508042cacdfcac47.js} +1 -1
  43. package/assets/esri/core/workers/chunks/4503b20ca6a80fb63d72.js +1 -0
  44. package/assets/esri/core/workers/chunks/45367aa8e5c5d574de94.js +1 -0
  45. package/assets/esri/core/workers/chunks/45800373650fbc8262e6.js +1 -0
  46. package/assets/esri/core/workers/chunks/{6a7ab1ef9a37e87db5ae.js → 46a7da93a63663878583.js} +1 -1
  47. package/assets/esri/core/workers/chunks/46b4fb6a7fe4877b0efc.js +1120 -0
  48. package/assets/esri/core/workers/chunks/47d074136a7f8e551a9a.js +1 -0
  49. package/assets/esri/core/workers/chunks/4911ce62421a6c3320b0.js +1 -0
  50. package/assets/esri/core/workers/chunks/4a1e23e021bac37a88ab.js +1 -0
  51. package/assets/esri/core/workers/chunks/4a6b92ecbb1f1c55cc43.js +1 -0
  52. package/assets/esri/core/workers/chunks/4debf2d9c3465250ef7a.js +1 -0
  53. package/assets/esri/core/workers/chunks/4e544de61f07ca660236.js +1 -0
  54. package/assets/esri/core/workers/chunks/4e8e322b469657ac22e2.js +1 -0
  55. package/assets/esri/core/workers/chunks/505227797bcf2a1d908d.js +1 -0
  56. package/assets/esri/core/workers/chunks/{67ac6b326bf80fc3d33d.js → 53be85d04cd2da4f391d.js} +1 -1
  57. package/assets/esri/core/workers/chunks/54778dec1598818d93cb.js +1 -0
  58. package/assets/esri/core/workers/chunks/54b18559280a7d2a8d93.js +1 -0
  59. package/assets/esri/core/workers/chunks/557671c897ca5563be6c.js +1 -0
  60. package/assets/esri/core/workers/chunks/567a65f4203f6e81f4b4.js +1 -0
  61. package/assets/esri/core/workers/chunks/5c7780f804d789cb37f5.js +1 -0
  62. package/assets/esri/core/workers/chunks/606ea251075fe81a1206.js +1 -0
  63. package/assets/esri/core/workers/chunks/{ceb680688fe7e570a774.js → 608be1172a908e92b9f1.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{e521bb9ee2030245c3ce.js → 612104dff305ff062dfa.js} +2 -2
  65. package/assets/esri/core/workers/chunks/6299be5e7e26bf3c6859.js +1 -0
  66. package/assets/esri/core/workers/chunks/{3ac9dcbb0571a2580236.js → 62c8c9ad09e0166207fd.js} +1 -1
  67. package/assets/esri/core/workers/chunks/6400446b7615b97c3521.js +1 -0
  68. package/assets/esri/core/workers/chunks/6431480ba0fa8c8d487f.js +1 -0
  69. package/assets/esri/core/workers/chunks/6588725275c75fae0d9c.js +1 -0
  70. package/assets/esri/core/workers/chunks/665e31c494d2af505acc.js +1 -0
  71. package/assets/esri/core/workers/chunks/{9232f57623e1fa3ccabc.js → 67e4b5651fd7ff7d8cf0.js} +1 -1
  72. package/assets/esri/core/workers/chunks/68be3fb88ca61f82fb90.js +1 -0
  73. package/assets/esri/core/workers/chunks/6c9266120d46e8c69dbf.js +1 -0
  74. package/assets/esri/core/workers/chunks/6c9acd9e4e201dc380e9.js +1 -0
  75. package/assets/esri/core/workers/chunks/6ebe73f69ae822053b70.js +1 -0
  76. package/assets/esri/core/workers/chunks/709e019885822b1f6f3e.js +1 -0
  77. package/assets/esri/core/workers/chunks/70cc2d79653d66e85b58.js +1 -0
  78. package/assets/esri/core/workers/chunks/7449568eb2305bf2d650.js +1 -0
  79. package/assets/esri/core/workers/chunks/745a153d0cd34faa124e.js +1 -0
  80. package/assets/esri/core/workers/chunks/7572c2bc5062e66f6330.js +1 -0
  81. package/assets/esri/core/workers/chunks/76196c414e48834f7b92.js +1 -0
  82. package/assets/esri/core/workers/chunks/78472a57c2ba146fec65.js +1 -0
  83. package/assets/esri/core/workers/chunks/7ef182e24cad50815b4e.js +1 -0
  84. package/assets/esri/core/workers/chunks/7f0f9dddc44b1f1600f0.js +1 -0
  85. package/assets/esri/core/workers/chunks/814751e705c05099f864.js +1 -0
  86. package/assets/esri/core/workers/chunks/8293600f94553afc8c38.js +1 -0
  87. package/assets/esri/core/workers/chunks/8487727f1197cf7dbf50.js +1 -0
  88. package/assets/esri/core/workers/chunks/88e54449261ef94e390d.js +1 -0
  89. package/assets/esri/core/workers/chunks/8b0d5551978ab0aac0d1.js +1 -0
  90. package/assets/esri/core/workers/chunks/8d0c2de92770a1567536.js +1 -0
  91. package/assets/esri/core/workers/chunks/900181f68449d8f82eeb.js +1 -0
  92. package/assets/esri/core/workers/chunks/939942b00ba380e2957e.js +1 -0
  93. package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +1 -0
  94. package/assets/esri/core/workers/chunks/96c3900685cfb2a8ca12.js +1 -0
  95. package/assets/esri/core/workers/chunks/9ce91a909eccc4dfe388.js +1 -0
  96. package/assets/esri/core/workers/chunks/{c76c42c74eedd43263d3.js → 9dd1fc56eb1ea6eb705e.js} +1 -1
  97. package/assets/esri/core/workers/chunks/{86a051e9fe71aa356108.js → 9e3e442a9874ed23a043.js} +1 -1
  98. package/assets/esri/core/workers/chunks/{aa1054834738aef48bda.js → a0356702f2d3f787aeac.js} +1 -1
  99. package/assets/esri/core/workers/chunks/a40b6d8b5c73e06e14d4.js +1 -0
  100. package/assets/esri/core/workers/chunks/{1ba1f705b6ce5c8ea702.js → a655ebdb4bf0660615a2.js} +1 -1
  101. package/assets/esri/core/workers/chunks/a8286febe371dc186aaa.js +1 -0
  102. package/assets/esri/core/workers/chunks/aaba33611753c6aada68.js +1 -0
  103. package/assets/esri/core/workers/chunks/aba42885c5d6b2b5fe7f.js +1 -0
  104. package/assets/esri/core/workers/chunks/ad76f7ab2f3e6d5a5b3c.js +1 -0
  105. package/assets/esri/core/workers/chunks/ae40eac1eadd1a537bf4.js +1 -0
  106. package/assets/esri/core/workers/chunks/aeaaff7a4b1a99540f52.js +1 -0
  107. package/assets/esri/core/workers/chunks/af349c7bc8ef41a0e1bd.js +1 -0
  108. package/assets/esri/core/workers/chunks/af75747b06d79446a855.js +1 -0
  109. package/assets/esri/core/workers/chunks/b564ec4e03478f5659db.js +1 -0
  110. package/assets/esri/core/workers/chunks/bbf993dba74850bbf9d7.js +1 -0
  111. package/assets/esri/core/workers/chunks/bc0f54a2c15502b630ec.js +1 -0
  112. package/assets/esri/core/workers/chunks/{ff3a53c3f00335552317.js → c29c474c4b1049352d3e.js} +1 -1
  113. package/assets/esri/core/workers/chunks/{9ab25ee06041f907b9a2.js → c2c1f51a4668055c2838.js} +1 -1
  114. package/assets/esri/core/workers/chunks/c337fc0e6dc69c233e6d.js +1 -0
  115. package/assets/esri/core/workers/chunks/{a7985d20fa6e8d4878e7.js → d0f5bee9db1ad51ae687.js} +1 -1
  116. package/assets/esri/core/workers/chunks/d6ad4390df576198e45b.js +1 -0
  117. package/assets/esri/core/workers/chunks/d7f6021fd41b9571a02c.js +1 -0
  118. package/assets/esri/core/workers/chunks/d90a3bfd45b5ed4092e0.js +1 -0
  119. package/assets/esri/core/workers/chunks/dba280c370df13196711.js +1 -0
  120. package/assets/esri/core/workers/chunks/ddf0671976648f621269.js +1 -0
  121. package/assets/esri/core/workers/chunks/{c18189710d6198516175.js → de5ecb567bd69c613e9d.js} +1 -1
  122. package/assets/esri/core/workers/chunks/e10b57aefcc89671116e.js +1 -0
  123. package/assets/esri/core/workers/chunks/{534186fc921a0ccf58dc.js → e1f5d00878f27e1d413e.js} +1 -1
  124. package/assets/esri/core/workers/chunks/e65dfa19f030ec298437.js +1 -0
  125. package/assets/esri/core/workers/chunks/e932951598499befabf5.js +1 -0
  126. package/assets/esri/core/workers/chunks/{e1ba915dae7747932c0f.js → eb04e1717a1002cda3ab.js} +1 -1
  127. package/assets/esri/core/workers/chunks/f122c18af10e56f9ec2b.js +1 -0
  128. package/assets/esri/core/workers/chunks/f1df76f098a3cc924832.js +1 -0
  129. package/assets/esri/core/workers/chunks/f1f90adae13b04898008.js +1 -0
  130. package/assets/esri/core/workers/chunks/f46d9a19f79d4a4bd354.js +1 -0
  131. package/assets/esri/core/workers/chunks/f4f9d08b2df856e3b694.js +1 -0
  132. package/assets/esri/core/workers/chunks/{711cfb84659cb4437679.js → f528ac5c648ca6a98582.js} +1 -1
  133. package/assets/esri/core/workers/chunks/f92364afaefbac7e8f77.js +1 -0
  134. package/assets/esri/core/workers/chunks/fb444954be74c1962ced.js +1 -0
  135. package/assets/esri/core/workers/chunks/fc44227c1756f65b95df.js +1 -0
  136. package/assets/esri/core/workers/chunks/{72019baeba520edb6bb0.js → fc44d45598a7476bc606.js} +1 -1
  137. package/assets/esri/core/workers/chunks/fecaf0bc28aeea4d15db.js +1 -0
  138. package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
  139. package/assets/esri/themes/base/_mixins.scss +2 -2
  140. package/assets/esri/themes/base/widgets/_Attribution.scss +1 -1
  141. package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +2 -2
  142. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +5 -5
  143. package/assets/esri/themes/base/widgets/_Bookmarks.scss +1 -1
  144. package/assets/esri/themes/base/widgets/_BuildingLevelPicker.scss +2 -2
  145. package/assets/esri/themes/base/widgets/_BuildingPhasePicker.scss +5 -5
  146. package/assets/esri/themes/base/widgets/_CatalogLayerList.scss +1 -1
  147. package/assets/esri/themes/base/widgets/_Compass.scss +0 -2
  148. package/assets/esri/themes/base/widgets/_DirectionalPad.scss +4 -10
  149. package/assets/esri/themes/base/widgets/_Directions.scss +40 -40
  150. package/assets/esri/themes/base/widgets/_Editor.scss +7 -7
  151. package/assets/esri/themes/base/widgets/_Expand.scss +1 -1
  152. package/assets/esri/themes/base/widgets/_Feature.scss +1 -1
  153. package/assets/esri/themes/base/widgets/_FeatureForm.scss +6 -6
  154. package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationLayers.scss +1 -1
  155. package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationList.scss +1 -1
  156. package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationSettings.scss +4 -4
  157. package/assets/esri/themes/base/widgets/_FeatureTable.scss +27 -27
  158. package/assets/esri/themes/base/widgets/_FeatureTemplates.scss +1 -1
  159. package/assets/esri/themes/base/widgets/_Features.scss +6 -6
  160. package/assets/esri/themes/base/widgets/_FilterBuilder.scss +1 -1
  161. package/assets/esri/themes/base/widgets/_FilterCondition.scss +1 -1
  162. package/assets/esri/themes/base/widgets/_Grid.scss +18 -18
  163. package/assets/esri/themes/base/widgets/_GridControls.scss +11 -11
  164. package/assets/esri/themes/base/widgets/_LayerList.scss +1 -1
  165. package/assets/esri/themes/base/widgets/_Legend.scss +5 -5
  166. package/assets/esri/themes/base/widgets/_NavigationToggle.scss +4 -1
  167. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +23 -28
  168. package/assets/esri/themes/base/widgets/_ResponsiveToolbar.scss +0 -2
  169. package/assets/esri/themes/base/widgets/_SearchResultRenderer.scss +1 -1
  170. package/assets/esri/themes/base/widgets/_SelectionList.scss +15 -15
  171. package/assets/esri/themes/base/widgets/_SelectionToolbar.scss +3 -5
  172. package/assets/esri/themes/base/widgets/_ShadowCast.scss +11 -11
  173. package/assets/esri/themes/base/widgets/_Sketch.scss +1 -1
  174. package/assets/esri/themes/base/widgets/_Slice.scss +3 -3
  175. package/assets/esri/themes/base/widgets/_SnappingControls.scss +1 -1
  176. package/assets/esri/themes/base/widgets/_TimeSlider.scss +5 -5
  177. package/assets/esri/themes/base/widgets/_TimeZoneLabel.scss +5 -4
  178. package/assets/esri/themes/base/widgets/_Tooltip.scss +14 -17
  179. package/assets/esri/themes/base/widgets/_UtilityNetworkAssociations.scss +2 -2
  180. package/assets/esri/themes/base/widgets/_UtilityNetworkTrace.scss +1 -1
  181. package/assets/esri/themes/base/widgets/_UtilityNetworkValidateTopology.scss +2 -2
  182. package/assets/esri/themes/base/widgets/_ValuePicker.scss +2 -2
  183. package/assets/esri/themes/base/widgets/_VideoPlayer.scss +5 -5
  184. package/assets/esri/themes/base/widgets/_Widget.scss +5 -1
  185. package/assets/esri/themes/dark/main.css +1 -1
  186. package/assets/esri/themes/light/main.css +1 -1
  187. package/assets/esri/themes/light/view.css +1 -1
  188. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
  189. package/{basemaps/BasemapCollection.d.ts → basemapGallery/BasemapGalleryModel.d.ts} +8 -8
  190. package/{basemaps/BasemapCollection.js → basemapGallery/BasemapGalleryModel.js} +1 -1
  191. package/{basemaps → basemapGallery}/BasemapsSource.d.ts +1 -1
  192. package/{basemaps → basemapGallery}/BasemapsSource.js +1 -1
  193. package/{basemaps → basemapGallery}/LocalBasemapsSource.d.ts +2 -2
  194. package/{basemaps → basemapGallery}/LocalBasemapsSource.js +1 -1
  195. package/{basemaps → basemapGallery}/PortalBasemapsSource.d.ts +2 -2
  196. package/{basemaps → basemapGallery}/PortalBasemapsSource.js +1 -1
  197. package/{basemaps → basemapGallery}/support/BasemapItem.d.ts +2 -2
  198. package/{basemaps → basemapGallery}/support/BasemapItem.js +1 -1
  199. package/{basemaps → basemapGallery}/types.d.ts +2 -2
  200. package/chunks/AtmosphereCompositing.glsl.js +1 -1
  201. package/chunks/ChapmanAtmosphere.glsl.js +3 -3
  202. package/chunks/CloudsComposition.glsl.js +1 -1
  203. package/chunks/Component.glsl.js +41 -41
  204. package/chunks/DefaultMaterial.glsl.js +2 -2
  205. package/chunks/EdgeShader.glsl.js +9 -9
  206. package/chunks/Fog.glsl.js +5 -5
  207. package/chunks/GaussianSplat.glsl.js +2 -2
  208. package/chunks/GlobalIllumination.glsl.js +13 -11
  209. package/chunks/GlobalIlluminationBlur.glsl.js +3 -5
  210. package/chunks/GlobalIlluminationUpscale.glsl.js +1 -1
  211. package/chunks/HUDMaterial.glsl.js +13 -13
  212. package/chunks/Haze.glsl.js +6 -6
  213. package/chunks/HazeCompositing.glsl.js +1 -1
  214. package/chunks/LaserlinePath.glsl.js +6 -6
  215. package/chunks/LineCallout.glsl.js +1 -1
  216. package/chunks/LineMarker.glsl.js +5 -5
  217. package/chunks/NavigationDepth.glsl.js +2 -2
  218. package/chunks/Path.glsl.js +1 -1
  219. package/chunks/Pattern.glsl.js +26 -26
  220. package/chunks/Precipitation.glsl.js +7 -7
  221. package/chunks/RealisticTree.glsl.js +2 -2
  222. package/chunks/RibbonLine.glsl.js +80 -73
  223. package/chunks/ShadowCastAccumulate.glsl.js +1 -1
  224. package/chunks/ShadowHighlight.glsl.js +5 -5
  225. package/chunks/ShadowHighlightBuffer.glsl.js +1 -1
  226. package/chunks/SimpleAtmosphere.glsl.js +4 -4
  227. package/chunks/Terrain.glsl.js +29 -32
  228. package/chunks/Viewshed.glsl.js +2 -2
  229. package/chunks/Water.glsl.js +2 -2
  230. package/config.js +1 -1
  231. package/core/Loadable.js +1 -1
  232. package/core/arrayUtils.js +1 -1
  233. package/core/colorUtils.js +1 -1
  234. package/core/has.js +1 -1
  235. package/core/screenUtils.js +1 -1
  236. package/core/units.js +1 -1
  237. package/core/workers/workerFactory.js +1 -1
  238. package/form/elements/inputs/DynamicChoiceInput.d.ts +35 -5
  239. package/geometry/HeightModelInfo.js +1 -1
  240. package/geometry/operators/proximityOperator.js +1 -1
  241. package/geometry/projectionUtils.js +1 -1
  242. package/geometry/support/meshUtils.d.ts +1 -1
  243. package/geometry/support/scaleUtils.js +1 -1
  244. package/geometry/support/wkt.js +2 -0
  245. package/kernel.js +1 -1
  246. package/layers/BaseDynamicLayer.d.ts +1 -0
  247. package/layers/BaseElevationLayer.d.ts +2 -0
  248. package/layers/BaseTileLayer.d.ts +12 -9
  249. package/layers/CSVLayer.d.ts +0 -15
  250. package/layers/FeatureLayer.d.ts +2 -15
  251. package/layers/GeoJSONLayer.d.ts +0 -52
  252. package/layers/GeoRSSLayer.d.ts +0 -44
  253. package/layers/GeospatialPDFLayer.d.ts +2 -5
  254. package/layers/GeospatialPDFLayer.js +1 -1
  255. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  256. package/layers/OrientedImageryLayer.js +1 -1
  257. package/layers/ParquetLayer.d.ts +100 -12
  258. package/layers/ParquetLayer.js +1 -1
  259. package/layers/SketchLayer.d.ts +0 -1
  260. package/layers/VectorTileLayer.d.ts +2 -12
  261. package/layers/geospatialPDF/renderExtentUtils.js +1 -1
  262. package/layers/graphics/data/FeatureStore.js +1 -1
  263. package/layers/graphics/data/QueryEngineResult.js +1 -1
  264. package/layers/graphics/data/geometryUtils.js +1 -1
  265. package/layers/graphics/data/projectionSupport.js +1 -1
  266. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  267. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  268. package/layers/graphics/transferFeatures.js +1 -1
  269. package/layers/knowledgeGraph/layerUtils.js +1 -1
  270. package/layers/knowledgeGraph/nodeMovementUtils.js +1 -1
  271. package/layers/mixins/PortalLayer.js +1 -1
  272. package/layers/mixins/RefreshableLayer.d.ts +1 -3
  273. package/layers/mixins/ScaleRangeLayer.js +1 -1
  274. package/layers/mixins/SublayersOwner.js +1 -1
  275. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  276. package/layers/orientedImagery/core/utils.js +1 -1
  277. package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
  278. package/layers/raster/datasets/TIFFRaster.js +1 -1
  279. package/layers/raster/datasets/byteStreamUtils.js +1 -1
  280. package/layers/raster/formats/tiffParser.js +1 -1
  281. package/layers/support/ParquetPortalItemData.d.ts +2 -0
  282. package/layers/support/ParquetPortalItemData.js +1 -1
  283. package/layers/support/PortalItemData.d.ts +21 -0
  284. package/layers/support/PortalItemData.js +1 -1
  285. package/layers/support/Sublayer.js +1 -1
  286. package/layers/support/SubtypeSublayer.js +1 -1
  287. package/layers/support/layersLoader.js +1 -1
  288. package/layers/support/parquetUtils.d.ts +1 -1
  289. package/layers/support/types.d.ts +1 -1
  290. package/package.json +3 -3
  291. package/popup/FeaturesModel.d.ts +27 -6
  292. package/popup/FeaturesModel.js +1 -1
  293. package/portal/support/layersLoader.js +1 -1
  294. package/portal/support/portalLayers.js +1 -1
  295. package/renderers/VectorFieldRenderer.d.ts +4 -4
  296. package/rest/print.d.ts +49 -3
  297. package/rest/print.js +1 -1
  298. package/rest/query/operations/pbfFlatFeatureSet.js +1 -1
  299. package/rest/support/printTaskUtils.js +1 -1
  300. package/smartMapping/renderers/color.js +1 -1
  301. package/smartMapping/renderers/dotDensity.js +1 -1
  302. package/smartMapping/renderers/heatmap.js +1 -1
  303. package/smartMapping/renderers/pieChart.js +1 -1
  304. package/smartMapping/renderers/support/spikeUtils.js +3 -3
  305. package/smartMapping/renderers/type.js +1 -1
  306. package/smartMapping/statistics/heatmapStatistics.js +1 -1
  307. package/smartMapping/statistics/histogram.js +1 -1
  308. package/smartMapping/statistics/summaryStatistics.js +1 -1
  309. package/smartMapping/statistics/summaryStatisticsForAttributes.js +1 -1
  310. package/smartMapping/statistics/uniqueValues.js +1 -1
  311. package/smartMapping/support/adapters/support/layerUtils.js +1 -1
  312. package/smartMapping/types.d.ts +3 -1
  313. package/symbols/LineSymbol3DLayer.js +1 -1
  314. package/symbols/callouts/LineCallout3D.js +1 -1
  315. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  316. package/symbols/cim/CIMSymbolHelper.js +1 -1
  317. package/symbols/cim/cimAnalyzer.js +1 -1
  318. package/symbols/edges/Edges3D.js +1 -1
  319. package/symbols/support/Symbol3DIconOutline.js +1 -1
  320. package/symbols/support/Symbol3DOutline.js +1 -1
  321. package/symbols/support/Symbol3DTextBorder.js +1 -1
  322. package/symbols/support/defaults3D.js +1 -1
  323. package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
  324. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +6 -4
  325. package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
  326. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
  327. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +6 -4
  328. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
  329. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  330. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  331. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  332. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
  333. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  334. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  335. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  336. package/views/2d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles2D.js +1 -1
  337. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  338. package/views/2d/layers/LayerView2D.js +1 -1
  339. package/views/2d/layers/features/FeatureContainer.js +1 -1
  340. package/views/2d/layers/features/FeatureSourceEventLog.js +1 -1
  341. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  342. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  343. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  344. package/views/2d/layers/features/sources/strategies/AFeatureTileLoadStrategy.js +1 -1
  345. package/views/2d/layers/features/sources/strategies/FeatureDrillDownTileLoadStrategy.js +1 -1
  346. package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
  347. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  348. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +1 -1
  349. package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
  350. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  351. package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
  352. package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
  353. package/views/3d/analysis/LineOfSight/LineOfSightInteractionVisuals.js +1 -1
  354. package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
  355. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  356. package/views/3d/analysis/LineOfSight/LineOfSightPlacementController.js +1 -1
  357. package/views/3d/analysis/LineOfSight/lineOfSightPlacementUtils.js +1 -1
  358. package/views/3d/analysis/ShadowCast/ShadowCastTooltip.js +1 -1
  359. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  360. package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
  361. package/views/3d/analysis/Viewshed/ViewshedPlacementPointPlugin.js +1 -1
  362. package/views/3d/analysis/Viewshed/placementUtils.js +1 -1
  363. package/views/3d/analysis/Viewshed/types.d.ts +3 -1
  364. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +3 -0
  365. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +2 -1
  366. package/views/3d/environment/Environment.d.ts +2 -2
  367. package/views/3d/environment/Environment.js +1 -1
  368. package/views/3d/environment/EnvironmentView.js +2 -0
  369. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  370. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  371. package/views/3d/interactive/editingTools/originGeometryVisualElementUtils.js +1 -1
  372. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  373. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  374. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  375. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  376. package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
  377. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  378. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  379. package/views/3d/layers/FlowSubView3D.js +1 -1
  380. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  381. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  382. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  383. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  384. package/views/3d/layers/MediaLayerView3D.js +1 -1
  385. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  386. package/views/3d/layers/RouteLayerView3D.js +1 -1
  387. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  388. package/views/3d/layers/SceneLayerView3D.js +1 -1
  389. package/views/3d/layers/TiledLayerView3D.js +1 -1
  390. package/views/3d/layers/VoxelLayerView3D.js +1 -1
  391. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  392. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  393. package/views/3d/layers/graphics/Graphics3DBufferGraphicLayer.js +2 -0
  394. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  395. package/views/3d/layers/graphics/Graphics3DDrapedBufferGraphicLayer.js +2 -0
  396. package/views/3d/layers/graphics/Graphics3DDrapedGraphicLayer.js +1 -1
  397. package/views/3d/layers/graphics/Graphics3DDrapedGraphicLayerBase.js +2 -0
  398. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  399. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  400. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  401. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  402. package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
  403. package/views/3d/layers/graphics/Graphics3DStageObjectGraphicLayer.js +2 -0
  404. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  405. package/views/3d/layers/graphics/LabelInfo.js +1 -1
  406. package/views/3d/layers/graphics/Labeler.js +1 -1
  407. package/views/3d/layers/graphics/elevationAlignmentUtils.js +1 -1
  408. package/views/3d/layers/graphics/pointUtils.js +1 -1
  409. package/views/3d/layers/support/FeatureMemory.js +1 -1
  410. package/views/3d/layers/support/FeatureTile.js +1 -1
  411. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  412. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  413. package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
  414. package/views/3d/layers/support/SampledGeometryMaxDistanceRatio.js +1 -1
  415. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  416. package/views/3d/support/PBFDecoder.js +1 -1
  417. package/views/3d/support/elevationUpdateUtils.js +1 -1
  418. package/views/3d/support/popupHitTest.js +1 -1
  419. package/views/3d/terrain/OverlayManager.js +1 -1
  420. package/views/3d/terrain/OverlayRenderer.js +1 -1
  421. package/views/3d/terrain/TerrainRenderer.js +1 -1
  422. package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
  423. package/views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js +5 -5
  424. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +13 -13
  425. package/views/3d/webgl-engine/core/shaderLibrary/bindUniforms.js +2 -0
  426. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +2 -2
  427. package/views/3d/webgl-engine/core/shaderLibrary/lastFrameUniforms.js +2 -0
  428. package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js +7 -7
  429. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +31 -29
  430. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +26 -12
  431. package/views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js +2 -2
  432. package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +14 -14
  433. package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +1 -1
  434. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +16 -11
  435. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +5 -5
  436. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +8 -8
  437. package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +1 -1
  438. package/views/3d/webgl-engine/core/shaderLibrary/shading/lightingUniforms.js +2 -0
  439. package/views/3d/webgl-engine/core/shaderLibrary/shading/pbrGlobals.glsl.js +1 -1
  440. package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +6 -6
  441. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
  442. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +3 -3
  443. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  444. package/views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js +1 -1
  445. package/views/3d/webgl-engine/effects/WeatherFader.js +1 -1
  446. package/views/3d/webgl-engine/effects/atmosphere/ChapmanApproximation.glsl.js +3 -3
  447. package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.glsl.js +1 -1
  448. package/views/3d/webgl-engine/effects/atmosphere/ChapmanRaymarching.glsl.js +1 -1
  449. package/views/3d/webgl-engine/effects/atmosphere/SimpleAtmosphere.glsl.js +1 -1
  450. package/views/3d/webgl-engine/effects/clouds/CloudsComposition.glsl.js +1 -1
  451. package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
  452. package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
  453. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  454. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  455. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  456. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationColorQuantization.glsl.js +2 -2
  457. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +5 -5
  458. package/views/3d/webgl-engine/effects/haze/Haze.glsl.js +1 -1
  459. package/views/3d/webgl-engine/effects/haze/HazeCompositing.glsl.js +1 -1
  460. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.glsl.js +1 -1
  461. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightBuffer.glsl.js +1 -1
  462. package/views/3d/webgl-engine/effects/laserlines/LaserlinePath.glsl.js +1 -1
  463. package/views/3d/webgl-engine/effects/raymarching/DistanceFalloff.glsl.js +1 -1
  464. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowCastAccumulate.glsl.js +1 -1
  465. package/views/3d/webgl-engine/lib/BufferGeometry.js +1 -1
  466. package/views/3d/webgl-engine/lib/BufferObject3D.js +1 -1
  467. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  468. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  469. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  470. package/views/3d/webgl-engine/lib/affectsGeometry.js +1 -1
  471. package/views/3d/webgl-engine/lib/bufferGeometryUtils.js +2 -0
  472. package/views/3d/webgl-engine/lib/edgeRendering/AdjustProjectedPosition.glsl.js +5 -5
  473. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShader.glsl.js +1 -1
  474. package/views/3d/webgl-engine/lib/edgeRendering/EdgeUtil.glsl.js +11 -11
  475. package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
  476. package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
  477. package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +1 -1
  478. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  479. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  480. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  481. package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
  482. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  483. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  484. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  485. package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +1 -1
  486. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  487. package/views/3d/webgl-engine/shaders/Viewshed.glsl.js +1 -1
  488. package/views/3d/webgl-engine/shaders/lineUniforms.js +2 -0
  489. package/views/DOMContainer.d.ts +28 -9
  490. package/views/DOMContainer.js +1 -1
  491. package/views/PopupView.d.ts +6 -0
  492. package/views/SceneView.d.ts +4 -10
  493. package/views/SceneView.js +1 -1
  494. package/views/VideoView.d.ts +27 -9
  495. package/views/View.d.ts +20 -19
  496. package/views/View.js +1 -1
  497. package/views/View2D.d.ts +13 -13
  498. package/views/draw/Draw.d.ts +1 -1
  499. package/views/draw/support/InteractiveHandle.js +1 -1
  500. package/views/draw/support/PluginContext.js +1 -1
  501. package/views/draw/support/managers/TooltipManager.js +1 -1
  502. package/views/interactive/options/SnappingOptions.d.ts +29 -12
  503. package/views/interactive/options/TooltipOptions.d.ts +9 -1
  504. package/views/interactive/options/ValueOptions.d.ts +9 -2
  505. package/views/interactive/options/ViewOptions.d.ts +82 -6
  506. package/views/interactive/snapping/FeatureSnappingSourceInfo.js +1 -1
  507. package/views/interactive/snapping/SnappingManagerPool.js +1 -1
  508. package/views/interactive/snapping/SnappingOptions.d.ts +1 -1
  509. package/views/interactive/snapping/SnappingVisualizer.js +1 -1
  510. package/views/interactive/support/Units.d.ts +1 -0
  511. package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
  512. package/views/interactive/tooltip/components/ElevationModeSelect.js +1 -1
  513. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  514. package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
  515. package/views/layers/FeatureLikeLayerView.d.ts +2 -2
  516. package/views/layers/GraphicsLayerView.d.ts +1 -0
  517. package/views/layers/ImageryLayerView.d.ts +1 -0
  518. package/views/layers/LayerView.js +1 -1
  519. package/views/layers/LineOfSightLayerView.d.ts +3 -4
  520. package/views/layers/ParquetLayerView.d.ts +15 -0
  521. package/views/layers/ParquetLayerView.js +1 -1
  522. package/views/layers/ViewshedLayerView.d.ts +5 -6
  523. package/views/support/layerViewUtils.js +1 -1
  524. package/views/support/projectionUtils.js +1 -1
  525. package/views/types.d.ts +3 -1
  526. package/webdoc/support/saveUtils.js +1 -1
  527. package/webdoc/support/unsupportedErrors.js +1 -1
  528. package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +2 -2
  529. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  530. package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +3 -3
  531. package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +2 -2
  532. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -2
  533. package/widgets/BasemapGallery/types.d.ts +3 -3
  534. package/widgets/BasemapLayerList.js +1 -1
  535. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  536. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  537. package/widgets/BatchAttributeForm/expressions/expressionUtils.js +1 -1
  538. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +6 -0
  539. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  540. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
  541. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  542. package/widgets/BatchAttributeForm.js +1 -1
  543. package/widgets/DirectionalPad.js +1 -1
  544. package/widgets/Editor/EditorViewModel.d.ts +13 -8
  545. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  546. package/widgets/Editor/workflowUtils.js +1 -1
  547. package/widgets/Editor.d.ts +19 -9
  548. package/widgets/Expand.js +1 -1
  549. package/widgets/FeatureForm.d.ts +2 -2
  550. package/widgets/FeatureForm.js +1 -1
  551. package/widgets/FeatureTable/FieldColumn.js +1 -1
  552. package/widgets/FeatureTable.js +1 -1
  553. package/widgets/Features/FeaturesDrillIn.js +1 -1
  554. package/widgets/Features.js +1 -1
  555. package/widgets/Legend.d.ts +1 -0
  556. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  557. package/widgets/OrientedImageryViewer/adapters/draw/HeightMeasurementAdapter.js +1 -1
  558. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  559. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  560. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  561. package/widgets/OrientedImageryViewer/components/ImageLocationViewModel.js +1 -1
  562. package/widgets/OrientedImageryViewer/components/SequentialNavigationUI.js +1 -1
  563. package/widgets/OrientedImageryViewer/components/SketchTools.js +1 -1
  564. package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
  565. package/widgets/OrientedImageryViewer/types.d.ts +20 -0
  566. package/widgets/OrientedImageryViewer.d.ts +9 -1
  567. package/widgets/PanoramicVideoViewer.js +1 -1
  568. package/widgets/Print/PrintViewModel.d.ts +3 -2
  569. package/widgets/Print/PrintViewModel.js +1 -1
  570. package/widgets/Print.js +1 -1
  571. package/widgets/ScaleRangeSlider.js +1 -1
  572. package/widgets/Search/SearchResultRenderer.js +1 -1
  573. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  574. package/widgets/Sketch/SketchViewModel.d.ts +14 -9
  575. package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
  576. package/widgets/Sketch.d.ts +10 -10
  577. package/widgets/Track/TrackViewModel.d.ts +1 -1
  578. package/widgets/UtilityNetworkAssociations.js +1 -1
  579. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  580. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeaturesDrillIn.js +1 -1
  581. package/widgets/UtilityNetworkTrace/types.d.ts +2 -2
  582. package/widgets/UtilityNetworkTrace.js +1 -1
  583. package/widgets/UtilityNetworkValidateTopology.js +1 -1
  584. package/widgets/ValuePicker.js +1 -1
  585. package/widgets/VideoPlayer/components/PlayerActionsGroup.js +1 -1
  586. package/widgets/VideoPlayer/components/PlayerControlsGroup.js +1 -1
  587. package/widgets/support/GridControls.js +1 -1
  588. package/widgets/support/PluginSettingsControls.js +1 -1
  589. package/widgets/support/SelectionList/FeatureItem.d.ts +9 -2
  590. package/widgets/support/SelectionToolbar.js +1 -1
  591. package/widgets/support/SnappingControls.d.ts +1 -1
  592. package/widgets/support/SnappingControls.js +1 -1
  593. package/widgets/support/componentsUtils.js +1 -1
  594. package/arcade/geometry/wkt.js +0 -2
  595. package/assets/esri/core/workers/chunks/00a600c71ceebe7bfeee.js +0 -1
  596. package/assets/esri/core/workers/chunks/00d24415bdeb0adae3df.js +0 -1
  597. package/assets/esri/core/workers/chunks/0193df3f9fb23633da87.js +0 -1
  598. package/assets/esri/core/workers/chunks/01b00fbf6a6a22d573ee.js +0 -1
  599. package/assets/esri/core/workers/chunks/02d4f91652a79d2b637e.js +0 -1
  600. package/assets/esri/core/workers/chunks/050c4b212f2b5691db34.js +0 -1
  601. package/assets/esri/core/workers/chunks/05963f57cbe5a5249496.js +0 -1
  602. package/assets/esri/core/workers/chunks/05d865b2736f452ad2aa.js +0 -1
  603. package/assets/esri/core/workers/chunks/06e7400f5ebe0719b81c.js +0 -1
  604. package/assets/esri/core/workers/chunks/07aa6d36f1006b6ab7ff.js +0 -1
  605. package/assets/esri/core/workers/chunks/084222c00d263a534952.js +0 -1
  606. package/assets/esri/core/workers/chunks/0b36abcbf03037b4073d.js +0 -1
  607. package/assets/esri/core/workers/chunks/107b025dc5b09465a78f.js +0 -1
  608. package/assets/esri/core/workers/chunks/1b551ef3d84d9c1e93f9.js +0 -1
  609. package/assets/esri/core/workers/chunks/1ef39aef6b33c530cbe4.js +0 -1
  610. package/assets/esri/core/workers/chunks/1f3148cebee1961249a4.js +0 -1
  611. package/assets/esri/core/workers/chunks/1f43e06dcfe56229bb0f.js +0 -1
  612. package/assets/esri/core/workers/chunks/2164fcaced72b0fda31f.js +0 -1
  613. package/assets/esri/core/workers/chunks/25b0885d3bc190b28c04.js +0 -1
  614. package/assets/esri/core/workers/chunks/25d6c674b1c4829f040f.js +0 -1
  615. package/assets/esri/core/workers/chunks/260dcb79dfd0f981949f.js +0 -1
  616. package/assets/esri/core/workers/chunks/2a570ce6b99dac6ee996.js +0 -1
  617. package/assets/esri/core/workers/chunks/2e6a2f4d686b71249c0e.js +0 -1
  618. package/assets/esri/core/workers/chunks/2f9033890c465acff698.js +0 -1
  619. package/assets/esri/core/workers/chunks/303676d1b10676c9cab4.js +0 -1
  620. package/assets/esri/core/workers/chunks/303fde8f3459dde16555.js +0 -1
  621. package/assets/esri/core/workers/chunks/32d08b571bbd996d4e6d.js +0 -1
  622. package/assets/esri/core/workers/chunks/33956f12505e72e60293.js +0 -1
  623. package/assets/esri/core/workers/chunks/350540770781b281c39a.js +0 -1
  624. package/assets/esri/core/workers/chunks/37a636f61cfe89c6bfd1.js +0 -1
  625. package/assets/esri/core/workers/chunks/380cc538c1ab453870fa.js +0 -1
  626. package/assets/esri/core/workers/chunks/3880d2c7fb14955d7f93.js +0 -1
  627. package/assets/esri/core/workers/chunks/3b017b718ea2d4ed498f.js +0 -1
  628. package/assets/esri/core/workers/chunks/40fb1910f780e78c128c.js +0 -1
  629. package/assets/esri/core/workers/chunks/4310c8d2b40ae69c3681.js +0 -1
  630. package/assets/esri/core/workers/chunks/43fc42405167a5537039.js +0 -1
  631. package/assets/esri/core/workers/chunks/4848f195eb93cc93dd15.js +0 -1
  632. package/assets/esri/core/workers/chunks/4cddd217383b9333f32e.js +0 -1
  633. package/assets/esri/core/workers/chunks/4d82db661365daa513a6.js +0 -1
  634. package/assets/esri/core/workers/chunks/4fa59f8ed3b7b6239548.js +0 -1
  635. package/assets/esri/core/workers/chunks/57970d43cdcc5cf57a30.js +0 -1
  636. package/assets/esri/core/workers/chunks/5e184fd47e76eb976fa9.js +0 -1
  637. package/assets/esri/core/workers/chunks/5ea8809b6519c05ad9f6.js +0 -1
  638. package/assets/esri/core/workers/chunks/5f3ab77a79c408423fde.js +0 -1
  639. package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +0 -1
  640. package/assets/esri/core/workers/chunks/604344e45c0f27497188.js +0 -1
  641. package/assets/esri/core/workers/chunks/61ad8306ab79aca79505.js +0 -1
  642. package/assets/esri/core/workers/chunks/633a9051580c5302d2f7.js +0 -1
  643. package/assets/esri/core/workers/chunks/6469c0d18d3663e7da4b.js +0 -1
  644. package/assets/esri/core/workers/chunks/65654e481cce9ae40e54.js +0 -1
  645. package/assets/esri/core/workers/chunks/669e39c3437d7273f0c7.js +0 -1
  646. package/assets/esri/core/workers/chunks/68e24fa3f564c2a5c9fd.js +0 -1
  647. package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +0 -1
  648. package/assets/esri/core/workers/chunks/71f739bb3f7350704af6.js +0 -1
  649. package/assets/esri/core/workers/chunks/750a9f3cdb96b966274a.js +0 -1
  650. package/assets/esri/core/workers/chunks/776565dd9741ba2ba151.js +0 -1
  651. package/assets/esri/core/workers/chunks/798a63653f82c0e842c5.js +0 -1
  652. package/assets/esri/core/workers/chunks/841f67baf6a1634ada48.js +0 -1
  653. package/assets/esri/core/workers/chunks/84fcbf7a1d04f01685d1.js +0 -1
  654. package/assets/esri/core/workers/chunks/897fc8e78a0d54a5ff5a.js +0 -1
  655. package/assets/esri/core/workers/chunks/8af92bcc075e03e3e902.js +0 -1742
  656. package/assets/esri/core/workers/chunks/8e511079918e2fd9261f.js +0 -1
  657. package/assets/esri/core/workers/chunks/8e7a33cc1f83063043f2.js +0 -1
  658. package/assets/esri/core/workers/chunks/8fcfd515ee1b18c902e5.js +0 -1
  659. package/assets/esri/core/workers/chunks/9001e9a1e81bce175ddd.js +0 -1
  660. package/assets/esri/core/workers/chunks/9432feca48ca3e5849bd.js +0 -1
  661. package/assets/esri/core/workers/chunks/956a40f40bde416efe93.js +0 -1
  662. package/assets/esri/core/workers/chunks/95b82cbbe355266c65d7.js +0 -1
  663. package/assets/esri/core/workers/chunks/9673a9efec86040b8c13.js +0 -1
  664. package/assets/esri/core/workers/chunks/97dbbedea9fe03bd1306.js +0 -1
  665. package/assets/esri/core/workers/chunks/985b3f18cee87c3fe022.js +0 -1
  666. package/assets/esri/core/workers/chunks/9a7fc93cc693fd12b5d8.js +0 -1
  667. package/assets/esri/core/workers/chunks/9c0fd8baa00ee9733ba4.js +0 -1
  668. package/assets/esri/core/workers/chunks/a010d2e4e34eb7bc1fec.js +0 -1
  669. package/assets/esri/core/workers/chunks/a20526996d01386ec3b7.js +0 -1
  670. package/assets/esri/core/workers/chunks/a23272a7a47a95f6ddea.js +0 -1
  671. package/assets/esri/core/workers/chunks/a7edf7541569fef77cb3.js +0 -1
  672. package/assets/esri/core/workers/chunks/aa5b42e44d2959fdacd3.js +0 -1
  673. package/assets/esri/core/workers/chunks/ae2181805d8ba130babc.js +0 -1
  674. package/assets/esri/core/workers/chunks/b05a41a60e30935644be.js +0 -1
  675. package/assets/esri/core/workers/chunks/b0cfec11c758eed8095f.js +0 -1
  676. package/assets/esri/core/workers/chunks/bff767ec5bb4c0d6b324.js +0 -1
  677. package/assets/esri/core/workers/chunks/c906f984b2b6e7578c06.js +0 -1
  678. package/assets/esri/core/workers/chunks/ca7fb75e2c62e7d37122.js +0 -1
  679. package/assets/esri/core/workers/chunks/cbdebdfa5f2cded29d0d.js +0 -1
  680. package/assets/esri/core/workers/chunks/cbe6c0f32608cb504695.js +0 -1
  681. package/assets/esri/core/workers/chunks/cfae60b9d2f2939e9c16.js +0 -1
  682. package/assets/esri/core/workers/chunks/d270cc9807161033686e.js +0 -1
  683. package/assets/esri/core/workers/chunks/d56780290e0218d3e9de.js +0 -1
  684. package/assets/esri/core/workers/chunks/d6d5a9e73ee43d6066d3.js +0 -1
  685. package/assets/esri/core/workers/chunks/d89fe41c71c9621c41ae.js +0 -1
  686. package/assets/esri/core/workers/chunks/da18d96b35af20e73b3b.js +0 -1
  687. package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +0 -1
  688. package/assets/esri/core/workers/chunks/df0481bcc1613ee4b7af.js +0 -1
  689. package/assets/esri/core/workers/chunks/e22d45aeef293a5ffb78.js +0 -1
  690. package/assets/esri/core/workers/chunks/e5943f3a4bbc12c06c4d.js +0 -1
  691. package/assets/esri/core/workers/chunks/e7c60bd85abbd36cdc64.js +0 -1
  692. package/assets/esri/core/workers/chunks/ec9a2425b4a498054a19.js +0 -1
  693. package/assets/esri/core/workers/chunks/edf3be87a997f4f05b96.js +0 -1
  694. package/assets/esri/core/workers/chunks/f05de08e194a3f9b96f2.js +0 -1
  695. package/assets/esri/core/workers/chunks/f0a68d2900d24f56afa0.js +0 -1
  696. package/assets/esri/core/workers/chunks/f0aaa646b17ffdbdcefa.js +0 -1
  697. package/assets/esri/core/workers/chunks/f0c0c02730fe0d948fc1.js +0 -1
  698. package/assets/esri/core/workers/chunks/fd0254c6fc6c03ec11ba.js +0 -1
  699. package/assets/esri/core/workers/chunks/ffb3728e6ac428f62af1.js +0 -1
  700. package/views/3d/environment/EnvironmentManager.js +0 -2
  701. /package/{basemaps → basemapGallery}/support/basemapCompatibilityUtils.js +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{formatNumber as t,substitute as n}from"../intl.js";import{deprecateWidget as r}from"../core/deprecate.js";import{on as i}from"../core/events.js";import a from"../core/Logger.js";import{destroyMaybe as o}from"../core/maybe.js";import{watch as s,initial as c,when as l}from"../core/reactiveUtils.js";import{property as u,cast as d,subclass as f}from"../core/accessorSupport/decorators.js";import p from"./Slider.js";import m from"./Widget.js";import{css as h}from"./ScaleRangeSlider/css.js";import{getScalePreviewSource as g,getScalePreviewSpriteBackgroundPosition as _}from"./ScaleRangeSlider/scalePreviewUtils.js";import v from"./ScaleRangeSlider/ScaleRanges.js";import y from"./ScaleRangeSlider/ScaleRangeSliderViewModel.js";import{loadCalciteComponents as b}from"./support/componentsUtils.js";import{globalCss as x}from"./support/globalCss.js";import{messageBundle as S,tsx as C}from"./support/widget.js";import{storeNode as w,setFocus as T}from"./support/widgetUtils.js";const E={preview:!0,scaleMenus:{maxScaleMenu:!0,minScaleMenu:!0}},D={maximumFractionDigits:0};let O=class extends m{constructor(e,t){super(e,t),this._activeMenu=null,this._activeThumb=null,this._customInput=null,this._maxThumbNode=null,this._minThumbNode=null,this._lastPreviewReferenceElement=null,this._previewAutoCloseTimeoutId=void 0,this._previewPopover=null,this._slider=new p({suppressDeprecationWarning:!0,thumbCreatedFunction:(e,t,n)=>{e===0?this._minThumbNode=n:e===1&&(this._maxThumbNode=n),this.addHandles([i(n,`mouseenter`,()=>{this._activeThumb=e,this._lastPreviewReferenceElement=n,this.scheduleRender()}),i(n,`mouseleave`,()=>{this._previewAutoCloseTimeoutId||(this._activeThumb=null,this.scheduleRender())})])}}),this.disabled=!1,this.messages=null,this.region=`US`,this.showWorldValue=!1,this.viewModel=new y,this.visibleElements=E,this._repositionPreviewPopover=()=>{let e=this._previewPopover;e&&e.open&&this._activeThumb!=null&&this._getReferenceNode(this._activeThumb)&&requestAnimationFrame(()=>e.reposition())},this._afterInputNumberCreate=e=>{`value`in e&&e.value!=null&&`setNumberValue`in e&&e.setNumberValue({committing:!1,value:e.value,origin:`direct`}),this._customInput=e},this._handleCustomScaleInputChange=(e,t)=>{let{viewModel:{scaleRanges:n}}=this,r=Number.parseFloat(t.value);Number.isNaN(r)?t.value=e:this._setScale(n.clampScale(r))},this.announceDeprecation=()=>{r(a.getLogger(this),`Scale Range Slider`,`arcgis-slider-scale-range`,{version:`5.0`})}}loadDependencies(){return b({button:()=>import(`@esri/calcite-components/dist/components/calcite-button`),dropdown:()=>import(`@esri/calcite-components/dist/components/calcite-dropdown`),"dropdown-group":()=>import(`@esri/calcite-components/dist/components/calcite-dropdown-group`),"dropdown-item":()=>import(`@esri/calcite-components/dist/components/calcite-dropdown-item`),icon:()=>import(`@esri/calcite-components/dist/components/calcite-icon`),"input-number":()=>import(`@esri/calcite-components/dist/components/calcite-input-number`),label:()=>import(`@esri/calcite-components/dist/components/calcite-label`),popover:()=>import(`@esri/calcite-components/dist/components/calcite-popover`)})}initialize(){this.addHandles([s(()=>this.viewModel,e=>this._slider.viewModel=e?.sliderViewModel??null,c),s(()=>this._interactive,e=>{this._slider.disabled=!e,e||this._setActiveMenu(null)},c),this._slider.on(`thumb-drag`,({index:e})=>{this._activeThumb=e,this._lastPreviewReferenceElement=this._getReferenceNode(e),clearTimeout(this._previewAutoCloseTimeoutId),this._previewAutoCloseTimeoutId=setTimeout(()=>{this._previewAutoCloseTimeoutId=void 0,this._activeThumb=null},250)}),l(()=>this.view?.stationary===!0,()=>this.scheduleRender())])}destroy(){this._slider=o(this._slider)}get _maxScaleMenuEnabled(){let{scaleMenus:e}=this.visibleElements;return e===!0||typeof e!=`boolean`&&e?.maxScaleMenu===!0}get _minScaleMenuEnabled(){let{scaleMenus:e}=this.visibleElements;return e===!0||typeof e!=`boolean`&&e?.minScaleMenu===!0}get _interactive(){return this.viewModel?.state!==`disabled`&&!this.disabled}get effectiveMaxScale(){return this.viewModel.effectiveMaxScale}get effectiveMinScale(){return this.viewModel.effectiveMinScale}get effectiveMaxScaleLimit(){return this.viewModel.effectiveMaxScaleLimit}get effectiveMinScaleLimit(){return this.viewModel.effectiveMinScaleLimit}get icon(){return`actual-size`}set icon(e){this._overrideIfSome(`icon`,e)}get label(){return this.messages?.widgetLabel??``}set label(e){this._overrideIfSome(`label`,e)}get layer(){return this.viewModel.layer}set layer(e){this.viewModel.layer=e}get maxScale(){return this.viewModel.maxScale}set maxScale(e){this.viewModel.maxScale=e}get maxScaleLimit(){return this.viewModel.maxScaleLimit}set maxScaleLimit(e){this.viewModel.maxScaleLimit=e}get mode(){return this.viewModel.mode}set mode(e){this.viewModel.mode=e}get minScale(){return this.viewModel.minScale}set minScale(e){this.viewModel.minScale=e}get minScaleLimit(){return this.viewModel.minScaleLimit}set minScaleLimit(e){this.viewModel.minScaleLimit=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}castVisibleElements(e){return{...E,...e,scaleMenus:typeof e?.scaleMenus==`boolean`?e.scaleMenus:{...E.scaleMenus,...e?.scaleMenus}}}formatScale(e){return`1:${t(e,D)}`}render(){let{_interactive:e,_slider:t,label:n,view:r,viewModel:{state:i}}=this,a=this._getLabel(`min`),o=this._getLabel(`max`),{segmentElements:s}=t,c=s.at(this.mode===`min-scale-only`?-1:-2);return c&&c.classList.add(h.segmentElementActive),C(`div`,{"aria-label":n,class:this.classes(h.base,x.widget,e?null:x.disabled)},C(`div`,{class:h.scaleIndicatorWrapper,dir:`ltr`},i===`ready`&&r?this._renderCurrentScaleIndicator():null,t.render(),this._renderPreviewPopover()),C(`div`,{class:h.scaleMenuContainer},this._minScaleMenuEnabled&&a?this._renderScaleMenuToggle(`min`,a):null,C(`div`,{class:h.scaleMenuSeparator}),this._maxScaleMenuEnabled&&o?this._renderScaleMenuToggle(`max`,o):null))}_renderPreviewPopover(){let{_activeThumb:e}=this,t=this._getReferenceNode(e)??this._lastPreviewReferenceElement,n=e!=null&&this.visibleElements.preview&&t!=null;return n?C(`calcite-popover`,{afterCreate:w,afterUpdate:this._repositionPreviewPopover,bind:this,"data-node-ref":`_previewPopover`,label:this.messages.preview,offsetDistance:16,open:n,overlayPositioning:`fixed`,placement:`top`,referenceElement:t??void 0,topLayerDisabled:this.topLayerDisabled,triggerDisabled:!0},this._renderScalePreview()):null}_getReferenceNode(e){return e===0?this._minThumbNode:e===1?this._maxThumbNode:null}_renderScalePreview(){let{_activeThumb:e,_slider:t,region:n,viewModel:{scaleRanges:r}}=this,i=e===0||this.mode!==`range`?t.values[0]:t.values[1],a=Object.keys(v.RecommendedScales).indexOf(r.findScaleRangeByIndex(i).id),o={backgroundImage:g(n),backgroundPosition:_(a)};return C(`div`,{class:h.scalePreview},C(`div`,{class:h.scalePreviewThumbnail,styles:o}))}_getLabel(e){let{_slider:t,messages:n,mode:r,viewModel:{scaleRanges:i}}=this,[a,o]=t.values,s=e===`min`||r!==`range`?a:o,c=n.scaleRangeLabels[i.findScaleRangeByIndex(s).id];switch(r){case`range`:return c;case`max-scale-only`:return e===`min`?null:c;case`min-scale-only`:return e===`min`?c:null}}_renderScaleMenuToggle(e,t){let{_activeMenu:n,_interactive:r}=this,i=n===e;return[C(`calcite-dropdown`,{closeOnSelectDisabled:!0,"data-type":e,open:i,overlayPositioning:`fixed`,placement:e===`max`?`bottom-end`:`bottom-start`,scale:`s`,topLayerDisabled:this.topLayerDisabled,onCalciteDropdownClose:({currentTarget:t})=>{this._activeMenu===e&&this._setActiveMenu(null),T(t.querySelector(`calcite-button`))},onCalciteDropdownOpen:()=>this._setActiveMenu(e)},C(`calcite-button`,{appearance:i?`outline`:`transparent`,"aria-pressed":i.toString(),class:h.scaleMenuToggle,disabled:!r,iconEnd:`chevron-down`,scale:`s`,slot:`trigger`},t),i&&e===`max`?this._renderMaxScaleMenu():null,i&&e===`min`?this._renderMinScaleMenu():null)]}_renderMinScaleMenu(){let{effectiveMaxScale:e,effectiveMinScaleLimit:t,view:n,viewModel:{scaleRanges:r}}=this,i=n?n.scale:void 0;return this._renderScaleMenu({type:`min`,min:t,max:r.findScaleRange(e).minScale,viewScale:i})}_renderMaxScaleMenu(){let{effectiveMinScale:e,effectiveMaxScaleLimit:t,view:n,viewModel:{scaleRanges:r}}=this,i=n?n.scale:void 0;return this._renderScaleMenu({type:`max`,min:r.findScaleRange(e).maxScale,max:t,viewScale:i})}_renderScaleMenu({viewScale:e,min:t,max:n,type:r}){let{effectiveMaxScale:i,effectiveMinScale:a,messages:o,showWorldValue:s}=this,c=r===`max`?i:a,l=v.fromScaleRange({minScale:t,maxScale:n}),u=this.messages.featuredScaleLabels,d=v.RecommendedScales,f=Object.keys(d).filter(e=>l.contains(d[e])).map(e=>this._renderScaleMenuItem({scaleLabel:u[e],scaleValue:d[e],isSelected:c===d[e],valueVisible:e!==`world`||s}));return C(`calcite-dropdown-group`,{key:`${this.id}__scale-menu--${r}`},this._renderCustomScaleValue({currentScale:c}),e==null?null:this._renderScaleMenuItem({scaleValue:e,scaleLabel:o.featuredScaleLabels.current,isSelected:c===e,valueVisible:!0}),f)}_renderCustomScaleValue({currentScale:e}){let{messages:t}=this,n=Math.round(e).toString();return C(`calcite-dropdown-item`,{afterCreate:e=>void T(e),key:`custom-scale`,label:t.featuredScaleLabels.custom,onCalciteDropdownItemSelect:()=>void T(this._customInput)},C(`calcite-label`,{scale:`s`},C(`span`,null,t.featuredScaleLabels.custom),C(`calcite-input-number`,{afterCreate:this._afterInputNumberCreate,groupSeparator:!0,inputMode:`numeric`,max:v.RecommendedScales.world,min:0,numberButtonType:`none`,placeholder:t.customScaleInputTooltip,prefixText:`1:`,scale:`s`,step:1,value:n,onCalciteInputNumberChange:({currentTarget:e})=>this._handleCustomScaleInputChange(n,e)})))}_renderScaleMenuItem(e){let{scaleValue:t,scaleLabel:n,valueVisible:r,isSelected:i}=e;return C(`calcite-dropdown-item`,{key:n,label:n,selected:i,onCalciteDropdownItemSelect:this._setScale.bind(this,t)},n,r?C(`div`,{class:h.scaleMenuSubLabel},this.formatScale(t)):void 0)}_renderCurrentScaleIndicator(){let{_slider:e,messages:t,view:r,viewModel:{scaleRanges:i}}=this,a=i.clampScale(r.scale),o=this.viewModel.mapScaleToSlider(a),s=o/e.max,c=t.scaleRangeLabels[i.findScaleRangeByIndex(o).id],l=n(t.currentScaleTooltip,{scaleLabel:c});return C(`div`,{class:h.scaleIndicatorContainer,key:`scale-indicator`},C(`div`,{"aria-label":l,class:h.scaleIndicator,styles:{left:`${s*100}%`},title:l},this.renderCurrentScaleIndicatorIcon()))}renderCurrentScaleIndicatorIcon(){return C(`calcite-icon`,{class:h.scaleIndicatorIcon,icon:`caret-up`,scale:`s`})}_setScale(e){this._activeMenu===`max`?this.maxScale=Math.min(e,this.effectiveMinScale-1):this.minScale=Math.max(e,this.effectiveMaxScale+1),this._setActiveMenu(null)}_setActiveMenu(e){this._activeMenu=e}};e([u()],O.prototype,`_activeMenu`,void 0),e([u()],O.prototype,`_activeThumb`,void 0),e([u()],O.prototype,`_customInput`,void 0),e([u()],O.prototype,`_maxScaleMenuEnabled`,null),e([u()],O.prototype,`_minScaleMenuEnabled`,null),e([u()],O.prototype,`_slider`,void 0),e([u({readOnly:!0})],O.prototype,`_interactive`,null),e([u()],O.prototype,`disabled`,void 0),e([u()],O.prototype,`effectiveMaxScale`,null),e([u()],O.prototype,`effectiveMinScale`,null),e([u()],O.prototype,`effectiveMaxScaleLimit`,null),e([u()],O.prototype,`effectiveMinScaleLimit`,null),e([u()],O.prototype,`icon`,null),e([u()],O.prototype,`label`,null),e([u()],O.prototype,`layer`,null),e([u()],O.prototype,`maxScale`,null),e([u()],O.prototype,`maxScaleLimit`,null),e([u(),S(`esri/widgets/ScaleRangeSlider/t9n/ScaleRangeSlider`)],O.prototype,`messages`,void 0),e([u()],O.prototype,`mode`,null),e([u()],O.prototype,`minScale`,null),e([u()],O.prototype,`minScaleLimit`,null),e([u()],O.prototype,`region`,void 0),e([u()],O.prototype,`showWorldValue`,void 0),e([u()],O.prototype,`view`,null),e([u({type:y})],O.prototype,`viewModel`,void 0),e([u()],O.prototype,`visibleElements`,void 0),e([d(`visibleElements`)],O.prototype,`castVisibleElements`,null),O=e([f(`esri.widgets.ScaleRangeSlider`)],O);const k=O;export{k as default};
2
+ import{__decorate as e}from"tslib";import{formatNumber as t,substitute as n}from"../intl.js";import{deprecateWidget as r}from"../core/deprecate.js";import{on as i}from"../core/events.js";import a from"../core/Logger.js";import{destroyMaybe as o}from"../core/maybe.js";import{watch as s,initial as c,when as l}from"../core/reactiveUtils.js";import{property as u,cast as d,subclass as f}from"../core/accessorSupport/decorators.js";import p from"./Slider.js";import m from"./Widget.js";import{css as h}from"./ScaleRangeSlider/css.js";import{getScalePreviewSource as g,getScalePreviewSpriteBackgroundPosition as _}from"./ScaleRangeSlider/scalePreviewUtils.js";import v from"./ScaleRangeSlider/ScaleRanges.js";import y from"./ScaleRangeSlider/ScaleRangeSliderViewModel.js";import{createDropdownReference as b,loadCalciteComponents as x}from"./support/componentsUtils.js";import{globalCss as S}from"./support/globalCss.js";import{messageBundle as C,tsx as w}from"./support/widget.js";import{storeNode as T,setFocus as E}from"./support/widgetUtils.js";const D={preview:!0,scaleMenus:{maxScaleMenu:!0,minScaleMenu:!0}},O={maximumFractionDigits:0};let k=class extends m{constructor(e,t){super(e,t),this._activeMenu=null,this._activeThumb=null,this._customInput=null,this._maxThumbNode=null,this._minThumbNode=null,this._lastPreviewReferenceElement=null,this._previewAutoCloseTimeoutId=void 0,this._previewPopover=null,this._scaleMenuReferences={min:b(),max:b()},this._slider=new p({suppressDeprecationWarning:!0,thumbCreatedFunction:(e,t,n)=>{e===0?this._minThumbNode=n:e===1&&(this._maxThumbNode=n),this.addHandles([i(n,`mouseenter`,()=>{this._activeThumb=e,this._lastPreviewReferenceElement=n,this.scheduleRender()}),i(n,`mouseleave`,()=>{this._previewAutoCloseTimeoutId||(this._activeThumb=null,this.scheduleRender())})])}}),this.disabled=!1,this.messages=null,this.region=`US`,this.showWorldValue=!1,this.viewModel=new y,this.visibleElements=D,this._repositionPreviewPopover=()=>{let e=this._previewPopover;e&&e.open&&this._activeThumb!=null&&this._getReferenceNode(this._activeThumb)&&requestAnimationFrame(()=>e.reposition())},this._afterInputNumberCreate=e=>{`value`in e&&e.value!=null&&`setNumberValue`in e&&e.setNumberValue({committing:!1,value:e.value,origin:`direct`}),this._customInput=e},this._handleCustomScaleInputChange=(e,t)=>{let{viewModel:{scaleRanges:n}}=this,r=Number.parseFloat(t.value);Number.isNaN(r)?t.value=e:this._setScale(n.clampScale(r))},this.announceDeprecation=()=>{r(a.getLogger(this),`Scale Range Slider`,`arcgis-slider-scale-range`,{version:`5.0`})}}loadDependencies(){return x({button:()=>import(`@esri/calcite-components/dist/components/calcite-button`),dropdown:()=>import(`@esri/calcite-components/dist/components/calcite-dropdown`),"dropdown-group":()=>import(`@esri/calcite-components/dist/components/calcite-dropdown-group`),"dropdown-item":()=>import(`@esri/calcite-components/dist/components/calcite-dropdown-item`),icon:()=>import(`@esri/calcite-components/dist/components/calcite-icon`),"input-number":()=>import(`@esri/calcite-components/dist/components/calcite-input-number`),label:()=>import(`@esri/calcite-components/dist/components/calcite-label`),popover:()=>import(`@esri/calcite-components/dist/components/calcite-popover`)})}initialize(){this.addHandles([s(()=>this.viewModel,e=>this._slider.viewModel=e?.sliderViewModel??null,c),s(()=>this._interactive,e=>{this._slider.disabled=!e,e||this._setActiveMenu(null)},c),this._slider.on(`thumb-drag`,({index:e})=>{this._activeThumb=e,this._lastPreviewReferenceElement=this._getReferenceNode(e),clearTimeout(this._previewAutoCloseTimeoutId),this._previewAutoCloseTimeoutId=setTimeout(()=>{this._previewAutoCloseTimeoutId=void 0,this._activeThumb=null},250)}),l(()=>this.view?.stationary===!0,()=>this.scheduleRender())])}destroy(){this._scaleMenuReferences.min.destroy(),this._scaleMenuReferences.max.destroy(),this._slider=o(this._slider)}get _maxScaleMenuEnabled(){let{scaleMenus:e}=this.visibleElements;return e===!0||typeof e!=`boolean`&&e?.maxScaleMenu===!0}get _minScaleMenuEnabled(){let{scaleMenus:e}=this.visibleElements;return e===!0||typeof e!=`boolean`&&e?.minScaleMenu===!0}get _interactive(){return this.viewModel?.state!==`disabled`&&!this.disabled}get effectiveMaxScale(){return this.viewModel.effectiveMaxScale}get effectiveMinScale(){return this.viewModel.effectiveMinScale}get effectiveMaxScaleLimit(){return this.viewModel.effectiveMaxScaleLimit}get effectiveMinScaleLimit(){return this.viewModel.effectiveMinScaleLimit}get icon(){return`actual-size`}set icon(e){this._overrideIfSome(`icon`,e)}get label(){return this.messages?.widgetLabel??``}set label(e){this._overrideIfSome(`label`,e)}get layer(){return this.viewModel.layer}set layer(e){this.viewModel.layer=e}get maxScale(){return this.viewModel.maxScale}set maxScale(e){this.viewModel.maxScale=e}get maxScaleLimit(){return this.viewModel.maxScaleLimit}set maxScaleLimit(e){this.viewModel.maxScaleLimit=e}get mode(){return this.viewModel.mode}set mode(e){this.viewModel.mode=e}get minScale(){return this.viewModel.minScale}set minScale(e){this.viewModel.minScale=e}get minScaleLimit(){return this.viewModel.minScaleLimit}set minScaleLimit(e){this.viewModel.minScaleLimit=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}castVisibleElements(e){return{...D,...e,scaleMenus:typeof e?.scaleMenus==`boolean`?e.scaleMenus:{...D.scaleMenus,...e?.scaleMenus}}}formatScale(e){return`1:${t(e,O)}`}render(){let{_interactive:e,_slider:t,label:n,view:r,viewModel:{state:i}}=this,a=this._getLabel(`min`),o=this._getLabel(`max`),{segmentElements:s}=t,c=s.at(this.mode===`min-scale-only`?-1:-2);return c&&c.classList.add(h.segmentElementActive),w(`div`,{"aria-label":n,class:this.classes(h.base,S.widget,e?null:S.disabled)},w(`div`,{class:h.scaleIndicatorWrapper,dir:`ltr`},i===`ready`&&r?this._renderCurrentScaleIndicator():null,t.render(),this._renderPreviewPopover()),w(`div`,{class:h.scaleMenuContainer},this._minScaleMenuEnabled&&a?this._renderScaleMenuToggle(`min`,a):null,w(`div`,{class:h.scaleMenuSeparator}),this._maxScaleMenuEnabled&&o?this._renderScaleMenuToggle(`max`,o):null))}_renderPreviewPopover(){let{_activeThumb:e}=this,t=this._getReferenceNode(e)??this._lastPreviewReferenceElement,n=e!=null&&this.visibleElements.preview&&t!=null;return n?w(`calcite-popover`,{afterCreate:T,afterUpdate:this._repositionPreviewPopover,bind:this,"data-node-ref":`_previewPopover`,label:this.messages.preview,offsetDistance:16,open:n,overlayPositioning:`fixed`,placement:`top`,referenceElement:t??void 0,topLayerDisabled:this.topLayerDisabled,triggerDisabled:!0},this._renderScalePreview()):null}_getReferenceNode(e){return e===0?this._minThumbNode:e===1?this._maxThumbNode:null}_renderScalePreview(){let{_activeThumb:e,_slider:t,region:n,viewModel:{scaleRanges:r}}=this,i=e===0||this.mode!==`range`?t.values[0]:t.values[1],a=Object.keys(v.RecommendedScales).indexOf(r.findScaleRangeByIndex(i).id),o={backgroundImage:g(n),backgroundPosition:_(a)};return w(`div`,{class:h.scalePreview},w(`div`,{class:h.scalePreviewThumbnail,styles:o}))}_getLabel(e){let{_slider:t,messages:n,mode:r,viewModel:{scaleRanges:i}}=this,[a,o]=t.values,s=e===`min`||r!==`range`?a:o,c=n.scaleRangeLabels[i.findScaleRangeByIndex(s).id];switch(r){case`range`:return c;case`max-scale-only`:return e===`min`?null:c;case`min-scale-only`:return e===`min`?c:null}}_renderScaleMenuToggle(e,t){let{_activeMenu:n,_interactive:r}=this,i=n===e,a=this._scaleMenuReferences[e],{storeTrigger:o,destroy:s,referenceTrigger:c}=a;return[w(`calcite-button`,{afterCreate:o,afterRemoved:s,afterUpdate:o,appearance:i?`outline`:`transparent`,"aria-pressed":i.toString(),class:h.scaleMenuToggle,disabled:!r,iconEnd:`chevron-down`,key:`scale-menu-${e}-trigger`,scale:`s`},t),w(`calcite-dropdown`,{afterCreate:c,afterUpdate:c,closeOnSelectDisabled:!0,"data-type":e,key:`scale-menu-${e}-dropdown`,open:i,overlayPositioning:`fixed`,placement:e===`max`?`bottom-end`:`bottom-start`,scale:`s`,topLayerDisabled:this.topLayerDisabled,onCalciteDropdownClose:()=>{this._activeMenu===e&&this._setActiveMenu(null),E(a.trigger)},onCalciteDropdownOpen:()=>this._setActiveMenu(e)},i&&e===`max`?this._renderMaxScaleMenu():null,i&&e===`min`?this._renderMinScaleMenu():null)]}_renderMinScaleMenu(){let{effectiveMaxScale:e,effectiveMinScaleLimit:t,view:n,viewModel:{scaleRanges:r}}=this,i=n?n.scale:void 0;return this._renderScaleMenu({type:`min`,min:t,max:r.findScaleRange(e).minScale,viewScale:i})}_renderMaxScaleMenu(){let{effectiveMinScale:e,effectiveMaxScaleLimit:t,view:n,viewModel:{scaleRanges:r}}=this,i=n?n.scale:void 0;return this._renderScaleMenu({type:`max`,min:r.findScaleRange(e).maxScale,max:t,viewScale:i})}_renderScaleMenu({viewScale:e,min:t,max:n,type:r}){let{effectiveMaxScale:i,effectiveMinScale:a,messages:o,showWorldValue:s}=this,c=r===`max`?i:a,l=v.fromScaleRange({minScale:t,maxScale:n}),u=this.messages.featuredScaleLabels,d=v.RecommendedScales,f=Object.keys(d).filter(e=>l.contains(d[e])).map(e=>this._renderScaleMenuItem({scaleLabel:u[e],scaleValue:d[e],isSelected:c===d[e],valueVisible:e!==`world`||s}));return w(`calcite-dropdown-group`,{key:`${this.id}__scale-menu--${r}`},this._renderCustomScaleValue({currentScale:c}),e==null?null:this._renderScaleMenuItem({scaleValue:e,scaleLabel:o.featuredScaleLabels.current,isSelected:c===e,valueVisible:!0}),f)}_renderCustomScaleValue({currentScale:e}){let{messages:t}=this,n=Math.round(e).toString();return w(`calcite-dropdown-item`,{afterCreate:e=>void E(e),key:`custom-scale`,label:t.featuredScaleLabels.custom,onCalciteDropdownItemSelect:()=>void E(this._customInput)},w(`calcite-label`,{scale:`s`},w(`span`,null,t.featuredScaleLabels.custom),w(`calcite-input-number`,{afterCreate:this._afterInputNumberCreate,groupSeparator:!0,inputMode:`numeric`,max:v.RecommendedScales.world,min:0,numberButtonType:`none`,placeholder:t.customScaleInputTooltip,prefixText:`1:`,scale:`s`,step:1,value:n,onCalciteInputNumberChange:({currentTarget:e})=>this._handleCustomScaleInputChange(n,e)})))}_renderScaleMenuItem(e){let{scaleValue:t,scaleLabel:n,valueVisible:r,isSelected:i}=e;return w(`calcite-dropdown-item`,{key:n,label:n,selected:i,onCalciteDropdownItemSelect:this._setScale.bind(this,t)},n,r?w(`div`,{class:h.scaleMenuSubLabel},this.formatScale(t)):void 0)}_renderCurrentScaleIndicator(){let{_slider:e,messages:t,view:r,viewModel:{scaleRanges:i}}=this,a=i.clampScale(r.scale),o=this.viewModel.mapScaleToSlider(a),s=o/e.max,c=t.scaleRangeLabels[i.findScaleRangeByIndex(o).id],l=n(t.currentScaleTooltip,{scaleLabel:c});return w(`div`,{class:h.scaleIndicatorContainer,key:`scale-indicator`},w(`div`,{"aria-label":l,class:h.scaleIndicator,styles:{left:`${s*100}%`},title:l},this.renderCurrentScaleIndicatorIcon()))}renderCurrentScaleIndicatorIcon(){return w(`calcite-icon`,{class:h.scaleIndicatorIcon,icon:`caret-up`,scale:`s`})}_setScale(e){this._activeMenu===`max`?this.maxScale=Math.min(e,this.effectiveMinScale-1):this.minScale=Math.max(e,this.effectiveMaxScale+1),this._setActiveMenu(null)}_setActiveMenu(e){this._activeMenu=e}};e([u()],k.prototype,`_activeMenu`,void 0),e([u()],k.prototype,`_activeThumb`,void 0),e([u()],k.prototype,`_customInput`,void 0),e([u()],k.prototype,`_maxScaleMenuEnabled`,null),e([u()],k.prototype,`_minScaleMenuEnabled`,null),e([u()],k.prototype,`_slider`,void 0),e([u({readOnly:!0})],k.prototype,`_interactive`,null),e([u()],k.prototype,`disabled`,void 0),e([u()],k.prototype,`effectiveMaxScale`,null),e([u()],k.prototype,`effectiveMinScale`,null),e([u()],k.prototype,`effectiveMaxScaleLimit`,null),e([u()],k.prototype,`effectiveMinScaleLimit`,null),e([u()],k.prototype,`icon`,null),e([u()],k.prototype,`label`,null),e([u()],k.prototype,`layer`,null),e([u()],k.prototype,`maxScale`,null),e([u()],k.prototype,`maxScaleLimit`,null),e([u(),C(`esri/widgets/ScaleRangeSlider/t9n/ScaleRangeSlider`)],k.prototype,`messages`,void 0),e([u()],k.prototype,`mode`,null),e([u()],k.prototype,`minScale`,null),e([u()],k.prototype,`minScaleLimit`,null),e([u()],k.prototype,`region`,void 0),e([u()],k.prototype,`showWorldValue`,void 0),e([u()],k.prototype,`view`,null),e([u({type:y})],k.prototype,`viewModel`,void 0),e([u()],k.prototype,`visibleElements`,void 0),e([d(`visibleElements`)],k.prototype,`castVisibleElements`,null),k=e([f(`esri.widgets.ScaleRangeSlider`)],k);const A=k;export{A as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{substitute as t}from"../../intl.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import{popupFromView as i}from"../../views/popupAdapter.js";import a from"../Widget.js";import{css as o}from"./searchResultRendererCSS.js";import s from"./SearchViewModel.js";import{loadCalciteComponents as c}from"../support/componentsUtils.js";import{globalCss as l}from"../support/globalCss.js";import{messageBundle as u,tsx as d}from"../support/widget.js";let f=class extends a{constructor(e,t){super(e,t),this.messages=null,this.showMoreResultsOpen=!1,this.viewModel=null}loadDependencies(){return c({block:()=>import(`@esri/calcite-components/dist/components/calcite-block`),list:()=>import(`@esri/calcite-components/dist/components/calcite-list`),"list-item":()=>import(`@esri/calcite-components/dist/components/calcite-list-item`),"list-item-group":()=>import(`@esri/calcite-components/dist/components/calcite-list-item-group`)})}destroy(){this.viewModel=null}render(){return d(`div`,{class:this.classes(o.base,l.widget)},this.viewModel?.selectedResult?.name??``,this._renderMoreResults())}_renderMoreResults(){if(!this.viewModel)return null;let{resultCount:e,results:n}=this.viewModel;return!e||e<2||!n?null:d(`calcite-block`,{class:o.moreResults,collapsible:!0,expanded:this.showMoreResultsOpen,heading:t(this.messages.showMoreResults,{count:e-1}),onCalciteBlockClose:()=>this._toggleShowMoreResults(!1),onCalciteBlockOpen:()=>this._toggleShowMoreResults(!0)},n.map(e=>this._renderMoreResultsList(e,n?.length>1)))}_renderListItem(e){return d(`calcite-list-item`,{key:`result-${e.sourceIndex}-${e.key}`,label:e.name,onCalciteListItemSelect:()=>this._selectResult(e)})}_renderMoreResultsList(e,t){let{results:n}=e;if(!(n?.length??0)||!n)return null;let r=this.viewModel?.selectedResult,i=this._getSourceName(e.source,e.sourceIndex),a=n.filter(e=>e!==r).map(e=>this._renderListItem(e));return d(`calcite-list`,{label:i},t?d(`calcite-list-item-group`,{heading:i,key:`group-${e.sourceIndex}`},a):a)}_selectResult(e){this.showMoreResultsOpen=!1,this.viewModel?.select(e)}_toggleShowMoreResults(e){this.showMoreResultsOpen=e;let t=i(this.viewModel?.view);t&&`reposition`in t&&typeof t.reposition==`function`&&t.reposition()}_getSourceName(e,t){return t===s.ALL_INDEX?this.messages.all:e.name}};e([n(),u(`esri/widgets/Search/t9n/Search`)],f.prototype,`messages`,void 0),e([n()],f.prototype,`showMoreResultsOpen`,void 0),e([n({type:s})],f.prototype,`viewModel`,void 0),f=e([r(`esri.widgets.Search.SearchResultRenderer`)],f);const p=f;export{p as default};
2
+ import{__decorate as e}from"tslib";import{substitute as t}from"../../intl.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import{popupFromView as i}from"../../views/popupAdapter.js";import a from"../Widget.js";import{css as o}from"./searchResultRendererCSS.js";import s from"./SearchViewModel.js";import{loadCalciteComponents as c}from"../support/componentsUtils.js";import{globalCss as l}from"../support/globalCss.js";import{messageBundle as u,tsx as d}from"../support/widget.js";let f=class extends a{constructor(e,t){super(e,t),this.messages=null,this.showMoreResultsOpen=!1,this.viewModel=null}loadDependencies(){return c({block:()=>import(`@esri/calcite-components/dist/components/calcite-block`),list:()=>import(`@esri/calcite-components/dist/components/calcite-list`),"list-item":()=>import(`@esri/calcite-components/dist/components/calcite-list-item`),"list-item-group":()=>import(`@esri/calcite-components/dist/components/calcite-list-item-group`)})}destroy(){this.viewModel=null}render(){return d(`div`,{class:this.classes(o.base,l.widget)},this.viewModel?.selectedResult?.name??``,this._renderMoreResults())}_renderMoreResults(){if(!this.viewModel)return null;let{resultCount:e,results:n}=this.viewModel;return!e||e<2||!n?null:d(`calcite-block`,{class:o.moreResults,expandable:!0,expanded:this.showMoreResultsOpen,heading:t(this.messages.showMoreResults,{count:e-1}),onCalciteBlockClose:()=>this._toggleShowMoreResults(!1),onCalciteBlockOpen:()=>this._toggleShowMoreResults(!0)},n.map(e=>this._renderMoreResultsList(e,n?.length>1)))}_renderListItem(e){return d(`calcite-list-item`,{key:`result-${e.sourceIndex}-${e.key}`,label:e.name,onCalciteListItemSelect:()=>this._selectResult(e)})}_renderMoreResultsList(e,t){let{results:n}=e;if(!(n?.length??0)||!n)return null;let r=this.viewModel?.selectedResult,i=this._getSourceName(e.source,e.sourceIndex),a=n.filter(e=>e!==r).map(e=>this._renderListItem(e));return d(`calcite-list`,{label:i},t?d(`calcite-list-item-group`,{heading:i,key:`group-${e.sourceIndex}`},a):a)}_selectResult(e){this.showMoreResultsOpen=!1,this.viewModel?.select(e)}_toggleShowMoreResults(e){this.showMoreResultsOpen=e;let t=i(this.viewModel?.view);t&&`reposition`in t&&typeof t.reposition==`function`&&t.reposition()}_getSourceName(e,t){return t===s.ALL_INDEX?this.messages.all:e.name}};e([n(),u(`esri/widgets/Search/t9n/Search`)],f.prototype,`messages`,void 0),e([n()],f.prototype,`showMoreResultsOpen`,void 0),e([n({type:s})],f.prototype,`viewModel`,void 0),f=e([r(`esri.widgets.Search.SearchResultRenderer`)],f);const p=f;export{p as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{isSome as n,equals as r}from"../../core/arrayUtils.js";import{createTask as i}from"../../core/asyncUtils.js";import{deprecateUnnecessaryViewModel as a}from"../../core/deprecate.js";import"../../core/has.js";import o from"../../core/Logger.js";import{abortMaybe as s,destroyMaybe as c}from"../../core/maybe.js";import{after as l,throwIfAborted as u}from"../../core/promiseUtils.js";import{watch as d,syncAndInitial as f}from"../../core/reactiveUtils.js";import{createScreenPointArray as p,createRenderScreenPointArray as m}from"../../core/screenUtils.js";import{convertTime as h,offsetDateUTC as g}from"../../core/timeUtils.js";import{property as _,subclass as v}from"../../core/accessorSupport/decorators.js";import{create as y}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{g as b}from"../../chunks/boundedPlane.js";import{longitudeToTimezone as x}from"../../views/3d/support/earthUtils.js";import{computeDirectionsOverTime as S}from"../../views/3d/support/sunUtils.js";import C from"./DiscreteOptions.js";import w from"./DurationOptions.js";import{ShadowTooltipViewModel as T}from"./ShadowTooltipViewModel.js";import E from"./ThresholdOptions.js";import{breadthFirstBinaryPartitioning as D}from"../support/traversalUtils.js";const O=[],k=y(),A=[],j=h(1,`hours`,`milliseconds`);let M=class extends t{constructor(e){super(e),this.view=null,this.tooltip=new T({getDuration:e=>this.getDuration(e)}),this.startTimeOfDay=h(10,`hours`,`milliseconds`),this.endTimeOfDay=h(16,`hours`,`milliseconds`),this.visualizationType=`threshold`,this.thresholdOptions=new E({suppressDeprecationWarning:!0}),this.durationOptions=new w({suppressDeprecationWarning:!0}),this.discreteOptions=new C({suppressDeprecationWarning:!0}),this._running=!0,this._stopPreviewingTask=null,this._updatedRecently=!1,this._autoRestoreForcePreviewEnabled=!0,this._utcOffset=null,e?.suppressDeprecationWarning||a(o.getLogger(this),`Shadow Cast`,`arcgis-shadow-cast`,{version:`5.0`}),this.date=new Date}normalizeCtorArgs(e){let{suppressDeprecationWarning:t,...n}=e??{};return n}initialize(){this.addHandles([d(()=>({view:this.view,tooltipEnabled:this._tooltipEnabled}),({view:e,tooltipEnabled:t})=>{this.tooltip.view=e,this.tooltip.enabled=t},f),d(()=>({dependencies:this._previewDependencies,sceneUpdating:this._sceneUpdating}),()=>{s(this._stopPreviewingTask),this._updatedRecently=!0,this._autoRestoreForcePreviewEnabled&&(this._stopPreviewingTask=i(async e=>{await l(500,e),u(e),this._updatedRecently=!1}))},{sync:!0,initial:!0,equals:(e,t)=>F(e.dependencies,t.dependencies)&&(e.sceneUpdating===t.sceneUpdating||!e.sceneUpdating)}),d(()=>({renderer:this.renderer,parameters:this._visualizationParameters}),e=>N(e.renderer,e.parameters),f),d(()=>({renderer:this.renderer,lightDirections:this._lightDirections,lightDirectionsContext:this._lightDirectionsContext}),e=>N(e.renderer,{lightDirections:e.lightDirections,lightDirectionsContext:e.lightDirectionsContext}),f),d(()=>({renderer:this.renderer,parameters:{enabled:this._running}}),e=>N(e.renderer,e.parameters),f),d(()=>({renderer:this.renderer,parameters:{previewing:this._previewing}}),e=>N(e.renderer,e.parameters),{sync:!0,initial:!0,equals:()=>!1})])}destroy(){this.stop(),N(this.renderer,{enabled:!1}),c(this.tooltip),this._stopPreviewingTask=s(this._stopPreviewingTask)}get state(){return this.view!=null&&this.view.ready&&this._referencePosition!=null?`ready`:`disabled`}set date(e){let t=new Date(e);t.setHours(0,0,0,0),this._set(`date`,t)}get utcOffset(){return this._utcOffset??this._utcOffsetAuto}set utcOffset(e){this._utcOffset=e}get testData(){}get _previewing(){let e=this._updatedRecently,t=this._sceneUpdating;return e||t}get _sceneUpdating(){let{view:e}=this;if(e?.allLayerViews==null)return!0;let{stationary:t,navigating:n,interacting:r,graphicsView:i}=e,a=!t||n||r,o=this._shadowLayerViews?.some(e=>e.updating)??!1,s=!i?.suspended&&!!i?.updating;return a||o||s}get _utcOffsetAuto(){let e=this._referencePosition;return e==null?0:x(e[0],!1)}get _dateUTCOffset(){let e=this.date;return e=g(e,-e.getTimezoneOffset(),`minutes`),e=g(e,-this.utcOffset,`hours`),e}get _startDateTimeUTC(){return g(this._dateUTCOffset,this.startTimeOfDay)}get _endDateTimeUTC(){return g(this._dateUTCOffset,this.endTimeOfDay)}get _referencePosition(){return this.view?.environmentManager?.referencePositionGeographic}get _durationInterval(){return this._duration>0?Math.floor(this._duration/254):255}get _interval(){let e=this._durationInterval;switch(this.visualizationType){case`threshold`:case`duration`:return e;case`discrete`:return this.discreteOptions.interval||e}}get _intervalContext(){let{contextEnabled:e,contextOptions:{interval:t}}=this.thresholdOptions;return this.visualizationType===`threshold`&&e?t||this._durationInterval:-1}get _durationSampleCount(){return this._lightDirections.length}get _duration(){return this.endTimeOfDay-this.startTimeOfDay}get _lightDirections(){return this._calculateLightDirections(this._interval)}get _lightDirectionsContext(){return this._calculateLightDirections(this._intervalContext)}_calculateLightDirections(e){let{view:t}=this;if(t==null||e<=0)return O;let n=t.viewingMode===`global`?k:this._referencePosition;if(n==null)return O;let r=S(this._startDateTimeUTC,this._endDateTimeUTC,e,n,t.state.viewingMode,255),i=r.length;A.length=0;let a=D(0,i,A),o=Array(i);for(let e=0;e<i;++e)o[e]=r[a[e]];return o}get _tooltipEnabled(){return this.state===`ready`&&this.visualizationType!==`discrete`&&this._running&&!this._previewing}get _visualizationParameters(){if(!this._running)return null;switch(this.visualizationType){case`threshold`:return this._thresholdVisualizationParameters;case`duration`:return this._durationVisualizationParameters;case`discrete`:return this._discreteVisualizationParameters}}get _thresholdVisualizationParameters(){let{value:e,color:t}=this.thresholdOptions,n=this._duration;return{visualization:2,thresholdColor:t.toUnitRGBA(),threshold:n>0?e/this._duration:0,...this._thresholdDiscreteVisualizationParameters}}get _thresholdDiscreteVisualizationParameters(){let{contextOptions:{color:e},contextEnabled:t}=this.thresholdOptions,n=e.toUnitRGBA(),r=[n[0],n[1],n[2],0];return t?{visualization:3,gradientColorRamp:[[0,r],[1,n]]}:{}}get _durationVisualizationParameters(){let{color:e,mode:t}=this.durationOptions,n=this._duration,r=n>0&&t===`hourly`?j/n:0,i=e.toUnitRGBA(),a=[i[0],i[1],i[2],0];return r===0?{...this._discreteVisualizationParameters,gradientColorRamp:[[0,a],[1,i]]}:{bandedGradientColorRamp:[[0,a],[1,i]],visualization:1,bandSize:r}}get _discreteVisualizationParameters(){let e=this.discreteOptions.color.toUnitRGBA();return{gradientColorRamp:[[0,[e[0],e[1],e[2],0]],[1,e]],visualization:0}}get _shadowLayerViews(){return this.view?.allLayerViews.items.filter(P)}get _previewDependencies(){let{view:e,_shadowLayerViews:t}=this;if(e==null||t==null)return null;let r=e.slice.plane,i=t,a=i.map(e=>e.layer).filter(n),o=i.map(e=>e.suspended),s=a.map(e=>e.visible),c=a.map(e=>e.opacity),l=!!e.graphicsView?.suspended,u=a.filter(e=>`definitionExpression`in e).map(e=>e.definitionExpression),d=i.filter(e=>`filter`in e).map(e=>e.filter);return{slicePlane:r,startDateUTC:this._startDateTimeUTC,endDateUTC:this._endDateTimeUTC,layerViewSuspended:o,graphicsViewSuspended:l,layerVisibilities:s,layerOpacities:c,filters:d,definitionExpressions:u}}get renderer(){let{view:e}=this;if(e==null)return null;let t=e.stage;return t==null?null:t.renderer}start(){this.setRunning(!0)}stop(){this.setRunning(!1)}setRunning(e){this._running=e}async getDuration(e){let{view:t,renderer:n,_durationSampleCount:r}=this;if(t==null||n==null||r===0)return 0;let i=t.state.camera.screenToRender(p(e.x,e.y),m());return n.readAccumulatedShadow(i)*this._duration}};e([_()],M.prototype,`state`,null),e([_()],M.prototype,`view`,void 0),e([_()],M.prototype,`tooltip`,void 0),e([_({type:Date,nonNullable:!0})],M.prototype,`date`,null),e([_({type:Number,nonNullable:!0})],M.prototype,`utcOffset`,null),e([_({type:Number,nonNullable:!0})],M.prototype,`startTimeOfDay`,void 0),e([_({type:Number,nonNullable:!0})],M.prototype,`endTimeOfDay`,void 0),e([_({type:[`threshold`,`duration`,`discrete`],nonNullable:!0})],M.prototype,`visualizationType`,void 0),e([_({type:E,nonNullable:!0})],M.prototype,`thresholdOptions`,void 0),e([_({type:w,nonNullable:!0})],M.prototype,`durationOptions`,void 0),e([_({type:C,nonNullable:!0})],M.prototype,`discreteOptions`,void 0),e([_()],M.prototype,`_running`,void 0),e([_()],M.prototype,`_stopPreviewingTask`,void 0),e([_()],M.prototype,`_updatedRecently`,void 0),e([_()],M.prototype,`_autoRestoreForcePreviewEnabled`,void 0),e([_()],M.prototype,`_sceneUpdating`,null),e([_()],M.prototype,`_utcOffset`,void 0),e([_()],M.prototype,`_utcOffsetAuto`,null),e([_()],M.prototype,`_dateUTCOffset`,null),e([_()],M.prototype,`_startDateTimeUTC`,null),e([_()],M.prototype,`_endDateTimeUTC`,null),e([_()],M.prototype,`_referencePosition`,null),e([_()],M.prototype,`_interval`,null),e([_()],M.prototype,`_intervalContext`,null),e([_()],M.prototype,`_durationSampleCount`,null),e([_()],M.prototype,`_duration`,null),e([_()],M.prototype,`_lightDirections`,null),e([_()],M.prototype,`_lightDirectionsContext`,null),e([_()],M.prototype,`_tooltipEnabled`,null),e([_()],M.prototype,`_visualizationParameters`,null),e([_()],M.prototype,`_thresholdVisualizationParameters`,null),e([_()],M.prototype,`_thresholdDiscreteVisualizationParameters`,null),e([_()],M.prototype,`_durationVisualizationParameters`,null),e([_()],M.prototype,`_discreteVisualizationParameters`,null),e([_()],M.prototype,`_shadowLayerViews`,null),e([_()],M.prototype,`_previewDependencies`,null),e([_()],M.prototype,`renderer`,null),M=e([v(`esri.widgets.ShadowCast.ShadowCastViewModel`)],M);function N(e,t){e!=null&&t!=null&&e.setParameters({shadowCast:t})}function P(e){if(e.suspended)return!1;switch(e.type){case`building-scene-3d`:case`csv-3d`:case`elevation-3d`:case`feature-3d`:case`geojson-3d`:case`integrated-mesh-3d`:case`integrated-mesh-3dtiles`:case`ogc-feature-3d`:case`route-3d`:case`scene-layer-3d`:case`scene-layer-graphics-3d`:case`stream-3d`:case`wms-3d`:case`catalog-footprint-3d`:return!0;case`base-dynamic-3d`:case`catalog-3d`:case`catalog-dynamic-group-3d`:case`dimension-3d`:case`gaussian-splat-3d`:case`imagery-3d`:case`imagery-tile-3d`:case`line-of-sight-3d`:case`map-image-3d`:case`point-cloud-3d`:case`tile-3d`:case`vector-tile-3d`:case`viewshed-3d`:case`voxel-3d`:case`wfs-3d`:case`wmts-3d`:case`media-3d`:return!1;case`group`:return!1;case`graphics-3d`:return e.layer.graphics.some(e=>{let{symbol:t}=e;return t==null||t.type!==`text`&&!(`symbolLayers`in t)||t.type!==`text`&&t.symbolLayers.some(e=>e.type!==`text`)});default:return!1}}function F(e,t){if(e===t||e==null&&t==null)return!0;if(e==null||t==null)return!1;let n=b(e.slicePlane,t.slicePlane),i=e.startDateUTC.valueOf()===t.startDateUTC.valueOf()&&e.endDateUTC.valueOf()===t.endDateUTC.valueOf(),a=r(e.layerViewSuspended,t.layerViewSuspended)&&e.graphicsViewSuspended===t.graphicsViewSuspended,o=r(e.layerVisibilities,t.layerVisibilities),s=r(e.layerOpacities,t.layerOpacities),c=r(e.filters,t.filters),l=r(e.definitionExpressions,t.definitionExpressions);return n&&i&&a&&o&&s&&c&&l}const I=M;export{I as default};
2
+ import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{isSome as n,equals as r}from"../../core/arrayUtils.js";import{createTask as i}from"../../core/asyncUtils.js";import{deprecateUnnecessaryViewModel as a}from"../../core/deprecate.js";import"../../core/has.js";import o from"../../core/Logger.js";import{abortMaybe as s,destroyMaybe as c}from"../../core/maybe.js";import{after as l,throwIfAborted as u}from"../../core/promiseUtils.js";import{watch as d,syncAndInitial as f}from"../../core/reactiveUtils.js";import{createScreenPointArray as p,createRenderScreenPointArray as m}from"../../core/screenUtils.js";import{convertTime as h,offsetDateUTC as g}from"../../core/timeUtils.js";import{property as _,subclass as v}from"../../core/accessorSupport/decorators.js";import{create as y}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{g as b}from"../../chunks/boundedPlane.js";import{longitudeToTimezone as x}from"../../views/3d/support/earthUtils.js";import{computeDirectionsOverTime as S}from"../../views/3d/support/sunUtils.js";import C from"./DiscreteOptions.js";import w from"./DurationOptions.js";import{ShadowTooltipViewModel as T}from"./ShadowTooltipViewModel.js";import E from"./ThresholdOptions.js";import{breadthFirstBinaryPartitioning as D}from"../support/traversalUtils.js";const O=[],k=y(),A=[],j=h(1,`hours`,`milliseconds`);let M=class extends t{constructor(e){super(e),this.view=null,this.tooltip=new T({getDuration:e=>this.getDuration(e)}),this.startTimeOfDay=h(10,`hours`,`milliseconds`),this.endTimeOfDay=h(16,`hours`,`milliseconds`),this.visualizationType=`threshold`,this.thresholdOptions=new E({suppressDeprecationWarning:!0}),this.durationOptions=new w({suppressDeprecationWarning:!0}),this.discreteOptions=new C({suppressDeprecationWarning:!0}),this._running=!0,this._stopPreviewingTask=null,this._updatedRecently=!1,this._autoRestoreForcePreviewEnabled=!0,this._utcOffset=null,e?.suppressDeprecationWarning||a(o.getLogger(this),`Shadow Cast`,`arcgis-shadow-cast`,{version:`5.0`}),this.date=new Date}normalizeCtorArgs(e){let{suppressDeprecationWarning:t,...n}=e??{};return n}initialize(){this.addHandles([d(()=>({view:this.view,tooltipEnabled:this._tooltipEnabled}),({view:e,tooltipEnabled:t})=>{this.tooltip.view=e,this.tooltip.enabled=t},f),d(()=>({dependencies:this._previewDependencies,sceneUpdating:this._sceneUpdating}),()=>{s(this._stopPreviewingTask),this._updatedRecently=!0,this._autoRestoreForcePreviewEnabled&&(this._stopPreviewingTask=i(async e=>{await l(500,e),u(e),this._updatedRecently=!1}))},{sync:!0,initial:!0,equals:(e,t)=>F(e.dependencies,t.dependencies)&&(e.sceneUpdating===t.sceneUpdating||!e.sceneUpdating)}),d(()=>({renderer:this.renderer,parameters:this._visualizationParameters}),e=>N(e.renderer,e.parameters),f),d(()=>({renderer:this.renderer,lightDirections:this._lightDirections,lightDirectionsContext:this._lightDirectionsContext}),e=>N(e.renderer,{lightDirections:e.lightDirections,lightDirectionsContext:e.lightDirectionsContext}),f),d(()=>({renderer:this.renderer,parameters:{enabled:this._running}}),e=>N(e.renderer,e.parameters),f),d(()=>({renderer:this.renderer,parameters:{previewing:this._previewing}}),e=>N(e.renderer,e.parameters),{sync:!0,initial:!0,equals:()=>!1})])}destroy(){this.stop(),N(this.renderer,{enabled:!1}),c(this.tooltip),this._stopPreviewingTask=s(this._stopPreviewingTask)}get state(){return this.view!=null&&this.view.ready&&this._referencePosition!=null?`ready`:`disabled`}set date(e){let t=new Date(e);t.setHours(0,0,0,0),this._set(`date`,t)}get utcOffset(){return this._utcOffset??this._utcOffsetAuto}set utcOffset(e){this._utcOffset=e}get testData(){}get _previewing(){let e=this._updatedRecently,t=this._sceneUpdating;return e||t}get _sceneUpdating(){let{view:e}=this;if(e?.allLayerViews==null)return!0;let{stationary:t,navigating:n,interacting:r,graphicsView:i}=e,a=!t||n||r,o=this._shadowLayerViews?.some(e=>e.updating)??!1,s=!i?.suspended&&!!i?.updating;return a||o||s}get _utcOffsetAuto(){let e=this._referencePosition;return e==null?0:x(e[0],!1)}get _dateUTCOffset(){let e=this.date;return e=g(e,-e.getTimezoneOffset(),`minutes`),e=g(e,-this.utcOffset,`hours`),e}get _startDateTimeUTC(){return g(this._dateUTCOffset,this.startTimeOfDay)}get _endDateTimeUTC(){return g(this._dateUTCOffset,this.endTimeOfDay)}get _referencePosition(){return this.view?.environmentView?.referencePositionGeographic}get _durationInterval(){return this._duration>0?Math.floor(this._duration/254):255}get _interval(){let e=this._durationInterval;switch(this.visualizationType){case`threshold`:case`duration`:return e;case`discrete`:return this.discreteOptions.interval||e}}get _intervalContext(){let{contextEnabled:e,contextOptions:{interval:t}}=this.thresholdOptions;return this.visualizationType===`threshold`&&e?t||this._durationInterval:-1}get _durationSampleCount(){return this._lightDirections.length}get _duration(){return this.endTimeOfDay-this.startTimeOfDay}get _lightDirections(){return this._calculateLightDirections(this._interval)}get _lightDirectionsContext(){return this._calculateLightDirections(this._intervalContext)}_calculateLightDirections(e){let{view:t}=this;if(t==null||e<=0)return O;let n=t.viewingMode===`global`?k:this._referencePosition;if(n==null)return O;let r=S(this._startDateTimeUTC,this._endDateTimeUTC,e,n,t.state.viewingMode,255),i=r.length;A.length=0;let a=D(0,i,A),o=Array(i);for(let e=0;e<i;++e)o[e]=r[a[e]];return o}get _tooltipEnabled(){return this.state===`ready`&&this.visualizationType!==`discrete`&&this._running&&!this._previewing}get _visualizationParameters(){if(!this._running)return null;switch(this.visualizationType){case`threshold`:return this._thresholdVisualizationParameters;case`duration`:return this._durationVisualizationParameters;case`discrete`:return this._discreteVisualizationParameters}}get _thresholdVisualizationParameters(){let{value:e,color:t}=this.thresholdOptions,n=this._duration;return{visualization:2,thresholdColor:t.toUnitRGBA(),threshold:n>0?e/this._duration:0,...this._thresholdDiscreteVisualizationParameters}}get _thresholdDiscreteVisualizationParameters(){let{contextOptions:{color:e},contextEnabled:t}=this.thresholdOptions,n=e.toUnitRGBA(),r=[n[0],n[1],n[2],0];return t?{visualization:3,gradientColorRamp:[[0,r],[1,n]]}:{}}get _durationVisualizationParameters(){let{color:e,mode:t}=this.durationOptions,n=this._duration,r=n>0&&t===`hourly`?j/n:0,i=e.toUnitRGBA(),a=[i[0],i[1],i[2],0];return r===0?{...this._discreteVisualizationParameters,gradientColorRamp:[[0,a],[1,i]]}:{bandedGradientColorRamp:[[0,a],[1,i]],visualization:1,bandSize:r}}get _discreteVisualizationParameters(){let e=this.discreteOptions.color.toUnitRGBA();return{gradientColorRamp:[[0,[e[0],e[1],e[2],0]],[1,e]],visualization:0}}get _shadowLayerViews(){return this.view?.allLayerViews.items.filter(P)}get _previewDependencies(){let{view:e,_shadowLayerViews:t}=this;if(e==null||t==null)return null;let r=e.slice.plane,i=t,a=i.map(e=>e.layer).filter(n),o=i.map(e=>e.suspended),s=a.map(e=>e.visible),c=a.map(e=>e.opacity),l=!!e.graphicsView?.suspended,u=a.filter(e=>`definitionExpression`in e).map(e=>e.definitionExpression),d=i.filter(e=>`filter`in e).map(e=>e.filter);return{slicePlane:r,startDateUTC:this._startDateTimeUTC,endDateUTC:this._endDateTimeUTC,layerViewSuspended:o,graphicsViewSuspended:l,layerVisibilities:s,layerOpacities:c,filters:d,definitionExpressions:u}}get renderer(){let{view:e}=this;if(e==null)return null;let t=e.stage;return t==null?null:t.renderer}start(){this.setRunning(!0)}stop(){this.setRunning(!1)}setRunning(e){this._running=e}async getDuration(e){let{view:t,renderer:n,_durationSampleCount:r}=this;if(t==null||n==null||r===0)return 0;let i=t.state.camera.screenToRender(p(e.x,e.y),m());return n.readAccumulatedShadow(i)*this._duration}};e([_()],M.prototype,`state`,null),e([_()],M.prototype,`view`,void 0),e([_()],M.prototype,`tooltip`,void 0),e([_({type:Date,nonNullable:!0})],M.prototype,`date`,null),e([_({type:Number,nonNullable:!0})],M.prototype,`utcOffset`,null),e([_({type:Number,nonNullable:!0})],M.prototype,`startTimeOfDay`,void 0),e([_({type:Number,nonNullable:!0})],M.prototype,`endTimeOfDay`,void 0),e([_({type:[`threshold`,`duration`,`discrete`],nonNullable:!0})],M.prototype,`visualizationType`,void 0),e([_({type:E,nonNullable:!0})],M.prototype,`thresholdOptions`,void 0),e([_({type:w,nonNullable:!0})],M.prototype,`durationOptions`,void 0),e([_({type:C,nonNullable:!0})],M.prototype,`discreteOptions`,void 0),e([_()],M.prototype,`_running`,void 0),e([_()],M.prototype,`_stopPreviewingTask`,void 0),e([_()],M.prototype,`_updatedRecently`,void 0),e([_()],M.prototype,`_autoRestoreForcePreviewEnabled`,void 0),e([_()],M.prototype,`_sceneUpdating`,null),e([_()],M.prototype,`_utcOffset`,void 0),e([_()],M.prototype,`_utcOffsetAuto`,null),e([_()],M.prototype,`_dateUTCOffset`,null),e([_()],M.prototype,`_startDateTimeUTC`,null),e([_()],M.prototype,`_endDateTimeUTC`,null),e([_()],M.prototype,`_referencePosition`,null),e([_()],M.prototype,`_interval`,null),e([_()],M.prototype,`_intervalContext`,null),e([_()],M.prototype,`_durationSampleCount`,null),e([_()],M.prototype,`_duration`,null),e([_()],M.prototype,`_lightDirections`,null),e([_()],M.prototype,`_lightDirectionsContext`,null),e([_()],M.prototype,`_tooltipEnabled`,null),e([_()],M.prototype,`_visualizationParameters`,null),e([_()],M.prototype,`_thresholdVisualizationParameters`,null),e([_()],M.prototype,`_thresholdDiscreteVisualizationParameters`,null),e([_()],M.prototype,`_durationVisualizationParameters`,null),e([_()],M.prototype,`_discreteVisualizationParameters`,null),e([_()],M.prototype,`_shadowLayerViews`,null),e([_()],M.prototype,`_previewDependencies`,null),e([_()],M.prototype,`renderer`,null),M=e([v(`esri.widgets.ShadowCast.ShadowCastViewModel`)],M);function N(e,t){e!=null&&t!=null&&e.setParameters({shadowCast:t})}function P(e){if(e.suspended)return!1;switch(e.type){case`building-scene-3d`:case`csv-3d`:case`elevation-3d`:case`feature-3d`:case`geojson-3d`:case`integrated-mesh-3d`:case`integrated-mesh-3dtiles`:case`ogc-feature-3d`:case`route-3d`:case`scene-layer-3d`:case`scene-layer-graphics-3d`:case`stream-3d`:case`wms-3d`:case`catalog-footprint-3d`:return!0;case`base-dynamic-3d`:case`catalog-3d`:case`catalog-dynamic-group-3d`:case`dimension-3d`:case`gaussian-splat-3d`:case`imagery-3d`:case`imagery-tile-3d`:case`line-of-sight-3d`:case`map-image-3d`:case`point-cloud-3d`:case`tile-3d`:case`vector-tile-3d`:case`viewshed-3d`:case`voxel-3d`:case`wfs-3d`:case`wmts-3d`:case`media-3d`:return!1;case`group`:return!1;case`graphics-3d`:return e.layer.graphics.some(e=>{let{symbol:t}=e;return t==null||t.type!==`text`&&!(`symbolLayers`in t)||t.type!==`text`&&t.symbolLayers.some(e=>e.type!==`text`)});default:return!1}}function F(e,t){if(e===t||e==null&&t==null)return!0;if(e==null||t==null)return!1;let n=b(e.slicePlane,t.slicePlane),i=e.startDateUTC.valueOf()===t.startDateUTC.valueOf()&&e.endDateUTC.valueOf()===t.endDateUTC.valueOf(),a=r(e.layerViewSuspended,t.layerViewSuspended)&&e.graphicsViewSuspended===t.graphicsViewSuspended,o=r(e.layerVisibilities,t.layerVisibilities),s=r(e.layerOpacities,t.layerOpacities),c=r(e.filters,t.filters),l=r(e.definitionExpressions,t.definitionExpressions);return n&&i&&a&&o&&s&&c&&l}const I=M;export{I as default};
@@ -163,12 +163,14 @@ export interface SketchViewModelProperties extends Partial<Pick<SketchViewModel,
163
163
  textSymbol?: TextSymbolProperties & { type: "text"; };
164
164
  /**
165
165
  * Options to configure the tooltip shown next to the cursor when creating or updating graphics.
166
+ * See [useViewOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/#useViewOptions) for when these options are used instead of options on the view.
166
167
  *
167
168
  * @since 4.24
168
169
  */
169
170
  tooltipOptions?: SketchTooltipOptionsProperties;
170
171
  /**
171
172
  * Options to configure how values are displayed and input when creating or updating graphics.
173
+ * See [useViewOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/#useViewOptions) for unit inheritance and override behavior.
172
174
  *
173
175
  * @since 4.29
174
176
  */
@@ -822,6 +824,7 @@ export default class SketchViewModel extends EventedAccessor {
822
824
  set textSymbol(value: TextSymbolProperties & { type: "text"; });
823
825
  /**
824
826
  * Options to configure the tooltip shown next to the cursor when creating or updating graphics.
827
+ * See [useViewOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/#useViewOptions) for when these options are used instead of options on the view.
825
828
  *
826
829
  * @since 4.24
827
830
  */
@@ -873,17 +876,18 @@ export default class SketchViewModel extends EventedAccessor {
873
876
  */
874
877
  accessor useLegacyCreateTools: boolean;
875
878
  /**
876
- * Indicates whether to use the snapping, tooltip, display-unit, and input-unit options configured through
879
+ * Indicates whether to use snapping, tooltips, display units, and input units from
877
880
  * [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/).
878
881
  *
879
- * When `true`, snapping and tooltip options are inherited from the view. Options specified through
880
- * [snappingOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/#snappingOptions) and [tooltipOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/#tooltipOptions)
881
- * are preserved but ignored. When `false`, those options are used instead.
882
+ * When this property is `true`:
882
883
  *
883
- * Explicit units specified through [valueOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/#valueOptions) override the units
884
- * inherited from the view for the corresponding measurement type, such as length or area, without changing
885
- * the units configured in the view. Setting an explicit unit to `null` or `undefined` restores inheritance for
886
- * that measurement type.
884
+ * - Snapping and tooltip options are inherited from the view. The view model's
885
+ * [snappingOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/#snappingOptions) and [tooltipOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/#tooltipOptions) are preserved but ignored.
886
+ * - Units set through [valueOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/#valueOptions) override the corresponding units on the view,
887
+ * such as length or area, without changing the view's options. Setting a unit to `null` or `undefined` restores
888
+ * inheritance for that measurement type.
889
+ *
890
+ * When `false`, the view model uses its own snapping, tooltip, and unit options instead.
887
891
  *
888
892
  * Label [options](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/#labelOptions) and
889
893
  * [direction mode](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ValueOptions/#directionMode) are not inherited from the view.
@@ -905,6 +909,7 @@ export default class SketchViewModel extends EventedAccessor {
905
909
  accessor useViewOptions: boolean;
906
910
  /**
907
911
  * Options to configure how values are displayed and input when creating or updating graphics.
912
+ * See [useViewOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/SketchViewModel/#useViewOptions) for unit inheritance and override behavior.
908
913
  *
909
914
  * @since 4.29
910
915
  */
@@ -1120,7 +1125,7 @@ export default class SketchViewModel extends EventedAccessor {
1120
1125
  * // get the graphic as it is being updated
1121
1126
  * const graphic = event.graphics[0];
1122
1127
  * // check if the graphic is intersecting school buffers
1123
- * intersects = geometryEngine.intersects(buffers, graphic.geometry);
1128
+ * intersects = intersectsExecute(buffers, graphic.geometry);
1124
1129
  *
1125
1130
  * // change the graphic symbol to valid or invalid symbol
1126
1131
  * // depending the graphic location
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{isSome as t}from"../../../../core/arrayUtils.js";import{destroyMaybe as n}from"../../../../core/maybe.js";import{property as r,subclass as i}from"../../../../core/accessorSupport/decorators.js";import a from"../../../Widget.js";import o from"./MeasuredContentGroup.js";import s from"./OverflowGroup.js";import c from"./ResponsiveToolbarManager.js";import{SplitButton as l}from"./SplitButton.js";import{loadCalciteComponents as u}from"../../../support/componentsUtils.js";import{tsx as d}from"../../../support/widget.js";const f=`esri-responsive-toolbar`,p={rulerBase:`${f}__ruler`,rulerBarHorizontal:`${f}__ruler--bar`,rulerBarVertical:`${f}__ruler--bar--vertical`,rulerPadVertical:`${f}__ruler--pad--vertical`,rulerPadHorizontal:`${f}__ruler--pad--horizontal`,bar:`${f}__bar`,barHorizontal:`${f}__bar--horizontal`,barVertical:`${f}__bar--vertical`,pad:`${f}__pad`,padVertical:`${f}__pad--vertical`,padHorizontal:`${f}__pad--horizontal`};let m=class extends a{constructor(e){super(e),this.scale=`m`,this.barStyle=`floating`,this._measurementManager=new c,this._managedWidgets=new Map}loadDependencies(){return u({"action-bar":()=>import(`@esri/calcite-components/dist/components/calcite-action-bar`)})}destroy(){this._measurementManager=n(this._measurementManager),this._managedWidgets.forEach(e=>e.destroy()),this._managedWidgets.clear()}set layout(e){let t=this._get(`layout`);this._set(`layout`,e),this._measurementManager&&(this._measurementManager.layout=e),t!==e&&this.scheduleRender()}get _barClasses(){let e=this.barStyle===`docked`,t=this.layout===`vertical`;return{[p.barHorizontal]:e&&!t,[p.barVertical]:e&&t,[p.bar]:e,[p.padHorizontal]:!e&&!t,[p.padVertical]:!e&&t,[p.pad]:!e}}render(){let{layout:e,scale:t,barStyle:n}=this,r={layout:e,scale:t,expandDisabled:!0,key:`measured-toolbar`},i=n===`docked`?e===`vertical`?p.rulerBarVertical:p.rulerBarHorizontal:e===`horizontal`?p.rulerPadHorizontal:p.rulerPadVertical,a=this._renderChildren();return a.length?d(`div`,{key:`toolbar-wrapper`},d(`div`,{afterCreate:e=>{this._measurementManager?.connect(e)},class:this.classes(p.rulerBase,i),key:`ruler-element`}),d(`calcite-action-bar`,{...r,classes:this._barClasses,floating:n!==`docked`,overflowActionsDisabled:!0},a)):null}_renderChildren(){if(!this.children)return[];let e=new Set,n=[];for(let t of this.children){if(!t.properties?.key||!(`group-kind`in t.properties)||!t.children?.length)continue;let r=t.properties,i=r.key;e.add(i);let a=this.barStyle===`docked`?r.slot??void 0:void 0,c=r.priority??0,u=r[`group-kind`]??`overflow-group`,d=r[`allow-collapse`]??!0,f=u===`measured-content-group`,p=this._managedWidgets.get(i);if(p)p.children=t.children,p.priority=c,`allowCollapse`in p&&(p.allowCollapse=d),p.slot=a,p.layout=this.layout,p.scale=this.scale,p.measurementManager=this._measurementManager,p instanceof o&&(p.useActionGroup=f),n.push(p);else{let e={scale:this.scale,priority:c,measurementManager:this._measurementManager,children:t.children,slot:a,layout:this.layout};switch(u){case`split-button`:{let t=new l({...e,allowCollapse:d});this._managedWidgets.set(i,t),n.push(t);break}case`overflow-group`:{let t=new s({...e,allowCollapse:d});this._managedWidgets.set(i,t),n.push(t);break}case`measured-content`:{let t=new o({...e});this._managedWidgets.set(i,t),n.push(t);break}case`measured-content-group`:{let t=new o({...e,useActionGroup:!0});this._managedWidgets.set(i,t),n.push(t);break}}}}for(let[t]of this._managedWidgets.entries())e.has(t)||(this._managedWidgets.get(t)?.destroy(),this._managedWidgets.delete(t));return this._measurementManager?.allocate(),n.map(e=>e.render()).filter(t)}};e([r()],m.prototype,`scale`,void 0),e([r({value:`horizontal`})],m.prototype,`layout`,null),e([r()],m.prototype,`barStyle`,void 0),e([r()],m.prototype,`_measurementManager`,void 0),e([r()],m.prototype,`_managedWidgets`,void 0),e([r()],m.prototype,`_barClasses`,null),m=e([i(`esri.widgets.Sketch.support.ResponsiveToolbar.ResponsiveToolbar`)],m);export{m as default};
2
+ import{__decorate as e}from"tslib";import{isSome as t}from"../../../../core/arrayUtils.js";import{destroyMaybe as n}from"../../../../core/maybe.js";import{property as r,subclass as i}from"../../../../core/accessorSupport/decorators.js";import a from"../../../Widget.js";import o from"./MeasuredContentGroup.js";import s from"./OverflowGroup.js";import c from"./ResponsiveToolbarManager.js";import{SplitButton as l}from"./SplitButton.js";import{loadCalciteComponents as u}from"../../../support/componentsUtils.js";import{tsx as d}from"../../../support/widget.js";const f=`esri-responsive-toolbar`,p={rulerBase:`${f}__ruler`,rulerBarHorizontal:`${f}__ruler--bar`,rulerBarVertical:`${f}__ruler--bar--vertical`,rulerPadVertical:`${f}__ruler--pad--vertical`,rulerPadHorizontal:`${f}__ruler--pad--horizontal`,bar:`${f}__bar`,barHorizontal:`${f}__bar--horizontal`,barVertical:`${f}__bar--vertical`,pad:`${f}__pad`,padVertical:`${f}__pad--vertical`,padHorizontal:`${f}__pad--horizontal`};let m=class extends a{constructor(e){super(e),this.scale=`m`,this.barStyle=`floating`,this._measurementManager=new c,this._managedWidgets=new Map}loadDependencies(){return u({"action-bar":()=>import(`@esri/calcite-components/dist/components/calcite-action-bar`)})}destroy(){this._measurementManager=n(this._measurementManager),this._managedWidgets.forEach(e=>e.destroy()),this._managedWidgets.clear()}set layout(e){let t=this._get(`layout`);this._set(`layout`,e),this._measurementManager&&(this._measurementManager.layout=e),t!==e&&this.scheduleRender()}get _barClasses(){let e=this.barStyle===`docked`,t=this.layout===`vertical`;return{[p.barHorizontal]:e&&!t,[p.barVertical]:e&&t,[p.bar]:e,[p.padHorizontal]:!e&&!t,[p.padVertical]:!e&&t,[p.pad]:!e}}render(){let{layout:e,scale:t,barStyle:n}=this,r={layout:e,scale:t,expandDisabled:!0,key:`measured-toolbar`},i=n===`docked`?e===`vertical`?p.rulerBarVertical:p.rulerBarHorizontal:e===`horizontal`?p.rulerPadHorizontal:p.rulerPadVertical,a=this._renderChildren();return a.length?d(`div`,{key:`toolbar-wrapper`},d(`div`,{afterCreate:e=>{this._measurementManager?.connect(e)},class:this.classes(p.rulerBase,i),key:`ruler-element`}),d(`calcite-action-bar`,{...r,classes:this._barClasses,floating:n!==`docked`,overflowMode:`none`},a)):null}_renderChildren(){if(!this.children)return[];let e=new Set,n=[];for(let t of this.children){if(!t.properties?.key||!(`group-kind`in t.properties)||!t.children?.length)continue;let r=t.properties,i=r.key;e.add(i);let a=this.barStyle===`docked`?r.slot??void 0:void 0,c=r.priority??0,u=r[`group-kind`]??`overflow-group`,d=r[`allow-collapse`]??!0,f=u===`measured-content-group`,p=this._managedWidgets.get(i);if(p)p.children=t.children,p.priority=c,`allowCollapse`in p&&(p.allowCollapse=d),p.slot=a,p.layout=this.layout,p.scale=this.scale,p.measurementManager=this._measurementManager,p instanceof o&&(p.useActionGroup=f),n.push(p);else{let e={scale:this.scale,priority:c,measurementManager:this._measurementManager,children:t.children,slot:a,layout:this.layout};switch(u){case`split-button`:{let t=new l({...e,allowCollapse:d});this._managedWidgets.set(i,t),n.push(t);break}case`overflow-group`:{let t=new s({...e,allowCollapse:d});this._managedWidgets.set(i,t),n.push(t);break}case`measured-content`:{let t=new o({...e});this._managedWidgets.set(i,t),n.push(t);break}case`measured-content-group`:{let t=new o({...e,useActionGroup:!0});this._managedWidgets.set(i,t),n.push(t);break}}}}for(let[t]of this._managedWidgets.entries())e.has(t)||(this._managedWidgets.get(t)?.destroy(),this._managedWidgets.delete(t));return this._measurementManager?.allocate(),n.map(e=>e.render()).filter(t)}};e([r()],m.prototype,`scale`,void 0),e([r({value:`horizontal`})],m.prototype,`layout`,null),e([r()],m.prototype,`barStyle`,void 0),e([r()],m.prototype,`_measurementManager`,void 0),e([r()],m.prototype,`_managedWidgets`,void 0),e([r()],m.prototype,`_barClasses`,null),m=e([i(`esri.widgets.Sketch.support.ResponsiveToolbar.ResponsiveToolbar`)],m);export{m as default};
@@ -669,19 +669,19 @@ export default class Sketch extends Widget<SketchProperties> {
669
669
  */
670
670
  accessor useLegacyCreateTools: boolean;
671
671
  /**
672
- * Indicates whether to use the snapping, tooltip, display-unit, and input-unit options configured through
672
+ * Indicates whether to use snapping, tooltips, display units, and input units from
673
673
  * [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/).
674
674
  *
675
- * When `true`, snapping and tooltip options are inherited from the view. Options specified through
676
- * [snappingOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/#snappingOptions) and [tooltipOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/#tooltipOptions) are preserved but ignored.
677
- * When `false`, those options are used instead.
675
+ * When this property is `true`:
678
676
  *
679
- * While this property is `true`, snapping controls and the tooltip toggle are hidden from the settings menu
680
- * because these options are inherited from the view.
677
+ * - Snapping and tooltip options are inherited from the view. The widget's
678
+ * [snappingOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/#snappingOptions) and [tooltipOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/#tooltipOptions) are preserved but ignored.
679
+ * - Snapping controls and the tooltip toggle are hidden from the widget's Settings menu.
680
+ * - Units set through [valueOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/#valueOptions) override the corresponding units on the view,
681
+ * such as length or area, without changing the view's options. Setting a unit to `null` or `undefined` restores
682
+ * inheritance for that measurement type.
681
683
  *
682
- * Explicit units specified through [valueOptions](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/#valueOptions) override the units inherited from the
683
- * view for the corresponding measurement type, such as length or area, without changing the units configured
684
- * in the view. Setting an explicit unit to `null` or `undefined` restores inheritance for that measurement type.
684
+ * When `false`, the widget uses its own snapping, tooltip, and unit options instead.
685
685
  *
686
686
  * Label [options](https://developers.arcgis.com/javascript/latest/references/core/widgets/Sketch/#labelOptions) and
687
687
  * [direction mode](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ValueOptions/#directionMode) are not inherited from the view.
@@ -836,7 +836,7 @@ export default class Sketch extends Widget<SketchProperties> {
836
836
  * // get the graphic as it is being updated
837
837
  * const graphic = event.graphics[0];
838
838
  * // check if the graphic is intersecting school buffers
839
- * intersects = geometryEngine.intersects(buffers, graphic.geometry);
839
+ * intersects = intersectsExecute(buffers, graphic.geometry);
840
840
  *
841
841
  * // change the graphic symbol to valid or invalid symbol
842
842
  * // depending the graphic location
@@ -91,7 +91,7 @@ export default class TrackViewModel extends GeolocationPositioning {
91
91
  * const geofenceExtent = new Extent({
92
92
  * // whatever
93
93
  * });
94
- * return geometryEngine.within(myLocation, geofenceExtent);
94
+ * return withinExecute(myLocation, geofenceExtent);
95
95
  * };
96
96
  */
97
97
  accessor positionFilterFunction: PositionFilterFunction | null | undefined;
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{deprecateWidget as t}from"../core/deprecate.js";import n from"../core/Logger.js";import{watch as r,initial as i,on as a}from"../core/reactiveUtils.js";import{property as o,subclass as s}from"../core/accessorSupport/decorators.js";import c from"../symbols/SimpleLineSymbol.js";import l from"./Widget.js";import{loadCalciteComponents as u}from"./support/componentsUtils.js";import{messageBundle as d,tsx as f}from"./support/widget.js";import p from"./UtilityNetworkAssociations/UtilityNetworkAssociationsLineSymbolPicker.js";import m from"./UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js";import h from"./UtilityNetworkAssociations/VisibleElements.js";const g=`esri-un-associations`,_={action:`${g}__action`,blockContent:`${g}__block-content`,blockSectionSettings:`${g}__block-section-settings`,combobox:`${g}__combobox`,comboboxItem:`${g}__combobox-item`,divControlsMain:`${g}__div-controls-main`,label:`${g}__label`,labelAndCombobox:`${g}__label-and-combobox`,labelAndSlider:`${g}__label-and-slider`,labelAndToggle:`${g}__label-and-toggle`,panel:`${g}__panel`,slider:`${g}__slider`,statusIconWarning:`${g}__status-icon-warning`,switch:`${g}__switch`,widgetContainer:`${g}__widget-container`};let v=class extends l{constructor(e,r){super(e,r),this._autoRefreshAssociations=!0,this._associationsOptionsEnabled=!1,this._maxAllowableAssociationsSliderMax=1e3,this._maxAllowableAssociationsSliderMin=250,this._maxAllowableAssociationsSliderStep=250,this.messages=null,this.messagesCommon=null,this.viewModel=new m,this.visibleElements=new h,this.announceDeprecation=()=>{t(n.getLogger(this),`Utility Network Associations`,`arcgis-utility-network-associations`,{version:`5.0`})}}initialize(){this.addHandles([r(()=>[this.view?.stationary,this.showAssociationsEnabled,this.includeConnectivityAssociations,this.includeStructuralAttachmentAssociations,this.maxAllowableAssociations],()=>{this.autoRefreshAssociations===!0&&(this.showAssociationsEnabled===!0?this.viewModel.showAssociations():this.viewModel.removeAssociations())}),r(()=>this.view?.map?.utilityNetworks,e=>{e?.items.forEach(async(e,t)=>{e.loaded||await e.load(),t===0&&(this.utilityNetwork=e)})},i),a(()=>this.view?.map?.utilityNetworks,`change`,e=>{let t=e.target;e.added.forEach(async e=>{e.loaded||await e.load()}),e.removed.some(e=>e.layerUrl===this.utilityNetwork?.layerUrl)&&(this.utilityNetwork=null),this.utilityNetwork=t.length?t.getItemAt(0):null})])}get autoRefreshAssociations(){return this._autoRefreshAssociations}set autoRefreshAssociations(e){this._autoRefreshAssociations=e}get connectivityAssociationsLineSymbol(){return this.viewModel.connectivityAssociationsLineSymbol}set connectivityAssociationsLineSymbol(e){this.viewModel.connectivityAssociationsLineSymbol=e}get icon(){return`view-associations`}set icon(e){this._overrideIfSome(`icon`,e)}get includeConnectivityAssociations(){return this.viewModel.includeConnectivityAssociations}set includeConnectivityAssociations(e){this.viewModel.includeConnectivityAssociations=e}get includeStructuralAttachmentAssociations(){return this.viewModel.includeStructuralAttachmentAssociations}set includeStructuralAttachmentAssociations(e){this.viewModel.includeStructuralAttachmentAssociations=e}get label(){return this.messages?.widgetLabel??``}set label(e){this._overrideIfSome(`label`,e)}get maxAllowableAssociations(){return this.viewModel.maxAllowableAssociations}set maxAllowableAssociations(e){this.viewModel.maxAllowableAssociations=e}get maxAllowableAssociationsSliderMax(){return this._maxAllowableAssociationsSliderMax}set maxAllowableAssociationsSliderMax(e){e<=this.maxAllowableAssociationsSliderMin||(this._maxAllowableAssociationsSliderMax=e)}get maxAllowableAssociationsSliderMin(){return this._maxAllowableAssociationsSliderMin}set maxAllowableAssociationsSliderMin(e){e<0||e>=this.maxAllowableAssociationsSliderMax||(this._maxAllowableAssociationsSliderMin=e)}get maxAllowableAssociationsSliderStep(){return this._maxAllowableAssociationsSliderStep}set maxAllowableAssociationsSliderStep(e){this._maxAllowableAssociationsSliderStep=e}get showArrowsConnectivity(){return this.viewModel.showArrowsConnectivity}set showArrowsConnectivity(e){this.viewModel.showArrowsConnectivity=e}get showArrowsStructuralAttachment(){return this.viewModel.showArrowsStructuralAttachment}set showArrowsStructuralAttachment(e){this.viewModel.showArrowsStructuralAttachment=e}get showAssociationsEnabled(){return this.viewModel.showAssociationsEnabled}set showAssociationsEnabled(e){this.viewModel.showAssociationsEnabled=e}get structuralAttachmentAssociationsLineSymbol(){return this.viewModel.structuralAttachmentAssociationsLineSymbol}set structuralAttachmentAssociationsLineSymbol(e){this.viewModel.structuralAttachmentAssociationsLineSymbol=e}get utilityNetwork(){return this.viewModel.utilityNetwork}set utilityNetwork(e){this.viewModel.utilityNetwork=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}render(){let{label:e}=this;return f(`div`,{class:_.widgetContainer},f(`calcite-block`,{class:_.blockContent,collapsible:!0,heading:e},this._renderStatusIcon(),this.autoRefreshAssociations?this._renderShowAssociationsSwitch():this._renderRefreshAssociationsAction(),this._renderContent()),this._renderWarningIconTooltip(),this._renderStatusIconTooltip(),this._renderShowAssociationsTooltip(),this._renderRefreshAssociationsActionTooltip())}loadDependencies(){return u({action:()=>import(`@esri/calcite-components/dist/components/calcite-action`),block:()=>import(`@esri/calcite-components/dist/components/calcite-block`),"block-section":()=>import(`@esri/calcite-components/dist/components/calcite-block-section`),icon:()=>import(`@esri/calcite-components/dist/components/calcite-icon`),combobox:()=>import(`@esri/calcite-components/dist/components/calcite-combobox`),"combobox-item":()=>import(`@esri/calcite-components/dist/components/calcite-combobox-item`),label:()=>import(`@esri/calcite-components/dist/components/calcite-label`),notice:()=>import(`@esri/calcite-components/dist/components/calcite-notice`),panel:()=>import(`@esri/calcite-components/dist/components/calcite-panel`),slider:()=>import(`@esri/calcite-components/dist/components/calcite-slider`),switch:()=>import(`@esri/calcite-components/dist/components/calcite-switch`),tooltip:()=>import(`@esri/calcite-components/dist/components/calcite-tooltip`)})}_connectivityAssociationsSwitchChange(e){this.includeConnectivityAssociations=e.currentTarget.checked}_getLoadErrorMessagesAsNotices(e,t){return f(`calcite-notice`,{closable:!1,key:`error-notice-${t}`,kind:`warning`,open:!0,scale:`s`},f(`div`,{slot:`message`},e))}_maxAllowableAssociationsSliderChange(e){this.maxAllowableAssociations=Number(e.currentTarget.value)}_refreshAssociations(){let{viewModel:e,viewModel:{state:t}}=this;(t===`ready`||t===`warning`)&&e.showAssociations()}_renderConnectivityAssociationsSettings(){let{messages:{input:{enableConnectivity:e}},visibleElements:{connectivityAssociationsSettings:t}}=this;if(t)return f(`calcite-block-section`,{class:_.blockSectionSettings,text:e},f(p,{id:`${this.id}-symbol-picker-connectivity`,lineSymbol:this.connectivityAssociationsLineSymbol,showArrows:this.showArrowsConnectivity,visibleElements:t}))}_renderConnectivityAssociationsToggle(){let{messages:{input:{enableConnectivity:e}}}=this;return f(`div`,{class:_.labelAndToggle,key:`connectivityAssociationsToggleDiv`},f(`calcite-label`,{class:_.label},e),f(`calcite-switch`,{bind:this,checked:this.includeConnectivityAssociations,disabled:!this._associationsOptionsEnabled&&this.autoRefreshAssociations,onCalciteSwitchChange:this._connectivityAssociationsSwitchChange}))}_renderComboboxItem({heading:e,value:t,selected:n}){return f(`calcite-combobox-item`,{class:_.comboboxItem,heading:e,selected:n,value:t})}_renderContent(){let{viewModel:{loadErrors:e,state:t}}=this;return t===`disabled`?f(`div`,{class:_.divControlsMain,key:`loadErrorsDiv`},e.items.map(this._getLoadErrorMessagesAsNotices)):f(`calcite-panel`,{class:_.panel,disabled:t===`loading`},f(`div`,{class:_.divControlsMain},this._renderConnectivityAssociationsToggle(),this._renderStructuralAttachmentAssociationsToggle(),this._renderSettingsPane()))}_renderLoadingIcon(){let{messagesCommon:{executing:e,loading:t},viewModel:{state:n}}=this,r=`${this.id}-status-action`;return f(`calcite-action`,{class:_.statusIconWarning,icon:`spinner`,id:r,loading:!0,scale:`s`,slot:`actions-end`,text:n===`executing`?e:t})}_renderMaxAllowableAssociationsSlider(){let{messages:{input:{maxAllowableAssociations:e}},visibleElements:{maxAllowableAssociationsSlider:t}}=this;if(t)return f(`div`,{class:_.labelAndSlider,key:`maxAllowableAssociationsSliderDiv`},f(`calcite-label`,{class:_.label},e),f(`calcite-slider`,{bind:this,class:_.slider,labelTicks:!0,max:this.maxAllowableAssociationsSliderMax,min:this.maxAllowableAssociationsSliderMin,scale:`s`,snap:!0,step:this.maxAllowableAssociationsSliderStep,ticks:this.maxAllowableAssociationsSliderStep,value:this.maxAllowableAssociations,onCalciteSliderChange:this._maxAllowableAssociationsSliderChange}))}_renderRefreshAssociationsAction(){let{messages:{input:{refreshAssociations:e}},viewModel:{state:t}}=this,n=`${this.id}-refresh-action`;return f(`calcite-action`,{bind:this,class:_.action,disabled:t===`disabled`,icon:`refresh-f`,id:n,loading:t===`loading`,slot:`actions-end`,text:e,onclick:this._refreshAssociations})}_renderRefreshAssociationsActionTooltip(){let{messages:{input:{refreshAssociations:e}}}=this,t=`${this.id}-refresh-action`;return f(`calcite-tooltip`,{overlayPositioning:`fixed`,referenceElement:t,topLayerDisabled:this.topLayerDisabled},e)}_renderSettingsPane(){let{messagesCommon:{settings:e},visibleElements:{maxAllowableAssociationsSlider:t,connectivityAssociationsSettings:n,structuralAttachmentAssociationsSettings:r}}=this;if((this.view?.map).utilityNetworks?.items?.length!==1||t||n||r)return f(`calcite-block`,{class:_.blockContent,collapsible:!0,heading:e},f(`div`,{class:_.divControlsMain},this._renderUtilityNetworkSettings(),this._renderMaxAllowableAssociationsSlider()),this._renderConnectivityAssociationsSettings(),this._renderStructuralAttachmentAssociationsSettings())}_renderShowAssociationsSwitch(){let{viewModel:{state:e}}=this,t=`${this.id}-show-associations-switch`;return f(`calcite-switch`,{bind:this,checked:this.showAssociationsEnabled,class:_.switch,disabled:e===`disabled`,id:t,slot:`actions-end`,onCalciteSwitchChange:this._showAssociationsSwitchChange})}_renderShowAssociationsTooltip(){let{messages:{input:{enableAssociations:e}}}=this,t=`${this.id}-show-associations-switch`;return f(`calcite-tooltip`,{referenceElement:t,topLayerDisabled:this.topLayerDisabled},e)}_renderStatusIcon(){let{viewModel:{state:e}}=this;switch(e){case`disabled`:case`warning`:return this._renderWarningIcon();case`loading`:case`executing`:return this._renderLoadingIcon();default:return}}_renderStatusIconTooltip(){let{messagesCommon:{executing:e,loading:t},viewModel:{state:n}}=this,r=`${this.id}-status-action`;return f(`calcite-tooltip`,{overlayPositioning:`fixed`,referenceElement:r,topLayerDisabled:this.topLayerDisabled},n===`executing`?e:t)}_renderStructuralAttachmentAssociationsSettings(){let{messages:{input:{enableStructuralAttachment:e}},visibleElements:{structuralAttachmentAssociationsSettings:t}}=this;if(t)return f(`calcite-block-section`,{class:_.blockSectionSettings,text:e},f(p,{id:`${this.id}-symbol-picker-structural-attachment`,lineSymbol:this.structuralAttachmentAssociationsLineSymbol,showArrows:this.showArrowsStructuralAttachment,visibleElements:t}))}_renderStructuralAttachmentAssociationsToggle(){let{messages:{input:{enableStructuralAttachment:e}}}=this;return f(`div`,{class:_.labelAndToggle,key:`structuralAttachmentAssociationsToggleDiv`},f(`calcite-label`,{class:_.label},e),f(`calcite-switch`,{bind:this,checked:this.includeStructuralAttachmentAssociations,disabled:!this._associationsOptionsEnabled&&this.autoRefreshAssociations,onCalciteSwitchChange:this._structuralAttAssociationsSwitchChange}))}_renderUtilityNetworkSettings(){let{messages:{input:{utilityNetwork:e}}}=this,t=(this.view?.map).utilityNetworks?.items;if(t?.length===1)return null;let n=t?.map(e=>{let t=e.title,n=e.layerUrl,r=e.layerUrl===this.utilityNetwork?.layerUrl;return this._renderComboboxItem({heading:t,value:n,selected:r})});return f(`div`,{class:_.labelAndCombobox,key:`utilityNetworkComboboxDiv`},f(`calcite-label`,{class:_.label},e),f(`calcite-combobox`,{class:_.combobox,clearDisabled:!0,label:``,maxItems:3,overlayPositioning:`fixed`,selectionMode:`single-persist`,topLayerDisabled:this.topLayerDisabled,onCalciteComboboxChange:e=>{let n=t?.find(t=>t.layerUrl===e.currentTarget.value);this.utilityNetwork=n}},n))}_showAssociationsSwitchChange({currentTarget:e}){let{viewModel:t}=this;this.showAssociationsEnabled=e.checked,this._associationsOptionsEnabled=e.checked,this.showAssociationsEnabled||t.removeAssociations()}_structuralAttAssociationsSwitchChange(e){this.includeStructuralAttachmentAssociations=e.currentTarget.checked}_renderWarningIcon(){let e=`${this.id}-warning-action`;return f(`calcite-icon`,{class:_.statusIconWarning,icon:`exclamation-mark-triangle`,id:e,scale:`s`,slot:`actions-end`})}_renderWarningIconTooltip(){let{viewModel:{executionError:e,state:t}}=this,n=`${this.id}-warning-action`;switch(t){case`warning`:return f(`calcite-tooltip`,{referenceElement:n,topLayerDisabled:this.topLayerDisabled},e);default:return}}};e([o()],v.prototype,`autoRefreshAssociations`,null),e([o({type:c})],v.prototype,`connectivityAssociationsLineSymbol`,null),e([o()],v.prototype,`icon`,null),e([o()],v.prototype,`includeConnectivityAssociations`,null),e([o()],v.prototype,`includeStructuralAttachmentAssociations`,null),e([o()],v.prototype,`label`,null),e([o()],v.prototype,`maxAllowableAssociations`,null),e([o()],v.prototype,`maxAllowableAssociationsSliderMax`,null),e([o()],v.prototype,`maxAllowableAssociationsSliderMin`,null),e([o()],v.prototype,`maxAllowableAssociationsSliderStep`,null),e([o(),d(`esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations`)],v.prototype,`messages`,void 0),e([o(),d(`esri/t9n/common`)],v.prototype,`messagesCommon`,void 0),e([o()],v.prototype,`showArrowsConnectivity`,null),e([o()],v.prototype,`showArrowsStructuralAttachment`,null),e([o()],v.prototype,`showAssociationsEnabled`,null),e([o({type:c})],v.prototype,`structuralAttachmentAssociationsLineSymbol`,null),e([o()],v.prototype,`utilityNetwork`,null),e([o()],v.prototype,`view`,null),e([o({type:m})],v.prototype,`viewModel`,void 0),e([o({type:h,nonNullable:!0})],v.prototype,`visibleElements`,void 0),v=e([s(`esri.widgets.UtilityNetworkAssociations`)],v);const y=v;export{y as default};
2
+ import{__decorate as e}from"tslib";import{deprecateWidget as t}from"../core/deprecate.js";import n from"../core/Logger.js";import{watch as r,initial as i,on as a}from"../core/reactiveUtils.js";import{property as o,subclass as s}from"../core/accessorSupport/decorators.js";import c from"../symbols/SimpleLineSymbol.js";import l from"./Widget.js";import{loadCalciteComponents as u}from"./support/componentsUtils.js";import{messageBundle as d,tsx as f}from"./support/widget.js";import p from"./UtilityNetworkAssociations/UtilityNetworkAssociationsLineSymbolPicker.js";import m from"./UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js";import h from"./UtilityNetworkAssociations/VisibleElements.js";const g=`esri-un-associations`,_={action:`${g}__action`,blockContent:`${g}__block-content`,blockSectionSettings:`${g}__block-section-settings`,combobox:`${g}__combobox`,comboboxItem:`${g}__combobox-item`,divControlsMain:`${g}__div-controls-main`,label:`${g}__label`,labelAndCombobox:`${g}__label-and-combobox`,labelAndSlider:`${g}__label-and-slider`,labelAndToggle:`${g}__label-and-toggle`,panel:`${g}__panel`,slider:`${g}__slider`,statusIconWarning:`${g}__status-icon-warning`,switch:`${g}__switch`,widgetContainer:`${g}__widget-container`};let v=class extends l{constructor(e,r){super(e,r),this._autoRefreshAssociations=!0,this._associationsOptionsEnabled=!1,this._maxAllowableAssociationsSliderMax=1e3,this._maxAllowableAssociationsSliderMin=250,this._maxAllowableAssociationsSliderStep=250,this.messages=null,this.messagesCommon=null,this.viewModel=new m,this.visibleElements=new h,this.announceDeprecation=()=>{t(n.getLogger(this),`Utility Network Associations`,`arcgis-utility-network-associations`,{version:`5.0`})}}initialize(){this.addHandles([r(()=>[this.view?.stationary,this.showAssociationsEnabled,this.includeConnectivityAssociations,this.includeStructuralAttachmentAssociations,this.maxAllowableAssociations],()=>{this.autoRefreshAssociations===!0&&(this.showAssociationsEnabled===!0?this.viewModel.showAssociations():this.viewModel.removeAssociations())}),r(()=>this.view?.map?.utilityNetworks,e=>{e?.items.forEach(async(e,t)=>{e.loaded||await e.load(),t===0&&(this.utilityNetwork=e)})},i),a(()=>this.view?.map?.utilityNetworks,`change`,e=>{let t=e.target;e.added.forEach(async e=>{e.loaded||await e.load()}),e.removed.some(e=>e.layerUrl===this.utilityNetwork?.layerUrl)&&(this.utilityNetwork=null),this.utilityNetwork=t.length?t.getItemAt(0):null})])}get autoRefreshAssociations(){return this._autoRefreshAssociations}set autoRefreshAssociations(e){this._autoRefreshAssociations=e}get connectivityAssociationsLineSymbol(){return this.viewModel.connectivityAssociationsLineSymbol}set connectivityAssociationsLineSymbol(e){this.viewModel.connectivityAssociationsLineSymbol=e}get icon(){return`view-associations`}set icon(e){this._overrideIfSome(`icon`,e)}get includeConnectivityAssociations(){return this.viewModel.includeConnectivityAssociations}set includeConnectivityAssociations(e){this.viewModel.includeConnectivityAssociations=e}get includeStructuralAttachmentAssociations(){return this.viewModel.includeStructuralAttachmentAssociations}set includeStructuralAttachmentAssociations(e){this.viewModel.includeStructuralAttachmentAssociations=e}get label(){return this.messages?.widgetLabel??``}set label(e){this._overrideIfSome(`label`,e)}get maxAllowableAssociations(){return this.viewModel.maxAllowableAssociations}set maxAllowableAssociations(e){this.viewModel.maxAllowableAssociations=e}get maxAllowableAssociationsSliderMax(){return this._maxAllowableAssociationsSliderMax}set maxAllowableAssociationsSliderMax(e){e<=this.maxAllowableAssociationsSliderMin||(this._maxAllowableAssociationsSliderMax=e)}get maxAllowableAssociationsSliderMin(){return this._maxAllowableAssociationsSliderMin}set maxAllowableAssociationsSliderMin(e){e<0||e>=this.maxAllowableAssociationsSliderMax||(this._maxAllowableAssociationsSliderMin=e)}get maxAllowableAssociationsSliderStep(){return this._maxAllowableAssociationsSliderStep}set maxAllowableAssociationsSliderStep(e){this._maxAllowableAssociationsSliderStep=e}get showArrowsConnectivity(){return this.viewModel.showArrowsConnectivity}set showArrowsConnectivity(e){this.viewModel.showArrowsConnectivity=e}get showArrowsStructuralAttachment(){return this.viewModel.showArrowsStructuralAttachment}set showArrowsStructuralAttachment(e){this.viewModel.showArrowsStructuralAttachment=e}get showAssociationsEnabled(){return this.viewModel.showAssociationsEnabled}set showAssociationsEnabled(e){this.viewModel.showAssociationsEnabled=e}get structuralAttachmentAssociationsLineSymbol(){return this.viewModel.structuralAttachmentAssociationsLineSymbol}set structuralAttachmentAssociationsLineSymbol(e){this.viewModel.structuralAttachmentAssociationsLineSymbol=e}get utilityNetwork(){return this.viewModel.utilityNetwork}set utilityNetwork(e){this.viewModel.utilityNetwork=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}render(){let{label:e}=this;return f(`div`,{class:_.widgetContainer},f(`calcite-block`,{class:_.blockContent,expandable:!0,heading:e},this._renderStatusIcon(),this.autoRefreshAssociations?this._renderShowAssociationsSwitch():this._renderRefreshAssociationsAction(),this._renderContent()),this._renderWarningIconTooltip(),this._renderStatusIconTooltip(),this._renderShowAssociationsTooltip(),this._renderRefreshAssociationsActionTooltip())}loadDependencies(){return u({action:()=>import(`@esri/calcite-components/dist/components/calcite-action`),block:()=>import(`@esri/calcite-components/dist/components/calcite-block`),"block-section":()=>import(`@esri/calcite-components/dist/components/calcite-block-section`),icon:()=>import(`@esri/calcite-components/dist/components/calcite-icon`),combobox:()=>import(`@esri/calcite-components/dist/components/calcite-combobox`),"combobox-item":()=>import(`@esri/calcite-components/dist/components/calcite-combobox-item`),label:()=>import(`@esri/calcite-components/dist/components/calcite-label`),notice:()=>import(`@esri/calcite-components/dist/components/calcite-notice`),panel:()=>import(`@esri/calcite-components/dist/components/calcite-panel`),slider:()=>import(`@esri/calcite-components/dist/components/calcite-slider`),switch:()=>import(`@esri/calcite-components/dist/components/calcite-switch`),tooltip:()=>import(`@esri/calcite-components/dist/components/calcite-tooltip`)})}_connectivityAssociationsSwitchChange(e){this.includeConnectivityAssociations=e.currentTarget.checked}_getLoadErrorMessagesAsNotices(e,t){return f(`calcite-notice`,{closable:!1,key:`error-notice-${t}`,kind:`warning`,open:!0,scale:`s`},f(`div`,{slot:`message`},e))}_maxAllowableAssociationsSliderChange(e){this.maxAllowableAssociations=Number(e.currentTarget.value)}_refreshAssociations(){let{viewModel:e,viewModel:{state:t}}=this;(t===`ready`||t===`warning`)&&e.showAssociations()}_renderConnectivityAssociationsSettings(){let{messages:{input:{enableConnectivity:e}},visibleElements:{connectivityAssociationsSettings:t}}=this;if(t)return f(`calcite-block-section`,{class:_.blockSectionSettings,text:e},f(p,{id:`${this.id}-symbol-picker-connectivity`,lineSymbol:this.connectivityAssociationsLineSymbol,showArrows:this.showArrowsConnectivity,visibleElements:t}))}_renderConnectivityAssociationsToggle(){let{messages:{input:{enableConnectivity:e}}}=this;return f(`div`,{class:_.labelAndToggle,key:`connectivityAssociationsToggleDiv`},f(`calcite-label`,{class:_.label},e),f(`calcite-switch`,{bind:this,checked:this.includeConnectivityAssociations,disabled:!this._associationsOptionsEnabled&&this.autoRefreshAssociations,onCalciteSwitchChange:this._connectivityAssociationsSwitchChange}))}_renderComboboxItem({heading:e,value:t,selected:n}){return f(`calcite-combobox-item`,{class:_.comboboxItem,heading:e,selected:n,value:t})}_renderContent(){let{viewModel:{loadErrors:e,state:t}}=this;return t===`disabled`?f(`div`,{class:_.divControlsMain,key:`loadErrorsDiv`},e.items.map(this._getLoadErrorMessagesAsNotices)):f(`calcite-panel`,{class:_.panel,disabled:t===`loading`},f(`div`,{class:_.divControlsMain},this._renderConnectivityAssociationsToggle(),this._renderStructuralAttachmentAssociationsToggle(),this._renderSettingsPane()))}_renderLoadingIcon(){let{messagesCommon:{executing:e,loading:t},viewModel:{state:n}}=this,r=`${this.id}-status-action`;return f(`calcite-action`,{class:_.statusIconWarning,icon:`spinner`,id:r,loading:!0,scale:`s`,slot:`actions-end`,text:n===`executing`?e:t})}_renderMaxAllowableAssociationsSlider(){let{messages:{input:{maxAllowableAssociations:e}},visibleElements:{maxAllowableAssociationsSlider:t}}=this;if(t)return f(`div`,{class:_.labelAndSlider,key:`maxAllowableAssociationsSliderDiv`},f(`calcite-label`,{class:_.label},e),f(`calcite-slider`,{bind:this,class:_.slider,labelTicks:!0,max:this.maxAllowableAssociationsSliderMax,min:this.maxAllowableAssociationsSliderMin,scale:`s`,snap:!0,step:this.maxAllowableAssociationsSliderStep,ticks:this.maxAllowableAssociationsSliderStep,value:this.maxAllowableAssociations,onCalciteSliderChange:this._maxAllowableAssociationsSliderChange}))}_renderRefreshAssociationsAction(){let{messages:{input:{refreshAssociations:e}},viewModel:{state:t}}=this,n=`${this.id}-refresh-action`;return f(`calcite-action`,{bind:this,class:_.action,disabled:t===`disabled`,icon:`refresh-f`,id:n,loading:t===`loading`,slot:`actions-end`,text:e,onclick:this._refreshAssociations})}_renderRefreshAssociationsActionTooltip(){let{messages:{input:{refreshAssociations:e}}}=this,t=`${this.id}-refresh-action`;return f(`calcite-tooltip`,{overlayPositioning:`fixed`,referenceElement:t,topLayerDisabled:this.topLayerDisabled},e)}_renderSettingsPane(){let{messagesCommon:{settings:e},visibleElements:{maxAllowableAssociationsSlider:t,connectivityAssociationsSettings:n,structuralAttachmentAssociationsSettings:r}}=this;if((this.view?.map).utilityNetworks?.items?.length!==1||t||n||r)return f(`calcite-block`,{class:_.blockContent,expandable:!0,heading:e},f(`div`,{class:_.divControlsMain},this._renderUtilityNetworkSettings(),this._renderMaxAllowableAssociationsSlider()),this._renderConnectivityAssociationsSettings(),this._renderStructuralAttachmentAssociationsSettings())}_renderShowAssociationsSwitch(){let{viewModel:{state:e}}=this,t=`${this.id}-show-associations-switch`;return f(`calcite-switch`,{bind:this,checked:this.showAssociationsEnabled,class:_.switch,disabled:e===`disabled`,id:t,slot:`actions-end`,onCalciteSwitchChange:this._showAssociationsSwitchChange})}_renderShowAssociationsTooltip(){let{messages:{input:{enableAssociations:e}}}=this,t=`${this.id}-show-associations-switch`;return f(`calcite-tooltip`,{referenceElement:t,topLayerDisabled:this.topLayerDisabled},e)}_renderStatusIcon(){let{viewModel:{state:e}}=this;switch(e){case`disabled`:case`warning`:return this._renderWarningIcon();case`loading`:case`executing`:return this._renderLoadingIcon();default:return}}_renderStatusIconTooltip(){let{messagesCommon:{executing:e,loading:t},viewModel:{state:n}}=this,r=`${this.id}-status-action`;return f(`calcite-tooltip`,{overlayPositioning:`fixed`,referenceElement:r,topLayerDisabled:this.topLayerDisabled},n===`executing`?e:t)}_renderStructuralAttachmentAssociationsSettings(){let{messages:{input:{enableStructuralAttachment:e}},visibleElements:{structuralAttachmentAssociationsSettings:t}}=this;if(t)return f(`calcite-block-section`,{class:_.blockSectionSettings,text:e},f(p,{id:`${this.id}-symbol-picker-structural-attachment`,lineSymbol:this.structuralAttachmentAssociationsLineSymbol,showArrows:this.showArrowsStructuralAttachment,visibleElements:t}))}_renderStructuralAttachmentAssociationsToggle(){let{messages:{input:{enableStructuralAttachment:e}}}=this;return f(`div`,{class:_.labelAndToggle,key:`structuralAttachmentAssociationsToggleDiv`},f(`calcite-label`,{class:_.label},e),f(`calcite-switch`,{bind:this,checked:this.includeStructuralAttachmentAssociations,disabled:!this._associationsOptionsEnabled&&this.autoRefreshAssociations,onCalciteSwitchChange:this._structuralAttAssociationsSwitchChange}))}_renderUtilityNetworkSettings(){let{messages:{input:{utilityNetwork:e}}}=this,t=(this.view?.map).utilityNetworks?.items;if(t?.length===1)return null;let n=t?.map(e=>{let t=e.title,n=e.layerUrl,r=e.layerUrl===this.utilityNetwork?.layerUrl;return this._renderComboboxItem({heading:t,value:n,selected:r})});return f(`div`,{class:_.labelAndCombobox,key:`utilityNetworkComboboxDiv`},f(`calcite-label`,{class:_.label},e),f(`calcite-combobox`,{class:_.combobox,clearDisabled:!0,label:``,maxItems:3,overlayPositioning:`fixed`,selectionMode:`single-persist`,topLayerDisabled:this.topLayerDisabled,onCalciteComboboxChange:e=>{let n=t?.find(t=>t.layerUrl===e.currentTarget.value);this.utilityNetwork=n}},n))}_showAssociationsSwitchChange({currentTarget:e}){let{viewModel:t}=this;this.showAssociationsEnabled=e.checked,this._associationsOptionsEnabled=e.checked,this.showAssociationsEnabled||t.removeAssociations()}_structuralAttAssociationsSwitchChange(e){this.includeStructuralAttachmentAssociations=e.currentTarget.checked}_renderWarningIcon(){let e=`${this.id}-warning-action`;return f(`calcite-icon`,{class:_.statusIconWarning,icon:`exclamation-mark-triangle`,id:e,scale:`s`,slot:`actions-end`})}_renderWarningIconTooltip(){let{viewModel:{executionError:e,state:t}}=this,n=`${this.id}-warning-action`;switch(t){case`warning`:return f(`calcite-tooltip`,{referenceElement:n,topLayerDisabled:this.topLayerDisabled},e);default:return}}};e([o()],v.prototype,`autoRefreshAssociations`,null),e([o({type:c})],v.prototype,`connectivityAssociationsLineSymbol`,null),e([o()],v.prototype,`icon`,null),e([o()],v.prototype,`includeConnectivityAssociations`,null),e([o()],v.prototype,`includeStructuralAttachmentAssociations`,null),e([o()],v.prototype,`label`,null),e([o()],v.prototype,`maxAllowableAssociations`,null),e([o()],v.prototype,`maxAllowableAssociationsSliderMax`,null),e([o()],v.prototype,`maxAllowableAssociationsSliderMin`,null),e([o()],v.prototype,`maxAllowableAssociationsSliderStep`,null),e([o(),d(`esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations`)],v.prototype,`messages`,void 0),e([o(),d(`esri/t9n/common`)],v.prototype,`messagesCommon`,void 0),e([o()],v.prototype,`showArrowsConnectivity`,null),e([o()],v.prototype,`showArrowsStructuralAttachment`,null),e([o()],v.prototype,`showAssociationsEnabled`,null),e([o({type:c})],v.prototype,`structuralAttachmentAssociationsLineSymbol`,null),e([o()],v.prototype,`utilityNetwork`,null),e([o()],v.prototype,`view`,null),e([o({type:m})],v.prototype,`viewModel`,void 0),e([o({type:h,nonNullable:!0})],v.prototype,`visibleElements`,void 0),v=e([s(`esri.widgets.UtilityNetworkAssociations`)],v);const y=v;export{y as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{substitute as t}from"../../intl.js";import n from"../../core/Collection.js";import{watch as r}from"../../core/reactiveUtils.js";import{throttle as i}from"../../core/throttle.js";import{property as a,subclass as o}from"../../core/accessorSupport/decorators.js";import{getGraphicLayer as s}from"../../graphic/graphicOriginUtils.js";import{fetchMessageBundle as c}from"../../intl/messages.js";import{isFeatureLayer as l,isSubtypeSublayer as u}from"../../layers/support/layerUtils.js";import{UtilityNetworkAssociationsContent as d}from"../../popup/content.js";import{substituteActionImage as f,getActionStyles as p}from"../../support/actions/actionUtils.js";import m from"../Feature.js";import h from"../Spinner.js";import g from"../Widget.js";import{css as _}from"../Feature/resources.js";import{FeatureContentMixin as v}from"../Feature/support/FeatureContentMixin.js";import{css as y}from"../Features/css.js";import b from"../Features/FeaturesViewModel.js";import{ActionsCollection as x}from"../Popup/actions.js";import{zoomToLocation as S}from"../Popup/actionUtils.js";import{loadCalciteComponents as C}from"../support/componentsUtils.js";import{globalCss as w}from"../support/globalCss.js";import{Heading as T}from"../support/Heading.js";import{tsx as E,messageBundle as D,vmEvent as O}from"../support/widget.js";import k from"./UtilityNetworkTraceFeaturesDrillIn.js";const A=`features-spinner`,j=`esri-utility-network-trace`,M={blockContainer:`${j}__block-container`,blockContent:`${j}__block-content`,featureContent:`${j}__feature-content`,paddingBottom:`${j}__pad-bottom`,paddingTop:`${j}__pad-top`};let N=class extends v(g){constructor(e,t){super(e,t),this._actionBarMenuNode=null,this._drillInFlowItems=new n,this._drillInWidget=new k({flowItems:this._drillInFlowItems}),this._feature=null,this._featureMenuViewportNode=null,this._spinner=null,this._utilityNetworkTraceMessages=null,this.featureNavigationTop=!1,this.headerActions=new x,this.headingLevel=2,this.messages=null,this.messagesCommon=null,this.responsiveActionsEnabled=!1,this.viewModel=new b({suppressDeprecationWarning:!0}),this._renderAction=(e,t)=>{let n=this._getActionTitle(e),{type:r,active:i,uid:a,disabled:o,indicator:s}=e;return e.visible?E(`calcite-action`,{active:r===`toggle`&&e.value,bind:this,"data-action-uid":a,disabled:e.id===`zoom-to-feature`?!this.feature.geometry:o,icon:this._getActionIcon(e),indicator:s,key:`action-${t}`,loading:i,scale:`s`,text:n,title:this._hideActionText?n:void 0,onclick:this._triggerAction},this._renderFallbackIcon(e)):null},this._renderAddNsoBlock=()=>{let{_utilityNetworkTraceMessages:e,messagesCommon:t}=this;return E(`calcite-block`,{class:M.blockContent,expanded:!this.feature,heading:e?.inputsStrings.addNonspatialOption},E(`calcite-action`,{icon:`x`,slot:`actions-end`,text:t.close,onclick:()=>this.emit(`close-un-trace-feature-block`)}),E(`calcite-notice`,{icon:`information`,kind:`info`,open:!this.feature},E(`div`,{slot:`message`},e?.inputsStrings.addNonspatialHint)))},this._renderNoPopupErrorBlock=()=>{let{_utilityNetworkTraceMessages:e,messagesCommon:t}=this;return E(`calcite-block`,{description:void 0,expanded:!0,heading:this.mode===`show-feature-info`?t.warning:void 0},E(`calcite-notice`,{class:this.classes(M.paddingBottom,M.paddingTop),icon:`exclamation-mark-triangle`,kind:`danger`,open:!0},E(`div`,{slot:`message`},e.alertsStrings.noPopupConfigured)),this.mode===`show-feature-info`?E(`calcite-action`,{icon:`x`,slot:`actions-end`,text:t.close,onclick:()=>this.emit(`close-un-trace-feature-block`)}):void 0)},this._displaySpinnerThrottled=i(()=>this._displaySpinner(),0),this.addHandles([this._displaySpinnerThrottled,r(()=>this.viewModel?.active,e=>this._drillInWidget.closed=!e),r(()=>this.viewModel?.view,(e,t)=>this._viewChange(e,t)),r(()=>this.viewModel?.view?.ready,(e,t)=>this._viewReadyChange(e??!1,t??!1)),r(()=>[this.viewModel?.waitingForResult,this.viewModel?.location],()=>{this._hideSpinner(),this._displaySpinnerThrottled()}),r(()=>this.viewModel?.screenLocation,()=>this._closeOpenActionMenu()),r(()=>this.selectedFeatureWidget,()=>this._destroyDrillInFlowItemWidgets()),r(()=>{let e=this.selectedFeatureWidget?.viewModel;return[e?.title,e?.state]},()=>this._setTitleFromFeatureWidget()),r(()=>{let e=this.selectedFeatureWidget?.viewModel;return[e?.content,e?.state]},()=>this._setContentFromFeatureWidget()),r(()=>this.viewModel?.featureViewModels,()=>this._featureMenuViewportScrollTop()),this._drillInWidget.on(`close`,()=>{this.emit(`close`)}),this._drillInWidget.on(`exit`,()=>this._destroyDrillInFlowItemWidgets()),this._drillInWidget.on(`open-feature`,({feature:e})=>this._openRelatedFeature(e)),this._drillInWidget.on(`zoom-to-feature`,({featureWidget:e})=>S(this.viewModel,e)),this._drillInWidget.on(`add-nso-trace-location`,({featureWidget:e})=>this.emit(`add-nso-trace-location`,{featureWidget:e}))])}initialize(){(async()=>{this._utilityNetworkTraceMessages=await c(`esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace`)})(),this._drillInWidget.mode=this.mode,this._drillInWidget.closable=!1}loadDependencies(){return C({action:()=>import(`@esri/calcite-components/dist/components/calcite-action`),"action-bar":()=>import(`@esri/calcite-components/dist/components/calcite-action-bar`),"action-group":()=>import(`@esri/calcite-components/dist/components/calcite-action-group`),block:()=>import(`@esri/calcite-components/dist/components/calcite-block`),flow:()=>import(`@esri/calcite-components/dist/components/calcite-flow`),"flow-item":()=>import(`@esri/calcite-components/dist/components/calcite-flow-item`),notice:()=>import(`@esri/calcite-components/dist/components/calcite-notice`)})}destroy(){this._destroyDrillInFlowItemWidgets(),this._destroySelectedFeatureWidget(),this._destroySpinner(),this._drillInWidget?.destroy()}get _hideActionText(){if(!this.responsiveActionsEnabled)return!1;let e=this.view?.widthBreakpoint;return e===`xsmall`||e===`small`||e===`medium`}get active(){return this.viewModel.active}get content(){return this.viewModel.content}set content(e){this.viewModel.content=e}get feature(){return this.viewModel.features.length?this.viewModel.features[0]:null}set feature(e){e?this.viewModel.features=[e]:this.viewModel.features=[]}get goToOverride(){return this.viewModel.goToOverride}set goToOverride(e){this.viewModel.goToOverride=e}get hasAssociationsPopupElement(){if(!this.feature)return!1;let e=s(this.feature),t=e&&l(e)?e:void 0,n=u(e)?e:void 0,r=(t?.popupTemplate||n?.popupTemplate||null)?.content;return!(Array.isArray(r)&&!r.some(e=>e instanceof d))}get hasPopupInfo(){let e=this.feature?s(this.feature):null,t=e&&l(e)?e:void 0,n=u(e)?e:void 0;return!(!t?.popupTemplate&&!n?.popupTemplate)}get location(){return this.viewModel.location}set location(e){this.viewModel.location=e}get mode(){return this._get(`mode`)||`add-nso`}set mode(e){this._set(`mode`,e)}get promises(){return this.viewModel.promises}set promises(e){this.viewModel.promises=e}get selectedFeature(){return this.viewModel.selectedFeature}get selectedDrillInFeature(){let e=Array.from(this._drillInFlowItems).at(-1);if(!e)return null;let{flowType:t}=e;return t===`feature-association`||t===`feature-relationship`?e.graphic??null:null}get selectedFeatureWidget(){let{_feature:e,headingLevel:t,_drillInFlowItems:n,timeZone:r}=this,{selectedFeatureViewModel:i}=this.viewModel,a={title:!1};return i?(e?(e.viewModel=i,e.visibleElements=a):this._feature=new m({flowItems:n,headingLevel:t+1,timeZone:r,viewModel:i,visibleElements:a}),this._feature):null}get timeZone(){return this.viewModel.timeZone}set timeZone(e){this.viewModel.timeZone=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}open(e){this.removeHandles(`selected-index`),this.viewModel.open({features:[e]})}triggerAction(e){return this.viewModel.triggerAction(e)}render(){return E(`div`,{bind:this,class:this.classes(y.base,w.widget,w.panel,M.blockContainer)},this.mode===`add-nso`?this._renderAddNsoBlock():void 0,this.feature?this.hasPopupInfo?this._renderContentContainer():this._renderNoPopupErrorBlock():void 0)}_renderActionBar(){return this.viewModel.allActions?.length?E(`calcite-action-bar`,{expandDisabled:!0,expanded:!this._hideActionText,key:`header-action-bar`,scale:`s`,slot:`action-bar`},E(`calcite-action-group`,{afterCreate:e=>this._actionBarMenuNode=e,overlayPositioning:`fixed`,scale:`s`},this._renderActions())):null}_renderActions(){return this.viewModel.allActions.toArray().map(this._renderAction)}_renderContent(){let e=this.viewModel?.content;return e?typeof e==`string`?E(`div`,{class:_.contentNode,innerHTML:e,key:e}):this.renderNodeContent(e):null}_renderContentContainer(){let e=[this._renderContentFeature(),this._drillInWidget.render()];return E(`calcite-flow`,{key:`content-container`},e)}_renderContentFeature(){let{_drillInFlowItems:e,headingLevel:t,featureNavigationTop:n}=this,{title:r,active:i}=this.viewModel,a=r||``;return E(`calcite-flow-item`,{bind:this,class:this.classes({[y.contentFeature]:!0}),closed:!i,collapseDirection:n?`down`:`up`,headingLevel:t,key:`root-flow-item`,loading:this.viewModel.waitingForContents,selected:e.length===0},this.mode===`show-feature-info`?E(`calcite-action`,{icon:`x`,slot:`header-actions-end`,text:this.messagesCommon.close,onclick:()=>{this.emit(`close`)}}):void 0,a?E(T,{class:this.classes(y.featuresHeading,w.heading),innerHTML:a,key:`header-content`,level:this.headingLevel,slot:`header-content`}):null,this._renderHeaderActions(),this._renderActionBar(),E(`div`,{class:this.mode===`add-nso`?this.classes(y.container,y.contentContainer):this.classes(y.container,y.contentContainer,M.featureContent)},this._renderContent()))}_renderFallbackIcon(e){let{className:t,icon:n}=e;if(n)return null;let r=f({action:e,feature:this.selectedFeature}),i={[y.icon]:!!t,[y.actionImage]:!!r};return t&&(i[t]=!0),r||t?E(`span`,{"aria-hidden":`true`,class:this.classes(y.icon,i),key:`icon`,styles:p(r)}):null}_renderHeaderAction(e,t){let n=e.title||``;return e.visible?E(`calcite-action`,{active:e.type===`toggle`&&e.value,bind:this,"data-action-uid":e.uid,disabled:e.disabled||!this.feature.geometry,icon:e.icon??void 0,indicator:e.indicator,key:`header-action-${t}`,loading:e.active,slot:`header-actions-end`,text:n,title:n,onclick:this._triggerHeaderAction}):null}_renderHeaderActions(){return this.headerActions.map((e,t)=>this._renderHeaderAction(e,t)).toArray()}_closeOpenActionMenu(){let{_actionBarMenuNode:e}=this;e&&(e.menuOpen=!1)}_createSpinner(e){e&&(this._spinner=new h({view:e}),e.ui.add(this._spinner,{key:A,position:`manual`,internal:!0}))}_destroyDrillInFlowItemWidgets(){this._drillInFlowItems.drain(e=>{`showAllEnabled`in e.viewModel&&(e.viewModel.showAllEnabled=!1),e.viewModel=null,e.destroy()})}_destroySelectedFeatureWidget(){let{_feature:e}=this;e&&(e.viewModel=null,!e.destroyed&&e.destroy()),this._feature=null}_destroySpinner(){let{_spinner:e,view:t}=this;e&&(t?.ui?.remove(e,A),e.destroy(),this._spinner=null)}_displaySpinner(){let{_spinner:e}=this;if(!e)return;let{location:t,waitingForResult:n}=this.viewModel;n&&t?e.show({location:t}):e.hide()}_featureMenuViewportScrollTop(){this._featureMenuViewportNode?.scrollContentTo({top:0})}_getActionIcon(e){if(e.icon)return e.icon;if(!e.image&&!e.className)return`question`}_getActionTitle(e){let{messages:n,selectedFeature:r,messagesCommon:i}=this,{id:a}=e,o=r?.attributes,s=e.title??``,c=a===`zoom-to-feature`?t(s,{messages:n}):a===`remove-selected-feature`?t(s,{messages:i}):a===`zoom-to-clustered-features`||a===`browse-clustered-features`?t(s,{messages:n}):e.title;return c&&o?t(c,o):c??``}_hideSpinner(){let{_spinner:e}=this;e&&(e.location=null,e.hide())}async _openRelatedFeature(e){await e.viewModel.updateGeometry();let t=e.graphic,n=t?.geometry;n!=null&&t!=null&&(this._destroyDrillInFlowItemWidgets(),await this.viewModel.zoomTo({target:n}),this.open(t))}_setContentFromFeatureWidget(){let{selectedFeatureWidget:e}=this;e&&(this.viewModel.content=e)}_setTitleFromFeatureWidget(){let{selectedFeatureWidget:e,messagesCommon:t}=this,n=e?.viewModel;e&&(this.viewModel.title=n?.state===`error`?t?.errorMessage:n?.title||``)}_triggerAction(e){let t=e.currentTarget;if(t.disabled)return;let n=t.dataset.actionUid,{allActions:r}=this.viewModel,i=r.findIndex(e=>e.uid===n),a=r.at(i);a?.type===`toggle`&&(a.value=!a.value),this.viewModel.triggerAction(i)}_triggerHeaderAction(e){let t=e.currentTarget;if(t.disabled)return;let n=t.dataset.actionUid,r=this.headerActions.find(({uid:e})=>e===n);r&&!r.disabled&&(r?.type===`toggle`&&(r.value=!r.value),this.emit(`trigger-header-action`,{action:r}))}_viewReadyChange(e,t){e?this._wireUpView(this.viewModel?.view):t&&this.viewModel.clear()}_viewChange(e,t){e&&t&&this.viewModel.clear()}_wireUpView(e){this._destroySpinner(),e&&this._createSpinner(e)}};e([a()],N.prototype,`_drillInFlowItems`,void 0),e([a()],N.prototype,`_hideActionText`,null),e([a({readOnly:!0})],N.prototype,`active`,null),e([a()],N.prototype,`content`,null),e([a()],N.prototype,`feature`,null),e([a()],N.prototype,`featureNavigationTop`,void 0),e([a()],N.prototype,`goToOverride`,null),e([a()],N.prototype,`hasAssociationsPopupElement`,null),e([a()],N.prototype,`hasPopupInfo`,null),e([a({type:x})],N.prototype,`headerActions`,void 0),e([a()],N.prototype,`headingLevel`,void 0),e([a()],N.prototype,`location`,null),e([a(),D(`esri/widgets/Features/t9n/Features`)],N.prototype,`messages`,void 0),e([a(),D(`esri/t9n/common`)],N.prototype,`messagesCommon`,void 0),e([a()],N.prototype,`mode`,null),e([a()],N.prototype,`promises`,null),e([a()],N.prototype,`responsiveActionsEnabled`,void 0),e([a({readOnly:!0})],N.prototype,`selectedFeature`,null),e([a({readOnly:!0})],N.prototype,`selectedDrillInFeature`,null),e([a({readOnly:!0})],N.prototype,`selectedFeatureWidget`,null),e([a()],N.prototype,`timeZone`,null),e([a()],N.prototype,`view`,null),e([a({type:b}),O([`triggerAction`,`trigger-action`])],N.prototype,`viewModel`,void 0),N=e([o(`esri.widgets.UtilityNetworkTrace.UtilityNetworkTraceFeature`)],N);const P=N;export{P as default};
2
+ import{__decorate as e}from"tslib";import{substitute as t}from"../../intl.js";import n from"../../core/Collection.js";import{watch as r}from"../../core/reactiveUtils.js";import{throttle as i}from"../../core/throttle.js";import{property as a,subclass as o}from"../../core/accessorSupport/decorators.js";import{getGraphicLayer as s}from"../../graphic/graphicOriginUtils.js";import{fetchMessageBundle as c}from"../../intl/messages.js";import{isFeatureLayer as l,isSubtypeSublayer as u}from"../../layers/support/layerUtils.js";import{UtilityNetworkAssociationsContent as d}from"../../popup/content.js";import{substituteActionImage as f,getActionStyles as p}from"../../support/actions/actionUtils.js";import m from"../Feature.js";import h from"../Spinner.js";import g from"../Widget.js";import{css as _}from"../Feature/resources.js";import{FeatureContentMixin as v}from"../Feature/support/FeatureContentMixin.js";import{css as y}from"../Features/css.js";import b from"../Features/FeaturesViewModel.js";import{ActionsCollection as x}from"../Popup/actions.js";import{zoomToLocation as S}from"../Popup/actionUtils.js";import{loadCalciteComponents as C}from"../support/componentsUtils.js";import{globalCss as w}from"../support/globalCss.js";import{Heading as T}from"../support/Heading.js";import{tsx as E,messageBundle as D,vmEvent as O}from"../support/widget.js";import k from"./UtilityNetworkTraceFeaturesDrillIn.js";const A=`features-spinner`,j=`esri-utility-network-trace`,M={blockContainer:`${j}__block-container`,blockContent:`${j}__block-content`,featureContent:`${j}__feature-content`,paddingBottom:`${j}__pad-bottom`,paddingTop:`${j}__pad-top`};let N=class extends v(g){constructor(e,t){super(e,t),this._actionBarMenuNode=null,this._drillInFlowItems=new n,this._drillInWidget=new k({flowItems:this._drillInFlowItems}),this._feature=null,this._featureMenuViewportNode=null,this._spinner=null,this._utilityNetworkTraceMessages=null,this.featureNavigationTop=!1,this.headerActions=new x,this.headingLevel=2,this.messages=null,this.messagesCommon=null,this.responsiveActionsEnabled=!1,this.viewModel=new b({suppressDeprecationWarning:!0}),this._renderAction=(e,t)=>{let n=this._getActionTitle(e),{type:r,active:i,uid:a,disabled:o,indicator:s}=e;return e.visible?E(`calcite-action`,{active:r===`toggle`&&e.value,bind:this,"data-action-uid":a,disabled:e.id===`zoom-to-feature`?!this.feature.geometry:o,icon:this._getActionIcon(e),indicator:s,key:`action-${t}`,loading:i,scale:`s`,text:n,title:this._hideActionText?n:void 0,onclick:this._triggerAction},this._renderFallbackIcon(e)):null},this._renderAddNsoBlock=()=>{let{_utilityNetworkTraceMessages:e,messagesCommon:t}=this;return E(`calcite-block`,{class:M.blockContent,expanded:!this.feature,heading:e?.inputsStrings.addNonspatialOption},E(`calcite-action`,{icon:`x`,slot:`actions-end`,text:t.close,onclick:()=>this.emit(`close-un-trace-feature-block`)}),E(`calcite-notice`,{icon:`information`,kind:`info`,open:!this.feature},E(`div`,{slot:`message`},e?.inputsStrings.addNonspatialHint)))},this._renderNoPopupErrorBlock=()=>{let{_utilityNetworkTraceMessages:e,messagesCommon:t}=this;return E(`calcite-block`,{description:void 0,expanded:!0,heading:this.mode===`show-feature-info`?t.warning:void 0},E(`calcite-notice`,{class:this.classes(M.paddingBottom,M.paddingTop),icon:`exclamation-mark-triangle`,kind:`danger`,open:!0},E(`div`,{slot:`message`},e.alertsStrings.noPopupConfigured)),this.mode===`show-feature-info`?E(`calcite-action`,{icon:`x`,slot:`actions-end`,text:t.close,onclick:()=>this.emit(`close-un-trace-feature-block`)}):void 0)},this._displaySpinnerThrottled=i(()=>this._displaySpinner(),0),this.addHandles([this._displaySpinnerThrottled,r(()=>this.viewModel?.active,e=>this._drillInWidget.closed=!e),r(()=>this.viewModel?.view,(e,t)=>this._viewChange(e,t)),r(()=>this.viewModel?.view?.ready,(e,t)=>this._viewReadyChange(e??!1,t??!1)),r(()=>[this.viewModel?.waitingForResult,this.viewModel?.location],()=>{this._hideSpinner(),this._displaySpinnerThrottled()}),r(()=>this.viewModel?.screenLocation,()=>this._closeOpenActionMenu()),r(()=>this.selectedFeatureWidget,()=>this._destroyDrillInFlowItemWidgets()),r(()=>{let e=this.selectedFeatureWidget?.viewModel;return[e?.title,e?.state]},()=>this._setTitleFromFeatureWidget()),r(()=>{let e=this.selectedFeatureWidget?.viewModel;return[e?.content,e?.state]},()=>this._setContentFromFeatureWidget()),r(()=>this.viewModel?.featureViewModels,()=>this._featureMenuViewportScrollTop()),this._drillInWidget.on(`close`,()=>{this.emit(`close`)}),this._drillInWidget.on(`exit`,()=>this._destroyDrillInFlowItemWidgets()),this._drillInWidget.on(`open-feature`,({feature:e})=>this._openRelatedFeature(e)),this._drillInWidget.on(`zoom-to-feature`,({featureWidget:e})=>S(this.viewModel,e)),this._drillInWidget.on(`add-nso-trace-location`,({featureWidget:e})=>this.emit(`add-nso-trace-location`,{featureWidget:e}))])}initialize(){(async()=>{this._utilityNetworkTraceMessages=await c(`esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace`)})(),this._drillInWidget.mode=this.mode,this._drillInWidget.closable=!1}loadDependencies(){return C({action:()=>import(`@esri/calcite-components/dist/components/calcite-action`),"action-bar":()=>import(`@esri/calcite-components/dist/components/calcite-action-bar`),"action-group":()=>import(`@esri/calcite-components/dist/components/calcite-action-group`),block:()=>import(`@esri/calcite-components/dist/components/calcite-block`),flow:()=>import(`@esri/calcite-components/dist/components/calcite-flow`),"flow-item":()=>import(`@esri/calcite-components/dist/components/calcite-flow-item`),notice:()=>import(`@esri/calcite-components/dist/components/calcite-notice`)})}destroy(){this._destroyDrillInFlowItemWidgets(),this._destroySelectedFeatureWidget(),this._destroySpinner(),this._drillInWidget?.destroy()}get _hideActionText(){if(!this.responsiveActionsEnabled)return!1;let e=this.view?.widthBreakpoint;return e===`xsmall`||e===`small`||e===`medium`}get active(){return this.viewModel.active}get content(){return this.viewModel.content}set content(e){this.viewModel.content=e}get feature(){return this.viewModel.features.length?this.viewModel.features[0]:null}set feature(e){e?this.viewModel.features=[e]:this.viewModel.features=[]}get goToOverride(){return this.viewModel.goToOverride}set goToOverride(e){this.viewModel.goToOverride=e}get hasAssociationsPopupElement(){if(!this.feature)return!1;let e=s(this.feature),t=e&&l(e)?e:void 0,n=u(e)?e:void 0,r=(t?.popupTemplate||n?.popupTemplate||null)?.content;return!(Array.isArray(r)&&!r.some(e=>e instanceof d))}get hasPopupInfo(){let e=this.feature?s(this.feature):null,t=e&&l(e)?e:void 0,n=u(e)?e:void 0;return!(!t?.popupTemplate&&!n?.popupTemplate)}get location(){return this.viewModel.location}set location(e){this.viewModel.location=e}get mode(){return this._get(`mode`)||`add-nso`}set mode(e){this._set(`mode`,e)}get promises(){return this.viewModel.promises}set promises(e){this.viewModel.promises=e}get selectedFeature(){return this.viewModel.selectedFeature}get selectedDrillInFeature(){let e=Array.from(this._drillInFlowItems).at(-1);if(!e)return null;let{flowType:t}=e;return t===`feature-association`||t===`feature-relationship`?e.graphic??null:null}get selectedFeatureWidget(){let{_feature:e,headingLevel:t,_drillInFlowItems:n,timeZone:r}=this,{selectedFeatureViewModel:i}=this.viewModel,a={title:!1};return i?(e?(e.viewModel=i,e.visibleElements=a):this._feature=new m({flowItems:n,headingLevel:t+1,timeZone:r,viewModel:i,visibleElements:a}),this._feature):null}get timeZone(){return this.viewModel.timeZone}set timeZone(e){this.viewModel.timeZone=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}open(e){this.removeHandles(`selected-index`),this.viewModel.open({features:[e]})}triggerAction(e){return this.viewModel.triggerAction(e)}render(){return E(`div`,{bind:this,class:this.classes(y.base,w.widget,w.panel,M.blockContainer)},this.mode===`add-nso`?this._renderAddNsoBlock():void 0,this.feature?this.hasPopupInfo?this._renderContentContainer():this._renderNoPopupErrorBlock():void 0)}_renderActionBar(){return this.viewModel.allActions?.length?E(`calcite-action-bar`,{expanded:!this._hideActionText,expandToggleDisabled:!0,key:`header-action-bar`,scale:`s`,slot:`action-bar`},E(`calcite-action-group`,{afterCreate:e=>this._actionBarMenuNode=e,overlayPositioning:`fixed`,scale:`s`},this._renderActions())):null}_renderActions(){return this.viewModel.allActions.toArray().map(this._renderAction)}_renderContent(){let e=this.viewModel?.content;return e?typeof e==`string`?E(`div`,{class:_.contentNode,innerHTML:e,key:e}):this.renderNodeContent(e):null}_renderContentContainer(){let e=[this._renderContentFeature(),this._drillInWidget.render()];return E(`calcite-flow`,{key:`content-container`},e)}_renderContentFeature(){let{_drillInFlowItems:e,headingLevel:t,featureNavigationTop:n}=this,{title:r,active:i}=this.viewModel,a=r||``;return E(`calcite-flow-item`,{bind:this,class:this.classes({[y.contentFeature]:!0}),closed:!i,collapseDirection:n?`down`:`up`,headingLevel:t,key:`root-flow-item`,loading:this.viewModel.waitingForContents,selected:e.length===0},this.mode===`show-feature-info`?E(`calcite-action`,{icon:`x`,slot:`header-actions-end`,text:this.messagesCommon.close,onclick:()=>{this.emit(`close`)}}):void 0,a?E(T,{class:this.classes(y.featuresHeading,w.heading),innerHTML:a,key:`header-content`,level:this.headingLevel,slot:`header-content`}):null,this._renderHeaderActions(),this._renderActionBar(),E(`div`,{class:this.mode===`add-nso`?this.classes(y.container,y.contentContainer):this.classes(y.container,y.contentContainer,M.featureContent)},this._renderContent()))}_renderFallbackIcon(e){let{className:t,icon:n}=e;if(n)return null;let r=f({action:e,feature:this.selectedFeature}),i={[y.icon]:!!t,[y.actionImage]:!!r};return t&&(i[t]=!0),r||t?E(`span`,{"aria-hidden":`true`,class:this.classes(y.icon,i),key:`icon`,styles:p(r)}):null}_renderHeaderAction(e,t){let n=e.title||``;return e.visible?E(`calcite-action`,{active:e.type===`toggle`&&e.value,bind:this,"data-action-uid":e.uid,disabled:e.disabled||!this.feature.geometry,icon:e.icon??void 0,indicator:e.indicator,key:`header-action-${t}`,loading:e.active,slot:`header-actions-end`,text:n,title:n,onclick:this._triggerHeaderAction}):null}_renderHeaderActions(){return this.headerActions.map((e,t)=>this._renderHeaderAction(e,t)).toArray()}_closeOpenActionMenu(){let{_actionBarMenuNode:e}=this;e&&(e.menuOpen=!1)}_createSpinner(e){e&&(this._spinner=new h({view:e}),e.ui.add(this._spinner,{key:A,position:`manual`,internal:!0}))}_destroyDrillInFlowItemWidgets(){this._drillInFlowItems.drain(e=>{`showAllEnabled`in e.viewModel&&(e.viewModel.showAllEnabled=!1),e.viewModel=null,e.destroy()})}_destroySelectedFeatureWidget(){let{_feature:e}=this;e&&(e.viewModel=null,!e.destroyed&&e.destroy()),this._feature=null}_destroySpinner(){let{_spinner:e,view:t}=this;e&&(t?.ui?.remove(e,A),e.destroy(),this._spinner=null)}_displaySpinner(){let{_spinner:e}=this;if(!e)return;let{location:t,waitingForResult:n}=this.viewModel;n&&t?e.show({location:t}):e.hide()}_featureMenuViewportScrollTop(){this._featureMenuViewportNode?.scrollContentTo({top:0})}_getActionIcon(e){if(e.icon)return e.icon;if(!e.image&&!e.className)return`question`}_getActionTitle(e){let{messages:n,selectedFeature:r,messagesCommon:i}=this,{id:a}=e,o=r?.attributes,s=e.title??``,c=a===`zoom-to-feature`?t(s,{messages:n}):a===`remove-selected-feature`?t(s,{messages:i}):a===`zoom-to-clustered-features`||a===`browse-clustered-features`?t(s,{messages:n}):e.title;return c&&o?t(c,o):c??``}_hideSpinner(){let{_spinner:e}=this;e&&(e.location=null,e.hide())}async _openRelatedFeature(e){await e.viewModel.updateGeometry();let t=e.graphic,n=t?.geometry;n!=null&&t!=null&&(this._destroyDrillInFlowItemWidgets(),await this.viewModel.zoomTo({target:n}),this.open(t))}_setContentFromFeatureWidget(){let{selectedFeatureWidget:e}=this;e&&(this.viewModel.content=e)}_setTitleFromFeatureWidget(){let{selectedFeatureWidget:e,messagesCommon:t}=this,n=e?.viewModel;e&&(this.viewModel.title=n?.state===`error`?t?.errorMessage:n?.title||``)}_triggerAction(e){let t=e.currentTarget;if(t.disabled)return;let n=t.dataset.actionUid,{allActions:r}=this.viewModel,i=r.findIndex(e=>e.uid===n),a=r.at(i);a?.type===`toggle`&&(a.value=!a.value),this.viewModel.triggerAction(i)}_triggerHeaderAction(e){let t=e.currentTarget;if(t.disabled)return;let n=t.dataset.actionUid,r=this.headerActions.find(({uid:e})=>e===n);r&&!r.disabled&&(r?.type===`toggle`&&(r.value=!r.value),this.emit(`trigger-header-action`,{action:r}))}_viewReadyChange(e,t){e?this._wireUpView(this.viewModel?.view):t&&this.viewModel.clear()}_viewChange(e,t){e&&t&&this.viewModel.clear()}_wireUpView(e){this._destroySpinner(),e&&this._createSpinner(e)}};e([a()],N.prototype,`_drillInFlowItems`,void 0),e([a()],N.prototype,`_hideActionText`,null),e([a({readOnly:!0})],N.prototype,`active`,null),e([a()],N.prototype,`content`,null),e([a()],N.prototype,`feature`,null),e([a()],N.prototype,`featureNavigationTop`,void 0),e([a()],N.prototype,`goToOverride`,null),e([a()],N.prototype,`hasAssociationsPopupElement`,null),e([a()],N.prototype,`hasPopupInfo`,null),e([a({type:x})],N.prototype,`headerActions`,void 0),e([a()],N.prototype,`headingLevel`,void 0),e([a()],N.prototype,`location`,null),e([a(),D(`esri/widgets/Features/t9n/Features`)],N.prototype,`messages`,void 0),e([a(),D(`esri/t9n/common`)],N.prototype,`messagesCommon`,void 0),e([a()],N.prototype,`mode`,null),e([a()],N.prototype,`promises`,null),e([a()],N.prototype,`responsiveActionsEnabled`,void 0),e([a({readOnly:!0})],N.prototype,`selectedFeature`,null),e([a({readOnly:!0})],N.prototype,`selectedDrillInFeature`,null),e([a({readOnly:!0})],N.prototype,`selectedFeatureWidget`,null),e([a()],N.prototype,`timeZone`,null),e([a()],N.prototype,`view`,null),e([a({type:b}),O([`triggerAction`,`trigger-action`])],N.prototype,`viewModel`,void 0),N=e([o(`esri.widgets.UtilityNetworkTrace.UtilityNetworkTraceFeature`)],N);const P=N;export{P as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{__decorate as e}from"tslib";import{substitute as t}from"../../intl.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import{getGraphicLayer as i}from"../../graphic/graphicOriginUtils.js";import{fetchMessageBundle as a}from"../../intl/messages.js";import o from"../Widget.js";import{css as s}from"../Features/css.js";import{zoomToFeature as c}from"../Popup/actions.js";import{loadCalciteComponents as l}from"../support/componentsUtils.js";import{messageBundle as u,tsx as d,tsxFragment as f}from"../support/widget.js";const p=c.clone(),m={featureContent:`esri-utility-network-trace__feature-content`};let h=class extends o{constructor(e,t){super(e,t),this._utilityNetworkTraceMessages=null,this.closed=!1,this.closable=!0,this.messages=null,this.messagesCommon=null,this._handleAddNonspatialTraceLocation=e=>{this.emit(`add-nso-trace-location`,{featureWidget:e})},this._handleOpenFeature=e=>{this.emit(`open-feature`,{feature:e})},this._handleZoomToFeature=e=>{this.emit(`zoom-to-feature`,{featureWidget:e})}}initialize(){(async()=>{this._utilityNetworkTraceMessages=await a(`esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace`)})()}loadDependencies(){return l({action:()=>import(`@esri/calcite-components/dist/components/calcite-action`),"action-bar":()=>import(`@esri/calcite-components/dist/components/calcite-action-bar`),"action-group":()=>import(`@esri/calcite-components/dist/components/calcite-action-group`),"flow-item":()=>import(`@esri/calcite-components/dist/components/calcite-flow-item`)})}get mode(){return this._get(`mode`)||`show-feature-info`}set mode(e){this._set(`mode`,e)}render(){let{flowItems:e}=this,t=e?.toArray();return d(f,null,t?.map((t,n)=>this._renderFlowItem(t,n===e.length-1)))}_renderAddNonspatialTraceLocationAction(e){let{_utilityNetworkTraceMessages:t}=this;return d(`calcite-action`,{bind:this,icon:`utility-network-trace`,scale:`s`,text:t.inputsStrings.addNonspatialOption,textEnabled:!0,title:t.inputsStrings.addNonspatialOption,onclick:()=>this._handleAddNonspatialTraceLocation(e)})}_renderFlowItem(e,t){let{messages:n,closable:r,closed:a}=this,o=`graphic`in e&&!e.isTable,c=e.flowType===`feature-association`,l=this._getExitMessage(e),u=n.selectFeature,f=e,p=f&&f.graphic?i(f.graphic):null,h=!(p&&p.geometryType);return d(`calcite-flow-item`,{bind:this,closable:r,closed:a,description:this._getDrillInFlowItemDescription(e),heading:e.title??``,key:`flow-item-${e.viewModel.uid}`,selected:t,onCalciteFlowItemBack:e=>{e.preventDefault(),this._handleDrillInBackClick()}},d(`calcite-action`,{bind:this,class:s.actionExit,icon:`move-up`,key:`exit-action`,slot:`header-actions-start`,text:l,title:l,onclick:this._handleExitClick}),o?d(`calcite-action`,{bind:this,icon:`zoom-to-object`,key:`open-feature-action`,slot:`header-actions-end`,text:u,title:u,onclick:()=>this._handleOpenFeature(e)}):null,this.mode===`show-feature-info`?d(`calcite-action`,{icon:`x`,slot:`header-actions-end`,text:this.messagesCommon.close,onclick:()=>{this.emit(`close`)}}):void 0,c&&this.mode===`add-nso`?h?d(`calcite-action-bar`,{expandDisabled:!0,expanded:!0,key:`header-action-bar`,scale:`s`,slot:`action-bar`},d(`calcite-action-group`,{overlayPositioning:`fixed`,scale:`s`},this._renderAddNonspatialTraceLocationAction(e))):d(`calcite-action-bar`,{expandDisabled:!0,expanded:!0,key:`header-action-bar`,scale:`s`,slot:`action-bar`},d(`calcite-action-group`,{overlayPositioning:`fixed`,scale:`s`},this._renderZoomToFeatureAction(e))):null,d(`div`,{class:this.classes(s.container,m.featureContent)},e.render()))}_renderZoomToFeatureAction(e){let t=this._getActionTitle(p);return d(`calcite-action`,{active:p.active,bind:this,"data-action-uid":p.uid,disabled:p.disabled,icon:p.icon??`question`,indicator:p.indicator,key:`action-${p.uid}`,loading:p.active,scale:`s`,text:t,textEnabled:!0,title:t,onclick:()=>this._handleZoomToFeature(e)})}_getActionTitle(e){let{messages:n}=this,{id:r}=e,i=e.title??``;return r===`zoom-to-feature`?t(i,{messages:n}):i}_getDrillInFlowItemDescription(e){switch(e.flowType){case`feature`:case`feature-association`:case`feature-utility-network-associations`:return e.viewModel.description??``;case`feature-relationship`:return e.allItemsDescription;case`feature-utility-network-association-type`:return e.description??``}}_getExitMessage(e){switch(e.flowType){case`feature`:case`feature-association`:return``;case`feature-relationship`:return this.messages.exitRelatedRecords;case`feature-utility-network-associations`:case`feature-utility-network-association-type`:return this.messages.exitAssociations}}_handleDrillInBackClick(){let e=this.flowItems?.pop();e&&(`showAllEnabled`in e.viewModel&&(e.viewModel.showAllEnabled=!1),e&&(e.viewModel=null,e.destroy()))}_handleExitClick(){this.emit(`exit`)}};e([n()],h.prototype,`closed`,void 0),e([n()],h.prototype,`closable`,void 0),e([n()],h.prototype,`flowItems`,void 0),e([n(),u(`esri/widgets/Features/t9n/Features`)],h.prototype,`messages`,void 0),e([n(),u(`esri/t9n/common`)],h.prototype,`messagesCommon`,void 0),e([n()],h.prototype,`mode`,null),h=e([r(`esri.widgets.UtilityNetworkTrace.UtilityNetworkTraceFeaturesDrillIn`)],h);const g=h;export{g as default};
2
+ import{__decorate as e}from"tslib";import{substitute as t}from"../../intl.js";import{property as n,subclass as r}from"../../core/accessorSupport/decorators.js";import{getGraphicLayer as i}from"../../graphic/graphicOriginUtils.js";import{fetchMessageBundle as a}from"../../intl/messages.js";import o from"../Widget.js";import{css as s}from"../Features/css.js";import{zoomToFeature as c}from"../Popup/actions.js";import{loadCalciteComponents as l}from"../support/componentsUtils.js";import{messageBundle as u,tsx as d,tsxFragment as f}from"../support/widget.js";const p=c.clone(),m={featureContent:`esri-utility-network-trace__feature-content`};let h=class extends o{constructor(e,t){super(e,t),this._utilityNetworkTraceMessages=null,this.closed=!1,this.closable=!0,this.messages=null,this.messagesCommon=null,this._handleAddNonspatialTraceLocation=e=>{this.emit(`add-nso-trace-location`,{featureWidget:e})},this._handleOpenFeature=e=>{this.emit(`open-feature`,{feature:e})},this._handleZoomToFeature=e=>{this.emit(`zoom-to-feature`,{featureWidget:e})}}initialize(){(async()=>{this._utilityNetworkTraceMessages=await a(`esri/widgets/UtilityNetworkTrace/t9n/UtilityNetworkTrace`)})()}loadDependencies(){return l({action:()=>import(`@esri/calcite-components/dist/components/calcite-action`),"action-bar":()=>import(`@esri/calcite-components/dist/components/calcite-action-bar`),"action-group":()=>import(`@esri/calcite-components/dist/components/calcite-action-group`),"flow-item":()=>import(`@esri/calcite-components/dist/components/calcite-flow-item`)})}get mode(){return this._get(`mode`)||`show-feature-info`}set mode(e){this._set(`mode`,e)}render(){let{flowItems:e}=this,t=e?.toArray();return d(f,null,t?.map((t,n)=>this._renderFlowItem(t,n===e.length-1)))}_renderAddNonspatialTraceLocationAction(e){let{_utilityNetworkTraceMessages:t}=this;return d(`calcite-action`,{bind:this,icon:`utility-network-trace`,scale:`s`,text:t.inputsStrings.addNonspatialOption,textEnabled:!0,title:t.inputsStrings.addNonspatialOption,onclick:()=>this._handleAddNonspatialTraceLocation(e)})}_renderFlowItem(e,t){let{messages:n,closable:r,closed:a}=this,o=`graphic`in e&&!e.isTable,c=e.flowType===`feature-association`,l=this._getExitMessage(e),u=n.selectFeature,f=e,p=f&&f.graphic?i(f.graphic):null,h=!(p&&p.geometryType);return d(`calcite-flow-item`,{bind:this,closable:r,closed:a,description:this._getDrillInFlowItemDescription(e),heading:e.title??``,key:`flow-item-${e.viewModel.uid}`,selected:t,onCalciteFlowItemBack:e=>{e.preventDefault(),this._handleDrillInBackClick()}},d(`calcite-action`,{bind:this,class:s.actionExit,icon:`move-up`,key:`exit-action`,slot:`header-actions-start`,text:l,title:l,onclick:this._handleExitClick}),o?d(`calcite-action`,{bind:this,icon:`zoom-to-object`,key:`open-feature-action`,slot:`header-actions-end`,text:u,title:u,onclick:()=>this._handleOpenFeature(e)}):null,this.mode===`show-feature-info`?d(`calcite-action`,{icon:`x`,slot:`header-actions-end`,text:this.messagesCommon.close,onclick:()=>{this.emit(`close`)}}):void 0,c&&this.mode===`add-nso`?h?d(`calcite-action-bar`,{expanded:!0,expandToggleDisabled:!0,key:`header-action-bar`,scale:`s`,slot:`action-bar`},d(`calcite-action-group`,{overlayPositioning:`fixed`,scale:`s`},this._renderAddNonspatialTraceLocationAction(e))):d(`calcite-action-bar`,{expanded:!0,expandToggleDisabled:!0,key:`header-action-bar`,scale:`s`,slot:`action-bar`},d(`calcite-action-group`,{overlayPositioning:`fixed`,scale:`s`},this._renderZoomToFeatureAction(e))):null,d(`div`,{class:this.classes(s.container,m.featureContent)},e.render()))}_renderZoomToFeatureAction(e){let t=this._getActionTitle(p);return d(`calcite-action`,{active:p.active,bind:this,"data-action-uid":p.uid,disabled:p.disabled,icon:p.icon??`question`,indicator:p.indicator,key:`action-${p.uid}`,loading:p.active,scale:`s`,text:t,textEnabled:!0,title:t,onclick:()=>this._handleZoomToFeature(e)})}_getActionTitle(e){let{messages:n}=this,{id:r}=e,i=e.title??``;return r===`zoom-to-feature`?t(i,{messages:n}):i}_getDrillInFlowItemDescription(e){switch(e.flowType){case`feature`:case`feature-association`:case`feature-utility-network-associations`:return e.viewModel.description??``;case`feature-relationship`:return e.allItemsDescription;case`feature-utility-network-association-type`:return e.description??``}}_getExitMessage(e){switch(e.flowType){case`feature`:case`feature-association`:return``;case`feature-relationship`:return this.messages.exitRelatedRecords;case`feature-utility-network-associations`:case`feature-utility-network-association-type`:return this.messages.exitAssociations}}_handleDrillInBackClick(){let e=this.flowItems?.pop();e&&(`showAllEnabled`in e.viewModel&&(e.viewModel.showAllEnabled=!1),e&&(e.viewModel=null,e.destroy()))}_handleExitClick(){this.emit(`exit`)}};e([n()],h.prototype,`closed`,void 0),e([n()],h.prototype,`closable`,void 0),e([n()],h.prototype,`flowItems`,void 0),e([n(),u(`esri/widgets/Features/t9n/Features`)],h.prototype,`messages`,void 0),e([n(),u(`esri/t9n/common`)],h.prototype,`messagesCommon`,void 0),e([n()],h.prototype,`mode`,null),h=e([r(`esri.widgets.UtilityNetworkTrace.UtilityNetworkTraceFeaturesDrillIn`)],h);const g=h;export{g as default};
@@ -1,4 +1,4 @@
1
- import type { LinearUnit, AreaUnit } from "../../geometry/geometryEngineTypes.js";
1
+ import type { LengthUnit, AreaUnit } from "../../core/units.js";
2
2
  import type { GraphicColor } from "./UtilityNetworkTraceViewModel.js";
3
3
 
4
4
  /** @since 5.0 */
@@ -20,7 +20,7 @@ export interface ResultAreaProperties {
20
20
  *
21
21
  * @since 5.0
22
22
  */
23
- unit: LinearUnit;
23
+ unit: LengthUnit;
24
24
  /**
25
25
  * Units for area measurements.
26
26
  *