@arcgis/map-components 5.2.0-next.61 → 5.2.0-next.63

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 (406) hide show
  1. package/dist/cdn/2CRPXLAY.js +2 -0
  2. package/dist/cdn/2CUYHI36.js +2 -0
  3. package/dist/cdn/{7HLWU5PX.js → 2DCEODPQ.js} +1 -1
  4. package/dist/cdn/{4BFCBXCA.js → 2N34V44S.js} +1 -1
  5. package/dist/cdn/{5W7XCJ5B.js → 2WLXD7OI.js} +1 -1
  6. package/dist/cdn/{X2QNONZE.js → 2XFBIC3F.js} +1 -1
  7. package/dist/cdn/2XJT2TPM.js +2 -0
  8. package/dist/cdn/35HJTZDP.js +2 -0
  9. package/dist/cdn/{UI32UC33.js → 36ZK37RS.js} +1 -1
  10. package/dist/cdn/{5W6NJGFF.js → 3EYX5DTH.js} +1 -1
  11. package/dist/cdn/3H2WSSI4.js +2 -0
  12. package/dist/cdn/{XQP3UJJB.js → 3K5L7C4B.js} +1 -1
  13. package/dist/cdn/{6KHHCJ5X.js → 3RQ3RPYE.js} +1 -1
  14. package/dist/cdn/{XFH2TUXK.js → 3TZJEZDM.js} +1 -1
  15. package/dist/cdn/{RYXTEZZH.js → 3VRGZ2CJ.js} +1 -1
  16. package/dist/cdn/3WTBTYMS.js +2 -0
  17. package/dist/cdn/{JLO3FL27.js → 3Y4QI3WS.js} +1 -1
  18. package/dist/cdn/{NRHOAASJ.js → 3Y5SDD5P.js} +1 -1
  19. package/dist/cdn/46OBBNLU.js +2 -0
  20. package/dist/cdn/{HWDZDKDX.js → 4B63G73N.js} +1 -1
  21. package/dist/cdn/{RONABERI.js → 4BYHEBLT.js} +1 -1
  22. package/dist/cdn/{OANCY5SX.js → 4ZPF4DPX.js} +1 -1
  23. package/dist/cdn/{AC43TA2Y.js → 54O3XEKS.js} +1 -1
  24. package/dist/cdn/{AX6GSVZL.js → 5AO4WCMO.js} +1 -1
  25. package/dist/cdn/{3YGZGNIG.js → 5O7NTWBV.js} +1 -1
  26. package/dist/cdn/{2ZETLPCO.js → 5OBZQUJE.js} +1 -1
  27. package/dist/cdn/{SWAX3RUB.js → 5OQPKSGX.js} +1 -1
  28. package/dist/cdn/{HCEP3NVU.js → 6BD3TWBH.js} +1 -1
  29. package/dist/cdn/{M5BID47D.js → 6GIDI7Z2.js} +1 -1
  30. package/dist/cdn/{DFLF2GHB.js → 6JYLZLVD.js} +1 -1
  31. package/dist/cdn/{YQ2OS5PW.js → 6N5H4GYH.js} +1 -1
  32. package/dist/cdn/{VVLDHLAY.js → 6OVA7KIZ.js} +1 -1
  33. package/dist/cdn/{HFPQ7CSJ.js → 6UESIAYD.js} +1 -1
  34. package/dist/cdn/{QVOYYXIU.js → 6W3RHVL6.js} +1 -1
  35. package/dist/cdn/{AFJW3C3J.js → 6YLBLUPL.js} +1 -1
  36. package/dist/cdn/74IVEAEO.js +2 -0
  37. package/dist/cdn/{M6WSCBQP.js → 7BQONNCF.js} +1 -1
  38. package/dist/cdn/{2DHPGACO.js → 7GGF4VK3.js} +1 -1
  39. package/dist/cdn/AACRVMCQ.js +2 -0
  40. package/dist/cdn/{6NNRGJYB.js → AATMBHJB.js} +1 -1
  41. package/dist/cdn/{XB7KKTY6.js → ACHF5ALD.js} +1 -1
  42. package/dist/cdn/{QZLVTEOQ.js → AIUZUNQB.js} +1 -1
  43. package/dist/cdn/{J2AISQHP.js → ALID7JW4.js} +1 -1
  44. package/dist/cdn/{7ICJOTUR.js → AM3UJO3A.js} +1 -1
  45. package/dist/cdn/{OWAKPT2D.js → AOZTFK3U.js} +1 -1
  46. package/dist/cdn/{GHTQIXMG.js → APBDKO3B.js} +1 -1
  47. package/dist/cdn/AVFYZ2BD.js +2 -0
  48. package/dist/cdn/{BU6JMSUW.js → AVHHBQZF.js} +1 -1
  49. package/dist/cdn/{L7AWHKQN.js → B2EZWEK5.js} +1 -1
  50. package/dist/cdn/{VPXMBT5B.js → BE273TAF.js} +1 -1
  51. package/dist/cdn/BEEFONS5.js +2 -0
  52. package/dist/cdn/{EFUM5T3J.js → BEOMWPHI.js} +1 -1
  53. package/dist/cdn/{4T4GCBM3.js → BL743E5J.js} +1 -1
  54. package/dist/cdn/{VFLELQHU.js → BLEHZ6OK.js} +1 -1
  55. package/dist/cdn/BLKRIIHC.js +2 -0
  56. package/dist/cdn/{FYNG6CYN.js → BNRS5ISC.js} +1 -1
  57. package/dist/cdn/{AR56PQPF.js → BOHA6O3E.js} +1 -1
  58. package/dist/cdn/{CFIH5Y4K.js → BOVVMQMM.js} +1 -1
  59. package/dist/cdn/{R3DTZBMN.js → BSI2WP7F.js} +1 -1
  60. package/dist/cdn/{CLOJ3UVQ.js → BWECC664.js} +1 -1
  61. package/dist/cdn/{5N7BVEJM.js → C37ZD43S.js} +1 -1
  62. package/dist/cdn/C6GVSQON.js +2 -0
  63. package/dist/cdn/{ITYCDXB3.js → C7NIEQKO.js} +1 -1
  64. package/dist/cdn/{KAAQWUI6.js → CE7BKSHD.js} +1 -1
  65. package/dist/cdn/{I3WV6OM4.js → CL6JXK4J.js} +1 -1
  66. package/dist/cdn/{2AASXHQF.js → CMNJTTHD.js} +1 -1
  67. package/dist/cdn/CNA7TDZN.js +2 -0
  68. package/dist/cdn/COI7ESYH.js +2 -0
  69. package/dist/cdn/{SCPSWHG4.js → COLRADFQ.js} +1 -1
  70. package/dist/cdn/{GFG5O7YM.js → COUGJ3JE.js} +1 -1
  71. package/dist/cdn/{EJ3X446I.js → CPHT7EKR.js} +1 -1
  72. package/dist/cdn/CRQRQION.js +2 -0
  73. package/dist/cdn/CSXSF4DA.js +2 -0
  74. package/dist/cdn/DBA7NSTP.js +2 -0
  75. package/dist/cdn/{Q5ACGCP3.js → DBQPOOGQ.js} +1 -1
  76. package/dist/cdn/{VZD4UCKC.js → DMDH2HX6.js} +1 -1
  77. package/dist/cdn/{FTO3BR3P.js → DTB572CE.js} +1 -1
  78. package/dist/cdn/{P25T7SEL.js → DVDREAS2.js} +1 -1
  79. package/dist/cdn/{E7MAE44R.js → DYE5BE43.js} +1 -1
  80. package/dist/cdn/{STU7FJ5Z.js → EBOBXBZK.js} +1 -1
  81. package/dist/cdn/EF7LH4GQ.js +2 -0
  82. package/dist/cdn/{447CU6QV.js → EIYWFIVH.js} +1 -1
  83. package/dist/cdn/{ALUQRMZW.js → EKJMDF7F.js} +1 -1
  84. package/dist/cdn/EO2XFNMR.js +2 -0
  85. package/dist/cdn/EOUNEK6M.js +2 -0
  86. package/dist/cdn/{ZA2AHCVY.js → EVKE3MXB.js} +1 -1
  87. package/dist/cdn/EYVFMVPE.js +2 -0
  88. package/dist/cdn/{EHI4E3OA.js → FG4BZ3AS.js} +1 -1
  89. package/dist/cdn/FPBIHRY5.js +2 -0
  90. package/dist/cdn/{JUAJIR4N.js → FVNPR5KH.js} +1 -1
  91. package/dist/cdn/{Y3X3K2RU.js → G3BAPTZZ.js} +1 -1
  92. package/dist/cdn/{2BCD2J5T.js → G5IFQKFE.js} +1 -1
  93. package/dist/cdn/GBLPYWL2.js +2 -0
  94. package/dist/cdn/{O6YIIKVP.js → GCPF5PAX.js} +1 -1
  95. package/dist/cdn/{AGEFGOQ4.js → GKOH4UXJ.js} +1 -1
  96. package/dist/cdn/GRALXE5Q.js +2 -0
  97. package/dist/cdn/{GXGBUAE7.js → GRVMJD2H.js} +1 -1
  98. package/dist/cdn/{KS6PL4CM.js → GTSPZDUD.js} +1 -1
  99. package/dist/cdn/GU3M4JMW.js +2 -0
  100. package/dist/cdn/{RWVY76K4.js → GZUBRPJC.js} +1 -1
  101. package/dist/cdn/{CAGM7ZNR.js → HEOLO6IC.js} +1 -1
  102. package/dist/cdn/{XCUAPJNZ.js → HKAQY5N7.js} +1 -1
  103. package/dist/cdn/{IJIN5G4N.js → HQBA7OPQ.js} +1 -1
  104. package/dist/cdn/{BPGR7WZ3.js → HRJIMMTW.js} +1 -1
  105. package/dist/cdn/{ZSLANXPZ.js → HROETYFU.js} +1 -1
  106. package/dist/cdn/{QMYYA3S6.js → HTTHJG2D.js} +1 -1
  107. package/dist/cdn/{BF42UPF6.js → HVYQFEOR.js} +1 -1
  108. package/dist/cdn/HX5ZGPW4.js +2 -0
  109. package/dist/cdn/{OKC5OJJS.js → I25PKHLU.js} +1 -1
  110. package/dist/cdn/{P5HQL37E.js → IC33XDTT.js} +1 -1
  111. package/dist/cdn/{CYNVIPKG.js → ID7AG4JH.js} +1 -1
  112. package/dist/cdn/{2JV5SN44.js → IDKRMHDS.js} +1 -1
  113. package/dist/cdn/ILAKSMYE.js +2 -0
  114. package/dist/cdn/{ISAKFCBN.js → IPS6PJBP.js} +1 -1
  115. package/dist/cdn/{FCEB7HIL.js → IR3EJA2Q.js} +1 -1
  116. package/dist/cdn/{CYBCFSSA.js → IYBQ72KJ.js} +1 -1
  117. package/dist/cdn/JA3PSEUL.js +2 -0
  118. package/dist/cdn/{TAZWQ7EC.js → JBKFFPLV.js} +1 -1
  119. package/dist/cdn/JE3VXBIT.js +2 -0
  120. package/dist/cdn/{PPIFGJX4.js → JEYAZUI2.js} +1 -1
  121. package/dist/cdn/{JDVBEPJQ.js → JHNUTIAE.js} +1 -1
  122. package/dist/cdn/{UOHCNL3F.js → JJUKCRBV.js} +1 -1
  123. package/dist/cdn/{JYAIIIMS.js → JP4O5WU5.js} +1 -1
  124. package/dist/cdn/JRY4Y7OA.js +2 -0
  125. package/dist/cdn/{TH7SCVOQ.js → JTNXXFZB.js} +1 -1
  126. package/dist/cdn/{U25QRAQN.js → JUB5EAFV.js} +1 -1
  127. package/dist/cdn/{ZEHQXP4U.js → KAXVBIZ7.js} +1 -1
  128. package/dist/cdn/{2FJWRTFE.js → KCLELCOU.js} +1 -1
  129. package/dist/cdn/{PFPOP2U4.js → KWY2WPOP.js} +1 -1
  130. package/dist/cdn/L4UVDZFM.js +2 -0
  131. package/dist/cdn/{U3L7RZL4.js → LEH4MQJ4.js} +1 -1
  132. package/dist/cdn/{V63SHRQJ.js → LFK5PEIC.js} +1 -1
  133. package/dist/cdn/LG7BOXTO.js +2 -0
  134. package/dist/cdn/{OIT4E6K2.js → LH246IIL.js} +1 -1
  135. package/dist/cdn/{TWMQVARD.js → LIBO3YUY.js} +1 -1
  136. package/dist/cdn/{SJRSZW3M.js → LXTI5SZB.js} +1 -1
  137. package/dist/cdn/LYBMSSWT.js +2 -0
  138. package/dist/cdn/{XUSIBTEV.js → M3DP7XNI.js} +1 -1
  139. package/dist/cdn/M3E7HDLV.js +2 -0
  140. package/dist/cdn/{DCNNPWXR.js → M47KXCDY.js} +1 -1
  141. package/dist/cdn/{HEGMKLJO.js → MAYBKX24.js} +1 -1
  142. package/dist/cdn/{D3U2ST6B.js → MGVKXR2F.js} +1 -1
  143. package/dist/cdn/{GY2CXLXB.js → MT2XDN52.js} +1 -1
  144. package/dist/cdn/{XD4EGOJ3.js → MWAV3XSL.js} +1 -1
  145. package/dist/cdn/{JL3C3PJK.js → N2H3FZDY.js} +1 -1
  146. package/dist/cdn/N3DNKKJG.js +2 -0
  147. package/dist/cdn/{635CQLYS.js → N4AIZK72.js} +1 -1
  148. package/dist/cdn/{4YOX2SCZ.js → N4PYAXDZ.js} +1 -1
  149. package/dist/cdn/N5NWRDVD.js +2 -0
  150. package/dist/cdn/{MBZPYZX2.js → ND64EMQB.js} +1 -1
  151. package/dist/cdn/{OZTQXCFB.js → NE62OHLY.js} +1 -1
  152. package/dist/cdn/NEEJOYOU.js +2 -0
  153. package/dist/cdn/{OXANZYRI.js → NKK2XLSQ.js} +1 -1
  154. package/dist/cdn/{VN4DKI5B.js → NMQUDSWT.js} +1 -1
  155. package/dist/cdn/{SRBEW7NV.js → OBWR4UBY.js} +1 -1
  156. package/dist/cdn/OCXHXWGB.js +2 -0
  157. package/dist/cdn/{V2N7V36Y.js → OE6LEA2U.js} +1 -1
  158. package/dist/cdn/{PIRTG67V.js → OGALSAFL.js} +1 -1
  159. package/dist/cdn/{5YORAY7J.js → OKBDQ3G2.js} +1 -1
  160. package/dist/cdn/{EIUWI6SJ.js → OPU3AHDF.js} +1 -1
  161. package/dist/cdn/PCH6Y2RV.js +2 -0
  162. package/dist/cdn/{KKBZEDN4.js → PG4VOR7W.js} +1 -1
  163. package/dist/cdn/{A636G66O.js → PHBSNX42.js} +1 -1
  164. package/dist/cdn/PNZO7PJX.js +2 -0
  165. package/dist/cdn/{Z2PS3LGI.js → PPP32ZQ6.js} +1 -1
  166. package/dist/cdn/{XD52OHCM.js → PT7XD6RE.js} +1 -1
  167. package/dist/cdn/{PUAXDNBG.js → PTHSNQL2.js} +1 -1
  168. package/dist/cdn/{OFW7MIOM.js → PW62476X.js} +1 -1
  169. package/dist/cdn/PZLLNFJO.js +2 -0
  170. package/dist/cdn/{IIPETVIW.js → QBTMCEFA.js} +1 -1
  171. package/dist/cdn/{XRPUXUOQ.js → QL3M4ZI7.js} +1 -1
  172. package/dist/cdn/QNQQA4BU.js +2 -0
  173. package/dist/cdn/{NNBWJV4O.js → QT2LSBKF.js} +1 -1
  174. package/dist/cdn/{CPVH7W2O.js → R4QRHWKF.js} +1 -1
  175. package/dist/cdn/{VIAVQT2D.js → R5TL5I6S.js} +1 -1
  176. package/dist/cdn/{RY3HMV3O.js → R6HFI3H6.js} +1 -1
  177. package/dist/cdn/{6E7OZHUN.js → R6NLZOD6.js} +1 -1
  178. package/dist/cdn/{U4S4PHBB.js → RCGWBUTM.js} +1 -1
  179. package/dist/cdn/{CJS5I43A.js → RITUH7JT.js} +1 -1
  180. package/dist/cdn/{M5DTOYQQ.js → RMKRRXJS.js} +1 -1
  181. package/dist/cdn/RTXRLIYL.js +2 -0
  182. package/dist/cdn/{JIALAMBB.js → RWDCU2CO.js} +1 -1
  183. package/dist/cdn/{MBJ27YMN.js → SHNSCLFF.js} +1 -1
  184. package/dist/cdn/{47SFVJQS.js → T27FCYV7.js} +1 -1
  185. package/dist/cdn/{ALIKGBJJ.js → THM67RBC.js} +1 -1
  186. package/dist/cdn/{5AUIH5PW.js → TIHHIJTK.js} +1 -1
  187. package/dist/cdn/{F35ORGGB.js → TIIFMOFF.js} +1 -1
  188. package/dist/cdn/{FURSVK7Y.js → TMO4U4HG.js} +1 -1
  189. package/dist/cdn/{KXUS2Z2Z.js → TWW6WTPJ.js} +1 -1
  190. package/dist/cdn/{BWKADIQY.js → TYQO3UPC.js} +1 -1
  191. package/dist/cdn/{LQCHLWS5.js → U7PLIM7D.js} +1 -1
  192. package/dist/cdn/{ZHW7XZUM.js → UBUAQKOP.js} +1 -1
  193. package/dist/cdn/{2F546CPM.js → UI2M6TYH.js} +1 -1
  194. package/dist/cdn/{N2KU7FO4.js → V3SICJ32.js} +1 -1
  195. package/dist/cdn/{MRRTS5P6.js → VAISR7CN.js} +1 -1
  196. package/dist/cdn/VDTRRLON.js +2 -0
  197. package/dist/cdn/{MZQT7KZP.js → VJMC3CMB.js} +1 -1
  198. package/dist/cdn/{6BYE6FYG.js → VJNK2ZS5.js} +1 -1
  199. package/dist/cdn/VV6AUGJZ.js +2 -0
  200. package/dist/cdn/{E2NYZWXE.js → VVC4QG6F.js} +1 -1
  201. package/dist/cdn/VVRTT47C.js +2 -0
  202. package/dist/cdn/{CIC5ZUY7.js → VYS45ONH.js} +1 -1
  203. package/dist/cdn/{KXLECJE4.js → VZ3LSB3Z.js} +1 -1
  204. package/dist/cdn/{UXREMHTR.js → WP6ZYNAK.js} +1 -1
  205. package/dist/cdn/{OMGRHB7H.js → WRRFKLB6.js} +1 -1
  206. package/dist/cdn/{BPJIXO5J.js → WTEY2GUR.js} +1 -1
  207. package/dist/cdn/{T2KDO5HD.js → WTNO7O72.js} +1 -1
  208. package/dist/cdn/{22FLXX55.js → WZWVAXA2.js} +1 -1
  209. package/dist/cdn/{DMA5N4U3.js → XCDWWNUJ.js} +1 -1
  210. package/dist/cdn/{J2R2J6UR.js → XEP6CP26.js} +1 -1
  211. package/dist/cdn/{JNXAPZOG.js → XHT2V7M3.js} +1 -1
  212. package/dist/cdn/{ZUNHOHIR.js → XYV2ZB6J.js} +1 -1
  213. package/dist/cdn/{2YCUXNZC.js → Y6AJ3R7J.js} +1 -1
  214. package/dist/cdn/{JGOVELNR.js → Y6OCHJCV.js} +1 -1
  215. package/dist/cdn/{YTL7TRUR.js → YB4MKEGG.js} +1 -1
  216. package/dist/cdn/{SSGPECUS.js → YGC3D43Q.js} +1 -1
  217. package/dist/cdn/{QTYBVQMT.js → YI4GBTAA.js} +1 -1
  218. package/dist/cdn/{VQR2HIW2.js → YJ36H7AG.js} +1 -1
  219. package/dist/cdn/{27DFVIVV.js → YKJYY74T.js} +1 -1
  220. package/dist/cdn/YLDF7U5D.js +2 -0
  221. package/dist/cdn/{AX4YVQW5.js → YO6Z5FD4.js} +1 -1
  222. package/dist/cdn/{YNKKNHTQ.js → YZQG6WS5.js} +1 -1
  223. package/dist/cdn/{QHILZ2NJ.js → Z63PHR6E.js} +1 -1
  224. package/dist/cdn/{VFAQKJXX.js → Z7ULZVXI.js} +1 -1
  225. package/dist/cdn/{KQKQJVFM.js → ZAJLG5HP.js} +1 -1
  226. package/dist/cdn/{Z6MJ3CFF.js → ZE6S2MJB.js} +1 -1
  227. package/dist/cdn/ZNQZFSHJ.js +2 -0
  228. package/dist/cdn/{A4USUD2G.js → ZOP2TIVZ.js} +1 -1
  229. package/dist/cdn/{KX7Y7MML.js → ZVPFP6UF.js} +1 -1
  230. package/dist/cdn/assets/oriented-imagery-viewer-panoramic-viewer/t9n/messages.en.json +1 -0
  231. package/dist/cdn/assets/version-management/t9n/messages.en.json +1 -1
  232. package/dist/cdn/index.js +1 -1
  233. package/dist/cdn/main.css +1 -1
  234. package/dist/chunks/action-utils.js +9 -9
  235. package/dist/chunks/graphicsLayerController.js +74 -0
  236. package/dist/chunks/utils3.js +13 -45
  237. package/dist/chunks/utils4.js +51 -0
  238. package/dist/chunks/zoom.js +32 -0
  239. package/dist/components/arcgis-aggregated-features/customElement.js +11 -11
  240. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +4 -4
  241. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +2 -2
  242. package/dist/components/arcgis-basemap-gallery/customElement.d.ts +2 -2
  243. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +2 -2
  244. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +16 -2
  245. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +11 -11
  246. package/dist/components/arcgis-basemap-toggle/customElement.d.ts +2 -2
  247. package/dist/components/arcgis-bookmarks/customElement.d.ts +2 -2
  248. package/dist/components/arcgis-building-explorer/customElement.d.ts +2 -2
  249. package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +2 -2
  250. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +37 -18
  251. package/dist/components/arcgis-catalog-layer-list-next/customElement.js +130 -119
  252. package/dist/components/arcgis-clipboard/customElement.d.ts +2 -2
  253. package/dist/components/arcgis-compass/customElement.d.ts +2 -2
  254. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +2 -2
  255. package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +2 -2
  256. package/dist/components/arcgis-daylight/customElement.d.ts +2 -2
  257. package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +2 -2
  258. package/dist/components/arcgis-directional-pad/customElement.d.ts +2 -2
  259. package/dist/components/arcgis-directions/customElement.d.ts +2 -2
  260. package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +2 -2
  261. package/dist/components/arcgis-editor/customElement.d.ts +3 -3
  262. package/dist/components/arcgis-elevation-profile/customElement.d.ts +2 -2
  263. package/dist/components/arcgis-expand/customElement.d.ts +2 -2
  264. package/dist/components/arcgis-feature/customElement.d.ts +2 -2
  265. package/dist/components/arcgis-feature-next/customElement.d.ts +2 -2
  266. package/dist/components/arcgis-feature-next/customElement.js +1 -1
  267. package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
  268. package/dist/components/arcgis-feature-table/customElement.d.ts +2 -2
  269. package/dist/components/arcgis-feature-templates/customElement.d.ts +2 -2
  270. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
  271. package/dist/components/arcgis-features-next/customElement.d.ts +1 -1
  272. package/dist/components/arcgis-features-next/customElement.js +1 -1
  273. package/dist/components/arcgis-floor-filter/customElement.d.ts +2 -2
  274. package/dist/components/arcgis-grid-controls/customElement.d.ts +2 -2
  275. package/dist/components/arcgis-home/customElement.d.ts +2 -2
  276. package/dist/components/arcgis-layer-list/customElement.d.ts +2 -2
  277. package/dist/components/arcgis-layer-list-next/customElement.d.ts +16 -2
  278. package/dist/components/arcgis-layer-list-next/customElement.js +21 -21
  279. package/dist/components/arcgis-legend/customElement.d.ts +2 -2
  280. package/dist/components/arcgis-line-of-sight/customElement.d.ts +2 -2
  281. package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +2 -2
  282. package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +2 -2
  283. package/dist/components/arcgis-locate/customElement.d.ts +2 -2
  284. package/dist/components/arcgis-measurement/customElement.d.ts +2 -2
  285. package/dist/components/arcgis-multi-feature-form/customElement.d.ts +2 -2
  286. package/dist/components/arcgis-navigation-toggle/customElement.d.ts +2 -2
  287. package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +2 -2
  288. package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/customElement.js +64 -132
  289. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.d.ts +51 -0
  290. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +1006 -0
  291. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/index.d.ts +1 -0
  292. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/index.js +5 -0
  293. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/support/PanoramicMedia.d.ts +49 -0
  294. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/support/PanoramicTilePlanner.d.ts +18 -0
  295. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/support/PanoramicTileSource.d.ts +36 -0
  296. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.d.ts +91 -0
  297. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.js +93 -0
  298. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/index.d.ts +1 -0
  299. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/index.js +2 -0
  300. package/dist/components/arcgis-paste/customElement.d.ts +2 -2
  301. package/dist/components/arcgis-popup/customElement.d.ts +3 -3
  302. package/dist/components/arcgis-popup/customElement.js +1 -1
  303. package/dist/components/arcgis-presentation/customElement.d.ts +2 -2
  304. package/dist/components/arcgis-print/customElement.d.ts +2 -2
  305. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  306. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  307. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  308. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  309. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  310. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  311. package/dist/components/arcgis-scale-bar/customElement.d.ts +2 -2
  312. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +2 -2
  313. package/dist/components/arcgis-search/customElement.d.ts +2 -2
  314. package/dist/components/arcgis-shadow-cast/customElement.d.ts +2 -2
  315. package/dist/components/arcgis-sketch/customElement.d.ts +2 -2
  316. package/dist/components/arcgis-slice/customElement.d.ts +2 -2
  317. package/dist/components/arcgis-slider-scale-range/customElement.d.ts +2 -2
  318. package/dist/components/arcgis-snapping-controls/customElement.d.ts +2 -2
  319. package/dist/components/arcgis-swipe/customElement.d.ts +2 -2
  320. package/dist/components/arcgis-table-list/customElement.d.ts +2 -2
  321. package/dist/components/arcgis-table-list-next/customElement.d.ts +16 -2
  322. package/dist/components/arcgis-table-list-next/customElement.js +17 -17
  323. package/dist/components/arcgis-time-bar/customElement.d.ts +5 -5
  324. package/dist/components/arcgis-time-bar/customElement.js +1 -1
  325. package/dist/components/arcgis-time-bar-slider/customElement.js +11 -11
  326. package/dist/components/arcgis-time-slider/customElement.d.ts +2 -2
  327. package/dist/components/arcgis-time-zone-label/customElement.d.ts +2 -2
  328. package/dist/components/arcgis-track/customElement.d.ts +2 -2
  329. package/dist/components/arcgis-utility-network-associations/customElement.d.ts +2 -2
  330. package/dist/components/arcgis-utility-network-trace/customElement.d.ts +2 -2
  331. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +2 -2
  332. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +2 -2
  333. package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +2 -2
  334. package/dist/components/arcgis-utility-network-trace-location-list/customElement.d.ts +2 -2
  335. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +2 -2
  336. package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +2 -2
  337. package/dist/components/arcgis-version-management/customElement.d.ts +114 -94
  338. package/dist/components/arcgis-version-management/customElement.js +164 -176
  339. package/dist/components/arcgis-version-management/index.js +3 -4
  340. package/dist/components/arcgis-version-management-service-item/customElement.js +25 -39
  341. package/dist/components/arcgis-version-management-service-item/index.js +0 -1
  342. package/dist/components/arcgis-version-management-version-list/customElement.js +43 -70
  343. package/dist/components/arcgis-version-management-version-list/index.js +5 -6
  344. package/dist/components/arcgis-version-management-version-list-item/customElement.js +44 -0
  345. package/dist/components/arcgis-version-management-version-list-item/index.js +5 -0
  346. package/dist/components/arcgis-version-management-version-properties/customElement.js +80 -70
  347. package/dist/components/arcgis-version-management-version-properties/index.js +3 -4
  348. package/dist/components/arcgis-video-player/customElement.d.ts +2 -2
  349. package/dist/components/arcgis-volume-measurement/customElement.d.ts +2 -2
  350. package/dist/components/arcgis-weather/customElement.d.ts +2 -2
  351. package/dist/components/arcgis-zoom/customElement.d.ts +2 -2
  352. package/dist/components/arcgis-zoom/customElement.js +21 -45
  353. package/dist/controllers/useT9n.d.ts +3 -0
  354. package/dist/docs/api.json +1 -1
  355. package/dist/docs/docs.json +1 -1
  356. package/dist/docs/vscode.html-custom-data.json +1 -1
  357. package/dist/docs/web-types.json +1 -1
  358. package/dist/index.d.ts +14 -0
  359. package/dist/loader.js +12 -9
  360. package/dist/types/lumina.d.ts +17 -4
  361. package/dist/types/preact.d.ts +19 -4
  362. package/dist/types/react.d.ts +21 -4
  363. package/dist/types/stencil.d.ts +17 -4
  364. package/package.json +4 -4
  365. package/dist/cdn/26W2NMYE.js +0 -2
  366. package/dist/cdn/3N7DHHCP.js +0 -2
  367. package/dist/cdn/44SYZMRA.js +0 -2
  368. package/dist/cdn/4LHBEGTU.js +0 -2
  369. package/dist/cdn/54FMWJL7.js +0 -2
  370. package/dist/cdn/5F6Q3XF5.js +0 -2
  371. package/dist/cdn/5JXXMDY6.js +0 -2
  372. package/dist/cdn/A22AUGYH.js +0 -2
  373. package/dist/cdn/A5XIQWD5.js +0 -2
  374. package/dist/cdn/AK62SYBC.js +0 -2
  375. package/dist/cdn/BC7EPFWD.js +0 -2
  376. package/dist/cdn/D7DH54CE.js +0 -2
  377. package/dist/cdn/DZWUKLIN.js +0 -2
  378. package/dist/cdn/EI6T7BKN.js +0 -2
  379. package/dist/cdn/EIKXN526.js +0 -2
  380. package/dist/cdn/F3VS53GP.js +0 -2
  381. package/dist/cdn/HR3OA66U.js +0 -2
  382. package/dist/cdn/JJFLMGAX.js +0 -2
  383. package/dist/cdn/JOJQC6AF.js +0 -2
  384. package/dist/cdn/KBBYF7KD.js +0 -2
  385. package/dist/cdn/KEV6I36K.js +0 -2
  386. package/dist/cdn/LB4H4S5X.js +0 -2
  387. package/dist/cdn/LP6TTSIT.js +0 -2
  388. package/dist/cdn/M4HY5VMM.js +0 -2
  389. package/dist/cdn/MBRWWICI.js +0 -2
  390. package/dist/cdn/MGS4P6UC.js +0 -2
  391. package/dist/cdn/NEQT2ZY6.js +0 -2
  392. package/dist/cdn/OO6NV5GK.js +0 -2
  393. package/dist/cdn/OPQJE7BZ.js +0 -2
  394. package/dist/cdn/RAH7WYLV.js +0 -2
  395. package/dist/cdn/SSK7OVMF.js +0 -2
  396. package/dist/cdn/T6CKYPI7.js +0 -2
  397. package/dist/cdn/TM6LGP6D.js +0 -2
  398. package/dist/cdn/UU2VWYLI.js +0 -2
  399. package/dist/cdn/UX6QVJG6.js +0 -2
  400. package/dist/cdn/WYZPOKJF.js +0 -2
  401. package/dist/cdn/X6K2RSPI.js +0 -2
  402. package/dist/cdn/XCIYLNTM.js +0 -2
  403. package/dist/cdn/XTK3DMAO.js +0 -2
  404. package/dist/cdn/XWJQBDNW.js +0 -2
  405. package/dist/cdn/ZKQKAXTB.js +0 -2
  406. /package/dist/cdn/{MOJH7XEP.js → 3ZXNGXHC.js} +0 -0
