@esri/solutions-components 0.7.28 → 0.7.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (443) hide show
  1. package/dist/assets/t9n/card-manager/resources.json +1 -4
  2. package/dist/assets/t9n/card-manager/resources_ar.json +1 -4
  3. package/dist/assets/t9n/card-manager/resources_bg.json +1 -4
  4. package/dist/assets/t9n/card-manager/resources_bs.json +1 -4
  5. package/dist/assets/t9n/card-manager/resources_ca.json +1 -4
  6. package/dist/assets/t9n/card-manager/resources_cs.json +1 -4
  7. package/dist/assets/t9n/card-manager/resources_da.json +1 -4
  8. package/dist/assets/t9n/card-manager/resources_de.json +1 -4
  9. package/dist/assets/t9n/card-manager/resources_el.json +1 -4
  10. package/dist/assets/t9n/card-manager/resources_en.json +1 -4
  11. package/dist/assets/t9n/card-manager/resources_es.json +1 -4
  12. package/dist/assets/t9n/card-manager/resources_et.json +1 -4
  13. package/dist/assets/t9n/card-manager/resources_fi.json +1 -4
  14. package/dist/assets/t9n/card-manager/resources_fr.json +1 -4
  15. package/dist/assets/t9n/card-manager/resources_he.json +1 -4
  16. package/dist/assets/t9n/card-manager/resources_hr.json +1 -4
  17. package/dist/assets/t9n/card-manager/resources_hu.json +1 -4
  18. package/dist/assets/t9n/card-manager/resources_id.json +1 -4
  19. package/dist/assets/t9n/card-manager/resources_it.json +1 -4
  20. package/dist/assets/t9n/card-manager/resources_ja.json +1 -4
  21. package/dist/assets/t9n/card-manager/resources_ko.json +1 -4
  22. package/dist/assets/t9n/card-manager/resources_lt.json +1 -4
  23. package/dist/assets/t9n/card-manager/resources_lv.json +1 -4
  24. package/dist/assets/t9n/card-manager/resources_nb.json +1 -4
  25. package/dist/assets/t9n/card-manager/resources_nl.json +1 -4
  26. package/dist/assets/t9n/card-manager/resources_pl.json +1 -4
  27. package/dist/assets/t9n/card-manager/resources_pt-BR.json +1 -4
  28. package/dist/assets/t9n/card-manager/resources_pt-PT.json +1 -4
  29. package/dist/assets/t9n/card-manager/resources_ro.json +1 -4
  30. package/dist/assets/t9n/card-manager/resources_ru.json +1 -4
  31. package/dist/assets/t9n/card-manager/resources_sk.json +1 -4
  32. package/dist/assets/t9n/card-manager/resources_sl.json +1 -4
  33. package/dist/assets/t9n/card-manager/resources_sr.json +1 -4
  34. package/dist/assets/t9n/card-manager/resources_sv.json +1 -4
  35. package/dist/assets/t9n/card-manager/resources_th.json +1 -4
  36. package/dist/assets/t9n/card-manager/resources_tr.json +1 -4
  37. package/dist/assets/t9n/card-manager/resources_uk.json +1 -4
  38. package/dist/assets/t9n/card-manager/resources_vi.json +1 -4
  39. package/dist/assets/t9n/card-manager/resources_zh-CN.json +1 -4
  40. package/dist/assets/t9n/card-manager/resources_zh-HK.json +1 -4
  41. package/dist/assets/t9n/card-manager/resources_zh-TW.json +1 -4
  42. package/dist/assets/t9n/crowdsource-manager/resources_ar.json +2 -2
  43. package/dist/assets/t9n/crowdsource-manager/resources_bg.json +2 -2
  44. package/dist/assets/t9n/crowdsource-manager/resources_bs.json +2 -2
  45. package/dist/assets/t9n/crowdsource-manager/resources_ca.json +2 -2
  46. package/dist/assets/t9n/crowdsource-manager/resources_cs.json +2 -2
  47. package/dist/assets/t9n/crowdsource-manager/resources_da.json +2 -2
  48. package/dist/assets/t9n/crowdsource-manager/resources_de.json +2 -2
  49. package/dist/assets/t9n/crowdsource-manager/resources_el.json +2 -2
  50. package/dist/assets/t9n/crowdsource-manager/resources_es.json +2 -2
  51. package/dist/assets/t9n/crowdsource-manager/resources_et.json +2 -2
  52. package/dist/assets/t9n/crowdsource-manager/resources_fi.json +2 -2
  53. package/dist/assets/t9n/crowdsource-manager/resources_fr.json +2 -2
  54. package/dist/assets/t9n/crowdsource-manager/resources_he.json +2 -2
  55. package/dist/assets/t9n/crowdsource-manager/resources_hr.json +2 -2
  56. package/dist/assets/t9n/crowdsource-manager/resources_hu.json +2 -2
  57. package/dist/assets/t9n/crowdsource-manager/resources_id.json +2 -2
  58. package/dist/assets/t9n/crowdsource-manager/resources_it.json +2 -2
  59. package/dist/assets/t9n/crowdsource-manager/resources_ja.json +2 -2
  60. package/dist/assets/t9n/crowdsource-manager/resources_ko.json +2 -2
  61. package/dist/assets/t9n/crowdsource-manager/resources_lt.json +2 -2
  62. package/dist/assets/t9n/crowdsource-manager/resources_lv.json +2 -2
  63. package/dist/assets/t9n/crowdsource-manager/resources_nb.json +2 -2
  64. package/dist/assets/t9n/crowdsource-manager/resources_nl.json +2 -2
  65. package/dist/assets/t9n/crowdsource-manager/resources_pl.json +2 -2
  66. package/dist/assets/t9n/crowdsource-manager/resources_pt-BR.json +2 -2
  67. package/dist/assets/t9n/crowdsource-manager/resources_pt-PT.json +2 -2
  68. package/dist/assets/t9n/crowdsource-manager/resources_ro.json +2 -2
  69. package/dist/assets/t9n/crowdsource-manager/resources_ru.json +2 -2
  70. package/dist/assets/t9n/crowdsource-manager/resources_sk.json +2 -2
  71. package/dist/assets/t9n/crowdsource-manager/resources_sl.json +2 -2
  72. package/dist/assets/t9n/crowdsource-manager/resources_sr.json +2 -2
  73. package/dist/assets/t9n/crowdsource-manager/resources_sv.json +2 -2
  74. package/dist/assets/t9n/crowdsource-manager/resources_th.json +2 -2
  75. package/dist/assets/t9n/crowdsource-manager/resources_tr.json +2 -2
  76. package/dist/assets/t9n/crowdsource-manager/resources_uk.json +2 -2
  77. package/dist/assets/t9n/crowdsource-manager/resources_vi.json +2 -2
  78. package/dist/assets/t9n/crowdsource-manager/resources_zh-CN.json +2 -2
  79. package/dist/assets/t9n/crowdsource-manager/resources_zh-HK.json +2 -2
  80. package/dist/assets/t9n/crowdsource-manager/resources_zh-TW.json +2 -2
  81. package/dist/assets/t9n/crowdsource-reporter/resources_ar.json +20 -0
  82. package/dist/assets/t9n/crowdsource-reporter/resources_bg.json +20 -0
  83. package/dist/assets/t9n/crowdsource-reporter/resources_bs.json +20 -0
  84. package/dist/assets/t9n/crowdsource-reporter/resources_ca.json +20 -0
  85. package/dist/assets/t9n/crowdsource-reporter/resources_cs.json +20 -0
  86. package/dist/assets/t9n/crowdsource-reporter/resources_da.json +20 -0
  87. package/dist/assets/t9n/crowdsource-reporter/resources_de.json +20 -0
  88. package/dist/assets/t9n/crowdsource-reporter/resources_el.json +20 -0
  89. package/dist/assets/t9n/crowdsource-reporter/resources_es.json +20 -0
  90. package/dist/assets/t9n/crowdsource-reporter/resources_et.json +20 -0
  91. package/dist/assets/t9n/crowdsource-reporter/resources_fi.json +20 -0
  92. package/dist/assets/t9n/crowdsource-reporter/resources_fr.json +20 -0
  93. package/dist/assets/t9n/crowdsource-reporter/resources_he.json +20 -0
  94. package/dist/assets/t9n/crowdsource-reporter/resources_hr.json +20 -0
  95. package/dist/assets/t9n/crowdsource-reporter/resources_hu.json +20 -0
  96. package/dist/assets/t9n/crowdsource-reporter/resources_id.json +20 -0
  97. package/dist/assets/t9n/crowdsource-reporter/resources_it.json +20 -0
  98. package/dist/assets/t9n/crowdsource-reporter/resources_ja.json +20 -0
  99. package/dist/assets/t9n/crowdsource-reporter/resources_ko.json +20 -0
  100. package/dist/assets/t9n/crowdsource-reporter/resources_lt.json +20 -0
  101. package/dist/assets/t9n/crowdsource-reporter/resources_lv.json +20 -0
  102. package/dist/assets/t9n/crowdsource-reporter/resources_nb.json +20 -0
  103. package/dist/assets/t9n/crowdsource-reporter/resources_nl.json +20 -0
  104. package/dist/assets/t9n/crowdsource-reporter/resources_pl.json +20 -0
  105. package/dist/assets/t9n/crowdsource-reporter/resources_pt-BR.json +20 -0
  106. package/dist/assets/t9n/crowdsource-reporter/resources_pt-PT.json +20 -0
  107. package/dist/assets/t9n/crowdsource-reporter/resources_ro.json +20 -0
  108. package/dist/assets/t9n/crowdsource-reporter/resources_ru.json +20 -0
  109. package/dist/assets/t9n/crowdsource-reporter/resources_sk.json +20 -0
  110. package/dist/assets/t9n/crowdsource-reporter/resources_sl.json +20 -0
  111. package/dist/assets/t9n/crowdsource-reporter/resources_sr.json +20 -0
  112. package/dist/assets/t9n/crowdsource-reporter/resources_sv.json +20 -0
  113. package/dist/assets/t9n/crowdsource-reporter/resources_th.json +20 -0
  114. package/dist/assets/t9n/crowdsource-reporter/resources_tr.json +20 -0
  115. package/dist/assets/t9n/crowdsource-reporter/resources_uk.json +20 -0
  116. package/dist/assets/t9n/crowdsource-reporter/resources_vi.json +20 -0
  117. package/dist/assets/t9n/crowdsource-reporter/resources_zh-CN.json +20 -0
  118. package/dist/assets/t9n/crowdsource-reporter/resources_zh-HK.json +20 -0
  119. package/dist/assets/t9n/crowdsource-reporter/resources_zh-TW.json +20 -0
  120. package/dist/assets/t9n/delete-button/resources_ar.json +8 -0
  121. package/dist/assets/t9n/delete-button/resources_bg.json +8 -0
  122. package/dist/assets/t9n/delete-button/resources_bs.json +8 -0
  123. package/dist/assets/t9n/delete-button/resources_ca.json +8 -0
  124. package/dist/assets/t9n/delete-button/resources_cs.json +8 -0
  125. package/dist/assets/t9n/delete-button/resources_da.json +8 -0
  126. package/dist/assets/t9n/delete-button/resources_de.json +8 -0
  127. package/dist/assets/t9n/delete-button/resources_el.json +8 -0
  128. package/dist/assets/t9n/delete-button/resources_es.json +8 -0
  129. package/dist/assets/t9n/delete-button/resources_et.json +8 -0
  130. package/dist/assets/t9n/delete-button/resources_fi.json +8 -0
  131. package/dist/assets/t9n/delete-button/resources_fr.json +8 -0
  132. package/dist/assets/t9n/delete-button/resources_he.json +8 -0
  133. package/dist/assets/t9n/delete-button/resources_hr.json +8 -0
  134. package/dist/assets/t9n/delete-button/resources_hu.json +8 -0
  135. package/dist/assets/t9n/delete-button/resources_id.json +8 -0
  136. package/dist/assets/t9n/delete-button/resources_it.json +8 -0
  137. package/dist/assets/t9n/delete-button/resources_ja.json +8 -0
  138. package/dist/assets/t9n/delete-button/resources_ko.json +8 -0
  139. package/dist/assets/t9n/delete-button/resources_lt.json +8 -0
  140. package/dist/assets/t9n/delete-button/resources_lv.json +8 -0
  141. package/dist/assets/t9n/delete-button/resources_nb.json +8 -0
  142. package/dist/assets/t9n/delete-button/resources_nl.json +8 -0
  143. package/dist/assets/t9n/delete-button/resources_pl.json +8 -0
  144. package/dist/assets/t9n/delete-button/resources_pt-BR.json +8 -0
  145. package/dist/assets/t9n/delete-button/resources_pt-PT.json +8 -0
  146. package/dist/assets/t9n/delete-button/resources_ro.json +8 -0
  147. package/dist/assets/t9n/delete-button/resources_ru.json +8 -0
  148. package/dist/assets/t9n/delete-button/resources_sk.json +8 -0
  149. package/dist/assets/t9n/delete-button/resources_sl.json +8 -0
  150. package/dist/assets/t9n/delete-button/resources_sr.json +8 -0
  151. package/dist/assets/t9n/delete-button/resources_sv.json +8 -0
  152. package/dist/assets/t9n/delete-button/resources_th.json +8 -0
  153. package/dist/assets/t9n/delete-button/resources_tr.json +8 -0
  154. package/dist/assets/t9n/delete-button/resources_uk.json +8 -0
  155. package/dist/assets/t9n/delete-button/resources_vi.json +8 -0
  156. package/dist/assets/t9n/delete-button/resources_zh-CN.json +8 -0
  157. package/dist/assets/t9n/delete-button/resources_zh-HK.json +8 -0
  158. package/dist/assets/t9n/delete-button/resources_zh-TW.json +8 -0
  159. package/dist/assets/t9n/feature-list/resources_ar.json +4 -0
  160. package/dist/assets/t9n/feature-list/resources_bg.json +4 -0
  161. package/dist/assets/t9n/feature-list/resources_bs.json +4 -0
  162. package/dist/assets/t9n/feature-list/resources_ca.json +4 -0
  163. package/dist/assets/t9n/feature-list/resources_cs.json +4 -0
  164. package/dist/assets/t9n/feature-list/resources_da.json +4 -0
  165. package/dist/assets/t9n/feature-list/resources_de.json +4 -0
  166. package/dist/assets/t9n/feature-list/resources_el.json +4 -0
  167. package/dist/assets/t9n/feature-list/resources_es.json +4 -0
  168. package/dist/assets/t9n/feature-list/resources_et.json +4 -0
  169. package/dist/assets/t9n/feature-list/resources_fi.json +4 -0
  170. package/dist/assets/t9n/feature-list/resources_fr.json +4 -0
  171. package/dist/assets/t9n/feature-list/resources_he.json +4 -0
  172. package/dist/assets/t9n/feature-list/resources_hr.json +4 -0
  173. package/dist/assets/t9n/feature-list/resources_hu.json +4 -0
  174. package/dist/assets/t9n/feature-list/resources_id.json +4 -0
  175. package/dist/assets/t9n/feature-list/resources_it.json +4 -0
  176. package/dist/assets/t9n/feature-list/resources_ja.json +4 -0
  177. package/dist/assets/t9n/feature-list/resources_ko.json +4 -0
  178. package/dist/assets/t9n/feature-list/resources_lt.json +4 -0
  179. package/dist/assets/t9n/feature-list/resources_lv.json +4 -0
  180. package/dist/assets/t9n/feature-list/resources_nb.json +4 -0
  181. package/dist/assets/t9n/feature-list/resources_nl.json +4 -0
  182. package/dist/assets/t9n/feature-list/resources_pl.json +4 -0
  183. package/dist/assets/t9n/feature-list/resources_pt-BR.json +4 -0
  184. package/dist/assets/t9n/feature-list/resources_pt-PT.json +4 -0
  185. package/dist/assets/t9n/feature-list/resources_ro.json +4 -0
  186. package/dist/assets/t9n/feature-list/resources_ru.json +4 -0
  187. package/dist/assets/t9n/feature-list/resources_sk.json +4 -0
  188. package/dist/assets/t9n/feature-list/resources_sl.json +4 -0
  189. package/dist/assets/t9n/feature-list/resources_sr.json +4 -0
  190. package/dist/assets/t9n/feature-list/resources_sv.json +4 -0
  191. package/dist/assets/t9n/feature-list/resources_th.json +4 -0
  192. package/dist/assets/t9n/feature-list/resources_tr.json +4 -0
  193. package/dist/assets/t9n/feature-list/resources_uk.json +4 -0
  194. package/dist/assets/t9n/feature-list/resources_vi.json +4 -0
  195. package/dist/assets/t9n/feature-list/resources_zh-CN.json +4 -0
  196. package/dist/assets/t9n/feature-list/resources_zh-HK.json +4 -0
  197. package/dist/assets/t9n/feature-list/resources_zh-TW.json +4 -0
  198. package/dist/assets/t9n/info-card/resources_ar.json +2 -1
  199. package/dist/assets/t9n/info-card/resources_bg.json +2 -1
  200. package/dist/assets/t9n/info-card/resources_bs.json +2 -1
  201. package/dist/assets/t9n/info-card/resources_ca.json +2 -1
  202. package/dist/assets/t9n/info-card/resources_cs.json +2 -1
  203. package/dist/assets/t9n/info-card/resources_da.json +2 -1
  204. package/dist/assets/t9n/info-card/resources_de.json +2 -1
  205. package/dist/assets/t9n/info-card/resources_el.json +2 -1
  206. package/dist/assets/t9n/info-card/resources_es.json +2 -1
  207. package/dist/assets/t9n/info-card/resources_et.json +2 -1
  208. package/dist/assets/t9n/info-card/resources_fi.json +2 -1
  209. package/dist/assets/t9n/info-card/resources_fr.json +2 -1
  210. package/dist/assets/t9n/info-card/resources_he.json +2 -1
  211. package/dist/assets/t9n/info-card/resources_hr.json +2 -1
  212. package/dist/assets/t9n/info-card/resources_hu.json +2 -1
  213. package/dist/assets/t9n/info-card/resources_id.json +2 -1
  214. package/dist/assets/t9n/info-card/resources_it.json +2 -1
  215. package/dist/assets/t9n/info-card/resources_ja.json +2 -1
  216. package/dist/assets/t9n/info-card/resources_ko.json +2 -1
  217. package/dist/assets/t9n/info-card/resources_lt.json +2 -1
  218. package/dist/assets/t9n/info-card/resources_lv.json +2 -1
  219. package/dist/assets/t9n/info-card/resources_nb.json +2 -1
  220. package/dist/assets/t9n/info-card/resources_nl.json +2 -1
  221. package/dist/assets/t9n/info-card/resources_pl.json +2 -1
  222. package/dist/assets/t9n/info-card/resources_pt-BR.json +2 -1
  223. package/dist/assets/t9n/info-card/resources_pt-PT.json +2 -1
  224. package/dist/assets/t9n/info-card/resources_ro.json +2 -1
  225. package/dist/assets/t9n/info-card/resources_ru.json +2 -1
  226. package/dist/assets/t9n/info-card/resources_sk.json +2 -1
  227. package/dist/assets/t9n/info-card/resources_sl.json +2 -1
  228. package/dist/assets/t9n/info-card/resources_sr.json +2 -1
  229. package/dist/assets/t9n/info-card/resources_sv.json +2 -1
  230. package/dist/assets/t9n/info-card/resources_th.json +2 -1
  231. package/dist/assets/t9n/info-card/resources_tr.json +2 -1
  232. package/dist/assets/t9n/info-card/resources_uk.json +2 -1
  233. package/dist/assets/t9n/info-card/resources_vi.json +2 -1
  234. package/dist/assets/t9n/info-card/resources_zh-CN.json +2 -1
  235. package/dist/assets/t9n/info-card/resources_zh-HK.json +2 -1
  236. package/dist/assets/t9n/info-card/resources_zh-TW.json +2 -1
  237. package/dist/assets/t9n/layer-list/resources_ar.json +4 -0
  238. package/dist/assets/t9n/layer-list/resources_bg.json +4 -0
  239. package/dist/assets/t9n/layer-list/resources_bs.json +4 -0
  240. package/dist/assets/t9n/layer-list/resources_ca.json +4 -0
  241. package/dist/assets/t9n/layer-list/resources_cs.json +4 -0
  242. package/dist/assets/t9n/layer-list/resources_da.json +4 -0
  243. package/dist/assets/t9n/layer-list/resources_de.json +4 -0
  244. package/dist/assets/t9n/layer-list/resources_el.json +4 -0
  245. package/dist/assets/t9n/layer-list/resources_es.json +4 -0
  246. package/dist/assets/t9n/layer-list/resources_et.json +4 -0
  247. package/dist/assets/t9n/layer-list/resources_fi.json +4 -0
  248. package/dist/assets/t9n/layer-list/resources_fr.json +4 -0
  249. package/dist/assets/t9n/layer-list/resources_he.json +4 -0
  250. package/dist/assets/t9n/layer-list/resources_hr.json +4 -0
  251. package/dist/assets/t9n/layer-list/resources_hu.json +4 -0
  252. package/dist/assets/t9n/layer-list/resources_id.json +4 -0
  253. package/dist/assets/t9n/layer-list/resources_it.json +4 -0
  254. package/dist/assets/t9n/layer-list/resources_ja.json +4 -0
  255. package/dist/assets/t9n/layer-list/resources_ko.json +4 -0
  256. package/dist/assets/t9n/layer-list/resources_lt.json +4 -0
  257. package/dist/assets/t9n/layer-list/resources_lv.json +4 -0
  258. package/dist/assets/t9n/layer-list/resources_nb.json +4 -0
  259. package/dist/assets/t9n/layer-list/resources_nl.json +4 -0
  260. package/dist/assets/t9n/layer-list/resources_pl.json +4 -0
  261. package/dist/assets/t9n/layer-list/resources_pt-BR.json +4 -0
  262. package/dist/assets/t9n/layer-list/resources_pt-PT.json +4 -0
  263. package/dist/assets/t9n/layer-list/resources_ro.json +4 -0
  264. package/dist/assets/t9n/layer-list/resources_ru.json +4 -0
  265. package/dist/assets/t9n/layer-list/resources_sk.json +4 -0
  266. package/dist/assets/t9n/layer-list/resources_sl.json +4 -0
  267. package/dist/assets/t9n/layer-list/resources_sr.json +4 -0
  268. package/dist/assets/t9n/layer-list/resources_sv.json +4 -0
  269. package/dist/assets/t9n/layer-list/resources_th.json +4 -0
  270. package/dist/assets/t9n/layer-list/resources_tr.json +4 -0
  271. package/dist/assets/t9n/layer-list/resources_uk.json +4 -0
  272. package/dist/assets/t9n/layer-list/resources_vi.json +4 -0
  273. package/dist/assets/t9n/layer-list/resources_zh-CN.json +4 -0
  274. package/dist/assets/t9n/layer-list/resources_zh-HK.json +4 -0
  275. package/dist/assets/t9n/layer-list/resources_zh-TW.json +4 -0
  276. package/dist/assets/t9n/layer-table/resources_ar.json +5 -9
  277. package/dist/assets/t9n/layer-table/resources_bg.json +5 -9
  278. package/dist/assets/t9n/layer-table/resources_bs.json +5 -9
  279. package/dist/assets/t9n/layer-table/resources_ca.json +5 -9
  280. package/dist/assets/t9n/layer-table/resources_cs.json +5 -9
  281. package/dist/assets/t9n/layer-table/resources_da.json +5 -9
  282. package/dist/assets/t9n/layer-table/resources_de.json +5 -9
  283. package/dist/assets/t9n/layer-table/resources_el.json +5 -9
  284. package/dist/assets/t9n/layer-table/resources_es.json +5 -9
  285. package/dist/assets/t9n/layer-table/resources_et.json +5 -9
  286. package/dist/assets/t9n/layer-table/resources_fi.json +5 -9
  287. package/dist/assets/t9n/layer-table/resources_fr.json +5 -9
  288. package/dist/assets/t9n/layer-table/resources_he.json +5 -9
  289. package/dist/assets/t9n/layer-table/resources_hr.json +5 -9
  290. package/dist/assets/t9n/layer-table/resources_hu.json +5 -9
  291. package/dist/assets/t9n/layer-table/resources_id.json +5 -9
  292. package/dist/assets/t9n/layer-table/resources_it.json +5 -9
  293. package/dist/assets/t9n/layer-table/resources_ja.json +5 -9
  294. package/dist/assets/t9n/layer-table/resources_ko.json +5 -9
  295. package/dist/assets/t9n/layer-table/resources_lt.json +5 -9
  296. package/dist/assets/t9n/layer-table/resources_lv.json +5 -9
  297. package/dist/assets/t9n/layer-table/resources_nb.json +5 -9
  298. package/dist/assets/t9n/layer-table/resources_nl.json +5 -9
  299. package/dist/assets/t9n/layer-table/resources_pl.json +5 -9
  300. package/dist/assets/t9n/layer-table/resources_pt-BR.json +5 -9
  301. package/dist/assets/t9n/layer-table/resources_pt-PT.json +5 -9
  302. package/dist/assets/t9n/layer-table/resources_ro.json +5 -9
  303. package/dist/assets/t9n/layer-table/resources_ru.json +5 -9
  304. package/dist/assets/t9n/layer-table/resources_sk.json +5 -9
  305. package/dist/assets/t9n/layer-table/resources_sl.json +5 -9
  306. package/dist/assets/t9n/layer-table/resources_sr.json +5 -9
  307. package/dist/assets/t9n/layer-table/resources_sv.json +5 -9
  308. package/dist/assets/t9n/layer-table/resources_th.json +5 -9
  309. package/dist/assets/t9n/layer-table/resources_tr.json +5 -9
  310. package/dist/assets/t9n/layer-table/resources_uk.json +5 -9
  311. package/dist/assets/t9n/layer-table/resources_vi.json +5 -9
  312. package/dist/assets/t9n/layer-table/resources_zh-CN.json +5 -9
  313. package/dist/assets/t9n/layer-table/resources_zh-HK.json +5 -9
  314. package/dist/assets/t9n/layer-table/resources_zh-TW.json +5 -9
  315. package/dist/assets/t9n/map-tools/resources_ar.json +2 -2
  316. package/dist/assets/t9n/map-tools/resources_bg.json +2 -2
  317. package/dist/assets/t9n/map-tools/resources_bs.json +2 -2
  318. package/dist/assets/t9n/map-tools/resources_ca.json +2 -2
  319. package/dist/assets/t9n/map-tools/resources_cs.json +2 -2
  320. package/dist/assets/t9n/map-tools/resources_da.json +2 -2
  321. package/dist/assets/t9n/map-tools/resources_de.json +2 -2
  322. package/dist/assets/t9n/map-tools/resources_el.json +2 -2
  323. package/dist/assets/t9n/map-tools/resources_es.json +2 -2
  324. package/dist/assets/t9n/map-tools/resources_et.json +2 -2
  325. package/dist/assets/t9n/map-tools/resources_fi.json +2 -2
  326. package/dist/assets/t9n/map-tools/resources_fr.json +2 -2
  327. package/dist/assets/t9n/map-tools/resources_he.json +2 -2
  328. package/dist/assets/t9n/map-tools/resources_hr.json +2 -2
  329. package/dist/assets/t9n/map-tools/resources_hu.json +2 -2
  330. package/dist/assets/t9n/map-tools/resources_id.json +2 -2
  331. package/dist/assets/t9n/map-tools/resources_it.json +2 -2
  332. package/dist/assets/t9n/map-tools/resources_ja.json +2 -2
  333. package/dist/assets/t9n/map-tools/resources_ko.json +2 -2
  334. package/dist/assets/t9n/map-tools/resources_lt.json +2 -2
  335. package/dist/assets/t9n/map-tools/resources_lv.json +2 -2
  336. package/dist/assets/t9n/map-tools/resources_nb.json +2 -2
  337. package/dist/assets/t9n/map-tools/resources_nl.json +2 -2
  338. package/dist/assets/t9n/map-tools/resources_pl.json +2 -2
  339. package/dist/assets/t9n/map-tools/resources_pt-BR.json +2 -2
  340. package/dist/assets/t9n/map-tools/resources_pt-PT.json +2 -2
  341. package/dist/assets/t9n/map-tools/resources_ro.json +2 -2
  342. package/dist/assets/t9n/map-tools/resources_ru.json +2 -2
  343. package/dist/assets/t9n/map-tools/resources_sk.json +2 -2
  344. package/dist/assets/t9n/map-tools/resources_sl.json +2 -2
  345. package/dist/assets/t9n/map-tools/resources_sr.json +2 -2
  346. package/dist/assets/t9n/map-tools/resources_sv.json +2 -2
  347. package/dist/assets/t9n/map-tools/resources_th.json +2 -2
  348. package/dist/assets/t9n/map-tools/resources_tr.json +2 -2
  349. package/dist/assets/t9n/map-tools/resources_uk.json +2 -2
  350. package/dist/assets/t9n/map-tools/resources_vi.json +2 -2
  351. package/dist/assets/t9n/map-tools/resources_zh-CN.json +2 -2
  352. package/dist/assets/t9n/map-tools/resources_zh-HK.json +2 -2
  353. package/dist/assets/t9n/map-tools/resources_zh-TW.json +2 -2
  354. package/dist/assets/t9n/public-notification/resources_ar.json +2 -2
  355. package/dist/assets/t9n/public-notification/resources_bg.json +2 -2
  356. package/dist/assets/t9n/public-notification/resources_bs.json +2 -2
  357. package/dist/assets/t9n/public-notification/resources_ca.json +2 -2
  358. package/dist/assets/t9n/public-notification/resources_cs.json +2 -2
  359. package/dist/assets/t9n/public-notification/resources_da.json +2 -2
  360. package/dist/assets/t9n/public-notification/resources_de.json +2 -2
  361. package/dist/assets/t9n/public-notification/resources_el.json +2 -2
  362. package/dist/assets/t9n/public-notification/resources_es.json +2 -2
  363. package/dist/assets/t9n/public-notification/resources_et.json +2 -2
  364. package/dist/assets/t9n/public-notification/resources_fi.json +2 -2
  365. package/dist/assets/t9n/public-notification/resources_fr.json +2 -2
  366. package/dist/assets/t9n/public-notification/resources_he.json +2 -2
  367. package/dist/assets/t9n/public-notification/resources_hr.json +2 -2
  368. package/dist/assets/t9n/public-notification/resources_hu.json +2 -2
  369. package/dist/assets/t9n/public-notification/resources_id.json +2 -2
  370. package/dist/assets/t9n/public-notification/resources_it.json +2 -2
  371. package/dist/assets/t9n/public-notification/resources_ja.json +2 -2
  372. package/dist/assets/t9n/public-notification/resources_ko.json +2 -2
  373. package/dist/assets/t9n/public-notification/resources_lt.json +2 -2
  374. package/dist/assets/t9n/public-notification/resources_lv.json +2 -2
  375. package/dist/assets/t9n/public-notification/resources_nb.json +2 -2
  376. package/dist/assets/t9n/public-notification/resources_nl.json +2 -2
  377. package/dist/assets/t9n/public-notification/resources_pl.json +2 -2
  378. package/dist/assets/t9n/public-notification/resources_pt-BR.json +2 -2
  379. package/dist/assets/t9n/public-notification/resources_pt-PT.json +2 -2
  380. package/dist/assets/t9n/public-notification/resources_ro.json +2 -2
  381. package/dist/assets/t9n/public-notification/resources_ru.json +2 -2
  382. package/dist/assets/t9n/public-notification/resources_sk.json +2 -2
  383. package/dist/assets/t9n/public-notification/resources_sl.json +2 -2
  384. package/dist/assets/t9n/public-notification/resources_sr.json +2 -2
  385. package/dist/assets/t9n/public-notification/resources_sv.json +2 -2
  386. package/dist/assets/t9n/public-notification/resources_th.json +2 -2
  387. package/dist/assets/t9n/public-notification/resources_tr.json +2 -2
  388. package/dist/assets/t9n/public-notification/resources_uk.json +2 -2
  389. package/dist/assets/t9n/public-notification/resources_vi.json +2 -2
  390. package/dist/assets/t9n/public-notification/resources_zh-CN.json +2 -2
  391. package/dist/assets/t9n/public-notification/resources_zh-HK.json +2 -2
  392. package/dist/assets/t9n/public-notification/resources_zh-TW.json +2 -2
  393. package/dist/cjs/calcite-flow_4.cjs.entry.js +9 -6
  394. package/dist/cjs/card-manager_3.cjs.entry.js +3 -3
  395. package/dist/cjs/crowdsource-reporter.cjs.entry.js +86 -2
  396. package/dist/cjs/loader.cjs.js +1 -1
  397. package/dist/cjs/solutions-components.cjs.js +1 -1
  398. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +88 -3
  399. package/dist/collection/components/feature-list/feature-list.js +1 -0
  400. package/dist/collection/components/layer-list/layer-list.css +4 -0
  401. package/dist/collection/components/layer-list/layer-list.js +43 -5
  402. package/dist/collection/components/layer-table/layer-table.js +4 -4
  403. package/dist/collection/demos/crowdsource-reporter.html +4 -4
  404. package/dist/collection/demos/feature-list.html +1 -1
  405. package/dist/components/crowdsource-reporter.js +88 -3
  406. package/dist/components/feature-list2.js +1 -0
  407. package/dist/components/layer-list2.js +10 -6
  408. package/dist/components/layer-table2.js +4 -4
  409. package/dist/esm/calcite-alert_4.entry.js +1 -1
  410. package/dist/esm/calcite-combobox_6.entry.js +1 -1
  411. package/dist/esm/calcite-flow_4.entry.js +10 -7
  412. package/dist/esm/card-manager_3.entry.js +5 -5
  413. package/dist/esm/crowdsource-manager.entry.js +1 -1
  414. package/dist/esm/crowdsource-reporter.entry.js +87 -3
  415. package/dist/esm/{downloadUtils-a301c193.js → downloadUtils-d070a467.js} +2 -2
  416. package/dist/esm/{index.es-37a9907e.js → index.es-d48535a2.js} +2 -2
  417. package/dist/esm/loader.js +1 -1
  418. package/dist/esm/map-select-tools_3.entry.js +2 -2
  419. package/dist/esm/{mapViewUtils-6daedef8.js → mapViewUtils-cf05e880.js} +1 -1
  420. package/dist/esm/public-notification.entry.js +2 -2
  421. package/dist/esm/solutions-components.js +1 -1
  422. package/dist/solutions-components/demos/crowdsource-reporter.html +4 -4
  423. package/dist/solutions-components/demos/feature-list.html +1 -1
  424. package/dist/solutions-components/{p-4566438a.js → p-2c382841.js} +1 -1
  425. package/dist/solutions-components/p-2f162664.entry.js +6 -0
  426. package/dist/solutions-components/{p-fe295e9d.entry.js → p-309cdea1.entry.js} +1 -1
  427. package/dist/solutions-components/{p-a603e673.js → p-55b835a1.js} +2 -2
  428. package/dist/solutions-components/{p-12de822a.entry.js → p-6b2b8b41.entry.js} +1 -1
  429. package/dist/solutions-components/{p-dbe62aaf.entry.js → p-802acc51.entry.js} +1 -1
  430. package/dist/solutions-components/{p-6a452a84.entry.js → p-94ee3ef7.entry.js} +3 -3
  431. package/dist/solutions-components/{p-643e7ee1.entry.js → p-b699637f.entry.js} +1 -1
  432. package/dist/solutions-components/{p-0587972d.js → p-b913a4fd.js} +1 -1
  433. package/dist/solutions-components/p-f120ff40.entry.js +6 -0
  434. package/dist/solutions-components/{p-b37ec1f3.entry.js → p-f22ff57e.entry.js} +1 -1
  435. package/dist/solutions-components/solutions-components.esm.js +1 -1
  436. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +41 -4
  437. package/dist/types/components/feature-list/feature-list.d.ts +1 -0
  438. package/dist/types/components/layer-list/layer-list.d.ts +10 -2
  439. package/dist/types/components/layer-table/layer-table.d.ts +1 -1
  440. package/dist/types/components.d.ts +16 -0
  441. package/package.json +1 -1
  442. package/dist/solutions-components/p-5c22e9f4.entry.js +0 -6
  443. package/dist/solutions-components/p-8756eebb.entry.js +0 -6
