@arcgis/map-components 4.34.0-next.28 → 4.34.0-next.29

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 (441) hide show
  1. package/dist/cdn/24FPDZV7.js +4 -0
  2. package/dist/cdn/{CPKBWZ3J.js → 26XWWC3S.js} +1 -1
  3. package/dist/cdn/276NHELU.js +4 -0
  4. package/dist/cdn/2BJA5MAU.js +4 -0
  5. package/dist/cdn/{JK75COZJ.js → 2EY5DO6Z.js} +1 -1
  6. package/dist/cdn/2KQJAHFP.js +4 -0
  7. package/dist/cdn/2P5Y3JRX.js +4 -0
  8. package/dist/cdn/2QPG3Q5P.js +4 -0
  9. package/dist/cdn/333MLOEH.js +4 -0
  10. package/dist/cdn/3JXRNHYR.js +4 -0
  11. package/dist/cdn/3KJZD7XN.js +4 -0
  12. package/dist/cdn/3M7KXP3Y.js +4 -0
  13. package/dist/cdn/3VW5LUCC.js +4 -0
  14. package/dist/cdn/44SA7HBW.js +4 -0
  15. package/dist/cdn/{SFGQEGMF.js → 45NPFIDE.js} +2 -2
  16. package/dist/cdn/{ZJZYDFNE.js → 45Q7VZOP.js} +2 -2
  17. package/dist/cdn/4DDH3ZJH.js +4 -0
  18. package/dist/cdn/4QBQCBD4.js +4 -0
  19. package/dist/cdn/{G57YADJO.js → 4VKU2EN4.js} +2 -2
  20. package/dist/cdn/5GOWQESW.js +4 -0
  21. package/dist/cdn/5IRNCV2N.js +4 -0
  22. package/dist/cdn/{XMJQEVOB.js → 5RDN3KFY.js} +2 -2
  23. package/dist/cdn/5RGTIRD7.js +4 -0
  24. package/dist/cdn/64APJKJA.js +4 -0
  25. package/dist/cdn/67RADHJ5.js +4 -0
  26. package/dist/cdn/{MQPFAOCE.js → 6BKFKF7L.js} +1 -1
  27. package/dist/cdn/6DQXWYTE.js +4 -0
  28. package/dist/cdn/6K4PUBPP.js +4 -0
  29. package/dist/cdn/77DYAMA4.js +4 -0
  30. package/dist/cdn/7MTQS6K4.js +4 -0
  31. package/dist/cdn/7NMO7PDZ.js +4 -0
  32. package/dist/cdn/7S7V7W4D.js +4 -0
  33. package/dist/cdn/A7GQLK3I.js +4 -0
  34. package/dist/cdn/AMKFHZKY.js +4 -0
  35. package/dist/cdn/AYSS2UKJ.js +4 -0
  36. package/dist/cdn/AZCQUEEH.js +4 -0
  37. package/dist/cdn/B2KDMQ32.js +4 -0
  38. package/dist/cdn/B7YDMWF3.js +4 -0
  39. package/dist/cdn/BCBWIUBN.js +4 -0
  40. package/dist/cdn/BH2L5E72.js +4 -0
  41. package/dist/cdn/{6G3K6YHW.js → BHJMRERP.js} +2 -2
  42. package/dist/cdn/BN2HWRFH.js +4 -0
  43. package/dist/cdn/BPWVETWS.js +4 -0
  44. package/dist/cdn/BR4HST2V.js +4 -0
  45. package/dist/cdn/BRDLKHRY.js +4 -0
  46. package/dist/cdn/C4DO43NZ.js +4 -0
  47. package/dist/cdn/CDNUWNTM.js +4 -0
  48. package/dist/cdn/CRC32NKX.js +4 -0
  49. package/dist/cdn/CXSGFVZY.js +4 -0
  50. package/dist/cdn/D2RAH2FQ.js +4 -0
  51. package/dist/cdn/DHT24TD4.js +4 -0
  52. package/dist/cdn/E5I42L5X.js +4 -0
  53. package/dist/cdn/EC5YDWM5.js +4 -0
  54. package/dist/cdn/EFKIIUPG.js +4 -0
  55. package/dist/cdn/EGMCUKGO.js +4 -0
  56. package/dist/cdn/EMSE4SVU.js +4 -0
  57. package/dist/cdn/EQMI35F3.js +4 -0
  58. package/dist/cdn/F3HIUXO4.js +4 -0
  59. package/dist/cdn/F3VWFEIS.js +4 -0
  60. package/dist/cdn/F5433SPL.js +5 -0
  61. package/dist/cdn/FEDUC27Q.js +4 -0
  62. package/dist/cdn/FFVCLRFL.js +4 -0
  63. package/dist/cdn/FIAUIGJF.js +4 -0
  64. package/dist/cdn/G225AQXC.js +4 -0
  65. package/dist/cdn/G5LXZPGJ.js +4 -0
  66. package/dist/cdn/GAAYFJMP.js +4 -0
  67. package/dist/cdn/GEAJBOHU.js +4 -0
  68. package/dist/cdn/GGYGFSWG.js +4 -0
  69. package/dist/cdn/GK6AGJOQ.js +4 -0
  70. package/dist/cdn/GRTPQKD7.js +4 -0
  71. package/dist/cdn/GSEJQWEO.js +4 -0
  72. package/dist/cdn/GSLXVNUW.js +4 -0
  73. package/dist/cdn/HCLXQLUS.js +4 -0
  74. package/dist/cdn/HH76E2KD.js +4 -0
  75. package/dist/cdn/HWEJ5PT4.js +4 -0
  76. package/dist/cdn/HXMIL5AS.js +4 -0
  77. package/dist/cdn/HZ3EXHUM.js +4 -0
  78. package/dist/cdn/I2BZBDGD.js +4 -0
  79. package/dist/cdn/IAE4FOSC.js +4 -0
  80. package/dist/cdn/{XT7I576W.js → IGL636IF.js} +1 -1
  81. package/dist/cdn/{7QFBWARL.js → II4QJS4H.js} +2 -2
  82. package/dist/cdn/IJ4ROTL2.js +4 -0
  83. package/dist/cdn/J45Q67DX.js +4 -0
  84. package/dist/cdn/JJJWQZ7B.js +4 -0
  85. package/dist/cdn/JK6QTLOY.js +4 -0
  86. package/dist/cdn/JWQ52MP3.js +4 -0
  87. package/dist/cdn/JZYEYITJ.js +4 -0
  88. package/dist/cdn/KBJEHKCV.js +4 -0
  89. package/dist/cdn/KMO2Z6GG.js +4 -0
  90. package/dist/cdn/KRFYROYD.js +4 -0
  91. package/dist/cdn/KZ627ULY.js +4 -0
  92. package/dist/cdn/LAT2L32P.js +4 -0
  93. package/dist/cdn/LBTPWLNU.js +4 -0
  94. package/dist/cdn/LHERQF5S.js +4 -0
  95. package/dist/cdn/LJNBJG6J.js +4 -0
  96. package/dist/cdn/{K4S3GMCN.js → LOGHXN7W.js} +2 -2
  97. package/dist/cdn/LPYOZH47.js +4 -0
  98. package/dist/cdn/LXYGDPJX.js +4 -0
  99. package/dist/cdn/M43BI3QS.js +4 -0
  100. package/dist/cdn/MBITBB7M.js +4 -0
  101. package/dist/cdn/MHR4JVHS.js +4 -0
  102. package/dist/cdn/MKQXYSV7.js +4 -0
  103. package/dist/cdn/MME4V5UK.js +4 -0
  104. package/dist/cdn/MTTG4OB7.js +4 -0
  105. package/dist/cdn/MY2P3UKP.js +4 -0
  106. package/dist/cdn/MZEQBXJK.js +4 -0
  107. package/dist/cdn/N23VKPUM.js +4 -0
  108. package/dist/cdn/NACZDUUS.js +4 -0
  109. package/dist/cdn/NEIKHJUX.js +4 -0
  110. package/dist/cdn/NQCQTTL6.js +4 -0
  111. package/dist/cdn/NQGENYHI.js +4 -0
  112. package/dist/cdn/{M6AKKOHB.js → NWIGIUWJ.js} +2 -2
  113. package/dist/cdn/O4AUG6US.js +4 -0
  114. package/dist/cdn/OATFCBMW.js +4 -0
  115. package/dist/cdn/OGDXW57I.js +4 -0
  116. package/dist/cdn/OTMAAIG2.js +4 -0
  117. package/dist/cdn/OW6PGWSE.js +4 -0
  118. package/dist/cdn/OYD26KOZ.js +4 -0
  119. package/dist/cdn/P7PBJZCJ.js +4 -0
  120. package/dist/cdn/PLOCXDRL.js +4 -0
  121. package/dist/cdn/PNTZUJFY.js +4 -0
  122. package/dist/cdn/PPR7VJU5.js +4 -0
  123. package/dist/cdn/{U3ZYW3MP.js → PSASMXDX.js} +2 -2
  124. package/dist/cdn/{6OX4A5MH.js → PUC7RUDW.js} +2 -2
  125. package/dist/cdn/Q4M2I3RE.js +4 -0
  126. package/dist/cdn/QA5B3JID.js +4 -0
  127. package/dist/cdn/{52JMVKTM.js → QBCWEZVV.js} +2 -2
  128. package/dist/cdn/QHFV4JKZ.js +4 -0
  129. package/dist/cdn/QKLKQYOY.js +4 -0
  130. package/dist/cdn/QPVWPM6E.js +4 -0
  131. package/dist/cdn/QT62ZAMZ.js +4 -0
  132. package/dist/cdn/QXLX4UL2.js +4 -0
  133. package/dist/cdn/RFBJ2OQC.js +4 -0
  134. package/dist/cdn/RFEZMAH3.js +4 -0
  135. package/dist/cdn/RFZ6LUVE.js +4 -0
  136. package/dist/cdn/RHLHBK4X.js +4 -0
  137. package/dist/cdn/RSMEMK6H.js +4 -0
  138. package/dist/cdn/S2YYAX4L.js +4 -0
  139. package/dist/cdn/SFEPVBQG.js +4 -0
  140. package/dist/cdn/SLWV42LP.js +4 -0
  141. package/dist/cdn/{HIXDY2YS.js → SNJIA2RL.js} +1 -1
  142. package/dist/cdn/SQRD5AFX.js +4 -0
  143. package/dist/cdn/SRMODQG3.js +4 -0
  144. package/dist/cdn/T47YWDAU.js +4 -0
  145. package/dist/cdn/TTNCHBOO.js +4 -0
  146. package/dist/cdn/UH3MUYKL.js +4 -0
  147. package/dist/cdn/{2NLRKFRX.js → UIPGHC7V.js} +1 -1
  148. package/dist/cdn/UNFGKH7G.js +4 -0
  149. package/dist/cdn/UOFDD23J.js +4 -0
  150. package/dist/cdn/UQYLORO7.js +4 -0
  151. package/dist/cdn/UU3SGRXZ.js +4 -0
  152. package/dist/cdn/UWDQA43B.js +4 -0
  153. package/dist/cdn/VGE6ZQV7.js +4 -0
  154. package/dist/cdn/VNCV763X.js +4 -0
  155. package/dist/cdn/VXBQGFGR.js +4 -0
  156. package/dist/cdn/{7QI5YVKC.js → W2H7TOIL.js} +2 -2
  157. package/dist/cdn/W47E7SI7.js +4 -0
  158. package/dist/cdn/WAZIOM5Q.js +4 -0
  159. package/dist/cdn/WDSPHTTU.js +4 -0
  160. package/dist/cdn/{DSVHTLF4.js → WHGLKTKZ.js} +2 -2
  161. package/dist/cdn/WII5UDMW.js +4 -0
  162. package/dist/cdn/WJFPEGBW.js +4 -0
  163. package/dist/cdn/WP56S75Y.js +4 -0
  164. package/dist/cdn/WT6GPDJ6.js +4 -0
  165. package/dist/cdn/WTUZGTCF.js +4 -0
  166. package/dist/cdn/{YATTGP4R.js → WUKA3PA2.js} +1 -1
  167. package/dist/cdn/WYDDPEQG.js +4 -0
  168. package/dist/cdn/X2ZARLSE.js +4 -0
  169. package/dist/cdn/X3AXOZH3.js +4 -0
  170. package/dist/cdn/{GHMQT4YU.js → XIIS6IXK.js} +4 -4
  171. package/dist/cdn/{6YUNCZHI.js → XRE4YCRR.js} +2 -2
  172. package/dist/cdn/YBK7NHPE.js +4 -0
  173. package/dist/cdn/YIJUWSQM.js +4 -0
  174. package/dist/cdn/YUMK75EJ.js +4 -0
  175. package/dist/cdn/YYPKTLS7.js +4 -0
  176. package/dist/cdn/YZXCCFKT.js +4 -0
  177. package/dist/cdn/Z4A6TUSH.js +4 -0
  178. package/dist/cdn/ZDN7XC4F.js +4 -0
  179. package/dist/cdn/ZGOVJI2V.js +4 -0
  180. package/dist/cdn/ZOTGL3WY.js +4 -0
  181. package/dist/cdn/ZYFJLBBS.js +4 -0
  182. package/dist/cdn/index.js +2 -2
  183. package/dist/chunks/AnalysisViewModel.js +1 -1
  184. package/dist/chunks/async-utils.js +1 -1
  185. package/dist/chunks/basemap-gallery-resources.js +1 -1
  186. package/dist/chunks/chart-utils.js +66 -0
  187. package/dist/chunks/chartCommon.js +19 -0
  188. package/dist/chunks/component-utils.js +1 -1
  189. package/dist/chunks/createCloseEvent.js +1 -1
  190. package/dist/chunks/feature-utils.js +128 -26
  191. package/dist/chunks/globalCss.js +1 -1
  192. package/dist/chunks/heading.js +1 -1
  193. package/dist/chunks/layer-list.js +1 -1
  194. package/dist/chunks/legacyIcon.js +1 -1
  195. package/dist/chunks/maybe.js +1 -1
  196. package/dist/chunks/measurementUtils.js +1 -1
  197. package/dist/chunks/runtime.js +1 -1
  198. package/dist/chunks/useHandles.js +1 -1
  199. package/dist/chunks/useT9n.js +1 -1
  200. package/dist/chunks/useView.js +1 -1
  201. package/dist/chunks/useViewModel.js +1 -1
  202. package/dist/chunks/useWidget.js +1 -1
  203. package/dist/chunks/utils.js +1 -1
  204. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  205. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +16 -14
  206. package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
  207. package/dist/components/arcgis-attachments/customElement.js +1 -1
  208. package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
  209. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  210. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  211. package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
  212. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  213. package/dist/components/arcgis-building-explorer/customElement.js +1 -1
  214. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  215. package/dist/components/arcgis-compass/customElement.js +1 -1
  216. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  217. package/dist/components/arcgis-daylight/customElement.d.ts +4 -0
  218. package/dist/components/arcgis-daylight/customElement.js +1 -1
  219. package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +13 -11
  220. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
  221. package/dist/components/arcgis-directional-pad/customElement.js +1 -1
  222. package/dist/components/arcgis-directions/customElement.js +1 -1
  223. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  224. package/dist/components/arcgis-editor/customElement.js +1 -1
  225. package/dist/components/arcgis-elevation-profile/customElement.d.ts +4 -0
  226. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  227. package/dist/components/arcgis-expand/customElement.js +1 -1
  228. package/dist/components/arcgis-feature/customElement.js +1 -1
  229. package/dist/components/arcgis-feature-content/customElement.d.ts +0 -12
  230. package/dist/components/arcgis-feature-content/customElement.js +3 -9
  231. package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
  232. package/dist/components/arcgis-feature-fields/customElement.d.ts +0 -12
  233. package/dist/components/arcgis-feature-fields/customElement.js +18 -24
  234. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  235. package/dist/components/arcgis-feature-media/chartCommon.d.ts +1 -0
  236. package/dist/components/arcgis-feature-media/customElement.d.ts +37 -0
  237. package/dist/components/arcgis-feature-media/customElement.js +575 -0
  238. package/dist/components/arcgis-feature-media/index.d.ts +3 -0
  239. package/dist/components/arcgis-feature-media/index.js +3 -0
  240. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  241. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  242. package/dist/components/arcgis-features/customElement.js +1 -1
  243. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  244. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  245. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  246. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  247. package/dist/components/arcgis-home/customElement.js +1 -1
  248. package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
  249. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  250. package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
  251. package/dist/components/arcgis-legend/customElement.js +1 -1
  252. package/dist/components/arcgis-line-of-sight/customElement.d.ts +59 -12
  253. package/dist/components/arcgis-line-of-sight/customElement.js +2 -2
  254. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  255. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +25 -26
  256. package/dist/components/arcgis-link-chart-layout-switcher/index.d.ts +1 -2
  257. package/dist/components/arcgis-link-chart-layout-switcher/index.js +1 -2
  258. package/dist/components/arcgis-locate/customElement.js +1 -1
  259. package/dist/components/arcgis-map/customElement.js +1 -1
  260. package/dist/components/arcgis-measurement/customElement.js +1 -1
  261. package/dist/components/arcgis-measurement-content/customElement.js +1 -1
  262. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  263. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  264. package/dist/components/arcgis-placement/customElement.js +1 -1
  265. package/dist/components/arcgis-print/customElement.d.ts +2 -6
  266. package/dist/components/arcgis-print/customElement.js +39 -33
  267. package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
  268. package/dist/components/arcgis-print-dpi-input/customElement.js +18 -23
  269. package/dist/components/arcgis-print-export-button/customElement.d.ts +1 -7
  270. package/dist/components/arcgis-print-export-button/customElement.js +3 -4
  271. package/dist/components/arcgis-print-exported-link/customElement.js +1 -1
  272. package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
  273. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  274. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
  275. package/dist/components/arcgis-print-layout-panel/customElement.d.ts +1 -7
  276. package/dist/components/arcgis-print-layout-panel/customElement.js +8 -8
  277. package/dist/components/arcgis-print-main-panel/customElement.d.ts +1 -7
  278. package/dist/components/arcgis-print-main-panel/customElement.js +8 -8
  279. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
  280. package/dist/components/arcgis-print-map-only-panel/customElement.d.ts +1 -7
  281. package/dist/components/arcgis-print-map-only-panel/customElement.js +28 -22
  282. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +23 -18
  283. package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
  284. package/dist/components/arcgis-print-scale-section/customElement.js +26 -19
  285. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  286. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  287. package/dist/components/arcgis-scale-bar/customElement.js +1 -1
  288. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  289. package/dist/components/arcgis-scene/customElement.d.ts +54 -15
  290. package/dist/components/arcgis-scene/customElement.js +2 -2
  291. package/dist/components/arcgis-search/customElement.js +1 -1
  292. package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
  293. package/dist/components/arcgis-shadow-cast/customElement.d.ts +68 -4
  294. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  295. package/dist/components/arcgis-sketch/customElement.js +1 -1
  296. package/dist/components/arcgis-slice/customElement.d.ts +10 -6
  297. package/dist/components/arcgis-slice/customElement.js +1 -1
  298. package/dist/components/arcgis-slider/customElement.js +1 -1
  299. package/dist/components/arcgis-swipe/customElement.js +1 -1
  300. package/dist/components/arcgis-table-list/customElement.js +1 -1
  301. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  302. package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
  303. package/dist/components/arcgis-track/customElement.js +1 -1
  304. package/dist/components/arcgis-unit-select/customElement.js +1 -1
  305. package/dist/components/arcgis-utility-network-associations/customElement.d.ts +0 -2
  306. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  307. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  308. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  309. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  310. package/dist/components/arcgis-version-management/customElement.js +1 -1
  311. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  312. package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
  313. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  314. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  315. package/dist/components/arcgis-video/customElement.js +1 -1
  316. package/dist/components/arcgis-video-player/customElement.js +1 -1
  317. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  318. package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
  319. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  320. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  321. package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
  322. package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
  323. package/dist/components/arcgis-weather/customElement.d.ts +37 -1
  324. package/dist/components/arcgis-weather/customElement.js +1 -1
  325. package/dist/components/arcgis-zoom/customElement.js +1 -1
  326. package/dist/docs/api.json +53 -38
  327. package/dist/docs/docs.json +51 -39
  328. package/dist/docs/vscode.html-custom-data.json +12 -19
  329. package/dist/docs/web-types.json +36 -34
  330. package/dist/index.d.ts +3 -3
  331. package/dist/index.js +1 -1
  332. package/dist/loader.js +10 -9
  333. package/dist/types/lumina.d.ts +3 -3
  334. package/dist/types/preact.d.ts +3 -3
  335. package/dist/types/react.d.ts +3 -3
  336. package/dist/types/stencil.d.ts +3 -3
  337. package/dist/utils/chart-utils.d.ts +6 -0
  338. package/dist/utils/feature-utils.d.ts +20 -2
  339. package/dist/utils/related-feature-utils.d.ts +17 -0
  340. package/package.json +4 -3
  341. package/dist/cdn/2JP3KFWA.js +0 -4
  342. package/dist/cdn/2NDEVGFW.js +0 -4
  343. package/dist/cdn/2PCLLZ3J.js +0 -4
  344. package/dist/cdn/2TTYCJSS.js +0 -4
  345. package/dist/cdn/33ERQI3E.js +0 -4
  346. package/dist/cdn/43PTXVUE.js +0 -4
  347. package/dist/cdn/44PLSSDF.js +0 -4
  348. package/dist/cdn/4SUPEJQ6.js +0 -4
  349. package/dist/cdn/5H2QPNOT.js +0 -4
  350. package/dist/cdn/5QZB3HCJ.js +0 -4
  351. package/dist/cdn/6ITPBDI6.js +0 -4
  352. package/dist/cdn/6QTYDJKL.js +0 -4
  353. package/dist/cdn/6XFDLJFG.js +0 -4
  354. package/dist/cdn/6Y4DABVQ.js +0 -4
  355. package/dist/cdn/6ZYVQ2W6.js +0 -4
  356. package/dist/cdn/7GTTJDCT.js +0 -4
  357. package/dist/cdn/A2MNR6SE.js +0 -4
  358. package/dist/cdn/AREDTUSF.js +0 -4
  359. package/dist/cdn/AVL6L2YS.js +0 -4
  360. package/dist/cdn/BCUPWGWI.js +0 -4
  361. package/dist/cdn/DMDJNWUI.js +0 -4
  362. package/dist/cdn/DUGOUMBX.js +0 -4
  363. package/dist/cdn/EUNTYUOD.js +0 -4
  364. package/dist/cdn/FDIJ47VV.js +0 -4
  365. package/dist/cdn/FDYZTBBJ.js +0 -4
  366. package/dist/cdn/FPB33UNH.js +0 -4
  367. package/dist/cdn/FRALVMFD.js +0 -4
  368. package/dist/cdn/FWDITG2J.js +0 -4
  369. package/dist/cdn/FYIQZQUL.js +0 -4
  370. package/dist/cdn/FYKR4A43.js +0 -4
  371. package/dist/cdn/G5XHSW3V.js +0 -4
  372. package/dist/cdn/H2TC7YZS.js +0 -4
  373. package/dist/cdn/HNZVY63H.js +0 -4
  374. package/dist/cdn/IIP7BVY4.js +0 -4
  375. package/dist/cdn/IJY6YHT3.js +0 -4
  376. package/dist/cdn/IKA4DG3R.js +0 -4
  377. package/dist/cdn/IRRXC3XT.js +0 -4
  378. package/dist/cdn/J7STRJIX.js +0 -4
  379. package/dist/cdn/JJHJUIC4.js +0 -4
  380. package/dist/cdn/KADGMGKL.js +0 -4
  381. package/dist/cdn/KBOUJOJS.js +0 -4
  382. package/dist/cdn/KM4BU4KB.js +0 -4
  383. package/dist/cdn/KUHLMAHA.js +0 -4
  384. package/dist/cdn/KW7YP3EF.js +0 -4
  385. package/dist/cdn/LGWQB6K5.js +0 -4
  386. package/dist/cdn/LIRIAE2C.js +0 -4
  387. package/dist/cdn/LLURTRNS.js +0 -4
  388. package/dist/cdn/MGLCRQRW.js +0 -4
  389. package/dist/cdn/MHSKK3GG.js +0 -4
  390. package/dist/cdn/MHZOYZVD.js +0 -4
  391. package/dist/cdn/MY7RLN5O.js +0 -4
  392. package/dist/cdn/N3ZSBPQY.js +0 -4
  393. package/dist/cdn/N5KTFKV6.js +0 -4
  394. package/dist/cdn/N6BZY26Z.js +0 -4
  395. package/dist/cdn/NIPAT2Y6.js +0 -4
  396. package/dist/cdn/NJZZT7NM.js +0 -4
  397. package/dist/cdn/NKRWWJV7.js +0 -4
  398. package/dist/cdn/NNXYSDMJ.js +0 -4
  399. package/dist/cdn/NRE7KCDQ.js +0 -4
  400. package/dist/cdn/NVLV3NOL.js +0 -4
  401. package/dist/cdn/NVTUR2IW.js +0 -4
  402. package/dist/cdn/NXGZTMMN.js +0 -4
  403. package/dist/cdn/O3EQAVZS.js +0 -4
  404. package/dist/cdn/O3R6XMUG.js +0 -4
  405. package/dist/cdn/OCR3S4YA.js +0 -4
  406. package/dist/cdn/P2ZEPU4R.js +0 -4
  407. package/dist/cdn/P6JIL53S.js +0 -4
  408. package/dist/cdn/PFLQDY5X.js +0 -4
  409. package/dist/cdn/PHCPDTR5.js +0 -4
  410. package/dist/cdn/PRDNNJUR.js +0 -4
  411. package/dist/cdn/QXPMITEJ.js +0 -4
  412. package/dist/cdn/RKQ6L5BA.js +0 -4
  413. package/dist/cdn/RKUAWRTQ.js +0 -4
  414. package/dist/cdn/RQFRSGTG.js +0 -4
  415. package/dist/cdn/RYXER5MG.js +0 -4
  416. package/dist/cdn/SCNLYTOD.js +0 -4
  417. package/dist/cdn/T3V6RFZX.js +0 -4
  418. package/dist/cdn/T4DBVMKJ.js +0 -4
  419. package/dist/cdn/TUN35MXJ.js +0 -4
  420. package/dist/cdn/UHBDYWKS.js +0 -4
  421. package/dist/cdn/UKEKETUG.js +0 -4
  422. package/dist/cdn/UQRIUMSM.js +0 -4
  423. package/dist/cdn/URKVYX5A.js +0 -4
  424. package/dist/cdn/USGMGP2Q.js +0 -4
  425. package/dist/cdn/VA24G72K.js +0 -4
  426. package/dist/cdn/WS7JGXLY.js +0 -4
  427. package/dist/cdn/XCEIPHCY.js +0 -4
  428. package/dist/cdn/XKEX2DIR.js +0 -4
  429. package/dist/cdn/XKND5SY4.js +0 -4
  430. package/dist/cdn/XPWX7LWS.js +0 -4
  431. package/dist/cdn/XTVMNKAS.js +0 -4
  432. package/dist/cdn/XXFWJHKB.js +0 -4
  433. package/dist/cdn/XXX3MV4V.js +0 -4
  434. package/dist/cdn/Y32OKW2K.js +0 -4
  435. package/dist/cdn/Y6JI3MEK.js +0 -4
  436. package/dist/cdn/YZRWTGKI.js +0 -4
  437. package/dist/cdn/Z63TFYLP.js +0 -4
  438. package/dist/cdn/ZHMHGWMX.js +0 -4
  439. package/dist/cdn/ZN57MJWZ.js +0 -4
  440. package/dist/cdn/ZVFPMGW3.js +0 -4
  441. package/dist/cdn/ZYTCK5QV.js +0 -4