@@ -1,94 +1,67 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as y } from "../../chunks/runtime.js";
3
- import { css as B, html as i, nothing as U } from "lit";
4
- import { createRef as w, ref as x } from "lit/directives/ref.js";
5
- import { LitElement as A, createEvent as p } from "@arcgis/lumina";
6
- const M = B`:host{min-height:var(--arcgis-internal-panel-height-md, 420px);height:100%}calcite-block{margin-block:0;width:100%}calcite-pagination{justify-content:center;background-color:var(--calcite-color-surface-2)}.filter-container{width:100%}.fab-container{background-color:var(--calcite-color-surface-2);display:flex;justify-content:center}`;
7
- class T extends A {
2
+ import { c as P } from "../../chunks/runtime.js";
3
+ import { css as A, html as i } from "lit";
4
+ import { LitElement as U, createEvent as s } from "@arcgis/lumina";
5
+ const k = A`calcite-input-text,calcite-notice{background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-sm)}calcite-pagination{background-color:var(--calcite-color-surface-2);justify-content:center}calcite-panel{height:fit-content;max-height:var(--arcgis-internal-panel-height-sm, 240px)}.current-version-div{background-color:var(--calcite-color-surface-2);border-color:var(--calcite-block-border-color, var(--calcite-color-border-3));border-style:solid;border-width:0 0 1px;padding:var(--calcite-space-2xs) 0}.current-version-div .current-version-description-label,.current-version-div .current-version-header-label{height:var(--calcite-font-size);margin:var(--calcite-space-2xs) var(--calcite-space-md)}.current-version-div .current-version-header-label{font-weight:var(--calcite-font-weight-medium)}`;
6
+ class F extends U {
8
7
  constructor() {
9
- super(...arguments), this._filterInputElement = w(), this._flowItemElement = w(), this.currentPage = 1, this.selected = !1, this.showBackButton = !1, this.arcgisFlowItemBack = p(), this.arcgisFlowItemClose = p(), this.arcgisGetVersions = p(), this.arcgisManageVersion = p(), this.arcgisNewVersion = p();
8
+ super(...arguments), this.#e = 1, this.hideFilter = !1, this.mode = "browse-versions", this.totalPages = 0, this.totalVersions = 0, this.arcgisInternalFilterVersions = s(), this.arcgisInternalGetVersions = s(), this.arcgisInternalManageVersion = s(), this.arcgisInternalNewVersion = s(), this.arcgisInternalPageChange = s();
10
9
  }
11
10
  static {
12
- this.properties = { _filteredVersionInfos: 16, currentPage: 11, selected: 7, showBackButton: 7, versionListElementProps: 0 };
11
+ this.properties = { currentPage: 9, currentUser: 1, currentVersionInfo: 0, executionError: 1, featureServiceName: 1, featureServiceUrl: 1, hideFilter: 5, isVersionAdministrator: 5, isVersioningApiAvailable: 5, messages: 0, mode: 1, totalPages: 9, totalVersions: 9, versionInfos: 0 };
13
12
  }
14
13
  static {
15
- this.styles = M;
16
- }
17
- load() {
18
- this._filteredVersionInfos = this.versionListElementProps.versionInfos;
14
+ this.styles = k;
19
15
  }
16
+ #e;
20
17
  willUpdate(e) {
21
- if (e.has("versionListElementProps")) {
22
- const t = e.get("versionListElementProps"), n = this.versionListElementProps;
23
- t?.versionInfos !== n.versionInfos && (this._filteredVersionInfos = n.versionInfos, this._filterInputElement.value && this._handleFilterChange());
18
+ if (e.has("mode")) {
19
+ const t = e.get("mode"), n = t === "browse-services" && this.mode === "browse-versions", a = t === "browse-versions" && (this.mode === "create-version" || this.mode === "edit-version");
20
+ (n || a) && this.executionError && (this.executionError = void 0);
24
21
  }
25
22
  }
26
- updated() {
27
- this._filterInputElement.value?.setFocus();
28
- }
29
- async setFocus() {
30
- this._flowItemElement.value?.setFocus();
31
- }
32
- goBack() {
33
- }
34
- _handleFilterChange() {
35
- const { versionListElementProps: { versionInfos: e } } = this, t = this._filterInputElement.value.value.toUpperCase();
36
- this._filteredVersionInfos = t === "" ? e : e.filter((n) => n.versionIdentifier.name.toUpperCase().includes(t) || n.versionIdentifier.guid.toUpperCase().includes(t)), this._filteredVersionInfos.length && (this.currentPage = 1);
37
- }
38
- _handleNoticeClosed() {
39
- this.versionListElementProps = { ...this.versionListElementProps, executionError: void 0 };
40
- }
41
- _handlePaginationChange(e) {
42
- this.currentPage = e.target.startItem;
43
- }
44
- _getExecutionError(e) {
45
- const { versionListElementProps: { strings: { executionErrors: t } } } = this;
23
+ #i(e) {
24
+ const { messages: t } = this;
46
25
  switch (e) {
47
26
  case "no-feature-service-found":
48
- return t.noFeatureServiceFound;
27
+ return t?.executionErrors.noFeatureServiceFound ?? "";
49
28
  case "no-valid-enterprise-version":
50
- return t.notValidEnterpriseVersion;
29
+ return t?.executionErrors.notValidEnterpriseVersion ?? "";
51
30
  case "no-valid-version-name":
52
- return t.invalidVersionName;
31
+ return t?.executionErrors.invalidVersionName ?? "";
53
32
  default:
54
33
  return e;
55
34
  }
56
35
  }
57
- _paginate(e, t, n) {
58
- return e.slice((n - 1) * t, n * t);
36
+ #r() {
37
+ this.executionError = void 0;
59
38
  }
60
- render() {
61
- const { currentPage: e, selected: t, showBackButton: n, versionListElementProps: { closable: m, currentUser: v, currentVersionIdentifier: d, executionError: h, heading: o, isVersionAdministrator: f, isVersioningApiAvailable: u, pageSize: r, serviceName: s, serviceUrl: c, state: g, strings: { headers: l }, strings: a, versionInfos: $ } } = this, V = i`<calcite-block .description=${d.name} .heading=${l.currentVersion} overlay-positioning=fixed scale=s></calcite-block>`, I = i`<calcite-action icon=refresh .id=${`action-refresh-versions-${s}`} .label=${`action-refresh-versions-${s}`} slot=header-actions-end text @click=${() => this.arcgisGetVersions.emit({ serviceUrl: c })}><calcite-tooltip overlay-positioning=fixed .referenceElement=${`action-refresh-versions-${s}`}><span>${a.actions.refreshVersions}</span></calcite-tooltip></calcite-action>`;
62
- this._paginatedVersionInfos = this._filteredVersionInfos.length > r ? this._paginate(this._filteredVersionInfos, r, e) : this._filteredVersionInfos;
63
- const b = this._filteredVersionInfos.length > r ? i`<calcite-pagination @calcitePaginationChange=${this._handlePaginationChange} page-size=1 .startItem=${e} .totalItems=${Math.ceil(this._filteredVersionInfos.length / r)}></calcite-pagination>` : void 0, E = this._paginate(this._paginatedVersionInfos, r, 1).map((L) => {
64
- const F = {
65
- currentUser: v,
66
- currentVersionIdentifier: d,
67
- isCurrentVersionCard: !1,
68
- isVersionAdministrator: f,
69
- isVersioningApiAvailable: u,
70
- serviceUrl: c,
71
- strings: a,
72
- versionInfo: L
73
- };
74
- return this._renderListItem(F);
75
- }), _ = $.length > r ? i`<div class="filter-container" slot=content-top><calcite-input-text clearable icon=search .label=${l.filterVersions} @calciteInputTextInput=${this._handleFilterChange} .placeholder=${a.actions.searchVersions} ${x(this._filterInputElement)}></calcite-input-text></div>` : void 0, C = i`<calcite-list .label=${a.labels.versionList}>${E}</calcite-list>`, k = u ? i`<div class="fab-container"><calcite-fab appearance=outline-fill text-enabled .text=${a.actions.newVersion} @click=${() => this.arcgisNewVersion.emit({ serviceUrl: c })}></calcite-fab></div>` : void 0, P = h ? i`<calcite-notice @calciteNoticeClose=${this._handleNoticeClosed} closable kind=warning open scale=s width=full><div slot=message>${this._getExecutionError(h)}</div></calcite-notice>` : void 0;
76
- return i`<calcite-flow-item .closable=${m} .description=${s} .heading=${o} .selected=${t} .showBackButton=${n} @calciteFlowItemBack=${() => this.arcgisFlowItemBack.emit()} @calciteFlowItemClose=${() => this.arcgisFlowItemClose.emit()} ${x(this._flowItemElement)}><calcite-panel .loading=${g === "executing"}>${V}<calcite-panel .heading=${this._filteredVersionInfos.length ? `${a.headers.manageVersions} (${this._filteredVersionInfos.length})` : a.headers.manageVersions} scale=s>${I}${_}${C}${k}${b}</calcite-panel>${P}</calcite-panel></calcite-flow-item>`;
39
+ #t(e) {
40
+ this.arcgisInternalPageChange.emit({ currentPage: e.target.startItem });
77
41
  }
78
- _renderListItem(e) {
79
- const { currentUser: t, currentVersionIdentifier: n, isVersionAdministrator: m, isVersioningApiAvailable: v, serviceUrl: d, strings: { actions: h }, versionInfo: o } = e, f = o.versionIdentifier.name, u = f.substring(f.lastIndexOf(".") + 1), r = f.substring(0, f.lastIndexOf(".")), s = o.versionIdentifier.guid, c = `action-start-switch-to-version-${s}`, g = r.toUpperCase() === t.toUpperCase() && v || m, l = n.guid === o.versionIdentifier.guid, a = f.toUpperCase() === "SDE.DEFAULT", $ = i`<calcite-action .disabled=${l} icon=code-branch .label=${`action-switch-to-version-${s}`} scale=s .text=${h.switchToVersion} text-enabled @click=${() => {
80
- this.arcgisManageVersion.emit({ actionType: "changeVersion", serviceUrl: d, versionInfo: o });
81
- }}></calcite-action>`, V = a ? void 0 : i`<calcite-action .disabled=${!g || g && l} icon=trash .label=${`action-delete-version-${s}`} scale=s .text=${h.deleteVersion} text-enabled @click=${() => {
82
- this.arcgisManageVersion.emit({ actionType: "deleteVersion", serviceUrl: d, versionInfo: o });
83
- }}></calcite-action>`, I = i`<calcite-action .disabled=${!g || l} icon=code-branch-edit .label=${`action-edit-version-${s}`} scale=s .text=${h.editVersion} text-enabled @click=${() => {
84
- this.arcgisManageVersion.emit({ actionType: "editVersion", serviceUrl: d, versionInfo: o });
85
- }}></calcite-action>`, b = i`<calcite-action-menu .label=${`action-version-menu-${s}`} overlay-positioning=fixed slot=actions-end>${$}${I}${V}</calcite-action-menu>`, E = l ? void 0 : i`<calcite-tooltip overlay-positioning=fixed .referenceElement=${c}><span>${h.switchToVersion}</span></calcite-tooltip>`, _ = i`<div slot=actions-start><calcite-action .disabled=${l} icon=code-branch id=${c ?? U} .label=${c} .text=${c} @click=${() => {
86
- this.arcgisManageVersion.emit({ actionType: "changeVersion", serviceUrl: d, versionInfo: o });
87
- }}></calcite-action>${E}</div>`;
88
- return i`<calcite-list-item .description=${r} .label=${u} .value=${s}>${_}${b}</calcite-list-item>`;
42
+ #s(e) {
43
+ e.stopPropagation(), this.arcgisInternalManageVersion.emit({
44
+ actionType: e.detail.actionType,
45
+ serviceUrl: e.detail.serviceUrl,
46
+ versionInfo: e.detail.versionInfo
47
+ });
48
+ }
49
+ render() {
50
+ const { currentUser: e, currentPage: t, currentVersionInfo: n, executionError: a, featureServiceName: o, featureServiceUrl: c, hideFilter: h, isVersionAdministrator: u, isVersioningApiAvailable: v, messages: r, totalPages: d, totalVersions: m, versionInfos: g } = this, p = g?.map((l) => i`<arcgis-version-management-version-list-item .currentUser=${e} .currentVersionInfo=${n} .featureServiceUrl=${c} .isVersionAdministrator=${u} .isVersioningApiAvailable=${v} .messages=${r} .versionInfo=${l} @arcgisInternalManageVersion=${this.#s}></arcgis-version-management-version-list-item>`), f = i`<div class="current-version-div"><calcite-label scale=m class="current-version-header-label">${r?.headers.currentVersion}</calcite-label><calcite-label scale=s class="current-version-description-label">${n?.versionIdentifier.name}</calcite-label></div>`, $ = i`<calcite-action icon=refresh .id=${`action-refresh-versions-${o}`} .label=${`action-refresh-versions-${o}`} slot=actions-end text @click=${() => {
51
+ this.arcgisInternalGetVersions.emit({
52
+ serviceUrl: c
53
+ });
54
+ }}><calcite-tooltip overlay-positioning=fixed .referenceElement=${`action-refresh-versions-${o}`}><span>${r?.actions.refreshVersions}</span></calcite-tooltip></calcite-action>`, V = i`<calcite-block .heading=${g?.length ? `${r?.headers.manageVersions} (${m})` : r?.headers.manageVersions}>${$}</calcite-block>`, b = h ? void 0 : i`<calcite-input-text clearable icon=search .label=${r?.headers.filterVersions} .placeholder=${r?.actions.searchVersions} @calciteInputTextInput=${(l) => {
55
+ this.arcgisInternalFilterVersions.emit({ filterText: l.target.value });
56
+ }}></calcite-input-text>`, I = v ? i`<calcite-fab appearance=outline-fill slot=fab text-enabled .text=${r?.actions.newVersion} @click=${() => {
57
+ this.arcgisInternalNewVersion.emit({
58
+ serviceUrl: c ?? ""
59
+ });
60
+ }}></calcite-fab>` : void 0, x = d > 1 ? i`<calcite-pagination .pageSize=${this.#e} .startItem=${t} .totalItems=${d} @calcitePaginationChange=${this.#t}></calcite-pagination>` : void 0, w = a ? i`<calcite-notice closable icon kind=warning open scale=s width=full @calciteNoticeClose=${this.#r}><div slot=message>${this.#i(a)}</div></calcite-notice>` : void 0, E = i`<calcite-panel>${I}<calcite-list .label=${r?.labels.versionList ?? ""}>${p}</calcite-list></calcite-panel>`;
61
+ return i`${f}${V}${b}${E}${x}${w}`;
89
62
  }
90
63
  }
91
- y("arcgis-version-management-version-list", T);
64
+ P("arcgis-version-management-version-list", F);
92
65
  export {
93
- T as ArcgisVersionManagementVersionList
66
+ F as ArcgisVersionManagementVersionList
94
67
  };
@@ -1,13 +1,12 @@
1
- import "@esri/calcite-components/components/calcite-block";
1
+ import "../arcgis-version-management-version-list-item/index.js";
2
+ import "@esri/calcite-components/components/calcite-label";
2
3
  import "@esri/calcite-components/components/calcite-action";
3
4
  import "@esri/calcite-components/components/calcite-tooltip";
4
- import "@esri/calcite-components/components/calcite-pagination";
5
+ import "@esri/calcite-components/components/calcite-block";
5
6
  import "@esri/calcite-components/components/calcite-input-text";
6
- import "@esri/calcite-components/components/calcite-list";
7
7
  import "@esri/calcite-components/components/calcite-fab";
8
+ import "@esri/calcite-components/components/calcite-pagination";
8
9
  import "@esri/calcite-components/components/calcite-notice";
9
- import "@esri/calcite-components/components/calcite-flow-item";
10
10
  import "@esri/calcite-components/components/calcite-panel";
11
- import "@esri/calcite-components/components/calcite-action-menu";
12
- import "@esri/calcite-components/components/calcite-list-item";
11
+ import "@esri/calcite-components/components/calcite-list";
13
12
  export * from "./customElement.js";
@@ -0,0 +1,44 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as A } from "../../chunks/runtime.js";
3
+ import { html as i } from "lit";
4
+ import { LitElement as x, createEvent as U, nothing as E } from "@arcgis/lumina";
5
+ class T extends x {
6
+ constructor() {
7
+ super(...arguments), this.arcgisInternalManageVersion = U();
8
+ }
9
+ static {
10
+ this.properties = { currentUser: 1, currentVersionInfo: 0, featureServiceUrl: 1, isVersionAdministrator: 5, isVersioningApiAvailable: 5, messages: 0, versionInfo: 0 };
11
+ }
12
+ render() {
13
+ const { currentUser: d, currentVersionInfo: m, featureServiceUrl: o, isVersionAdministrator: g, isVersioningApiAvailable: $, messages: c, versionInfo: e } = this, n = e?.versionIdentifier.name ?? "", v = n.substring(n.lastIndexOf(".") + 1), l = n.substring(0, n.lastIndexOf(".")), t = e?.versionIdentifier.guid ?? "", s = m?.versionIdentifier.guid === e?.versionIdentifier.guid, V = n.toUpperCase() === "SDE.DEFAULT", a = l.toUpperCase() === d?.toUpperCase() && $ || g, r = `action-start-switch-to-version-${t}`, p = s ? void 0 : i`<calcite-tooltip overlay-positioning=fixed .referenceElement=${r}><span>${c?.actions.switchToVersion}</span></calcite-tooltip>`, u = i`<div slot=actions-start><calcite-action .disabled=${s} icon=code-branch id=${r ?? E} .label=${r} .text=${r} @click=${() => {
14
+ this.arcgisInternalManageVersion.emit({
15
+ actionType: "changeVersion",
16
+ serviceUrl: o,
17
+ versionInfo: e
18
+ });
19
+ }}></calcite-action>${p}</div>`, h = i`<calcite-action .disabled=${s} icon=code-branch .label=${`action-switch-to-version-${t}`} scale=s .text=${c?.actions.switchToVersion ?? ""} text-enabled @click=${() => {
20
+ this.arcgisInternalManageVersion.emit({
21
+ actionType: "changeVersion",
22
+ serviceUrl: o,
23
+ versionInfo: e
24
+ });
25
+ }}></calcite-action>`, b = i`<calcite-action .disabled=${!a || s} icon=code-branch-edit .label=${`action-edit-version-${t}`} scale=s .text=${c?.actions.editVersion ?? ""} text-enabled @click=${() => {
26
+ this.arcgisInternalManageVersion.emit({
27
+ actionType: "editVersion",
28
+ serviceUrl: o,
29
+ versionInfo: e
30
+ });
31
+ }}></calcite-action>`, f = V ? void 0 : i`<calcite-action .disabled=${!a || a && s} icon=trash .label=${`action-delete-version-${t}`} scale=s .text=${c?.actions.deleteVersion ?? ""} text-enabled @click=${() => {
32
+ this.arcgisInternalManageVersion.emit({
33
+ actionType: "deleteVersion",
34
+ serviceUrl: o,
35
+ versionInfo: e
36
+ });
37
+ }}></calcite-action>`, I = i`<calcite-action-menu .label=${`action-version-menu-${t}`} overlay-positioning=fixed slot=actions-end>${h}${b}${f}</calcite-action-menu>`;
38
+ return i`<calcite-list-item .description=${l} .label=${v} .value=${t}>${u}${I}</calcite-list-item>`;
39
+ }
40
+ }
41
+ A("arcgis-version-management-version-list-item", T);
42
+ export {
43
+ T as ArcgisVersionManagementVersionListItem
44
+ };
@@ -0,0 +1,5 @@
1
+ import "@esri/calcite-components/components/calcite-tooltip";
2
+ import "@esri/calcite-components/components/calcite-action";
3
+ import "@esri/calcite-components/components/calcite-action-menu";
4
+ import "@esri/calcite-components/components/calcite-list-item";
5
+ export * from "./customElement.js";
@@ -1,97 +1,107 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as $ } from "../../chunks/runtime.js";
3
- import { css as V, html as l } from "lit";
4
- import { LitElement as C, createEvent as p } from "@arcgis/lumina";
5
- import { createRef as u, ref as v } from "lit/directives/ref.js";
6
- const I = V`:host{min-height:var(--arcgis-internal-panel-height-md, 420px);height:100%}`;
7
- class x extends C {
2
+ import { c as p } from "../../chunks/runtime.js";
3
+ import { html as r } from "lit";
4
+ import { LitElement as m, createEvent as o } from "@arcgis/lumina";
5
+ import { d as u } from "../../chunks/component-utils.js";
6
+ class f extends m {
8
7
  constructor() {
9
- super(...arguments), this._flowItemElement = u(), this._switchToVersion = !0, this._switchToVersionCheckboxElement = u(), this._versionNameInputElement = u(), this.selected = !1, this.showBackButton = !1, this.arcgisAlterVersion = p(), this.arcgisCreateVersion = p(), this.arcgisFlowItemBack = p(), this.arcgisFlowItemClose = p();
10
- }
11
- static {
12
- this.properties = { _validationError: 16, selected: 7, showBackButton: 7, versionPropertiesElementProps: 0 };
8
+ super(...arguments), this.#e = {
9
+ access: void 0,
10
+ description: void 0,
11
+ featureServerUrl: "",
12
+ ownerName: void 0,
13
+ versionName: void 0,
14
+ versionIdentifier: { name: "", guid: "" }
15
+ }, this.#i = {
16
+ access: "public",
17
+ description: "",
18
+ featureServerUrl: "",
19
+ ownerName: "",
20
+ versionName: ""
21
+ }, this.#t = !0, this.mode = "browse-versions", this.arcgisInternalAlterVersion = o(), this.arcgisInternalCreateVersion = o(), this.arcgisInternalDiscardEdits = o();
13
22
  }
