@arcgis/map-components 5.2.0-next.121 → 5.2.0-next.123

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 (279) hide show
  1. package/dist/cdn/{XJGJMS7L.js → 2CE24IDF.js} +1 -1
  2. package/dist/cdn/{K3J3WDMO.js → 2FR4GN2W.js} +1 -1
  3. package/dist/cdn/{QLJEWRH3.js → 2N2VGYUB.js} +1 -1
  4. package/dist/cdn/{Q6LQ5BUX.js → 34E7N7GU.js} +1 -1
  5. package/dist/cdn/{WC2DVIUW.js → 3E36QFXG.js} +2 -2
  6. package/dist/cdn/3FRV7BIJ.js +2 -0
  7. package/dist/cdn/{GLOUXFQV.js → 3IPZE7AH.js} +1 -1
  8. package/dist/cdn/{H5FV4C72.js → 3KIT2HLC.js} +1 -1
  9. package/dist/cdn/{3KTHEK76.js → 3T274BES.js} +1 -1
  10. package/dist/cdn/{Z4FIADPO.js → 3TR7QOHP.js} +1 -1
  11. package/dist/cdn/{OTPKIKAJ.js → 3XZSI7I3.js} +1 -1
  12. package/dist/cdn/464EB67Q.js +2 -0
  13. package/dist/cdn/{I2IBXGQM.js → 5AV2IOLR.js} +1 -1
  14. package/dist/cdn/{JMWMN4DG.js → 5SLLYIWJ.js} +1 -1
  15. package/dist/cdn/{TH6TT77M.js → 5XQHTWAB.js} +1 -1
  16. package/dist/cdn/{XCARHZUP.js → 5YJQOF7B.js} +1 -1
  17. package/dist/cdn/{BAV6JF4F.js → 5Z4QFELH.js} +1 -1
  18. package/dist/cdn/5ZRBWOVW.js +2 -0
  19. package/dist/cdn/{7QH5PIWM.js → 6EQW3YHG.js} +1 -1
  20. package/dist/cdn/{6ZKGF6SQ.js → 6HN7AAG3.js} +1 -1
  21. package/dist/cdn/6LL2ILG2.js +2 -0
  22. package/dist/cdn/{FTTOI66H.js → 6UGAJNGV.js} +1 -1
  23. package/dist/cdn/{KRSOL3FL.js → 7K2PSLD3.js} +1 -1
  24. package/dist/cdn/{ALEBI75Z.js → AXFCL6D2.js} +1 -1
  25. package/dist/cdn/{FR7ARNMJ.js → B4QA6HTE.js} +1 -1
  26. package/dist/cdn/CCFGYVBQ.js +2 -0
  27. package/dist/cdn/{GYCEMWMN.js → CNXCJR63.js} +1 -1
  28. package/dist/cdn/{LM6RYRCS.js → CNYKQYK2.js} +1 -1
  29. package/dist/cdn/{UNUMT2DZ.js → D36LYGSR.js} +1 -1
  30. package/dist/cdn/{B67VAZX4.js → DJSH4JQR.js} +1 -1
  31. package/dist/cdn/{CPBFA25A.js → DLFRE6XN.js} +1 -1
  32. package/dist/cdn/{F6BRM6HX.js → DLW55IF2.js} +1 -1
  33. package/dist/cdn/{JD562WMM.js → EDMWGUZ2.js} +1 -1
  34. package/dist/cdn/{KKDWRLQ4.js → ESUJ7IS2.js} +1 -1
  35. package/dist/cdn/{FAFDJABP.js → EWPICNWR.js} +1 -1
  36. package/dist/cdn/{KIHX5LRN.js → EZFBF4SK.js} +1 -1
  37. package/dist/cdn/{GPIHHNP7.js → F46CTQWP.js} +1 -1
  38. package/dist/cdn/FDTUX3BC.js +2 -0
  39. package/dist/cdn/{QIEX43LK.js → FVI77DR5.js} +1 -1
  40. package/dist/cdn/{DAPKG4DY.js → G3KYGRHM.js} +1 -1
  41. package/dist/cdn/{Y3Y3AB5L.js → G4HKU5PR.js} +1 -1
  42. package/dist/cdn/{TVZZB4KV.js → G6ZEXGBJ.js} +1 -1
  43. package/dist/cdn/{56PUZWIU.js → G75EAA46.js} +1 -1
  44. package/dist/cdn/{Y5Q3Q4GW.js → GIOUZTHM.js} +1 -1
  45. package/dist/cdn/{4DWURRQB.js → GLH5GJZC.js} +1 -1
  46. package/dist/cdn/{3VBI4PPT.js → H3CCHIXN.js} +1 -1
  47. package/dist/cdn/{ACIG6774.js → HH5GEJCC.js} +1 -1
  48. package/dist/cdn/{MXA65YBP.js → HTQSLNPO.js} +1 -1
  49. package/dist/cdn/I7PSZ2EP.js +2 -0
  50. package/dist/cdn/ISK7BEJR.js +2 -0
  51. package/dist/cdn/{VFSWB7LJ.js → IWOKTFPQ.js} +1 -1
  52. package/dist/cdn/{OPLR5W7O.js → JSYLRK26.js} +1 -1
  53. package/dist/cdn/{WJ3JWM5S.js → JZITIN62.js} +1 -1
  54. package/dist/cdn/{5FBX5V2M.js → KHHVCV55.js} +1 -1
  55. package/dist/cdn/{LBJMKYT2.js → KM2GXXBO.js} +1 -1
  56. package/dist/cdn/{46ZZWK6X.js → KY3ND2AY.js} +1 -1
  57. package/dist/cdn/KYWVUIH5.js +2 -0
  58. package/dist/cdn/{7KWX2CED.js → LAY2RKKS.js} +1 -1
  59. package/dist/cdn/{TCYOOMSU.js → LCB5NFAN.js} +1 -1
  60. package/dist/cdn/{DOR5MVML.js → LTTYKRLO.js} +1 -1
  61. package/dist/cdn/{QNHJY7QE.js → M3EXGLNJ.js} +1 -1
  62. package/dist/cdn/{KQ3E54MW.js → M4JE53PK.js} +1 -1
  63. package/dist/cdn/MPYSRYIP.js +2 -0
  64. package/dist/cdn/{LP2PF2VT.js → NGCMS3XY.js} +1 -1
  65. package/dist/cdn/{6VR7MKOM.js → NVAZ2KQI.js} +1 -1
  66. package/dist/cdn/{KFE2444H.js → OQKO2TQ6.js} +1 -1
  67. package/dist/cdn/{VSJ3MYSY.js → P2YZCB7M.js} +1 -1
  68. package/dist/cdn/{6XJFRQ75.js → P7GH36VO.js} +1 -1
  69. package/dist/cdn/{BB66E2IZ.js → PCB2C5PV.js} +1 -1
  70. package/dist/cdn/{3EYHGXI5.js → PLTLRYBF.js} +1 -1
  71. package/dist/cdn/PR6OAZWA.js +2 -0
  72. package/dist/cdn/{LWW6FUI2.js → PT5PXWSP.js} +1 -1
  73. package/dist/cdn/{UNP7N3DO.js → PUYZDQHZ.js} +1 -1
  74. package/dist/cdn/{WLVBYYQ7.js → PYIO65MV.js} +1 -1
  75. package/dist/cdn/{JB46R4PC.js → Q2DV5IF7.js} +1 -1
  76. package/dist/cdn/{JOOXDIS7.js → Q4AJYCNY.js} +1 -1
  77. package/dist/cdn/{GG3LRZHU.js → QARN2LHH.js} +1 -1
  78. package/dist/cdn/{HH4T6PVP.js → QMQV37ML.js} +1 -1
  79. package/dist/cdn/{24SNB22W.js → QMSOVSAE.js} +1 -1
  80. package/dist/cdn/QXVHT3RD.js +5 -0
  81. package/dist/cdn/{EUV2XFUO.js → R73HRX3M.js} +1 -1
  82. package/dist/cdn/{UXUG6DBJ.js → R7E5VLXC.js} +1 -1
  83. package/dist/cdn/{7VLIHMQS.js → ROP6JGKX.js} +1 -1
  84. package/dist/cdn/{4YDQKGDY.js → RPVAC6LC.js} +1 -1
  85. package/dist/cdn/{5IQQ6P2J.js → RU7PGLLB.js} +1 -1
  86. package/dist/cdn/RVFDK6O7.js +2 -0
  87. package/dist/cdn/{4W6PAHFY.js → S62FQUEJ.js} +1 -1
  88. package/dist/cdn/S7T2NPCW.js +2 -0
  89. package/dist/cdn/{ILBDNJQP.js → SJOO6JRD.js} +1 -1
  90. package/dist/cdn/{NK74ZCP7.js → SXQRPAPL.js} +1 -1
  91. package/dist/cdn/{HGCKG3CA.js → SXRL4VDZ.js} +1 -1
  92. package/dist/cdn/{AA5T4ECA.js → T7IZYFCL.js} +1 -1
  93. package/dist/cdn/{MU54WQG6.js → TILA2OKK.js} +1 -1
  94. package/dist/cdn/{5E2DZJWK.js → TM2C2UJ2.js} +1 -1
  95. package/dist/cdn/TMJX7DFH.js +2 -0
  96. package/dist/cdn/{BFVEHL3M.js → TOM7OOAW.js} +1 -1
  97. package/dist/cdn/{UA5FRNJG.js → TSVBA2RT.js} +1 -1
  98. package/dist/cdn/{W5B2F2LI.js → TTF3OFS7.js} +1 -1
  99. package/dist/cdn/TZHXSIXK.js +2 -0
  100. package/dist/cdn/{XGZ36AOT.js → U65VFGZD.js} +1 -1
  101. package/dist/cdn/{V7BQUMJL.js → U7XNKUUX.js} +1 -1
  102. package/dist/cdn/UELKEVHS.js +2 -0
  103. package/dist/cdn/US6PRR7S.js +2 -0
  104. package/dist/cdn/{2JMMBI2U.js → UUZB2BTT.js} +1 -1
  105. package/dist/cdn/{JZKIH22R.js → UVVQOKEQ.js} +1 -1
  106. package/dist/cdn/{VHQAII6W.js → VHXR7S7C.js} +1 -1
  107. package/dist/cdn/VSH4WLRS.js +2 -0
  108. package/dist/cdn/{LGLKLXNY.js → W4KEAKF6.js} +1 -1
  109. package/dist/cdn/{QSZJFQJC.js → W7STZRDX.js} +1 -1
  110. package/dist/cdn/{IZ7UWAQP.js → WSQEOUFE.js} +1 -1
  111. package/dist/cdn/{W5YXSHEP.js → WVSZE7NB.js} +1 -1
  112. package/dist/cdn/{MFBQRTJ3.js → XHGWAHOF.js} +1 -1
  113. package/dist/cdn/XTYPZLPL.js +2 -0
  114. package/dist/cdn/{ESISPXFF.js → Y462FZAE.js} +1 -1
  115. package/dist/cdn/{EGFWED7R.js → YAUITFVH.js} +1 -1
  116. package/dist/cdn/{SR3XJAI3.js → YCK3FBCL.js} +1 -1
  117. package/dist/cdn/{55AZTWOF.js → YHN67JH4.js} +1 -1
  118. package/dist/cdn/{TOBWMRET.js → YHZFK4FD.js} +1 -1
  119. package/dist/cdn/{TB3M7LUD.js → YR2AO44W.js} +1 -1
  120. package/dist/cdn/{XP4IZ2KQ.js → YRZRKOE3.js} +1 -1
  121. package/dist/cdn/{MJK57OXC.js → YTNVFW4X.js} +1 -1
  122. package/dist/cdn/{BTQUD5J4.js → YYSME7RS.js} +1 -1
  123. package/dist/cdn/{5LLUEI66.js → ZHKAXGX4.js} +1 -1
  124. package/dist/cdn/ZUAZUUTW.js +2 -0
  125. package/dist/cdn/{NZSCPBS7.js → ZZ465HDX.js} +1 -1
  126. package/dist/cdn/{2DZOKMWP.js → ZZJWG3GK.js} +1 -1
  127. package/dist/cdn/assets/feature-form-next/t9n/messages.ar.json +1 -1
  128. package/dist/cdn/assets/feature-form-next/t9n/messages.bg.json +1 -1
  129. package/dist/cdn/assets/feature-form-next/t9n/messages.ca.json +1 -1
  130. package/dist/cdn/assets/feature-form-next/t9n/messages.cs.json +1 -1
  131. package/dist/cdn/assets/feature-form-next/t9n/messages.da.json +1 -1
  132. package/dist/cdn/assets/feature-form-next/t9n/messages.de.json +1 -1
  133. package/dist/cdn/assets/feature-form-next/t9n/messages.el.json +1 -1
  134. package/dist/cdn/assets/feature-form-next/t9n/messages.es.json +1 -1
  135. package/dist/cdn/assets/feature-form-next/t9n/messages.et.json +1 -1
  136. package/dist/cdn/assets/feature-form-next/t9n/messages.fi.json +1 -1
  137. package/dist/cdn/assets/feature-form-next/t9n/messages.fr.json +1 -1
  138. package/dist/cdn/assets/feature-form-next/t9n/messages.he.json +1 -1
  139. package/dist/cdn/assets/feature-form-next/t9n/messages.hr.json +1 -1
  140. package/dist/cdn/assets/feature-form-next/t9n/messages.hu.json +1 -1
  141. package/dist/cdn/assets/feature-form-next/t9n/messages.id.json +1 -1
  142. package/dist/cdn/assets/feature-form-next/t9n/messages.it.json +1 -1
  143. package/dist/cdn/assets/feature-form-next/t9n/messages.ja.json +1 -1
  144. package/dist/cdn/assets/feature-form-next/t9n/messages.ko.json +1 -1
  145. package/dist/cdn/assets/feature-form-next/t9n/messages.lt.json +1 -1
  146. package/dist/cdn/assets/feature-form-next/t9n/messages.lv.json +1 -1
  147. package/dist/cdn/assets/feature-form-next/t9n/messages.nl.json +1 -1
  148. package/dist/cdn/assets/feature-form-next/t9n/messages.no.json +1 -1
  149. package/dist/cdn/assets/feature-form-next/t9n/messages.pl.json +1 -1
  150. package/dist/cdn/assets/feature-form-next/t9n/messages.pt-BR.json +1 -1
  151. package/dist/cdn/assets/feature-form-next/t9n/messages.pt-PT.json +1 -1
  152. package/dist/cdn/assets/feature-form-next/t9n/messages.ro.json +1 -1
  153. package/dist/cdn/assets/feature-form-next/t9n/messages.ru.json +1 -1
  154. package/dist/cdn/assets/feature-form-next/t9n/messages.sk.json +1 -1
  155. package/dist/cdn/assets/feature-form-next/t9n/messages.sl.json +1 -1
  156. package/dist/cdn/assets/feature-form-next/t9n/messages.sr.json +1 -1
  157. package/dist/cdn/assets/feature-form-next/t9n/messages.sv.json +1 -1
  158. package/dist/cdn/assets/feature-form-next/t9n/messages.th.json +1 -1
  159. package/dist/cdn/assets/feature-form-next/t9n/messages.tr.json +1 -1
  160. package/dist/cdn/assets/feature-form-next/t9n/messages.uk.json +1 -1
  161. package/dist/cdn/assets/feature-form-next/t9n/messages.vi.json +1 -1
  162. package/dist/cdn/assets/feature-form-next/t9n/messages.zh-CN.json +1 -1
  163. package/dist/cdn/assets/feature-form-next/t9n/messages.zh-TW.json +1 -1
  164. package/dist/cdn/assets/selection-list/t9n/messages.en.json +1 -1
  165. package/dist/cdn/assets/selection-toolbar/t9n/messages.en.json +1 -1
  166. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.en.json +1 -1
  167. package/dist/cdn/index.js +1 -1
  168. package/dist/chunks/layer-utils.js +48 -44
  169. package/dist/chunks/slots.js +1 -1
  170. package/dist/components/arcgis-expand/customElement.d.ts +9 -0
  171. package/dist/components/arcgis-expand/customElement.js +27 -27
  172. package/dist/components/arcgis-exploratory-analysis/customElement.js +46 -46
  173. package/dist/components/arcgis-feature-form-utility-network-association-list/customElement.js +1 -1
  174. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  175. package/dist/components/arcgis-fullscreen/customElement.js +9 -10
  176. package/dist/components/arcgis-legend-card-element/customElement.js +26 -26
  177. package/dist/components/arcgis-link-chart/customElement.d.ts +9 -0
  178. package/dist/components/arcgis-link-chart/customElement.js +11 -11
  179. package/dist/components/arcgis-map/customElement.d.ts +9 -0
  180. package/dist/components/arcgis-map/customElement.js +2 -2
  181. package/dist/components/arcgis-paste/customElement.js +1 -1
  182. package/dist/components/arcgis-scale-bar/customElement.js +8 -8
  183. package/dist/components/arcgis-scene/customElement.d.ts +9 -0
  184. package/dist/components/arcgis-scene/customElement.js +6 -6
  185. package/dist/components/arcgis-selection-list/customElement.d.ts +33 -12
  186. package/dist/components/arcgis-selection-list/customElement.js +79 -63
  187. package/dist/components/arcgis-selection-toolbar/customElement.d.ts +42 -2
  188. package/dist/components/arcgis-selection-toolbar/customElement.js +60 -37
  189. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +18 -3
  190. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +63 -53
  191. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +11 -3
  192. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +107 -53
  193. package/dist/components/arcgis-utility-network-trace-analysis/index.js +1 -0
  194. package/dist/components/arcgis-utility-network-trace-analysis/types.d.ts +5 -1
  195. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +19 -11
  196. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +124 -110
  197. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +29 -0
  198. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +31 -17
  199. package/dist/components/arcgis-utility-network-trace-locations/customElement.js +1 -1
  200. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +63 -14
  201. package/dist/components/arcgis-utility-network-trace-results/customElement.js +245 -55
  202. package/dist/components/arcgis-utility-network-trace-results/index.js +1 -2
  203. package/dist/components/arcgis-utility-network-trace-results-pane/customElement.js +7 -7
  204. package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
  205. package/dist/docs/api.json +1 -1
  206. package/dist/docs/docs.json +1 -1
  207. package/dist/docs/vscode.html-custom-data.json +1 -1
  208. package/dist/docs/web-types.json +1 -1
  209. package/dist/index.d.ts +6 -0
  210. package/dist/loader.js +10 -10
  211. package/dist/types/lumina.d.ts +14 -9
  212. package/dist/types/preact.d.ts +14 -9
  213. package/dist/types/react.d.ts +14 -9
  214. package/dist/types/stencil.d.ts +14 -9
  215. package/package.json +7 -7
  216. package/dist/cdn/4FADGEJD.js +0 -2
  217. package/dist/cdn/4FBTH6YD.js +0 -2
  218. package/dist/cdn/4SLCQ6RS.js +0 -2
  219. package/dist/cdn/A2FK4TED.js +0 -2
  220. package/dist/cdn/BOEHQXPR.js +0 -2
  221. package/dist/cdn/C2HB2U6P.js +0 -2
  222. package/dist/cdn/CRWARUC7.js +0 -2
  223. package/dist/cdn/GC4D3K6B.js +0 -2
  224. package/dist/cdn/GJZCVU6G.js +0 -5
  225. package/dist/cdn/GYTTYWIC.js +0 -2
  226. package/dist/cdn/JGHPNDIO.js +0 -2
  227. package/dist/cdn/JRFQGFRL.js +0 -2
  228. package/dist/cdn/MRC7R44N.js +0 -2
  229. package/dist/cdn/MT6BTCFR.js +0 -2
  230. package/dist/cdn/OYD6YL32.js +0 -2
  231. package/dist/cdn/QD7ELNLS.js +0 -2
  232. package/dist/cdn/RVJTWRVG.js +0 -2
  233. package/dist/cdn/TBSKBHHL.js +0 -2
  234. package/dist/cdn/TIDNGXMD.js +0 -2
  235. package/dist/cdn/Z44GSKHZ.js +0 -2
  236. package/dist/cdn/ZB6W452H.js +0 -2
  237. /package/dist/cdn/{ZU6D3YMF.js → 27MP6TEF.js} +0 -0
  238. /package/dist/cdn/{3XRSSDOC.js → 3JCF73F4.js} +0 -0
  239. /package/dist/cdn/{RLTZHJ26.js → 3XEPXV4Q.js} +0 -0
  240. /package/dist/cdn/{IMINWWQN.js → 43IOCYG5.js} +0 -0
  241. /package/dist/cdn/{HMZDI4HQ.js → 45JO7F4Y.js} +0 -0
  242. /package/dist/cdn/{232VF5GS.js → 4W35GLNO.js} +0 -0
  243. /package/dist/cdn/{7HQJTIYO.js → 5CER2N5T.js} +0 -0
  244. /package/dist/cdn/{33AEAI5T.js → 5M56ZA46.js} +0 -0
  245. /package/dist/cdn/{W6X34YBZ.js → 6NWR2Z4F.js} +0 -0
  246. /package/dist/cdn/{KMODOE6H.js → 7FVXPOAG.js} +0 -0
  247. /package/dist/cdn/{2PRRRGTC.js → AYJQLWX4.js} +0 -0
  248. /package/dist/cdn/{HJP2DQC3.js → AZ73DBU3.js} +0 -0
  249. /package/dist/cdn/{CQW2542N.js → B4CANXID.js} +0 -0
  250. /package/dist/cdn/{HLHFT3VN.js → BEFZSVBT.js} +0 -0
  251. /package/dist/cdn/{55Q2U4HS.js → BIWQEPK4.js} +0 -0
  252. /package/dist/cdn/{N5NLF7RI.js → BLYJE76S.js} +0 -0
  253. /package/dist/cdn/{2Q7J34UP.js → CESFJ6AD.js} +0 -0
  254. /package/dist/cdn/{5ZZ7JN5X.js → COKGOKO2.js} +0 -0
  255. /package/dist/cdn/{7Y65HW7Z.js → D3LYSFXK.js} +0 -0
  256. /package/dist/cdn/{FZATLDJD.js → EAM45WZP.js} +0 -0
  257. /package/dist/cdn/{6VBFCBUV.js → EDTGV4YF.js} +0 -0
  258. /package/dist/cdn/{62XRQDSI.js → FMBY3L4S.js} +0 -0
  259. /package/dist/cdn/{TKC3X6S6.js → GQ6SYNZS.js} +0 -0
  260. /package/dist/cdn/{YUZAZ3CJ.js → H4FH2RBM.js} +0 -0
  261. /package/dist/cdn/{P3MLJ7YL.js → I5ZESLWO.js} +0 -0
  262. /package/dist/cdn/{MM6LPGBW.js → KO7RD6SS.js} +0 -0
  263. /package/dist/cdn/{2LEEKX4J.js → LQ76PRWK.js} +0 -0
  264. /package/dist/cdn/{CTHAODQE.js → MUWOF7W4.js} +0 -0
  265. /package/dist/cdn/{G5DB24SO.js → OCLOCCB6.js} +0 -0
  266. /package/dist/cdn/{2UG26OVP.js → OJXNUBIA.js} +0 -0
  267. /package/dist/cdn/{ANRJPTRX.js → OUXE3CSQ.js} +0 -0
  268. /package/dist/cdn/{AKKV6RKF.js → PXAY7IM4.js} +0 -0
  269. /package/dist/cdn/{4PMOT2RS.js → QMYL4UM7.js} +0 -0
  270. /package/dist/cdn/{UCFBAQVW.js → QPFX5XH3.js} +0 -0
  271. /package/dist/cdn/{EGN54PEX.js → RFSBZHJD.js} +0 -0
  272. /package/dist/cdn/{4TZLBS5N.js → RYYBMDGS.js} +0 -0
  273. /package/dist/cdn/{CDGKQKVU.js → T2DT5I33.js} +0 -0
  274. /package/dist/cdn/{EJ5KLAEE.js → UINNR6FV.js} +0 -0
  275. /package/dist/cdn/{KWL3F4UP.js → UPZVIKOH.js} +0 -0
  276. /package/dist/cdn/{KXCLNNE5.js → VCRVQMYT.js} +0 -0
  277. /package/dist/cdn/{COSLSZXO.js → VWN2LORT.js} +0 -0
  278. /package/dist/cdn/{3NKJ4HFO.js → XAMLHDWZ.js} +0 -0
  279. /package/dist/cdn/{N43ZQ4C7.js → ZWN6DXNO.js} +0 -0