@@ -0,0 +1,575 @@
1
+ import { c as j } from "../../chunks/runtime.js";
2
+ import { html as y } from "lit-html";
3
+ import { ref as G } from "lit-html/directives/ref.js";
4
+ import { keyed as q } from "lit-html/directives/keyed.js";
5
+ import { useMedia as K } from "@arcgis/lumina/controllers";
6
+ import { getColorsFromRenderer as J } from "@arcgis/core/renderers/support/utils.js";
7
+ import { LitElement as Q, noShadowRoot as Z, safeClassMap as C, nothing as A } from "@arcgis/lumina";
8
+ import { css as ee } from "@lit/reactive-element/css-tag.js";
9
+ import { substitute as te } from "@arcgis/core/intl.js";
10
+ import { c as S } from "../../chunks/utils.js";
11
+ import { watch as ie } from "@arcgis/core/core/reactiveUtils.js";
12
+ import ae from "@arcgis/core/popup/FieldInfo.js";
13
+ import X from "@arcgis/core/popup/content/support/ChartMediaInfoValueSeries.js";
14
+ import { unsafeGetModeName as re } from "@arcgis/components-utils";
15
+ import { renderingSanitizer as E } from "@arcgis/core/applications/Components/sanitizerUtils.js";
16
+ import { i as T, s as V, f as Y, a as U, g as ne, b as D, c as se, d as oe, e as le, h as ce } from "../../chunks/feature-utils.js";
17
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
18
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
19
+ v4.34.0-next.29 */
20
+ const de = ee`@layer{arcgis-feature-media{.arcgis-feature-media__container{display:flex;flex-flow:row wrap;align-items:center;margin-top:var(--calcite-spacing-xs);width:100%;min-height:150px}.arcgis-feature-media__container .arcgis-feature-media__pagination-button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding-block:var(--calcite-spacing-xs);padding-inline:var(--calcite-spacing-xs);color:var(--calcite-color-text-3)}.arcgis-feature-media__container .arcgis-feature-media__pagination-button:hover,.arcgis-feature-media__container .arcgis-feature-media__pagination-button:focus{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1);fill:var(--calcite-color-text-1)}.arcgis-feature-media__item-title{margin:0;font-size:var(--calcite-font-size-md)}.arcgis-feature-media__item-caption{padding-block-start:var(--calcite-spacing-xxs);font-size:var(--calcite-font-size)}.arcgis-feature-media__item{display:flex;align-items:flex-start;justify-content:center;margin-block:var(--calcite-spacing-xs);width:100%;height:auto}.arcgis-feature-media__item-navigation{display:flex;flex:0 1 100%;align-items:flex-start;justify-content:space-between;margin-block-end:var(--calcite-spacing-xs)}.arcgis-feature-media__item-text{margin-inline-end:var(--calcite-spacing-xs)}.arcgis-feature-media__pagination{display:flex;flex:0 0 auto;align-items:center;overflow:hidden}.arcgis-feature-media__pagination:only-child{margin-inline-start:auto}.arcgis-feature-media__pagination-text{padding-inline:var(--calcite-spacing-xxs);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.arcgis-feature-media__item-container{flex:0 1 auto;width:100%}.arcgis-feature-media__item-container img{max-width:100%}.arcgis-feature-media__item-container img[src$=".SVG"],.arcgis-feature-media__item-container img[src$=".svg"]{width:100%}.arcgis-feature-media__chart{width:100%;height:155px}}}`;
21
+ function N(R) {
22
+ if (!T(R))
23
+ return null;
24
+ const [e, t] = R.split("/").slice(1);
25
+ return { layerId: e, fieldName: t };
26
+ }
27
+ const M = "arcgis-feature-media", I = {
28
+ base: M,
29
+ mediaContainer: `${M}__container`,
30
+ mediaItemContainer: `${M}__item-container`,
31
+ mediaItem: `${M}__item`,
32
+ mediaItemText: `${M}__item-text`,
33
+ mediaItemTitle: `${M}__item-title`,
34
+ mediaItemCaption: `${M}__item-caption`,
35
+ mediaNavigation: `${M}__item-navigation`,
36
+ mediaPagination: `${M}__pagination`,
37
+ mediaPaginationText: `${M}__pagination-text`,
38
+ mediaChart: `${M}__chart`,
39
+ mediaPaginationButton: `${M}__pagination-button`,
40
+ mediaPaginationIcon: `${M}__pagination-icon`,
41
+ mediaChartRendered: `${M}__chart--rendered`
42
+ }, z = 15, w = "category", b = "value", me = "rgba(50, 50, 50, 1)", ue = 250, he = 500, fe = 200;
43
+ class pe extends Q {
44
+ constructor() {
45
+ super(...arguments), this._prefersReducedMotion = K("(prefers-reduced-motion)"), this.activeMediaInfoIndex = 0, this.chartAnimationDisabled = !1, this.isAggregate = !1;
46
+ }
47
+ static {
48
+ this.properties = { _refreshIntervalInfo: 16, messages: 0, values: 0, activeMediaInfoIndex: 9, chartAnimationDisabled: 5, activeMediaInfo: 32, formattedMediaInfos: 32, description: 1, fieldInfoMap: 0, layer: 0, mediaInfos: 0, popupTemplate: 0, relatedInfos: 0, formattedValues: 0, expressionValues: 0, heading: 1, isAggregate: 5, formattedMediaInfoCount: 32, headingLevel: 9 };
49
+ }
50
+ static {
51
+ this.styles = de;
52
+ }
53
+ static {
54
+ this.shadowRootOptions = Z;
55
+ }
56
+ get activeMediaInfo() {
57
+ return this.formattedMediaInfos[this.activeMediaInfoIndex] || null;
58
+ }
59
+ get formattedMediaInfos() {
60
+ return this._formatMediaInfos() || [];
61
+ }
62
+ get formattedMediaInfoCount() {
63
+ return this.formattedMediaInfos.length;
64
+ }
65
+ next() {
66
+ this._pageContentElementMedia(1);
67
+ }
68
+ previous() {
69
+ this._pageContentElementMedia(-1);
70
+ }
71
+ setActiveMedia(e) {
72
+ this._setContentElementMedia(e);
73
+ }
74
+ loaded() {
75
+ this.manager.onLifecycle(() => [
76
+ ie(() => [this.activeMediaInfo, this.activeMediaInfoIndex], () => this._setupMediaRefreshTimer(), { initial: !0 }),
77
+ { remove: () => this._clearMediaRefreshTimer() }
78
+ ]);
79
+ }
80
+ _setContentElementMedia(e) {
81
+ const { formattedMediaInfoCount: t } = this, i = (e + t) % t;
82
+ this.activeMediaInfoIndex = i;
83
+ }
84
+ _pageContentElementMedia(e) {
85
+ const { activeMediaInfoIndex: t } = this, i = t + e;
86
+ this._setContentElementMedia(i);
87
+ }
88
+ _formatMediaInfos() {
89
+ const { mediaInfos: e, layer: t } = this, i = this.values ?? {}, a = this.formattedValues ?? {}, s = this.expressionValues ?? {}, n = this.fieldInfoMap ?? /* @__PURE__ */ new Map();
90
+ return e?.map((o) => {
91
+ const r = o?.clone();
92
+ if (!r)
93
+ return null;
94
+ if (r.title = V({
95
+ values: i,
96
+ fieldInfoMap: n,
97
+ globalValues: a,
98
+ expressionValues: s,
99
+ layer: t,
100
+ text: r.title
101
+ }), r.caption = V({
102
+ values: i,
103
+ fieldInfoMap: n,
104
+ globalValues: a,
105
+ expressionValues: s,
106
+ layer: t,
107
+ text: r.caption
108
+ }), r.altText = V({
109
+ values: i,
110
+ fieldInfoMap: n,
111
+ globalValues: a,
112
+ expressionValues: s,
113
+ layer: t,
114
+ text: r.altText
115
+ }), r.type === "image") {
116
+ if (!r.value)
117
+ return null;
118
+ const c = r.value;
119
+ return this._setImageValue({
120
+ value: c,
121
+ formattedValues: a,
122
+ layer: t
123
+ }), c.sourceURL ? r : void 0;
124
+ }
125
+ if (r.type === "pie-chart" || r.type === "line-chart" || r.type === "column-chart" || r.type === "bar-chart") {
126
+ if (!r.value)
127
+ return null;
128
+ const c = r.value;
129
+ return this._setChartValue({
130
+ value: c,
131
+ chartType: r.type,
132
+ values: i,
133
+ formattedValues: a,
134
+ layer: t,
135
+ expressionValues: s
136
+ }), r;
137
+ }
138
+ return null;
139
+ }).filter((o) => o != null) ?? [];
140
+ }
141
+ _setImageValue(e) {
142
+ const t = this.fieldInfoMap ?? /* @__PURE__ */ new Map(), { value: i, formattedValues: a, layer: s } = e, { linkURL: n, sourceURL: o } = i;
143
+ if (o) {
144
+ const r = Y(o, s);
145
+ i.sourceURL = U({
146
+ formattedValues: a,
147
+ template: r,
148
+ fieldInfoMap: t
149
+ });
150
+ }
151
+ if (n) {
152
+ const r = Y(n, s);
153
+ i.linkURL = U({
154
+ formattedValues: a,
155
+ template: r,
156
+ fieldInfoMap: t
157
+ });
158
+ }
159
+ }
160
+ _setChartValue(e) {
161
+ const { value: t, values: i, formattedValues: a, chartType: s, layer: n, expressionValues: o } = e, { popupTemplate: r, relatedInfos: c } = this, { fields: f, normalizeField: m } = t, l = n;
162
+ if (t.fields = ne(f, l), m && (t.normalizeField = D(m, l)), !f.some((d) => !!(a[d] != null || T(d) && c?.size)))
163
+ return;
164
+ const u = r?.fieldInfos ?? [];
165
+ f.forEach((d, g) => {
166
+ const p = t.colors?.[g];
167
+ if (T(d)) {
168
+ t.series = [
169
+ ...t.series,
170
+ ...this._getRelatedChartInfos({ fieldInfos: u, fieldName: d, formattedValues: a, chartType: s, value: t, color: p })
171
+ ];
172
+ return;
173
+ }
174
+ const _ = this._getChartOption({
175
+ value: t,
176
+ values: i,
177
+ chartType: s,
178
+ formattedValues: a,
179
+ expressionValues: o,
180
+ fieldName: d,
181
+ fieldInfos: u,
182
+ color: p
183
+ });
184
+ t.series.push(_);
185
+ });
186
+ }
187
+ _getRelatedChartInfos(e) {
188
+ const { fieldInfos: t, fieldName: i, formattedValues: a, chartType: s, value: n, color: o } = e, r = [], c = N(i), f = c && this.relatedInfos?.get(c.layerId.toString());
189
+ if (!f)
190
+ return r;
191
+ const { relatedFeatures: m, relation: l } = f;
192
+ if (!l || !m)
193
+ return r;
194
+ const { cardinality: h } = l;
195
+ return m.forEach((d) => {
196
+ const g = d.attributes;
197
+ g && Object.keys(g).forEach((p) => {
198
+ p === c.fieldName && r.push(this._getChartOption({
199
+ value: n,
200
+ values: g,
201
+ formattedValues: a,
202
+ fieldName: i,
203
+ chartType: s,
204
+ relatedFieldName: p,
205
+ hasMultipleRelatedFeatures: m?.length > 1,
206
+ fieldInfos: t,
207
+ color: o
208
+ }));
209
+ });
210
+ }), h && (h === "one-to-many" || h === "many-to-many") ? r : [r[0]];
211
+ }
212
+ _getTooltip({ label: e, value: t, chartType: i }) {
213
+ return i === "pie-chart" ? `${e}` : `${e}: ${t}`;
214
+ }
215
+ _getChartOption(e) {
216
+ const { value: t, values: i, formattedValues: a, expressionValues: s, fieldName: n, relatedFieldName: o, fieldInfos: r, chartType: c, hasMultipleRelatedFeatures: f, color: m } = e, l = this.layer, h = this.fieldInfoMap ?? /* @__PURE__ */ new Map(), { normalizeField: u, tooltipField: d } = t, g = u ? T(u) ? i[N(u).fieldName] : i[u] : null, p = se(n) && s?.[n] !== void 0 ? s[n] : o && i[o] !== void 0 ? i[o] : i[n] !== void 0 ? i[n] : a[n], _ = p === void 0 ? null : p && g && typeof p == "number" && typeof g == "number" ? p / g : p, v = oe(r, n), x = D(n, l), F = (d && a[d] !== void 0 ? a[d] : le(v || new ae({ fieldName: x }), this.popupTemplate?.expressionInfos)) ?? "", $ = a[x] ?? "", P = typeof _ == "number" ? _ : Number(_);
217
+ if (T(n)) {
218
+ const k = h.get(n.toLowerCase()), B = d ? h.get(d.toLowerCase()) : null, H = k?.fieldName ?? n, L = f && d ? N(d).fieldName : B?.fieldName ?? d, O = (f && L ? i[L] : a[L] ?? k?.label ?? k?.fieldName ?? o) ?? "", W = (f && o ? i[o] : a[H]) ?? "";
219
+ return new X({
220
+ fieldName: n,
221
+ tooltip: this._getTooltip({
222
+ label: O,
223
+ value: W,
224
+ chartType: c
225
+ }),
226
+ color: m,
227
+ value: P
228
+ });
229
+ }
230
+ return new X({
231
+ fieldName: n,
232
+ tooltip: this._getTooltip({
233
+ label: F,
234
+ value: $,
235
+ chartType: c
236
+ }),
237
+ color: m,
238
+ value: P
239
+ });
240
+ }
241
+ _getRenderer() {
242
+ const e = this.layer;
243
+ return this.isAggregate && e?.featureReduction && "renderer" in e.featureReduction ? e.featureReduction.renderer : e?.renderer;
244
+ }
245
+ async _getSeriesColors(e) {
246
+ const { color: t } = await import("@amcharts/amcharts5/index.js"), i = /* @__PURE__ */ new Map();
247
+ return e.forEach((a) => {
248
+ a.color && i.set(a, t(a.color.toCss(!0)));
249
+ }), i;
250
+ }
251
+ async _getRendererColors() {
252
+ const { color: e } = await import("@amcharts/amcharts5/index.js"), t = /* @__PURE__ */ new Map(), i = this._getRenderer(), a = "default";
253
+ if (!i)
254
+ return t;
255
+ const s = await J(i);
256
+ return s.delete(a), Array.from(s.values()).every((o) => o?.length === 1) && Array.from(s.keys()).forEach((o) => {
257
+ const r = s.get(o)?.[0]?.toCss(!0);
258
+ r && t.set(o, e(r));
259
+ }), t;
260
+ }
261
+ async _createChart(e) {
262
+ const { activeMediaInfo: t } = this;
263
+ if (!e || !t)
264
+ return;
265
+ const { createRoot: i } = await import("../../chunks/chart-utils.js"), a = await i(e);
266
+ this._chartRoot = a, this._renderChart({
267
+ mediaInfo: t,
268
+ root: a
269
+ });
270
+ }
271
+ _handleMediaKeyup(e) {
272
+ const { key: t } = e;
273
+ t === "ArrowLeft" && (e.stopPropagation(), this.previous()), t === "ArrowRight" && (e.stopPropagation(), this.next());
274
+ }
275
+ _canAnimateChart() {
276
+ return !this.chartAnimationDisabled && !this._prefersReducedMotion;
277
+ }
278
+ _getChartAnimationMS() {
279
+ return this._canAnimateChart() ? ue : 0;
280
+ }
281
+ _getChartSeriesAnimationMS() {
282
+ return this._canAnimateChart() ? he : 0;
283
+ }
284
+ _getDirection() {
285
+ return S(this.el) ? "rtl" : "ltr";
286
+ }
287
+ async _customizeChartTooltip(e, t = "horizontal") {
288
+ const { color: i } = await import("@amcharts/amcharts5/index.js");
289
+ e.setAll({
290
+ pointerOrientation: t
291
+ }), e.get("background")?.setAll({
292
+ stroke: i(me)
293
+ }), e.label.setAll({
294
+ direction: this._getDirection(),
295
+ oversizedBehavior: "wrap",
296
+ maxWidth: fe
297
+ });
298
+ }
299
+ async _createPieChart(e, t) {
300
+ const [{ Tooltip: i }, { PieChart: a, PieSeries: s }] = await Promise.all([
301
+ import("@amcharts/amcharts5/index.js"),
302
+ import("@amcharts/amcharts5/percent.js")
303
+ ]), { mediaInfo: n, root: o } = e, { title: r } = n, c = 5, f = n?.altText || n?.title || "", m = o.container.children.push(a.new(o, {
304
+ ariaLabel: f,
305
+ focusable: !0,
306
+ paddingBottom: c,
307
+ paddingTop: c,
308
+ paddingLeft: c,
309
+ paddingRight: c
310
+ })), l = `{category}: {valuePercentTotal.formatNumber('0.00')}%
311
+ ({value})`, h = i.new(o, {
312
+ labelText: l
313
+ }), u = m.series.push(s.new(o, {
314
+ name: r,
315
+ valueField: b,
316
+ categoryField: w,
317
+ tooltip: h
318
+ }));
319
+ u.ticks.template.set("forceHidden", !0), u.labels.template.set("forceHidden", !0), u.slices.template.states.create("active", {
320
+ shiftRadius: c
321
+ }), this._customizeChartTooltip(h), u.slices.template.setAll({
322
+ ariaLabel: l,
323
+ focusable: !0,
324
+ templateField: "columnSettings"
325
+ }), u.data.setAll(t), u.appear(this._getChartSeriesAnimationMS()), m.appear(this._getChartAnimationMS()), m.root.dom.classList.toggle(I.mediaChartRendered, !0);
326
+ }
327
+ _getMinSeriesValue(e) {
328
+ let t = 0;
329
+ return e.forEach((i) => t = Math.min(i.value, t)), t;
330
+ }
331
+ async _createColumnChart(e, t, i) {
332
+ const [{ Tooltip: a, Scrollbar: s }, { CategoryAxis: n, AxisRendererX: o, AxisRendererY: r, ValueAxis: c, ColumnSeries: f }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { mediaInfo: m, root: l } = t, { value: h, title: u } = m;
333
+ e.setAll({
334
+ wheelX: "panX",
335
+ wheelY: "zoomX"
336
+ });
337
+ const d = e.xAxes.push(n.new(l, {
338
+ renderer: o.new(l, {
339
+ inversed: S(this.el)
340
+ }),
341
+ categoryField: w
342
+ }));
343
+ d.get("renderer").labels.template.setAll({
344
+ forceHidden: !0
345
+ });
346
+ const g = e.yAxes.push(c.new(l, {
347
+ renderer: r.new(l, { inside: !1 }),
348
+ min: this._getMinSeriesValue(h.series)
349
+ }));
350
+ g.get("renderer").labels.template.setAll({
351
+ direction: this._getDirection()
352
+ });
353
+ const p = "{categoryX}", _ = a.new(l, {
354
+ labelText: p
355
+ }), v = e.series.push(f.new(l, {
356
+ name: u,
357
+ xAxis: d,
358
+ yAxis: g,
359
+ valueYField: b,
360
+ categoryXField: w,
361
+ tooltip: _
362
+ }));
363
+ this._customizeChartTooltip(_), v.columns.template.setAll({
364
+ ariaLabel: p,
365
+ focusable: !0,
366
+ templateField: "columnSettings"
367
+ }), h.series.length > z && e.set("scrollbarX", s.new(l, {
368
+ orientation: "horizontal"
369
+ })), d.data.setAll(i), v.data.setAll(i), v.appear(this._getChartSeriesAnimationMS()), e.appear(this._getChartAnimationMS());
370
+ }
371
+ async _createBarChart(e, t, i) {
372
+ const [{ Tooltip: a, Scrollbar: s }, { CategoryAxis: n, AxisRendererX: o, AxisRendererY: r, ValueAxis: c, ColumnSeries: f }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { mediaInfo: m, root: l } = t, { value: h, title: u } = m;
373
+ e.setAll({
374
+ wheelX: "panY",
375
+ wheelY: "zoomY"
376
+ });
377
+ const d = e.yAxes.push(n.new(l, {
378
+ renderer: r.new(l, {
379
+ inversed: !0
380
+ }),
381
+ categoryField: w
382
+ }));
383
+ d.get("renderer").labels.template.setAll({
384
+ forceHidden: !0
385
+ });
386
+ const g = e.xAxes.push(c.new(l, {
387
+ renderer: o.new(l, {
388
+ inside: !1,
389
+ inversed: S(this.el)
390
+ }),
391
+ min: this._getMinSeriesValue(h.series)
392
+ }));
393
+ g.get("renderer").labels.template.setAll({
394
+ direction: this._getDirection()
395
+ });
396
+ const p = "{categoryY}", _ = a.new(l, {
397
+ labelText: p
398
+ }), v = e.series.push(f.new(l, {
399
+ name: u,
400
+ xAxis: g,
401
+ yAxis: d,
402
+ valueXField: b,
403
+ categoryYField: w,
404
+ tooltip: _
405
+ }));
406
+ this._customizeChartTooltip(_, "vertical"), v.columns.template.setAll({
407
+ ariaLabel: p,
408
+ focusable: !0,
409
+ templateField: "columnSettings"
410
+ }), h.series.length > z && e.set("scrollbarY", s.new(l, {
411
+ orientation: "vertical"
412
+ })), d.data.setAll(i), v.data.setAll(i), v.appear(this._getChartSeriesAnimationMS()), e.appear(this._getChartAnimationMS());
413
+ }
414
+ async _createLineChart(e, t, i) {
415
+ const [{ Tooltip: a, Scrollbar: s }, { CategoryAxis: n, AxisRendererX: o, AxisRendererY: r, ValueAxis: c, LineSeries: f }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { root: m, mediaInfo: l } = t, { value: h, title: u } = l;
416
+ e.setAll({
417
+ wheelX: "panX",
418
+ wheelY: "zoomX"
419
+ });
420
+ const d = e.xAxes.push(n.new(m, {
421
+ renderer: o.new(m, {
422
+ inversed: S(this.el)
423
+ }),
424
+ categoryField: w
425
+ }));
426
+ d.get("renderer").labels.template.setAll({
427
+ forceHidden: !0
428
+ });
429
+ const g = e.yAxes.push(c.new(m, {
430
+ renderer: r.new(m, { inside: !1 }),
431
+ min: this._getMinSeriesValue(h.series)
432
+ }));
433
+ g.get("renderer").labels.template.setAll({
434
+ direction: this._getDirection()
435
+ });
436
+ const p = "{categoryX}", _ = i[0]?.lineSettings?.stroke, v = a.new(m, {
437
+ getFillFromSprite: !_,
438
+ labelText: p
439
+ });
440
+ _ && v.get("background")?.setAll({
441
+ fill: _
442
+ });
443
+ const x = e.series.push(f.new(m, {
444
+ name: u,
445
+ xAxis: d,
446
+ yAxis: g,
447
+ valueYField: b,
448
+ categoryXField: w,
449
+ tooltip: v
450
+ }));
451
+ x.strokes.template.setAll({
452
+ templateField: "lineSettings"
453
+ }), this._customizeChartTooltip(v, "vertical"), h.series.length > z && e.set("scrollbarX", s.new(m, {
454
+ orientation: "horizontal"
455
+ })), d.data.setAll(i), x.data.setAll(i), x.appear(this._getChartSeriesAnimationMS()), e.appear(this._getChartAnimationMS());
456
+ }
457
+ async _createXYChart(e, t) {
458
+ const { XYChart: i, XYCursor: a } = await import("@amcharts/amcharts5/xy.js"), { root: s, mediaInfo: n } = e, { type: o } = n, r = n?.altText || n?.title || "", c = s.container.children.push(i.new(s, {
459
+ ariaLabel: r,
460
+ focusable: !0,
461
+ panX: !0,
462
+ panY: !0
463
+ }));
464
+ c.set("cursor", a.new(s, {})), o === "column-chart" && await this._createColumnChart(c, e, t), o === "bar-chart" && await this._createBarChart(c, e, t), o === "line-chart" && await this._createLineChart(c, e, t), c.root.dom.classList.toggle(I.mediaChartRendered, !0);
465
+ }
466
+ _clearMediaRefreshTimer() {
467
+ const { _refreshTimer: e } = this;
468
+ e && (clearTimeout(e), this._refreshTimer = void 0);
469
+ }
470
+ _updateMediaInfoTimestamp(e) {
471
+ const t = Date.now();
472
+ this._refreshIntervalInfo = {
473
+ timestamp: t,
474
+ sourceURL: e && this._getImageSource(e, t)
475
+ };
476
+ }
477
+ _setupMediaRefreshTimer() {
478
+ this._clearMediaRefreshTimer();
479
+ const { activeMediaInfo: e } = this;
480
+ e?.type === "image" && e.refreshInterval > 0 && this._setRefreshTimeout(e);
481
+ }
482
+ _setRefreshTimeout(e) {
483
+ const { refreshInterval: t, value: i } = e, a = t * 6e4;
484
+ this._updateMediaInfoTimestamp(i.sourceURL);
485
+ const s = window.setInterval(() => {
486
+ this._updateMediaInfoTimestamp(i.sourceURL);
487
+ }, a);
488
+ this._refreshTimer = s;
489
+ }
490
+ _getImageSource(e, t) {
491
+ const i = e.includes("?") ? "&" : "?", [a, s = ""] = e.split("#");
492
+ return `${a}${i}timestamp=${t}${s ? "#" : ""}${s}`;
493
+ }
494
+ _updateChartElement(e) {
495
+ if (!e) {
496
+ this._chartRoot?.dispose(), this._chartRoot = void 0;
497
+ return;
498
+ }
499
+ this._createChart(e);
500
+ }
501
+ render() {
502
+ return y`<div class=${C(I.base)} @keyup=${this._handleMediaKeyup}><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderMedia()}</div>`;
503
+ }
504
+ _renderMedia() {
505
+ const { formattedMediaInfoCount: e, activeMediaInfoIndex: t } = this, i = this._renderMediaText();
506
+ return e ? y`<div class=${C(I.mediaContainer)}>${this._renderMediaInfo()}<div class=${C(I.mediaNavigation)}>${i}${e > 1 ? y`<div class=${C(I.mediaPagination)}>${this._renderMediaPageButton("previous")}<span class=${C(I.mediaPaginationText)}>${te(this.messages?.pageText ?? "", {
507
+ index: t + 1,
508
+ total: e
509
+ })}</span>${this._renderMediaPageButton("next")}</div>` : null}</div></div>` : null;
510
+ }
511
+ _renderMediaText() {
512
+ const { activeMediaInfo: e } = this;
513
+ if (!e)
514
+ return null;
515
+ const t = e?.title ? y`<div class=${C(I.mediaItemTitle)} .innerHTML=${E.sanitize(e.title) ?? ""}></div>` : null, i = e?.caption ? y`<div class=${C(I.mediaItemCaption)} .innerHTML=${E.sanitize(e.caption) ?? ""}></div>` : null;
516
+ return t || i ? y`<div class=${C(I.mediaItemText)}>${t}${i}</div>` : null;
517
+ }
518
+ _renderImageMediaInfo(e) {
519
+ if (!e.value)
520
+ return null;
521
+ const { _refreshIntervalInfo: t } = this, { value: i, refreshInterval: a, altText: s, title: n } = e, { sourceURL: o, linkURL: r } = i, f = ce(r ?? void 0) ? "_blank" : "_self", m = f === "_blank" ? "noreferrer" : "", l = a ? t : null, h = l ? l.sourceURL : o, u = y`<img alt=${(s || n) ?? A} src=${h ?? void 0 ?? A}>`;
522
+ return (r ? y`<a href=${r ?? A} rel=${m ?? A} target=${f ?? A} title=${n ?? A}>${u}</a>` : null) ?? u;
523
+ }
524
+ _renderChartMediaInfo(e) {
525
+ const { activeMediaInfoIndex: t, formattedMediaInfoCount: i } = this;
526
+ return q(`media-${e.type}-${t}-${i}`, y`<div class=${C(I.mediaChart)} ${G(this._updateChartElement)}></div>`);
527
+ }
528
+ _renderMediaInfoType() {
529
+ const { activeMediaInfo: e } = this;
530
+ return e ? e.type === "image" ? this._renderImageMediaInfo(e) : e.type.includes("chart") ? this._renderChartMediaInfo(e) : null : null;
531
+ }
532
+ _renderMediaInfo() {
533
+ const { activeMediaInfo: e } = this;
534
+ return e ? y`<div class=${C(I.mediaItemContainer)}><div class=${C(I.mediaItem)}>${this._renderMediaInfoType()}</div></div>` : null;
535
+ }
536
+ _renderMediaPageButton(e) {
537
+ if (this.formattedMediaInfoCount < 2)
538
+ return null;
539
+ const t = e === "previous", i = t ? this.messages?.previous ?? "" : this.messages?.next ?? "", a = t ? "chevron-left" : "chevron-right", s = t ? this.previous : this.next;
540
+ return y`<button .ariaLabel=${i} class=${C(I.mediaPaginationButton)} @click=${s} tabindex=0 title=${i ?? A} type=button><calcite-icon flip-rtl class=${C(I.mediaPaginationIcon)} .icon=${a} scale=s></calcite-icon></button>`;
541
+ }
542
+ async _renderChart(e) {
543
+ const { root: t, mediaInfo: i } = e, { value: a, type: s } = i, [{ default: n }, { default: o }, { default: r }, { esriChartColorSet: c }, { ColorSet: f, Theme: m }] = await Promise.all([
544
+ import("@amcharts/amcharts5/themes/Animated.js"),
545
+ import("@amcharts/amcharts5/themes/Dark.js"),
546
+ import("@amcharts/amcharts5/themes/Responsive.js"),
547
+ import("../../chunks/chartCommon.js"),
548
+ import("@amcharts/amcharts5/index.js")
549
+ ]), l = m.new(t);
550
+ l.rule("ColorSet").set("colors", c), l.rule("ColorSet").set("reuse", !0);
551
+ const h = [r.new(t), l];
552
+ re(this.el) === "dark" && h.push(o.new(t)), this._canAnimateChart() && h.push(n.new(t)), t.setThemes(h);
553
+ const u = await this._getRendererColors(), d = await this._getSeriesColors(a.series), g = f.new(t, {}), p = d.get(a.series[0]), _ = p ? {
554
+ lineSettings: {
555
+ stroke: p
556
+ }
557
+ } : void 0, v = a.series.map((x, F) => {
558
+ const $ = d.get(x) || u.get(x.fieldName) || g.getIndex(F);
559
+ return {
560
+ [w]: x.tooltip,
561
+ [b]: x.value,
562
+ columnSettings: {
563
+ fill: $,
564
+ stroke: $
565
+ },
566
+ ..._
567
+ };
568
+ }).filter((x) => s === "pie-chart" ? x.value != null && x.value > 0 : !0);
569
+ s === "pie-chart" ? this._createPieChart(e, v) : this._createXYChart(e, v);
570
+ }
571
+ }
572
+ j("arcgis-feature-media", pe);
573
+ export {
574
+ pe as ArcgisFeatureMedia
575
+ };
@@ -0,0 +1,3 @@
1
+ import "../arcgis-feature-element-info/index.js";
2
+ import "@esri/calcite-components/components/calcite-icon";
3
+ export * from "./customElement.js";
@@ -0,0 +1,3 @@
1
+ import "../arcgis-feature-element-info/index.js";
2
+ import "@esri/calcite-components/components/calcite-icon";
3
+ export * from "./customElement.js";
@@ -9,7 +9,7 @@ import { e as m, g as c } from "../../chunks/component-utils.js";
9
9
  import { css as u } from "@lit/reactive-element/css-tag.js";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
12
- v4.34.0-next.28 */
12
+ v4.34.0-next.29 */
13
13
  const w = u`@layer{arcgis-feature-table{display:block}.arcgis-feature-table{width:100%;height:100%}}`, p = g(a);
14
14
  class b extends d {
15
15
  constructor() {
@@ -7,7 +7,7 @@ import { m as a } from "../../chunks/useWidget.js";
7
7
  import { css as h } from "@lit/reactive-element/css-tag.js";
8
8
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
9
9
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
10
- v4.34.0-next.28 */
10
+ v4.34.0-next.29 */
11
11
  const n = h`@layer{arcgis-feature-templates{display:block}}`, c = a(s);
12
12
  class d extends o {
13
13
  constructor() {
@@ -8,7 +8,7 @@ import { css as l } from "@lit/reactive-element/css-tag.js";
8
8
  import { c } from "../../chunks/createCloseEvent.js";
9
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
11
- v4.34.0-next.28 */
11
+ v4.34.0-next.29 */
12
12
  const g = l`@layer{arcgis-features{display:flex;flex-direction:column;overflow:hidden;.esri-features{flex:1 1 auto;overflow:hidden}}}`, u = d(o);
13
13
  class w extends r {
14
14
  constructor() {
@@ -5,7 +5,7 @@ import { m as a } from "../../chunks/useWidget.js";
5
5
  import { css as r } from "@lit/reactive-element/css-tag.js";
6
6
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
8
- v4.34.0-next.28 */
8
+ v4.34.0-next.29 */
9
9
  const h = r`@layer{arcgis-floor-filter{display:block}}`, n = a(i);
10
10
  class c extends s {
11
11
  constructor() {
@@ -9,7 +9,7 @@ import { css as p } from "@lit/reactive-element/css-tag.js";
9
9
  import { u as h } from "../../chunks/useView.js";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
12
- v4.34.0-next.28 */
12
+ v4.34.0-next.29 */
13
13
  const g = p`arcgis-fullscreen{display:block}`, E = {
14
14
  base: "esri-fullscreen"
15
15
  };
@@ -15,7 +15,7 @@ import { watch as D } from "@arcgis/core/core/reactiveUtils.js";
15
15
  import L from "@arcgis/core/widgets/support/GridControls/GridControlsViewModel.js";
16
16
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
17
17
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
18
- v4.34.0-next.28 */
18
+ v4.34.0-next.29 */
19
19
  function B(s) {
20
20
  if (s == null || Number.isNaN(s))
21
21
  return 0;
@@ -6,7 +6,7 @@ import { m as n } from "../../chunks/useWidget.js";
6
6
  import { css as d } from "@lit/reactive-element/css-tag.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
9
- v4.34.0-next.28 */
9
+ v4.34.0-next.29 */
10
10
  const h = d`@layer{arcgis-histogram-range-slider{display:block}}`, l = n(s);
11
11
  class g extends a {
12
12
  constructor() {
@@ -11,7 +11,7 @@ import { g as a } from "../../chunks/globalCss.js";
11
11
  import { css as u } from "@lit/reactive-element/css-tag.js";
12
12
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
13
13
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
14
- v4.34.0-next.28 */
14
+ v4.34.0-next.29 */
15
15
  const b = u`@layer{arcgis-home{display:block}}`, y = {
16
16
  base: "esri-home"
17
17
  }, M = f(d);
@@ -6,7 +6,7 @@ import { LitElement as m, createEvent as b, safeClassMap as c } from "@arcgis/lu
6
6
  import { css as f } from "@lit/reactive-element/css-tag.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
9
- v4.34.0-next.28 */
9
+ v4.34.0-next.29 */
10
10
  const g = f`.label{--calcite-label-margin-bottom: 0}.label-content{display:flex;flex:1;gap:var(--calcite-spacing-sm);align-items:center;text-wrap:balance}.label-content>div{flex-grow:1}.icon{margin-top:-1px;&.info{color:var(--calcite-color-status-info)}&.warning{color:var(--calcite-color-status-warning)}}.tooltip{text-wrap:wrap}`, e = {
11
11
  label: "label",
12
12
  labelContent: "label-content",