@@ -124,6 +124,10 @@ export declare class CrowdsourceReporter {
124
124
  * boolean: When true show the sort and filter icon
125
125
  */
126
126
  _hasValidLayers: boolean;
127
+ /**
128
+ * string: The selected feature layer's name from the layer's list
129
+ */
130
+ _selectedLayerName: string;
127
131
  /**
128
132
  * IMapChange: The current map change details
129
133
  */
@@ -140,14 +144,18 @@ export declare class CrowdsourceReporter {
140
144
  * string: The selected feature layer's id from the layer's list
141
145
  */
142
146
  protected _selectedLayerId: string;
143
- /**
144
- * string: The selected feature layer's name from the layer's list
145
- */
146
- protected _selectedLayerName: string;
147
147
  /**
148
148
  * __esri.Graphic: The selected feature
149
149
  */
150
150
  protected _selectedFeature: __esri.Graphic[];
151
+ /**
152
+ * esri/core/reactiveUtils: https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html
153
+ */
154
+ protected reactiveUtils: typeof import("esri/core/reactiveUtils");
155
+ /**
156
+ * IHandle: The map click handle
157
+ */
158
+ protected _mapClickHandle: IHandle;
151
159
  /**
152
160
  * Called each time the mapView prop is changed.
153
161
  */
@@ -170,6 +178,14 @@ export declare class CrowdsourceReporter {
170
178
  * Renders the component.
171
179
  */
172
180
  render(): any;
181
+ /**
182
+ * Load esri javascript api modules
183
+ *
184
+ * @returns Promise resolving when function is done
185
+ *
186
+ * @protected
187
+ */
188
+ protected _initModules(): Promise<void>;
173
189
  /**
174
190
  * Get the reporter app functionality
175
191
  * @protected
@@ -210,6 +226,7 @@ export declare class CrowdsourceReporter {
210
226
  /**
211
227
  * Get feature list of the selected feature layer
212
228
  * @param layerId Layer id
229
+ * @param layerName Layer name
213
230
  * @returns feature list node
214
231
  * @protected
215
232
  */
@@ -219,6 +236,11 @@ export declare class CrowdsourceReporter {
219
236
  * @returns Node
220
237
  */
221
238
  protected getFeatureDetailsFlowItem(): Node;
239
+ /**
240
+ * On Feature details change update the Layer title and the current selected layer id
241
+ * @param evt Event hold the details of current feature graphic in the info-card
242
+ */
243
+ protected featureDetailsChanged(evt: any): void;
222
244
  /**
223
245
  * Returns the action button to Expand/Collapse side panel in mobile mode
224
246
  */
@@ -228,6 +250,21 @@ export declare class CrowdsourceReporter {
228
250
  * @protected
229
251
  */
230
252
  protected setMapView(): Promise<void>;
253
+ /**
254
+ * Handle map click event
255
+ * @param layers Array of layerIds
256
+ *
257
+ * @protected
258
+ */
259
+ protected handleMapClick(layers: string[]): void;
260
+ /**
261
+ * On map click do hitTest and get the clicked graphics of valid layers and show feature details
262
+ * @param event
263
+ * @param layers
264
+ *
265
+ * @protected
266
+ */
267
+ protected onMapClick(event: any, layers: string[]): Promise<void>;
231
268
  /**
232
269
  * Fetches the component's translations
233
270
  * @returns Promise when complete
@@ -102,6 +102,7 @@ export declare class FeatureList {
102
102
  /**
103
103
  * On feature click in feature list highlight the feature on the map
104
104
  * @param event feature clicked event
105
+ * @param selectedFeature selected feature graphic
105
106
  * @protected
106
107
  */
107
108
  protected featureClicked(event: any, selectedFeature: __esri.Graphic): Promise<void>;
@@ -38,6 +38,14 @@ export declare class LayerList {
38
38
  * string: Error message to be displayed when no layers found
39
39
  */
40
40
  noLayerErrorMsg?: string;
41
+ /**
42
+ * boolean: if true display's feature count for each layer
43
+ */
44
+ showFeatureCount?: boolean;
45
+ /**
46
+ * boolean: If true display's arrow icon on each layer item
47
+ */
48
+ showNextIcon?: boolean;
41
49
  /**
42
50
  * boolean: When true will display message no layers found
43
51
  */
@@ -118,11 +126,11 @@ export declare class LayerList {
118
126
  * @protected
119
127
  */
120
128
  protected getLayerListItem(layerId: string): VNode;
121
- /**On click of layer list item show feature list
129
+ /**On click of layer list item emit the event along with the selected layerId and layerName
122
130
  * @param layerId Layer id
123
131
  * @protected
124
132
  */
125
- protected showFeaturesList(layerId: string): void;
133
+ protected onLayerItemSelected(layerId: string): void;
126
134
  /**
127
135
  * Fetches the component's translations
128
136
  * @returns Promise when complete
@@ -301,7 +301,7 @@ export declare class LayerTable {
301
301
  /**
302
302
  * watch for selection changes
303
303
  */
304
- _selectedIdsWatchHandler(): Promise<void>;
304
+ selectedIdsWatchHandler(): Promise<void>;
305
305
  /**
306
306
  * When sortActive is false the user has not defined a sort and we should use the default sort
307
307
  */
@@ -452,6 +452,14 @@ export namespace Components {
452
452
  * string: Error message to be displayed when no layers found
453
453
  */
454
454
  "noLayerErrorMsg"?: string;
455
+ /**
456
+ * boolean: if true display's feature count for each layer
457
+ */
458
+ "showFeatureCount"?: boolean;
459
+ /**
460
+ * boolean: If true display's arrow icon on each layer item
461
+ */
462
+ "showNextIcon"?: boolean;
455
463
  }
456
464
  interface LayerTable {
457
465
  /**
@@ -2463,6 +2471,14 @@ declare namespace LocalJSX {
2463
2471
  * Emitted on demand when list of layers to be listed are created. When empty array received in this event means no valid layers are found to be listed
2464
2472
  */
2465
2473
  "onLayersListLoaded"?: (event: LayerListCustomEvent<string[]>) => void;
2474
+ /**
2475
+ * boolean: if true display's feature count for each layer
2476
+ */
2477
+ "showFeatureCount"?: boolean;
2478
+ /**
2479
+ * boolean: If true display's arrow icon on each layer item
2480
+ */
2481
+ "showNextIcon"?: boolean;
2466
2482
  }
2467
2483
  interface LayerTable {
2468
2484
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solutions-components",
3
- "version": "0.7.28",
3
+ "version": "0.7.30",
4
4
  "description": "Web Components for Esri's Solutions Applications",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,6 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as i,h as t,H as s,g as e,c as h}from"./p-78780f63.js";import{g as o,l as a}from"./p-e902ba19.js";import{q as l,g as n,a as d,e as r,f as c,i as v}from"./p-4566438a.js";import{d as p}from"./p-a603e673.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-c1cf3ebc.js";import"./p-d89fff3a.js";import"./p-a230b270.js";import"./p-220ec0d1.js";const u=class{constructor(t){i(this,t),this.isMobile=void 0,this.layer=void 0,this.mapView=void 0,this.zoomAndScrollToSelected=void 0,this._cardLoading=!1,this._graphics=void 0,this._translations=void 0}async featureSelectionChange(i){const t=i.detail;this._cardLoading=!0;const s=t.length>0?await l(t,this.layer,[],!1,this.mapView.spatialReference):[];this._graphics=s.sort(((i,s)=>t.indexOf(i.getObjectId())-t.indexOf(s.getObjectId()))),this._cardLoading=!1}async layerSelectionChange(i){const t=i.detail[0];this.layer=await n(this.mapView,t)}async componentWillLoad(){await this._getTranslations()}render(){var i,e;const h=(null===(i=this._graphics)||void 0===i?void 0:i.length)>0?"":"display-none",o=(null===(e=this._graphics)||void 0===e?void 0:e.length)>0?"display-none":"";return t(s,null,t("div",{class:"overflow-auto height-full"},t("calcite-shell",{class:"position-relative "+h},t("div",null,t("info-card",{graphics:this._graphics,isLoading:this._cardLoading,isMobile:this.isMobile,mapView:this.mapView,zoomAndScrollToSelected:this.zoomAndScrollToSelected}))),t("calcite-shell",{class:"position-relative "+o},t("div",{class:"padding-1"},t("calcite-notice",{icon:"table",open:!0},t("div",{slot:"message"},this._translations.selectFeaturesToStart))))))}async _getTranslations(){const i=await o(this.el);this._translations=i[0]}get el(){return e(this)}};u.style=":host{display:block !important}.display-flex{display:flex}.display-none{display:none}.w-100{width:100%}.padding-bottom-1{padding-bottom:1rem}.padding-1{padding:1rem}.position-relative{position:relative}.focus-margin{margin:1px 1px 0px 1px}.overflow-auto{overflow:auto}.height-full{height:100%}card-manager{display:block}";const b=class{constructor(t){i(this,t),this.featureSelectionChange=h(this,"featureSelectionChange",7),this._allIds=[],this._ctrlIsPressed=!1,this._defaultFilterHonored=!1,this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._observerSet=!1,this._shiftIsPressed=!1,this._skipOnChange=!1,this._tableSorting=!1,this.onTableNodeCreate=i=>{this._tableNode=i},this.defaultFilter=void 0,this.defaultGlobalId=void 0,this.defaultLayerId=void 0,this.defaultOid=void 0,this.enableAutoRefresh=void 0,this.enableColumnReorder=!0,this.enableCSV=void 0,this.enableInlineEdit=void 0,this.enableShare=void 0,this.isMobile=void 0,this.mapInfo=void 0,this.mapView=void 0,this.onlyShowUpdatableLayers=void 0,this.selectedIds=[],this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.showNewestFirst=void 0,this.zoomAndScrollToSelected=void 0,this._controlsThatFit=void 0,this._fetchingData=!1,this._filterActive=!1,this._filterOpen=!1,this._layer=void 0,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._sortActive=!1,this._translations=void 0}enableCSVWatchHandler(){var i;(null===(i=this._toolInfos)||void 0===i?void 0:i.length)>0&&this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}_controlsThatFitWatchHandler(){var i;const t=this._controlsThatFit?this._controlsThatFit.reduce(((i,t)=>(i.push(t.id),i)),[]):[];this._toolInfos=null===(i=this._toolInfos)||void 0===i?void 0:i.map((i=>{if(i&&this._controlsThatFit){const s=this._getId(i.icon);return i.isOverflow=t.indexOf(s)<0,i}}))}isMobileWatchHandler(){this._toolInfos||this.isMobile||this._initToolInfos()}async mapInfoWatchHandler(){var i;(null===(i=this._toolInfos)||void 0===i?void 0:i.length)>0&&this._initToolInfos(),this._initLayerExpressions()}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils.on((()=>this.mapView),"click",(i=>{this._mapClicked(i)})))}async _layerWatchHandler(){var i,t;this._fetchingData=!0,this._definitionExpression=this._layer.definitionExpression,this._floorField=null===(t=null===(i=this._layer)||void 0===i?void 0:i.floorInfo)||void 0===t?void 0:t.floorField,this._updateFloorDefinitionExpression(),await this._resetTable(),this._updateShareUrl(),this._initLayerExpressions(),this._fetchingData=!1}async _selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1)}async _sortActiveWatchHandler(){this._sortActive||await this._sortTable()}async selectionChanged(i){const t=i.detail[0],s=t.getObjectId();if(this.zoomAndScrollToSelected){const i=this._table.viewModel.getObjectIdIndex(s);this._table.scrollToIndex(i);const e=t.layer;let h;this.mapView.allLayerViews.toArray().some((i=>{if(i.layer.title===e.title&&"feature"===i.layer.type)return h=i,!0})),h&&await d([s],h,this.mapView,!0)}}async editsComplete(i){const t=i.detail;"delete"!==t&&"add"!==t||(this._allIds=await r(this._layer)),await this._refresh()}async levelChanged(i){this._floorLevel=i.detail,this._updateFloorDefinitionExpression()}noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initToolInfos(),this._resizeObserver||(this._resizeObserver=new ResizeObserver((()=>this._onResize())))}render(){const i=this._fetchingData?"display-none":"",e=this._fetchingData?"":"display-none",h=this._allIds.length.toString(),o=this.selectedIds.length.toString(),a=this.isMobile?"height-full":"height-full-adjusted";return this._validateActiveActions(),t(s,null,t("calcite-shell",null,this._getTableControlRow("header"),t("div",{class:`width-full ${a}`},t("calcite-panel",{class:"height-full width-full"},t("calcite-loader",{class:e,label:this._translations.fetchingData,scale:"l"}),t("div",{class:i,ref:this.onTableNodeCreate})),this.isMobile?void 0:t("div",{class:"bottom-left text-color height-19"},this._translations.recordsSelected.replace("{{total}}",h).replace("{{selected}}",o)))),this._filterModal())}async componentDidLoad(){this.isMobile||this._observerSet||(this._resizeObserver.observe(this._toolbar),this._observerSet=!0),document.onclick=i=>this._handleDocumentClick(i),document.onkeydown=i=>this._handleKeyDown(i),document.onkeyup=i=>this._handleKeyUp(i)}componentDidRender(){this._updateToolbar()}async _initModules(){const[i,t]=await a(["esri/widgets/FeatureTable","esri/core/reactiveUtils"]);this.FeatureTable=i,this.reactiveUtils=t}_onResize(){this._updateToolbar()}_getTableControlRow(i){return t("div",{class:"display-flex border-bottom height-51",ref:i=>this._toolbar=i,slot:i},this._getActionBar(),this.isMobile?void 0:this._getDropdown("more-table-options"),this.enableShare&&!this.isMobile?this._getShare("share"):void 0)}_getActionBar(){const i=this.isMobile?"width-full":"",s=this.isMobile?"border-top":"";return t("calcite-action-bar",{class:i,expandDisabled:!0,expanded:!0,id:this._getId("bar"),layout:"horizontal"},t("div",{class:`border-end ${i} ${s}`,id:"solutions-map-layer-picker-container"},t("map-layer-picker",{appearance:"transparent",defaultLayerId:this.defaultLayerId,display:"inline-flex",height:50,isMobile:this.isMobile,mapView:this.mapView,onLayerSelectionChange:i=>this._layerSelectionChanged(i),onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,placeholderIcon:"layers",scale:"l",showSingleLayerAsLabel:!0,showTables:!0,type:"dropdown"})),this.isMobile?void 0:this._getActions())}_getActions(){return this._getActionItems().reduce(((i,s)=>(s&&!s.isOverflow&&i.push(s.isDanger?this._getDangerAction(s.icon,s.label,s.func,s.disabled):s.isSublist?t("calcite-dropdown",{closeOnSelectDisabled:!0,id:this._getId(s.icon),onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:i=>this._showHideDropdown=i},this._getAction(s.active,this._showHideOpen?"chevron-down":s.icon,s.indicator,s.label,s.func,s.disabled,"trigger"),this._showHideOpen?this._getFieldlist():void 0):this._getAction(s.active,s.icon,s.indicator,s.label,s.func,s.disabled)),i)),[])}_getFieldlist(){return this._columnsInfo?t("calcite-dropdown-group",{"selection-mode":"multiple"},Object.keys(this._columnsInfo).map((i=>t("calcite-dropdown-item",{id:i,onClick:i=>{const t=i.target;this._columnsInfo[t.id]=t.selected,t.selected?this._table.showColumn(t.id):this._table.hideColumn(t.id)},selected:this._columnsInfo[i]},i)))):void 0}_validateEnabledActions(){var i;const t=this._featuresSelected(),s=["zoom-to-object","trash","erase","selected-items-filter"];null===(i=this._toolInfos)||void 0===i||i.forEach((i=>{i&&s.indexOf(i.icon)>-1&&(i.disabled=!t)}))}_validateActiveActions(){var i;const t=["filter","list-check-all","selected-items-filter"];null===(i=this._toolInfos)||void 0===i||i.forEach((i=>{i&&t.indexOf(i.icon)>-1&&("filter"===i.icon&&(i.indicator=this._filterActive),"list-check-all"===i.icon&&(i.active=this._selectAllActive),"selected-items-filter"===i.icon&&(i.active=this._showOnlySelected))}))}_initToolInfos(){const i=this._featuresSelected(),t=this._featuresEmpty(),s=this._hasFilterExpressions();this._translations&&(this._toolInfos=[{active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!i,isOverflow:!1},s?{active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this._toggleFilter(),disabled:!1,isOverflow:!1}:void 0,this._deleteEnabled?{active:void 0,icon:"trash",indicator:void 0,label:void 0,func:void 0,disabled:!i,isDanger:!0,isOverflow:!1}:void 0,{active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>this._clearSelection(),disabled:!i,isOverflow:!1},{active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!i,isOverflow:!1},{active:!1,icon:"list-check-all",indicator:!1,func:()=>this._selectAll(),label:this._translations.selectAll,disabled:t,isOverflow:!1},{active:!1,icon:"compare",indicator:!1,func:()=>this._switchSelected(),label:this._translations.switchSelected,disabled:t,isOverflow:!1},{active:!1,icon:"refresh",indicator:!1,func:()=>this._refresh(),label:this._translations.refresh,disabled:!1,isOverflow:!1},this.enableCSV?{active:!1,icon:"export",indicator:!1,func:()=>{this._exportToCSV()},label:this._translations.exportCSV,disabled:t,isOverflow:!1}:void 0,{active:!1,icon:this._showHideOpen?"chevron-down":"chevron-right",indicator:!1,func:()=>this._toggleShowHide(),label:this._translations.showHideColumns,disabled:!1,isOverflow:!1,isSublist:!0}],this._defaultVisibleToolSizeInfos=void 0)}_updateFloorDefinitionExpression(){this._floorField&&this._floorLevel&&(this._layer.definitionExpression=`${this._floorField} = '${this._floorLevel}'`)}_featuresSelected(){return this.selectedIds.length>0}_featuresEmpty(){return 0===this._allIds.length}_hasFilterExpressions(){var i,t,s;let e;return(null===(t=null===(i=this.mapInfo)||void 0===i?void 0:i.filterConfig)||void 0===t?void 0:t.layerExpressions)&&(null===(s=this._layer)||void 0===s?void 0:s.id)&&(e=this.mapInfo.filterConfig.layerExpressions.filter((i=>i.id===this._layer.id))),(null==e?void 0:e.length)>0}_updateToolbar(){this._timeout&&clearTimeout(this._timeout),this.isMobile||(this._timeout=setTimeout((()=>{clearTimeout(this._timeout),this._setToolbarSizeInfos();const i=this._toolbar.offsetWidth;let t=this._toolbarSizeInfos.reduce(((i,t)=>i+t.width),0);const s=["solutions-more","solutions-map-layer-picker-container","solutions-action-share"];if(t>i){if(this._toolbarSizeInfos.length>0){const e=[...this._toolbarSizeInfos].reverse().reduce(((e,h)=>(s.indexOf(h.id)<0&&(t>i?t-=h.width:e.push(h)),e)),[]).reverse();this._setControlsThatFit(e,s)}}else if(this._defaultVisibleToolSizeInfos){const e=this._toolbarSizeInfos.reduce(((i,t)=>(i.push(t.id),i)),[]);let h=!1;const o=[...this._defaultVisibleToolSizeInfos].reduce(((o,a)=>(!h&&s.indexOf(a.id)<0&&(e.indexOf(a.id)>-1||t+a.width<=i)?(e.indexOf(a.id)<0&&(t+=a.width),o.push(a)):s.indexOf(a.id)<0&&t+a.width>i&&(h=!0),o)),[]);this._setControlsThatFit(o,s)}}),5))}_setControlsThatFit(i,t){let s=JSON.stringify(i)!==JSON.stringify(this._controlsThatFit);document.getElementById("solutions-action-bar").childNodes.forEach((i=>{t.indexOf(i.id)<0&&!s&&(s=this._controlsThatFit.map((i=>i.id)).indexOf(i.id)<0)})),s&&(this._controlsThatFit=[...i])}_setToolbarSizeInfos(){let i=!1;this._toolbarSizeInfos=[],this._toolbar.childNodes.forEach(((t,s)=>{0===s?t.childNodes.forEach((t=>{this._toolbarSizeInfos.push({id:t.id,width:t.offsetWidth}),i||(i=t.offsetWidth>0)})):t.referenceElement||(this._toolbarSizeInfos.push({id:t.id,width:t.offsetWidth}),i||(i=t.offsetWidth>0))})),i&&!this._defaultVisibleToolSizeInfos&&(this._defaultVisibleToolSizeInfos=[...this._toolbarSizeInfos])}_getActionItems(){var i;return null===(i=this._toolInfos)||void 0===i?void 0:i.filter((i=>i&&!i.isOverflow))}_getDropdown(i){const s=this._getDropdownItems();return s.length>0?t("calcite-dropdown",{closeOnSelectDisabled:!0,disabled:void 0===this._layer,id:"solutions-more",onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:i=>this._moreDropdown=i},t("calcite-action",{appearance:"solid",id:i,label:"",onClick:()=>this._closeShowHide(),slot:"trigger",text:""},t("calcite-button",{appearance:"transparent",iconEnd:"chevron-down",kind:"neutral"},this._translations.more)),t("calcite-dropdown-group",{"selection-mode":"none"},s.map((i=>t("calcite-dropdown-group",{class:i.disabled?"disabled":"",selectionMode:i.disabled?"none":"single"},t("calcite-dropdown-item",{iconStart:i.isSublist&&this._showHideOpen?"chevron-down":i.icon,id:"solutions-subset-list",onClick:i.func},i.label))))),this._showHideOpen?this._getFieldlist():void 0):void 0}_getDropdownItems(){var i;return null===(i=this._toolInfos)||void 0===i?void 0:i.filter((i=>i&&i.isOverflow))}_getAction(i,s,e,h,o,a,l){const n=void 0===this._layer||a;return t("div",{class:"display-flex",id:this._getId(s),slot:l},t("calcite-action",{active:i,appearance:"solid",disabled:n,icon:s,id:s,indicator:e,label:h,onClick:o,text:h,textEnabled:!0}),this._getToolTip("bottom",s,h))}_getShare(i){return t("div",{class:"share-action",id:this._getId(i)},t("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"instant-app-share",embed:this.shareIncludeEmbed,popoverButtonIconScale:"s",ref:i=>this._shareNode=i,scale:"m",shareButtonColor:"neutral",shareButtonType:"action",socialMedia:this.shareIncludeSocial,view:this.mapView}),this._getToolTip("bottom",i,this._translations.share))}_updateShareUrl(){var i,t,s,e;const h=null===(i=this._shareNode)||void 0===i?void 0:i.shareUrl;if(!h)return;const o=new URL(h);if((null===(t=this.mapInfo)||void 0===t?void 0:t.id)?o.searchParams.set("webmap",this.mapInfo.id):o.searchParams.delete("webmap"),(null===(s=this._layer)||void 0===s?void 0:s.id)?o.searchParams.set("layer",this._layer.id):o.searchParams.delete("layer"),(null===(e=this.selectedIds)||void 0===e?void 0:e.length)>0?o.searchParams.set("oid",this.selectedIds.join(",")):o.searchParams.delete("oid"),this._filterActive){const i=JSON.parse(this._filterList.urlParams.get("filter")),t=this._filterList.layerExpressions.map((t=>(t.expressions=t.expressions.map((t=>(t.id.toString()===i.expressionId.toString()&&(t.active=!0),t))),t)));o.searchParams.set("filter",JSON.stringify(t))}else o.searchParams.delete("filter");this._shareNode.shareUrl=o.href}_getToolTip(i,s,e){return t("calcite-tooltip",{placement:i,"reference-element":s},t("span",null,e))}_getId(i){return`solutions-action-${i}`}_getDangerAction(i,s,e,h){const o=void 0===this._layer||h;return t("div",{class:"display-flex",id:this._getId(i)},"trash"===i?t("delete-button",{buttonType:"action",class:"display-flex",disabled:o,icon:i,ids:this._getIds(),layer:this._layer}):t("calcite-action",{appearance:"solid",disabled:o,id:i,onClick:e,text:""},t("calcite-button",{appearance:"transparent",iconStart:i,kind:"danger"},s)),this._getToolTip("bottom",i,s))}_getIds(){return this._table.highlightIds.toArray()}async _getTable(i,t){this._layer&&(await this._layer.when((()=>{this._table=new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,editingEnabled:this._editEnabled&&this.enableInlineEdit,highlightEnabled:!0,multiSortEnabled:!1,visibleElements:{header:!1,menu:!1},tableTemplate:{columnTemplates:t},container:i})})),this._initColumnsInfo(),this._checkEditEnabled(),await this._table.when((()=>{this._table.highlightIds.on("change",(i=>{this._handleOnChange(i)})),this.reactiveUtils.watch((()=>this._table.activeSortOrders),(i=>{var t,s,e,h;this._sortActive=!!this._layer&&(i.length>0&&"asc"===(null===(t=i[0])||void 0===t?void 0:t.direction)||"desc"===(null===(s=i[0])||void 0===s?void 0:s.direction)||null===(null===(e=i[0])||void 0===e?void 0:e.direction)&&(null===(h=i[0])||void 0===h?void 0:h.fieldName)===this._layer.objectIdField)}))})))}async _handleOnChange(i){const t=[...this._table.highlightIds.toArray()];if(this._skipOnChange)this._skipOnChange=!1;else{if(this._ctrlIsPressed||this._shiftIsPressed){if(this._ctrlIsPressed)this.selectedIds=t.reverse();else if(this._shiftIsPressed&&(this._skipOnChange=!0,this._previousCurrentId=this._currentId,this._currentId=[...this._table.highlightIds.toArray()].reverse()[0],this._previousCurrentId!==this._currentId)){const i=this._table.activeSortOrders.reduce(((i,t)=>(i.push(`${t.fieldName} ${t.direction}`),i)),[]),s=await c(this._layer,this._layer.definitionExpression,i);let e=!1;const h=this._table.viewModel.getObjectIdIndex(this._previousCurrentId),o=this._table.viewModel.getObjectIdIndex(this._currentId),a=h<o?h:o,l=o>h?o:h;this._skipOnChange=a+1!==l;const n=s.reduce(((i,t)=>{const s=t,h=this._table.viewModel.getObjectIdIndex(s);return s!==this._currentId&&s!==this._previousCurrentId||(e=!e,i.indexOf(s)<0&&i.push(s)),e&&i.indexOf(s)<0&&i.push(s),(this.selectedIds.indexOf(s)>-1||h>=a&&h<=l)&&i.indexOf(s)<0&&h>-1&&i.push(s),i}),[]);this.selectedIds=h<o?n.reverse():n,this._table.highlightIds.addMany(this.selectedIds.filter((i=>t.indexOf(i)<0)))}}else if(this.selectedIds.length>0){this._skipOnChange=!0;const s=this.selectedIds.length>1&&1===i.removed.length?i.removed:t.filter((i=>this.selectedIds.indexOf(i)<0));this._clearSelection(),this.selectedIds=[...s],s.length>0?this._table.highlightIds.add(s[0]):this._skipOnChange=!1}else this.selectedIds=t.reverse();this._finishOnChange()}this._currentId=[...this._table.highlightIds.toArray()].reverse()[0]}_finishOnChange(){this._showOnlySelected&&(this._featuresSelected()?this._table.filterBySelection():this._toggleShowSelected()),this.featureSelectionChange.emit(this.selectedIds)}async _resetTable(){var i;this._clearSelection(),this._allIds=[],this.featureSelectionChange.emit(this.selectedIds);const t=this._getColumnTemplates(this._layer.id,null===(i=this._layer)||void 0===i?void 0:i.fields);this._allIds=await r(this._layer),this._table?t&&(this._table.tableTemplate.columnTemplates=t):await this._getTable(this._tableNode,t),this._table.layer=this._layer,this._table.view=this.mapView,this._checkEditEnabled(),this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,this._initToolInfos(),await this._table.when((async()=>{var i,t;if(this._table.highlightIds.removeAll(),this._table.clearSelectionFilter(),this._initColumnsInfo(),!this._defaultOidHonored&&(null===(i=this.defaultOid)||void 0===i?void 0:i.length)>0&&this.defaultOid[0]>-1&&(this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0),!this._defaultGlobalIdHonored&&(null===(t=this.defaultGlobalId)||void 0===t?void 0:t.length)>0){const i=await v(this.defaultGlobalId,this._layer),t=(null==i?void 0:i.length)>0?i.map((i=>i.getObjectId())):void 0;t&&this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0}!this._defaultFilterHonored&&this.defaultFilter&&this._filterList&&(this._layerExpressions=this.defaultFilter,this._filterActive=!0,this._defaultFilterHonored=!0)})),this._showOnlySelected=!1,this._sortActive=!1,await this._sortTable()}_initColumnsInfo(){this._columnsInfo=this._table.columns.reduce(((i,t)=>(i[t.name]=!t.hidden,i)),{})}_selectDefaultFeature(i){i.length>0&&(this._table.highlightIds.addMany(i),this._table.when((()=>{const t=this._table.viewModel.getObjectIdIndex(i[0]);this._table.viewModel.scrollToIndex(t)})))}_checkEditEnabled(){this._editEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsUpdate,this._deleteEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsDelete}async _sortTable(){this._table&&this._layer&&!this._sortActive&&!this._tableSorting&&this.showNewestFirst&&(this._tableSorting=!0,await this._table.when(),await this._layer.when((()=>{this._table.sortColumn(this._layer.objectIdField,"desc"),this._tableSorting=!1})))}_forceShowHide(){this._showHideDropdown&&(this._showHideDropdown.open=this._showHideOpen),this._moreDropdown&&(this._moreDropdown.open=this._showHideOpen)}_toggleShowHide(){this._showHideOpen=!this._showHideOpen}_closeShowHide(){this._showHideOpen=!1}_handleDocumentClick(i){var t;const s=null===(t=i.target)||void 0===t?void 0:t.id;this._showHideOpen&&Object.keys(this._columnsInfo).indexOf(s)<0&&"solutions-subset-list"!==s&&"chevron-right"!==s&&(this._closeShowHide(),this._moreDropdown&&(this._moreDropdown.open=!1),this._showHideDropdown&&(this._showHideDropdown.open=!1))}_handleKeyDown(i){this._ctrlIsPressed=i.ctrlKey,this._shiftIsPressed=i.shiftKey}_handleKeyUp(i){this._ctrlIsPressed=i.ctrlKey,this._shiftIsPressed=i.shiftKey}_filterModal(){var i,s,e;return t("calcite-modal",{"aria-labelledby":"modal-title",class:"modal",kind:"brand",onCalciteModalClose:async()=>this._closeFilter(),open:this._filterOpen,widthScale:"s"},t("div",{class:"display-flex align-center",id:"modal-title",slot:"header"},null===(s=null===(i=this._translations)||void 0===i?void 0:i.filter)||void 0===s?void 0:s.replace("{{title}}",null===(e=this._layer)||void 0===e?void 0:e.title)),t("div",{slot:"content"},t("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:async()=>this._closeFilter(),layerExpressions:this._layerExpressions,onFilterListReset:()=>this._handleFilterListReset(),onFilterUpdate:()=>this._handleFilterUpdate(),ref:i=>this._filterList=i,view:this.mapView,zoomBtn:!1})))}_handleFilterListReset(){this._filterActive=!1,this._updateShareUrl()}_handleFilterUpdate(){this._filterActive=this._definitionExpression!==this._layer.definitionExpression,this._updateShareUrl()}async _closeFilter(){this._filterOpen&&(this._allIds=await r(this._layer),this._filterOpen=!1)}async _mapClicked(i){const t={include:this._layer},s=await this.mapView.hitTest(i.screenPoint,t);s.results.length>0&&(s.results.forEach((i=>{this._clearSelection();const t=i.graphic.getObjectId(),s=this._table.highlightIds.indexOf(t);s>-1?this._table.highlightIds.removeAt(s):this._table.highlightIds.add(t)})),this._showOnlySelected&&this._table.filterBySelection())}_selectAll(){const i=this._allIds;this._table.highlightIds.removeAll(),this._skipOnChange=!0,this._table.highlightIds.addMany(i),this.selectedIds=i,this._finishOnChange(),this._selectAllActive=!0}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._showOnlySelected?this._table.filterBySelection():this._table.clearSelectionFilter()}_clearSelection(){var i;this.selectedIds=[],null===(i=this._table)||void 0===i||i.highlightIds.removeAll(),this._finishOnChange()}_toggleFilter(){this._filterOpen=!this._filterOpen}_initLayerExpressions(){var i,t;const s=null===(t=null===(i=this.mapInfo)||void 0===i?void 0:i.filterConfig)||void 0===t?void 0:t.layerExpressions;this._layerExpressions=s?s.filter((i=>i.id===this._layer.id)):[],this._filterList.layerExpressions=this._layerExpressions,this._filterActive=!1}_switchSelected(){const i=[...this.selectedIds];this._table.highlightIds.removeAll();const t=this._allIds.reduce(((t,s)=>(i.indexOf(s)<0&&t.push(s),t)),[]).sort(((i,t)=>i-t));this._skipOnChange=!0,this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()}async _exportToCSV(){const i={},t=this._table.highlightIds.toArray();i[this._layer.id]={selectionSetNames:[this._layer.title],ids:t,layer:this._layer};const s=this._table.columns.toArray().reduce(((i,t)=>(t.hidden||i.push(t.name.toLocaleLowerCase()),i)),[]);p(null,i,!1,!1,!0,s)}async _refresh(){await this._table.refresh(),this.featureSelectionChange.emit(this.selectedIds)}_zoom(){this._table.zoomToSelection()}async _layerSelectionChanged(i){var t;const s=i.detail[0];if(s!==(null===(t=this._layer)||void 0===t?void 0:t.id)||this._featuresEmpty()){this._fetchingData=!0;const i=await n(this.mapView,s);await i.when((()=>{this._layer=i}))}this._fetchingData=!1}_getColumnTemplates(i,t){var s;let e;null===(s=this.mapInfo.layerInfos)||void 0===s||s.some((t=>{if(t.id===i)return e=t,!0}));let h=null==e?void 0:e.columnTemplates;return t&&(h=h?h.map((i=>(t.some((t=>{if(t.name===i.fieldName)return i.label=t.alias,i.menuConfig=this._getMenuConfig(t.name),!0})),i))):t.map((i=>({type:"field",fieldName:i.name,label:i.alias,menuConfig:this._getMenuConfig(i.name)})))),h}_getMenuConfig(i){return{items:[{label:this._translations.hideField,iconClass:"esri-icon-non-visible",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(i)}}]}}_handleHideClick(i){this._columnsInfo[i]=!1,this._table.hideColumn(i),this._table.tableTemplate.columnTemplates.forEach((t=>{t.fieldName===i&&(t.visible=!1)}))}async _getTranslations(){const i=await o(this.el);this._translations=i[0]}get el(){return e(this)}static get watchers(){return{enableCSV:["enableCSVWatchHandler"],enableInlineEdit:["enableInlineEditWatchHandler"],_controlsThatFit:["_controlsThatFitWatchHandler"],isMobile:["isMobileWatchHandler"],mapInfo:["mapInfoWatchHandler"],mapView:["mapViewWatchHandler"],_layer:["_layerWatchHandler"],_selectedIds:["_selectedIdsWatchHandler"],_sortActive:["_sortActiveWatchHandler"]}}};b.style=':host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir="rtl"] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{font-size:14px !important;color:var(--calcite-color-text-3) !important}.share-action{position:absolute;right:0}html[dir="rtl"] .share-action{left:0}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.instant-app-share{height:50px !important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding:0}';const m=class{constructor(t){i(this,t),this.mapChanged=h(this,"mapChanged",7),this.beforeMapChanged=h(this,"beforeMapChanged",7),this._defaultWebmapHonored=!1,this._loadedId="",this.defaultWebmapId="",this.enableHome=void 0,this.enableLegend=void 0,this.enableFloorFilter=void 0,this.enableFullscreen=void 0,this.enableSingleExpand=!0,this.enableSearch=void 0,this.enableBasemap=void 0,this.basemapConfig=void 0,this.hidden=void 0,this.homeZoomIndex=3,this.homeZoomPosition="top-left",this.homeZoomToolsSize="m",this.mapInfos=[],this.mapWidgetsIndex=0,this.mapWidgetsPosition="top-right",this.mapWidgetsSize="m",this.mapView=void 0,this.stackTools=!0,this.theme=void 0,this.toolOrder=void 0,this._searchConfiguration=void 0,this._webMapInfo=void 0}enableHomeWatchHandler(){this._initHome()}async mapInfoChange(i){await this._loadMap(i.detail)}async componentWillLoad(){await this._initModules()}render(){var i,e;const h=this.hidden?"visibility-hidden":"",o="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light",a=(null===(i=this.mapInfos)||void 0===i?void 0:i.length)>1?"":"display-none",l=(null===(e=this.mapInfos)||void 0===e?void 0:e.length)>1?"map-height":"height-full";return t(s,null,t("map-picker",{class:a,mapInfos:this.mapInfos,ref:i=>this._mapPicker=i}),t("div",{class:`${l} ${h}`,ref:i=>this._mapDiv=i}),t("map-tools",{basemapConfig:this.basemapConfig,class:`box-shadow ${o}`,enableBasemap:this.enableBasemap,enableFloorFilter:this.enableFloorFilter,enableFullscreen:this.enableFullscreen,enableHome:this.enableHome,enableLegend:this.enableLegend,enableSearch:this.enableSearch,enableSingleExpand:this.enableSingleExpand,homeZoomToolsSize:this.homeZoomToolsSize,mapView:this.mapView,mapWidgetsSize:this.mapWidgetsSize,position:this.mapWidgetsPosition,ref:i=>this._mapTools=i,searchConfiguration:this._searchConfiguration,stackTools:this.stackTools,toolOrder:this.toolOrder}))}async _initModules(){const[i,t,s]=await a(["esri/WebMap","esri/views/MapView","esri/widgets/Home"]);this.WebMap=i,this.MapView=t,this.Home=s}async _loadMap(i){var t;const s=!this._defaultWebmapHonored&&this.defaultWebmapId,e=null===(t=this.mapInfos)||void 0===t?void 0:t.filter((i=>i.id===this.defaultWebmapId)),h=JSON.stringify(i)!==JSON.stringify(this._webMapInfo);this._webMapInfo=s&&e?e[0]:!(null==i?void 0:i.id)&&this.mapInfos.length>0?this.mapInfos[0]:i;const o=this._webMapInfo.id,a=s&&(null==i?void 0:i.id)===this.defaultWebmapId;if(this._loadedId!==o&&!s||a){const i=new this.WebMap({portalItem:{id:o}});this.mapView=new this.MapView({container:this._mapDiv,map:i,resizeAlign:"center"}),this._loadedId=o,this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),await this.mapView.when((()=>{this._initHome(),this.mapView.ui.add(this._mapTools,{position:this.mapWidgetsPosition,index:this.mapWidgetsIndex}),this._defaultWebmapHonored=!!a||this._defaultWebmapHonored,this.mapChanged.emit({id:o,mapView:this.mapView})}))}else s?(this._defaultWebmapHonored=!0,this._mapPicker.setMapByID(o)):h&&(this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapChanged.emit({id:o,mapView:this.mapView}))}_initHome(){if(this.enableHome){this._homeWidget=new this.Home({view:this.mapView}),this.mapView.ui.add(this._homeWidget,{position:this.homeZoomPosition,index:this.homeZoomIndex});const i="s"===this.homeZoomToolsSize?"32px":"m"===this.homeZoomToolsSize?"40px":"48px";this._homeWidget.domNode.style.height=i,this._homeWidget.domNode.style.width=i}else this._homeWidget&&this.mapView.ui.remove(this._homeWidget)}get el(){return e(this)}static get watchers(){return{enableHome:["enableHomeWatchHandler"]}}};m.style=":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.map-height{height:calc(100% - 51px)}.height-full{height:100%}.box-shadow{box-shadow:none !important}.visibility-hidden{visibility:hidden}.display-none{display:none}";export{u as card_manager,b as layer_table,m as map_card}
