@arcgis/map-components 4.32.0-next.83 → 4.32.0-next.85

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 (216) hide show
  1. package/dist/arcgis-map-components/{Z2H33RAX.js → 2TNEAZAF.js} +2 -2
  2. package/dist/arcgis-map-components/{LAGUAHVX.js → 32WNMGSE.js} +2 -2
  3. package/dist/arcgis-map-components/{HZGL3SLW.js → 35HPYV25.js} +2 -2
  4. package/dist/arcgis-map-components/{LMQDVVYO.js → 3LZI4V7A.js} +2 -2
  5. package/dist/arcgis-map-components/{AWFYQPKD.js → 44SXKBON.js} +2 -2
  6. package/dist/arcgis-map-components/{PMRLGSCG.js → 4GMWGCYP.js} +2 -2
  7. package/dist/arcgis-map-components/{A6UASEWJ.js → 4OPF2YIS.js} +2 -2
  8. package/dist/arcgis-map-components/{VNWOPD5J.js → 564KMD2H.js} +2 -2
  9. package/dist/arcgis-map-components/{V7M5KB7D.js → 5TMK2FY7.js} +2 -2
  10. package/dist/arcgis-map-components/{SVWOQROO.js → 6ADYLVHO.js} +2 -2
  11. package/dist/arcgis-map-components/{733DYCVI.js → 6IUOO2CX.js} +2 -2
  12. package/dist/arcgis-map-components/{VZPTH3WC.js → 7XE2PHMN.js} +2 -2
  13. package/dist/arcgis-map-components/{QOBPPCP6.js → AHJ77DDX.js} +2 -2
  14. package/dist/arcgis-map-components/BO53EV22.js +4 -0
  15. package/dist/arcgis-map-components/{X7KWIITV.js → CCYD3GJL.js} +2 -2
  16. package/dist/arcgis-map-components/{FATDSUTZ.js → CF5DOP3R.js} +2 -2
  17. package/dist/arcgis-map-components/{BKTRWHQA.js → CSHTSK3A.js} +2 -2
  18. package/dist/arcgis-map-components/{UUUSXKHX.js → CZMG37KX.js} +2 -2
  19. package/dist/arcgis-map-components/{Z27NUIOA.js → D727YOOX.js} +2 -2
  20. package/dist/arcgis-map-components/{BUDWVBYE.js → DBPKJOYW.js} +1 -1
  21. package/dist/arcgis-map-components/{MF7RFMSW.js → DLEN4ORI.js} +2 -2
  22. package/dist/arcgis-map-components/{EORMIB3R.js → DWMEEDHE.js} +2 -2
  23. package/dist/arcgis-map-components/{NLNFZP4Q.js → DZF434YD.js} +2 -2
  24. package/dist/arcgis-map-components/{U5UL33ZU.js → ELYTB4XJ.js} +2 -2
  25. package/dist/arcgis-map-components/{GS66LFP4.js → ERS4HX5J.js} +1 -1
  26. package/dist/arcgis-map-components/{ONE2UFPZ.js → FHOJWHL5.js} +2 -2
  27. package/dist/arcgis-map-components/{LTOLVVCM.js → FRIJ3FSA.js} +2 -2
  28. package/dist/arcgis-map-components/GAAOXAL6.js +4 -0
  29. package/dist/arcgis-map-components/{B4N3XXMN.js → HG2VALA3.js} +2 -2
  30. package/dist/arcgis-map-components/HW7Z4CZB.js +4 -0
  31. package/dist/arcgis-map-components/{V5KVHTTD.js → HZNRXF47.js} +2 -2
  32. package/dist/arcgis-map-components/{GAVRDI2M.js → IKGSM2C2.js} +2 -2
  33. package/dist/arcgis-map-components/{JMKTTV47.js → ITFN6HQK.js} +2 -2
  34. package/dist/arcgis-map-components/{3PBNMPLN.js → IUDW2ZVM.js} +2 -2
  35. package/dist/arcgis-map-components/{DT43KNRP.js → IW775SZ3.js} +2 -2
  36. package/dist/arcgis-map-components/{K6JLYC4K.js → IXPHHN4Z.js} +2 -2
  37. package/dist/arcgis-map-components/{HZXLMWI4.js → J7HGN3TZ.js} +1 -1
  38. package/dist/arcgis-map-components/{PEYSQ5ZQ.js → JAQQBKX6.js} +2 -2
  39. package/dist/arcgis-map-components/{YAEO7FHZ.js → K6PW23T7.js} +2 -2
  40. package/dist/arcgis-map-components/{GARYG4ZV.js → K77QPLOY.js} +2 -2
  41. package/dist/arcgis-map-components/{W3IEUQ3T.js → LMOFB4IY.js} +2 -2
  42. package/dist/arcgis-map-components/{UKXESHIF.js → M6O6GD4O.js} +2 -2
  43. package/dist/arcgis-map-components/{4ZLOFJWK.js → MAMFUB2L.js} +2 -2
  44. package/dist/arcgis-map-components/{5R7JAA4K.js → MDHKEFLL.js} +1 -1
  45. package/dist/arcgis-map-components/{3DJSR4KM.js → MP3QQQKU.js} +2 -2
  46. package/dist/arcgis-map-components/{UG5BOEWQ.js → MSOBY6NR.js} +2 -2
  47. package/dist/arcgis-map-components/{KVQFHHCG.js → NCWZPEUO.js} +2 -2
  48. package/dist/arcgis-map-components/{CI3ZCOKX.js → NVIX6GNC.js} +2 -2
  49. package/dist/arcgis-map-components/{KMGWVWD7.js → NYN35UXK.js} +2 -2
  50. package/dist/arcgis-map-components/{JQ5QQDDP.js → OMIYZ5A3.js} +2 -2
  51. package/dist/arcgis-map-components/{RTYGOYIP.js → OYUYZKN2.js} +2 -2
  52. package/dist/arcgis-map-components/PFRBRWGY.js +4 -0
  53. package/dist/arcgis-map-components/{3QB2C2MK.js → QBCARJYO.js} +2 -2
  54. package/dist/arcgis-map-components/QCYDFQGT.js +4 -0
  55. package/dist/arcgis-map-components/{C62ATYLY.js → QVOQDJ5B.js} +2 -2
  56. package/dist/arcgis-map-components/{NC64HBQN.js → R3AVBSDU.js} +2 -2
  57. package/dist/arcgis-map-components/{VEQBFBC6.js → RBXK5JR3.js} +2 -2
  58. package/dist/arcgis-map-components/{4ZMZRT6C.js → S3H7IQQP.js} +2 -2
  59. package/dist/arcgis-map-components/{NGYG2LMH.js → S76V3WVV.js} +2 -2
  60. package/dist/arcgis-map-components/{APRFYSM6.js → SI357SRE.js} +2 -2
  61. package/dist/arcgis-map-components/{W6ON5IY6.js → SPVD3PYB.js} +2 -2
  62. package/dist/arcgis-map-components/{IRHZH6RD.js → U6C4ZCMS.js} +2 -2
  63. package/dist/arcgis-map-components/{OW6VZAYK.js → VHE6RZA2.js} +2 -2
  64. package/dist/arcgis-map-components/{UJEL34OH.js → VIUD4NSE.js} +2 -2
  65. package/dist/arcgis-map-components/{3FHA5Q35.js → VIVRU3Y4.js} +2 -2
  66. package/dist/arcgis-map-components/{ME4MZYGO.js → VWEH2LWN.js} +2 -2
  67. package/dist/arcgis-map-components/{GIEN743A.js → WZV3Y366.js} +2 -2
  68. package/dist/arcgis-map-components/X7EWPPQH.js +4 -0
  69. package/dist/arcgis-map-components/{K4M5MK2I.js → YHASKKJ6.js} +2 -2
  70. package/dist/arcgis-map-components/{QRMNTHS2.js → YK5CBUJC.js} +2 -2
  71. package/dist/arcgis-map-components/YXSRE3F6.js +4 -0
  72. package/dist/arcgis-map-components/{BLLGRMVV.js → Z6JJJVA2.js} +2 -2
  73. package/dist/arcgis-map-components/{QZBWHUJL.js → ZVNCPLXY.js} +2 -2
  74. package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -2
  75. package/dist/chunks/basemap-gallery-item.js +1 -1
  76. package/dist/chunks/component-utils.js +43 -43
  77. package/dist/chunks/disconnected.js +1 -1
  78. package/dist/chunks/globalCss.js +1 -1
  79. package/dist/chunks/legacyIcon.js +1 -1
  80. package/dist/chunks/runtime.js +1 -1
  81. package/dist/chunks/useViewModel.js +1 -1
  82. package/dist/chunks/useWidget.js +1 -1
  83. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  84. package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
  85. package/dist/components/arcgis-attachments/customElement.d.ts +5 -2
  86. package/dist/components/arcgis-attachments/customElement.js +1 -1
  87. package/dist/components/arcgis-basemap-gallery/components/basemap-gallery-item/customElement.js +1 -1
  88. package/dist/components/arcgis-basemap-gallery/customElement.d.ts +1 -1
  89. package/dist/components/arcgis-basemap-gallery/customElement.js +2 -2
  90. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +18 -18
  91. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  92. package/dist/components/arcgis-basemap-toggle/customElement.d.ts +2 -2
  93. package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
  94. package/dist/components/arcgis-bookmarks/customElement.d.ts +9 -9
  95. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  96. package/dist/components/arcgis-building-explorer/customElement.js +1 -1
  97. package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +11 -11
  98. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  99. package/dist/components/arcgis-compass/customElement.js +1 -1
  100. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +3 -3
  101. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  102. package/dist/components/arcgis-daylight/customElement.js +1 -1
  103. package/dist/components/arcgis-directional-pad/customElement.js +1 -1
  104. package/dist/components/arcgis-directions/customElement.d.ts +4 -4
  105. package/dist/components/arcgis-directions/customElement.js +14 -11
  106. package/dist/components/arcgis-directline-measurement-3d/customElement.js +1 -1
  107. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  108. package/dist/components/arcgis-editor/customElement.d.ts +12 -12
  109. package/dist/components/arcgis-editor/customElement.js +1 -1
  110. package/dist/components/arcgis-elevation-profile/customElement.d.ts +10 -10
  111. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  112. package/dist/components/arcgis-expand/customElement.d.ts +4 -4
  113. package/dist/components/arcgis-expand/customElement.js +1 -1
  114. package/dist/components/arcgis-feature/customElement.d.ts +4 -4
  115. package/dist/components/arcgis-feature/customElement.js +1 -1
  116. package/dist/components/arcgis-feature-form/customElement.d.ts +6 -3
  117. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  118. package/dist/components/arcgis-feature-table/customElement.d.ts +18 -18
  119. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  120. package/dist/components/arcgis-feature-templates/customElement.d.ts +6 -3
  121. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  122. package/dist/components/arcgis-features/customElement.d.ts +16 -16
  123. package/dist/components/arcgis-features/customElement.js +1 -1
  124. package/dist/components/arcgis-floor-filter/customElement.d.ts +4 -4
  125. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  126. package/dist/components/arcgis-fullscreen/customElement.d.ts +1 -1
  127. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  128. package/dist/components/arcgis-histogram/customElement.d.ts +12 -9
  129. package/dist/components/arcgis-histogram/customElement.js +1 -1
  130. package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +13 -10
  131. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  132. package/dist/components/arcgis-home/customElement.d.ts +2 -2
  133. package/dist/components/arcgis-home/customElement.js +1 -1
  134. package/dist/components/arcgis-layer-list/customElement.d.ts +17 -17
  135. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  136. package/dist/components/arcgis-legend/customElement.js +1 -1
  137. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  138. package/dist/components/arcgis-link-chart/customElement.d.ts +10 -10
  139. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  140. package/dist/components/arcgis-locate/customElement.d.ts +2 -2
  141. package/dist/components/arcgis-locate/customElement.js +1 -1
  142. package/dist/components/arcgis-map/customElement.d.ts +11 -11
  143. package/dist/components/arcgis-map/customElement.js +1 -1
  144. package/dist/components/arcgis-measurement/customElement.d.ts +5 -2
  145. package/dist/components/arcgis-measurement/customElement.js +1 -1
  146. package/dist/components/arcgis-navigation-toggle/customElement.d.ts +3 -2
  147. package/dist/components/arcgis-navigation-toggle/customElement.js +10 -10
  148. package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +3 -3
  149. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +22 -16
  150. package/dist/components/arcgis-placement/customElement.js +2 -2
  151. package/dist/components/arcgis-print/customElement.d.ts +2 -2
  152. package/dist/components/arcgis-print/customElement.js +1 -1
  153. package/dist/components/arcgis-scale-bar/customElement.js +53 -47
  154. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +1 -1
  155. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  156. package/dist/components/arcgis-scene/customElement.d.ts +10 -10
  157. package/dist/components/arcgis-scene/customElement.js +1 -1
  158. package/dist/components/arcgis-search/customElement.d.ts +10 -10
  159. package/dist/components/arcgis-search/customElement.js +1 -1
  160. package/dist/components/arcgis-shadow-cast/customElement.d.ts +6 -6
  161. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  162. package/dist/components/arcgis-sketch/customElement.d.ts +23 -23
  163. package/dist/components/arcgis-sketch/customElement.js +1 -1
  164. package/dist/components/arcgis-slice/customElement.d.ts +1 -1
  165. package/dist/components/arcgis-slice/customElement.js +1 -1
  166. package/dist/components/arcgis-slider/customElement.d.ts +13 -10
  167. package/dist/components/arcgis-slider/customElement.js +1 -1
  168. package/dist/components/arcgis-swipe/customElement.d.ts +1 -1
  169. package/dist/components/arcgis-swipe/customElement.js +1 -1
  170. package/dist/components/arcgis-table-list/customElement.d.ts +10 -10
  171. package/dist/components/arcgis-table-list/customElement.js +1 -1
  172. package/dist/components/arcgis-time-slider/customElement.d.ts +5 -5
  173. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  174. package/dist/components/arcgis-track/customElement.d.ts +3 -3
  175. package/dist/components/arcgis-track/customElement.js +1 -1
  176. package/dist/components/arcgis-utility-network-associations/customElement.d.ts +84 -13
  177. package/dist/components/arcgis-utility-network-associations/customElement.js +33 -210
  178. package/dist/components/arcgis-utility-network-trace/customElement.js +2 -2
  179. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +4 -4
  180. package/dist/components/arcgis-value-picker/customElement.d.ts +8 -5
  181. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  182. package/dist/components/arcgis-version-management/customElement.d.ts +2 -2
  183. package/dist/components/arcgis-version-management/customElement.js +9 -9
  184. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  185. package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
  186. package/dist/components/arcgis-version-management-version-list/customElement.d.ts +1 -1
  187. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  188. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  189. package/dist/components/arcgis-weather/customElement.d.ts +1 -1
  190. package/dist/components/arcgis-weather/customElement.js +1 -1
  191. package/dist/components/arcgis-zoom/customElement.js +1 -1
  192. package/dist/controllers/useViewModel.d.ts +1 -1
  193. package/dist/docs/api.json +851 -167
  194. package/dist/docs/docs.json +681 -179
  195. package/dist/docs/vscode.html-custom-data.json +100 -8
  196. package/dist/docs/web-types.json +288 -79
  197. package/dist/index.js +1 -1
  198. package/dist/loader.js +3 -3
  199. package/dist/testing/commonSpatialReferences.d.ts +8 -0
  200. package/dist/testing/mockServices.d.ts +9 -0
  201. package/dist/testing/setupFile.d.ts +1 -0
  202. package/dist/testing/testUtils.d.ts +49 -0
  203. package/dist/testing/tileInfoUtils.d.ts +10 -0
  204. package/dist/types/lumina.d.ts +6 -6
  205. package/dist/types/preact.d.ts +6 -6
  206. package/dist/types/react.d.ts +233 -232
  207. package/dist/types/stencil.d.ts +6 -6
  208. package/dist/utils/component-utils.d.ts +2 -2
  209. package/package.json +5 -5
  210. package/dist/arcgis-map-components/3TIH7FJM.js +0 -4
  211. package/dist/arcgis-map-components/5UCZ2NP2.js +0 -4
  212. package/dist/arcgis-map-components/5YLNK34L.js +0 -4
  213. package/dist/arcgis-map-components/D7SX7VI7.js +0 -4
  214. package/dist/arcgis-map-components/FQKPPNHX.js +0 -4
  215. package/dist/arcgis-map-components/RU3VPZSZ.js +0 -4
  216. package/dist/arcgis-map-components/XJPV2XF5.js +0 -4