@@ -1,16 +1,16 @@
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 w, html as s } from "lit";
2
+ import { c as I } from "../../chunks/runtime.js";
3
+ import { css as y, html as a } from "lit";
4
4
  import { keyed as n } from "lit/directives/keyed.js";
5
- import { ref as x } from "lit/directives/ref.js";
6
- import { substitute as v, formatNumber as g } from "@arcgis/core/intl.js";
7
- import { isGroupLayerItem as b, isLayerItem as I, isFeatureItem as C } from "@arcgis/core/widgets/support/SelectionList/selectionListUtils.js";
8
- import L from "@arcgis/core/widgets/support/SelectionList/SelectionListViewModel.js";
9
- import { LitElement as M, createEvent as F, nothing as u, safeClassMap as r } from "@arcgis/lumina";
10
- import { usePropertyChange as S } from "@arcgis/lumina/controllers";
11
- import { u as T } from "../../chunks/useT9n.js";
12
- import { m as k } from "../../chunks/useViewModel.js";
13
- const c = {
5
+ import { ref as w } from "lit/directives/ref.js";
6
+ import { substitute as u, formatNumber as p } from "@arcgis/core/intl.js";
7
+ import { isFeatureItem as f, isLayerItem as v, isGroupLayerItem as b } from "@arcgis/core/widgets/support/SelectionList/selectionListUtils.js";
8
+ import C from "@arcgis/core/widgets/support/SelectionList/SelectionListViewModel.js";
9
+ import { LitElement as x, createEvent as $, nothing as h, safeClassMap as c } from "@arcgis/lumina";
10
+ import { usePropertyChange as F } from "@arcgis/lumina/controllers";
11
+ import { u as M } from "../../chunks/useT9n.js";
12
+ import { m as L } from "../../chunks/useViewModel.js";
13
+ const o = {
14
14
  container: "container",
15
15
  flowItem: "flow-item",
16
16
  layerDropdown: "layer-dropdown",
@@ -19,18 +19,17 @@ const c = {
19
19
  listItemIcon: "icon",
20
20
  itemCount: "item-count",
21
21
  notice: "notice",
22
- panel: "panel",
23
- totalCount: "total-count"
24
- }, A = w`:host{width:100%;display:flex;height:100%;flex:1 1 0;>*{align-items:center;align-self:center;width:100%;height:100%}}.root{display:flex;flex-direction:column}calcite-flow{height:100%;width:100%}.container,.flow-item,.panel{display:flex}.flow-item{overflow:auto}.flow-item[scale=s] .container{gap:var(--calcite-spacing-sm);padding:var(--calcite-spacing-sm) 0}.flow-item[scale=m] .container{gap:var(--calcite-spacing-md);padding:var(--calcite-spacing-md) 0}.flow-item[scale=l] .container{gap:var(--calcite-spacing-lg);padding:var(--calcite-spacing-lg) 0}.container{flex-direction:column;background-color:var(--calcite-color-foreground-1)}.container>*{background-color:var(--calcite-color-foreground-1)}.container>*[scale=s]{padding:0 var(--calcite-spacing-sm) 0 var(--calcite-spacing-sm);font-size:var(--calcite-font-size-sm)}.container>*[scale=m]{padding:0 var(--calcite-spacing-md) 0 var(--calcite-spacing-md);font-size:var(--calcite-font-size-md)}.container>*[scale=l]{padding:0 var(--calcite-spacing-lg) 0 var(--calcite-spacing-lg);font-size:var(--calcite-font-size-lg)}.icon{display:flex;align-items:center;justify-content:center;min-width:var(--calcite-spacing-xxl);height:var(--calcite-spacing-xxl)}.icon span{line-height:0}.feature-icon .icon{margin-inline-start:calc(var(--calcite-spacing-lg) * -1)}.total-count{align-self:center;margin-inline:var(--calcite-spacing-xxs);line-height:initial}.item-count{display:flex;gap:.5em;align-items:center}`, D = k(L);
25
- class P extends M {
22
+ panel: "panel"
23
+ }, S = y`:host{width:100%;display:flex;height:100%;flex:1 1 0;>*{align-items:center;align-self:center;width:100%;height:100%}}.root{display:flex;flex-direction:column}calcite-flow{height:100%;width:100%}.container,.flow-item,.panel{display:flex}.flow-item{overflow:auto}.flow-item[scale=s] .container{gap:var(--calcite-spacing-sm);padding:var(--calcite-spacing-sm) 0}.flow-item[scale=m] .container{gap:var(--calcite-spacing-md);padding:var(--calcite-spacing-md) 0}.flow-item[scale=l] .container{gap:var(--calcite-spacing-lg);padding:var(--calcite-spacing-lg) 0}.container{flex-direction:column;background-color:var(--calcite-color-foreground-1)}.container>*{background-color:var(--calcite-color-foreground-1)}.container>*[scale=s]{padding:0 var(--calcite-spacing-sm) 0 var(--calcite-spacing-sm);font-size:var(--calcite-font-size-sm)}.container>*[scale=m]{padding:0 var(--calcite-spacing-md) 0 var(--calcite-spacing-md);font-size:var(--calcite-font-size-md)}.container>*[scale=l]{padding:0 var(--calcite-spacing-lg) 0 var(--calcite-spacing-lg);font-size:var(--calcite-font-size-lg)}.icon{display:flex;align-items:center;justify-content:center;min-width:var(--calcite-spacing-xxl);height:var(--calcite-spacing-xxl)}.icon span{line-height:0}.feature-icon .icon{margin-inline-start:calc(var(--calcite-spacing-lg) * -1)}calcite-chip{align-self:center;margin-inline:var(--calcite-spacing-xxs);line-height:initial}.item-count{display:flex;gap:.5em;align-items:center}`, T = L(C);
24
+ class k extends x {
26
25
  constructor() {
27
- super(...arguments), this.viewModel = D(this), this.messages = T(), this.#i = !1, this.#t = /* @__PURE__ */ new WeakSet(), this.#e = null, this.autoDestroyDisabled = !1, this.icon = "selection", this.view = this.viewModel.view, this.displayMode = "group", this.filterText = this.viewModel.filterText, this.hideFilter = !1, this.hideFilterNotice = !1, this.hideHeader = !1, this.hideItemCloseActions = !1, this.hideItemCount = !1, this.hideItemIcons = !1, this.hideItemMenus = !1, this.hideLayerFilter = !1, this.hideMenu = !1, this.hideTotalCount = !1, this.hideZoomToButton = !1, this.highlightOnHoverDisabled = !1, this.layer = this.viewModel.layer, this.maxVisibleFeatureCountPerLayer = this.viewModel.maxVisibleFeatureCountPerLayer, this.menuScale = "m", this.selectionManager = this.viewModel.selectionManager, this.visualScale = "s", this.arcgisPropertyChange = S()("state"), this.arcgisReady = F();
26
+ super(...arguments), this.viewModel = T(this), this.messages = M(), this.#i = !1, this.#t = /* @__PURE__ */ new WeakSet(), this.#e = null, this.autoDestroyDisabled = !1, this.icon = "selection", this.view = this.viewModel.view, this.displayMode = "group", this.filterText = this.viewModel.filterText, this.hideChip = !1, this.hideChipCloseButton = !1, this.hideFilter = !1, this.hideFilterNotice = !1, this.hideHeader = !1, this.hideItemCloseActions = !1, this.hideItemCount = !1, this.hideItemIcons = !1, this.hideItemMenus = !1, this.hideLayerFilter = !1, this.hideMenu = !1, this.hideZoomToButton = !1, this.highlightOnHoverDisabled = !1, this.layer = this.viewModel.layer, this.maxVisibleFeatureCountPerLayer = this.viewModel.maxVisibleFeatureCountPerLayer, this.menuScale = "m", this.selectionManager = this.viewModel.selectionManager, this.visualScale = "s", this.arcgisClear = $(), this.arcgisPropertyChange = F()("state"), this.arcgisReady = $();
28
27
  }
29
28
  static {
30
- this.properties = { hasFilterText: 16, isUpdating: 16, itemWithOpenMenu: 16, autoDestroyDisabled: 5, disabled: 5, icon: 1, label: 1, referenceElement: 1, view: 0, activeLayerItem: 32, afterListItemSelect: 0, allLayerItems: 32, count: 32, displayMode: 1, effectiveSelectionManager: 32, filterText: 1, hideFilter: 5, hideFilterNotice: 5, hideHeader: 5, hideItemCloseActions: 5, hideItemCount: 5, hideItemIcons: 5, hideItemMenus: 5, hideLayerFilter: 5, hideMenu: 5, hideTotalCount: 5, hideZoomToButton: 5, highlightOnHoverDisabled: 5, listItemActionConfigurations: 0, listItemUnavailableFunction: 0, layer: 0, layerItems: 32, maxVisibleFeatureCountExceeded: 32, maxVisibleFeatureCountPerLayer: 9, menuScale: 1, selectionManager: 0, state: 32, visibleFeatureCount: 32, visibleFeatureItems: 32, visibleLayerCount: 32, visualScale: 1 };
29
+ this.properties = { hasFilterText: 16, isUpdating: 16, itemWithOpenMenu: 16, autoDestroyDisabled: 5, disabled: 5, icon: 1, label: 1, referenceElement: 1, view: 0, activeLayerItem: 32, afterListItemSelect: 0, allLayerItems: 32, count: 32, displayMode: 1, effectiveSelectionManager: 32, filterText: 1, hideChip: 5, hideChipCloseButton: 5, hideFilter: 5, hideFilterNotice: 5, hideHeader: 5, hideItemCloseActions: 5, hideItemCount: 5, hideItemIcons: 5, hideItemMenus: 5, hideLayerFilter: 5, hideMenu: 5, hideZoomToButton: 5, highlightOnHoverDisabled: 5, listItemActionConfigurations: 0, listItemUnavailableFunction: 0, layer: 0, layerItems: 32, maxVisibleFeatureCountExceeded: 32, maxVisibleFeatureCountPerLayer: 9, menuScale: 1, selectionManager: 0, state: 32, visibleFeatureCount: 32, visibleFeatureItems: 32, visibleLayerCount: 32, visualScale: 1 };
31
30
  }
32
31
  static {
33
- this.styles = A;
32
+ this.styles = S;
34
33
  }
35
34
  #i;
36
35
  #t;
@@ -113,7 +112,7 @@ class P extends M {
113
112
  }
114
113
  connectedCallback() {
115
114
  super.connectedCallback(), this.#e = new IntersectionObserver((e, t) => {
116
- const { messages: a } = this;
115
+ const { messages: s } = this;
117
116
  e.forEach((i) => {
118
117
  if (!i.isIntersecting)
119
118
  return;
@@ -122,22 +121,35 @@ class P extends M {
122
121
  t.unobserve(l);
123
122
  return;
124
123
  }
125
- const d = l.getAttribute("data-thumbnail-key"), o = d ? this._getFeatureItemByThumbnailKey(d) : void 0;
126
- if (!o)
124
+ const d = l.getAttribute("data-thumbnail-key"), r = d ? this._getFeatureItemByThumbnailKey(d) : void 0;
125
+ if (!r)
127
126
  return;
128
127
  this.#t.add(l);
129
- const m = o.title && a.previewTemplateAriaLabel ? v(a.previewTemplateAriaLabel, { label: o.title }) : a.preview;
130
- if (o.thumbnail) {
131
- l.appendChild(o.thumbnail);
128
+ const m = r.title && s.previewTemplateAriaLabel ? u(s.previewTemplateAriaLabel, { label: r.title }) : s.preview;
129
+ if (r.thumbnail) {
130
+ l.appendChild(r.thumbnail);
132
131
  return;
133
132
  }
134
- o.fetchThumbnail({ ariaLabel: m }).then((h) => h && l.appendChild(h)).catch(() => this.#t.delete(l));
133
+ r.fetchThumbnail({ ariaLabel: m }).then((g) => g && l.appendChild(g)).catch(() => this.#t.delete(l));
135
134
  });
136
135
  });
137
136
  }
138
137
  disconnectedCallback() {
139
138
  super.disconnectedCallback(), this.#e?.disconnect();
140
139
  }
140
+ _isDropdownItemVisible(e, t) {
141
+ const { hidden: s, type: i } = t;
142
+ return (typeof s == "function" ? s({ item: e }) : s) ? !1 : !!(!i || i === "feature" && f(e) || i === "layer" && v(e) || i === "group" && b(e));
143
+ }
144
+ _handleClearSelection() {
145
+ this.clear(), this.arcgisClear.emit();
146
+ }
147
+ _onFeatureItemBlur() {
148
+ this.highlightOnHoverDisabled || this.viewModel.removeTemporaryHighlight();
149
+ }
150
+ _onFeatureItemFocus(e) {
151
+ this.highlightOnHoverDisabled || this.viewModel.addTemporaryHighlight(e);
152
+ }
141
153
  _closeItemMenu(e) {
142
154
  (!e || e === this.itemWithOpenMenu) && (this.itemWithOpenMenu = void 0);
143
155
  }
@@ -156,73 +168,77 @@ class P extends M {
156
168
  _afterListItemSelect(e, t) {
157
169
  t.stopPropagation(), this._closeItemMenu(), this.afterListItemSelect?.({ item: e });
158
170
  }
171
+ _getTooltipForChip(e) {
172
+ const { messages: t } = this;
173
+ return !t?.selectionCount || !t?.clearSelectionCount ? "" : this.hideChipCloseButton ? u(t.selectionCount, { count: e }) : u(t.clearSelectionCount, { count: e });
174
+ }
159
175
  #o() {
160
- if (this.hideTotalCount || this.hideHeader)
176
+ if (this.hideChip || this.hideHeader)
161
177
  return;
162
- const { count: e, messages: t } = this, a = g(e), i = t.selectionCount ? v(t.selectionCount, { count: a }) : void 0;
163
- return s`<calcite-chip appearance=outline class=${r(c.totalCount)} .closable=${e > 0} .closed=${e === 0} .disabled=${this.disabled} .icon=${this.maxVisibleFeatureCountExceeded ? "exclamation-mark-triangle" : void 0} .label=${a} .scale=${this.visualScale} slot=header-actions-end title=${i ?? u} @calciteChipClose=${this.clear}>${a}</calcite-chip>`;
178
+ const { count: e } = this, t = p(e), s = !this.hideChipCloseButton && e > 0;
179
+ return a`<calcite-chip appearance=outline .closable=${s} .closed=${e === 0} .disabled=${this.disabled} .icon=${this.maxVisibleFeatureCountExceeded ? "exclamation-mark-triangle" : void 0} .label=${t} .scale=${this.visualScale} slot=header-actions-end title=${this._getTooltipForChip(e) ?? h} @calciteChipClose=${this._handleClearSelection}>${t}</calcite-chip>`;
164
180
  }
165
- #c() {
181
+ #r() {
166
182
  if (this.hideHeader || this.hideMenu)
167
183
  return;
168
- const { menuScale: e, messages: t } = this, a = this.disabled || this.count === 0;
184
+ const { menuScale: e, messages: t } = this, s = this.disabled || this.count === 0;
169
185
  return [
170
- s`<calcite-action .disabled=${a} icon=reset .scale=${e} slot=header-menu-actions .text=${t.clear ?? ""} text-enabled @click=${this.clear}></calcite-action>`,
171
- s`<calcite-action .disabled=${a} icon=folders .scale=${e} slot=header-menu-actions .text=${t.collapseAll ?? ""} text-enabled @click=${this.collapseAll}></calcite-action>`
186
+ a`<calcite-action .disabled=${s} icon=reset .scale=${e} slot=header-menu-actions .text=${t.clear ?? ""} text-enabled @click=${this.clear}></calcite-action>`,
187
+ a`<calcite-action .disabled=${s} icon=folders .scale=${e} slot=header-menu-actions .text=${t.collapseAll ?? ""} text-enabled @click=${this.collapseAll}></calcite-action>`
172
188
  ];
173
189
  }
174
- #r() {
190
+ #c() {
175
191
  const { layerItems: e, messages: t } = this;
176
192
  if (this.count === 0 || e.length < 2 || this.hideLayerFilter)
177
193
  return;
178
- const a = t.allLayersCount ? v(t.allLayersCount, { count: e.length }) : "";
179
- return s`<calcite-combobox class=${r(c.layerDropdown)} .disabled=${this.disabled} .label=${t.filterByLayer ?? ""} overlay-positioning=fixed .placeholder=${t.filterByLayer} .scale=${this.visualScale} selection-mode=single-persist @calciteComboboxChange=${({ currentTarget: i }) => {
194
+ const s = t.allLayersCount ? u(t.allLayersCount, { count: e.length }) : "";
195
+ return a`<calcite-combobox class=${c(o.layerDropdown)} .disabled=${this.disabled} .label=${t.filterByLayer ?? ""} overlay-positioning=fixed .placeholder=${t.filterByLayer} .scale=${this.visualScale} selection-mode=single-persist @calciteComboboxChange=${({ currentTarget: i }) => {
180
196
  this.filterText = void 0;
181
197
  const l = i.selectedItems[0]?.value ?? void 0;
182
198
  this.layer = l === "all-layers" ? void 0 : l;
183
- }}>${n("all-layers", s`<calcite-combobox-item .heading=${a} icon=layers .selected=${this.layer == null} value=all-layers></calcite-combobox-item>`)}${this.layerItems.map((i) => this.#h(i))}</calcite-combobox>`;
199
+ }}>${n("all-layers", a`<calcite-combobox-item .heading=${s} icon=layers .selected=${this.layer == null} value=all-layers></calcite-combobox-item>`)}${this.layerItems.map((i) => this.#h(i))}</calcite-combobox>`;
184
200
  }
185
201
  #d() {
186
202
  if (!(this.hideFilter || this.count === 0))
187
- return s`<calcite-input clearable .disabled=${this.disabled} icon=search .placeholder=${this.messages.filter} .scale=${this.visualScale} .value=${this.filterText} @calciteInputInput=${({ target: { value: e } }) => {
203
+ return a`<calcite-input clearable .disabled=${this.disabled} icon=search .placeholder=${this.messages.filter} .scale=${this.visualScale} .value=${this.filterText} @calciteInputInput=${({ target: { value: e } }) => {
188
204
  this.filterText = e;
189
205
  }}></calcite-input>`;
190
206
  }
191
207
  #h(e) {
192
208
  const t = e.title || this.messages?.untitledLayer || "";
193
- return n(e.key, s`<calcite-combobox-item .heading=${t} .icon=${e.iconName} .selected=${e.layer === this.layer} .value=${e.layer}></calcite-combobox-item>`);
209
+ return n(e.key, a`<calcite-combobox-item .heading=${t} .icon=${e.iconName} .selected=${e.layer === this.layer} .value=${e.layer}></calcite-combobox-item>`);
194
210
  }
195
211
  #u() {
196
212
  const { messages: e } = this;
197
213
  if (this.visibleFeatureCount !== 0)
198
- return s`<calcite-list .disabled=${this.disabled} display-mode=nested interaction-mode=interactive .label=${e.componentLabel ?? ""} .loading=${this.isUpdating} .scale=${this.visualScale} selection-mode=none>${this.#s(this.allLayerItems)}</calcite-list>`;
214
+ return a`<calcite-list .disabled=${this.disabled} display-mode=nested interaction-mode=interactive .label=${e.componentLabel ?? ""} .loading=${this.isUpdating} .scale=${this.visualScale} selection-mode=none>${this.#s(this.allLayerItems)}</calcite-list>`;
199
215
  }
200
216
  #s(e) {
201
- return this.activeLayerItem ? this.#l(this.activeLayerItem) : e.map((t) => b(t) ? this.#v(t) : I(t) ? this.#l(t) : null).filter((t) => t != null);
217
+ return this.activeLayerItem ? this.#l(this.activeLayerItem) : e.map((t) => b(t) ? this.#v(t) : v(t) ? this.#l(t) : null).filter((t) => t != null);
202
218
  }
203
219
  #m() {
204
220
  if (!(this.disabled || this.visibleFeatureCount > 0 || this.hideFilter || this.hideFilterNotice))
205
- return s`<calcite-notice class=${r(c.notice)} icon=exclamation-mark-triangle kind=info open .scale=${this.visualScale} width=full><div slot=message>${this.messages.noMatchingFeatures}</div></calcite-notice>`;
221
+ return a`<calcite-notice class=${c(o.notice)} icon=exclamation-mark-triangle kind=info open .scale=${this.visualScale} width=full><div slot=message>${this.messages.noMatchingFeatures}</div></calcite-notice>`;
206
222
  }
207
223
  #p(e) {
208
224
  if (this.hideItemCount)
209
225
  return;
210
- const { messages: t } = this, a = g(e.total), i = g(e.visibleTotal), l = t.selectionCount ? v(t.selectionCount, { count: a }) : void 0;
211
- return !this.hasFilterText && e.maxVisibleFeatureCountExceeded ? s`<span class=${r(c.itemCount)} slot=content-end title=${l ?? u}><calcite-icon icon=exclamation-mark-triangle scale=s title=${t.tooManyFeatures ?? u}></calcite-icon>${`${g(this.maxVisibleFeatureCountPerLayer)}+`}</span>` : s`<span class=${r(c.itemCount)} slot=content-end title=${l ?? u}>${i}</span>`;
226
+ const { messages: t } = this, s = p(e.total), i = p(e.visibleTotal), l = t.selectionCount ? u(t.selectionCount, { count: s }) : void 0;
227
+ return !this.hasFilterText && e.maxVisibleFeatureCountExceeded ? a`<span class=${c(o.itemCount)} slot=content-end title=${l ?? h}><calcite-icon icon=exclamation-mark-triangle scale=s title=${t.tooManyFeatures ?? h}></calcite-icon>${`${p(this.maxVisibleFeatureCountPerLayer)}+`}</span>` : a`<span class=${c(o.itemCount)} slot=content-end title=${l ?? h}>${i}</span>`;
212
228
  }
213
229
  #a(e) {
214
230
  if (this.hideItemMenus)
215
231
  return;
216
- const { messages: t } = this, a = this.itemWithOpenMenu === e, i = C(e), l = I(e), d = b(e), o = i ? t.deselectFeature : l ? t.deselectLayer : t.deselectGroup;
232
+ const { messages: t } = this, s = this.itemWithOpenMenu === e, i = f(e), l = i ? t.deselectFeature : v(e) ? t.deselectLayer : t.deselectGroup;
217
233
  return [
218
- n("dropdown", s`<calcite-dropdown .open=${a} overlay-positioning=fixed placement=bottom-end .scale=${this.menuScale} slot=actions-end width=m @calciteDropdownClose=${() => this._closeItemMenu(e)} @calciteDropdownOpen=${() => {
234
+ n("dropdown", a`<calcite-dropdown .open=${s} overlay-positioning=fixed placement=bottom-end .scale=${this.menuScale} slot=actions-end width=m @calciteDropdownClose=${() => this._closeItemMenu(e)} @calciteDropdownOpen=${() => {
219
235
  this.itemWithOpenMenu = e;
220
- }}>${n("action", s`<calcite-action icon=ellipsis .scale=${this.visualScale} slot=trigger .text=${t.menu ?? ""}></calcite-action>`)}${// Only render menu-items for open menu(s) to reduce
236
+ }}>${n("action", a`<calcite-action icon=ellipsis .scale=${this.visualScale} slot=trigger .text=${t.menu ?? ""}></calcite-action>`)}${// Only render menu-items for open menu(s) to reduce
221
237
  // the total number of list item elements in the DOM at any time.
222
- a ? n("dropdown-group", s`<calcite-dropdown-group selection-mode=none>${this.hideZoomToButton ? void 0 : n("zoom-to", s`<calcite-dropdown-item icon-start=layer-zoom-to @calciteDropdownItemSelect=${() => this.goToItem(e)}>${t.zoomTo}</calcite-dropdown-item>`)}${n("select-single", s`<calcite-dropdown-item icon-start=selection-filter @calciteDropdownItemSelect=${() => this.selectItem(e)}>${i ? t.onlySelectFeature : t.onlySelectThis}</calcite-dropdown-item>`)}${n("clear-selection", s`<calcite-dropdown-item icon-start=selection-x @calciteDropdownItemSelect=${() => this.deselectItem(e)}>${o}</calcite-dropdown-item>`)}${this.listItemActionConfigurations?.map((m) => {
223
- const { disabled: h, hidden: f, label: $, type: p } = m;
224
- if (!(typeof f == "function" ? f({ item: e }) : !!f) && (!p || p === "feature" && i || p === "layer" && l || p === "group" && d))
225
- return n(`custom-action-${$}`, s`<calcite-dropdown-item .disabled=${typeof h == "function" ? h({ item: e }) : !!h} .iconStart=${m.icon ?? void 0} @calciteDropdownItemSelect=${() => m.callback({ item: e })}>${$}</calcite-dropdown-item>`);
238
+ s ? n("dropdown-group", a`<calcite-dropdown-group selection-mode=none>${this.hideZoomToButton ? void 0 : n("zoom-to", a`<calcite-dropdown-item icon-start=layer-zoom-to @calciteDropdownItemSelect=${() => this.goToItem(e)}>${t.zoomTo}</calcite-dropdown-item>`)}${n("select-single", a`<calcite-dropdown-item icon-start=selection-filter @calciteDropdownItemSelect=${() => this.selectItem(e)}>${i ? t.onlySelectFeature : t.onlySelectThis}</calcite-dropdown-item>`)}${n("clear-selection", a`<calcite-dropdown-item icon-start=selection-x @calciteDropdownItemSelect=${() => this.deselectItem(e)}>${l}</calcite-dropdown-item>`)}${this.listItemActionConfigurations?.map((d) => {
239
+ const { disabled: r, label: m } = d;
240
+ if (this._isDropdownItemVisible(e, d))
241
+ return n(`custom-action-${m}`, a`<calcite-dropdown-item .disabled=${typeof r == "function" ? r({ item: e }) : !!r} .iconStart=${d.icon ?? void 0} @calciteDropdownItemSelect=${() => d.callback({ item: e })}>${m}</calcite-dropdown-item>`);
226
242
  })}</calcite-dropdown-group>`) : void 0}</calcite-dropdown>`)
227
243
  ];
228
244
  }
@@ -230,8 +246,8 @@ class P extends M {
230
246
  const t = e.title || this.messages.untitledLayer;
231
247
  if (e.visibleTotal === 0)
232
248
  return;
233
- const { displayMode: a } = this;
234
- return a === "layer" || a === "feature" ? this.#s(e.items) : n(e.key, s`<calcite-list-item .closable=${!this.hideItemCloseActions} .expanded=${e.expanded} .iconStart=${this.hideItemIcons ? void 0 : e.iconName} .label=${t} .unavailable=${this._isItemUnavailable(e)} .value=${e.title} @calciteListItemCollapse=${(i) => {
249
+ const { displayMode: s } = this;
250
+ return s === "layer" || s === "feature" ? this.#s(e.items) : n(e.key, a`<calcite-list-item .closable=${!this.hideItemCloseActions} .expanded=${e.expanded} .iconStart=${this.hideItemIcons ? void 0 : e.iconName} .label=${t} .unavailable=${this._isItemUnavailable(e)} .value=${e.title} @calciteListItemCollapse=${(i) => {
235
251
  i.stopPropagation(), e.expanded = !1;
236
252
  }} @calciteListItemClose=${(i) => {
237
253
  i.stopPropagation(), this.deselectItem(e);
@@ -244,14 +260,14 @@ class P extends M {
244
260
  return;
245
261
  if (this.displayMode === "feature")
246
262
  return this.#n(e.featureItems);
247
- const { messages: t } = this, a = e.title || t.untitledLayer;
248
- return n(e.key, s`<calcite-list-item .closable=${!this.hideItemCloseActions} .expanded=${e.expanded} .iconStart=${this.hideItemIcons ? void 0 : e.iconName} .label=${a} title=${(e.layerIsVisible ? void 0 : t.layerIsNotVisible) ?? u} .unavailable=${this._isItemUnavailable(e)} .value=${e.title} @calciteListItemCollapse=${(i) => {
263
+ const { messages: t } = this, s = e.title || t.untitledLayer;
264
+ return n(e.key, a`<calcite-list-item .closable=${!this.hideItemCloseActions} .expanded=${e.expanded} .iconStart=${this.hideItemIcons ? void 0 : e.iconName} .label=${s} title=${(e.layerIsVisible ? void 0 : t.layerIsNotVisible) ?? h} .unavailable=${this._isItemUnavailable(e)} .value=${e.title} @calciteListItemCollapse=${(i) => {
249
265
  i.stopPropagation(), e.expanded = !1;
250
266
  }} @calciteListItemClose=${(i) => {
251
267
  i.stopPropagation(), this.deselectItem(e);
252
268
  }} @calciteListItemExpand=${(i) => {
253
269
  i.stopPropagation(), e.expanded = !0;
254
- }} @calciteListItemSelect=${(i) => this._afterListItemSelect(e, i)}>${this.#p(e)}${this.#a(e)}${this.#n(e.featureItems)}${e.maxVisibleFeatureCountExceeded ? s`<calcite-notice class=${r(c.notice)} icon=exclamation-mark-triangle kind=info open .scale=${this.visualScale}><div slot=message>${t.tooManyFeatures}</div></calcite-notice>` : void 0}</calcite-list-item>`);
270
+ }} @calciteListItemSelect=${(i) => this._afterListItemSelect(e, i)}>${this.#p(e)}${this.#a(e)}${this.#n(e.featureItems)}${e.maxVisibleFeatureCountExceeded ? a`<calcite-notice class=${c(o.notice)} icon=exclamation-mark-triangle kind=info open .scale=${this.visualScale}><div slot=message>${t.tooManyFeatures}</div></calcite-notice>` : void 0}</calcite-list-item>`);
255
271
  }
256
272
  #n(e) {
257
273
  return e.map((t) => this.#g(t));
@@ -259,21 +275,21 @@ class P extends M {
259
275
  #g(e) {
260
276
  if (!e.visible)
261
277
  return;
262
- const { highlightOnHoverDisabled: t, messages: a, viewModel: i } = this, l = e.title || a.untitledFeature, d = !this.hideItemIcons && this.displayMode !== "feature";
263
- return n(e.key, s`<calcite-list-item class=${r(d ? c.listItemFeatureIcon : c.listItemFeature)} .closable=${!this.hideItemCloseActions} .label=${l} .unavailable=${this._isItemUnavailable(e)} .value=${l} @blur=${t ? void 0 : () => i.removeTemporaryHighlight()} @calciteListItemClose=${(o) => {
264
- o.stopPropagation(), this.deselectItem(e);
265
- }} @calciteListItemSelect=${(o) => this._afterListItemSelect(e, o)} @focus=${t ? void 0 : () => i.addTemporaryHighlight(e)} @pointerenter=${t ? void 0 : () => i.addTemporaryHighlight(e)} @pointerleave=${t ? void 0 : () => i.removeTemporaryHighlight()}>${this.#f(e)}${this.#a(e)}</calcite-list-item>`);
278
+ const { messages: t } = this, s = e.title || t.untitledFeature, i = !this.hideItemIcons && this.displayMode !== "feature";
279
+ return n(e.key, a`<calcite-list-item class=${c(i ? o.listItemFeatureIcon : o.listItemFeature)} .closable=${!this.hideItemCloseActions} .label=${s} .unavailable=${this._isItemUnavailable(e)} .value=${s} @blur=${this._onFeatureItemBlur} @calciteListItemClose=${(l) => {
280
+ l.stopPropagation(), this.deselectItem(e);
281
+ }} @calciteListItemSelect=${(l) => this._afterListItemSelect(e, l)} @focus=${this._onFeatureItemFocus.bind(this, e)} @pointerenter=${this._onFeatureItemFocus.bind(this, e)} @pointerleave=${this._onFeatureItemBlur}>${this.#f(e)}${this.#a(e)}</calcite-list-item>`);
266
282
  }
267
283
  #f(e) {
268
284
  if (!this.hideItemIcons)
269
- return n("thumbnail-container", s`<div class=${r(c.listItemIcon)} slot=content-start>${n(e.thumbnailKey, s`<span data-thumbnail-key=${e.thumbnailKey ?? u} ${x(this._makeObserverRef())}></span>`)}</div>`);
285
+ return n("thumbnail-container", a`<div class=${c(o.listItemIcon)} slot=content-start>${n(e.thumbnailKey, a`<span data-thumbnail-key=${e.thumbnailKey ?? h} ${w(this._makeObserverRef())}></span>`)}</div>`);
270
286
  }
271
287
  render() {
272
288
  const e = this.hideHeader ? void 0 : this.el.title || this.messages.selection;
273
- return s`<div><calcite-flow><calcite-flow-item class=${r(c.flowItem)} .heading=${e} .loading=${this.state === "loading"} overlay-positioning=fixed .scale=${this.visualScale} selected><calcite-panel class=${r(c.panel)} .disabled=${this.disabled} overlay-positioning=fixed .scale=${this.visualScale}><div class=${r(c.container)}>${this.#r()}${this.#d()}${this.#u()}${this.#m()}</div></calcite-panel>${this.#o()}${this.#c()}</calcite-flow-item></calcite-flow></div>`;
289
+ return a`<div><calcite-flow><calcite-flow-item class=${c(o.flowItem)} .heading=${e} .loading=${this.state === "loading"} overlay-positioning=fixed .scale=${this.visualScale} selected><calcite-panel class=${c(o.panel)} .disabled=${this.disabled} overlay-positioning=fixed .scale=${this.visualScale}><div class=${c(o.container)}>${this.#c()}${this.#d()}${this.#u()}${this.#m()}</div></calcite-panel>${this.#o()}${this.#r()}</calcite-flow-item></calcite-flow></div>`;
274
290
  }
275
291
  }
276
- y("arcgis-selection-list", P);
292
+ I("arcgis-selection-list", k);
277
293
  export {
278
- P as ArcgisSelectionList
294
+ k as ArcgisSelectionList
279
295
  };
@@ -76,6 +76,12 @@ export abstract class ArcgisSelectionToolbar extends LitElement {
76
76
  * @since 5.2
77
77
  */
78
78
  accessor defaultPointToolOptions: SelectionOperationProperties;
79
+ /**
80
+ * The default configuration for the polygon tool.
81
+ *
82
+ * @since 5.2
83
+ */
84
+ accessor defaultPolygonToolOptions: SelectionOperationProperties;
79
85
  /**
80
86
  * The default configuration for the rectangle tool.
81
87
  *
@@ -108,6 +114,14 @@ export abstract class ArcgisSelectionToolbar extends LitElement {
108
114
  * @since 5.2
109
115
  */
110
116
  accessor hideChip: boolean;
117
+ /**
118
+ * Indicates whether the 'close' button on the selection count chip should be hidden.
119
+ * The 'close' button allows users to clear the current selection.
120
+ *
121
+ * @default false
122
+ * @since 5.2
123
+ */
124
+ accessor hideChipCloseButton: boolean;
111
125
  /**
112
126
  * Indicates whether the lasso tool should be hidden. The lasso tool allows for freehand selection of features.
113
127
  *
@@ -140,6 +154,14 @@ export abstract class ArcgisSelectionToolbar extends LitElement {
140
154
  * @since 5.2
141
155
  */
142
156
  accessor hidePointTool: boolean;
157
+ /**
158
+ * Indicates whether the polygon tool should be hidden. The polygon tool allows for selecting features
159
+ * by drawing a polygon.
160
+ *
161
+ * @default false
162
+ * @since 5.2
163
+ */
164
+ accessor hidePolygonTool: boolean;
143
165
  /**
144
166
  * Indicates whether the progress indicator should be hidden.
145
167
  *
@@ -197,6 +219,7 @@ export abstract class ArcgisSelectionToolbar extends LitElement {
197
219
  countTruncated: string;
198
220
  lasso: string;
199
221
  pan: string;
222
+ polygon: string;
200
223
  point: string;
201
224
  processing: string;
202
225
  rectangle: string;
@@ -206,8 +229,10 @@ export abstract class ArcgisSelectionToolbar extends LitElement {
206
229
  replaceSelection: string;
207
230
  selectFeatures: string;
208
231
  selectByLasso: string;
232
+ selectByPolygon: string;
209
233
  selectByPoint: string;
210
234
  selectByRectangle: string;
235
+ selectionCount: string;
211
236
  }> & T9nMeta<{
212
237
  componentLabel: string;
213
238
  add: string;
@@ -217,6 +242,7 @@ export abstract class ArcgisSelectionToolbar extends LitElement {
217
242
  countTruncated: string;
218
243
  lasso: string;
219
244
  pan: string;
245
+ polygon: string;
220
246
  point: string;
221
247
  processing: string;
222
248
  rectangle: string;
@@ -226,8 +252,10 @@ export abstract class ArcgisSelectionToolbar extends LitElement {
226
252
  replaceSelection: string;
227
253
  selectFeatures: string;
228
254
  selectByLasso: string;
255
+ selectByPolygon: string;
229
256
  selectByPoint: string;
230
257
  selectByRectangle: string;
258
+ selectionCount: string;
231
259
  }>;
232
260
  /**
233
261
  * By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.
@@ -422,7 +450,17 @@ export abstract class ArcgisSelectionToolbar extends LitElement {
422
450
  */
423
451
  readonly arcgisBeforeActivate: import("@arcgis/lumina").TargetedEvent<this, SelectionToolbarViewModelEvents["before-activate"]>;
424
452
  /**
425
- * Fires when the [selection operation](/references/core/views/selection/SelectionOperation/) is complete and results have been processed.
453
+ * Fires when the active selection is cleared via the close button on the selection count chip.
454
+ * This event does not fire when the selection is cleared programmatically, or when the selection is
455
+ * cleared by a different component. For more information about selection changes, use the
456
+ * 'selection-change' event emitted by the associated [selection manager](/references/core/views/SelectionManager/).
457
+ *
458
+ * @since 5.2
459
+ */
460
+ readonly arcgisClear: import("@arcgis/lumina").TargetedEvent<this, void>;
461
+ /**
462
+ * Fires when the [selection operation](/references/core/views/selection/SelectionOperation/) is complete
463
+ * or canceled and results have been processed.
426
464
  *
427
465
  * @since 5.2
428
466
  * @example
@@ -446,7 +484,8 @@ export abstract class ArcgisSelectionToolbar extends LitElement {
446
484
  readonly arcgisReady: import("@arcgis/lumina").TargetedEvent<this, void>;
447
485
  /**
448
486
  * Fires when the potential selection set changes while drawing. This event will not fire unless
449
- * the [syncWhileDrawing](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-selection-toolbar/#syncWhileDrawing) property is set to `true`. For the final selection set, use the [complete ](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-selection-toolbar/#event-arcgisComplete) event.
487
+ * the [syncWhileDrawing](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-selection-toolbar/#syncWhileDrawing) property is set to `true`. For the final selection set, use the [complete ](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-selection-toolbar/#event-arcgisComplete) event
488
+ * or refer to the associated [selection manager](/references/core/views/SelectionManager/).
450
489
  *
451
490
  * @since 5.2
452
491
  * @example
@@ -465,6 +504,7 @@ export abstract class ArcgisSelectionToolbar extends LitElement {
465
504
  readonly arcgisSelectionChange: import("@arcgis/lumina").TargetedEvent<this, SelectionToolbarViewModelEvents["selection-change"]>;
466
505
  readonly "@eventTypes": {
467
506
  arcgisBeforeActivate: ArcgisSelectionToolbar["arcgisBeforeActivate"]["detail"];
507
+ arcgisClear: ArcgisSelectionToolbar["arcgisClear"]["detail"];
468
508
  arcgisComplete: ArcgisSelectionToolbar["arcgisComplete"]["detail"];
469
509
  arcgisPropertyChange: ArcgisSelectionToolbar["arcgisPropertyChange"]["detail"];
470
510
  arcgisReady: ArcgisSelectionToolbar["arcgisReady"]["detail"];
@@ -1,28 +1,28 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as g } from "../../chunks/runtime.js";
3
- import { css as v, html as a } from "lit";
4
- import { keyed as h } from "lit/directives/keyed.js";
5
- import { substitute as p, formatNumber as m } from "@arcgis/core/intl.js";
6
- import T from "@arcgis/core/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js";
7
- import { LitElement as b, createEvent as y, nothing as r } from "@arcgis/lumina";
2
+ import { c as v } from "../../chunks/runtime.js";
3
+ import { css as T, html as s } from "lit";
4
+ import { keyed as p } from "lit/directives/keyed.js";
5
+ import { substitute as h, formatNumber as y } from "@arcgis/core/intl.js";
6
+ import m from "@arcgis/core/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js";
7
+ import { LitElement as b, createEvent as u, nothing as a } from "@arcgis/lumina";
8
8
  import { usePropertyChange as w } from "@arcgis/lumina/controllers";
9
9
  import { reEmitEvent as d } from "@arcgis/lumina-toolkit/reEmitEvent";
10
10
  import { u as M } from "../../chunks/useT9n.js";
11
11
  import { m as O } from "../../chunks/useViewModel.js";
12
- const S = v`:host{width:100%;display:flex;>*{align-items:center;align-self:center;height:100%;width:100%}}.root{display:flex;flex-direction:column}calcite-action-bar[layout=horizontal]{width:100%;calcite-chip{margin-inline-start:auto}}calcite-action-bar[layout=vertical]{height:100%;calcite-chip{margin-block-start:auto}}calcite-action-bar slot{align-items:center}calcite-dropdown:has(calcite-action:not([text-enabled])){align-self:center}calcite-action:not([text-enabled]){align-self:center}calcite-chip{display:flex;align-self:center;line-height:initial}calcite-dropdown{calcite-icon{margin-inline-start:var(--calcite-space-2xs)}}calcite-chip[closed]{display:inline-flex}calcite-progress{--calcite-progress-background-color: transparent}`, u = {
12
+ const C = T`:host{width:100%;display:flex;>*{align-items:center;align-self:center;height:100%;width:100%}}.root{display:flex;flex-direction:column}calcite-action-bar[layout=horizontal]{width:100%;calcite-chip{margin-inline-start:auto}}calcite-action-bar[layout=vertical]{height:100%;calcite-chip{margin-block-start:auto}}calcite-action-bar slot{align-items:center}calcite-dropdown:has(calcite-action:not([text-enabled])){align-self:center}calcite-action:not([text-enabled]){align-self:center}calcite-chip{display:flex;align-self:center;line-height:initial}calcite-dropdown{calcite-icon{margin-inline-start:var(--calcite-space-2xs)}}calcite-chip[closed]{display:inline-flex}calcite-progress{--calcite-progress-background-color: transparent}`, g = {
13
13
  replace: "overwrite-features",
14
14
  add: "cursor-plus",
15
15
  remove: "cursor-minus"
16
- }, $ = O(T);
17
- class D extends b {
16
+ }, S = O(m);
17
+ class $ extends b {
18
18
  constructor() {
19
- super(...arguments), this.viewModel = $(this), this.messages = M(), this.autoDestroyDisabled = !1, this.disabled = !1, this.icon = "selection-set", this.view = this.viewModel.view, this.activeOperation = this.viewModel.activeOperation, this.availableOperationTypes = ["replace", "add", "remove"], this.continuousSelectionEnabled = this.viewModel.continuousSelectionEnabled, this.defaultLassoToolOptions = this.viewModel.defaultLassoToolOptions, this.defaultOperationType = this.viewModel.defaultOperationType, this.defaultPointToolOptions = this.viewModel.defaultPointToolOptions, this.defaultRectangleToolOptions = this.viewModel.defaultRectangleToolOptions, this.effectiveSelectionManager = this.viewModel.effectiveSelectionManager, this.effectiveSources = this.viewModel.effectiveSources, this.hideChip = !1, this.hideLassoTool = !1, this.hideOperationTypeControls = !1, this.hidePanTool = !1, this.hidePointTool = !1, this.hideProgress = !1, this.hideRectangleTool = !1, this.layout = "horizontal", this.returnFeatureTitleFields = this.viewModel.returnFeatureTitleFields, this.selectionManager = this.viewModel.selectionManager, this.showTextLabels = !1, this.sources = this.viewModel.sources, this.toolConfigs = this.viewModel.toolConfigs, this.visualScale = "m", this.arcgisBeforeActivate = d(() => this.viewModel, "before-activate"), this.arcgisComplete = d(() => this.viewModel, "complete"), this.arcgisPropertyChange = w()("activeOperation", "state"), this.arcgisReady = y(), this.arcgisSelectionChange = d(() => this.viewModel, "selection-change");
19
+ super(...arguments), this.viewModel = S(this), this.messages = M(), this.autoDestroyDisabled = !1, this.disabled = !1, this.icon = "selection-set", this.view = this.viewModel.view, this.activeOperation = this.viewModel.activeOperation, this.availableOperationTypes = ["replace", "add", "remove"], this.continuousSelectionEnabled = this.viewModel.continuousSelectionEnabled, this.defaultLassoToolOptions = this.viewModel.defaultLassoToolOptions, this.defaultOperationType = this.viewModel.defaultOperationType, this.defaultPolygonToolOptions = this.viewModel.defaultPolygonToolOptions, this.defaultPointToolOptions = this.viewModel.defaultPointToolOptions, this.defaultRectangleToolOptions = this.viewModel.defaultRectangleToolOptions, this.effectiveSelectionManager = this.viewModel.effectiveSelectionManager, this.effectiveSources = this.viewModel.effectiveSources, this.hideChip = !1, this.hideChipCloseButton = !1, this.hideLassoTool = !1, this.hideOperationTypeControls = !1, this.hidePanTool = !1, this.hidePolygonTool = !1, this.hidePointTool = !1, this.hideProgress = !1, this.hideRectangleTool = !1, this.layout = "horizontal", this.returnFeatureTitleFields = this.viewModel.returnFeatureTitleFields, this.selectionManager = this.viewModel.selectionManager, this.showTextLabels = !1, this.sources = this.viewModel.sources, this.toolConfigs = this.viewModel.toolConfigs, this.visualScale = "m", this.arcgisBeforeActivate = d(() => this.viewModel, "before-activate"), this.arcgisClear = u(), this.arcgisComplete = d(() => this.viewModel, "complete"), this.arcgisPropertyChange = w()("activeOperation", "state"), this.arcgisReady = u(), this.arcgisSelectionChange = d(() => this.viewModel, "selection-change");
20
20
  }
21
21
  static {
22
- this.properties = { _effectiveDisabled: 16, _effectiveOperationType: 16, _processing: 16, autoDestroyDisabled: 5, disabled: 7, icon: 1, label: 1, referenceElement: 1, view: 0, activeOperation: 32, availableOperationTypes: 0, continuousSelectionEnabled: 5, defaultLassoToolOptions: 0, defaultOperationType: 1, defaultPointToolOptions: 0, defaultRectangleToolOptions: 0, effectiveSelectionManager: 32, effectiveSources: 32, hideChip: 5, hideLassoTool: 5, hideOperationTypeControls: 5, hidePanTool: 5, hidePointTool: 5, hideProgress: 5, hideRectangleTool: 5, layerViewPreferenceDisabled: 5, layout: 1, returnFeatureTitleFields: 5, returnGeometryDisabled: 5, selectionManager: 0, showTextLabels: 5, sources: 0, state: 32, syncResultsDisabled: 5, syncWhileDrawing: 5, toolConfigs: 0, visualScale: 1 };
22
+ this.properties = { _effectiveDisabled: 16, _effectiveOperationType: 16, _processing: 16, autoDestroyDisabled: 5, disabled: 7, icon: 1, label: 1, referenceElement: 1, view: 0, activeOperation: 32, availableOperationTypes: 0, continuousSelectionEnabled: 5, defaultLassoToolOptions: 0, defaultOperationType: 1, defaultPolygonToolOptions: 0, defaultPointToolOptions: 0, defaultRectangleToolOptions: 0, effectiveSelectionManager: 32, effectiveSources: 32, hideChip: 5, hideChipCloseButton: 5, hideLassoTool: 5, hideOperationTypeControls: 5, hidePanTool: 5, hidePolygonTool: 5, hidePointTool: 5, hideProgress: 5, hideRectangleTool: 5, layerViewPreferenceDisabled: 5, layout: 1, returnFeatureTitleFields: 5, returnGeometryDisabled: 5, selectionManager: 0, showTextLabels: 5, sources: 0, state: 32, syncResultsDisabled: 5, syncWhileDrawing: 5, toolConfigs: 0, visualScale: 1 };
23
23
  }
24
24
  static {
25
- this.styles = S;
25
+ this.styles = C;
26
26
  }
27
27
  get _effectiveDisabled() {
28
28
  return this.disabled || this.state === "disabled";
@@ -81,6 +81,9 @@ class D extends b {
81
81
  if (!this._effectiveDisabled)
82
82
  return this.viewModel.toggleTool(e);
83
83
  }
84
+ _handleClearSelection() {
85
+ this.effectiveSelectionManager?.clear(), this.arcgisClear.emit();
86
+ }
84
87
  _getLabelForSelectionOperationType(e) {
85
88
  const { messages: t } = this;
86
89
  switch (e) {
@@ -103,28 +106,38 @@ class D extends b {
103
106
  return t?.remove;
104
107
  }
105
108
  }
106
- _getTextForChip() {
107
- const { effectiveSelectionManager: e, layout: t, messages: i, visualScale: o } = this, s = e?.count ?? 0, l = o === "l" ? 999 : 99;
108
- return i.countTruncated && s > l && t === "vertical" ? p(i.countTruncated, {
109
+ _getTextForChip(e) {
110
+ const { layout: t, messages: i, visualScale: o } = this, l = o === "l" ? 999 : 99;
111
+ return i.countTruncated && e > l && t === "vertical" ? h(i.countTruncated, {
109
112
  count: l
110
- }) : m(s);
113
+ }) : y(e);
114
+ }
115
+ _getTooltipForChip(e) {
116
+ const { messages: t } = this;
117
+ return !t?.selectionCount || !t?.clearSelectionCount ? "" : this.hideChipCloseButton || e === 0 ? h(t.selectionCount, { count: e }) : h(t.clearSelectionCount, { count: e });
111
118
  }
112
119
  #i() {
113
120
  if (this.hideProgress)
114
121
  return;
115
122
  const e = this.messages.processing;
116
- return a`<calcite-progress aria-label=${e ?? r} .label=${e} .type=${this._processing ? "indeterminate" : "determinate"}></calcite-progress>`;
123
+ return s`<calcite-progress aria-label=${e ?? a} .label=${e} .type=${this._processing ? "indeterminate" : "determinate"}></calcite-progress>`;
117
124
  }
118
125
  #o() {
119
- return h("tools-group", a`<calcite-action-group>${this.#s()}${this.#a()}</calcite-action-group>`);
126
+ return p("tools-group", s`<calcite-action-group>${this.#s()}${this.#l()}</calcite-action-group>`);
120
127
  }
121
128
  #s() {
122
- return [this.#l(), this.#n(), this.#d(), this.#c()];
129
+ return [
130
+ this.#a(),
131
+ this.#r(),
132
+ this.#c(),
133
+ this.#d(),
134
+ this.#h()
135
+ ];
123
136
  }
124
- #a() {
137
+ #l() {
125
138
  return this.toolConfigs.map(({ toolName: e, icon: t }) => this.#e(e, t));
126
139
  }
127
- #l() {
140
+ #a() {
128
141
  if (this.hidePanTool)
129
142
  return;
130
143
  const e = this.messages.pan ?? "";
@@ -132,24 +145,32 @@ class D extends b {
132
145
  active: !this.activeOperation,
133
146
  disabled: this._effectiveDisabled,
134
147
  icon: "pan",
135
- onclick: () => this.cancel(),
148
+ onclick: () => {
149
+ this.cancel();
150
+ },
136
151
  text: e,
137
152
  title: e
138
153
  });
139
154
  }
140
- #r() {
155
+ #n() {
141
156
  if (this.hideChip)
142
157
  return;
143
- const { effectiveSelectionManager: e, messages: t } = this, i = e?.count ?? 0, o = this._getTextForChip(), s = t.clearSelectionCount ? p(t.clearSelectionCount, { count: i }) : void 0;
144
- return a`<calcite-chip appearance=outline .closable=${i > 0} .disabled=${this._effectiveDisabled || i === 0} .label=${o} .scale=${this.visualScale} title=${s ?? r} @calciteChipClose=${() => e?.clear()}>${o}</calcite-chip>`;
158
+ const { effectiveSelectionManager: e } = this, t = e?.count ?? 0, i = this._getTextForChip(t), o = !this.hideChipCloseButton && t > 0;
159
+ return s`<calcite-chip appearance=outline .closable=${o} .disabled=${this._effectiveDisabled || t === 0} .label=${i} .scale=${this.visualScale} title=${this._getTooltipForChip(t) ?? a} @calciteChipClose=${this._handleClearSelection}>${i}</calcite-chip>`;
145
160
  }
146
- #n() {
161
+ #r() {
147
162
  if (this.hidePointTool)
148
163
  return;
149
164
  const { messages: e } = this;
150
165
  return this.#e("point", "selection-set", e.point, e.selectByPoint);
151
166
  }
152
167
  #c() {
168
+ if (this.hidePolygonTool)
169
+ return;
170
+ const { messages: e } = this;
171
+ return this.#e("polygon", "polygon-select", e.polygon, e.selectByPolygon);
172
+ }
173
+ #h() {
153
174
  if (this.hideLassoTool)
154
175
  return;
155
176
  const { messages: e } = this;
@@ -161,35 +182,37 @@ class D extends b {
161
182
  const { messages: e } = this;
162
183
  return this.#e("rectangle", "cursor-marquee", e.rectangle, e.selectByRectangle);
163
184
  }
164
- #h() {
185
+ #p() {
165
186
  const { availableOperationTypes: e } = this;
166
187
  if (this.hideOperationTypeControls || !e.length)
167
188
  return;
168
- const { _effectiveOperationType: t, showTextLabels: i, visualScale: o } = this, s = u[t], l = this._getTextForSelectionOperationType(t), n = this._getLabelForSelectionOperationType(t);
169
- return h("toggle-group", a`<calcite-action-group><calcite-dropdown overlay-positioning=fixed placement=bottom-start .scale=${o}><calcite-action class=tool-button .disabled=${this._effectiveDisabled} .icon=${s} .scale=${o} slot=trigger .text=${l ?? ""} .textEnabled=${i} title=${n ?? r}><calcite-icon icon=chevron-down scale=s></calcite-icon></calcite-action><calcite-dropdown-group>${e.map((c) => this.#p(c))}</calcite-dropdown-group></calcite-dropdown></calcite-action-group>`);
189
+ const { _effectiveOperationType: t, showTextLabels: i, visualScale: o } = this, l = g[t], n = this._getTextForSelectionOperationType(t), r = this._getLabelForSelectionOperationType(t);
190
+ return p("toggle-group", s`<calcite-action-group><calcite-dropdown overlay-positioning=fixed placement=bottom-start .scale=${o}><calcite-action class=tool-button .disabled=${this._effectiveDisabled} .icon=${l} .scale=${o} slot=trigger .text=${n ?? ""} .textEnabled=${i} title=${r ?? a}><calcite-icon icon=chevron-down scale=s></calcite-icon></calcite-action><calcite-dropdown-group>${e.map((c) => this.#u(c))}</calcite-dropdown-group></calcite-dropdown></calcite-action-group>`);
170
191
  }
171
- #p(e) {
172
- return a`<calcite-dropdown-item .iconStart=${u[e]} .selected=${this.defaultOperationType === e} @calciteDropdownItemSelect=${() => this.defaultOperationType = e}>${this._getLabelForSelectionOperationType(e)}</calcite-dropdown-item>`;
192
+ #u(e) {
193
+ return s`<calcite-dropdown-item .iconStart=${g[e]} .selected=${this.defaultOperationType === e} @calciteDropdownItemSelect=${() => this.defaultOperationType = e}>${this._getLabelForSelectionOperationType(e)}</calcite-dropdown-item>`;
173
194
  }
174
195
  #e(e, t = "selection", i = e, o = i) {
175
196
  return this.#t({
176
197
  active: this.activeOperation?.toolName === e,
177
198
  disabled: this._effectiveDisabled,
178
199
  icon: t,
179
- onclick: () => this.toggleTool(e),
200
+ onclick: () => {
201
+ this.toggleTool(e);
202
+ },
180
203
  text: i,
181
204
  title: o
182
205
  });
183
206
  }
184
207
  #t(e) {
185
- const { active: t, disabled: i, icon: o, onclick: s, text: l, title: n } = e, { showTextLabels: c, visualScale: f } = this;
186
- return a`<calcite-action .active=${t} class=tool-button .disabled=${i} .icon=${o} @click=${s} .text=${l} .textEnabled=${c} title=${n ?? r} .scale=${f}></calcite-action>`;
208
+ const { active: t, disabled: i, icon: o, onclick: l, text: n, title: r } = e, { showTextLabels: c, visualScale: f } = this;
209
+ return s`<calcite-action .active=${t} class=tool-button .disabled=${i} .icon=${o} @click=${l} .text=${n} .textEnabled=${c} title=${r ?? a} .scale=${f}></calcite-action>`;
187
210
  }
188
211
  render() {
189
- return a`<div><calcite-action-bar expand-toggle-disabled .layout=${this.layout} overflow-mode=none .scale=${this.visualScale}>${this.#h()}${this.#o()}${this.#r()}</calcite-action-bar>${this.#i()}</div>`;
212
+ return s`<div><calcite-action-bar expand-toggle-disabled .layout=${this.layout} overflow-mode=none .scale=${this.visualScale}>${this.#p()}${this.#o()}${this.#n()}</calcite-action-bar>${this.#i()}</div>`;
190
213
  }
191
214
  }
192
- g("arcgis-selection-toolbar", D);
215
+ v("arcgis-selection-toolbar", $);
193
216
  export {
194
- D as ArcgisSelectionToolbar
217
+ $ as ArcgisSelectionToolbar
195
218
  };