@@ -1,6 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as i,h as e,H as s,g as a}from"./p-78780f63.js";import{g as h}from"./p-e902ba19.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";const o=class{constructor(e){t(this,e),this.togglePanel=i(this,"togglePanel",7),this.description=void 0,this.isMobile=void 0,this.enableAnonymousAccess=void 0,this.enableAnonymousComments=void 0,this.enableComments=void 0,this.enableLogin=void 0,this.enableNewReports=void 0,this.layers=void 0,this.loginTitle=void 0,this.mapView=void 0,this.reportButtonText=void 0,this.reportsHeader=void 0,this.reportSubmittedMessage=void 0,this.searchConfiguration=void 0,this.showComments=void 0,this.defaultWebmap="",this.enableSearch=!0,this.enableHome=!0,this.mapInfos=[],this.theme="light",this.enableZoom=!0,this._mapInfo=void 0,this._flowItems=["layer-list"],this._sidePanelCollapsed=!1,this._translations=void 0,this._hasValidLayers=!1}async isMobileWatchHandler(){this._sidePanelCollapsed=!1}async mapViewWatchHandler(){await this.mapView.when((async()=>{await this.setMapView()}))}async componentWillLoad(){await this._getTranslations()}render(){return e(s,null,e("div",null,e("calcite-shell",{"content-behind":!0},this._getReporter())))}_getReporter(){const t=[];return this._flowItems.forEach((i=>{switch(i){case"layer-list":t.push(this.getLayerListFlowItem());break;case"feature-list":t.push(this.getFeatureListFlowItem(this._selectedLayerId,this._selectedLayerName));break;case"feature-details":t.push(this.getFeatureDetailsFlowItem())}})),e("calcite-panel",{class:"width-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},this.mapView?e("calcite-flow",null,(null==t?void 0:t.length)>0&&t):e("calcite-loader",{scale:"m"}))}getLayerListFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportsHeader},this._hasValidLayers&&e("calcite-action",{icon:"sort-ascending-arrow",slot:this.isMobile?"header-menu-actions":"header-actions-end",text:this._translations.sort,"text-enabled":this.isMobile}),this._hasValidLayers&&e("calcite-action",{icon:"filter",slot:this.isMobile?"header-menu-actions":"header-actions-end",text:this._translations.filter,"text-enabled":this.isMobile}),this.isMobile&&this.getActionToExpandCollapsePanel(),this._hasValidLayers&&this.enableNewReports&&e("calcite-button",{appearance:"secondary",slot:"footer",width:"full"},this.reportButtonText),e("calcite-panel",{"full-height":!0,"full-width":!0},e("layer-list",{class:"height-full",layers:this.layers,mapView:this.mapView,noLayerErrorMsg:this._translations.noLayerToDisplayErrorMsg,onLayerSelect:this.displayFeaturesList.bind(this),onLayersListLoaded:this.layerListLoaded.bind(this)})))}layerListLoaded(t){this._hasValidLayers=t.detail.length>0}displayFeaturesList(t){this._selectedLayerId=t.detail.layerId,this._selectedLayerName=t.detail.layerName,this._flowItems=[...this._flowItems,"feature-list"]}backFromFeatureList(){const t=[...this._flowItems];t.pop(),this._flowItems=[...t]}toggleSidePanel(){this._sidePanelCollapsed=!this._sidePanelCollapsed,this.togglePanel.emit(this._sidePanelCollapsed)}async onFeatureSelectFromList(t){this._selectedFeature=[t.detail],this._flowItems=[...this._flowItems,"feature-details"]}getFeatureListFlowItem(t,i){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:i,onCalciteFlowItemBack:this.backFromFeatureList.bind(this)},e("calcite-action",{icon:"sort-ascending-arrow",slot:this.isMobile?"header-menu-actions":"header-actions-end",text:this._translations.sort,"text-enabled":this.isMobile}),e("calcite-action",{icon:"filter",slot:this.isMobile?"header-menu-actions":"header-actions-end",text:this._translations.filter,"text-enabled":this.isMobile}),this.isMobile&&this.getActionToExpandCollapsePanel(),this.enableNewReports&&e("calcite-button",{appearance:"secondary",slot:"footer",width:"full"},this.reportButtonText),e("calcite-panel",{"full-height":!0},e("feature-list",{class:"height-full",highlightOnMap:!0,mapView:this.mapView,noFeaturesFoundMsg:this._translations.featureErrorMsg,onFeatureSelect:this.onFeatureSelectFromList.bind(this),pageSize:30,selectedLayerId:t})))}getFeatureDetailsFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,onCalciteFlowItemBack:this.backFromFeatureList.bind(this)},this.isMobile&&this.getActionToExpandCollapsePanel(),e("calcite-action",{icon:"share",slot:"header-actions-end",text:this._translations.share}),e("calcite-panel",{"full-height":!0},e("info-card",{allowEditing:!1,graphics:this._selectedFeature,isLoading:!1,isMobile:!1,mapView:this.mapView,zoomAndScrollToSelected:!0})))}getActionToExpandCollapsePanel(){return e("calcite-action",{icon:this._sidePanelCollapsed?"chevrons-up":"chevrons-down",onClick:this.toggleSidePanel.bind(this),slot:"header-actions-end",text:this._sidePanelCollapsed?this._translations.expand:this._translations.collapse})}async setMapView(){this.mapView.popupEnabled=!1,this._defaultCenter&&this._defaultLevel&&(await this.mapView.goTo({center:this._defaultCenter,zoom:this._defaultLevel}),this._defaultCenter=void 0,this._defaultLevel=void 0)}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}get el(){return a(this)}static get watchers(){return{isMobile:["isMobileWatchHandler"],mapView:["mapViewWatchHandler"]}}};o.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.error-msg{padding:10px}";export{o as crowdsource_reporter}