@@ -218,7 +218,7 @@ interface StencilArcgisHome extends Partial<Pick<ArcgisHome, 'autoDestroyDisable
218
218
  onArcgisReady?: EventHandler<HTMLArcgisHomeElement["arcgisReady"]>;
219
219
  }
220
220
 
221
- interface StencilArcgisLayerList extends Partial<Pick<ArcgisLayerList, 'autoDestroyDisabled' | 'catalogOptions' | 'collapsed' | 'dragEnabled' | 'filterPlaceholder' | 'filterPredicate' | 'filterText' | 'headingLevel' | 'hideCatalogLayerList' | 'hideFlow' | 'hideStatusIndicators' | 'icon' | 'knowledgeGraphOptions' | 'label' | 'listItemCreatedFunction' | 'minDragEnabledItems' | 'minFilterItems' | 'openedLayers' | 'position' | 'referenceElement' | 'selectedItems' | 'selectionMode' | 'showCloseButton' | 'showCollapseButton' | 'showErrors' | 'showFilter' | 'showHeading' | 'showTemporaryLayerIndicators' | 'visibilityAppearance'>>, StencilJsx.HTMLAttributes<HTMLArcgisLayerListElement> {
221
+ interface StencilArcgisLayerList extends Partial<Pick<ArcgisLayerList, 'autoDestroyDisabled' | 'catalogOptions' | 'collapsed' | 'dragEnabled' | 'filterPlaceholder' | 'filterPredicate' | 'filterText' | 'headingLevel' | 'hideCatalogLayerList' | 'hideFlow' | 'hideStatusIndicators' | 'icon' | 'knowledgeGraphOptions' | 'label' | 'listItemCreatedFunction' | 'minDragEnabledItems' | 'minFilterItems' | 'position' | 'referenceElement' | 'selectedItems' | 'selectionMode' | 'showCloseButton' | 'showCollapseButton' | 'showErrors' | 'showFilter' | 'showHeading' | 'showTemporaryLayerIndicators' | 'visibilityAppearance'>>, StencilJsx.HTMLAttributes<HTMLArcgisLayerListElement> {
222
222
  onArcgisPropertyChange?: EventHandler<HTMLArcgisLayerListElement["arcgisPropertyChange"]>;
223
223
  onArcgisReady?: EventHandler<HTMLArcgisLayerListElement["arcgisReady"]>;
224
224
  onArcgisTriggerAction?: EventHandler<HTMLArcgisLayerListElement["arcgisTriggerAction"]>;
@@ -234,7 +234,7 @@ interface StencilArcgisLineOfSight extends Partial<Pick<ArcgisLineOfSight, 'auto
234
234
  onArcgisReady?: EventHandler<HTMLArcgisLineOfSightElement["arcgisReady"]>;
235
235
  }
236
236
 
237
- interface StencilArcgisLinkChart extends Partial<Pick<ArcgisLinkChart, 'allLayerViews' | 'autoDestroyDisabled' | 'background' | 'basemap' | 'basemapView' | 'constraints' | 'extent' | 'fatalError' | 'graphics' | 'highlights' | 'itemId' | 'layerViews' | 'map' | 'navigation' | 'padding' | 'popup' | 'popupDisabled' | 'resizeAlign' | 'rotation' | 'scale' | 'spatialReference' | 'theme' | 'timeExtent' | 'timeZone' | 'viewpoint' | 'zoom'>>, ArcgisLinkChartSetterTypes, StencilJsx.HTMLAttributes<HTMLArcgisLinkChartElement> {
237
+ interface StencilArcgisLinkChart extends Partial<Pick<ArcgisLinkChart, 'autoDestroyDisabled' | 'background' | 'basemap' | 'basemapView' | 'constraints' | 'extent' | 'fatalError' | 'graphics' | 'itemId' | 'layerViews' | 'map' | 'navigation' | 'padding' | 'popup' | 'popupDisabled' | 'resizeAlign' | 'rotation' | 'scale' | 'spatialReference' | 'theme' | 'timeExtent' | 'timeZone' | 'viewpoint' | 'zoom'>>, ArcgisLinkChartSetterTypes, StencilJsx.HTMLAttributes<HTMLArcgisLinkChartElement> {
238
238
  onArcgisViewChange?: EventHandler<HTMLArcgisLinkChartElement["arcgisViewChange"]>;
239
239
  onArcgisViewClick?: EventHandler<HTMLArcgisLinkChartElement["arcgisViewClick"]>;
240
240
  onArcgisViewDoubleClick?: EventHandler<HTMLArcgisLinkChartElement["arcgisViewDoubleClick"]>;
@@ -264,7 +264,7 @@ interface StencilArcgisLocate extends Partial<Pick<ArcgisLocate, 'autoDestroyDis
264
264
  onArcgisSuccess?: EventHandler<HTMLArcgisLocateElement["arcgisSuccess"]>;
265
265
  }
266
266
 
267
- interface StencilArcgisMap extends Partial<Pick<ArcgisMap, 'allLayerViews' | 'autoDestroyDisabled' | 'background' | 'basemap' | 'basemapView' | 'constraints' | 'displayFilterDisabled' | 'extent' | 'fatalError' | 'floors' | 'graphics' | 'ground' | 'highlightOptions' | 'highlights' | 'ipsInfo' | 'itemId' | 'layerViews' | 'map' | 'navigation' | 'padding' | 'popup' | 'popupDisabled' | 'resizeAlign' | 'rotation' | 'scale' | 'spatialReference' | 'theme' | 'timeExtent' | 'timeZone' | 'viewpoint' | 'zoom'>>, ArcgisMapSetterTypes, StencilJsx.HTMLAttributes<HTMLArcgisMapElement> {
267
+ interface StencilArcgisMap extends Partial<Pick<ArcgisMap, 'autoDestroyDisabled' | 'background' | 'basemap' | 'basemapView' | 'constraints' | 'displayFilterDisabled' | 'extent' | 'fatalError' | 'floors' | 'graphics' | 'ground' | 'highlightOptions' | 'ipsInfo' | 'itemId' | 'layerViews' | 'map' | 'navigation' | 'padding' | 'popup' | 'popupDisabled' | 'resizeAlign' | 'rotation' | 'scale' | 'spatialReference' | 'theme' | 'timeExtent' | 'timeZone' | 'viewpoint' | 'zoom'>>, ArcgisMapSetterTypes, StencilJsx.HTMLAttributes<HTMLArcgisMapElement> {
268
268
  onArcgisViewChange?: EventHandler<HTMLArcgisMapElement["arcgisViewChange"]>;
269
269
  onArcgisViewClick?: EventHandler<HTMLArcgisMapElement["arcgisViewClick"]>;
270
270
  onArcgisViewDoubleClick?: EventHandler<HTMLArcgisMapElement["arcgisViewDoubleClick"]>;
@@ -292,7 +292,7 @@ interface StencilArcgisMeasurement extends Partial<Pick<ArcgisMeasurement, 'acti
292
292
  onArcgisReady?: EventHandler<HTMLArcgisMeasurementElement["arcgisReady"]>;
293
293
  }
294
294
 
295
- interface StencilArcgisNavigationToggle extends Partial<Pick<ArcgisNavigationToggle, 'autoDestroyDisabled' | 'icon' | 'label' | 'layout' | 'position' | 'referenceElement'>>, StencilJsx.HTMLAttributes<HTMLArcgisNavigationToggleElement> {
295
+ interface StencilArcgisNavigationToggle extends Partial<Pick<ArcgisNavigationToggle, 'autoDestroyDisabled' | 'icon' | 'label' | 'layout' | 'navigationMode' | 'position' | 'referenceElement'>>, StencilJsx.HTMLAttributes<HTMLArcgisNavigationToggleElement> {
296
296
  onArcgisPropertyChange?: EventHandler<HTMLArcgisNavigationToggleElement["arcgisPropertyChange"]>;
297
297
  onArcgisReady?: EventHandler<HTMLArcgisNavigationToggleElement["arcgisReady"]>;
298
298
  }
@@ -322,7 +322,7 @@ interface StencilArcgisScaleRangeSlider extends Partial<Pick<ArcgisScaleRangeSli
322
322
  onArcgisReady?: EventHandler<HTMLArcgisScaleRangeSliderElement["arcgisReady"]>;
323
323
  }
324
324
 
325
- interface StencilArcgisScene extends Partial<Pick<ArcgisScene, 'allLayerViews' | 'alphaCompositingEnabled' | 'analyses' | 'autoDestroyDisabled' | 'basemap' | 'basemapView' | 'camera' | 'cameraFov' | 'cameraHeading' | 'cameraPosition' | 'cameraTilt' | 'clippingArea' | 'constraints' | 'displayFilterDisabled' | 'environment' | 'extent' | 'fatalError' | 'floors' | 'graphics' | 'ground' | 'highlightOptions' | 'highlights' | 'itemId' | 'layerViews' | 'map' | 'navigation' | 'padding' | 'popup' | 'popupDisabled' | 'qualityProfile' | 'scale' | 'spatialReference' | 'theme' | 'timeExtent' | 'viewingMode' | 'viewpoint' | 'zoom'>>, ArcgisSceneSetterTypes, StencilJsx.HTMLAttributes<HTMLArcgisSceneElement> {
325
+ interface StencilArcgisScene extends Partial<Pick<ArcgisScene, 'alphaCompositingEnabled' | 'analyses' | 'autoDestroyDisabled' | 'basemap' | 'basemapView' | 'camera' | 'cameraFov' | 'cameraHeading' | 'cameraPosition' | 'cameraTilt' | 'clippingArea' | 'constraints' | 'displayFilterDisabled' | 'environment' | 'extent' | 'fatalError' | 'floors' | 'graphics' | 'ground' | 'highlightOptions' | 'itemId' | 'layerViews' | 'map' | 'navigation' | 'padding' | 'popup' | 'popupDisabled' | 'qualityProfile' | 'scale' | 'spatialReference' | 'theme' | 'timeExtent' | 'viewingMode' | 'viewpoint' | 'zoom'>>, ArcgisSceneSetterTypes, StencilJsx.HTMLAttributes<HTMLArcgisSceneElement> {
326
326
  onArcgisViewChange?: EventHandler<HTMLArcgisSceneElement["arcgisViewChange"]>;
327
327
  onArcgisViewClick?: EventHandler<HTMLArcgisSceneElement["arcgisViewClick"]>;
328
328
  onArcgisViewDoubleClick?: EventHandler<HTMLArcgisSceneElement["arcgisViewDoubleClick"]>;
@@ -418,7 +418,7 @@ interface StencilArcgisTrack extends Partial<Pick<ArcgisTrack, 'autoDestroyDisab
418
418
  onArcgisReady?: EventHandler<HTMLArcgisTrackElement["arcgisReady"]>;
419
419
  }
420
420
 
421
- interface StencilArcgisUtilityNetworkAssociations extends Partial<Pick<ArcgisUtilityNetworkAssociations, 'autoRefreshAssociationsDisabled' | 'connectivityAssociationsLineSymbol' | 'includeConnectivityAssociationsDisabled' | 'includeStructuralAttachmentAssociationsDisabled' | 'maxAllowableAssociations' | 'maxAllowableAssociationsSliderMax' | 'maxAllowableAssociationsSliderMin' | 'maxAllowableAssociationsSliderStep' | 'position' | 'referenceElement' | 'showArrowsConnectivity' | 'showArrowsStructuralAttachment' | 'showAssociationsEnabled' | 'structuralAttachmentAssociationsLineSymbol' | 'utilityNetwork' | 'visibleElementsConnectivityAssociationsSettingsArrowsToggle' | 'visibleElementsConnectivityAssociationsSettingsCapSelect' | 'visibleElementsConnectivityAssociationsSettingsColorPicker' | 'visibleElementsConnectivityAssociationsSettingsStylePicker' | 'visibleElementsConnectivityAssociationsSettingsWidthInput' | 'visibleElementsMaxAllowableAssociationsSlider' | 'visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggle' | 'visibleElementsStructuralAttachmentAssociationsSettingsCapSelect' | 'visibleElementsStructuralAttachmentAssociationsSettingsColorPicker' | 'visibleElementsStructuralAttachmentAssociationsSettingsStylePicker' | 'visibleElementsStructuralAttachmentAssociationsSettingsWidthInput'>>, StencilJsx.HTMLAttributes<HTMLArcgisUtilityNetworkAssociationsElement> {
421
+ interface StencilArcgisUtilityNetworkAssociations extends Partial<Pick<ArcgisUtilityNetworkAssociations, 'autoDestroyDisabled' | 'autoRefreshAssociationsDisabled' | 'connectivityAssociationsLineSymbol' | 'hideConnectivityAssociationsSettingsColorPicker' | 'hideConnectivityAssociationsSettingsStylePicker' | 'hideConnectivityAssociationsSettingsWidthInput' | 'hideStructuralAttachmentAssociationsSettingsColorPicker' | 'hideStructuralAttachmentAssociationsSettingsStylePicker' | 'hideStructuralAttachmentAssociationsSettingsWidthInput' | 'icon' | 'includeConnectivityAssociationsDisabled' | 'includeStructuralAttachmentAssociationsDisabled' | 'label' | 'maxAllowableAssociations' | 'maxAllowableAssociationsSliderMax' | 'maxAllowableAssociationsSliderMin' | 'maxAllowableAssociationsSliderStep' | 'position' | 'referenceElement' | 'showArrowsConnectivity' | 'showArrowsStructuralAttachment' | 'showAssociationsEnabled' | 'showConnectivityAssociationsSettingsArrowsToggle' | 'showConnectivityAssociationsSettingsCapSelect' | 'showMaxAllowableAssociationsSlider' | 'showStructuralAttachmentAssociationsSettingsArrowsToggle' | 'showStructuralAttachmentAssociationsSettingsCapSelect' | 'structuralAttachmentAssociationsLineSymbol' | 'utilityNetwork' | 'visibleElementsConnectivityAssociationsSettingsArrowsToggle' | 'visibleElementsConnectivityAssociationsSettingsCapSelect' | 'visibleElementsConnectivityAssociationsSettingsColorPicker' | 'visibleElementsConnectivityAssociationsSettingsStylePicker' | 'visibleElementsConnectivityAssociationsSettingsWidthInput' | 'visibleElementsMaxAllowableAssociationsSlider' | 'visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggle' | 'visibleElementsStructuralAttachmentAssociationsSettingsCapSelect' | 'visibleElementsStructuralAttachmentAssociationsSettingsColorPicker' | 'visibleElementsStructuralAttachmentAssociationsSettingsStylePicker' | 'visibleElementsStructuralAttachmentAssociationsSettingsWidthInput'>>, StencilJsx.HTMLAttributes<HTMLArcgisUtilityNetworkAssociationsElement> {
422
422
  onArcgisReady?: EventHandler<HTMLArcgisUtilityNetworkAssociationsElement["arcgisReady"]>;
423
423
  }
424
424
 
@@ -57,8 +57,8 @@ export declare function attachToParent(component: WidgetOrMapComponent): ArcgisP
57
57
  export declare function defineViewProperty(component: WidgetOrMapComponent & {
58
58
  arcgisReady: EventEmitter;
59
59
  }): void;
60
- export declare function isNullOrEmptyString(value: string | null | undefined): boolean;
61
- export declare function isValidInteger(value: number | null | undefined): boolean;
60
+ export declare function isNullOrEmptyString(value: nullish | string): boolean;
61
+ export declare function isValidInteger(value: nullish | number): boolean;
62
62
  export declare function areCamerasEqual(camera: __esri.Camera, camera2: __esri.Camera | Nil): boolean;
63
63
  export declare function isNotSameViewpoint(viewpoint?: __esri.Viewpoint, viewpoint2?: __esri.Viewpoint): boolean;
64
64
  export declare function parseCenter(newValue: __esri.MapView["center"] | Nil | number[] | string, view?: Pick<__esri.MapView, "center">): __esri.Point | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/map-components",
3
- "version": "4.32.0-next.83",
3
+ "version": "4.32.0-next.85",
4
4
  "description": "ArcGIS Map Components",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -40,10 +40,10 @@
40
40
  ],
41
41
  "license": "SEE LICENSE IN LICENSE.md",
42
42
  "dependencies": {
43
- "@arcgis/components-controllers": "4.32.0-next.83",
44
- "@arcgis/components-utils": "4.32.0-next.83",
45
- "@arcgis/core-adapter": "4.32.0-next.83",
46
- "@arcgis/lumina": "4.32.0-next.83",
43
+ "@arcgis/components-controllers": "4.32.0-next.85",
44
+ "@arcgis/components-utils": "4.32.0-next.85",
45
+ "@arcgis/core-adapter": "4.32.0-next.85",
46
+ "@arcgis/lumina": "4.32.0-next.85",
47
47
  "tslib": "^2.7.0"
48
48
  },
49
49
  "peerDependencies": {
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.32/esri/copyright.txt for details.
3
- v4.32.0-next.83 */
4
- function E(e,n){Array.isArray(n)?e._watchHandles=[...e._watchHandles,...n]:e._watchHandles.push(n)}function b(e){e.el.childElem&&(e.el.childElem.ownedBy=e.el);let n=w(e);if(!n){let t=p(e.referenceElement);if(!t){f(e);return}return d(t,e,!0),t}return g(n,e.el.parent)||(e.el.parent=n,n.tagName.toLowerCase()==="arcgis-expand"?m(n,e):n.tagName.toLowerCase()==="arcgis-placement"?v(n,e):d(n,e,!1)),n}function w({el:e}){for(let n=e.parentElement;n;n=n?.parentElement??null){if(s.has(n.tagName.toLowerCase()))return n;if("ownedBy"in n&&n.ownedBy instanceof HTMLElement&&s.has(n.ownedBy.tagName.toLowerCase()))return n.ownedBy}}var s=new Set(["arcgis-map","arcgis-scene","arcgis-link-chart","arcgis-expand","arcgis-placement"]);function g(e,n){if(e!==n)return!1;let t=e.tagName.toLowerCase();return t==="arcgis-expand"||t==="arcgis-placement"}function i(e,n,t="arcgisReady"){let r=e;if(typeof r.view?.ready=="boolean")n(r.view);else{let o=function(l){l.target===e&&(i(e,n,t),e.removeEventListener(t,o))};e.addEventListener(t,o)}}var m=(e,n)=>i(e,t=>{n.el.childElem&&e.content!=null&&e.content.append(n.el.childElem),e.expandIcon=n.icon||n.widget?.icon||e.expandIcon,n.position=e.position,n.el.view=t}),v=(e,n)=>i(e,t=>{n.el.childElem&&n.el.append(n.el.childElem),n.position=e.position,n.el.view=t}),d=(e,n,t)=>i(e,r=>{t?f(n):n.el.childElem&&y(e,n),n.el.view=r},"arcgisViewReadyChange");function y(e,n){let t=n.el.childElem??n.el,r=[...e.children],o={};for(let a of r){let c=a.getAttribute("position")??"manual";o[c]??=[],o[c].push({child:a,position:c,index:r.indexOf(a)})}let l=o[n.position??"manual"]?.findIndex(({child:a})=>a===n.el);e.view.ui.remove(t),e.view.ui.add(t,{position:n.position,index:l})}function x(e){let n=!1,t=e.el.view,r=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e.el),"view")??{get:()=>t,set:o=>t=o};Object.defineProperty(e.el,"view",{get:r.get.bind(e.el),set:o=>{r.set.call(e.el,o),o&&!n&&(n=!0,e.arcgisReady.emit())},configurable:!0,enumerable:!0}),t&&(e.el.view=t)}function L(e){return e==null||e===""}function C(e,n){return n!=null&&e?.position===n.position&&e?.heading===n.heading&&e?.tilt===n.tilt&&e?.fov===n.fov}function N(e,n){return n===void 0||e?.targetGeometry!==n?.targetGeometry||e?.rotation!==n?.rotation||e?.scale!==n?.scale}function O(e,n){return u(n?.center,e)}function u(e,n){if(typeof n=="string")return u(e,n.split(",").map(Number));if(!e)return n;if(Array.isArray(n)){let t=n[0],r=n[1],o=n.length>2?n[2]:void 0;if(t!==e.longitude||r!==e.latitude||o!==e.z)return n}else if(n&&!e?.equals(n))return n}async function A(e,n){n!=null&&(typeof n=="string"?e.el.view=await h(n):e.widget&&(e.el.view=n.view))}async function h(e){let n=p(e);return await new Promise(t=>{typeof n?.view?.ready=="boolean"?t(n.view):n&&n.addEventListener("arcgisViewReadyChange",()=>t(n.view),{once:!0})})}function f(e){e.el.childElem&&(e.el.shadowRoot??e.el).append(e.el.childElem)}function p(e){return typeof e!="string"?e??void 0:(e.includes("#")||e.includes(".")||e.includes("[")?void 0:document.querySelector(`#${e}`))??document.querySelector(e)??void 0}export{E as a,b,x as c,L as d,C as e,N as f,O as g,u as h,A as i};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.32/esri/copyright.txt for details.
3
- v4.32.0-next.83 */
4
- import{a as S}from"./ONE2UFPZ.js";import{b as m}from"./GIEN743A.js";import{ea as c}from"./HZXLMWI4.js";import{b as r,c as h,i as A}from"./3TIH7FJM.js";import{B as n,C as l,H as a,g as e,t as o}from"./5R7JAA4K.js";var s=class extends l{constructor(){super(...arguments),this._watchHandles=[],this.autoRefreshAssociationsDisabled=!1,this.includeConnectivityAssociationsDisabled=!1,this.includeStructuralAttachmentAssociationsDisabled=!1,this.maxAllowableAssociations=250,this.position="bottom-left",this.showArrowsConnectivity=!1,this.showArrowsStructuralAttachment=!1,this.showAssociationsEnabled=!1,this.visibleElementsConnectivityAssociationsSettingsArrowsToggle=!0,this.visibleElementsConnectivityAssociationsSettingsCapSelect=!0,this.visibleElementsConnectivityAssociationsSettingsColorPicker=!0,this.visibleElementsConnectivityAssociationsSettingsStylePicker=!0,this.visibleElementsConnectivityAssociationsSettingsWidthInput=!0,this.visibleElementsMaxAllowableAssociationsSlider=!0,this.visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggle=!0,this.visibleElementsStructuralAttachmentAssociationsSettingsCapSelect=!0,this.visibleElementsStructuralAttachmentAssociationsSettingsColorPicker=!0,this.visibleElementsStructuralAttachmentAssociationsSettingsStylePicker=!0,this.visibleElementsStructuralAttachmentAssociationsSettingsWidthInput=!0,this.arcgisReady=n()}static{this.properties={autoRefreshAssociationsDisabled:5,connectivityAssociationsLineSymbol:0,includeConnectivityAssociationsDisabled:5,includeStructuralAttachmentAssociationsDisabled:5,maxAllowableAssociations:9,maxAllowableAssociationsSliderMax:9,maxAllowableAssociationsSliderMin:9,maxAllowableAssociationsSliderStep:9,position:1,referenceElement:1,showArrowsConnectivity:5,showArrowsStructuralAttachment:5,showAssociationsEnabled:5,structuralAttachmentAssociationsLineSymbol:0,utilityNetwork:0,view:0,visibleElementsConnectivityAssociationsSettingsArrowsToggle:5,visibleElementsConnectivityAssociationsSettingsCapSelect:5,visibleElementsConnectivityAssociationsSettingsColorPicker:5,visibleElementsConnectivityAssociationsSettingsStylePicker:5,visibleElementsConnectivityAssociationsSettingsWidthInput:5,visibleElementsMaxAllowableAssociationsSlider:5,visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggle:5,visibleElementsStructuralAttachmentAssociationsSettingsCapSelect:5,visibleElementsStructuralAttachmentAssociationsSettingsColorPicker:5,visibleElementsStructuralAttachmentAssociationsSettingsStylePicker:5,visibleElementsStructuralAttachmentAssociationsSettingsWidthInput:5,widget:0}}static{this.shadowRootOptions=e}willUpdate(t){if(t.has("referenceElement")&&A(this,this.referenceElement),this.widget){if(t.has("autoRefreshAssociationsDisabled")){let i=this.autoRefreshAssociationsDisabled;i!==void 0&&(this.widget.autoRefreshAssociations=!i)}if(t.has("connectivityAssociationsLineSymbol")){let i=this.connectivityAssociationsLineSymbol;i&&(this.widget.connectivityAssociationsLineSymbol=i)}if(t.has("includeConnectivityAssociationsDisabled")){let i=this.includeConnectivityAssociationsDisabled;i!==void 0&&(this.widget.includeConnectivityAssociations=!i)}if(t.has("includeStructuralAttachmentAssociationsDisabled")){let i=this.includeStructuralAttachmentAssociationsDisabled;i!==void 0&&(this.widget.includeStructuralAttachmentAssociations=!i)}if(t.has("maxAllowableAssociations")){let i=this.maxAllowableAssociations;i!==void 0&&(this.widget.maxAllowableAssociations=i)}if(t.has("maxAllowableAssociationsSliderMax")){let i=this.maxAllowableAssociationsSliderMax;i!==void 0&&(this.widget.maxAllowableAssociationsSliderMax=i)}if(t.has("maxAllowableAssociationsSliderMin")){let i=this.maxAllowableAssociationsSliderMin;i!==void 0&&(this.widget.maxAllowableAssociationsSliderMin=i)}if(t.has("maxAllowableAssociationsSliderStep")){let i=this.maxAllowableAssociationsSliderStep;i!==void 0&&(this.widget.maxAllowableAssociationsSliderStep=i)}if(t.has("showArrowsConnectivity")){let i=this.showArrowsConnectivity;i!==void 0&&(this.widget.showArrowsConnectivity=i)}if(t.has("showArrowsStructuralAttachment")){let i=this.showArrowsStructuralAttachment;i!==void 0&&(this.widget.showArrowsStructuralAttachment=i)}if(t.has("showAssociationsEnabled")){let i=this.showAssociationsEnabled;i!==void 0&&(this.widget.showAssociationsEnabled=i)}if(t.has("structuralAttachmentAssociationsLineSymbol")){let i=this.structuralAttachmentAssociationsLineSymbol;i!==void 0&&(this.widget.structuralAttachmentAssociationsLineSymbol=i)}}if(t.has("utilityNetwork")){let i=this.utilityNetwork;i!==void 0&&(this.widget.utilityNetwork=i)}t.has("visibleElementsConnectivityAssociationsSettingsArrowsToggle")&&this.visibleElementsConnectivityAssociationsSettingsArrowsToggleWatcher(this.visibleElementsConnectivityAssociationsSettingsArrowsToggle),t.has("visibleElementsConnectivityAssociationsSettingsCapSelect")&&this.visibleElementsConnectivityAssociationsSettingsCapSelectWatcher(this.visibleElementsConnectivityAssociationsSettingsCapSelect),t.has("visibleElementsConnectivityAssociationsSettingsColorPicker")&&this.visibleElementsConnectivityAssociationsSettingsColorPickerWatcher(this.visibleElementsConnectivityAssociationsSettingsColorPicker),t.has("visibleElementsConnectivityAssociationsSettingsStylePicker")&&this.visibleElementsConnectivityAssociationsSettingsStylePickerWatcher(this.visibleElementsConnectivityAssociationsSettingsStylePicker),t.has("visibleElementsConnectivityAssociationsSettingsWidthInput")&&this.visibleElementsConnectivityAssociationsSettingsWidthInputWatcher(this.visibleElementsConnectivityAssociationsSettingsWidthInput),t.has("visibleElementsMaxAllowableAssociationsSlider")&&this.visibleElementsMaxAllowableAssociationsSliderWatcher(this.visibleElementsMaxAllowableAssociationsSlider),t.has("visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggle")&&this.visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggleWatcher(this.visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggle),t.has("visibleElementsStructuralAttachmentAssociationsSettingsCapSelect")&&this.visibleElementsStructuralAttachmentAssociationsSettingsCapSelectWatcher(this.visibleElementsStructuralAttachmentAssociationsSettingsCapSelect),t.has("visibleElementsStructuralAttachmentAssociationsSettingsStylePicker")&&this.visibleElementsStructuralAttachmentAssociationsSettingsStylePickerWatcher(this.visibleElementsStructuralAttachmentAssociationsSettingsStylePicker),t.has("visibleElementsStructuralAttachmentAssociationsSettingsWidthInput")&&this.visibleElementsStructuralAttachmentAssociationsSettingsWidthInputWatcher(this.visibleElementsStructuralAttachmentAssociationsSettingsWidthInput),t.has("position")&&this.positionWatcher(this.position),t.has("view")&&this.viewWatcher(this.view)}async loaded(){let t=this._createParams(),i=await c(t);this.widget=i,this._addContainer(),h(this),r(this)}disconnectedCallback(){super.disconnectedCallback(),S(this)}visibleElementsConnectivityAssociationsSettingsArrowsToggleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,connectivityAssociationsSettings:{...this.widget.visibleElements.connectivityAssociationsSettings,arrowsToggle:t}})}visibleElementsConnectivityAssociationsSettingsCapSelectWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,connectivityAssociationsSettings:{...this.widget.visibleElements.connectivityAssociationsSettings,capSelect:t}})}visibleElementsConnectivityAssociationsSettingsColorPickerWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,connectivityAssociationsSettings:{...this.widget.visibleElements.connectivityAssociationsSettings,colorPicker:t}})}visibleElementsConnectivityAssociationsSettingsStylePickerWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,connectivityAssociationsSettings:{...this.widget.visibleElements.connectivityAssociationsSettings,stylePicker:t}})}visibleElementsConnectivityAssociationsSettingsWidthInputWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,connectivityAssociationsSettings:{...this.widget.visibleElements.connectivityAssociationsSettings,widthInput:t}})}visibleElementsMaxAllowableAssociationsSliderWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,maxAllowableAssociationsSlider:t})}visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggleWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,structuralAttachmentAssociationsSettings:{...this.widget.visibleElements.structuralAttachmentAssociationsSettings,arrowsToggle:t}})}visibleElementsStructuralAttachmentAssociationsSettingsCapSelectWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,structuralAttachmentAssociationsSettings:{...this.widget.visibleElements.structuralAttachmentAssociationsSettings,capSelect:t}})}visibleElementsStructuralAttachmentAssociationsSettingsStylePickerWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,structuralAttachmentAssociationsSettings:{...this.widget.visibleElements.structuralAttachmentAssociationsSettings,stylePicker:t}})}visibleElementsStructuralAttachmentAssociationsSettingsWidthInputWatcher(t){this.widget&&(this.widget.visibleElements={...this.widget.visibleElements,structuralAttachmentAssociationsSettings:{...this.widget.visibleElements.structuralAttachmentAssociationsSettings,widthInput:t}})}positionWatcher(t){t!==void 0&&this.widget&&this.el.childElem&&this.view.ui.move(this.el.childElem,t)}viewWatcher(t){t!==void 0&&this.widget&&(this.widget.view=t,this._loadUtilityNetwork())}_addContainer(){this.widget.container=this.el.childElem}_createParams(){let t={};return t.visibleElements={connectivityAssociationsSettings:{arrowsToggle:this.visibleElementsConnectivityAssociationsSettingsArrowsToggle,capSelect:this.visibleElementsConnectivityAssociationsSettingsCapSelect,colorPicker:this.visibleElementsConnectivityAssociationsSettingsColorPicker,stylePicker:this.visibleElementsConnectivityAssociationsSettingsStylePicker,widthInput:this.visibleElementsConnectivityAssociationsSettingsWidthInput},maxAllowableAssociationsSlider:this.visibleElementsMaxAllowableAssociationsSlider,structuralAttachmentAssociationsSettings:{arrowsToggle:this.visibleElementsStructuralAttachmentAssociationsSettingsArrowsToggle,capSelect:this.visibleElementsStructuralAttachmentAssociationsSettingsCapSelect,colorPicker:this.visibleElementsStructuralAttachmentAssociationsSettingsColorPicker,stylePicker:this.visibleElementsStructuralAttachmentAssociationsSettingsStylePicker,widthInput:this.visibleElementsStructuralAttachmentAssociationsSettingsWidthInput}},this.autoRefreshAssociationsDisabled!==void 0&&(t.autoRefreshAssociations=!this.autoRefreshAssociationsDisabled),this.connectivityAssociationsLineSymbol!==void 0&&(t.connectivityAssociationsLineSymbol=this.connectivityAssociationsLineSymbol),this.includeConnectivityAssociationsDisabled!==void 0&&(t.includeConnectivityAssociations=!this.includeConnectivityAssociationsDisabled),this.includeStructuralAttachmentAssociationsDisabled!==void 0&&(t.includeStructuralAttachmentAssociations=!this.includeStructuralAttachmentAssociationsDisabled),this.maxAllowableAssociations!==void 0&&(t.maxAllowableAssociations=this.maxAllowableAssociations),this.maxAllowableAssociationsSliderMax!==void 0&&(t.maxAllowableAssociationsSliderMax=this.maxAllowableAssociationsSliderMax),this.maxAllowableAssociationsSliderMin!==void 0&&(t.maxAllowableAssociationsSliderMin=this.maxAllowableAssociationsSliderMin),this.maxAllowableAssociationsSliderStep!==void 0&&(t.maxAllowableAssociationsSliderStep=this.maxAllowableAssociationsSliderStep),this.showArrowsConnectivity!==void 0&&(t.showArrowsConnectivity=this.showArrowsConnectivity),this.showArrowsStructuralAttachment!==void 0&&(t.showArrowsStructuralAttachment=this.showArrowsStructuralAttachment),this.showAssociationsEnabled!==void 0&&(t.showAssociationsEnabled=this.showAssociationsEnabled),this.structuralAttachmentAssociationsLineSymbol!==void 0&&(t.structuralAttachmentAssociationsLineSymbol=this.structuralAttachmentAssociationsLineSymbol),this.utilityNetwork!==void 0&&(t.utilityNetwork=this.utilityNetwork),t}async _loadUtilityNetwork(){if(this.view?.map&&this.view.map.portalItem){await this.view.map.load();let t=this.view.map.utilityNetworks.getItemAt(0);await t.load(),this.utilityNetwork=t}}_setChildElement(t){this.el.childElem=t}render(){return o`<div ${m(this._setChildElement)}></div>`}};a("arcgis-utility-network-associations",s);export{s as ArcgisUtilityNetworkAssociations};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.32/esri/copyright.txt for details.
3
- v4.32.0-next.83 */
4
- import{a as y}from"./VNWOPD5J.js";import"./QOBPPCP6.js";import{d as s,x as w}from"./HZXLMWI4.js";import{d as c}from"./3TIH7FJM.js";import{B as d,C as n,H as l,g as o,r,s as h}from"./5R7JAA4K.js";var m=h`arcgis-directions{display:block}`,g=y(w),i="map-components:arcgis-directions",a=class extends n{constructor(){super(...arguments),this.widget=g(this),this.viewModel=this.widget.viewModel,this.apiKey=this.widget.apiKey,this.autoDestroyDisabled=!1,this.headingLevel=this.widget.headingLevel,this.hideLayerDetails=this.widget.visibleElements.layerDetails,this.hideSaveAsButton=this.widget.visibleElements.saveAsButton,this.hideSaveButton=this.widget.visibleElements.saveButton,this.icon=this.widget.icon,this.label=this.widget.label,this.lastRoute=this.widget.lastRoute,this.layer=this.widget.layer,this.maxStops=this.widget.maxStops,this.position="bottom-left",this.searchProperties=this.widget.searchProperties,this.state=this.viewModel.state,this.unit=this.widget.unit,this.useDefaultRouteLayer=!1,this.arcgisPropertyChange=r()("lastRoute","state"),this.arcgisReady=d()}static{this.properties={apiKey:1,autoDestroyDisabled:5,headingLevel:9,hideLayerDetails:5,hideSaveAsButton:5,hideSaveButton:5,icon:1,label:1,lastRoute:0,layer:0,maxStops:9,position:1,referenceElement:1,routeLayerItemId:1,searchProperties:0,state:0,unit:1,useDefaultRouteLayer:5}}static{this.shadowRootOptions=o}static{this.styles=m}async destroy(){await this.manager.destroy()}async getDirections(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${i} - component not ready to get directions`);return await this.widget?.getDirections()}async save(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${i} - component not ready to save directions`);return await this.widget?.save()}async saveAs(t,e){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${i} - component not ready to save directions as a Portal Item`);return await this.widget?.saveAs(t,e)}async zoomToRoute(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${i} - component not ready to zoom to route`);this.widget?.zoomToRoute()}willUpdate(t){if(t.has("routeLayerItemId")){let e=this.routeLayerItemId;c(e)&&!this.useDefaultRouteLayer?(this.widget.view?.map.remove(this.layer),this._setDefaultLayer()):e&&this.widget&&s({portalItem:{id:e}}).then(u=>{this.layer=u,this.widget.view?.map.add(this.layer)}).catch(console.error)}t.has("useDefaultRouteLayer")&&this._setDefaultLayer()}_setDefaultLayer(){this.useDefaultRouteLayer&&!this.routeLayerItemId&&s({}).then(t=>{this.layer=t,this.widget.view?.map.add(this.layer)}).catch(console.error)}};l("arcgis-directions",a);export{a as ArcgisDirections};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.32/esri/copyright.txt for details.
3
- v4.32.0-next.83 */
4
- import{a as l}from"./VNWOPD5J.js";import"./QOBPPCP6.js";import{S as g}from"./HZXLMWI4.js";import"./3TIH7FJM.js";import{B as o,C as a,H as r,g as s,r as i,s as e}from"./5R7JAA4K.js";var n=e`arcgis-navigation-toggle{display:block}`,h=l(g),t=class extends a{constructor(){super(...arguments),this.widget=h(this),this.viewModel=this.widget.viewModel,this.autoDestroyDisabled=!1,this.icon=this.widget.icon,this.label=this.widget.label,this.layout=this.widget.layout,this.position="bottom-left",this.state=this.viewModel.state,this.arcgisPropertyChange=i()("layout","state"),this.arcgisReady=o()}static{this.properties={autoDestroyDisabled:5,icon:1,label:1,layout:3,position:1,referenceElement:1,state:3}}static{this.shadowRootOptions=s}static{this.styles=n}async destroy(){await this.manager.destroy()}async toggle(){this.widget?.toggle()}};r("arcgis-navigation-toggle",t);export{t as ArcgisNavigationToggle};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.32/esri/copyright.txt for details.
3
- v4.32.0-next.83 */
4
- import{b as x}from"./GIEN743A.js";import{a as $}from"./GS66LFP4.js";import{a as D,b as S}from"./OW6VZAYK.js";import"./QOBPPCP6.js";import{V as B,la as U,ma as R,oa as M}from"./HZXLMWI4.js";import"./3TIH7FJM.js";import{B as g,C as y,D as i,E as v,H as L,a as d,g as w,p,t as c}from"./5R7JAA4K.js";var a="esri-scale-bar",t={base:a,labelContainer:`${a}__label-container`,rulerLabelContainer:`${a}__label-container--ruler`,lineLabelContainer:`${a}__label-container--line`,topLabelContainer:`${a}__label-container--top`,bottomLabelContainer:`${a}__label-container--bottom`,label:`${a}__label`,line:`${a}__line`,topLine:`${a}__line--top`,bottomLine:`${a}__line--bottom`,ruler:`${a}__ruler`,rulerBlock:`${a}__ruler-block`,barContainer:`${a}__bar-container`,rulerBarContainer:`${a}__bar-container--ruler`,lineBarContainer:`${a}__bar-container--line`};function k(C=0,e=0){return{x:C,y:e}}var O=S(B),f=class extends y{constructor(){super(...arguments),this.intlUtils=p(R),this.messages=D(),this.reactiveUtils=p(U),this._scaleComputedFrom=k(),this.unitUtils=p(M),this.viewModel=O(this),this.autoDestroyDisabled=!1,this.barStyle="line",this.icon="actual-size",this.position="top-left",this.arcgisReady=g()}static{this.properties={autoDestroyDisabled:5,barStyle:1,icon:3,label:1,messageOverrides:0,position:3,referenceElement:1,unit:1}}static{this.shadowRootOptions=w}get unit(){return this._unit??this._defaultUnit}set unit(e){this._unit=e}async destroy(){await this.manager.destroy()}updated(){this._handleRootCreateOrUpdate()}loaded(){this._defaultUnit=this.unitUtils.getDefaultUnitForView(this.viewModel.view),this.manager.onLifecycle(()=>this.reactiveUtils.watch(()=>{let e=this.viewModel.view;return[e?.stationary,e?.center,e?.scale,e?.zoom]},([e])=>{e&&this.requestUpdate()}))}_handleContainerRef(e){e!==void 0&&this._handleRootCreateOrUpdate()}_handleRootCreateOrUpdate(){if(!this.viewModel)return;let e=this._scaleComputedFrom,r=this.el.getBoundingClientRect(),o=r.left+window.pageXOffset,n=r.top+window.pageYOffset,s=k(o,n);(s.x!==e.x||s.y!==e.y)&&(this._scaleComputedFrom=s)}_formatDistance(e,r){return this.intlUtils.formatNumber(e,{style:"unit",unit:r,unitDisplay:"short"})}render(){let e=this.viewModel.state==="disabled",r={[$.disabled]:e},o,n;if(!e){let{unit:s,barStyle:u}=this,b=s==="imperial"||s==="dual",_=s==="metric"||s==="dual",h=100,m=s==="dual"?"line":u;if(b){let l=this.viewModel.getScaleBarProperties(h,"imperial");l&&(n=m==="ruler"?this._renderRuler(l):this._renderLine(l,"bottom"))}if(_){let l=this.viewModel.getScaleBarProperties(h,"metric");l&&(o=m==="ruler"?this._renderRuler(l):this._renderLine(l,"top"))}}return c`<div class=${i(d(t.base,$.widget,r))} ${x(this._handleContainerRef)}>${o}${n}</div>`}_renderRuler(e){let{length:r,unit:o,value:n}=e,s=Math.round(r),u=this._formatDistance(n,o);return c`<div class=${i(d(t.barContainer,t.rulerBarContainer))}><div class=${i(t.ruler)} style=${v({width:`${s}px`})}><div class=${i(t.rulerBlock)}></div><div class=${i(t.rulerBlock)}></div><div class=${i(t.rulerBlock)}></div><div class=${i(t.rulerBlock)}></div></div><div class=${i(d(t.labelContainer,t.rulerLabelContainer))}><div class=${i(t.label)}>0</div><div class=${i(t.label)}>${u}</div></div></div>`}_renderLine(e,r){let{length:o,unit:n,value:s}=e,u=Math.round(o),b=this._formatDistance(s,n),_={[t.topLabelContainer]:r==="top",[t.bottomLabelContainer]:r==="bottom"},h=c`<div class=${i(d(t.labelContainer,t.lineLabelContainer,_))}><div class=${i(t.label)}>${b}</div></div>`,m={[t.topLine]:r==="top",[t.bottomLine]:r==="bottom"},l=c`<div class=${i(d(t.line,m))} style=${v({width:`${u}px`})}></div>`;return c`<div class=${i(d(t.barContainer,t.lineBarContainer))}>${[l,h]}</div>`}};L("arcgis-scale-bar",f);export{f as ArcgisScaleBar};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.32/esri/copyright.txt for details.
3
- v4.32.0-next.83 */
4
- import{a as h}from"./VNWOPD5J.js";import"./QOBPPCP6.js";import{T as l,c as n}from"./HZXLMWI4.js";import"./3TIH7FJM.js";import{B as r,C as o,H as d,g as t,r as a,s}from"./5R7JAA4K.js";var y=s`arcgis-oriented-imagery-viewer{display:block}`,c=h(l),e=class extends o{constructor(){super(...arguments),this.widget=c(this),this._hasOrientedImageryLayerToAdd=!1,this.viewModel=this.widget.viewModel,this.autoDestroyDisabled=!1,this.currentCoverageVisible=this.widget.currentCoverageVisible,this.disabled=this.widget.disabled,this.galleryOpened=this.widget.galleryOpened,this.icon=this.widget.icon,this.imageEnhancementToolActive=this.widget.imageEnhancementToolActive,this.imageGalleryEnabled=this.widget.imageGalleryEnabled,this.isAdditionalCoverageVisible=this.widget.isAdditionalCoverageVisible,this.isAdditionalPointSourcesVisible=this.widget.isAdditionalPointSourcesVisible,this.label=this.widget.label,this.layer=this.widget.layer,this.mapImageConversionToolState=this.widget.mapImageConversionToolState,this.navigationToolActive=this.widget.navigationToolActive,this.position="bottom-left",this.referencePoint=this.widget.referencePoint,this.arcgisPropertyChange=a()("imageGalleryEnabled","layer"),this.arcgisReady=r()}static{this.properties={autoDestroyDisabled:5,currentCoverageVisible:5,disabled:5,galleryOpened:5,icon:1,imageEnhancementToolActive:5,imageGalleryEnabled:4,isAdditionalCoverageVisible:5,isAdditionalPointSourcesVisible:5,label:1,layer:0,mapImageConversionToolState:5,navigationToolActive:5,orientedImageryLayerItemId:1,position:1,referenceElement:1,referencePoint:0}}static{this.shadowRootOptions=t}static{this.styles=y}async destroy(){await this.manager.destroy()}willUpdate(g){if(g.has("orientedImageryLayerItemId")){let i=this.orientedImageryLayerItemId;i&&this.widget&&n({portalItem:{id:i}}).then(m=>{this.layer=m,this.widget.view?this.widget.view.map.add(this.layer):this._hasOrientedImageryLayerToAdd=!0}).catch(console.error)}}loaded(){this._hasOrientedImageryLayerToAdd&&(this.widget.view?(this.widget.view?.map.add(this.layer),this._hasOrientedImageryLayerToAdd=!1):this.el.addEventListener("arcgisReady",()=>{this.widget.view.map.add(this.layer),this._hasOrientedImageryLayerToAdd=!1},{once:!0}))}};d("arcgis-oriented-imagery-viewer",e);export{e as ArcgisOrientedImageryViewer};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/4.32/esri/copyright.txt for details.
3
- v4.32.0-next.83 */
4
- import{a as C,b}from"./GIEN743A.js";import{a as F,b as k}from"./OW6VZAYK.js";import"./QOBPPCP6.js";import{ia as y,la as P}from"./HZXLMWI4.js";import"./3TIH7FJM.js";import{B as w,C as L,D as S,H as _,g as u,p as V,s as E,t as h}from"./5R7JAA4K.js";var T=E`.initial-version-invalid-block{margin-bottom:1rem}.calcite-combobox-item{width:330px}.calcite-flow-widget{width:350px}calcite-block{margin:0}calcite-pagination{justify-content:center}`,x=k(y),M="map-components:version-management",I=class extends L{constructor(){super(...arguments),this.flowElement=C(),this.messages=F({blocking:!0}),this.reactiveUtils=V(P),this.viewModel=x(this),this._isInitialVersionInvalid=new Map,this._initialVersionInfos=[],this._showInvalidFeatureServiceNotice=!1,this.allowEditingDisabled=!1,this.autoDestroyDisabled=!1,this.closable=!1,this.pageSize=5,this.position="top-right",this.state=this.viewModel.state,this.versioningStates=this.viewModel.versioningStates,this.view=this.viewModel.view,this.arcgisReady=w(),this.arcgisVersioningStateChanged=w()}static{this.properties={versionList:16,_showInvalidFeatureServiceNotice:16,allowEditingDisabled:5,autoDestroyDisabled:5,closable:7,initialVersionInfos:0,icon:3,label:3,messageOverrides:0,mode:1,pageSize:9,position:1,referenceElement:1,state:3,versioningStates:0,view:0}}static{this.styles=T}static{this.shadowRootOptions=u}get initialVersionInfos(){return this._initialVersionInfos}set initialVersionInfos(e){this._initialVersionInfos=e.map(t=>({...t,url:this._removeTrailingSlash(t.url)}))}async destroy(){await this.manager.destroy()}async load(){let{once:e,watch:t}=this.reactiveUtils;e(()=>this.viewModel.state==="ready").then(()=>{this.initialVersionInfos.forEach(o=>{try{this._changeToInitialVersion(o)}catch(s){console.error(s)}})}),this.manager.onLifecycle(()=>[t(()=>this.viewModel.state,o=>{let{flowElement:{value:s},versionList:i}=this,n=s?.getElementsByTagName("arcgis-version-management-version-properties")[0];if(o==="disabled"&&s){n&&this._removeVersionPropertiesFlowItem(s),i&&this._removeVersionListFlowItem(s);return}i&&(i.versionListElementProps={...i.versionListElementProps,executionError:this.viewModel.executionError},i.versionListElementProps={...i.versionListElementProps,state:o}),n&&(n.versionPropertiesElementProps={...n.versionPropertiesElementProps,state:o})})])}_removeTrailingSlash(e){return e.replace(/\/+$/u,"")}_createVersionPropertiesFlowItem(e,t){let{closable:o,flowElement:{value:s},viewModel:i,viewModel:{state:n}}=this,r=document.createElement("arcgis-version-management-version-properties");return r.versionPropertiesElementProps={closable:o,currentUser:i.userLookup.get(e),hasAdvEditingUte:i.advancedEditingUserTypeExtensionLookup.get(e),isVersionAdministrator:i.versionAdministratorLookup.get(e),serviceUrl:e,state:n,strings:this.messages,versionInfo:t},r.selected=!0,r.showBackButton=!0,r.addEventListener("arcgisCreateVersion",a=>{let{createVersionParameters:v,switchToVersion:d}=a.detail;i.createVersion(v).then(async l=>{l&&this.arcgisVersioningStateChanged.emit({type:"version-created",versionIdentifier:l.versionIdentifier,versioningState:i.versioningStateLookup.get(e)}),d&&await this.viewModel.changeVersion(e,l.versionIdentifier.name,l.versionIdentifier.guid).then(g=>{g&&this.arcgisVersioningStateChanged.emit({type:"version-switched",versionIdentifier:l.versionIdentifier,versioningState:i.versioningStateLookup.get(e)})}),await this._refreshVersionList(e)}).finally(()=>{s&&this._removeVersionPropertiesFlowItem(s)})}),r.addEventListener("arcgisAlterVersion",async a=>{let{flowElement:{value:v}}=this,{alterVersionParameters:d}=a.detail;await i.alterVersion(d).then(async l=>{l&&this.arcgisVersioningStateChanged.emit({type:"version-changed",versionIdentifier:d.versionIdentifier,versioningState:i.versioningStateLookup.get(e)}),await this._refreshVersionList(e)}).finally(()=>{v&&this._removeVersionPropertiesFlowItem(v)})}),r.addEventListener("arcgisFlowItemBack",()=>{this._removeVersionPropertiesFlowItem(this.flowElement.value)}),r.addEventListener("calciteFlowItemBack",a=>{a.preventDefault(),this._removeVersionPropertiesFlowItem(this.flowElement.value),this.versionList&&(this.versionList.selected=!0)}),r.addEventListener("calciteFlowItemClose",()=>{this._handleFlowItemClose()}),r}_getLoadError(e){let{messages:t}=this;switch(e){case"no-feature-services":return t.loadErrors.noFeatureServices;case"no-view-property":return t.loadErrors.noViewProperty;default:return e}}_changeToInitialVersion(e){let{_isInitialVersionInvalid:t,viewModel:o}=this,{url:s,name:i}=e,n=o.versioningStateLookup.get(s);if(!n)throw this._showInvalidFeatureServiceNotice=!0,new Error(`${M} - no versioning state found for feature service ${s}`);let r=n?.versionInfos.find(d=>d.versionIdentifier.name===i);if(!r)throw t.set(s,!0),new Error(`${M} - version ${i} not found in the versioning state for feature service ${s}`);let a=r.versionIdentifier,v=n?.currentVersionInfo.versionIdentifier;a.guid!==v?.guid&&o.changeVersion(s,a.name,a.guid)}_handleFlowItemClose(){let e=document.querySelector("arcgis-version-management");e.parentElement?.removeChild(e)}async _handleNewVersionAction(e){let t=this._createVersionPropertiesFlowItem(e.detail.serviceUrl,void 0);this.flowElement.value?.appendChild(t),this.versionList&&(this.versionList.selected=!1)}async _handleManageVersionAction(e){let{actionType:t,serviceUrl:o,versionInfo:s}=e.detail,{viewModel:i,flowElement:n}=this;switch(t){case"changeVersion":{i.changeVersion(o,s.versionIdentifier.name,s.versionIdentifier.guid).then(r=>{r&&this.arcgisVersioningStateChanged.emit({type:"version-switched",versionIdentifier:s.versionIdentifier,versioningState:i.versioningStateLookup.get(o)});let{versionList:a}=this;a&&(a.versionListElementProps={...a.versionListElementProps,currentVersionIdentifier:i.versioningStateLookup.get(o).currentVersionInfo.versionIdentifier})});break}case"deleteVersion":{i.deleteVersion(o,s.versionIdentifier.name,s.versionIdentifier.guid).then(async r=>{r&&this.arcgisVersioningStateChanged.emit({type:"version-deleted",versionIdentifier:s.versionIdentifier,versioningState:i.versioningStateLookup.get(o)}),await this._refreshVersionList(o)});break}case"editVersion":{let r=this._createVersionPropertiesFlowItem(o,s);n.value?.appendChild(r),this.versionList&&(this.versionList.selected=!1);break}}}async _refreshVersionList(e){let{flowElement:{value:t},versionList:o,viewModel:s}=this;if(t){let i=await s.getVersionInfos(e),n=t.getElementsByTagName("arcgis-version-management-service-item");for(let r of n)r.serviceItemElementProps.serviceUrl===e&&(r.serviceItemElementProps={...r.serviceItemElementProps,versionInfos:i});o&&(o.versionListElementProps={...o.versionListElementProps,currentVersionIdentifier:s.versioningStateLookup.get(e).currentVersionInfo.versionIdentifier,versionInfos:i})}}_removeVersionListFlowItem(e){for(let t of e.childNodes)t.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-LIST"&&(e.removeChild(t),this.versionList=void 0),t.nodeName.toUpperCase()==="CALCITE-FLOW-ITEM"&&(t.hidden=!1)}_removeVersionPropertiesFlowItem(e){for(let t of e.childNodes)t.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES"&&e.removeChild(t)}render(){let{allowEditingDisabled:e,closable:t,flowElement:{value:o},initialVersionInfos:s,_isInitialVersionInvalid:i,label:n,messages:r,mode:a,pageSize:v,versionList:d,viewModel:l,viewModel:{loadError:g,state:m}}=this,$=Array.from(l.serviceNameLookup,([c,f])=>({url:c,name:f})),N=m!=="disabled"?$.map(c=>{let f={allowEditing:!e,closable:t,currentUser:l.userLookup.get(c.url),currentVersionIdentifier:l.versioningStateLookup.get(c.url).currentVersionInfo.versionIdentifier,executionError:void 0,flowElement:o,hasAdvEditingUte:l.advancedEditingUserTypeExtensionLookup.get(c.url),heading:n,initialVersionInfos:s,isInitialVersionInvalid:i,isVersionAdministrator:l.versionAdministratorLookup.get(c.url),isVersioningApiAvailable:(l.serverVersionLookup.get(c.url)??0)>=11.2,mode:a,pageSize:v,serviceName:c.name,state:m,serviceUrl:c.url,strings:r,versionInfos:l.versioningStateLookup.get(c.url)?.versionInfos??[]};return h`<arcgis-version-management-service-item .serviceItemElementProps=${f} @arcgisGetVersions=${async p=>{await this._refreshVersionList(p.detail.serviceUrl)}} @arcgisFlowItemBack=${()=>{o&&(this._removeVersionListFlowItem(o),this.versionList=void 0)}} @arcgisFlowItemClose=${()=>{this._handleFlowItemClose()}} @arcgisManageVersion=${this._handleManageVersionAction} @arcgisNewVersion=${this._handleNewVersionAction} @arcgisCreateVersionList=${p=>{this.versionList=p.detail}}></arcgis-version-management-service-item>`}):void 0,A=m==="disabled"?h`<calcite-notice class="notice" kind=warning open scale=s slot=footer width=full><div slot=message>${this._getLoadError(g)}</div></calcite-notice>`:void 0,U=this._showInvalidFeatureServiceNotice?h`<calcite-notice closable kind=warning open scale=s slot=content-top width=full icon @calciteNoticeClose=${()=>this._showInvalidFeatureServiceNotice=!1}><div slot=title>${r.headers.invalidInitialFeatureService}</div><div slot=message>${r.loadErrors.invalidInitialFeatureService}</div></calcite-notice>`:void 0;return h`<calcite-flow custom-item-selectors="arcgis-version-management-version-list, arcgis-version-management-version-properties" class=${S(this.mode==="dialog"?"":"calcite-flow-widget")} ${b(this.flowElement)}><calcite-flow-item .closable=${this.closable} .heading=${n??void 0} @calciteFlowItemClose=${()=>{this._handleFlowItemClose()}} .selected=${!d}>${U}<calcite-panel .loading=${m==="loading"||m==="executing"}>${N}${A}</calcite-panel></calcite-flow-item></calcite-flow>`}};_("arcgis-version-management",I);export{I as ArcgisVersionManagement};