14
23
  static {
15
- this.styles = I;
24
+ this.properties = { _validationError: 16, currentUser: 1, editVersionInfo: 0, featureServiceUrl: 1, messages: 0, mode: 1 };
16
25
  }
17
- load() {
18
- const { versionPropertiesElementProps: { versionInfo: t } } = this;
19
- t ? (this._mode = "edit", this._fullVersionName = t.versionIdentifier.name, this._ownerName = this._fullVersionName.substring(0, this._fullVersionName.lastIndexOf(".")), this._versionName = this._fullVersionName.substring(this._fullVersionName.lastIndexOf(".") + 1)) : this._mode = "create";
20
- }
21
- updated() {
22
- this._mode === "create" && this._versionNameInputElement.value?.setFocus();
23
- }
24
- async setFocus() {
25
- this._flowItemElement.value?.setFocus();
26
- }
27
- goBack() {
26
+ #e;
27
+ #i;
28
+ #t;
29
+ willUpdate(i) {
30
+ const { editVersionInfo: t, featureServiceUrl: e } = this;
31
+ if (i.has("currentUser") && (this.#i.ownerName = this.currentUser ?? ""), i.has("featureServiceUrl") && (this.#i.featureServerUrl = e ?? ""), i.has("editVersionInfo")) {
32
+ const s = t?.versionIdentifier.name, c = s?.substring(0, s.lastIndexOf(".")), a = s?.substring(s.lastIndexOf(".") + 1);
33
+ this.#e = {
34
+ ...this.#e,
35
+ access: t?.access,
36
+ description: t?.description,
37
+ featureServerUrl: e ?? "",
38
+ ownerName: c,
39
+ versionName: a,
40
+ versionIdentifier: t?.versionIdentifier ?? { name: "", guid: "" }
41
+ };
42
+ }
43
+ i.has("mode") && this.#r();
28
44
  }
29
- _handleCancel() {
30
- this.arcgisFlowItemBack.emit();
45
+ #a() {
46
+ this.arcgisInternalDiscardEdits.emit(), this.#r();
31
47
  }
32
- _handleChange(t) {
33
- const { _mode: s, _ownerName: h, _versionName: d, versionPropertiesElementProps: { currentUser: m, isVersionAdministrator: e, serviceUrl: c, versionInfo: i } } = this;
34
- let { _alterVersionParameters: r, _createVersionParameters: a } = this;
35
- switch (s === "create" && (a || (a = {
36
- access: "public",
37
- description: "",
38
- featureServerUrl: c,
39
- ownerName: m,
40
- versionName: ""
41
- })), s === "edit" && (r || (r = {
42
- featureServerUrl: c,
43
- versionIdentifier: i.versionIdentifier,
44
- ownerName: h,
45
- versionName: d,
46
- access: i.access,
47
- description: i.description
48
- })), t.type) {
48
+ #s(i) {
49
+ const { mode: t } = this;
50
+ switch (i.type) {
49
51
  case "calciteChipGroupSelect": {
50
- const o = t.target.label, n = t.target.selectedItems[0].label;
51
- s === "create" && (a = { ...a, [o]: n }), s === "edit" && (r = { ...r, [o]: n });
52
+ const e = i.target.selectedItems[0].label;
53
+ t === "create-version" && (this.#i.access = e), t === "edit-version" && (this.#e.access = e);
52
54
  break;
53
55
  }
54
56
  case "calciteInputTextInput": {
55
- const o = t.target.name, n = t.target.value;
56
- s === "create" && (a = { ...a, [o]: n }), s === "edit" && (r = { ...r, [o]: n });
57
+ const e = i.target.name, s = i.target.value;
58
+ t === "create-version" && (e === "versionName" || e === "ownerName") && (this.#i[e] = s), t === "edit-version" && (e === "versionName" || e === "ownerName") && (this.#e[e] = s);
57
59
  break;
58
60
  }
59
61
  case "calciteTextAreaInput": {
60
- const o = t.target.name;
61
- if (o != null) {
62
- const n = t.target.value;
63
- s === "create" && (a = { ...a, [o]: n }), s === "edit" && (r = { ...r, [o]: n });
64
- }
62
+ const e = i.target.value;
63
+ t === "create-version" && (this.#i.description = e), t === "edit-version" && (this.#e.description = e);
65
64
  break;
66
65
  }
67
66
  }
68
- s === "create" && (a.access !== "public" && m.toUpperCase() !== a.ownerName?.toUpperCase() && !e ? (this._switchToVersionCheckboxElement.value.checked = !1, this._switchToVersionCheckboxElement.value.disabled = !0, this._switchToVersion = !1) : this._switchToVersionCheckboxElement.value.disabled = !1, this._createVersionParameters = a), s === "edit" && (this._alterVersionParameters = r);
69
- }
70
- _handleClose() {
71
- this.arcgisFlowItemClose.emit();
72
67
  }
73
- _handleSave() {
74
- const { _alterVersionParameters: t, _createVersionParameters: s, _mode: h, _switchToVersion: d, versionPropertiesElementProps: { strings: m } } = this, e = [".", ";", "'", '"'];
75
- if (e.some((i) => s?.versionName?.includes(i)) || e.some((i) => t?.versionName?.includes(i))) {
76
- this._validationError = m.validationErrors.invalidCharacters;
68
+ #c() {
69
+ const { messages: i, mode: t } = this, e = t === "create-version" ? this.#i?.versionName?.trim() ?? "" : this.#e?.versionName?.trim() ?? "", s = u(e), a = [".", ";", "'", '"'].some((n) => e.includes(n));
70
+ if (s) {
71
+ this._validationError = i?.validationErrors.emptyVersionName;
72
+ return;
73
+ }
74
+ if (a) {
75
+ this._validationError = i?.validationErrors.invalidCharacters;
77
76
  return;
78
77
  }
79
- h === "create" && this.arcgisCreateVersion.emit({
80
- createVersionParameters: s,
81
- switchToVersion: d
82
- }), h === "edit" && this.arcgisAlterVersion.emit({
83
- alterVersionParameters: t
84
- });
78
+ t === "create-version" && this.arcgisInternalCreateVersion.emit({
79
+ createVersionParameters: this.#i,
80
+ switchToVersion: this.#t
81
+ }), t === "edit-version" && this.arcgisInternalAlterVersion.emit({
82
+ alterVersionParameters: this.#e
83
+ }), this.#r();
85
84
  }
86
- _handleSwitchToVersionChange(t) {
87
- this._switchToVersion = t.target.checked;
85
+ #n(i) {
86
+ this.#t = i.target.checked;
87
+ }
88
+ #r() {
89
+ this.#i = {
90
+ ...this.#i,
91
+ access: "public",
92
+ description: "",
93
+ ownerName: this.currentUser,
94
+ versionName: ""
95
+ }, this.editVersionInfo = void 0, this.#t = !0, this._validationError = void 0;
88
96
  }
89
97
  render() {
90
- const { selected: t, showBackButton: s, versionPropertiesElementProps: { closable: h, currentUser: d, state: m, strings: e, versionInfo: c }, _mode: i, _ownerName: r, _versionName: a } = this, o = l`<calcite-button appearance=outline slot=footer width=full @click=${this._handleCancel}>${e.actions.cancelSave}</calcite-button><calcite-button appearance=solid slot=footer width=full @click=${this._handleSave}>${e.actions.saveVersion}</calcite-button>`, n = l`<calcite-label>${e.input.versionAccess}<calcite-chip-group label=access @calciteChipGroupSelect=${this._handleChange} selection-mode=single-persist><calcite-chip .selected=${i === "edit" && c.access === "public" || i === "create"} label=public>${e.accessLevels.public}</calcite-chip><calcite-chip .selected=${i === "edit" && c.access === "protected"} label=protected>${e.accessLevels.protected}</calcite-chip><calcite-chip .selected=${i === "edit" && c.access === "private"} label=private>${e.accessLevels.private}</calcite-chip></calcite-chip-group></calcite-label>`, f = l`<calcite-label>${e.input.versionDescription}<calcite-text-area limit-text max-length=64 name=description resize=none rows=2 scale=s .value=${i === "edit" ? c.description : ""} @calciteTextAreaInput=${this._handleChange}></calcite-text-area></calcite-label>`, _ = l`<calcite-label>${e.input.versionName}<calcite-input-text max-length=62 name=versionName .value=${i === "edit" ? a : ""} @calciteInputTextInput=${this._handleChange} ${v(this._versionNameInputElement)}></calcite-input-text></calcite-label>`, b = l`<calcite-label>${e.input.versionOwner}<calcite-input-text name=ownerName .value=${i === "edit" ? r : d} @calciteInputTextInput=${this._handleChange}></calcite-input-text></calcite-label>`, g = i === "create" ? l`<calcite-label layout=inline><calcite-checkbox checked name=switchToVersion @calciteCheckboxChange=${this._handleSwitchToVersionChange} ${v(this._switchToVersionCheckboxElement)}></calcite-checkbox>${e.actions.switchToVersion}</calcite-label>` : void 0, w = this._validationError ? l`<calcite-notice closable kind=warning open scale=s width=full @calciteNoticeClose=${() => this._validationError = void 0}><div slot=message>${this._validationError}</div></calcite-notice>` : void 0;
91
- return l`<calcite-flow-item .closable=${h} .description=${c ? c.versionIdentifier.name : ""} .heading=${c ? e.actions.editVersion : e.actions.newVersion} .selected=${t} .showBackButton=${s} @calciteFlowItemClose=${this._handleClose} ${v(this._flowItemElement)}><calcite-panel .loading=${m === "executing"}><calcite-block expanded .label=${e.headers.versionProperties}>${_}${f}${n}${b}${g}${w}</calcite-block>${o}</calcite-panel></calcite-flow-item>`;
98
+ const { _validationError: i, currentUser: t, messages: e, mode: s } = this, c = r`<calcite-label>${e?.input.versionName}<calcite-input-text max-length=62 name=versionName .value=${s === "create-version" ? this.#i?.versionName : this.#e?.versionName} @calciteInputTextInput=${this.#s}></calcite-input-text></calcite-label>`, a = r`<calcite-label>${e?.input.versionDescription}<calcite-text-area limit-text max-length=64 name=description resize=none rows=2 scale=s .value=${s === "create-version" ? this.#i?.description : this.#e?.description} @calciteTextAreaInput=${this.#s}></calcite-text-area></calcite-label>`, n = r`<calcite-label>${e?.input.versionAccess}<calcite-chip-group label=access @calciteChipGroupSelect=${this.#s} selection-mode=single-persist><calcite-chip .selected=${this.#e.access === "public" || s === "create-version"} label=public>${e?.accessLevels.public}</calcite-chip><calcite-chip .selected=${this.#e.access === "protected"} label=protected>${e?.accessLevels.protected}</calcite-chip><calcite-chip .selected=${this.#e.access === "private"} label=private>${e?.accessLevels.private}</calcite-chip></calcite-chip-group></calcite-label>`, l = r`<calcite-label>${e?.input.versionOwner}<calcite-input-text name=ownerName .value=${s === "create-version" ? t : this.#e.ownerName} @calciteInputTextInput=${this.#s}></calcite-input-text></calcite-label>`, h = s === "create-version" ? r`<calcite-label layout=inline><calcite-checkbox checked name=switchToVersion @calciteCheckboxChange=${this.#n}></calcite-checkbox>${e?.actions.switchToVersion}</calcite-label>` : void 0, v = i ? r`<calcite-notice closable kind=warning open scale=s width=full @calciteNoticeClose=${() => {
99
+ this._validationError = void 0;
100
+ }}><div slot=message>${i}</div></calcite-notice>` : void 0, d = r`<calcite-button appearance=outline slot=footer width=full @click=${this.#a}>${e?.actions.cancelSave}</calcite-button><calcite-button appearance=solid slot=footer width=full @click=${this.#c}>${e?.actions.saveVersion}</calcite-button>`;
101
+ return r`<calcite-panel><calcite-block expanded .label=${e?.headers.versionProperties}>${c}${a}${n}${l}${h}${v}</calcite-block>${d}</calcite-panel>`;
92
102
  }
93
103
  }
94
- $("arcgis-version-management-version-properties", x);
104
+ p("arcgis-version-management-version-properties", f);
95
105
  export {
96
- x as ArcgisVersionManagementVersionProperties
106
+ f as ArcgisVersionManagementVersionProperties
97
107
  };
@@ -1,12 +1,11 @@
1
- import "@esri/calcite-components/components/calcite-button";
2
1
  import "@esri/calcite-components/components/calcite-label";
2
+ import "@esri/calcite-components/components/calcite-input-text";
3
+ import "@esri/calcite-components/components/calcite-text-area";
3
4
  import "@esri/calcite-components/components/calcite-chip-group";
4
5
  import "@esri/calcite-components/components/calcite-chip";
5
- import "@esri/calcite-components/components/calcite-text-area";
6
- import "@esri/calcite-components/components/calcite-input-text";
7
6
  import "@esri/calcite-components/components/calcite-checkbox";
8
7
  import "@esri/calcite-components/components/calcite-notice";
9
- import "@esri/calcite-components/components/calcite-flow-item";
8
+ import "@esri/calcite-components/components/calcite-button";
10
9
  import "@esri/calcite-components/components/calcite-panel";
11
10
  import "@esri/calcite-components/components/calcite-block";
12
11
  export * from "./customElement.js";
@@ -250,8 +250,8 @@ export abstract class ArcgisVideoPlayer extends LitElement {
250
250
  /** The current state of the component. */
251
251
  get state(): "error" | VideoState;
252
252
  /**
253
- * The view associated with the component.
254
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-video-player component will be associated with a map or scene component rather than using the `view` property.
253
+ * The view associated with the component.
254
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-video-player component will be associated with a map or scene component rather than using the `view` property.
255
255
  *
256
256
  * @example
257
257
  * // Set the video player view model's view to a map view.
@@ -392,8 +392,8 @@ export abstract class ArcgisVolumeMeasurement extends LitElement {
392
392
  */
393
393
  get state(): VolumeMeasurementState;
394
394
  /**
395
- * The view associated with the component.
396
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-volume-measurement component will be associated with a map or scene component rather than using the `view` property.
395
+ * The view associated with the component.
396
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-volume-measurement component will be associated with a map or scene component rather than using the `view` property.
397
397
  */
398
398
  accessor view: SceneView | undefined;
399
399
  /**
@@ -236,8 +236,8 @@ export abstract class ArcgisWeather extends LitElement {
236
236
  /** The current state of the component. */
237
237
  get state(): WeatherState;
238
238
  /**
239
- * The view associated with the component.
240
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-weather component will be associated with a map or scene component rather than using the `view` property.
239
+ * The view associated with the component.
240
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-weather component will be associated with a map or scene component rather than using the `view` property.
241
241
  */
242
242
  accessor view: SceneView | undefined;
243
243
  /** Permanently destroy the component. */
@@ -68,8 +68,8 @@ export abstract class ArcgisZoom extends LitElement {
68
68
  /** The current state of the component. */
69
69
  get state(): State;
70
70
  /**
71
- * The view associated with the component.
72
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-zoom component will be associated with a map or scene component rather than using the `view` property.
71
+ * The view associated with the component.
72
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-zoom component will be associated with a map or scene component rather than using the `view` property.
73
73
  */
74
74
  accessor view: MapView | SceneView | undefined;
75
75
  /**
@@ -1,46 +1,22 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as u } from "../../chunks/runtime.js";
3
- import { css as m, html as d } from "lit";
4
- import { when as h } from "@arcgis/core/core/reactiveUtils.js";
5
- import { LitElement as f, createEvent as i, nothing as r, safeClassMap as y } from "@arcgis/lumina";
6
- import { usePropertyChange as g } from "@arcgis/lumina/controllers";
7
- import { u as b } from "../../chunks/useT9n.js";
8
- import { u as p } from "../../chunks/useView.js";
2
+ import { c } from "../../chunks/runtime.js";
3
+ import { html as l } from "lit";
4
+ import { when as m } from "@arcgis/core/core/reactiveUtils.js";
5
+ import { LitElement as u, createEvent as a, nothing as e, safeClassMap as h } from "@arcgis/lumina";
6
+ import { usePropertyChange as d } from "@arcgis/lumina/controllers";
7
+ import { u as y } from "../../chunks/useT9n.js";
8
+ import { u as g } from "../../chunks/useView.js";
9
+ import { s as p, c as n, a as r } from "../../chunks/zoom.js";
9
10
  import { g as z } from "../../chunks/globalCss.js";
10
- function c(t) {
11
- if (!t)
12
- return !1;
13
- if (t.type === "3d")
14
- return t.ready;
15
- if (!t?.ready)
16
- return !1;
17
- const a = l(t), o = t.constraints?.effectiveMaxScale;
18
- return o === 0 || a > o;
19
- }
20
- function n(t) {
21
- if (!t)
22
- return !1;
23
- if (t.type === "3d")
24
- return t.ready;
25
- if (!t?.ready)
26
- return !1;
27
- const a = l(t), o = t.constraints?.effectiveMinScale;
28
- return o === 0 || a < o;
29
- }
30
- function l(t) {
31
- const e = t?.animation?.target;
32
- return (e && "then" in e ? void 0 : e?.scale) ?? t?.scale ?? 0;
33
- }
34
- const v = m`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{display:flex;max-width:fit-content}.zoom-out{border-block-start:solid 1px var(--calcite-color-border-1)}.horizontal{flex-flow:row-reverse nowrap}.horizontal .zoom-out{border-block-start:none;border-inline-end:solid 1px var(--calcite-color-border-1)}`;
35
- class x extends f {
11
+ class b extends u {
36
12
  constructor() {
37
- super(...arguments), this.messages = b({}), this._state = "disabled", this.view = p(this), this.autoDestroyDisabled = !1, this.icon = "magnifying-glass-plus", this.layout = "vertical", this.visualScale = "m", this.arcgisActionZoom = i(), this.arcgisPropertyChange = g()("state"), this.arcgisReady = i();
13
+ super(...arguments), this.messages = y({}), this._state = "disabled", this.view = g(this), this.autoDestroyDisabled = !1, this.icon = "magnifying-glass-plus", this.layout = "vertical", this.visualScale = "m", this.arcgisActionZoom = a(), this.arcgisPropertyChange = d()("state"), this.arcgisReady = a();
38
14
  }
39
15
  static {
40
16
  this.properties = { _state: 16, view: 0, autoDestroyDisabled: 5, icon: 1, label: 1, layout: 3, messageOverrides: 0, referenceElement: 1, visualScale: 1, state: 32 };
41
17
  }
42
18
  static {
43
- this.styles = v;
19
+ this.styles = p;
44
20
  }
45
21
  get state() {
46
22
  return this._state;
@@ -56,24 +32,24 @@ class x extends f {
56
32
  }
57
33
  loaded() {
58
34
  this.manager.onLifecycle(() => [
59
- h(() => this.view?.ready ? "ready" : "disabled", (e) => {
60
- this._state = e;
35
+ m(() => this.view?.ready ? "ready" : "disabled", (o) => {
36
+ this._state = o;
61
37
  }, { sync: !0, initial: !0 })
62
38
  ]);
63
39
  }
64
- async zoomBy(e) {
65
- const { view: a } = this, o = e === 1;
66
- !(o ? c(a) : n(a)) || !a || (this.arcgisActionZoom.emit({ action: o ? "zoomIn" : "zoomOut" }), o ? await a.zoomIn() : await a.zoomOut());
40
+ async zoomBy(o) {
41
+ const { view: t } = this, s = o === 1;
42
+ !(s ? n(t) : r(t)) || !t || (this.arcgisActionZoom.emit({ action: s ? "zoomIn" : "zoomOut" }), s ? await t.zoomIn() : await t.zoomOut());
67
43
  }
68
44
  render() {
69
- const e = c(this.view), a = n(this.view), { zoomIn: o, zoomOut: s } = this.messages;
70
- return d`<div class=${y({
45
+ const o = n(this.view), t = r(this.view), { zoomIn: s, zoomOut: i } = this.messages;
46
+ return l`<div class=${h({
71
47
  [z.arcgisButton]: !0,
72
48
  horizontal: this.layout === "horizontal"
73
- })}><calcite-button class="zoom-in" .disabled=${!e} icon-start=plus kind=neutral .label=${o} @click=${this.zoomIn} .scale=${this.visualScale} title=${o ?? r}></calcite-button><calcite-button class="zoom-out" .disabled=${!a} icon-start=minus kind=neutral .label=${s} @click=${this.zoomOut} .scale=${this.visualScale} title=${s ?? r}></calcite-button></div>`;
49
+ })}><calcite-button class="zoom-in" .disabled=${!o} icon-start=plus kind=neutral .label=${s} @click=${this.zoomIn} .scale=${this.visualScale} title=${s ?? e}></calcite-button><calcite-button class="zoom-out" .disabled=${!t} icon-start=minus kind=neutral .label=${i} @click=${this.zoomOut} .scale=${this.visualScale} title=${i ?? e}></calcite-button></div>`;
74
50
  }
75
51
  }
76
- u("arcgis-zoom", x);
52
+ c("arcgis-zoom", b);
77
53
  export {
78
- x as ArcgisZoom
54
+ b as ArcgisZoom
79
55
  };
@@ -0,0 +1,3 @@
1
+ import type { UseT9n } from "@arcgis/lumina/controllers";
2
+
3
+ export const useT9n: UseT9n;