@esri/solutions-components 0.10.38 → 0.10.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (842) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +26 -6
  2. package/dist/cjs/buffer-tools_3.cjs.entry.js +23 -3
  3. package/dist/cjs/calcite-alert_5.cjs.entry.js +40 -5
  4. package/dist/cjs/calcite-combobox_3.cjs.entry.js +11 -1
  5. package/dist/cjs/calcite-flow_4.cjs.entry.js +33 -10
  6. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +119 -10
  7. package/dist/cjs/calcite-shell_3.cjs.entry.js +26 -4
  8. package/dist/cjs/card-manager_3.cjs.entry.js +41 -9
  9. package/dist/cjs/consent-manager.cjs.entry.js +12 -0
  10. package/dist/cjs/crowdsource-manager.cjs.entry.js +13 -14
  11. package/dist/cjs/crowdsource-reporter.cjs.entry.js +19 -9
  12. package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
  13. package/dist/cjs/feature-list.cjs.entry.js +13 -3
  14. package/dist/cjs/loader.cjs.js +1 -1
  15. package/dist/cjs/map-select-tools_3.cjs.entry.js +38 -6
  16. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  17. package/dist/cjs/public-notification.cjs.entry.js +11 -2
  18. package/dist/cjs/share-item.cjs.entry.js +1 -1
  19. package/dist/cjs/solution-configuration.cjs.entry.js +20 -5
  20. package/dist/cjs/solution-contents_3.cjs.entry.js +37 -7
  21. package/dist/cjs/solution-item-accordion.cjs.entry.js +11 -1
  22. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  23. package/dist/cjs/solutions-components.cjs.js +1 -1
  24. package/dist/cjs/spatial-ref.cjs.entry.js +16 -1
  25. package/dist/collection/assets/t9n/card-manager/resources_ar.json +1 -1
  26. package/dist/collection/assets/t9n/card-manager/resources_bg.json +1 -1
  27. package/dist/collection/assets/t9n/card-manager/resources_bs.json +1 -1
  28. package/dist/collection/assets/t9n/card-manager/resources_ca.json +1 -1
  29. package/dist/collection/assets/t9n/card-manager/resources_cs.json +1 -1
  30. package/dist/collection/assets/t9n/card-manager/resources_da.json +1 -1
  31. package/dist/collection/assets/t9n/card-manager/resources_de.json +1 -1
  32. package/dist/collection/assets/t9n/card-manager/resources_el.json +1 -1
  33. package/dist/collection/assets/t9n/card-manager/resources_es.json +1 -1
  34. package/dist/collection/assets/t9n/card-manager/resources_et.json +1 -1
  35. package/dist/collection/assets/t9n/card-manager/resources_fi.json +1 -1
  36. package/dist/collection/assets/t9n/card-manager/resources_fr.json +1 -1
  37. package/dist/collection/assets/t9n/card-manager/resources_he.json +1 -1
  38. package/dist/collection/assets/t9n/card-manager/resources_hr.json +1 -1
  39. package/dist/collection/assets/t9n/card-manager/resources_hu.json +1 -1
  40. package/dist/collection/assets/t9n/card-manager/resources_id.json +1 -1
  41. package/dist/collection/assets/t9n/card-manager/resources_it.json +1 -1
  42. package/dist/collection/assets/t9n/card-manager/resources_ja.json +1 -1
  43. package/dist/collection/assets/t9n/card-manager/resources_ko.json +1 -1
  44. package/dist/collection/assets/t9n/card-manager/resources_lt.json +1 -1
  45. package/dist/collection/assets/t9n/card-manager/resources_lv.json +1 -1
  46. package/dist/collection/assets/t9n/card-manager/resources_nb.json +1 -1
  47. package/dist/collection/assets/t9n/card-manager/resources_nl.json +1 -1
  48. package/dist/collection/assets/t9n/card-manager/resources_pl.json +1 -1
  49. package/dist/collection/assets/t9n/card-manager/resources_pt-BR.json +1 -1
  50. package/dist/collection/assets/t9n/card-manager/resources_pt-PT.json +1 -1
  51. package/dist/collection/assets/t9n/card-manager/resources_ro.json +1 -1
  52. package/dist/collection/assets/t9n/card-manager/resources_ru.json +1 -1
  53. package/dist/collection/assets/t9n/card-manager/resources_sk.json +1 -1
  54. package/dist/collection/assets/t9n/card-manager/resources_sl.json +1 -1
  55. package/dist/collection/assets/t9n/card-manager/resources_sr.json +1 -1
  56. package/dist/collection/assets/t9n/card-manager/resources_sv.json +1 -1
  57. package/dist/collection/assets/t9n/card-manager/resources_th.json +1 -1
  58. package/dist/collection/assets/t9n/card-manager/resources_tr.json +1 -1
  59. package/dist/collection/assets/t9n/card-manager/resources_uk.json +1 -1
  60. package/dist/collection/assets/t9n/card-manager/resources_vi.json +1 -1
  61. package/dist/collection/assets/t9n/card-manager/resources_zh-CN.json +1 -1
  62. package/dist/collection/assets/t9n/card-manager/resources_zh-HK.json +1 -1
  63. package/dist/collection/assets/t9n/card-manager/resources_zh-TW.json +1 -1
  64. package/dist/collection/assets/t9n/create-feature/resources_ar.json +1 -1
  65. package/dist/collection/assets/t9n/create-feature/resources_bg.json +1 -1
  66. package/dist/collection/assets/t9n/create-feature/resources_bs.json +1 -1
  67. package/dist/collection/assets/t9n/create-feature/resources_ca.json +1 -1
  68. package/dist/collection/assets/t9n/create-feature/resources_cs.json +1 -1
  69. package/dist/collection/assets/t9n/create-feature/resources_da.json +1 -1
  70. package/dist/collection/assets/t9n/create-feature/resources_de.json +1 -1
  71. package/dist/collection/assets/t9n/create-feature/resources_el.json +1 -1
  72. package/dist/collection/assets/t9n/create-feature/resources_es.json +1 -1
  73. package/dist/collection/assets/t9n/create-feature/resources_et.json +1 -1
  74. package/dist/collection/assets/t9n/create-feature/resources_fi.json +1 -1
  75. package/dist/collection/assets/t9n/create-feature/resources_fr.json +1 -1
  76. package/dist/collection/assets/t9n/create-feature/resources_he.json +1 -1
  77. package/dist/collection/assets/t9n/create-feature/resources_hr.json +1 -1
  78. package/dist/collection/assets/t9n/create-feature/resources_hu.json +1 -1
  79. package/dist/collection/assets/t9n/create-feature/resources_id.json +1 -1
  80. package/dist/collection/assets/t9n/create-feature/resources_it.json +1 -1
  81. package/dist/collection/assets/t9n/create-feature/resources_ja.json +1 -1
  82. package/dist/collection/assets/t9n/create-feature/resources_ko.json +1 -1
  83. package/dist/collection/assets/t9n/create-feature/resources_lt.json +1 -1
  84. package/dist/collection/assets/t9n/create-feature/resources_lv.json +1 -1
  85. package/dist/collection/assets/t9n/create-feature/resources_nb.json +1 -1
  86. package/dist/collection/assets/t9n/create-feature/resources_nl.json +1 -1
  87. package/dist/collection/assets/t9n/create-feature/resources_pl.json +1 -1
  88. package/dist/collection/assets/t9n/create-feature/resources_pt-BR.json +2 -2
  89. package/dist/collection/assets/t9n/create-feature/resources_pt-PT.json +1 -1
  90. package/dist/collection/assets/t9n/create-feature/resources_ro.json +1 -1
  91. package/dist/collection/assets/t9n/create-feature/resources_ru.json +1 -1
  92. package/dist/collection/assets/t9n/create-feature/resources_sk.json +1 -1
  93. package/dist/collection/assets/t9n/create-feature/resources_sl.json +1 -1
  94. package/dist/collection/assets/t9n/create-feature/resources_sr.json +1 -1
  95. package/dist/collection/assets/t9n/create-feature/resources_sv.json +1 -1
  96. package/dist/collection/assets/t9n/create-feature/resources_th.json +1 -1
  97. package/dist/collection/assets/t9n/create-feature/resources_tr.json +1 -1
  98. package/dist/collection/assets/t9n/create-feature/resources_uk.json +1 -1
  99. package/dist/collection/assets/t9n/create-feature/resources_vi.json +1 -1
  100. package/dist/collection/assets/t9n/create-feature/resources_zh-CN.json +1 -1
  101. package/dist/collection/assets/t9n/create-feature/resources_zh-HK.json +1 -1
  102. package/dist/collection/assets/t9n/create-feature/resources_zh-TW.json +1 -1
  103. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ar.json +1 -1
  104. package/dist/collection/assets/t9n/crowdsource-reporter/resources_bg.json +1 -1
  105. package/dist/collection/assets/t9n/crowdsource-reporter/resources_bs.json +1 -1
  106. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ca.json +1 -1
  107. package/dist/collection/assets/t9n/crowdsource-reporter/resources_cs.json +1 -1
  108. package/dist/collection/assets/t9n/crowdsource-reporter/resources_da.json +1 -1
  109. package/dist/collection/assets/t9n/crowdsource-reporter/resources_de.json +1 -1
  110. package/dist/collection/assets/t9n/crowdsource-reporter/resources_el.json +1 -1
  111. package/dist/collection/assets/t9n/crowdsource-reporter/resources_es.json +1 -1
  112. package/dist/collection/assets/t9n/crowdsource-reporter/resources_et.json +1 -1
  113. package/dist/collection/assets/t9n/crowdsource-reporter/resources_fi.json +1 -1
  114. package/dist/collection/assets/t9n/crowdsource-reporter/resources_fr.json +1 -1
  115. package/dist/collection/assets/t9n/crowdsource-reporter/resources_he.json +1 -1
  116. package/dist/collection/assets/t9n/crowdsource-reporter/resources_hr.json +1 -1
  117. package/dist/collection/assets/t9n/crowdsource-reporter/resources_hu.json +1 -1
  118. package/dist/collection/assets/t9n/crowdsource-reporter/resources_id.json +1 -1
  119. package/dist/collection/assets/t9n/crowdsource-reporter/resources_it.json +1 -1
  120. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ja.json +1 -1
  121. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ko.json +1 -1
  122. package/dist/collection/assets/t9n/crowdsource-reporter/resources_lt.json +1 -1
  123. package/dist/collection/assets/t9n/crowdsource-reporter/resources_lv.json +1 -1
  124. package/dist/collection/assets/t9n/crowdsource-reporter/resources_nb.json +1 -1
  125. package/dist/collection/assets/t9n/crowdsource-reporter/resources_nl.json +1 -1
  126. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pl.json +1 -1
  127. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pt-BR.json +1 -1
  128. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pt-PT.json +1 -1
  129. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ro.json +1 -1
  130. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ru.json +1 -1
  131. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sk.json +1 -1
  132. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sl.json +1 -1
  133. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sr.json +1 -1
  134. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sv.json +1 -1
  135. package/dist/collection/assets/t9n/crowdsource-reporter/resources_th.json +1 -1
  136. package/dist/collection/assets/t9n/crowdsource-reporter/resources_tr.json +1 -1
  137. package/dist/collection/assets/t9n/crowdsource-reporter/resources_uk.json +1 -1
  138. package/dist/collection/assets/t9n/crowdsource-reporter/resources_vi.json +1 -1
  139. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-CN.json +1 -1
  140. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-HK.json +1 -1
  141. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-TW.json +1 -1
  142. package/dist/collection/assets/t9n/feature-list/resources_ar.json +2 -2
  143. package/dist/collection/assets/t9n/feature-list/resources_bg.json +2 -2
  144. package/dist/collection/assets/t9n/feature-list/resources_bs.json +2 -2
  145. package/dist/collection/assets/t9n/feature-list/resources_ca.json +2 -2
  146. package/dist/collection/assets/t9n/feature-list/resources_cs.json +2 -2
  147. package/dist/collection/assets/t9n/feature-list/resources_da.json +2 -2
  148. package/dist/collection/assets/t9n/feature-list/resources_de.json +2 -2
  149. package/dist/collection/assets/t9n/feature-list/resources_el.json +2 -2
  150. package/dist/collection/assets/t9n/feature-list/resources_es.json +2 -2
  151. package/dist/collection/assets/t9n/feature-list/resources_et.json +2 -2
  152. package/dist/collection/assets/t9n/feature-list/resources_fi.json +2 -2
  153. package/dist/collection/assets/t9n/feature-list/resources_fr.json +2 -2
  154. package/dist/collection/assets/t9n/feature-list/resources_he.json +2 -2
  155. package/dist/collection/assets/t9n/feature-list/resources_hr.json +2 -2
  156. package/dist/collection/assets/t9n/feature-list/resources_hu.json +2 -2
  157. package/dist/collection/assets/t9n/feature-list/resources_id.json +2 -2
  158. package/dist/collection/assets/t9n/feature-list/resources_it.json +2 -2
  159. package/dist/collection/assets/t9n/feature-list/resources_ja.json +2 -2
  160. package/dist/collection/assets/t9n/feature-list/resources_ko.json +2 -2
  161. package/dist/collection/assets/t9n/feature-list/resources_lt.json +2 -2
  162. package/dist/collection/assets/t9n/feature-list/resources_lv.json +2 -2
  163. package/dist/collection/assets/t9n/feature-list/resources_nb.json +2 -2
  164. package/dist/collection/assets/t9n/feature-list/resources_nl.json +2 -2
  165. package/dist/collection/assets/t9n/feature-list/resources_pl.json +2 -2
  166. package/dist/collection/assets/t9n/feature-list/resources_pt-BR.json +2 -2
  167. package/dist/collection/assets/t9n/feature-list/resources_pt-PT.json +2 -2
  168. package/dist/collection/assets/t9n/feature-list/resources_ro.json +2 -2
  169. package/dist/collection/assets/t9n/feature-list/resources_ru.json +2 -2
  170. package/dist/collection/assets/t9n/feature-list/resources_sk.json +2 -2
  171. package/dist/collection/assets/t9n/feature-list/resources_sl.json +2 -2
  172. package/dist/collection/assets/t9n/feature-list/resources_sr.json +2 -2
  173. package/dist/collection/assets/t9n/feature-list/resources_sv.json +2 -2
  174. package/dist/collection/assets/t9n/feature-list/resources_th.json +2 -2
  175. package/dist/collection/assets/t9n/feature-list/resources_tr.json +2 -2
  176. package/dist/collection/assets/t9n/feature-list/resources_uk.json +2 -2
  177. package/dist/collection/assets/t9n/feature-list/resources_vi.json +2 -2
  178. package/dist/collection/assets/t9n/feature-list/resources_zh-CN.json +2 -2
  179. package/dist/collection/assets/t9n/feature-list/resources_zh-HK.json +2 -2
  180. package/dist/collection/assets/t9n/feature-list/resources_zh-TW.json +2 -2
  181. package/dist/collection/assets/t9n/layer-table/resources_ar.json +1 -1
  182. package/dist/collection/assets/t9n/layer-table/resources_bg.json +1 -1
  183. package/dist/collection/assets/t9n/layer-table/resources_bs.json +1 -1
  184. package/dist/collection/assets/t9n/layer-table/resources_ca.json +1 -1
  185. package/dist/collection/assets/t9n/layer-table/resources_cs.json +1 -1
  186. package/dist/collection/assets/t9n/layer-table/resources_da.json +1 -1
  187. package/dist/collection/assets/t9n/layer-table/resources_de.json +1 -1
  188. package/dist/collection/assets/t9n/layer-table/resources_el.json +1 -1
  189. package/dist/collection/assets/t9n/layer-table/resources_es.json +1 -1
  190. package/dist/collection/assets/t9n/layer-table/resources_et.json +1 -1
  191. package/dist/collection/assets/t9n/layer-table/resources_fi.json +1 -1
  192. package/dist/collection/assets/t9n/layer-table/resources_fr.json +1 -1
  193. package/dist/collection/assets/t9n/layer-table/resources_he.json +1 -1
  194. package/dist/collection/assets/t9n/layer-table/resources_hr.json +1 -1
  195. package/dist/collection/assets/t9n/layer-table/resources_hu.json +1 -1
  196. package/dist/collection/assets/t9n/layer-table/resources_id.json +1 -1
  197. package/dist/collection/assets/t9n/layer-table/resources_it.json +1 -1
  198. package/dist/collection/assets/t9n/layer-table/resources_ja.json +1 -1
  199. package/dist/collection/assets/t9n/layer-table/resources_ko.json +1 -1
  200. package/dist/collection/assets/t9n/layer-table/resources_lt.json +1 -1
  201. package/dist/collection/assets/t9n/layer-table/resources_lv.json +1 -1
  202. package/dist/collection/assets/t9n/layer-table/resources_nb.json +1 -1
  203. package/dist/collection/assets/t9n/layer-table/resources_nl.json +1 -1
  204. package/dist/collection/assets/t9n/layer-table/resources_pl.json +1 -1
  205. package/dist/collection/assets/t9n/layer-table/resources_pt-BR.json +1 -1
  206. package/dist/collection/assets/t9n/layer-table/resources_pt-PT.json +1 -1
  207. package/dist/collection/assets/t9n/layer-table/resources_ro.json +1 -1
  208. package/dist/collection/assets/t9n/layer-table/resources_ru.json +1 -1
  209. package/dist/collection/assets/t9n/layer-table/resources_sk.json +1 -1
  210. package/dist/collection/assets/t9n/layer-table/resources_sl.json +1 -1
  211. package/dist/collection/assets/t9n/layer-table/resources_sr.json +1 -1
  212. package/dist/collection/assets/t9n/layer-table/resources_sv.json +1 -1
  213. package/dist/collection/assets/t9n/layer-table/resources_th.json +1 -1
  214. package/dist/collection/assets/t9n/layer-table/resources_tr.json +1 -1
  215. package/dist/collection/assets/t9n/layer-table/resources_uk.json +1 -1
  216. package/dist/collection/assets/t9n/layer-table/resources_vi.json +1 -1
  217. package/dist/collection/assets/t9n/layer-table/resources_zh-CN.json +1 -1
  218. package/dist/collection/assets/t9n/layer-table/resources_zh-HK.json +1 -1
  219. package/dist/collection/assets/t9n/layer-table/resources_zh-TW.json +1 -1
  220. package/dist/collection/assets/t9n/map-card/resources_ar.json +2 -1
  221. package/dist/collection/assets/t9n/map-card/resources_bg.json +2 -1
  222. package/dist/collection/assets/t9n/map-card/resources_bs.json +2 -1
  223. package/dist/collection/assets/t9n/map-card/resources_ca.json +2 -1
  224. package/dist/collection/assets/t9n/map-card/resources_cs.json +2 -1
  225. package/dist/collection/assets/t9n/map-card/resources_da.json +2 -1
  226. package/dist/collection/assets/t9n/map-card/resources_de.json +2 -1
  227. package/dist/collection/assets/t9n/map-card/resources_el.json +2 -1
  228. package/dist/collection/assets/t9n/map-card/resources_es.json +2 -1
  229. package/dist/collection/assets/t9n/map-card/resources_et.json +2 -1
  230. package/dist/collection/assets/t9n/map-card/resources_fi.json +2 -1
  231. package/dist/collection/assets/t9n/map-card/resources_fr.json +2 -1
  232. package/dist/collection/assets/t9n/map-card/resources_he.json +2 -1
  233. package/dist/collection/assets/t9n/map-card/resources_hr.json +2 -1
  234. package/dist/collection/assets/t9n/map-card/resources_hu.json +2 -1
  235. package/dist/collection/assets/t9n/map-card/resources_id.json +2 -1
  236. package/dist/collection/assets/t9n/map-card/resources_it.json +2 -1
  237. package/dist/collection/assets/t9n/map-card/resources_ja.json +2 -1
  238. package/dist/collection/assets/t9n/map-card/resources_ko.json +2 -1
  239. package/dist/collection/assets/t9n/map-card/resources_lt.json +2 -1
  240. package/dist/collection/assets/t9n/map-card/resources_lv.json +2 -1
  241. package/dist/collection/assets/t9n/map-card/resources_nb.json +2 -1
  242. package/dist/collection/assets/t9n/map-card/resources_nl.json +2 -1
  243. package/dist/collection/assets/t9n/map-card/resources_pl.json +2 -1
  244. package/dist/collection/assets/t9n/map-card/resources_pt-BR.json +2 -1
  245. package/dist/collection/assets/t9n/map-card/resources_pt-PT.json +2 -1
  246. package/dist/collection/assets/t9n/map-card/resources_ro.json +2 -1
  247. package/dist/collection/assets/t9n/map-card/resources_ru.json +2 -1
  248. package/dist/collection/assets/t9n/map-card/resources_sk.json +2 -1
  249. package/dist/collection/assets/t9n/map-card/resources_sl.json +2 -1
  250. package/dist/collection/assets/t9n/map-card/resources_sr.json +2 -1
  251. package/dist/collection/assets/t9n/map-card/resources_sv.json +2 -1
  252. package/dist/collection/assets/t9n/map-card/resources_th.json +2 -1
  253. package/dist/collection/assets/t9n/map-card/resources_tr.json +2 -1
  254. package/dist/collection/assets/t9n/map-card/resources_uk.json +2 -1
  255. package/dist/collection/assets/t9n/map-card/resources_vi.json +2 -1
  256. package/dist/collection/assets/t9n/map-card/resources_zh-CN.json +2 -1
  257. package/dist/collection/assets/t9n/map-card/resources_zh-HK.json +2 -1
  258. package/dist/collection/assets/t9n/map-card/resources_zh-TW.json +2 -1
  259. package/dist/collection/collection-manifest.json +0 -7
  260. package/dist/collection/components/buffer-tools/buffer-tools.js +30 -1
  261. package/dist/collection/components/card-manager/card-manager.js +34 -2
  262. package/dist/collection/components/consent-manager/consent-manager.js +32 -0
  263. package/dist/collection/components/create-feature/create-feature.js +31 -2
  264. package/dist/collection/components/create-related-feature/create-related-feature.js +30 -1
  265. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +21 -23
  266. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +38 -9
  267. package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
  268. package/dist/collection/components/delete-button/delete-button.js +31 -2
  269. package/dist/collection/components/delete-dialog/delete-dialog.js +33 -1
  270. package/dist/collection/components/edit-card/edit-card.js +30 -1
  271. package/dist/collection/components/feature-details/feature-details.js +24 -6
  272. package/dist/collection/components/feature-list/feature-list.js +32 -3
  273. package/dist/collection/components/floor-filter/floor-filter.js +1 -1
  274. package/dist/collection/components/info-card/info-card.js +36 -2
  275. package/dist/collection/components/json-editor/json-editor.js +38 -1
  276. package/dist/collection/components/layer-list/layer-list.js +35 -3
  277. package/dist/collection/components/layer-table/layer-table.js +34 -5
  278. package/dist/collection/components/map-card/map-card.js +31 -2
  279. package/dist/collection/components/map-draw-tools/map-draw-tools.js +30 -1
  280. package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
  281. package/dist/collection/components/map-layer-picker/map-layer-picker.js +30 -1
  282. package/dist/collection/components/map-legend/map-legend.js +1 -1
  283. package/dist/collection/components/map-picker/map-picker.js +30 -1
  284. package/dist/collection/components/map-search/map-search.js +1 -1
  285. package/dist/collection/components/map-select-tools/map-select-tools.js +15 -4
  286. package/dist/collection/components/map-tools/map-tools.js +30 -1
  287. package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
  288. package/dist/collection/components/pdf-download/pdf-download.js +33 -1
  289. package/dist/collection/components/public-notification/public-notification.js +13 -2
  290. package/dist/collection/components/refine-selection/refine-selection.js +15 -1
  291. package/dist/collection/components/share-item/share-item.js +1 -1
  292. package/dist/collection/components/solution-configuration/solution-configuration.js +38 -4
  293. package/dist/collection/components/solution-contents/solution-contents.js +1 -1
  294. package/dist/collection/components/solution-item/solution-item.js +37 -3
  295. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +30 -1
  296. package/dist/collection/components/solution-item-details/solution-item-details.js +38 -1
  297. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  298. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +35 -1
  299. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +35 -1
  300. package/dist/collection/components/solution-resource-item/solution-resource-item.js +35 -1
  301. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +35 -1
  302. package/dist/collection/components/solution-template-data/solution-template-data.js +35 -1
  303. package/dist/collection/components/solution-variables/solution-variables.js +35 -1
  304. package/dist/collection/components/spatial-ref/spatial-ref.js +35 -1
  305. package/dist/collection/demos/crowdsource-manager.html +0 -1
  306. package/dist/collection/demos/crowdsource-reporter.html +2 -2
  307. package/dist/components/buffer-tools2.js +15 -3
  308. package/dist/components/card-manager2.js +18 -3
  309. package/dist/components/consent-manager.js +15 -0
  310. package/dist/components/create-feature2.js +14 -2
  311. package/dist/components/create-related-feature2.js +13 -1
  312. package/dist/components/crowdsource-manager.js +15 -16
  313. package/dist/components/crowdsource-reporter.js +21 -9
  314. package/dist/components/deduct-calculator2.js +1 -1
  315. package/dist/components/delete-button2.js +16 -4
  316. package/dist/components/delete-dialog2.js +16 -1
  317. package/dist/components/edit-card2.js +13 -1
  318. package/dist/components/feature-details2.js +8 -6
  319. package/dist/components/feature-list2.js +15 -3
  320. package/dist/components/floor-filter2.js +1 -1
  321. package/dist/components/info-card2.js +19 -2
  322. package/dist/components/json-editor2.js +21 -1
  323. package/dist/components/layer-list2.js +18 -3
  324. package/dist/components/layer-table2.js +17 -5
  325. package/dist/components/map-card2.js +14 -2
  326. package/dist/components/map-draw-tools2.js +13 -1
  327. package/dist/components/map-fullscreen2.js +1 -1
  328. package/dist/components/map-layer-picker2.js +13 -1
  329. package/dist/components/map-legend2.js +1 -1
  330. package/dist/components/map-picker2.js +13 -1
  331. package/dist/components/map-search2.js +1 -1
  332. package/dist/components/map-select-tools2.js +14 -4
  333. package/dist/components/map-tools2.js +13 -1
  334. package/dist/components/pci-calculator.js +1 -1
  335. package/dist/components/pdf-download2.js +16 -1
  336. package/dist/components/public-notification.js +12 -2
  337. package/dist/components/refine-selection2.js +14 -1
  338. package/dist/components/share-item.js +1 -1
  339. package/dist/components/solution-configuration.js +23 -6
  340. package/dist/components/solution-contents2.js +1 -1
  341. package/dist/components/solution-item-accordion.js +13 -1
  342. package/dist/components/solution-item-details2.js +22 -2
  343. package/dist/components/solution-item-icon2.js +1 -1
  344. package/dist/components/solution-item-sharing2.js +20 -3
  345. package/dist/components/solution-item2.js +22 -5
  346. package/dist/components/solution-organization-variables2.js +18 -1
  347. package/dist/components/solution-resource-item2.js +20 -3
  348. package/dist/components/solution-spatial-ref2.js +20 -3
  349. package/dist/components/solution-template-data2.js +20 -3
  350. package/dist/components/solution-variables2.js +18 -1
  351. package/dist/components/spatial-ref.js +18 -1
  352. package/dist/esm/basemap-gallery_7.entry.js +26 -6
  353. package/dist/esm/buffer-tools_3.entry.js +23 -3
  354. package/dist/esm/calcite-alert_5.entry.js +40 -5
  355. package/dist/esm/calcite-combobox_3.entry.js +11 -1
  356. package/dist/esm/calcite-flow_4.entry.js +33 -10
  357. package/dist/esm/calcite-shell-panel_14.entry.js +119 -10
  358. package/dist/esm/calcite-shell_3.entry.js +26 -4
  359. package/dist/esm/card-manager_3.entry.js +41 -9
  360. package/dist/esm/consent-manager.entry.js +12 -0
  361. package/dist/esm/crowdsource-manager.entry.js +13 -14
  362. package/dist/esm/crowdsource-reporter.entry.js +19 -9
  363. package/dist/esm/deduct-calculator.entry.js +1 -1
  364. package/dist/esm/feature-list.entry.js +13 -3
  365. package/dist/esm/loader.js +1 -1
  366. package/dist/esm/map-select-tools_3.entry.js +38 -6
  367. package/dist/esm/pci-calculator.entry.js +1 -1
  368. package/dist/esm/public-notification.entry.js +11 -2
  369. package/dist/esm/share-item.entry.js +1 -1
  370. package/dist/esm/solution-configuration.entry.js +20 -5
  371. package/dist/esm/solution-contents_3.entry.js +37 -7
  372. package/dist/esm/solution-item-accordion.entry.js +11 -1
  373. package/dist/esm/solution-item-icon.entry.js +1 -1
  374. package/dist/esm/solutions-components.js +1 -1
  375. package/dist/esm/spatial-ref.entry.js +16 -1
  376. package/dist/solutions-components/assets/t9n/card-manager/resources_ar.json +1 -1
  377. package/dist/solutions-components/assets/t9n/card-manager/resources_bg.json +1 -1
  378. package/dist/solutions-components/assets/t9n/card-manager/resources_bs.json +1 -1
  379. package/dist/solutions-components/assets/t9n/card-manager/resources_ca.json +1 -1
  380. package/dist/solutions-components/assets/t9n/card-manager/resources_cs.json +1 -1
  381. package/dist/solutions-components/assets/t9n/card-manager/resources_da.json +1 -1
  382. package/dist/solutions-components/assets/t9n/card-manager/resources_de.json +1 -1
  383. package/dist/solutions-components/assets/t9n/card-manager/resources_el.json +1 -1
  384. package/dist/solutions-components/assets/t9n/card-manager/resources_es.json +1 -1
  385. package/dist/solutions-components/assets/t9n/card-manager/resources_et.json +1 -1
  386. package/dist/solutions-components/assets/t9n/card-manager/resources_fi.json +1 -1
  387. package/dist/solutions-components/assets/t9n/card-manager/resources_fr.json +1 -1
  388. package/dist/solutions-components/assets/t9n/card-manager/resources_he.json +1 -1
  389. package/dist/solutions-components/assets/t9n/card-manager/resources_hr.json +1 -1
  390. package/dist/solutions-components/assets/t9n/card-manager/resources_hu.json +1 -1
  391. package/dist/solutions-components/assets/t9n/card-manager/resources_id.json +1 -1
  392. package/dist/solutions-components/assets/t9n/card-manager/resources_it.json +1 -1
  393. package/dist/solutions-components/assets/t9n/card-manager/resources_ja.json +1 -1
  394. package/dist/solutions-components/assets/t9n/card-manager/resources_ko.json +1 -1
  395. package/dist/solutions-components/assets/t9n/card-manager/resources_lt.json +1 -1
  396. package/dist/solutions-components/assets/t9n/card-manager/resources_lv.json +1 -1
  397. package/dist/solutions-components/assets/t9n/card-manager/resources_nb.json +1 -1
  398. package/dist/solutions-components/assets/t9n/card-manager/resources_nl.json +1 -1
  399. package/dist/solutions-components/assets/t9n/card-manager/resources_pl.json +1 -1
  400. package/dist/solutions-components/assets/t9n/card-manager/resources_pt-BR.json +1 -1
  401. package/dist/solutions-components/assets/t9n/card-manager/resources_pt-PT.json +1 -1
  402. package/dist/solutions-components/assets/t9n/card-manager/resources_ro.json +1 -1
  403. package/dist/solutions-components/assets/t9n/card-manager/resources_ru.json +1 -1
  404. package/dist/solutions-components/assets/t9n/card-manager/resources_sk.json +1 -1
  405. package/dist/solutions-components/assets/t9n/card-manager/resources_sl.json +1 -1
  406. package/dist/solutions-components/assets/t9n/card-manager/resources_sr.json +1 -1
  407. package/dist/solutions-components/assets/t9n/card-manager/resources_sv.json +1 -1
  408. package/dist/solutions-components/assets/t9n/card-manager/resources_th.json +1 -1
  409. package/dist/solutions-components/assets/t9n/card-manager/resources_tr.json +1 -1
  410. package/dist/solutions-components/assets/t9n/card-manager/resources_uk.json +1 -1
  411. package/dist/solutions-components/assets/t9n/card-manager/resources_vi.json +1 -1
  412. package/dist/solutions-components/assets/t9n/card-manager/resources_zh-CN.json +1 -1
  413. package/dist/solutions-components/assets/t9n/card-manager/resources_zh-HK.json +1 -1
  414. package/dist/solutions-components/assets/t9n/card-manager/resources_zh-TW.json +1 -1
  415. package/dist/solutions-components/assets/t9n/create-feature/resources_ar.json +1 -1
  416. package/dist/solutions-components/assets/t9n/create-feature/resources_bg.json +1 -1
  417. package/dist/solutions-components/assets/t9n/create-feature/resources_bs.json +1 -1
  418. package/dist/solutions-components/assets/t9n/create-feature/resources_ca.json +1 -1
  419. package/dist/solutions-components/assets/t9n/create-feature/resources_cs.json +1 -1
  420. package/dist/solutions-components/assets/t9n/create-feature/resources_da.json +1 -1
  421. package/dist/solutions-components/assets/t9n/create-feature/resources_de.json +1 -1
  422. package/dist/solutions-components/assets/t9n/create-feature/resources_el.json +1 -1
  423. package/dist/solutions-components/assets/t9n/create-feature/resources_es.json +1 -1
  424. package/dist/solutions-components/assets/t9n/create-feature/resources_et.json +1 -1
  425. package/dist/solutions-components/assets/t9n/create-feature/resources_fi.json +1 -1
  426. package/dist/solutions-components/assets/t9n/create-feature/resources_fr.json +1 -1
  427. package/dist/solutions-components/assets/t9n/create-feature/resources_he.json +1 -1
  428. package/dist/solutions-components/assets/t9n/create-feature/resources_hr.json +1 -1
  429. package/dist/solutions-components/assets/t9n/create-feature/resources_hu.json +1 -1
  430. package/dist/solutions-components/assets/t9n/create-feature/resources_id.json +1 -1
  431. package/dist/solutions-components/assets/t9n/create-feature/resources_it.json +1 -1
  432. package/dist/solutions-components/assets/t9n/create-feature/resources_ja.json +1 -1
  433. package/dist/solutions-components/assets/t9n/create-feature/resources_ko.json +1 -1
  434. package/dist/solutions-components/assets/t9n/create-feature/resources_lt.json +1 -1
  435. package/dist/solutions-components/assets/t9n/create-feature/resources_lv.json +1 -1
  436. package/dist/solutions-components/assets/t9n/create-feature/resources_nb.json +1 -1
  437. package/dist/solutions-components/assets/t9n/create-feature/resources_nl.json +1 -1
  438. package/dist/solutions-components/assets/t9n/create-feature/resources_pl.json +1 -1
  439. package/dist/solutions-components/assets/t9n/create-feature/resources_pt-BR.json +2 -2
  440. package/dist/solutions-components/assets/t9n/create-feature/resources_pt-PT.json +1 -1
  441. package/dist/solutions-components/assets/t9n/create-feature/resources_ro.json +1 -1
  442. package/dist/solutions-components/assets/t9n/create-feature/resources_ru.json +1 -1
  443. package/dist/solutions-components/assets/t9n/create-feature/resources_sk.json +1 -1
  444. package/dist/solutions-components/assets/t9n/create-feature/resources_sl.json +1 -1
  445. package/dist/solutions-components/assets/t9n/create-feature/resources_sr.json +1 -1
  446. package/dist/solutions-components/assets/t9n/create-feature/resources_sv.json +1 -1
  447. package/dist/solutions-components/assets/t9n/create-feature/resources_th.json +1 -1
  448. package/dist/solutions-components/assets/t9n/create-feature/resources_tr.json +1 -1
  449. package/dist/solutions-components/assets/t9n/create-feature/resources_uk.json +1 -1
  450. package/dist/solutions-components/assets/t9n/create-feature/resources_vi.json +1 -1
  451. package/dist/solutions-components/assets/t9n/create-feature/resources_zh-CN.json +1 -1
  452. package/dist/solutions-components/assets/t9n/create-feature/resources_zh-HK.json +1 -1
  453. package/dist/solutions-components/assets/t9n/create-feature/resources_zh-TW.json +1 -1
  454. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ar.json +1 -1
  455. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_bg.json +1 -1
  456. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_bs.json +1 -1
  457. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ca.json +1 -1
  458. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_cs.json +1 -1
  459. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_da.json +1 -1
  460. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_de.json +1 -1
  461. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_el.json +1 -1
  462. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_es.json +1 -1
  463. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_et.json +1 -1
  464. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_fi.json +1 -1
  465. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_fr.json +1 -1
  466. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_he.json +1 -1
  467. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_hr.json +1 -1
  468. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_hu.json +1 -1
  469. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_id.json +1 -1
  470. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_it.json +1 -1
  471. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ja.json +1 -1
  472. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ko.json +1 -1
  473. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_lt.json +1 -1
  474. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_lv.json +1 -1
  475. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_nb.json +1 -1
  476. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_nl.json +1 -1
  477. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pl.json +1 -1
  478. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pt-BR.json +1 -1
  479. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pt-PT.json +1 -1
  480. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ro.json +1 -1
  481. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ru.json +1 -1
  482. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sk.json +1 -1
  483. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sl.json +1 -1
  484. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sr.json +1 -1
  485. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sv.json +1 -1
  486. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_th.json +1 -1
  487. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_tr.json +1 -1
  488. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_uk.json +1 -1
  489. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_vi.json +1 -1
  490. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-CN.json +1 -1
  491. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-HK.json +1 -1
  492. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-TW.json +1 -1
  493. package/dist/solutions-components/assets/t9n/feature-list/resources_ar.json +2 -2
  494. package/dist/solutions-components/assets/t9n/feature-list/resources_bg.json +2 -2
  495. package/dist/solutions-components/assets/t9n/feature-list/resources_bs.json +2 -2
  496. package/dist/solutions-components/assets/t9n/feature-list/resources_ca.json +2 -2
  497. package/dist/solutions-components/assets/t9n/feature-list/resources_cs.json +2 -2
  498. package/dist/solutions-components/assets/t9n/feature-list/resources_da.json +2 -2
  499. package/dist/solutions-components/assets/t9n/feature-list/resources_de.json +2 -2
  500. package/dist/solutions-components/assets/t9n/feature-list/resources_el.json +2 -2
  501. package/dist/solutions-components/assets/t9n/feature-list/resources_es.json +2 -2
  502. package/dist/solutions-components/assets/t9n/feature-list/resources_et.json +2 -2
  503. package/dist/solutions-components/assets/t9n/feature-list/resources_fi.json +2 -2
  504. package/dist/solutions-components/assets/t9n/feature-list/resources_fr.json +2 -2
  505. package/dist/solutions-components/assets/t9n/feature-list/resources_he.json +2 -2
  506. package/dist/solutions-components/assets/t9n/feature-list/resources_hr.json +2 -2
  507. package/dist/solutions-components/assets/t9n/feature-list/resources_hu.json +2 -2
  508. package/dist/solutions-components/assets/t9n/feature-list/resources_id.json +2 -2
  509. package/dist/solutions-components/assets/t9n/feature-list/resources_it.json +2 -2
  510. package/dist/solutions-components/assets/t9n/feature-list/resources_ja.json +2 -2
  511. package/dist/solutions-components/assets/t9n/feature-list/resources_ko.json +2 -2
  512. package/dist/solutions-components/assets/t9n/feature-list/resources_lt.json +2 -2
  513. package/dist/solutions-components/assets/t9n/feature-list/resources_lv.json +2 -2
  514. package/dist/solutions-components/assets/t9n/feature-list/resources_nb.json +2 -2
  515. package/dist/solutions-components/assets/t9n/feature-list/resources_nl.json +2 -2
  516. package/dist/solutions-components/assets/t9n/feature-list/resources_pl.json +2 -2
  517. package/dist/solutions-components/assets/t9n/feature-list/resources_pt-BR.json +2 -2
  518. package/dist/solutions-components/assets/t9n/feature-list/resources_pt-PT.json +2 -2
  519. package/dist/solutions-components/assets/t9n/feature-list/resources_ro.json +2 -2
  520. package/dist/solutions-components/assets/t9n/feature-list/resources_ru.json +2 -2
  521. package/dist/solutions-components/assets/t9n/feature-list/resources_sk.json +2 -2
  522. package/dist/solutions-components/assets/t9n/feature-list/resources_sl.json +2 -2
  523. package/dist/solutions-components/assets/t9n/feature-list/resources_sr.json +2 -2
  524. package/dist/solutions-components/assets/t9n/feature-list/resources_sv.json +2 -2
  525. package/dist/solutions-components/assets/t9n/feature-list/resources_th.json +2 -2
  526. package/dist/solutions-components/assets/t9n/feature-list/resources_tr.json +2 -2
  527. package/dist/solutions-components/assets/t9n/feature-list/resources_uk.json +2 -2
  528. package/dist/solutions-components/assets/t9n/feature-list/resources_vi.json +2 -2
  529. package/dist/solutions-components/assets/t9n/feature-list/resources_zh-CN.json +2 -2
  530. package/dist/solutions-components/assets/t9n/feature-list/resources_zh-HK.json +2 -2
  531. package/dist/solutions-components/assets/t9n/feature-list/resources_zh-TW.json +2 -2
  532. package/dist/solutions-components/assets/t9n/layer-table/resources_ar.json +1 -1
  533. package/dist/solutions-components/assets/t9n/layer-table/resources_bg.json +1 -1
  534. package/dist/solutions-components/assets/t9n/layer-table/resources_bs.json +1 -1
  535. package/dist/solutions-components/assets/t9n/layer-table/resources_ca.json +1 -1
  536. package/dist/solutions-components/assets/t9n/layer-table/resources_cs.json +1 -1
  537. package/dist/solutions-components/assets/t9n/layer-table/resources_da.json +1 -1
  538. package/dist/solutions-components/assets/t9n/layer-table/resources_de.json +1 -1
  539. package/dist/solutions-components/assets/t9n/layer-table/resources_el.json +1 -1
  540. package/dist/solutions-components/assets/t9n/layer-table/resources_es.json +1 -1
  541. package/dist/solutions-components/assets/t9n/layer-table/resources_et.json +1 -1
  542. package/dist/solutions-components/assets/t9n/layer-table/resources_fi.json +1 -1
  543. package/dist/solutions-components/assets/t9n/layer-table/resources_fr.json +1 -1
  544. package/dist/solutions-components/assets/t9n/layer-table/resources_he.json +1 -1
  545. package/dist/solutions-components/assets/t9n/layer-table/resources_hr.json +1 -1
  546. package/dist/solutions-components/assets/t9n/layer-table/resources_hu.json +1 -1
  547. package/dist/solutions-components/assets/t9n/layer-table/resources_id.json +1 -1
  548. package/dist/solutions-components/assets/t9n/layer-table/resources_it.json +1 -1
  549. package/dist/solutions-components/assets/t9n/layer-table/resources_ja.json +1 -1
  550. package/dist/solutions-components/assets/t9n/layer-table/resources_ko.json +1 -1
  551. package/dist/solutions-components/assets/t9n/layer-table/resources_lt.json +1 -1
  552. package/dist/solutions-components/assets/t9n/layer-table/resources_lv.json +1 -1
  553. package/dist/solutions-components/assets/t9n/layer-table/resources_nb.json +1 -1
  554. package/dist/solutions-components/assets/t9n/layer-table/resources_nl.json +1 -1
  555. package/dist/solutions-components/assets/t9n/layer-table/resources_pl.json +1 -1
  556. package/dist/solutions-components/assets/t9n/layer-table/resources_pt-BR.json +1 -1
  557. package/dist/solutions-components/assets/t9n/layer-table/resources_pt-PT.json +1 -1
  558. package/dist/solutions-components/assets/t9n/layer-table/resources_ro.json +1 -1
  559. package/dist/solutions-components/assets/t9n/layer-table/resources_ru.json +1 -1
  560. package/dist/solutions-components/assets/t9n/layer-table/resources_sk.json +1 -1
  561. package/dist/solutions-components/assets/t9n/layer-table/resources_sl.json +1 -1
  562. package/dist/solutions-components/assets/t9n/layer-table/resources_sr.json +1 -1
  563. package/dist/solutions-components/assets/t9n/layer-table/resources_sv.json +1 -1
  564. package/dist/solutions-components/assets/t9n/layer-table/resources_th.json +1 -1
  565. package/dist/solutions-components/assets/t9n/layer-table/resources_tr.json +1 -1
  566. package/dist/solutions-components/assets/t9n/layer-table/resources_uk.json +1 -1
  567. package/dist/solutions-components/assets/t9n/layer-table/resources_vi.json +1 -1
  568. package/dist/solutions-components/assets/t9n/layer-table/resources_zh-CN.json +1 -1
  569. package/dist/solutions-components/assets/t9n/layer-table/resources_zh-HK.json +1 -1
  570. package/dist/solutions-components/assets/t9n/layer-table/resources_zh-TW.json +1 -1
  571. package/dist/solutions-components/assets/t9n/map-card/resources_ar.json +2 -1
  572. package/dist/solutions-components/assets/t9n/map-card/resources_bg.json +2 -1
  573. package/dist/solutions-components/assets/t9n/map-card/resources_bs.json +2 -1
  574. package/dist/solutions-components/assets/t9n/map-card/resources_ca.json +2 -1
  575. package/dist/solutions-components/assets/t9n/map-card/resources_cs.json +2 -1
  576. package/dist/solutions-components/assets/t9n/map-card/resources_da.json +2 -1
  577. package/dist/solutions-components/assets/t9n/map-card/resources_de.json +2 -1
  578. package/dist/solutions-components/assets/t9n/map-card/resources_el.json +2 -1
  579. package/dist/solutions-components/assets/t9n/map-card/resources_es.json +2 -1
  580. package/dist/solutions-components/assets/t9n/map-card/resources_et.json +2 -1
  581. package/dist/solutions-components/assets/t9n/map-card/resources_fi.json +2 -1
  582. package/dist/solutions-components/assets/t9n/map-card/resources_fr.json +2 -1
  583. package/dist/solutions-components/assets/t9n/map-card/resources_he.json +2 -1
  584. package/dist/solutions-components/assets/t9n/map-card/resources_hr.json +2 -1
  585. package/dist/solutions-components/assets/t9n/map-card/resources_hu.json +2 -1
  586. package/dist/solutions-components/assets/t9n/map-card/resources_id.json +2 -1
  587. package/dist/solutions-components/assets/t9n/map-card/resources_it.json +2 -1
  588. package/dist/solutions-components/assets/t9n/map-card/resources_ja.json +2 -1
  589. package/dist/solutions-components/assets/t9n/map-card/resources_ko.json +2 -1
  590. package/dist/solutions-components/assets/t9n/map-card/resources_lt.json +2 -1
  591. package/dist/solutions-components/assets/t9n/map-card/resources_lv.json +2 -1
  592. package/dist/solutions-components/assets/t9n/map-card/resources_nb.json +2 -1
  593. package/dist/solutions-components/assets/t9n/map-card/resources_nl.json +2 -1
  594. package/dist/solutions-components/assets/t9n/map-card/resources_pl.json +2 -1
  595. package/dist/solutions-components/assets/t9n/map-card/resources_pt-BR.json +2 -1
  596. package/dist/solutions-components/assets/t9n/map-card/resources_pt-PT.json +2 -1
  597. package/dist/solutions-components/assets/t9n/map-card/resources_ro.json +2 -1
  598. package/dist/solutions-components/assets/t9n/map-card/resources_ru.json +2 -1
  599. package/dist/solutions-components/assets/t9n/map-card/resources_sk.json +2 -1
  600. package/dist/solutions-components/assets/t9n/map-card/resources_sl.json +2 -1
  601. package/dist/solutions-components/assets/t9n/map-card/resources_sr.json +2 -1
  602. package/dist/solutions-components/assets/t9n/map-card/resources_sv.json +2 -1
  603. package/dist/solutions-components/assets/t9n/map-card/resources_th.json +2 -1
  604. package/dist/solutions-components/assets/t9n/map-card/resources_tr.json +2 -1
  605. package/dist/solutions-components/assets/t9n/map-card/resources_uk.json +2 -1
  606. package/dist/solutions-components/assets/t9n/map-card/resources_vi.json +2 -1
  607. package/dist/solutions-components/assets/t9n/map-card/resources_zh-CN.json +2 -1
  608. package/dist/solutions-components/assets/t9n/map-card/resources_zh-HK.json +2 -1
  609. package/dist/solutions-components/assets/t9n/map-card/resources_zh-TW.json +2 -1
  610. package/dist/solutions-components/demos/crowdsource-manager.html +0 -1
  611. package/dist/solutions-components/demos/crowdsource-reporter.html +2 -2
  612. package/dist/solutions-components/p-0a2e5861.entry.js +6 -0
  613. package/dist/solutions-components/{p-739ce6f3.entry.js → p-2f784608.entry.js} +1 -1
  614. package/dist/solutions-components/{p-1c2d0e90.entry.js → p-3e44cfab.entry.js} +1 -1
  615. package/dist/solutions-components/{p-841816a1.entry.js → p-41314f33.entry.js} +7 -7
  616. package/dist/solutions-components/{p-18089a0b.entry.js → p-471d5c7f.entry.js} +2 -2
  617. package/dist/solutions-components/p-5001cc41.entry.js +6 -0
  618. package/dist/solutions-components/p-561c0e02.entry.js +6 -0
  619. package/dist/solutions-components/p-56beff4c.entry.js +6 -0
  620. package/dist/solutions-components/p-592f2000.entry.js +6 -0
  621. package/dist/solutions-components/p-5cbf3eed.entry.js +6 -0
  622. package/dist/solutions-components/p-62d8796c.entry.js +17 -0
  623. package/dist/solutions-components/p-6d1922cc.entry.js +6 -0
  624. package/dist/solutions-components/p-80e81af7.entry.js +6 -0
  625. package/dist/solutions-components/{p-82ddf716.entry.js → p-8e2f4995.entry.js} +1 -1
  626. package/dist/solutions-components/{p-6502d0f8.entry.js → p-b7fbaeb7.entry.js} +1 -1
  627. package/dist/solutions-components/p-cced387c.entry.js +6 -0
  628. package/dist/solutions-components/{p-a5d79c86.entry.js → p-ce53e33d.entry.js} +2 -2
  629. package/dist/solutions-components/{p-59ccd27c.entry.js → p-d51c07d2.entry.js} +1 -1
  630. package/dist/solutions-components/p-d75cf651.entry.js +11 -0
  631. package/dist/solutions-components/p-d7afbe8d.entry.js +11 -0
  632. package/dist/solutions-components/p-e1e21798.entry.js +12 -0
  633. package/dist/solutions-components/p-e9026f9a.entry.js +6 -0
  634. package/dist/solutions-components/solutions-components.esm.js +1 -1
  635. package/dist/types/components/buffer-tools/buffer-tools.d.ts +8 -0
  636. package/dist/types/components/card-manager/card-manager.d.ts +8 -0
  637. package/dist/types/components/consent-manager/consent-manager.d.ts +8 -0
  638. package/dist/types/components/create-feature/create-feature.d.ts +8 -0
  639. package/dist/types/components/create-related-feature/create-related-feature.d.ts +8 -0
  640. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -4
  641. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +8 -0
  642. package/dist/types/components/deduct-calculator/deduct-calculator.d.ts +1 -1
  643. package/dist/types/components/delete-button/delete-button.d.ts +9 -1
  644. package/dist/types/components/delete-dialog/delete-dialog.d.ts +8 -0
  645. package/dist/types/components/edit-card/edit-card.d.ts +8 -0
  646. package/dist/types/components/feature-details/feature-details.d.ts +4 -0
  647. package/dist/types/components/feature-list/feature-list.d.ts +8 -0
  648. package/dist/types/components/info-card/info-card.d.ts +8 -0
  649. package/dist/types/components/json-editor/json-editor.d.ts +8 -0
  650. package/dist/types/components/layer-list/layer-list.d.ts +8 -0
  651. package/dist/types/components/layer-table/layer-table.d.ts +9 -1
  652. package/dist/types/components/map-card/map-card.d.ts +8 -0
  653. package/dist/types/components/map-draw-tools/map-draw-tools.d.ts +8 -0
  654. package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +8 -0
  655. package/dist/types/components/map-picker/map-picker.d.ts +8 -0
  656. package/dist/types/components/map-select-tools/map-select-tools.d.ts +4 -0
  657. package/dist/types/components/map-tools/map-tools.d.ts +8 -0
  658. package/dist/types/components/pdf-download/pdf-download.d.ts +8 -0
  659. package/dist/types/components/public-notification/public-notification.d.ts +4 -0
  660. package/dist/types/components/refine-selection/refine-selection.d.ts +4 -0
  661. package/dist/types/components/solution-configuration/solution-configuration.d.ts +8 -0
  662. package/dist/types/components/solution-item/solution-item.d.ts +8 -0
  663. package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +8 -0
  664. package/dist/types/components/solution-item-details/solution-item-details.d.ts +8 -0
  665. package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +8 -0
  666. package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +8 -0
  667. package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +8 -0
  668. package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +8 -0
  669. package/dist/types/components/solution-template-data/solution-template-data.d.ts +8 -0
  670. package/dist/types/components/solution-variables/solution-variables.d.ts +8 -0
  671. package/dist/types/components/spatial-ref/spatial-ref.d.ts +8 -0
  672. package/dist/types/components.d.ts +266 -120
  673. package/dist/types/preact.d.ts +0 -16
  674. package/package.json +5 -5
  675. package/dist/cjs/feature-comments.cjs.entry.js +0 -61
  676. package/dist/cjs/feature-form-flow-item.cjs.entry.js +0 -61
  677. package/dist/cjs/features-flow-item.cjs.entry.js +0 -61
  678. package/dist/cjs/layout-manager.cjs.entry.js +0 -114
  679. package/dist/cjs/list-flow-item.cjs.entry.js +0 -61
  680. package/dist/cjs/location-flow-item.cjs.entry.js +0 -61
  681. package/dist/cjs/refine-results-flow-item.cjs.entry.js +0 -61
  682. package/dist/collection/assets/t9n/feature-comments/resources.json +0 -3
  683. package/dist/collection/assets/t9n/feature-comments/resources_en.json +0 -3
  684. package/dist/collection/assets/t9n/feature-form-flow-item/resources.json +0 -3
  685. package/dist/collection/assets/t9n/feature-form-flow-item/resources_en.json +0 -3
  686. package/dist/collection/assets/t9n/layout-manager/resources.json +0 -7
  687. package/dist/collection/assets/t9n/layout-manager/resources_ar.json +0 -7
  688. package/dist/collection/assets/t9n/layout-manager/resources_bg.json +0 -7
  689. package/dist/collection/assets/t9n/layout-manager/resources_bs.json +0 -7
  690. package/dist/collection/assets/t9n/layout-manager/resources_ca.json +0 -7
  691. package/dist/collection/assets/t9n/layout-manager/resources_cs.json +0 -7
  692. package/dist/collection/assets/t9n/layout-manager/resources_da.json +0 -7
  693. package/dist/collection/assets/t9n/layout-manager/resources_de.json +0 -7
  694. package/dist/collection/assets/t9n/layout-manager/resources_el.json +0 -7
  695. package/dist/collection/assets/t9n/layout-manager/resources_en.json +0 -7
  696. package/dist/collection/assets/t9n/layout-manager/resources_es.json +0 -7
  697. package/dist/collection/assets/t9n/layout-manager/resources_et.json +0 -7
  698. package/dist/collection/assets/t9n/layout-manager/resources_fi.json +0 -7
  699. package/dist/collection/assets/t9n/layout-manager/resources_fr.json +0 -7
  700. package/dist/collection/assets/t9n/layout-manager/resources_he.json +0 -7
  701. package/dist/collection/assets/t9n/layout-manager/resources_hr.json +0 -7
  702. package/dist/collection/assets/t9n/layout-manager/resources_hu.json +0 -7
  703. package/dist/collection/assets/t9n/layout-manager/resources_id.json +0 -7
  704. package/dist/collection/assets/t9n/layout-manager/resources_it.json +0 -7
  705. package/dist/collection/assets/t9n/layout-manager/resources_ja.json +0 -7
  706. package/dist/collection/assets/t9n/layout-manager/resources_ko.json +0 -7
  707. package/dist/collection/assets/t9n/layout-manager/resources_lt.json +0 -7
  708. package/dist/collection/assets/t9n/layout-manager/resources_lv.json +0 -7
  709. package/dist/collection/assets/t9n/layout-manager/resources_nb.json +0 -7
  710. package/dist/collection/assets/t9n/layout-manager/resources_nl.json +0 -7
  711. package/dist/collection/assets/t9n/layout-manager/resources_pl.json +0 -7
  712. package/dist/collection/assets/t9n/layout-manager/resources_pt-BR.json +0 -7
  713. package/dist/collection/assets/t9n/layout-manager/resources_pt-PT.json +0 -7
  714. package/dist/collection/assets/t9n/layout-manager/resources_ro.json +0 -7
  715. package/dist/collection/assets/t9n/layout-manager/resources_ru.json +0 -7
  716. package/dist/collection/assets/t9n/layout-manager/resources_sk.json +0 -7
  717. package/dist/collection/assets/t9n/layout-manager/resources_sl.json +0 -7
  718. package/dist/collection/assets/t9n/layout-manager/resources_sr.json +0 -7
  719. package/dist/collection/assets/t9n/layout-manager/resources_sv.json +0 -7
  720. package/dist/collection/assets/t9n/layout-manager/resources_th.json +0 -7
  721. package/dist/collection/assets/t9n/layout-manager/resources_tr.json +0 -7
  722. package/dist/collection/assets/t9n/layout-manager/resources_uk.json +0 -7
  723. package/dist/collection/assets/t9n/layout-manager/resources_vi.json +0 -7
  724. package/dist/collection/assets/t9n/layout-manager/resources_zh-CN.json +0 -7
  725. package/dist/collection/assets/t9n/layout-manager/resources_zh-HK.json +0 -7
  726. package/dist/collection/assets/t9n/layout-manager/resources_zh-TW.json +0 -7
  727. package/dist/collection/assets/t9n/list-flow-item/resources.json +0 -3
  728. package/dist/collection/assets/t9n/list-flow-item/resources_en.json +0 -3
  729. package/dist/collection/assets/t9n/location-flow-item/resources.json +0 -3
  730. package/dist/collection/assets/t9n/location-flow-item/resources_en.json +0 -3
  731. package/dist/collection/components/feature-comments/feature-comments.css +0 -19
  732. package/dist/collection/components/feature-comments/feature-comments.js +0 -80
  733. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.css +0 -19
  734. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +0 -80
  735. package/dist/collection/components/features-flow-item/features-flow-item.css +0 -19
  736. package/dist/collection/components/features-flow-item/features-flow-item.js +0 -80
  737. package/dist/collection/components/layout-manager/layout-manager.css +0 -73
  738. package/dist/collection/components/layout-manager/layout-manager.js +0 -161
  739. package/dist/collection/components/list-flow-item/list-flow-item.css +0 -19
  740. package/dist/collection/components/list-flow-item/list-flow-item.js +0 -80
  741. package/dist/collection/components/location-flow-item/location-flow-item.css +0 -19
  742. package/dist/collection/components/location-flow-item/location-flow-item.js +0 -80
  743. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.css +0 -19
  744. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +0 -80
  745. package/dist/components/feature-comments.d.ts +0 -11
  746. package/dist/components/feature-comments.js +0 -76
  747. package/dist/components/feature-form-flow-item.d.ts +0 -11
  748. package/dist/components/feature-form-flow-item.js +0 -76
  749. package/dist/components/features-flow-item.d.ts +0 -11
  750. package/dist/components/features-flow-item.js +0 -76
  751. package/dist/components/layout-manager.d.ts +0 -11
  752. package/dist/components/layout-manager.js +0 -159
  753. package/dist/components/list-flow-item.d.ts +0 -11
  754. package/dist/components/list-flow-item.js +0 -76
  755. package/dist/components/location-flow-item.d.ts +0 -11
  756. package/dist/components/location-flow-item.js +0 -76
  757. package/dist/components/refine-results-flow-item.d.ts +0 -11
  758. package/dist/components/refine-results-flow-item.js +0 -76
  759. package/dist/esm/feature-comments.entry.js +0 -57
  760. package/dist/esm/feature-form-flow-item.entry.js +0 -57
  761. package/dist/esm/features-flow-item.entry.js +0 -57
  762. package/dist/esm/layout-manager.entry.js +0 -110
  763. package/dist/esm/list-flow-item.entry.js +0 -57
  764. package/dist/esm/location-flow-item.entry.js +0 -57
  765. package/dist/esm/refine-results-flow-item.entry.js +0 -57
  766. package/dist/solutions-components/assets/t9n/feature-comments/resources.json +0 -3
  767. package/dist/solutions-components/assets/t9n/feature-comments/resources_en.json +0 -3
  768. package/dist/solutions-components/assets/t9n/feature-form-flow-item/resources.json +0 -3
  769. package/dist/solutions-components/assets/t9n/feature-form-flow-item/resources_en.json +0 -3
  770. package/dist/solutions-components/assets/t9n/layout-manager/resources.json +0 -7
  771. package/dist/solutions-components/assets/t9n/layout-manager/resources_ar.json +0 -7
  772. package/dist/solutions-components/assets/t9n/layout-manager/resources_bg.json +0 -7
  773. package/dist/solutions-components/assets/t9n/layout-manager/resources_bs.json +0 -7
  774. package/dist/solutions-components/assets/t9n/layout-manager/resources_ca.json +0 -7
  775. package/dist/solutions-components/assets/t9n/layout-manager/resources_cs.json +0 -7
  776. package/dist/solutions-components/assets/t9n/layout-manager/resources_da.json +0 -7
  777. package/dist/solutions-components/assets/t9n/layout-manager/resources_de.json +0 -7
  778. package/dist/solutions-components/assets/t9n/layout-manager/resources_el.json +0 -7
  779. package/dist/solutions-components/assets/t9n/layout-manager/resources_en.json +0 -7
  780. package/dist/solutions-components/assets/t9n/layout-manager/resources_es.json +0 -7
  781. package/dist/solutions-components/assets/t9n/layout-manager/resources_et.json +0 -7
  782. package/dist/solutions-components/assets/t9n/layout-manager/resources_fi.json +0 -7
  783. package/dist/solutions-components/assets/t9n/layout-manager/resources_fr.json +0 -7
  784. package/dist/solutions-components/assets/t9n/layout-manager/resources_he.json +0 -7
  785. package/dist/solutions-components/assets/t9n/layout-manager/resources_hr.json +0 -7
  786. package/dist/solutions-components/assets/t9n/layout-manager/resources_hu.json +0 -7
  787. package/dist/solutions-components/assets/t9n/layout-manager/resources_id.json +0 -7
  788. package/dist/solutions-components/assets/t9n/layout-manager/resources_it.json +0 -7
  789. package/dist/solutions-components/assets/t9n/layout-manager/resources_ja.json +0 -7
  790. package/dist/solutions-components/assets/t9n/layout-manager/resources_ko.json +0 -7
  791. package/dist/solutions-components/assets/t9n/layout-manager/resources_lt.json +0 -7
  792. package/dist/solutions-components/assets/t9n/layout-manager/resources_lv.json +0 -7
  793. package/dist/solutions-components/assets/t9n/layout-manager/resources_nb.json +0 -7
  794. package/dist/solutions-components/assets/t9n/layout-manager/resources_nl.json +0 -7
  795. package/dist/solutions-components/assets/t9n/layout-manager/resources_pl.json +0 -7
  796. package/dist/solutions-components/assets/t9n/layout-manager/resources_pt-BR.json +0 -7
  797. package/dist/solutions-components/assets/t9n/layout-manager/resources_pt-PT.json +0 -7
  798. package/dist/solutions-components/assets/t9n/layout-manager/resources_ro.json +0 -7
  799. package/dist/solutions-components/assets/t9n/layout-manager/resources_ru.json +0 -7
  800. package/dist/solutions-components/assets/t9n/layout-manager/resources_sk.json +0 -7
  801. package/dist/solutions-components/assets/t9n/layout-manager/resources_sl.json +0 -7
  802. package/dist/solutions-components/assets/t9n/layout-manager/resources_sr.json +0 -7
  803. package/dist/solutions-components/assets/t9n/layout-manager/resources_sv.json +0 -7
  804. package/dist/solutions-components/assets/t9n/layout-manager/resources_th.json +0 -7
  805. package/dist/solutions-components/assets/t9n/layout-manager/resources_tr.json +0 -7
  806. package/dist/solutions-components/assets/t9n/layout-manager/resources_uk.json +0 -7
  807. package/dist/solutions-components/assets/t9n/layout-manager/resources_vi.json +0 -7
  808. package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-CN.json +0 -7
  809. package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-HK.json +0 -7
  810. package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-TW.json +0 -7
  811. package/dist/solutions-components/assets/t9n/list-flow-item/resources.json +0 -3
  812. package/dist/solutions-components/assets/t9n/list-flow-item/resources_en.json +0 -3
  813. package/dist/solutions-components/assets/t9n/location-flow-item/resources.json +0 -3
  814. package/dist/solutions-components/assets/t9n/location-flow-item/resources_en.json +0 -3
  815. package/dist/solutions-components/p-04ab956c.entry.js +0 -6
  816. package/dist/solutions-components/p-06364211.entry.js +0 -6
  817. package/dist/solutions-components/p-1f07e21a.entry.js +0 -6
  818. package/dist/solutions-components/p-46416e11.entry.js +0 -6
  819. package/dist/solutions-components/p-70c0050c.entry.js +0 -6
  820. package/dist/solutions-components/p-720de4db.entry.js +0 -6
  821. package/dist/solutions-components/p-74bcef23.entry.js +0 -11
  822. package/dist/solutions-components/p-76154700.entry.js +0 -6
  823. package/dist/solutions-components/p-938bc915.entry.js +0 -6
  824. package/dist/solutions-components/p-97fe6ec5.entry.js +0 -6
  825. package/dist/solutions-components/p-9c4fef09.entry.js +0 -17
  826. package/dist/solutions-components/p-9d56f4b5.entry.js +0 -6
  827. package/dist/solutions-components/p-9da8a590.entry.js +0 -6
  828. package/dist/solutions-components/p-aac0c89c.entry.js +0 -6
  829. package/dist/solutions-components/p-be4c7ffd.entry.js +0 -6
  830. package/dist/solutions-components/p-d2612c30.entry.js +0 -6
  831. package/dist/solutions-components/p-df7de4b7.entry.js +0 -12
  832. package/dist/solutions-components/p-e345f9c4.entry.js +0 -6
  833. package/dist/solutions-components/p-eadff42b.entry.js +0 -11
  834. package/dist/solutions-components/p-fa1c368c.entry.js +0 -6
  835. package/dist/solutions-components/p-ff3858c6.entry.js +0 -6
  836. package/dist/types/components/feature-comments/feature-comments.d.ts +0 -19
  837. package/dist/types/components/feature-form-flow-item/feature-form-flow-item.d.ts +0 -19
  838. package/dist/types/components/features-flow-item/features-flow-item.d.ts +0 -19
  839. package/dist/types/components/layout-manager/layout-manager.d.ts +0 -69
  840. package/dist/types/components/list-flow-item/list-flow-item.d.ts +0 -19
  841. package/dist/types/components/location-flow-item/location-flow-item.d.ts +0 -19
  842. package/dist/types/components/refine-results-flow-item/refine-results-flow-item.d.ts +0 -19
@@ -1,17 +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 e,h as i,H as s,g as a,F as o}from"./p-4e6eb06e.js";import{s as n,t as c,o as l,z as r,g as h}from"./p-621ad249.js";import{g as d}from"./p-4a291f79.js";import{s as p,a as f,c as b}from"./p-ad9d1221.js";import{N as m,c as u,d as g}from"./p-895e7b9c.js";import{o as y}from"./p-c7f8b7f0.js";import{c as v,s as w,d as k,u as x}from"./p-efaa77a0.js";import{K as _}from"./p-876c3f5f.js";import{u as C,I as z}from"./p-d6902512.js";import{S as E}from"./p-3776809a.js";import{l as F,g as j}from"./p-f4aadb3b.js";import{a as L,g as S}from"./p-d572627c.js";import{P as W}from"./p-cd482a33.js";import"./p-7d542581.js";import"./p-91371f97.js";import"./p-4f82eb55.js";import"./p-233f219c.js";import"./p-ff336351.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";import"./p-ff9e28d1.js";import"./p-7530a02f.js";import"./p-d0d020a5.js";import"./p-9bb44f57.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
10
- * v2.13.0
11
- */const H={slow:14e3,medium:1e4,fast:6e3},D="container",M="container--active",A="container--embedded",I="queue-count",P="queue-count--active",B="focused",T=new class{constructor(){this.registeredElements=[],this.queueTimeoutId=null}registerElement(t){const{registeredElements:e}=this;if(!e.includes(t)){switch(t.queue){case"immediate":e.unshift(t);break;case"next":e.splice(1,0,t);break;case"last":e.push(t)}this.updateAlerts()}}unregisterElement(t){const{registeredElements:e}=this,i=e.indexOf(t);-1!==i&&e.splice(i,1),t.active=!1,this.updateAlerts()}updateAlerts(){window.clearTimeout(this.queueTimeoutId),this.queueTimeoutId=null,this.registeredElements.forEach(((t,e)=>{t.openAlertCount=this.registeredElements.length,0===e?this.queueTimeoutId=window.setTimeout((()=>t.active=!0),300):t.active=!1}))}},V=class{constructor(i){t(this,i),this.calciteAlertBeforeClose=e(this,"calciteAlertBeforeClose",6),this.calciteAlertClose=e(this,"calciteAlertClose",6),this.calciteAlertBeforeOpen=e(this,"calciteAlertBeforeOpen",6),this.calciteAlertOpen=e(this,"calciteAlertOpen",6),this.handleKeyBoardFocus=()=>{this.isFocused=!0,this.handleFocus()},this.handleKeyBoardBlur=()=>{this.isFocused=!1,this.isHovered||this.handleBlur()},this.autoCloseTimeoutId=null,this.totalOpenTime=0,this.totalHoverTime=0,this.openTransitionProp="opacity",this.setTransitionEl=t=>{this.transitionEl=t},this.closeAlert=()=>{this.open=!1,this.clearAutoCloseTimeout()},this.actionsEndSlotChangeHandler=t=>{this.hasEndActions=n(t)},this.handleMouseOver=()=>{this.isHovered=!0,this.handleFocus()},this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.handleBlur()},this.handleFocus=()=>{this.clearAutoCloseTimeout(),this.totalOpenTime=Date.now()-this.initialOpenTime,this.lastMouseOverBegin=Date.now()},this.handleBlur=()=>{const t=Date.now()-this.lastMouseOverBegin,e=H[this.autoCloseDuration]-this.totalOpenTime+this.totalHoverTime;this.totalHoverTime=this.totalHoverTime?t+this.totalHoverTime:t,this.autoCloseTimeoutId=window.setTimeout((()=>this.closeAlert()),e)},this.active=!1,this.openAlertCount=0,this.open=!1,this.autoClose=!1,this.autoCloseDuration="medium",this.embedded=!1,this.kind="brand",this.icon=void 0,this.iconFlipRtl=!1,this.label=void 0,this.numberingSystem=void 0,this.placement="bottom",this.scale="m",this.messages=void 0,this.messageOverrides=void 0,this.queue="last",this.defaultMessages=void 0,this.effectiveLocale="",this.numberStringFormatter=new m,this.hasEndActions=!1,this.isFocused=!1}handleActiveChange(){this.clearAutoCloseTimeout(),this.active&&this.autoClose&&!this.autoCloseTimeoutId&&(this.initialOpenTime=Date.now(),this.autoCloseTimeoutId=window.setTimeout((()=>this.closeAlert()),H[this.autoCloseDuration]))}openHandler(){y(this),this.open?T.registerElement(this.el):T.unregisterElement(this.el)}updateDuration(){this.autoClose&&this.autoCloseTimeoutId&&(this.clearAutoCloseTimeout(),this.autoCloseTimeoutId=window.setTimeout((()=>this.closeAlert()),H[this.autoCloseDuration]))}onMessagesChange(){}handleQueueChange(){this.open&&(T.unregisterElement(this.el),T.registerElement(this.el))}connectedCallback(){u(this),v(this),this.open&&T.registerElement(this.el),this.numberStringFormatter.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,signDisplay:"always"}}async componentWillLoad(){p(this),await w(this),this.open&&y(this)}componentDidLoad(){f(this)}disconnectedCallback(){T.unregisterElement(this.el),this.clearAutoCloseTimeout(),g(this),k(this),this.embedded=!1}render(){const{open:t,autoClose:e,label:a,placement:o,active:n,openAlertCount:l}=this,h=e?"alert":"alertdialog",d=!t,p=r(_,this.icon,this.kind),f=l>1;return i(s,{key:"cecedeaa678e4f6e22fd2aabc4d29bc8589430f6","aria-hidden":c(d),"aria-label":a,"calcite-hydrated-hidden":d,role:h},i("div",{key:"ca85d5f5ec313f3a305e01dcc8cbbad9647dd516",class:{[D]:!0,[M]:n,[`${D}--${o}`]:!0,[A]:this.embedded,[B]:this.isFocused},onPointerEnter:this.autoClose&&this.autoCloseTimeoutId?this.handleMouseOver:null,onPointerLeave:this.autoClose?this.handleMouseLeave:null,ref:this.setTransitionEl},p&&this.renderIcon(p),i("div",{key:"1f72f255c3e0630eed63bb62d3d50f4a2ba6a528",class:"text-container",onFocusin:this.autoClose&&this.autoCloseTimeoutId?this.handleKeyBoardFocus:null,onFocusout:this.autoClose?this.handleKeyBoardBlur:null},i("slot",{key:"aade607960adea0a10f5eac85b119444085c9cf9",name:"title"}),i("slot",{key:"1f47158cfbf8c0626cd49246142fb750311b1d4a",name:"message"}),i("slot",{key:"5ba06e024b517f23168311828cc8ce41c21926a6",name:"link"})),this.renderActionsEnd(),f?this.renderQueueCount():null,this.renderCloseButton(),t&&n&&e?i("div",{class:"dismiss-progress"}):null))}renderCloseButton(){return i("button",{"aria-label":this.messages.close,class:"close",key:"close",onClick:this.closeAlert,onFocusin:this.autoClose?this.handleKeyBoardFocus:null,onFocusout:this.autoClose?this.handleKeyBoardBlur:null,ref:t=>this.closeButton=t,type:"button"},i("calcite-icon",{icon:"x",scale:d(this.scale)}))}renderQueueCount(){const{openAlertCount:t}=this,e=this.numberStringFormatter.numberFormatter.format(t>2?t-1:1);return i("div",{class:{[I]:!0,[P]:t>1},key:"queue-count"},i("calcite-chip",{scale:this.scale,value:e},e))}renderActionsEnd(){return i("div",{class:"actions-end"},i("slot",{name:"actions-end",onSlotchange:this.actionsEndSlotChangeHandler}))}renderIcon(t){return i("div",{class:"icon"},i("calcite-icon",{flipRtl:this.iconFlipRtl,icon:t,scale:d(this.scale)}))}async setFocus(){await b(this);const t=l(this.el,{selector:"calcite-link"});if(this.closeButton||t)return t?t.setFocus():void(this.closeButton&&this.closeButton.focus())}effectiveLocaleChange(){x(this,this.effectiveLocale),this.numberStringFormatter.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,signDisplay:"always"}}numberingSystemChange(){this.numberStringFormatter.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,signDisplay:"always"}}clearAutoCloseTimeout(){window.clearTimeout(this.autoCloseTimeoutId),this.autoCloseTimeoutId=null}onBeforeOpen(){this.calciteAlertBeforeOpen.emit()}onOpen(){this.calciteAlertOpen.emit()}onBeforeClose(){this.calciteAlertBeforeClose.emit()}onClose(){this.calciteAlertClose.emit()}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{active:["handleActiveChange"],open:["openHandler"],autoCloseDuration:["updateDuration"],messageOverrides:["onMessagesChange"],queue:["handleQueueChange"],effectiveLocale:["effectiveLocaleChange"],numberingSystem:["numberingSystemChange"]}}};V.style=':host{--calcite-internal-alert-edge-distance:2rem;display:block;inline-size:var(--calcite-alert-width)}.container{pointer-events:none;position:fixed;z-index:var(--calcite-z-index-toast);margin-inline:auto;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;min-inline-size:-moz-min-content;min-inline-size:min-content;align-items:center;justify-content:center;text-align:start;opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--calcite-alert-shadow, var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow));background-color:var(--calcite-alert-background-color, var(--calcite-color-foreground-1));border-radius:var(--calcite-alert-corner-radius, var(--calcite-border-radius));border-block-start:0 solid transparent;border-inline:1px solid var(--calcite-color-border-3);border-block-end:1px solid var(--calcite-color-border-3);max-inline-size:calc(100% - var(--calcite-internal-alert-edge-distance) * 2);transition:opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}.container--bottom,.container--top{inset-inline-end:0;inset-inline-start:0}.container[class*=bottom]{transform:translate3d(0, var(--calcite-internal-alert-edge-distance), 0);inset-block-end:var(--calcite-internal-alert-edge-distance)}.container[class*=top]{transform:translate3d(0, calc(-1 * var(--calcite-internal-alert-edge-distance)), 0);inset-block-start:var(--calcite-internal-alert-edge-distance)}.container[class*=start]{inset-inline-start:var(--calcite-internal-alert-edge-distance);inset-inline-end:auto}.container[class*=end]{inset-inline-end:var(--calcite-internal-alert-edge-distance);inset-inline-start:auto}.icon{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0px;margin-block:auto;margin-inline-end:auto}.close{display:flex;cursor:pointer;align-items:center;justify-content:flex-end;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline:2px solid transparent;outline-offset:2px;-webkit-appearance:none;border-start-end-radius:var(--calcite-alert-corner-radius, var(--calcite-border-radius));border-end-end-radius:var(--calcite-alert-corner-radius, var(--calcite-border-radius));outline-color:transparent}.close:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.close:hover,.close:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-2)}.close:active{background-color:var(--calcite-color-foreground-3)}.queue-count{visibility:hidden;display:flex;min-inline-size:-moz-min-content;min-inline-size:min-content;cursor:default;align-items:center;justify-content:space-around;align-self:stretch;overflow:hidden;text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-2);opacity:0;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline:0 solid transparent;border-start-end-radius:0}.queue-count--active{visibility:visible;opacity:1}.dismiss-progress{position:absolute;display:block;inline-size:100%;overflow:hidden;inset-inline:0;inset-block-start:-2px;block-size:2px;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}.dismiss-progress::after{position:absolute;inset-block-start:0px;display:block;block-size:2px;content:"";background-color:var(--calcite-color-transparent-tint);inset-inline-end:0}.actions-end{display:flex;align-self:stretch}.text-container{box-sizing:border-box;display:flex;min-inline-size:0px;flex:1 1 auto;flex-direction:column;overflow-wrap:break-word}.footer{position:relative;display:flex;inline-size:auto;justify-content:flex-end;align-self:stretch;padding-block-start:1px;block-size:inherit}:host([scale=s]) slot[name=title]::slotted(*),:host([scale=s]) *::slotted([slot=title]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) slot[name=message]::slotted(*),:host([scale=s]) *::slotted([slot=message]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) slot[name=link]::slotted(*),:host([scale=s]) *::slotted([slot=link]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .queue-count{margin-inline:0.5rem}:host([scale=s]) .container{--calcite-internal-alert-min-height:3.5rem;inline-size:var(--calcite-alert-width, 40em)}:host([scale=s]) .close{padding:0.75rem}:host([scale=s]) .icon{padding-inline-start:0.75rem}:host([scale=s]) .text-container{padding-block:0.5rem;padding-inline:0.75rem 0.5rem}:host([scale=m]) slot[name=title]::slotted(*),:host([scale=m]) *::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) slot[name=message]::slotted(*),:host([scale=m]) *::slotted([slot=message]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) slot[name=link]::slotted(*),:host([scale=m]) *::slotted([slot=link]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .queue-count{margin-inline:0.75rem}:host([scale=m]) .container{--calcite-internal-alert-min-height:4.1875rem;inline-size:var(--calcite-alert-width, 50em)}:host([scale=m]) .close{padding:1rem}:host([scale=m]) .icon{padding-inline-start:1rem}:host([scale=m]) .text-container{padding-block:0.75rem;padding-inline:1rem 0.75rem}:host([scale=l]) slot[name=title]::slotted(*),:host([scale=l]) *::slotted([slot=title]){margin-block-end:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) slot[name=message]::slotted(*),:host([scale=l]) *::slotted([slot=message]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) slot[name=link]::slotted(*),:host([scale=l]) *::slotted([slot=link]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .queue-count{margin-inline:1rem}:host([scale=l]) .container{--calcite-internal-alert-min-height:5.625rem;inline-size:var(--calcite-alert-width, 60em)}:host([scale=l]) .close{padding:1.25rem}:host([scale=l]) .icon{padding-inline-start:1.25rem}:host([scale=l]) .text-container{padding-block:1rem;padding-inline:1.25rem 1rem}:host([open]) .container--active{border-block-start-width:2px;opacity:1;pointer-events:initial}:host([open]) .container--active[class*=bottom]{transform:translate3d(0, calc(-1 * var(--calcite-internal-alert-edge-distance)), inherit)}:host([open]) .container--active[class*=top]{transform:translate3d(0, var(--calcite-internal-alert-edge-distance), inherit)}:host([auto-close])>.queue-count{border-inline-end:0 solid transparent}slot[name=title]::slotted(*),*::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}slot[name=message]::slotted(*),*::slotted([slot=message]){margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);margin-inline-end:0.5rem;color:var(--calcite-color-text-2)}slot[name=link]::slotted(*),*::slotted([slot=link]){display:inline-flex;color:var(--calcite-color-text-link)}:host([kind=brand]) .container{border-block-start-color:var(--calcite-color-brand)}:host([kind=brand]) .container .icon{color:var(--calcite-color-brand)}:host([kind=info]) .container{border-block-start-color:var(--calcite-color-status-info)}:host([kind=info]) .container .icon{color:var(--calcite-color-status-info)}:host([kind=danger]) .container{border-block-start-color:var(--calcite-color-status-danger)}:host([kind=danger]) .container .icon{color:var(--calcite-color-status-danger)}:host([kind=success]) .container{border-block-start-color:var(--calcite-color-status-success)}:host([kind=success]) .container .icon{color:var(--calcite-color-status-success)}:host([kind=warning]) .container{border-block-start-color:var(--calcite-color-status-warning)}:host([kind=warning]) .container .icon{color:var(--calcite-color-status-warning)}:host([auto-close-duration=fast]) .dismiss-progress:after{animation:dismissProgress 6000ms ease-out}:host(:hover[auto-close-duration=fast]) .dismiss-progress:after,:host(:focus[auto-close-duration=fast]) .dismiss-progress:after{animation-play-state:paused}:host([auto-close-duration=medium]) .dismiss-progress:after{animation:dismissProgress 10000ms ease-out}:host(:hover[auto-close-duration=medium]) .dismiss-progress:after,:host(:focus[auto-close-duration=medium]) .dismiss-progress:after{animation-play-state:paused}:host([auto-close-duration=slow]) .dismiss-progress:after{animation:dismissProgress 14000ms ease-out}:host(:hover[auto-close-duration=slow]) .dismiss-progress:after,:host(:focus[auto-close-duration=slow]) .dismiss-progress:after{animation-play-state:paused}.container.focused .dismiss-progress::after{animation-play-state:paused}@keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}.container--embedded{position:absolute}:host([hidden]){display:none}[hidden]{display:none}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}';
12
- /*!
13
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
14
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
15
- * v2.13.0
16
- */
17
- const O=class{constructor(i){t(this,i),this.calciteFlowItemBack=e(this,"calciteFlowItemBack",7),this.calciteFlowItemScroll=e(this,"calciteFlowItemScroll",6),this.calciteFlowItemClose=e(this,"calciteFlowItemClose",6),this.calciteFlowItemToggle=e(this,"calciteFlowItemToggle",6),this.handleInternalPanelScroll=t=>{t.target===this.containerEl&&(t.stopPropagation(),this.calciteFlowItemScroll.emit())},this.handleInternalPanelClose=t=>{t.target===this.containerEl&&(t.stopPropagation(),this.closed=!0,this.calciteFlowItemClose.emit())},this.handleInternalPanelToggle=t=>{t.target===this.containerEl&&(t.stopPropagation(),this.collapsed=t.target.collapsed,this.calciteFlowItemToggle.emit())},this.backButtonClick=()=>{this.calciteFlowItemBack.emit()},this.setBackRef=t=>{this.backButtonEl=t},this.setContainerRef=t=>{this.containerEl=t},this.closable=!1,this.closed=!1,this.collapsed=!1,this.collapseDirection="down",this.collapsible=!1,this.beforeBack=void 0,this.beforeClose=void 0,this.description=void 0,this.disabled=!1,this.heading=void 0,this.headingLevel=void 0,this.loading=!1,this.menuOpen=!1,this.messageOverrides=void 0,this.messages=void 0,this.overlayPositioning="absolute",this.scale="m",this.showBackButton=!1,this.defaultMessages=void 0,this.effectiveLocale=""}onMessagesChange(){}connectedCallback(){u(this),v(this)}async componentWillLoad(){await w(this),p(this)}componentDidRender(){C(this)}disconnectedCallback(){g(this),k(this)}componentDidLoad(){f(this)}effectiveLocaleChange(){x(this,this.effectiveLocale)}async setFocus(){await b(this);const{backButtonEl:t,containerEl:e}=this;return t?t.setFocus():e?e.setFocus():void 0}async scrollContentTo(t){await(this.containerEl?.scrollContentTo(t))}renderBackButton(){const{el:t}=this,e="rtl"===h(t),{showBackButton:s,backButtonClick:a,messages:o}=this,n=o.back;return s?i("calcite-action",{"aria-label":n,class:"back-button",icon:e?"chevron-right":"chevron-left",key:"flow-back-button",onClick:a,ref:this.setBackRef,scale:"s",slot:"header-actions-start",text:n,title:n}):null}render(){const{collapsed:t,collapseDirection:e,collapsible:a,closable:o,closed:n,description:c,disabled:l,heading:r,headingLevel:h,loading:d,menuOpen:p,messages:f,overlayPositioning:b,beforeClose:m}=this;return i(s,{key:"2e7872bb2687db0b67ddbf375f8ec0beaabbda36"},i(z,{key:"a9418954405a2cec2092bae3be5d77f02306e3c9",disabled:l},i("calcite-panel",{key:"d563c751421bf2d66c03286deaa613e09f585546",beforeClose:m,closable:o,closed:n,collapseDirection:e,collapsed:t,collapsible:a,description:c,disabled:l,heading:r,headingLevel:h,loading:d,menuOpen:p,messageOverrides:f,onCalcitePanelClose:this.handleInternalPanelClose,onCalcitePanelScroll:this.handleInternalPanelScroll,onCalcitePanelToggle:this.handleInternalPanelToggle,overlayPositioning:b,ref:this.setContainerRef,scale:this.scale},this.renderBackButton(),i("slot",{key:"c506ec8bb4debbd6a9da6c7941878de49776f614",name:"action-bar",slot:E.actionBar}),i("slot",{key:"e76e55e654ff878acff734bdf387402a9e262159",name:"alerts",slot:E.alerts}),i("slot",{key:"f7ab8839d7b101e31087130ebf3e36af1ec7da24",name:"header-actions-start",slot:E.headerActionsStart}),i("slot",{key:"2932c4c15b168732356b8e55fcc3064f5b3f4cf5",name:"header-actions-end",slot:E.headerActionsEnd}),i("slot",{key:"1ef8a9050683022733695445092f8c626487d87b",name:"header-content",slot:E.headerContent}),i("slot",{key:"24c0ab570a601a6c0edfb0c820e580fd24b158ce",name:"header-menu-actions",slot:E.headerMenuActions}),i("slot",{key:"ec55bbe7ba939a6efb35225850c37a1aadb97275",name:"fab",slot:E.fab}),i("slot",{key:"aa0bfec47656ef9f7f575cd933897a7909e5badc",name:"content-top",slot:E.contentTop}),i("slot",{key:"e23532d080e2df529c2aeb6af043c6efe7a0ab6d",name:"content-bottom",slot:E.contentBottom}),i("slot",{key:"db6ffc0d9300c77067a4c88ab277de685c7713af",name:"footer-start",slot:E.footerStart}),i("slot",{key:"5f249356da9292f34c4036d0d0741f048fe999e9",name:"footer",slot:E.footer}),i("slot",{key:"7476137bacc0f3be5c97682c5027f74d73254765",name:"footer-end",slot:E.footerEnd}),i("slot",{key:"58f60a46c42a05abe9b100a57d478d991e4f25bc",name:"footer-actions",slot:E.footerActions}),i("slot",{key:"926a8d94b76b6fcdef6dfd219ba8180c44f81c35"}))))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};O.style=":host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;overflow:hidden}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);border-inline-end-width:1px}calcite-panel{--calcite-panel-footer-padding:var(--calcite-flow-item-footer-padding);--calcite-panel-header-border-block-end:var(--calcite-flow-item-header-border-block-end)}:host([hidden]){display:none}[hidden]{display:none}";const R=class{constructor(i){t(this,i),this.success=e(this,"success",7),this.fail=e(this,"fail",7),this.drawComplete=e(this,"drawComplete",7),this.editingAttachment=e(this,"editingAttachment",7),this.progressStatus=e(this,"progressStatus",7),this.modeChanged=e(this,"modeChanged",7),this.mapView=void 0,this.selectedLayerId=void 0,this.customizeSubmit=!1,this.searchConfiguration=void 0,this.isMobile=void 0,this.floorLevel=void 0,this.formElements=void 0,this.enableSearch=!1,this.showGuidingMsg=!0,this.showGuidingMsgWhileDrawing=!0,this._editorLoading=!1,this._currentPage="templatePicker",this._translations=void 0}get el(){return a(this)}Editor;ExpressionInfo;FieldElement;FormTemplate;_editor;FeatureLayer;MapView;_updatedMapView;Search;_search;reactiveUtils;_addingAttachment;_container;_mapViewContainer;_isSubmitBtnClicked=!1;_selectedLayer;_searchDiv;_calciteNotice;async mapViewWatchHandler(){await this.mapView.when((async()=>{await this.init()}))}async isMobileHandler(){this.modeChanged.emit()}async _editorLoadingWatchHandler(t){if(t){if(this._container?.classList.add("display-none"),this._selectedLayer?.isTable){const t={layer:this._selectedLayer,template:this._selectedLayer.templates[0]};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(t),await this.hideEditorsElements()}else await this.startCreate();this._container?.classList.remove("display-none"),this._editorLoading=!1}}async submit(){this._editor&&(this._isSubmitBtnClicked=!0,this._editor.viewModel.featureFormViewModel.submit())}async refresh(t){this._editor&&this._setFloorLevel(t)}success;fail;drawComplete;editingAttachment;progressStatus;modeChanged;async componentWillLoad(){await this._getTranslations(),await this.initModules()}async componentDidLoad(){await this.init()}componentDidRender(){this.isMobile&&(this._mapViewContainer.style.top=`${this._calciteNotice.offsetHeight+this._searchDiv.offsetHeight+80}px`)}disconnectedCallback(){this._editor&&this._editor.destroy()}render(){const t="drawing"===this._currentPage?"":"display-none",e=this._editorLoading?"":"display-none",s=this._editorLoading?"display-none":"",a=this.isMobile?"show-map":"display-none";let n=this._translations.chooseCategoryMsg;return"drawing"===this._currentPage?n=this._translations.provideLocationMsg:"featureForm"===this._currentPage&&(n=this._translations.provideDetailsMsg),i(o,{key:"89634bf5707ea8390416d3087bfbe4e747bafcd7"},this.showGuidingMsg&&(this.showGuidingMsgWhileDrawing||"drawing"!==this._currentPage)&&i("calcite-notice",{key:"4269224c2904f29060081f6cb8f383f1cf8d741d",class:"notice-msg",icon:"lightbulb",kind:"success",open:!0,ref:t=>this._calciteNotice=t},i("div",{key:"ecc3cca85c81d1cb7ab7cdc89b99e31afcb55f76",slot:"message"},n)),i("calcite-loader",{key:"34e492c0c469b39d4cfbcda17c4ba196ccb39eb8",class:e,label:"",scale:"s"}),i("div",{key:"b2073ef4b6124b54038de34798cdf83337626023",class:s,id:"feature-form"}),this.enableSearch&&i("div",{key:"cd13e98b6a40d5d89d271b5785f797e9bfc19900",class:`search-widget ${t} ${s}`,id:"search-widget-ref",ref:t=>this._searchDiv=t}),i("div",{key:"2575b2d20f7713b05a2024e77452af93eb64e147",class:`${a}`,ref:t=>{this._mapViewContainer=t}}))}async init(){this.mapView&&this.selectedLayerId&&(this._updatedMapView=this.mapView,await(this.isMobile?this.createMobileMapView():this._loadWidgets()))}async initModules(){const[t,e,i,s,a,o,n]=await F(["esri/widgets/Editor","esri/core/reactiveUtils","esri/widgets/Search","esri/form/ExpressionInfo","esri/form/elements/FieldElement","esri/form/FormTemplate","esri/views/MapView"]);this.Editor=t,this.reactiveUtils=e,this.Search=i,this.ExpressionInfo=s,this.FieldElement=a,this.FormTemplate=o,this.MapView=n}async createMobileMapView(){this._mapViewContainer.classList.add("hide-map"),await new this.MapView({map:this.mapView.map,container:this._mapViewContainer,zoom:this.mapView.zoom}).when((t=>{this._updatedMapView=t,this._loadWidgets()}),(t=>{console.log(t)}))}async _loadWidgets(){await this.createEditorWidget(),this.enableSearch&&await this.createSearchWidget()}async createEditorWidget(){this._editor&&this._editor.destroy();const t=[];this._container=document.createElement("div"),this._container?.classList.add("display-none");const e=await L(this._updatedMapView);this._selectedLayer=await S(this.mapView,this.selectedLayerId),this._selectedLayer?.isTable||e.forEach((async e=>{t.push({layer:e,enabled:"feature"===e?.type&&e?.id===this.selectedLayerId,addEnabled:!0,updateEnabled:!1,deleteEnabled:!1})})),this._editor=new this.Editor({view:this._updatedMapView,layerInfos:t,visibleElements:{snappingControls:!1,createFeaturesSection:!0,editFeaturesSection:!1},container:this._container}),this._mapViewContainer?this.el.insertBefore(this._container,this._mapViewContainer):this.el.appendChild(this._container);const i=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"adding-attachment"===t||"editing-attachment"===t?(this._addingAttachment=!0,this.editingAttachment.emit(!0)):this._addingAttachment&&(this.editingAttachment.emit(!1),this._addingAttachment=!1)}));this._editor.viewModel.addHandles(i);const s=this.reactiveUtils.watch((()=>this._editor.viewModel.featureTemplatesViewModel.state),(t=>{"ready"===t&&"create-features"!==this._editor.viewModel?.activeWorkflow?.type&&(this.progressStatus.emit(.5),this._editorLoading=!0)}));this._editor.viewModel.addHandles(s);const a=this.reactiveUtils.watch((()=>this._editor.viewModel.featureFormViewModel?.state),(t=>{"ready"===t&&(this._mapViewContainer?.classList?.replace("show-map","hide-map"),this._editor.viewModel.featureFormViewModel.on("submit",this.submitted.bind(this)),setTimeout((()=>{this._setFloorLevel(this.floorLevel)}),50),this._currentPage="featureForm",this.progressStatus.emit(1),this.drawComplete.emit())}));this._editor.viewModel.addHandles(a);const o=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"creating-features"===t&&"disabled"===this._editor.viewModel.featureFormViewModel.state&&(this._mapViewContainer?.classList?.replace("hide-map","show-map"),this._selectedLayer&&!this._selectedLayer.isTable&&(this._currentPage="drawing"))}));this._editor.viewModel.addHandles(o)}async startCreate(){return await this.hideEditorsElements(),new Promise(((t,e)=>{if(this._editor.viewModel.featureTemplatesViewModel.items?.length){const i=this._editor.viewModel.featureTemplatesViewModel.items[0].get("items");this._editor.viewModel.featureTemplatesViewModel.on("select",(()=>{this.progressStatus.emit(.75),setTimeout((()=>{this.hideEditorsElements().then((()=>{t({})}),(t=>e(t)))}),700)})),1===i.length&&this._editor.viewModel.featureTemplatesViewModel.select(i[0]);const s=i.length>1;this.hideEditorsElements().then((()=>{s&&t({})}),(t=>s&&e(t)))}}))}async createSearchWidget(){let t={view:this._updatedMapView};this.searchConfiguration&&(t={...this._getSearchConfig(this.searchConfiguration,this._updatedMapView)}),this._search=new this.Search(t),this._search.container="search-widget-ref",this._search.popupEnabled=!1,this._search.resultGraphicEnabled=!1;let e=null;this._search.on("search-complete",(t=>{this._updatedMapView.goTo(t.results[0].results[0].extent),"point"===this._selectedLayer.geometryType&&(e=t.results[0].results[0]?.feature.geometry)}));const i=this.reactiveUtils.watch((()=>this._search.viewModel.state),(t=>{"ready"===t&&setTimeout((()=>{this._editor.viewModel.sketchViewModel.createGraphic&&e&&(this._editor.viewModel.sketchViewModel.createGraphic.set("geometry",e),this._editor.viewModel.sketchViewModel.complete(),this.hideEditorsElements())}),100)}));this._search.viewModel.addHandles(i)}_getSearchConfig(t,e){const i=t.sources;return i?.length>0?(t.includeDefaultSources=!1,i.forEach((t=>{if(t.hasOwnProperty("layer")){const i=t,s=i.layer?.id,a=s?e.map.findLayerById(s):null,o=i?.layer?.url;a?i.layer=a:o&&(i.layer=new this.FeatureLayer(o))}})),i?.forEach((t=>{if(t.hasOwnProperty("locator")){const e=t;"ArcGIS World Geocoding Service"===e?.name&&(e.outFields=e.outFields||["Addr_type","Match_addr","StAddr","City"],e.singleLineFieldName="SingleLine"),e.url=e.url,delete e.url}}))):t={...t,includeDefaultSources:!0},t}async _setFloorLevel(t){if(!t)return;const e=this._selectedLayer;if(e?.floorInfo?.floorField){const i=e.fields.find((t=>t.name===e.floorInfo.floorField));if(i&&!e?.formTemplate)this._editor.viewModel.featureFormViewModel.setValue(i.name,t),i.editable=!1;else if(e.formTemplate&&this.formElements){const i=new this.ExpressionInfo({expression:`"${t}"`,name:"floor-info-test",title:"Floor Info",returnType:"string"}),s=new this.FieldElement({label:e.floorInfo.floorField,editableExpression:"false",fieldName:e.floorInfo.floorField,input:{type:"text-box",maxLength:50,minLength:0},valueExpression:i.name});this._updatedMapView.map.editableLayers.forEach((t=>{const e=this.formElements.orgExpressionInfos,a=[...this.formElements.orgElements];a.push(s);const o=new this.FormTemplate({title:t.formTemplate.title,description:t.formTemplate.description,elements:a,expressionInfos:[i].concat(e)});t.formTemplate=o}))}}}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector(".esri-editor")?.querySelectorAll("calcite-flow-item")?.forEach((t=>{const e=t.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");e?.querySelector("header")?.setAttribute("style","display: none"),e?.querySelector("footer")?.setAttribute("style","display: none")})))}async submitted(t){if(t.invalid.length)this._isSubmitBtnClicked=!1;else if(t.valid.length&&this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{await this._editor.activeWorkflow.commit(),this._editor.viewModel.failures?.length&&this._editor.viewModel.failures.some((t=>{if(t.error)throw t.error}))}catch(t){return void this.fail.emit(t)}this.success.emit()}}timeout(t){return new Promise((e=>setTimeout(e,t)))}async _getTranslations(){const t=await j(this.el);this._translations=t[0]}static get watchers(){return{mapView:["mapViewWatchHandler"],isMobile:["isMobileHandler"],_editorLoading:["_editorLoadingWatchHandler"]}}};R.style=":host{display:block}.esri-editor__panel-toolbar{display:none !important}.esri-editor__panel-content{padding-block:0px !important}.esri-editor .esri-item-list__group__header{display:none !important}.esri-editor__panel-content__section .esri-widget__heading{display:none !important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px !important;padding-inline:10px !important}.search-widget{width:92% !important;margin:5px 14px 20px 14px}.display-none{display:none !important}.hide-map{height:1%;visibility:hidden}.show-map{padding:10px !important;position:absolute !important;bottom:0;height:auto !important;width:calc(100% - 22px)}.notice-msg{padding:10px;width:calc(100% - 20px)}.esri-editor__panel-content{padding-block:10px !important}@media only screen and (max-width: 600px){.esri-editor__panel-content{padding-block:0 !important;min-height:0 !important}}";const q=class{constructor(i){t(this,i),this.closeEdit=e(this,"closeEdit",7),this.editsComplete=e(this,"editsComplete",7),this.refreshGraphics=e(this,"refreshGraphics",7),this.enableEditGeometry=!1,this.graphics=void 0,this.mapView=void 0,this.open=!1,this.graphicIndex=0,this._editorLoading=!1,this._translations=void 0}get el(){return a(this)}_activeWorkflowHandle;_addRelatedRecordHandle;_attachmentHandle;_editHandle;_layerEditHandle;Editor;_editor;_layer;_editContainer;_editControlElements;_editingDisabled;_shouldClose=!1;reactiveUtils;async graphicsWatchHandler(){0===this.graphics.length&&this.open&&await this._closeEdit(!0)}async openWatchHandler(t){t&&this.graphics?.length>0&&this.graphicIndex>-1&&(this._editorLoading=!0,await this._initEditorWidget(),this.graphicIndex>-1&&this.graphics.length>0&&this.open&&!this._shouldClose&&await this._startUpdate(),this._editorLoading=!1),t||await this._closeEdit(!0)}closeEdit;editsComplete;refreshGraphics;async featureSelectionChange(){this.open&&await this._closeEdit(!1)}async componentWillLoad(){await this._initModules(),await this._getTranslations()}async componentWillRender(){this.graphics?.length>0&&this.graphics[0]?.layer&&(this._layer=this.graphics[0].layer,this._layerEditHandle&&this._layerEditHandle.remove(),this._layerEditHandle=("subtype-sublayer"===this._layer.type?this._layer.parent:this._layer).on("edits",(()=>{this.editsComplete.emit()})))}render(){const t=this._editorLoading?"display-none":"position-absolute",e=this._editorLoading?"":"display-none";return i(s,{key:"ff6d1819cfd084e9f11a1c87d89c49d13035b289"},i("div",{key:"797882acbcc26283719be4c08936e93b93931bcd",class:"position-absolute"},this.graphics?.length>0&&this.graphics[0]&&this.graphics[0].layer.editingEnabled?void 0:i("calcite-notice",{kind:"warning",open:!0,slot:"content-top",width:"full"},i("div",{slot:"message"},this._translations.enableEditing)),i("div",{key:"34ce92da0b7c452f0fbae98d9f557543da59f5b8",class:"position-absolute"},i("div",{key:"81af3854249e193d0d508c022cb4075be63f052d",class:t,id:"feature-form",ref:t=>this._editContainer=t}),i("calcite-loader",{key:"d7aa82424f87c47039a8a8f8c61240da7a5ca971",class:e,label:"",scale:"s"}))))}async _initModules(){const[t,e]=await F(["esri/widgets/Editor","esri/core/reactiveUtils"]);this.Editor=t,this.reactiveUtils=e}async _initEditorWidget(){if(this.mapView&&this.graphics&&this.graphics.length>0&&this.graphics[0]){this._editor&&this._editor.destroy();const t=document.createElement("div"),e=(await L(this.mapView)).map((t=>({layer:t,geometryUpdatesEnabled:this.enableEditGeometry})));this._editor=new this.Editor({allowedWorkflows:"update",view:this.mapView,layerInfos:e,visibleElements:{snappingControls:!1},container:t}),this._attachmentHandle&&this._activeWorkflowHandle&&(this._attachmentHandle.remove(),this._activeWorkflowHandle.remove()),this._attachmentHandle=this.reactiveUtils.when((()=>"adding-attachment"===this._editor.viewModel.state||"editing-attachment"===this._editor.viewModel.state||"creating-features"===this._editor.viewModel.state),(()=>{this._shouldClose=!1})),this._activeWorkflowHandle=this.reactiveUtils.watch((()=>this._editor.viewModel.activeWorkflow?.activeWorkflow),(t=>{"update-table-record"!==t?.type&&"create-features"!==t?.type||(this._shouldClose=!1),(t?.type||t?.hasPendingEdits||this._editor.activeWorkflow)&&this._editor?.activeWorkflow?.started||(this.open=!1)})),this._editContainer.appendChild(t)}}async _closeEdit(t){this._shouldClose=!0,t&&this._editor?.activeWorkflow?(this._editor.activeWorkflow?.activeWorkflow?.hasPendingEdits&&(await this._editor.activeWorkflow.reset(),await this._editor.cancelWorkflow()),this._editor.destroy()):this.graphicIndex>-1&&this.graphics?.length>0&&this.refreshGraphics.emit(this.graphics),this._shouldClose=!1,this.closeEdit.emit()}async _startUpdate(){await this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]),this._shouldClose=!0}async _getTranslations(){const t=await j(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],open:["openWatchHandler"]}}};q.style=":host{display:block}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-500{font-weight:var(--calcite-font-weight-medium)}.font-italic{font-style:italic}#feature-form{padding-top:0px}.padding-sides-bottom-1{padding:0 1rem 1rem 1rem}.position-relative{position:relative}.esri-editor__prompt--danger{position:relative !important;width:100% !important;background-color:var(--calcite-color-foreground-1) !important}.esri-feature__content-node{background-color:var(--calcite-color-foreground-1) !important}.esri-editor__panel-toolbar{display:none !important}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.esri-editor__panel-content{padding-block:10px !important}";const U=class{constructor(i){t(this,i),this.popupClosed=e(this,"popupClosed",7),this.selectionChanged=e(this,"selectionChanged",7),this.enableEditGeometry=!1,this.graphics=void 0,this.isLoading=!1,this.isMobile=void 0,this.mapView=void 0,this.allowEditing=!0,this.highlightEnabled=!0,this.paginationEnabled=!0,this.position="absolute",this._alertOpen=!1,this._count="",this._editRecordOpen=!1,this._mobileTitle="",this._showListView=!1,this._translations=void 0}get el(){return a(this)}Features;_editEnabled;_features;_layer;_popupUtils;_featuresNodeId="features-node"+(new Date).getMilliseconds().toString();reactiveUtils;async graphicsWatchHandler(){await this.setGraphics()}async isMobileWatchHandler(){await this._initFeaturesWidget()}async mapViewWatchHandler(){return await this._initFeaturesWidget()}async getSelectedFeature(){return this._features.selectedFeature}async refresh(){await this.setGraphics()}async back(){this._features.previous(),this._count=this._getCount()}async next(){this._features.next(),this._count=this._getCount()}async toggleListView(){this._showListView=!this._showListView;const t=this._features.selectedFeatureIndex;this._features.open({features:this.graphics,featureMenuOpen:this._showListView}),this._features.selectedFeatureIndex=t}async updateCurrentGraphic(t){this._features.selectedFeatureWidget.graphic=t}popupClosed;selectionChanged;async closeEdit(){this._editRecordOpen=!1}async layerSelectionChange(){this._showListView=!1,this._features?.viewModel&&(this._features.viewModel.featureMenuOpen=!1,this._features.close())}async refreshGraphics(t){this.graphics=[...t.detail]}async componentWillLoad(){await this._initModules(),await this._getTranslations(),this._popupUtils=new W}async componentDidLoad(){this.graphics?.length>0&&await this.setGraphics()}render(){const t=this.isLoading?"":"display-none",e=this.isLoading||this._editRecordOpen?"visibility-hidden":"position-absolute",a=!this.isLoading&&this._editRecordOpen?"position-absolute":"display-none",o=!this.isLoading&&this._editRecordOpen||this._showListView?"display-none":"",n=this._features?.features?.length<2,c=this.isMobile?"display-none":"",l=this._features?.selectedFeature?.getObjectId(),r=parseInt(l?.toString(),10)>-1?[l]:[],h=this._layer?.editingEnabled&&this._layer?.capabilities?.operations?.supportsDelete;return i(s,{key:"e200fd8d903d1c3295247a45f352ae62394501d5"},i("calcite-shell",{key:"0b467ed0b480944660ef2194b302070d56cb70e4",style:{position:this.position}},this._getHeader(),i("calcite-loader",{key:"cf6172f533f67274b04ac61af75f44ffe62cbc9e",class:t,label:this._translations.fetchingData}),i("div",{key:"06f3e0c61e14fe73c0fadd58c3cf2c7c03efff6d",class:"esri-widget feature-node "+e,id:this._featuresNodeId}),i("div",{key:"0f964afa075abbd27db827f90d189b9bc2a7c9d4",class:`${o} width-100`,slot:"footer"},this.allowEditing&&i("div",{key:"d518934d172425ecb46e6b28ea683427d8982382",class:"display-flex top-border padding-1-2"},i("calcite-button",{key:"4d4f3583b6448e33e3d3ad1aba8c9178f71d75b8",appearance:"solid",id:"solutions-edit",onClick:()=>this._openEditRecord(),width:"full"},this._translations.edit),this.isMobile&&h?i("delete-button",{class:"padding-inline-start-1 width-100",id:"solutions-delete",ids:r,layer:this._layer,onEditsComplete:()=>this._closePopup()}):void 0,i("calcite-tooltip",{key:"5358ba4079f1906d23b6df5b1facb84eec9692d3",placement:"bottom","reference-element":"solutions-edit"},i("span",{key:"8466cfb97ce12e46a06ed665afe974377911e101"},this._translations.edit)),this.isMobile?i("calcite-tooltip",{placement:"bottom","reference-element":"solutions-delete"},i("span",null,this._translations.delete)):void 0),this.paginationEnabled&&!n&&i("div",{key:"61c551cc2b0c0a2981daa9bf67c7e13318508ca6",class:`display-flex padding-1-2 button-container top-border ${c}`},i("div",{key:"379dc6697743caedf8fdbea16423b83e9e823a5b"},i("calcite-button",{key:"616a52367d2f56db0104ce279951a81fcf60a376",appearance:"transparent",disabled:n,iconFlipRtl:"both",iconStart:"chevron-left",id:"solutions-back",onClick:()=>this._back(),width:"full"}),i("calcite-tooltip",{key:"f7f83e145c25591de025650fd358ca6200c4b6c5",placement:"top","reference-element":"solutions-back"},i("span",{key:"8afbde57b91ee8597de237db87efda7eabc10d69"},this._translations.back))),i("calcite-action",{key:"23344d4abac515d089b8770d63181a989971aa33",class:"pagination-action",iconFlipRtl:!0,onClick:()=>this._toggleListView(),scale:"s",text:"",textEnabled:!0},i("span",{key:"a4c784c5a2c7dfeb9442a58f86961a3242f55055",class:"pagination-count"},this._count)),i("div",{key:"75e33452a93e9a77f30505957e87b8758ab8d2dd"},i("calcite-button",{key:"0283a96c401e1929588e28d6ec014eb28b93d1f1",appearance:"transparent",disabled:n,iconFlipRtl:"both",iconStart:"chevron-right",id:"solutions-next",onClick:()=>this._next(),width:"full"}),i("calcite-tooltip",{key:"658a26b1bca471b96799cb81ee941f0556619dc9",placement:"top","reference-element":"solutions-next"},i("span",{key:"9892d4ee61a1b5656711bb0a188282d9b46bd3f9"},this._translations.next))))),i("edit-card",{key:"541268c24631ab526bf1b65313d39f3ca606cb6d",class:a,enableEditGeometry:this.enableEditGeometry,graphicIndex:this._features?.selectedFeatureIndex,graphics:this.graphics,mapView:this.mapView,open:this._editRecordOpen}),i("calcite-alert",{key:"1cdff00f5d7e72b5db220750d290593a1baf68c4",icon:"layer-broken",kind:"warning",label:"",onCalciteAlertClose:()=>this._alertClosed(),open:this._alertOpen,placement:"top"},i("div",{key:"bb250c5906f0e998a794b5c02c22f9643fab16a9",slot:"title"},this._translations.editDisabled),i("div",{key:"d330d1ce74473fc76630d2607ab3ca2584aabbd7",slot:"message"},this._translations.enableEditing))))}async _initModules(){const[t,e]=await F(["esri/widgets/Features","esri/core/reactiveUtils"]);this.Features=t,this.reactiveUtils=e}async setGraphics(){this._features||await this._initFeaturesWidget(),this.graphics.length>0?(this._layer=this.graphics[0]?.layer,this._editEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsUpdate,this._mobileTitle=await this._popupUtils.getPopupTitle(this.graphics[0],this.mapView.map),this._features.open({features:this.graphics})):(this._features.clear(),this._features.close()),this._count=this._getCount()}async _initFeaturesWidget(){return void 0!==this.isMobile?await(this.mapView?.when((()=>{this._features?(this._features.view=this.mapView,this._features.visibleElements.actionBar=!1,this._features.visibleElements.closeButton=!1,this._features.visibleElements.heading=!this.isMobile):(this._features=new this.Features({view:this.mapView,container:this._featuresNodeId,visibleElements:{actionBar:!1,closeButton:!1,heading:!this.isMobile}}),this._features.viewModel.highlightEnabled=this.highlightEnabled,this.reactiveUtils.watch((()=>this._features.viewModel.featureMenuOpen),(t=>{this._count=this._getCount(),t||(this._showListView=t)})),this.reactiveUtils.watch((()=>this._features.selectedFeatureIndex),(t=>{t>-1&&this.selectionChanged.emit({selectedFeature:[this._features.selectedFeature],selectedFeatureIndex:this._features.selectedFeatureIndex})})))}))):Promise.resolve()}_getHeader(){return this.isMobile&&!this._editRecordOpen?i("calcite-panel",{class:"border-width-0",slot:"header"},i("calcite-action",{class:"end-border",icon:"chevron-left",iconFlipRtl:!0,onClick:()=>this._closePopup(),scale:"s",slot:"header-actions-start",text:""}),i("span",{class:"font-bold",slot:"header-content"},this._mobileTitle)):void 0}_closePopup(){this.popupClosed.emit()}_alertClosed(){this._alertOpen=!1}_openEditRecord(){this._editEnabled?this._editRecordOpen=!0:this._alertOpen=!0}_back(){this._features.previous(),this._count=this._getCount()}_next(){this._features.next(),this._count=this._getCount()}_getCount(){const t=(this._features?.viewModel.selectedFeatureIndex+1).toString(),e=this._features?.features?.length.toString();return this._translations.indexOfTotal.replace("{{index}}",t).replace("{{total}}",e)}_toggleListView(){this._showListView=!this._showListView;const t=this._features.selectedFeatureIndex;this._features.open({features:this.graphics,featureMenuOpen:this._showListView}),this._features.selectedFeatureIndex=t}async _getTranslations(){const t=await j(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],isMobile:["isMobileWatchHandler"],mapView:["mapViewWatchHandler"]}}};U.style=":host{display:block;--calcite-label-margin-bottom:0}.padding-1-2{padding:0.5rem}.display-none{display:none !important}.display-flex{display:flex}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.feature-node{position:relative !important}.feature-node .esri-features__footer{display:none !important}.button-container{justify-content:center;align-items:center}.top-border{border-top:1px solid var(--calcite-color-border-1)}.width-100{width:100%}.esri-features__container{padding:0.5rem !important;background-color:var(--calcite-color-foreground-1) !important;height:100% !important}.overflow-hidden{overflow:hidden}.height-40{height:40px}.end-border{border-inline-end:1px solid var(--calcite-color-border-1)}.font-bold{font-weight:bold}.visibility-hidden{visibility:hidden;height:0px}.padding-inline-start-1{padding-inline-start:1rem}.border-width-0{border-width:0px}.pagination-action{position:relative;left:3px}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}";export{V as calcite_alert,O as calcite_flow_item,R as create_feature,q as edit_card,U as info_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 e,g as s,h as a,H as t}from"./p-4e6eb06e.js";const r=class{constructor(s){e(this,s)}get el(){return s(this)}render(){return a(t,{key:"b58aca4fb9f05091f7b4c9a622755afed968a539"},a("slot",{key:"806ab314b95a05252b5d558722b3dcb68e9b5b44"}))}};r.style=":host{display:block}";export{r as feature_comments}
@@ -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 a,g as e,h as i,H as t}from"./p-4e6eb06e.js";import{c as l}from"./p-747d4b59.js";const d=class{constructor(e){a(this,e),this.showAddDeduct=!1}get el(){return e(this)}_deductValuesElement;render(){const a=this.showAddDeduct?"position-relative":"display-none";return i(t,{key:"25ddbf1fb00f5af4c91cda2b11d7f0e10f3a4272"},i("div",{key:"c13a5d8278ced35b481186cd98f2f2d3d18690bc",class:this.showAddDeduct?"display-none":"display-grid"},i("div",{key:"3203231a8fdd3cd733c99f980035cfa113acbdd9",class:"label-display"},i("calcite-label",{key:"2737467a3e3b28b76cecf0aaf7e60be0a585b3d8",class:"label-display"},"Enter comma delimited deduct values",this._getDeductValuesInput())),i("div",{key:"0ee41c12738a53e914920122a57c70f20925e71d"},this._getCalculateButton())),i("div",{key:"469feebb033359a3dbbc30175b88605c25a4d0d5",class:a},i("div",{key:"4615ba630e031b7f0166fa67e5e88ea5c1f1537b",class:"position-right"},i("calcite-action",{key:"afde404a2f1d3cbf63f6d28a8eb8bfde64da7daa",appearance:"transparent",class:"float-end",icon:"x",onClick:()=>this._toggleShowAddDeduct(),scale:"s",text:""})),i("deduct-calculator",{key:"d383b7ee41a508adab58e2dfdadfb1c7a85e4c25",class:"display-grid padding-top-1",onDeductValueComplete:a=>this._addDeductValue(a)})))}_getDeductValuesInput(){return i("div",{class:"display-flex"},i("calcite-input",{class:"main-input",ref:a=>{this._deductValuesElement=a}}),i("calcite-action",{appearance:"transparent",icon:"plus-circle",onClick:()=>this._toggleShowAddDeduct(),scale:"s",text:""}))}_getCalculateButton(){return i("calcite-button",{onClick:()=>this._calculatePCI(this._deductValuesElement.value)},"Calculate PCI")}_toggleShowAddDeduct(){this.showAddDeduct=!this.showAddDeduct}_addDeductValue(a){this._toggleShowAddDeduct(),this._deductValuesElement.value+=Math.abs(parseFloat(this._deductValuesElement.value))>0?`,${a.detail}`:a.detail}_calculatePCI(a){const e=l(a,!0),i=e<=10?"Failed":e<=25?"Serious":e<=40?"Very Poor":e<=55?"Poor":e<=70?"Fair":e<=85?"Satisfactory":"Good";console.log(`PCI: ${e}`),console.log(`Rating: ${i}`),alert("See debug console for results")}};d.style=":host{display:block;--calcite-label-margin-bottom:0}.label-display{display:block;padding-bottom:1rem}.display-flex{display:flex}.display-grid{display:grid}.display-table{display:table}.display-inline-table{display:inline-table}.display-none{display:none}.display-inherit{display:inherit}.padding-top-1{padding-top:1rem}.main-input{width:300px;padding-inline-end:1rem}.float-end{float:inline-end}.position-relative{position:relative}.position-right{position:absolute;right:0px}";export{d as pci_calculator}
@@ -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,g as s,h as e}from"./p-4e6eb06e.js";import{l as a,g as h}from"./p-f4aadb3b.js";import{P as n}from"./p-cd482a33.js";import{g as l,c as o,h as r}from"./p-d572627c.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ff9e28d1.js";import"./p-7530a02f.js";import"./p-d0d020a5.js";import"./p-9bb44f57.js";import"./p-80cb7c73.js";const c=class{constructor(s){t(this,s),this.featureSelect=i(this,"featureSelect",7),this.selectedLayerId=void 0,this.mapView=void 0,this.noFeaturesFoundMsg=void 0,this.pageSize=100,this.highlightOnMap=!1,this.highlightOnHover=!1,this.sortingInfo=void 0,this.whereClause=void 0,this.textSize="large",this.showInitialLoading=!0,this.showErrorWhenNoFeatures=!0,this.showUserImageInList=!1,this.showFeatureSymbol=!1,this.applyLayerViewFilter=!1,this.reportingOptions=void 0,this._featureItems=[],this._featuresCount=0,this._isLoading=!1,this._translations=void 0}get el(){return s(this)}Color;esriConfig;symbolUtils;_popupUtils;_selectedLayer;_highlightHandle;_highlights;_pagination;_validFieldTypes=["small-integer","integer","big-integer","single","long"];_abbreviatedLikeCount;_likeFieldAvailable=!1;async selectedLayerWatchHandler(){this._selectedLayer=await l(this.mapView,this.selectedLayerId),await this.initializeFeatureItems()}async sortingInfoWatchHandler(){await this.initializeFeatureItems()}async whereClauseHandler(){await this.initializeFeatureItems()}async refresh(t){if(t&&this._pagination){const t={target:{startItem:this._pagination.startItem}};await this.pageChanged(t)}else await this.initializeFeatureItems()}featureSelect;async componentWillLoad(){await this.initModules(),await this._getTranslations(),this._isLoading=this.showInitialLoading,this._popupUtils=new n,this.mapView&&this.selectedLayerId&&(this._selectedLayer=await l(this.mapView,this.selectedLayerId))}async componentDidLoad(){await this.initializeFeatureItems()}render(){return e("calcite-panel",{key:"59289a87561105e3edcbd52bac96b974b1387a16","full-height":!0,"full-width":!0},this._isLoading&&e("calcite-loader",{key:"59629285e49227209761d2f16bdd62a90750538f",label:"",scale:"m"}),this.showErrorWhenNoFeatures&&0===this._featureItems.length&&!this._isLoading&&e("calcite-notice",{key:"bc6c2e6e0fdf959374caf79f2027784e2fdaca15",class:"error-msg",icon:"feature-details",kind:"info",open:!0},e("div",{key:"052207ce0b0e2d8030ac7a4a7985c718371a9667",slot:"message"},this.noFeaturesFoundMsg?this.noFeaturesFoundMsg:this._translations.featureErrorMsg)),e("calcite-list",{key:"3f17ea85f2265717aa13c9c71f19c259470c9fcc","selection-appearance":"border","selection-mode":"none"},!this._isLoading&&this._featureItems.length>0&&this._featureItems),this._featuresCount>this.pageSize&&e("div",{key:"ce3179bcdc7af254488dea909034c58db17ec565",class:"width-full",slot:"footer"},e("calcite-pagination",{key:"d6a4b8c7a940918388b3b9891a666c4a142edae7",class:"pagination","full-width":!0,onCalcitePaginationChange:this.pageChanged.bind(this),"page-size":this.pageSize,ref:t=>this._pagination=t,"start-item":"1","total-items":this._featuresCount})))}async initModules(){const[t,i,s]=await a(["esri/Color","esri/config","esri/symbols/support/symbolUtils"]);this.Color=t,this.esriConfig=i,this.symbolUtils=s}async getWhereCondition(){let t="1=1";if(this.whereClause&&(t=this.whereClause),this._selectedLayer?.definitionExpression&&(t=t+" AND "+this._selectedLayer.definitionExpression),this.applyLayerViewFilter){const i=await o(this.mapView,this.selectedLayerId);i?.filter?.where&&(t=t+" AND "+i.filter.where)}return t}async initializeFeatureItems(){if(this._selectedLayer){this._pagination?.goTo("start"),this._isLoading=this.showInitialLoading,this._featureItems=await this.queryPage(0);const t={where:await this.getWhereCondition()};this._featuresCount=await this._selectedLayer.queryFeatureCount(t),this._isLoading=!1}}async pageChanged(t){this._isLoading=!0,this._highlightHandle&&(this._highlightHandle.remove(),this._highlightHandle=null);const i=t.target.startItem-1;this._featureItems=await this.queryPage(i),this._isLoading=!1}async featureClicked(t,i){if(this.clearHighlights(),this.highlightOnMap){const i=Number(t.target.value),s=await o(this.mapView,this.selectedLayerId);this._highlightHandle=await r([i],s,this.mapView,!0)}await this.emitSelectedFeature(i)}async emitSelectedFeature(t){const i=t.layer,s=i.createQuery();s.returnGeometry=!0,s.objectIds=[t.getObjectId()];const e=await i.queryFeatures(s);this.featureSelect.emit(e.features[0])}async onFeatureHover(t){if(this.clearHighlights(),this.highlightOnHover){const i=t.getObjectId(),s=await o(this.mapView,this.selectedLayerId);this._highlights&&(s.highlights=JSON.parse(this._highlights)),s.highlightOptions={color:new this.Color("#FFFF00")},this._highlights=JSON.stringify(s.highlights),this._highlightHandle=s.highlight([i])}}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}async queryPage(t){const i=this._selectedLayer,s=this.sortingInfo?.field?this.sortingInfo.field:i.objectIdField,e=this.sortingInfo?.order?this.sortingInfo.order:"desc",a=await this.getWhereCondition(),h={start:t,num:this.pageSize,outFields:["*"],returnGeometry:!0,where:a,outSpatialReference:this.mapView.spatialReference.toJSON()};s&&e&&(h.orderByFields=[s.toString()+" "+e]);const n=await i.queryFeatures(h);return await this.createFeatureItem(n)}async createFeatureItem(t){const i=t?.features,s=this.reportingOptions&&this.reportingOptions[this.selectedLayerId].like,e=i.map((async t=>{const i=await this._popupUtils.getPopupTitle(t,this.mapView.map);let e,a;if(this.showUserImageInList){const i=this._selectedLayer.editFieldsInfo?.creatorField;i&&(e=await this.getUserInformation(t))}return this.showFeatureSymbol&&(a=await this.getFeatureSymbol(t)),s&&this.getAbbreviatedLikeCount(t),this.getFeatureItem(t,i,a,e)}));return Promise.all(e)}getAbbreviatedLikeCount(t){const i=this._selectedLayer,s=this.reportingOptions[i.id].likeField;i.fields.forEach((e=>{if(this._validFieldTypes.indexOf(e.type)>-1&&e.name===s&&this.reportingOptions[i.id].like){this._likeFieldAvailable=!0;let i=t.attributes[s]||0;i>999&&(i=i>999999?this._translations.millionsAbbreviation.replace("{{abbreviated_value}}",Math.floor(i/1e6).toString()):this._translations.thousandsAbbreviation.replace("{{abbreviated_value}}",Math.floor(i/1e3).toString())),this._abbreviatedLikeCount=i}}))}getFeatureItem(t,i,s,a){const h=t.attributes[this._selectedLayer.objectIdField].toString();i=i??h;const n=Number(t.attributes[this.reportingOptions?.[this._selectedLayer.id].likeField]).toLocaleString(),l="small"===this.textSize?"feature-list-popup-title-small":"feature-list-popup-title",o=this.showUserImageInList||this.showFeatureSymbol?"feature-list-popup-title-padding-reduced":"feature-list-popup-title-padding";return e("calcite-list-item",{onCalciteListItemSelect:i=>{this.featureClicked(i,t)},onMouseLeave:()=>{this.clearHighlights()},onMouseOver:()=>{this.onFeatureHover(t)},value:h},this.showUserImageInList&&e("calcite-avatar",{class:"profile-img","full-name":a?.fullName,scale:"m",slot:"content-start",thumbnail:a?.userProfileUrl,userId:a?.id,username:a?.fullName?a.username:void 0}),this.showFeatureSymbol&&e("div",{class:"feature-symbol",ref:t=>t&&t.replaceChildren(s),slot:"content-start"}),e("div",{class:`${l} ${o}`,slot:"content-start"},i),this._likeFieldAvailable&&e("div",{class:"like-container",id:h.concat("like"),slot:"content-end"},e("span",null,this._abbreviatedLikeCount),e("calcite-icon",{icon:"thumbs-up",scale:"s"}),e("calcite-tooltip",{overlayPositioning:"fixed",placement:"top","reference-element":h.concat("like")},n)),e("calcite-icon",{flipRtl:!0,icon:"chevron-right",scale:"s",slot:"content-end"}))}async getUserInformation(t){let i=this._selectedLayer.editFieldsInfo?.creatorField;t.attributes.hasOwnProperty(i.toLowerCase())?i=i.toLowerCase():t.attributes.hasOwnProperty(i.toUpperCase())&&(i=i.toUpperCase());let s=`${this.esriConfig.portalUrl}/sharing/rest/community/users/${t.attributes[i]}?f=json&returnUserLicensedItems=true`;const e=this.mapView.map.portalItem.portal?.credential?.token;e&&(s+=`&token=${e}`);const a=await fetch(s),h=await a.json();let n=`${this.esriConfig.portalUrl}/sharing/rest/community/users/${h?.username??t.attributes[i]}/info/blob.png`;return h?.access&&e&&(n+=`?token=${e}`),h.userProfileUrl=n,h}async getFeatureSymbol(t){const i=document.createElement("div");return await this.symbolUtils.getDisplayedSymbol(t).then((async t=>{if(t&&await(this.symbolUtils?.renderPreviewHTML(t,{node:i})),i.children?.length){const t=i.children[0];if(t){const i=Number(t.getAttribute("height")),s=Number(t.getAttribute("width"));s>30?t.setAttribute("width","30"):s<19&&t.setAttribute("width","20"),t.setAttribute("viewBox",`0 0 ${s} ${i}`)}}})),i}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{selectedLayerId:["selectedLayerWatchHandler"],sortingInfo:["sortingInfoWatchHandler"],whereClause:["whereClauseHandler"]}}};c.style=":host{display:block}.width-full{width:100%}.pagination{display:flex;justify-content:center}.error-msg{padding:10px;width:calc(100% - 20px)}.feature-list-popup-title{font-weight:500;white-space:pre-line}.feature-list-popup-title-small{font-size:small;white-space:pre-line}.feature-list-popup-title-padding{padding:10px 12px}.feature-list-popup-title-padding-reduced{padding:10px 0}.profile-img{margin:0 0.75rem;min-width:32px}.like-container{display:flex;align-items:center;gap:5px;color:gray !important;font-style:italic}.feature-symbol{padding:3px 10px;min-width:30px;display:flex;justify-content:center}";export{c as feature_list}
@@ -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 e,c as t,g as i,h as a,H as s}from"./p-4e6eb06e.js";import{s as c}from"./p-c350eacb.js";import{g as l}from"./p-f4aadb3b.js";import{n}from"./p-5e71e72a.js";import{C as r,g as o}from"./p-80cb7c73.js";import"./p-dc9d4be3.js";import"./p-d0d020a5.js";import"./p-d4056c1c.js";import"./p-7530a02f.js";import"./p-9bb44f57.js";import"./p-0a24ad5f.js";const h=class{constructor(i){e(this,i),this.solutionItemSelected=t(this,"solutionItemSelected",7),this.selectedItemId=void 0,this.templateHierarchy=[]}get el(){return i(this)}valueWatchHandler(e,t){e&&e!==t&&Array.isArray(e)&&e.length>0&&this._treeItemSelected(e[0].id)}componentWillLoad(){this.valueWatchHandler(this.templateHierarchy,[])}render(){return a(s,{key:"756612330eb4802d2c00f86270518a22f129a559"},a("calcite-tree",{key:"ec6e7901373c3f3daa54ad0825fbc703034631d6"},this.renderHierarchy(this.templateHierarchy)))}renderHierarchy(e){return e.map((e=>{const t=this.selectedItemId&&this.selectedItemId===e.id;return e.dependencies&&e.dependencies.length>0?a("calcite-tree-item",{onClick:t=>this._treeItemSelected(e.id,t),selected:t},a("solution-item-icon",{type:e.type,typeKeywords:e.typeKeywords}),a("span",{class:"icon-text",title:e.title},e.title),a("calcite-tree",{slot:"children"},this.renderHierarchy(e.dependencies))):a("calcite-tree-item",{onClick:t=>this._treeItemSelected(e.id,t),selected:t},a("solution-item-icon",{type:e.type,typeKeywords:e.typeKeywords}),a("span",{class:"icon-text",title:e.title},e.title))}))}solutionItemSelected;_treeItemSelected(e,t){const i=t?.target?.closest("calcite-tree-item");i&&(i.expanded=!i?.expanded),this.selectedItemId=e,this.solutionItemSelected.emit(e)}static get assetsDirs(){return["item-type-icons"]}static get watchers(){return{templateHierarchy:["valueWatchHandler"]}}};h.style=".icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const d=class{constructor(t){e(this,t),this.authentication=void 0,this.itemId="",this.solutionVariables="",this.organizationVariables="",this.itemType=void 0,this._translations=void 0}get el(){return i(this)}itemIdWatchHandler(){const e=c.getItemInfo(this.itemId);this.itemType=e.type}async componentWillLoad(){return this._getTranslations()}render(){return a(s,{key:"25113cc21fc2c6ffa30daff180f2ee95bfb1c619"},a("div",{key:"30c87a13e5fe1c39a521401cb3d63677f412629b",class:"configuration-container"},a("div",{key:"41f787b8c0964c3aa5b6d629ca73aa271edef540",class:"configuration"},this._showGroupTabs("Group"===this.itemType),this._showItemTabs("Group"!==this.itemType))))}_showGroupTabs(e){return a("calcite-tabs",{class:"config-tabs",style:{display:e?"inherit":"none"}},a("calcite-tab-nav",{slot:"tab-nav"},a("calcite-tab-title",null,this._translations.groupDetailsTab),a("calcite-tab-title",null,this._translations.sharingTab)),a("calcite-tab",{class:"config-tab",id:"group-tab",selected:!0},a("solution-item-details",{"item-id":this.itemId})),a("calcite-tab",{class:"config-tab",id:"share-tab"},a("solution-item-sharing",{"group-id":this.itemId})))}_showItemTabs(e){return a("calcite-tabs",{class:"config-tabs",style:{display:e?"inherit":"none"}},a("calcite-tab-nav",{slot:"tab-nav"},a("calcite-tab-title",null,this._translations.itemDetailsTab),a("calcite-tab-title",null,this._translations.dataTab),a("calcite-tab-title",null,this._translations.propertiesTab),a("calcite-tab-title",null,this._translations.resourcesTab)),a("calcite-tab",{class:"config-tab",selected:!0},a("solution-item-details",{"item-id":this.itemId})),a("calcite-tab",{class:"config-tab",id:"data-tab"},a("solution-template-data",{instanceid:"data","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),a("calcite-tab",{class:"config-tab",id:"props-tab"},a("solution-template-data",{instanceid:"properties","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),a("calcite-tab",{class:"config-tab",id:"resources-tab"},a("solution-resource-item",{authentication:this.authentication,class:"solutions-resource-container","item-id":this.itemId})))}async _getTranslations(){const e=await l(this.el);this._translations=e[0]}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};d.style=".configuration-container{position:relative;height:100%;width:100%}.configuration{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:flex;padding:0.5rem;border:1px #808080 solid}.config-tabs{width:100%}.config-tab{width:100%;overflow-y:auto;height:inherit}";const p="3857",b=class{constructor(i){e(this,i),this.featureServiceSpatialReferenceChange=t(this,"featureServiceSpatialReferenceChange",7),this.enableDefaultSpatialReferenceChange=t(this,"enableDefaultSpatialReferenceChange",7),this.enabledSpatialReferenceChange=t(this,"enabledSpatialReferenceChange",7),this.enabled=!1,this.enableDefault=!1,this.featureServices=[],this._translations=void 0}get el(){return i(this)}enabledChanged(){this._handleSpatialRefParamChange()}enableDefaultChanged(){this._handleDefaultSpatialRefParamChange()}componentWillLoad(){return this._updateUIFromStore(),this._getTranslations()}render(){return this._updateUIFromStore(),a(s,{key:"48e068d6c44084861637657ca39ee931d9550e12"},a("label",{key:"fbc865a92e0be089fc856706b300f10007219b20",class:"switch-label"},a("calcite-switch",{key:"7dc37074873760a9128585ce05968e77713a6b24",checked:this.enabled,class:"spatial-ref-switch",onCalciteSwitchChange:e=>this.enabled=e.target.checked,scale:"m"}),this._translations.enableSpatialReference),a("br",{key:"4ba07c8c584e34ebcfc19c125425edd6405dc9cc"}),a("div",{key:"afe70ad8ae8d51c36bf81e7ca3ea49ba9464efde",class:"spatial-ref-component",id:"spatialRefDefn"},this._renderFeatureServicesList(this.featureServices)),a("label",{key:"69cd00eadfbd656bb5a1a9182cbaba7a2bec970d",class:"switch-label spatial-ref-component"},a("calcite-switch",{key:"2c1a9241d3e4e77cde61633a40c45003dcbb4052",checked:this.enableDefault,class:"spatial-ref-switch",disabled:!this.enabled,onCalciteSwitchChange:e=>this.enableDefault=e.target.checked,scale:"m"}),this._translations.enableDefaultSpatialReference))}featureServiceSpatialReferenceChange;enableDefaultSpatialReferenceChange;enabledSpatialReferenceChange;solutionStoreHasChanges(){this.featureServices=c.getStoreInfo("featureServices")}async _testAccess(e,t,i,a){switch(e){case"_parameterizeWkid":return Promise.resolve(this._parameterizeWkid(t));case"_unparameterizeWkid":return Promise.resolve(this._unparameterizeWkid(t))}return Promise.resolve(null)}_clearFeatureServiceDefaults(e){n(this.el.getElementsByClassName("spatial-ref-item-switch")).forEach((e=>e.checked=!1)),e.forEach((e=>this._updateEnabledServices({detail:{switched:!1}},e)))}_handleDefaultSpatialRefParamChange(){this._updateStore(),this.enableDefaultSpatialReferenceChange.emit({defaultWkid:this.enableDefault?p:""})}_handleSpatialRefParamChange(){this.enabled||(this.enableDefault=!1,this._clearFeatureServiceDefaults(this.featureServices)),this._updateStore(),this.enabledSpatialReferenceChange.emit({enabled:this.enabled})}_parameterizeWkid(e){return e?e.toString().startsWith(r)?e:`${r}${e}${o}`:e}_renderFeatureServicesList(e){const t=c.getStoreInfo("spatialReferenceInfo"),i=e.filter((e=>Object.keys(t.services).some((t=>t===e.id))));return i.length>0?a("div",null,a("label",{class:"spatial-ref-item-title"},this._translations.featureServicesHeading),a("ul",{class:"spatial-ref-services-list"},i.map((e=>a("li",{class:"spatial-ref-services-list-item"},a("label",{class:"switch-label"},a("calcite-switch",{checked:t.services[e.id],class:"spatial-ref-item-switch",disabled:!this.enabled,onCalciteSwitchChange:t=>this._updateEnabledServices(t,e),scale:"m"}),e.name)))))):null}_updateEnabledServices(e,t){const i=c.getStoreInfo("spatialReferenceInfo");i.services[t.id]=void 0!==e.detail?.switched?e.detail.switched:void 0===e.target?.checked||e.target.checked,c.setStoreInfo("spatialReferenceInfo",i),this._updateStore(),this.featureServiceSpatialReferenceChange.emit(t)}_unparameterizeWkid(e){return e&&e.toString().startsWith(r)?e.substring(r.length,e.length-o.length):e}_updateFeatureServices(e){e.enabled||Object.keys(e.services).forEach((t=>{e.services[t]=!1})),this.featureServices.forEach((t=>{t.enabled=e.services[t.id],t.wkid=t.enabled?this._parameterizeWkid(t.wkid):this._unparameterizeWkid(t.wkid)})),c.setStoreInfo("featureServices",this.featureServices)}_updateStore(){const e=c.getStoreInfo("spatialReferenceInfo");e.enabled=this.enabled,this.enabled&&this.enableDefault?e.default=p:e.hasOwnProperty("default")&&delete e.default,c.setStoreInfo("spatialReferenceInfo",e),this._updateFeatureServices(e)}_updateUIFromStore(){const e=c.getStoreInfo("spatialReferenceInfo");this.enabled=e.enabled,this.enableDefault=!!e.default,this.featureServices=c.getStoreInfo("featureServices")}async _getTranslations(){const e=await l(this.el);this._translations=e[0]}static get watchers(){return{enabled:["enabledChanged"],enableDefault:["enableDefaultChanged"]}}};b.style=".spatial-ref-switch{margin-inline-end:0.5rem}.spatial-ref-component{margin-top:0.625rem;margin-inline-start:2.5rem}#spatialRefDefn .sc-calcite-label-h label.sc-calcite-label{margin:0px;background-color:#CBC3E3}.spatial-ref-item-title{margin-bottom:0.5rem;font-size:0.875rem;line-height:1.25rem}.spatial-ref-item-switch{margin-inline-end:0.5rem}.switch-label{font-size:0.875rem;line-height:1.25rem}.spatial-ref-services-list{margin-block-start:0.5em;margin-block-end:0.5em;list-style-type:none;padding-inline-start:2em}.spatial-ref-services-list-item{margin-top:0.25rem}";export{h as solution_contents,d as solution_item,b as solution_spatial_ref}
@@ -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,g as s,h as e,H as h}from"./p-4e6eb06e.js";import{g as a,l as o}from"./p-f4aadb3b.js";import{g as l,q as n,e as c,f as d,i as r,j as p,c as b}from"./p-d572627c.js";import{d as f}from"./p-ff9e28d1.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";import"./p-7530a02f.js";import"./p-d0d020a5.js";import"./p-9bb44f57.js";const u=class{constructor(s){t(this,s),this.createWorkFlowStarted=i(this,"createWorkFlowStarted",7),this.backFromCreateWorkFlow=i(this,"backFromCreateWorkFlow",7),this.featureOrRecordSubmitted=i(this,"featureOrRecordSubmitted",7),this.customInfoText=void 0,this.enableEditGeometry=!1,this.isMobile=void 0,this.layer=void 0,this.mapView=void 0,this.zoomAndScrollToSelected=void 0,this.selectedFeaturesIds=void 0,this.enableCreateFeatures=!0,this.selectingFeatureFromMap=void 0,this._cardLoading=!1,this._graphics=void 0,this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._translations=void 0}get el(){return s(this)}_isFeatureCreated=!1;_createFeature;createWorkFlowStarted;backFromCreateWorkFlow;featureOrRecordSubmitted;async featureSelectionChange(t){this._showCreateFeatureComponent&&!this._isFeatureCreated&&this._backFromCreateFeature();const i=t.detail;this._graphics=await this._getFeaturesByIds(i)}async layerSelectionChange(t){this._showCreateFeatureComponent&&this._backFromCreateFeature();const i=t.detail[0];this.layer=await l(this.mapView,i)}async componentWillLoad(){await this._getTranslations(),this.selectedFeaturesIds?.length>0&&(this._graphics=await this._getFeaturesByIds(this.selectedFeaturesIds))}render(){const t=this._graphics?.length>0?"":"display-none",i=0===this._graphics?.length&&this._showCreateFeatureComponent?"":"display-none",s=this._graphics?.length>0||this._showCreateFeatureComponent?"display-none":"",a=this.layer?.isTable,o=a?this._translations.createRecord:this._translations.createFeature,l=this.customInfoText?this.customInfoText:this.selectingFeatureFromMap?this._translations.selectFeaturesFromMapToStart:this._translations.selectFeaturesToStart,n=this.enableCreateFeatures&&this.layer?.capabilities?.operations?.supportsAdd;return e(h,{key:"7360aa9c48dd0c3e4a14fe0833b99c301388f93c"},e("div",{key:"9d610f0c4728c238eceb790e97a4e06b77f1a2d1",class:"overflow-auto height-full"},e("calcite-shell",{key:"4b6a02205a971c7ff61aab567b2f2a3c5d288f8d",class:"position-relative "+t},e("div",{key:"96ee8ce138265dd4b562ac0a33b79a0db4497842",class:"position-static z-index-500"},e("info-card",{key:"7db359bc1016281fd01b737dc5c424fe78995422",enableEditGeometry:this.enableEditGeometry,graphics:this._graphics,isLoading:this._cardLoading,isMobile:this.isMobile,mapView:this.mapView}))),e("calcite-shell",{key:"afc8d06e9aa3213a9ca10c929497ed4618a28e91",class:"position-relative "+s},e("calcite-flow-item",{key:"46db92a6e259eefea3293310e3e2f43d7639db97"},e("calcite-panel",{key:"d2bc23ae7bcf2b7b7b48a35efc0697e0d1f9e23e"},e("div",{key:"8f7fd13f9ec99beec1d7231dda03eba403a70a69",class:"padding-1"},e("calcite-notice",{key:"2fbe94292c1dd91ee1691b8e3d295225ff5b534b",icon:this.selectingFeatureFromMap?"map":"table",iconFlipRtl:!0,open:!0},e("div",{key:"9f91099e4bfa0675c5b098a73b2f132b80ee76b0",slot:"message"},l))),!this.isMobile&&n&&e("calcite-button",{key:"c1b04e776f3750712992d736e09726cc26eae5db",disabled:!this.layer,onClick:()=>this._createFeatureBtnClicked(),slot:"footer",width:"full"},a?this._translations.createRecord:this._translations.createFeature)))),e("calcite-shell",{key:"a71d4b0abd1ec1a4ed14a2cb3dcb10a075f54bf0",class:"position-relative "+i},e("calcite-flow-item",{key:"85047b527f5995a912b527325f287c3596caf630"},e("calcite-panel",{key:"d335be81502e0feb803ee9ad4e501d4c85f184f5",heading:o},e("calcite-action",{key:"b179c3185dbada3bd052d38b98b75cf29240655c",class:"back-button hydrated",icon:"chevron-left",onClick:this._backFromCreateFeature.bind(this),scale:"s",slot:"header-actions-start",text:""}),this.getEditorComponent(),this._showSubmitBtn&&e("calcite-button",{key:"f3b6655e3effdb6b09e64acd651a09d6028a6df9",appearance:"solid",class:"footer-top-button footer-button",onClick:()=>{this._createFeature.submit()},slot:"footer",width:"full"},this._translations.create))))))}getEditorComponent(){return e("div",null,this._showCreateFeatureComponent&&e("create-feature",{customizeSubmit:!0,mapView:this.mapView,onDrawComplete:()=>{this._showSubmitBtn=!0},onEditingAttachment:t=>{this._showSubmitBtn=!t.detail},onProgressStatus:()=>{setTimeout((()=>{this._isFeatureCreated=!1}),2e3)},onSuccess:this._featureCreated.bind(this),ref:t=>this._createFeature=t,selectedLayerId:this.layer?.id,showGuidingMsgWhileDrawing:!1}))}async _getFeaturesByIds(t){return(t.length>0?await n(t,this.layer,[],!0,this.mapView.spatialReference):[]).sort(((i,s)=>t.indexOf(i.getObjectId())-t.indexOf(s.getObjectId())))}_createFeatureBtnClicked(){this._showCreateFeatureComponent=!0,this.createWorkFlowStarted.emit()}async _backFromCreateFeature(){this._createFeature&&(this._showCreateFeatureComponent=!1,this.backFromCreateWorkFlow.emit()),this._showSubmitBtn=!1}_featureCreated(){this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._isFeatureCreated=!0,this.featureOrRecordSubmitted.emit(),setTimeout((()=>{this._showCreateFeatureComponent=!0}),50)}async _getTranslations(){const t=await a(this.el);this._translations=t[0]}};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%}.position-static{position:static !important}.z-index-500{z-index:500 !important}card-manager{display:block}";const m=class{constructor(s){t(this,s),this.featureSelectionChange=i(this,"featureSelectionChange",7),this.toggleFilter=i(this,"toggleFilter",7),this.appLayout=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.mapHidden=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.zoomToScale=void 0,this.createFilterModal=!0,this._allIds=[],this._controlsThatFit=void 0,this._csvExporting=!1,this._fetchingData=!1,this._filterActive=!1,this._filterOpen=!1,this._layer=void 0,this._selectAllActive=!1,this._deleteDialogOpen=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=void 0,this._translations=void 0,this._fullTextSearchInfo=void 0,this._searchPlaceHolder="",this._size=0}get el(){return s(this)}FeatureTable;TableTemplate;_columnsInfo;_ctrlIsPressed=!1;_currentId;_editEnabled;_defaultFilterHonored=!1;_defaultGlobalIdHonored=!1;_defaultOidHonored=!1;_defaultVisibleToolSizeInfos;_definitionExpression;_deleteEnabled;_filterList;_floorExpression;_floorField;_floorFacility;_floorLevel;_floorSite;_layerExpressions;_loaded=!1;_mapClickHandle;_observerSet=!1;_previousCurrentId;reactiveUtils;_refreshHandle;_resizeObserver;_selectAllElement;_selectionFromMap=!1;_shareNode;_shiftIsPressed=!1;_showHideDropdown;_skipOnChange=!1;_moreDropdown;_table;_tableNode;_timeout;_toolbar;_toolbarSizeInfos;_searchExpression;appLayoutWatchHandler(){this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}enableCSVWatchHandler(){this._toolInfos?.length>0&&this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}enableShareWatchHandler(){this._toolbar&&this._updateToolbar()}_controlsThatFitWatchHandler(){const t=this._controlsThatFit?this._controlsThatFit.reduce(((t,i)=>(t.push(i.id),t)),[]):[];this._toolInfos=this._toolInfos?.map((i=>{if(i&&this._controlsThatFit){const s=this._getId(i.icon);return i.isOverflow=t.indexOf(s)<0,i}}))}mapHiddenWatchHandler(){this._toolInfos?.length>0&&this._initToolInfos()}isMobileWatchHandler(){this._toolInfos||this.isMobile||this._initToolInfos()}async mapInfoWatchHandler(){this._resetColumnTemplates(),this.createFilterModal&&this._initLayerExpressions(),this._initToolInfos(),this._updateToolbar(),await this._sortTable()}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression=void 0,this._searchExpression=void 0,this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils.on((()=>this.mapView),"click",(t=>{this._mapClicked(t)})))}async _layerWatchHandler(){this._fetchingData=!0,await(this._layer?.when((async()=>{this._definitionExpression=this._layer.definitionExpression,this._floorField=this._layer.floorInfo?.floorField,this._updateFloorDefinitionExpression(),await this._resetTable(),this.createFilterModal&&this._initLayerExpressions(),this._updateShareUrl(),this._fetchingData=!1})))}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0]))}async filterReset(){await this._handleFilterListReset()}async filterUpdate(){await this._handleFilterUpdate()}async closeFilter(){await this._closeFilter()}async refresh(){this._table&&await this._refresh()}featureSelectionChange;toggleFilter;async selectionChanged(t){const i=t.detail.selectedFeature[0],s=i.getObjectId(),e=this._table;if(e.rowHighlightIds.length&&e.rowHighlightIds.removeAll(),e.rowHighlightIds.add(s),this.zoomAndScrollToSelected){const t=this._table.viewModel.getObjectIdIndex(s);this._table.scrollToIndex(t);const e=i.layer;let h;this.mapView.allLayerViews.toArray().some((t=>{if(t.layer.title===e.title&&"feature"===t.layer.type)return h=t,!0})),h&&await c([s],h,this.mapView,!0,void 0,this.zoomToScale)}}async layerSelectionChange(t){await this._layerSelectionChanged(t)}async editsComplete(t){const i=t.detail;"delete"!==i&&"add"!==i||(this._allIds=await d(this._layer)),await this._refresh()}async facilityChanged(t){this._floorFacility=t.detail,this._updateFloorDefinitionExpression()}async levelChanged(t){this._floorLevel=t.detail,this._updateFloorDefinitionExpression()}async siteChanged(t){this._floorSite=t.detail,this._updateFloorDefinitionExpression()}noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}clearSelection(){this._clearSelection()}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initToolInfos(),this._resizeObserver||(this._resizeObserver=new ResizeObserver((()=>this._onResize())))}render(){const t=this._fetchingData?"display-none":"",i=this._fetchingData?"":"display-none",s=this._size.toString(),a=this.selectedIds.length.toString(),o=this.isMobile?"height-full":"height-full-adjusted",l=this._canShowFullTextSearch();return this._validateActiveActions(),e(h,{key:"04fccaaa9862ed315d99ad74f7e1135dd5656613"},e("calcite-shell",{key:"e332d781be1499857a5e17e37ad2e058bba453b1"},this._getTableControlRow("header"),e("div",{key:"6337e494f879c250494c5f5859daec627fdd0700",class:`width-full ${o}`},e("calcite-panel",{key:"d0d437997906fd15f97765cb89c3917f66b20c37",class:"height-full width-full"},l&&e("div",{key:"596a2d54fd707941d9e2ec167598313d9ee9b295",class:"search-container"},e("calcite-input",{key:"31cd1ffb09bc2c6c9c1f9daf39f3e9549cbceeb2",class:"search",clearable:!0,icon:"search",onCalciteInputChange:t=>{this._searchTextChanged(t)},placeholder:this._searchPlaceHolder,title:this._searchPlaceHolder,type:"search"})),e("calcite-loader",{key:"b4ba3d32fb346134672e08d55428bd38ac43f40d",class:i,label:this._translations.fetchingData,scale:"l"}),e("div",{key:"4fbac73935be7a1163643543e6d77a200534e5e3",class:t,ref:this.onTableNodeCreate}))),this.isMobile?void 0:e("div",{class:"bottom-left text-color height-19"},this._translations.recordsSelected.replace("{{total}}",s).replace("{{selected}}",a))),this.createFilterModal&&this._filterModal(),e("delete-dialog",{key:"3b0dba8bc391d777f4687ad6f4e905aeb1eb580b",id:"deleteDialogId",ids:this._getIds(),layer:this._layer,onDeleteDialogClose:()=>this._deleteDialogOpen=!1,open:this._deleteDialogOpen,ref:t=>this._deleteDialog=t}))}_deleteDialog;async componentDidLoad(){this.isMobile||this._observerSet||(this._resizeObserver.observe(this._toolbar),this._observerSet=!0)}componentDidRender(){document.onclick=t=>this._handleDocumentClick(t),document.onkeydown=t=>this._handleKeyDown(t),document.onkeyup=t=>this._handleKeyUp(t),this._updateToolbar()}async _initModules(){const[t,i,s]=await o(["esri/widgets/FeatureTable","esri/core/reactiveUtils","esri/widgets/FeatureTable/support/TableTemplate"]);this.FeatureTable=t,this.reactiveUtils=i,this.TableTemplate=s}async _searchTextChanged(t){this._fullTextSearchInfo.forEach((i=>{i.searchTerm=t.target.value})),this._searchFullText()}async _searchFullText(){if(this._searchExpression&&this._clearSearchDefinitionExpression(),this._fullTextSearchInfo.length&&this._fullTextSearchInfo[0].searchTerm){const t=this._layer.createQuery();t.fullText=this._fullTextSearchInfo;const i=await this._layer.queryObjectIds(t);await this._updateSearchDefinitionExpression(i?.length?i:[-1])}await new Promise((t=>setTimeout(t,800))),await this._updateAllIds()}_clearSearchDefinitionExpression(){const t=this._layer.definitionExpression;this._searchExpression&&t?.indexOf(this._searchExpression)>-1&&(this._layer.definitionExpression=t?.indexOf(" AND ("+this._searchExpression)>-1?t.replace(` AND (${this._searchExpression})`,""):t.replace(this._searchExpression,"")),this._searchExpression=void 0}async _updateSearchDefinitionExpression(t){const i=this._layer.definitionExpression;if(t?.length){const s=`objectId in(${t})`;this._layer.definitionExpression=i?.indexOf(this._searchExpression)>-1?i.replace(this._searchExpression,s):i?`${i} AND (${s})`:s,this._searchExpression=s}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return((this._layer?.capabilities)?.query)?.supportsFullTextSearch&&this._layer.indexes.items.filter((t=>"FullText"==t.indexType)).length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],((this._layer?.capabilities)?.query)?.supportsFullTextSearch){const t=this._layer.indexes?.filter((t=>"FullText"==t.indexType));if(t?.length){const i=[];t.forEach((t=>{i.push(...t.fields.split(","))}));const s=[];i.forEach((t=>{const i=this._layer.getField(t.trim());s.push(i.alias)})),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{fields}}",s.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_onResize(){this._updateToolbar()}_getTableControlRow(t){const i=this._canShowFullTextSearch()?"border-bottom":"";return e("div",{class:`display-flex height-51-px ${i}`,ref:t=>this._toolbar=t,slot:t},this._getActionBar(),this.isMobile?void 0:this._getDropdown("more-table-options"),this.enableShare&&!this.isMobile?this._getShare("share"):void 0)}_getActionBar(){const t=this.isMobile?"width-full":"",i=this.isMobile?"border-top":"";return e("calcite-action-bar",{class:t,expandDisabled:!0,expanded:!0,id:this._getId("bar"),layout:"horizontal"},e("div",{class:`border-end ${t} ${i}`,id:"solutions-map-layer-picker-container"},e("map-layer-picker",{appearance:"transparent",defaultLayerId:this.defaultLayerId,display:"inline-flex",height:50,isMobile:this.isMobile,mapView:this.mapView,onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,placeholderIcon:"layers",scale:"l",selectedIds:this._layer?[this._layer?.id]:[],showSingleLayerAsLabel:!0,showTables:!0,type:"dropdown"})),this.isMobile?void 0:this._getActions())}_getActions(){const t=this._getActionItems();return t?.reduce(((t,i)=>(i&&!i.isOverflow&&t.push(i.isDanger?this._getDangerAction(i.icon,i.label,i.func,i.disabled):i.isSublist?e("calcite-dropdown",{closeOnSelectDisabled:!0,id:this._getId(i.icon),onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:t=>this._showHideDropdown=t},this._getAction(i.active,this._showHideOpen?"chevron-down":i.icon,i.indicator,i.label,i.func,i.disabled,i.loading,"trigger"),this._showHideOpen?this._getFieldlist():void 0):this._getAction(i.active,i.icon,i.indicator,i.label,i.func,i.disabled,i.loading)),t)),[])}_getFieldlist(){return this._columnsInfo?e("calcite-dropdown-group",{"selection-mode":"multiple"},Object.keys(this._columnsInfo).map((t=>{const i=this._columnsInfo[t];return e("calcite-dropdown-item",{id:`layer-table-${t.toLowerCase().replaceAll(" ","")}`,label:t,onClick:t=>{const i=t.target;this._columnsInfo[i.label]=i.selected,i.selected?this._table.showColumn(i.label):this._table.hideColumn(i.label)},selected:i},t)}))):void 0}_validateEnabledActions(){const t=this._featuresSelected(),i=this.selectedIds.length>1&&this._layer?.capabilities?.operations?.supportsUpdate,s=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach((e=>{e&&s.indexOf(e.icon)>-1&&(e.disabled="pencil"===e.icon?!i:!t)}))}_validateActiveActions(){const t=["filter","list-check-all","selected-items-filter"];this._toolInfos?.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 t=this._featuresSelected(),i=this.selectedIds.length>1&&this._layer?.capabilities?.operations?.supportsUpdate&&!1,s=this._featuresEmpty(),e=this._hasFilterExpressions();this._translations&&(this._toolInfos=[this.mapHidden?void 0:{active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!t,isOverflow:!1},e?{active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.createFilterModal?this._toggleFilter():this.toggleFilter.emit(),disabled:!1,isOverflow:!1}:void 0,i?{active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>alert(this._translations.editMultiple),disabled:!i,isOverflow:!1}:void 0,this._deleteEnabled?{active:void 0,icon:"trash",indicator:void 0,label:this._translations.delete,func:()=>this._showDelete(),disabled:!t,isDanger:!0,isOverflow:!1}:void 0,{active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>this._clearSelection(),disabled:!t,isOverflow:!1},{active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!t,isOverflow:!1},{active:!1,icon:"list-check-all",indicator:!1,func:()=>this._selectAll(),label:this._translations.selectAll,disabled:s,isOverflow:!1},{active:!1,icon:"compare",indicator:!1,func:()=>this._switchSelected(),label:this._translations.switchSelected,disabled:s,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,loading:this._csvExporting,disabled:s,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(){if(this._floorField&&this._floorLevel){const t=`${this._floorField} = '${this._floorLevel}'`,i=this._layer.definitionExpression;this._layer.definitionExpression=i?.indexOf(this._floorExpression)>-1?i.replace(this._floorExpression,t):i?`${i} AND (${t})`:t,this._floorExpression=t}}_featuresSelected(){return this.selectedIds.length>0}_featuresEmpty(){return 0===this._allIds.length}_hasFilterExpressions(){let t;return this.mapInfo?.filterConfig?.layerExpressions&&this._layer?.id&&(t=this.mapInfo.filterConfig.layerExpressions.filter((t=>t.id===this._layer.id))),t?.length>0}_updateToolbar(){this._timeout&&clearTimeout(this._timeout),!this.isMobile&&this._toolbar&&this._toolInfos&&(this._timeout=setTimeout((()=>{clearTimeout(this._timeout),this._setToolbarSizeInfos();const t=this._toolbar.offsetWidth;let i=this._toolbarSizeInfos.reduce(((t,i)=>t+i.width),0);const s=["solutions-more","solutions-map-layer-picker-container","solutions-action-share"];if(i>t){if(this._toolbarSizeInfos.length>0){const e=[...this._toolbarSizeInfos].reverse().reduce(((e,h)=>(s.indexOf(h.id)<0&&(i>t?i-=h.width:e.push(h)),e)),[]).reverse();this._setControlsThatFit(e,s)}}else if(this._defaultVisibleToolSizeInfos){const e=this._toolbarSizeInfos.reduce(((t,i)=>(t.push(i.id),t)),[]);let h=!1;const a=[...this._defaultVisibleToolSizeInfos].reduce(((a,o)=>(!h&&s.indexOf(o.id)<0&&(e.indexOf(o.id)>-1||i+o.width<=t)?(e.indexOf(o.id)<0&&(i+=o.width),a.push(o)):s.indexOf(o.id)<0&&i+o.width>t&&(h=!0),a)),[]);this._setControlsThatFit(a,s)}}),250))}_setControlsThatFit(t,i){let s=JSON.stringify(t)!==JSON.stringify(this._controlsThatFit);const e=document.getElementById("solutions-action-bar");e?.childNodes?.forEach((t=>{i.indexOf(t.id)<0&&!s&&(s=this._controlsThatFit.map((t=>t.id)).indexOf(t.id)<0)})),s&&(this._controlsThatFit=[...t])}_setToolbarSizeInfos(){let t=!1;this._toolbarSizeInfos=[],this._toolbar.childNodes.forEach(((i,s)=>{0===s?i.childNodes.forEach((i=>{this._toolbarSizeInfos.push({id:i.id,width:i.offsetWidth}),t||(t=i.offsetWidth>0)})):i.referenceElement||(this._toolbarSizeInfos.push({id:i.id,width:i.offsetWidth}),t||(t=i.offsetWidth>0))})),t&&!this._defaultVisibleToolSizeInfos&&(this._defaultVisibleToolSizeInfos=[...this._toolbarSizeInfos])}_getActionItems(){return this._toolInfos?.filter((t=>t&&!t.isOverflow))}_getDropdown(t){const i=this._getDropdownItems();return i.length>0?e("calcite-dropdown",{closeOnSelectDisabled:!0,disabled:void 0===this._layer,id:"solutions-more",onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:t=>this._moreDropdown=t},e("calcite-action",{appearance:"solid",id:t,label:"",onClick:()=>this._closeShowHide(),slot:"trigger",text:""},e("calcite-button",{appearance:"transparent",iconEnd:"chevron-down",kind:"neutral"},this._translations.more)),e("calcite-dropdown-group",{"selection-mode":"none"},i.map((t=>e("calcite-dropdown-group",{class:`${t.disabled?"disabled":""} ${"trash"===t.icon?"delete-red":""}`,selectionMode:"none"},e("calcite-dropdown-item",{disabled:t.loading,iconStart:t.isSublist&&this._showHideOpen?"chevron-down":t.loading?"":t.icon,id:`layer-table-${t.icon}`,onClick:t.func},t.loading?e("div",{class:"display-flex"},e("calcite-loader",{inline:!0,label:t.label,scale:"m"}),t.label):t.label))))),this._showHideOpen?this._getFieldlist():void 0):void 0}_getDropdownItems(){return this._toolInfos?.filter((t=>t&&t.isOverflow))}_getAction(t,i,s,h,a,o,l,n){const c=void 0===this._layer||o;return e("div",{class:"display-flex",id:this._getId(i),slot:n},e("calcite-action",{active:t,appearance:"solid",disabled:c,icon:i,id:`layer-table-${i}`,indicator:s,label:h,loading:l,onClick:a,text:h,textEnabled:!0}),this._getToolTip("bottom",i,h))}_showDelete(){this._deleteDialogOpen=!0}_getShare(t){return e("div",{class:"share-action",id:this._getId(t)},e("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"instant-app-share",embed:this.shareIncludeEmbed,popoverButtonIconScale:"s",ref:t=>this._shareNode=t,scale:"m",shareButtonColor:"neutral",shareButtonType:"action",socialMedia:this.shareIncludeSocial,view:this.mapView}),this._getToolTip("bottom",t,this._translations.share))}_updateShareUrl(){const t=this._shareNode?.shareUrl;if(!t)return;const i=new URL(t);this.mapInfo?.id?i.searchParams.set("webmap",this.mapInfo.id):i.searchParams.delete("webmap"),this._layer?.id?i.searchParams.set("layer",this._layer.id):i.searchParams.delete("layer"),this.selectedIds?.length>0?i.searchParams.set("oid",this.selectedIds.join(",")):i.searchParams.delete("oid"),i.searchParams.set("applayout",this.appLayout),this._shareNode.shareUrl=i.href}_getToolTip(t,i,s){return document.getElementById(i)?e("calcite-tooltip",{placement:t,"reference-element":i},e("span",null,s)):void 0}_getId(t){return`solutions-action-${t}`}_getDangerAction(t,i,s,h){const a=void 0===this._layer||h;return e("div",{class:"display-flex",id:this._getId(t)},"trash"===t?e("delete-button",{buttonType:"action",class:"display-flex",disabled:a,icon:t,id:"solutions-delete",ids:this._getIds(),layer:this._layer}):e("calcite-action",{appearance:"solid",disabled:a,id:t,onClick:s,text:i},e("calcite-button",{appearance:"transparent",iconStart:t,kind:"danger"},i)),this._getToolTip("bottom",t,i))}_getIds(){return this._table?.highlightIds?.toArray()}onTableNodeCreate=t=>{this._tableNode=t};async _getTable(t,i){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:i},container:t})})),await this._table.when((()=>{this._table.highlightIds.on("change",(t=>{this._handleOnChange(t)}));const t=this.reactiveUtils.watch((()=>this._table.size),(t=>{this._size=t}));this._table.viewModel.addHandles(t)})))}async _handleOnChange(t){const i=[...this._table.highlightIds.toArray()];if(this._skipOnChange)this._skipOnChange=!1;else{if(!this._ctrlIsPressed&&!this._shiftIsPressed||this._selectionFromMap&&this._shiftIsPressed)if(this.selectedIds.length>0){this._skipOnChange=!0;const s=this.selectedIds.length>1&&1===t.removed.length?t.removed:i.filter((t=>this.selectedIds.indexOf(t)<0));this._clearSelection(),this.selectedIds=[...s],s.length>0?this._table.highlightIds.add(s[0]):this._skipOnChange=!1}else this.selectedIds=i.reverse();else if(this._ctrlIsPressed)this.selectedIds=i.reverse();else if(this._shiftIsPressed&&i?.length>0)if(this._skipOnChange=!0,this._previousCurrentId=this._currentId,this._currentId=[...i].reverse()[0],1===i.length)this._skipOnChange=!1;else if(this._previousCurrentId!==this._currentId){const t=this._table.activeSortOrders.reduce(((t,i)=>(t.push(`${i.fieldName} ${i.direction}`),t)),[]),s=await r(0,this._layer,[],t);let e=!1;const h=this._table.viewModel.getObjectIdIndex(this._previousCurrentId),a=this._table.viewModel.getObjectIdIndex(this._currentId);this._skipOnChange=(h<a?h:a)+1!==(a>h?a:h);const o=s.reduce(((t,i)=>{const s=i;return s===this._currentId||s===this._previousCurrentId?(e=!e,t.indexOf(s)<0&&t.push(s)):e&&t.indexOf(s)<0&&t.push(s),t}),[]),l=h<a?o.reverse():o;this.selectedIds=[...new Set([...l,...this.selectedIds])],this._table.highlightIds.addMany(this.selectedIds.filter((t=>i.indexOf(t)<0)))}this._finishOnChange()}this._currentId=[...this._table.highlightIds.toArray()].reverse()[0],this._selectionFromMap=!1}_finishOnChange(){this._showOnlySelected&&(this._featuresSelected()?this._table.filterBySelection():this._toggleShowSelected()),this.featureSelectionChange.emit(this.selectedIds)}_resetColumnTemplates(){const t=this._getColumnTemplates(this._layer?.id,this._layer?.fields),i=t?.some(((t,i)=>JSON.stringify(this._table?.tableTemplate.columnTemplates[i])!==JSON.stringify(t)));if(this._table&&t&&(i||!this._columnsInfo)){this._table.tableTemplate=new this.TableTemplate({columnTemplates:t});const i=t.map((t=>t.fieldName));this._initColumnsInfo(i)}}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await d(this._layer),this._table)this._table.view=this.mapView,this._table.layer=this._layer;else{const t=this._getColumnTemplates(this._layer.id,this._layer?.fields);await this._getTable(this._tableNode,t)}await this._initLayerRefresh(),this._checkEditEnabled(),this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,await this._table.when(),setTimeout((()=>{this._loaded||(console.log(`table.state: ${this._table.state}`),this.finishLoading())}),1e3),await this.reactiveUtils.once((()=>"loaded"===this._table.state)).then((async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table.highlightIds.removeAll(),this._table.clearSelectionFilter(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),this._initToolInfos(),this._updateToolbar()}catch(t){console.log(t)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._refreshHandle=this._layer.on("refresh",(t=>{t.dataChanged&&(this._skipOnChange=!0,this._updateAllIds())}))}async _updateAllIds(){this._allIds=await d(this._layer),this.selectedIds=this.selectedIds.filter((t=>this._allIds.indexOf(t)>-1)),await this._refresh()}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=void 0,this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId?.length>0&&this._table){const t=await p(this.defaultGlobalId,this._layer),i=t?.length>0?t.map((t=>t.getObjectId())):void 0;i&&await this._selectDefaultFeature(i),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=void 0,this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(t){const i=this._table?.columns.reduce(((i,s)=>((!t||t?.indexOf(s.name)>-1)&&(i[s.name]=!s.hidden),i)),{}),s=this._table?.columns.map((t=>t.name));(t?t.filter((t=>s.indexOf(t)<0)):[]).forEach((t=>{i[t]=!0})),this._columnsInfo=t?t.reduce(((t,s)=>(t[s]=i[s],t)),{}):i}async _selectDefaultFeature(t){t.length>0&&this._table.highlightIds.addMany(t)}_checkEditEnabled(){this._editEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsUpdate,this._deleteEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsDelete}async _sortTable(){let t,i=this._layer?.objectIdField,s="desc";this.mapInfo?.layerOptions?.layers?.length>0&&this._layer?.id&&(t=this.mapInfo.layerOptions.layers.filter((t=>t.id===this._layer.id)),t&&t.length>0&&(t=t[0],t.sortField&&t.fields?.includes(t.sortField)&&(i=t.sortField),s=t?.sortOrder?t.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when((()=>{this._table.sortColumn(i,s)})))}_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(t){const i=t.target?.id;i.startsWith("layer-table-")?this._moreDropdown.open=!0:this._showHideOpen&&Object.keys(this._columnsInfo).indexOf(i)<0&&"chevron-right"!==i&&(this._closeShowHide(),this._moreDropdown&&(this._moreDropdown.open=!1),this._showHideDropdown&&(this._showHideDropdown.open=!1))}_handleKeyDown(t){this._ctrlIsPressed=t.ctrlKey,this._shiftIsPressed=t.shiftKey}_handleKeyUp(t){this._ctrlIsPressed=t.ctrlKey,this._shiftIsPressed=t.shiftKey}_filterModal(){return e("calcite-modal",{"aria-labelledby":"modal-title",class:"modal",kind:"brand",onCalciteModalClose:()=>{this._closeFilter()},open:this._filterOpen,widthScale:"s"},e("div",{class:"display-flex align-center",id:"modal-title",slot:"header"},this._translations?.filter?.replace("{{title}}",this._layer?.title)),e("div",{slot:"content"},e("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:async()=>this._closeFilter(),comboboxOverlayPositioning:"fixed",layerExpressions:this._layerExpressions,onFilterListReset:()=>{this._handleFilterListReset()},onFilterUpdate:()=>{this._handleFilterUpdate()},ref:t=>this._filterList=t,view:this.mapView,zoomBtn:!1})))}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(){const t=this._layer.definitionExpression;if(this._floorExpression){const i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=this._definitionExpression!==this._layer.definitionExpression&&(!this._floorExpression||this._layer.definitionExpression!==this._floorExpression),this._updateShareUrl(),await this._searchFullText()}async _closeFilter(){this._filterOpen&&(this._allIds=await d(this._layer),this._filterOpen=!1)}async _mapClicked(t){const i={include:this._layer},s=await this.mapView.hitTest(t.screenPoint,i);s.results.length>0?(s.results.forEach((t=>{const i=t.graphic.getObjectId();this._table.highlightIds.indexOf(i)<0&&(this._selectionFromMap=!0,this._table.highlightIds.add(i))})),this._showOnlySelected&&this._table.filterBySelection()):this._clearSelection()}_selectAll(){const t=this._allIds;this._table.highlightIds.removeAll(),this._skipOnChange=!0,this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange(),this._selectAllActive=!0}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._showOnlySelected?this._table.filterBySelection():this._table.clearSelectionFilter()}_clearSelection(){this.selectedIds=[],this._table?.highlightIds.removeAll(),this._table?.rowHighlightIds.removeAll(),this._finishOnChange()}_toggleFilter(){this._filterOpen=!this._filterOpen}_initLayerExpressions(){const t=this.mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=t?t.filter((t=>t.id===this._layer?.id)):[],this._filterList.layerExpressions=this._layerExpressions,this._filterActive=this._layerExpressions.filter((t=>t.expressions.filter((t=>t.active)).length>0)).length>0}_switchSelected(){const t=[...this.selectedIds];this._table.highlightIds.removeAll();const i=this._allIds.reduce(((i,s)=>(t.indexOf(s)<0&&i.push(s),i)),[]).sort(((t,i)=>t-i));this._skipOnChange=!0,this._table.highlightIds.addMany(i),this.selectedIds=i,this._finishOnChange()}async _exportToCSV(){const t={},i=this._table.highlightIds.toArray();t[this._layer.id]={selectionSetNames:[this._layer.title],ids:i,layer:this._layer};const s=this._table.columns.toArray().reduce(((t,i)=>(i.hidden||t.push(i.name.toLocaleLowerCase()),t)),[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,await f(null,t,!1,!1,!0,s,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}_updateToolInfoLoading(t,i){this._toolInfos.some((s=>{if(s?.icon===t)return s.loading=i,!0}))}async _refresh(){await this._table.refresh(),this._allIds=await d(this._layer),this.featureSelectionChange.emit(this.selectedIds)}async _zoom(){if(this._layer){const t=await b(this.mapView,this._layer.id);await c(this.selectedIds,t,this.mapView,!0,void 0,this.zoomToScale)}}async _layerSelectionChanged(t){const i=t.detail[0];if(i!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0;const t=await l(this.mapView,i);t&&await t.when((()=>{this._layer=t,this._getFullTextSearchInfo()}))}this._fetchingData=!1}_getColumnTemplates(t,i){let s;this.mapInfo?.layerOptions?.layers.some((i=>{if(i.id===t)return s=i,!0}));const e=s?.fields&&s?.fieldOrder?s.fieldOrder.filter((t=>s.fields.indexOf(t)>-1)):void 0;let h;return i&&(h=s&&s?.fields?i.reduce(((t,i)=>{if(s.fields.indexOf(i.name)>-1){const s={type:"field",fieldName:i.name,label:i.alias,menuConfig:this._getMenuConfig(i.name)};t.push(s)}return t}),[]).sort(this._sortFields.bind(this,s?.fieldOrder)):i.map((t=>({type:"field",fieldName:t.name,label:t.alias,menuConfig:this._getMenuConfig(t.name)})))),e?h?.sort(this._sortFields.bind(this,e)):h}_sortFields(t,i,s){return t?.indexOf(i.fieldName)-t.indexOf(s.fieldName)}_getMenuConfig(t){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(t)}}]}}_handleHideClick(t){this._columnsInfo[t]=!1,this._table.hideColumn(t),this._table.tableTemplate.columnTemplates.forEach((i=>{i.fieldName===t&&(i.visible=!1)}))}async _getTranslations(){const t=await a(this.el);this._translations=t[0]}static get watchers(){return{appLayout:["appLayoutWatchHandler"],defaultOid:["defaultOidWatchHandler"],defaultGlobalId:["defaultGlobalIdWatchHandler"],enableCSV:["enableCSVWatchHandler"],enableInlineEdit:["enableInlineEditWatchHandler"],enableShare:["enableShareWatchHandler"],_controlsThatFit:["_controlsThatFitWatchHandler"],mapHidden:["mapHiddenWatchHandler"],isMobile:["isMobileWatchHandler"],mapInfo:["mapInfoWatchHandler"],mapView:["mapViewWatchHandler"],_layer:["_layerWatchHandler"],selectedIds:["selectedIdsWatchHandler"]}}};function v(t){return function(t){return-1!==t?.indexOf("http://")}(t)?t.replace(/^http:\/\//,"https://"):t}m.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-px{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}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1) !important}.search{--calcite-color-border-input:var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color:var(--calcite-color-status-danger);--calcite-color-text-1:var(--calcite-color-status-danger);--calcite-color-text-3:var(--calcite-color-status-danger)}';const y=class{constructor(s){t(this,s),this.mapChanged=i(this,"mapChanged",7),this.beforeMapChanged=i(this,"beforeMapChanged",7),this.toggleFilter=i(this,"toggleFilter",7),this.clearSelection=i(this,"clearSelection",7),this.appLayout=void 0,this.appProxies=void 0,this.defaultWebmapId="",this.defaultLayerId=void 0,this.enableHome=void 0,this.enableLegend=void 0,this.enableFloorFilter=void 0,this.enableFullscreen=void 0,this.enableShare=!1,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.isMapLayout=void 0,this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.selectedFeaturesIds=void 0,this.selectedLayer=void 0,this.zoomToScale=void 0,this.onlyShowUpdatableLayers=void 0,this.isMobile=void 0,this.mapInfo=void 0,this._translations=void 0,this._searchConfiguration=void 0,this._webMapInfo=void 0,this._showHideOpen=!1,this._toolInfos=void 0,this._controlsThatFit=void 0}get el(){return s(this)}esriConfig;Home;MapView;WebMap;_defaultWebmapHonored=!1;_homeWidget;_loadedId="";_mapDiv;_mapPicker;_mapTools;_moreDropdown;_mapListExpanded=!1;_filterActive=!1;_definitionExpression;_mapLayerPicker;_resizeObserver;_shareNode;_showHideDropdown;_toolbar;_timeout;_toolbarSizeInfos;_defaultVisibleToolSizeInfos;_observerSet=!1;appLayoutWatchHandler(){this._updateShareUrl()}enableHomeWatchHandler(){this._initHome()}enableShareWatchHandler(){this._toolbar&&this._updateToolbar()}async mapViewWatchHandler(){this.mapView&&this._updateShareUrl()}async selectedLayerWatchHandler(){await(this.selectedLayer?.when((async()=>{this._definitionExpression=this.selectedLayer.definitionExpression})))}async selectedFeaturesIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions()}_controlsThatFitWatchHandler(){const t=this._controlsThatFit?this._controlsThatFit.reduce(((t,i)=>(t.push(i.id),t)),[]):[];this._toolInfos=this._toolInfos?.map((i=>{if(i&&this._controlsThatFit){const s=this._getId(i.icon);return i.isOverflow=t.indexOf(s)<0,i}}))}async resetFilter(){this._filterActive=!1,this._updateShareUrl()}async updateFilterState(){this._filterActive=this._definitionExpression!==this.selectedLayer.definitionExpression,this._updateShareUrl()}async updateLayer(){this._mapLayerPicker.updateLayer()}mapChanged;beforeMapChanged;toggleFilter;clearSelection;async mapInfoChange(t){await this._loadMap(t.detail)}noLayersFound(){this.selectedLayer=void 0,this.selectedFeaturesIds=[]}layerSelectionChange(){setTimeout((()=>{this._initToolInfos()}),50)}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initToolInfos(),this._resizeObserver||(this._resizeObserver=new ResizeObserver((()=>this._updateToolbar())))}render(){const t=this.isMapLayout?"display-flex height-49-px":"",i=this.hidden?"visibility-hidden-1":"",s="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light",a=this.mapInfos?.length>1||this.isMapLayout?"map-height":"height-full",o=this.isMapLayout?"":"display-none";return this._validateActiveActions(),e(h,{key:"d4e5ff9c4aa08a4effe19a54a1a48463cb8b3774"},e("div",{key:"51ee35d267d5ef081a4c160de3e03b1790d328c8",class:`${t} width-full`,ref:t=>this._toolbar=t},this._getActionBar(),!this.isMobile&&this.isMapLayout&&this._getDropdown("more-table-options"),this.enableShare&&!this.isMobile&&this.isMapLayout?this._getShare("share"):void 0),e("calcite-progress",{key:"70a5c232aae8a9ff6740fd326e6ba6fe61936541",class:o,value:0}),e("div",{key:"c399acc019d7f0a16dbb644eee4cfdd1e6e83c7c",class:`${a} ${i}`,ref:t=>this._mapDiv=t}),e("map-tools",{key:"c6a88ccfa140fe9b0d059f74b9254af6ef0997ce",basemapConfig:this.basemapConfig,class:`box-shadow ${s}`,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:t=>this._mapTools=t,searchConfiguration:this._searchConfiguration,stackTools:this.stackTools,toolOrder:this.toolOrder}))}async componentDidRender(){this.isMapLayout&&this._updateToolbar(),document.onclick=t=>this._handleDocumentClick(t)}async componentDidLoad(){this.isMobile||this._observerSet||(this._resizeObserver.observe(this._toolbar),this._observerSet=!0),this._updateShareUrl()}async _initModules(){const[t,i,s,e]=await o(["esri/WebMap","esri/views/MapView","esri/widgets/Home","esri/config"]);this.WebMap=t,this.MapView=i,this.Home=s,this.esriConfig=e}async _loadMap(t){const i=!this._defaultWebmapHonored&&this.defaultWebmapId,s=this.mapInfos?.filter((t=>t.id===this.defaultWebmapId)),e=JSON.stringify(t)!==JSON.stringify(this._webMapInfo);this._webMapInfo=i&&s?s[0]:!t?.id&&this.mapInfos.length>0?this.mapInfos[0]:t;const h=this._webMapInfo.id,a=i&&t?.id===this.defaultWebmapId;if(this._loadedId!==h&&!i||a){const t=new this.WebMap({portalItem:{id:h}});this.appProxies&&(await t.load(),await(o=t,l=this.esriConfig,n=this.appProxies,n&&n.forEach((t=>{o.allLayers.forEach((i=>{i&&i.url===t.sourceUrl&&(i.url=v(t.proxyUrl),i.portalItem&&i.portalItem.when((()=>{i.portalItem.url=v(t.proxyUrl)})),l.request?.interceptors?.push({urls:t.sourceUrl,before:i=>{i.url&&i.url===t.sourceUrl&&(i.url=v(t.proxyUrl))}}))}))})),o)),this.mapView=new this.MapView({container:this._mapDiv,map:t,resizeAlign:"center"}),this._loadedId=h,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:h,mapView:this.mapView})}))}else i?(this._defaultWebmapHonored=!0,this._mapPicker.setMapByID(h)):e&&(this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapChanged.emit({id:h,mapView:this.mapView}));var o,l,n;this._updateShareUrl()}_updateToolbar(){this._timeout&&clearTimeout(this._timeout),!this.isMobile&&this._toolbar&&this._toolInfos&&(this._timeout=setTimeout((()=>{clearTimeout(this._timeout),this._setToolbarSizeInfos();const t=this._toolbar.offsetWidth;let i=this._toolbarSizeInfos.reduce(((t,i)=>t+i.width),0);const s=["solutions-more","solutions-map-layer-picker-container","map-picker","solutions-action-share"];if(i>t){if(this._toolbarSizeInfos.length>0){const e=[...this._toolbarSizeInfos].reverse().reduce(((e,h)=>(s.indexOf(h.id)<0&&(i>t?i-=h.width:e.push(h)),e)),[]).reverse();this._setControlsThatFit(e,s)}}else if(this._defaultVisibleToolSizeInfos){const e=this._toolbarSizeInfos.reduce(((t,i)=>(t.push(i.id),t)),[]);let h=!1;const a=[...this._defaultVisibleToolSizeInfos].reduce(((a,o)=>(!h&&s.indexOf(o.id)<0&&(e.indexOf(o.id)>-1||i+o.width<=t)?(e.indexOf(o.id)<0&&(i+=o.width),a.push(o)):s.indexOf(o.id)<0&&i+o.width>t&&(h=!0),a)),[]);this._setControlsThatFit(a,s)}}),250))}_setControlsThatFit(t,i){let s=JSON.stringify(t)!==JSON.stringify(this._controlsThatFit);const e=document.getElementById("solutions-action-bar");e?.childNodes?.forEach((t=>{i.indexOf(t.id)<0&&!s&&(s=this._controlsThatFit.map((t=>t.id)).indexOf(t.id)<0)})),s&&(this._controlsThatFit=[...t])}_setToolbarSizeInfos(){let t=!1;this._toolbarSizeInfos=[],this._toolbar.childNodes.forEach(((i,s)=>{0===s?i.childNodes.forEach((i=>{this._toolbarSizeInfos.push({id:i.id,width:i.offsetWidth}),t||(t=i.offsetWidth>0)})):i.referenceElement||(this._toolbarSizeInfos.push({id:i.id,width:i.offsetWidth}),t||(t=i.offsetWidth>0))})),t&&!this._defaultVisibleToolSizeInfos&&(this._defaultVisibleToolSizeInfos=[...this._toolbarSizeInfos])}_getActionBar(){const t=this.mapInfos?.length>1?"":"display-none",i=this.isMapLayout?"display-flex":"display-block",s=this.isMobile?"border-top":"",h=this.isMapLayout?"":"display-none";return e("calcite-action-bar",{class:i,expandDisabled:!0,expanded:!0,id:this._getId("bar"),layout:"horizontal"},e("map-picker",{class:t,isMapLayout:this.isMapLayout,mapInfos:this.mapInfos,ref:t=>this._mapPicker=t}),e("div",{class:`mapView-header display-flex ${h}`},e("div",{class:`border-end ${i} ${s}`,id:"solutions-map-layer-picker-container"},this.mapView&&e("map-layer-picker",{appearance:"transparent",defaultLayerId:this.defaultLayerId,display:"inline-flex",height:50,isMobile:this.isMobile,mapView:this.mapView,onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,placeholderIcon:"layers",ref:t=>this._mapLayerPicker=t,scale:"l",selectedIds:this.selectedLayer?[this.selectedLayer.id]:[],showSingleLayerAsLabel:!0,showTables:!0,showTablesDisabled:!0,type:"dropdown"}))),!this.isMobile&&this.isMapLayout?this._getActions():void 0)}_getDropdown(t){const i=this._getDropdownItems();return i.length>0?e("calcite-dropdown",{closeOnSelectDisabled:!0,disabled:void 0===this.selectedLayer,id:"solutions-more",onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:t=>this._moreDropdown=t},e("calcite-action",{appearance:"solid",id:t,label:"",onClick:()=>this._closeShowHide(),slot:"trigger",text:""},e("calcite-button",{appearance:"transparent",iconEnd:"chevron-down",kind:"neutral"},this._translations.more)),e("calcite-dropdown-group",{"selection-mode":"none"},i.map((t=>e("calcite-dropdown-group",{class:t.disabled?"disabled":"",selectionMode:"none"},e("calcite-dropdown-item",{disabled:t.loading,iconStart:t.icon,id:"solutions-subset-list",onClick:t.func},t.loading?e("div",{class:"display-flex"},e("calcite-loader",{inline:!0,label:t.label,scale:"m"}),t.label):t.label)))))):void 0}_getShare(t){return e("div",{class:"share-action",id:this._getId(t)},e("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"instant-app-share",embed:this.shareIncludeEmbed,popoverButtonIconScale:"s",ref:t=>{this._shareNode=t,this._updateShareUrl()},scale:"m",shareButtonColor:"neutral",shareButtonType:"action",socialMedia:this.shareIncludeSocial,view:this.mapView}),this._getToolTip("bottom",t,this._translations.share))}_updateShareUrl(){const t=this._shareNode?.shareUrl;if(!t)return;const i=new URL(t);this._loadedId?i.searchParams.set("webmap",this._loadedId):i.searchParams.delete("webmap"),this.selectedLayer?.id?i.searchParams.set("layer",this.selectedLayer.id):i.searchParams.delete("layer"),this.selectedFeaturesIds?.length>0?i.searchParams.set("oid",this.selectedFeaturesIds.join(",")):i.searchParams.delete("oid"),i.searchParams.set("applayout",this.appLayout),this._shareNode.shareUrl=i.href}_closeShowHide(){this._showHideOpen=!1}_getDropdownItems(){return this._toolInfos?.filter((t=>t&&t.isOverflow))}_initToolInfos(){const t=this.selectedFeaturesIds?.length>0,i=this._hasFilterExpressions(),s=this.selectedFeaturesIds?.length>1&&!1;this._translations&&(this._toolInfos=[{active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!t,isOverflow:!1},i?{active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this._toggleFilter(),disabled:!1,isOverflow:!1}:void 0,s?{active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>alert(this._translations.editMultiple),disabled:!s,isOverflow:!1}:void 0,{active:!1,icon:"refresh",indicator:!1,label:this._translations.refresh,func:()=>this.selectedLayer.refresh(),disabled:!1,isOverflow:!1},{active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>this.clearSelection.emit(),disabled:!t,isOverflow:!1}],this._defaultVisibleToolSizeInfos=void 0)}_validateActiveActions(){const t=["filter"];this._toolInfos?.forEach((i=>{i&&t.indexOf(i.icon)>-1&&"filter"===i.icon&&(i.indicator=this._filterActive)}))}_validateEnabledActions(){const t=this.selectedFeaturesIds?.length>0,i=this.selectedFeaturesIds?.length>1&&this.selectedLayer?.capabilities?.operations?.supportsUpdate,s=["zoom-to-object","pencil","erase"];this._toolInfos?.forEach((e=>{e&&s.indexOf(e.icon)>-1&&(e.disabled="pencil"===e.icon?!i:!t)}))}_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 t="s"===this.homeZoomToolsSize?"32px":"m"===this.homeZoomToolsSize?"40px":"48px";this._homeWidget.domNode.style.height=t,this._homeWidget.domNode.style.width=t}else this._homeWidget&&this.mapView.ui.remove(this._homeWidget)}_toggleShowHide(){this._showHideOpen=!this._showHideOpen}_forceShowHide(){this._moreDropdown&&(this._moreDropdown.open=this._showHideOpen)}_handleDocumentClick(t){const i=t.target?.id;"solutions-subset-list"===i?this._moreDropdown.open=!0:this._showHideOpen&&"solutions-subset-list"!==i&&"solutions-more"!==i&&"chevron-down"!==i&&this._moreDropdown&&(this._showHideOpen=!1,this._moreDropdown.open=!1),"MAP-PICKER"===t.target.tagName&&(this._mapListExpanded=!this._mapListExpanded,this._mapPicker.toggle(this._mapListExpanded)),"MAP-PICKER"!==t.target.tagName&&(this._mapListExpanded=!1,this._mapPicker.close())}async _zoom(){if(this.selectedLayer){const t=await b(this.mapView,this.selectedLayer.id);await c(this.selectedFeaturesIds,t,this.mapView,!0,void 0,this.zoomToScale)}}async _toggleFilter(){this.toggleFilter.emit()}_hasFilterExpressions(){let t;return this.mapInfo?.filterConfig?.layerExpressions&&this.selectedLayer?.id&&(t=this.mapInfo.filterConfig.layerExpressions.filter((t=>t.id===this.selectedLayer.id))),t?.length>0}_getActions(){const t=this._getActionItems();return t?.reduce(((t,i)=>(i&&!i.isOverflow&&t.push(this._getAction(i.active,i.icon,i.indicator,i.label,i.func,i.disabled,i.loading)),t)),[])}_getToolTip(t,i,s){return document.getElementById(i)?e("calcite-tooltip",{placement:t,"reference-element":"map-"+i},e("span",null,s)):void 0}_getActionItems(){return this._toolInfos?.filter((t=>t&&!t.isOverflow))}_getAction(t,i,s,h,a,o,l,n){const c=void 0===this.selectedLayer||o;return e("div",{class:"display-flex",id:this._getId(i),slot:n},e("calcite-action",{active:t,appearance:"solid",disabled:c,icon:i,id:"map-"+i,indicator:s,label:h,loading:l,onClick:a,text:h,textEnabled:!0}),this._getToolTip("bottom",i,h))}_getId(t){return`solutions-action-${t}`}async _getTranslations(){const t=await a(this.el);this._translations=t[0]}static get watchers(){return{appLayout:["appLayoutWatchHandler"],enableHome:["enableHomeWatchHandler"],enableShare:["enableShareWatchHandler"],mapView:["mapViewWatchHandler"],selectedLayer:["selectedLayerWatchHandler"],selectedFeaturesIds:["selectedFeaturesIdsWatchHandler"],_controlsThatFit:["_controlsThatFitWatchHandler"]}}};y.style=":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.map-height{height:calc(100% - 53px)}.height-full{height:100%}.height-49-px{height:49px}.box-shadow{box-shadow:none !important}.visibility-hidden-1{visibility:hidden;height:1px;}.display-none{display:none}.display-block{display:block}";export{u as card_manager,m as layer_table,y as map_card}
@@ -1,12 +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,g as e,h as s,H as a}from"./p-4e6eb06e.js";import{l as n,g as h}from"./p-f4aadb3b.js";import{z as o}from"./p-621ad249.js";import{f as c}from"./p-80cb7c73.js";import{s as l}from"./p-51c6e6fe.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-7d542581.js";import"./p-91371f97.js";import"./p-dc9d4be3.js";const r=class{constructor(e){t(this,e),this.bufferComplete=i(this,"bufferComplete",7),this.distanceChanged=i(this,"distanceChanged",7),this.unitChanged=i(this,"unitChanged",7),this.appearance="text",this.distance=0,this.geometries=[],this.max=void 0,this.min=0,this.sliderTicks=10,this.unionResults=!0,this.unit="meters",this.disabled=!1,this._translations=void 0}get el(){return e(this)}_geometryEngine;_bufferTimeout;_unitElement;_units;geometriesWatchHandler(){this._buffer()}disabledWatchHandler(){this._buffer()}async getTranslatedUnit(t){return this._units||await this._defineTranslations(),this._units[t]}bufferComplete;distanceChanged;unitChanged;async componentWillLoad(){await this._defineTranslations(),await this._initModules()}render(){return s(a,{key:"fe60961aabf178fd32c4c85e8d52b9bc61a349d0"},"text"===this.appearance?this._getTextBoxDisplay():this._getSliderDisplay())}async _defineTranslations(){await this._getTranslations(),this._initTranslatedUnits()}async _initModules(){const[t]=await n(["esri/geometry/geometryEngine"]);this._geometryEngine=t}_initTranslatedUnits(){this._units={feet:this._translations.feet,meters:this._translations.meters,miles:this._translations.miles,kilometers:this._translations.kilometers}}_getUnits(){return Object.keys(this._units).map((t=>s("calcite-option",{label:this._units[t],selected:this.unit===t,value:t})))}_setDistance(t){const i=parseInt(t.target.value,10);this.distance!==i&&i>=this.min&&(this.distanceChanged.emit({oldValue:this.distance,newValue:i}),this.distance=i,this.distance>0?this._buffer():this.bufferComplete.emit(void 0))}_setUnit(t){this.unitChanged.emit({oldValue:this.unit,newValue:t}),this.unit=t,this._buffer()}_buffer(){this.disabled?this.bufferComplete.emit(void 0):(this._bufferTimeout&&clearTimeout(this._bufferTimeout),this._bufferTimeout=setTimeout((()=>{if(this.geometries?.length>0&&this.unit&&this.distance>0){const t=this.geometries[0].spatialReference,i=t.isWGS84||t.isWebMercator?this._geometryEngine.geodesicBuffer(this.geometries,this.distance,this.unit,this.unionResults):this._geometryEngine.buffer(this.geometries,this.distance,this.unit,this.unionResults);this.bufferComplete.emit(i)}}),400))}_getTextBoxDisplay(){return s("div",{class:"c-container"},s("calcite-input",{class:"padding-end-1 w-50",max:this.max&&this.max>0?this.max:void 0,min:this.min,"number-button-type":"vertical",onCalciteInputInput:t=>this._setDistance(t),placeholder:"0",type:"number",value:this.distance?this.distance.toString():void 0}),s("calcite-select",{class:"flex-1 w-50",label:"label",onCalciteSelectChange:()=>this._setUnit(this._unitElement.value),ref:t=>{this._unitElement=t}},this._getUnits()))}_getSliderDisplay(){return s("div",null,s("calcite-slider",{labelHandles:!0,max:this.max&&this.max>0?this.max:void 0,min:this.min,ticks:this.sliderTicks}))}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}_testAccess(t,i){switch(t){case"_setUnit":return this._setUnit(i);case"_setDistance":return this._setDistance(i)}return null}static get watchers(){return{geometries:["geometriesWatchHandler"],disabled:["disabledWatchHandler"]}}};r.style=':host{display:block}.c-container{display:inline-flex}.flex-1{flex:"1"}.padding-end-1{padding-inline-end:1rem}.w-50{width:50%}';
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
10
- * v2.13.0
11
- */
12
- const d={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},p=class{constructor(i){t(this,i),this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.status="idle"}handleIconEl(){this.requestedIcon=o(d,this.icon,this.status)}connectedCallback(){this.requestedIcon=o(d,this.icon,this.status)}render(){return s(a,{key:"c7d1b37721cec28dee1020b81ff66dee7fc8bc44","calcite-hydrated-hidden":this.el.hidden},this.renderIcon(this.requestedIcon),s("slot",{key:"7147d81e906765c154b4a61e31706a72c1ef3ae0"}))}renderIcon(t){if(t)return s("calcite-icon",{class:"calcite-input-message-icon",flipRtl:this.iconFlipRtl,icon:t,scale:"s"})}get el(){return e(this)}static get watchers(){return{status:["handleIconEl"],icon:["handleIconEl"]}}};p.style=":host{box-sizing:border-box;display:flex;block-size:auto;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);opacity:1;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;--calcite-input-message-spacing-value:0.25rem;margin-block-start:var(--calcite-input-message-spacing-value)}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;margin-inline-end:0.5rem}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-color-status-danger)}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-color-status-warning)}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-color-status-success)}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-color-brand)}:host([scale=s]){font-size:var(--calcite-font-size--3);line-height:0.75rem}:host([scale=m]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([hidden]){display:none}[hidden]{display:none}";const g=class{constructor(e){t(this,e),this.selectionLoadingChange=i(this,"selectionLoadingChange",7),this.sketchGraphicsChange=i(this,"sketchGraphicsChange",7),this.drawUndo=i(this,"drawUndo",7),this.drawRedo=i(this,"drawRedo",7),this.active=!1,this.drawMode=c.SKETCH,this.editGraphicsEnabled=!0,this.graphics=void 0,this.mapView=void 0,this.pointSymbol=void 0,this.polylineSymbol=void 0,this.polygonSymbol=void 0,this.redoEnabled=!1,this.undoEnabled=!1,this._translations=void 0,this._selectionMode=void 0}get el(){return e(this)}GraphicsLayer;SketchViewModel;Sketch;_sketchGraphicsLayer;_sketchViewModel;_sketchWidget;_sketchElement;graphicsWatchHandler(t,i){t&&t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&this._sketchGraphicsLayer&&(this._updateGraphicsSymbols(t),this._sketchGraphicsLayer.removeAll(),this._sketchGraphicsLayer.addMany(t))}mapViewWatchHandler(t,i){t&&t!==i&&this._init()}async clear(){this._clearSketch()}async updateGraphics(){this._updateGraphics()}selectionLoadingChange;sketchGraphicsChange;drawUndo;drawRedo;async componentWillLoad(){await this._getTranslations(),await this._initModules()}componentDidLoad(){this._init()}disconnectedCallback(){this._sketchWidget.cancel(),this._clearSketch()}render(){const t=this.drawMode===c.SKETCH?"display-none":"esri-widget esri-sketch__panel border-left esri-sketch__section";return s(a,{key:"c6717ea80242f622168f49efeaf2cebf497ca09e"},s("div",{key:"2dd805c704381cb411d69b757072371d91fb243d",class:this.drawMode===c.SKETCH?"border":"border esri-widget esri-sketch__panel"},s("div",{key:"28b81cb37f3e11f66656195fc10b4c170f8d8fe9",ref:t=>{this._sketchElement=t}}),s("div",{key:"a6de7ee6dbf4f02eb355c032c7bd9bf4ec4426e9",class:t},s("calcite-action",{key:"2efeab5db057e1657c3639a39ae4d4150d331776",disabled:!this.undoEnabled,icon:"undo",onClick:()=>this._undo(),scale:"s",text:this._translations.undo}),s("calcite-action",{key:"770693e30a6cfb58f593bb471342ea34556fc8d4",disabled:!this.redoEnabled,icon:"redo",onClick:()=>this._redo(),scale:"s",text:this._translations.redo}))))}async _initModules(){const[t,i,e]=await n(["esri/layers/GraphicsLayer","esri/widgets/Sketch","esri/widgets/Sketch/SketchViewModel"]);this.GraphicsLayer=t,this.Sketch=i,this.SketchViewModel=e}_init(){this.mapView&&this._sketchElement&&(this._initGraphicsLayer(),this._initSketch())}_initGraphicsLayer(){const t=this._translations.sketchLayer,i=this.mapView.map.layers.findIndex((i=>i.title===t));i>-1?this._sketchGraphicsLayer=this.mapView.map.layers.getItemAt(i):(this._sketchGraphicsLayer=new this.GraphicsLayer({title:t,listMode:"hide"}),l.managedLayers[t]="sketch",this.mapView.map.layers.add(this._sketchGraphicsLayer)),this.graphics&&this.graphics.length>0&&this._sketchGraphicsLayer.addMany(this.graphics)}_initSketch(){const t={layer:this._sketchGraphicsLayer,view:this.mapView,defaultCreateOptions:{mode:"hybrid"},defaultUpdateOptions:{preserveAspectRatio:!1,enableScaling:!1,enableRotation:!1,tool:"reshape",toggleToolOnClick:!1}};this._sketchWidget=new this.Sketch({...t,container:this._sketchElement,creationMode:"single",visibleElements:{duplicateButton:!1,selectionTools:{"lasso-selection":!1,"rectangle-selection":!1},createTools:{circle:!1},undoRedoMenu:!1,settingsMenu:this.drawMode===c.SKETCH}}),this._sketchViewModel=new this.SketchViewModel({...t}),this._sketchWidget.viewModel.polylineSymbol=this.polylineSymbol,this._sketchWidget.viewModel.pointSymbol=this.pointSymbol,this._sketchWidget.viewModel.polygonSymbol=this.polygonSymbol;let i=!1;this._sketchWidget.on("create",(t=>{"complete"===t.state&&(this.graphics=[t.graphic],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}),this.drawMode===c.REFINE&&(i=!0,this._sketchWidget.viewModel.create(t.tool))),"cancel"===t.state&&this.drawMode===c.REFINE&&i&&(i=!i,this._sketchWidget.viewModel.create(t.tool))})),this._sketchWidget.on("update",(t=>{if(this.editGraphicsEnabled){const i=t?.toolEventInfo?.type;"reshape-stop"!==i&&"move-stop"!==i||(this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}))}else this._sketchWidget.viewModel.cancel(),this._sketchViewModel.cancel()})),this._sketchWidget.on("delete",(()=>{this.graphics=[],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("undo",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("redo",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})}))}_clearSketch(){this._sketchWidget?.viewModel.cancel(),this.graphics=[],this._sketchGraphicsLayer?.removeAll()}_undo(){this.drawUndo.emit()}_redo(){this.drawRedo.emit()}_updateGraphics(){setTimeout((()=>{1===this.graphics.length&&this._sketchWidget.update(this.graphics,{tool:"reshape",enableRotation:!1,enableScaling:!1,preserveAspectRatio:!1,toggleToolOnClick:!1})}),100)}_updateGraphicsSymbols(t){const i=t[0].geometry.type,e="point"===i?this.pointSymbol:"polyline"===i?this.polylineSymbol:"polygon"===i?this.polygonSymbol:void 0;e&&t.forEach((t=>t.symbol=e))}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],mapView:["mapViewWatchHandler"]}}};g.style=':host{display:block}.border{outline:1px solid var(--calcite-color-border-input)}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.margin-top-1{margin-top:1rem}.border-left{border-left:1px solid rgba(110, 110, 110, .3)}.border-left[dir="rtl"]{border-right:1px solid rgba(110, 110, 110, .3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v:12px;--esri-widget-padding-h:15px;--esri-widget-padding:var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0;justify-content:flex-start !important}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}';export{r as buffer_tools,p as calcite_input_message,g as map_draw_tools}
@@ -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,g as s,a as e,h as a,H as l}from"./p-4e6eb06e.js";import{b as o,c as n,a as h}from"./p-80cb7c73.js";import{l as c,g as r}from"./p-f4aadb3b.js";import{e as d,h as p}from"./p-d572627c.js";import{s as g}from"./p-51c6e6fe.js";import{c as b,r as m}from"./p-ff9e28d1.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-dc9d4be3.js";import"./p-7530a02f.js";import"./p-d0d020a5.js";import"./p-9bb44f57.js";const u=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=o.PDF,this._fetchingData=!1,this._isMobile=void 0,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}get el(){return s(this)}_activeSelection;_downloadTools;_geometryEngine;Graphic;_jsonUtils;_onboardingImageUrl="";_popupsEnabled;_removeDuplicates;_searchConfiguration;_selectTools;_mediaQuery;_titleElement;_titleValue=void 0;_numSelected=0;async mapViewWatchHandler(t){t?.popup&&(this._popupsEnabled=t?.popup.autoOpenEnabled),this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);this.mapView&&(s!==JSON.stringify(i)||s&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){if(this._checkPopups(),this.mapView?.popup&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),i===n.EXPORT&&this._removeExportGraphics(),t!==n.SELECT)return this._highlightFeatures()}searchConfigurationChange;selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=e("assets/data/images/onboarding.png")}render(){return a(l,{key:"8b22f6b45144705e9ff5b230ca8075f68985165b"},a("calcite-shell",{key:"774731e643edb5b52bf565349fdfe58dae1e845e"},a("calcite-action-bar",{key:"5e3bcc6ba2f53d25ee2bd972ce67108c0ab808f4",class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async componentDidLoad(){this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i,s]=await c(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=t,this._jsonUtils=i,this.Graphic=s}_initSearchConfiguration(t){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=t,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,s){return a("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},a("div",{class:"background-override"},a("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",compact:!1,icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),a("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},a("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(t?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),a("div",{class:"display-flex padding-1"},a("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},a("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return a("div",{class:"display-flex padding-sides-1"},a("img",{class:"img-container",role:"presentation",src:this._onboardingImageUrl}))}_getSelectionSetList(){return a("div",{class:"padding-top-1-2 padding-bottom-1-2"},a("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((t,i,s)=>{const e=this._getSelectionSetIds(i);let l=!0;return i.workflowType===h.REFINE&&(l=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),l&&t.push(a("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",e.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==h.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===h.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==h.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return a("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),a("div",null,a("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enableLayerFeatures:this.enableLayerFeatures,enableLayerFeaturesOnLoad:this.enableLayerFeaturesOnLoad,enableSearchDistance:this.enableSearchDistance,enableSearchDistanceOnLoad:this.enableSearchDistanceOnLoad,enableSketchTools:this.enableSketchTools,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,locale:this.locale,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return a("calcite-panel",null,a("div",null,this._getLabel(this._translations.export,!1),t?a("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),a("div",{class:"padding-sides-1 "+i},a("div",{class:"display-flex"},a("calcite-label",{layout:"inline"},a("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),a("div",{class:"display-flex"},this._translations.removeDuplicate,a("div",{class:"info-message padding-start-1-2"},a("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"remove-duplicates-icon",scale:"s"})),a("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},a("span",{class:"tooltip-message"},this._translations.duplicatesTip))),a("div",{class:"border-bottom"}),a("div",{class:"padding-top-sides-1"},a("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t),width:"full"},a("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},a("span",{class:"font-weight-500"},this._translations.pdf)),a("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},a("span",{class:"font-weight-500"},this._translations.csv)))),a("div",{class:"padding-bottom-1"},this._getExportOptions()),a("div",{class:"padding-1 display-flex"},a("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},a("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",e=this._addResults?"":"display-none";return a("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),a("div",{class:`padding-top-sides-1 ${e}`},a("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),a("div",{class:`padding-sides-1 ${e}`},a("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,ref:t=>{this._downloadTools=t}})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),a("div",{class:t},this._getLabel(this._translations.title,!0,""),a("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:s})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._handleAddMapChange()}),this._translations.includeMap)),a("div",{class:`padding-top-sides-1 ${i}`},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._exportGraphics,onCalciteCheckboxChange:()=>this._handleExportGraphicsChange()}),this._translations.listGraphics),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"list-graphics-icon",scale:"s"}),a("calcite-popover",{closable:!0,label:"",referenceElement:"list-graphics-icon"},a("span",{class:"tooltip-message"},this._translations.listGraphicsTip))))}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(t){let i;return Object.keys(g.managedLayers).some((s=>{const e=this.mapView.map.layers.findIndex((t=>t.title===s));if(g.managedLayers[s]===t)return i=this.mapView.map.layers.getItemAt(e),!0})),i}_updateExportGraphics(t=!1){!t&&this._exportGraphics&&this._addMap||this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");t&&t.graphics.removeAll(),i&&i.graphics.removeAll()}_addExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");this._selectionSets.forEach((s=>{if(s.download&&(t&&t.graphics.add(s.sketchGraphic),i)){const t=new this.Graphic({geometry:s.buffer,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});i.graphics.add(t)}}))}_getRefinePage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?a("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),a("refine-selection",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,e,l,o){return a("div",{class:"padding-bottom-1"},a("div",{class:"display-flex padding-top-sides-1"},a("calcite-button",{disabled:i,onClick:s,width:"full"},a("span",{class:"font-weight-500"},t))),a("div",{class:"display-flex padding-top-1-2 padding-sides-1"},a("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},a("span",{class:"font-weight-500"},e))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",s=""){return a("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},a("div",{class:s,slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{const s=this._getSelectionSetIds(i),e=i.workflowType!==h.REFINE||s.length>0;return!this._downloadActive&&i.download&&e&&(this._downloadActive=!0),e&&t.push(a("div",{class:"display-flex padding-sides-1 padding-bottom-1"},a("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),a("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},a("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",s.length.toString()))))))),t}),[])||a("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._updateExportGraphics(!0),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=t?.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{if(i.workflowType===h.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const s=i?.layerView?.layer.id;t=this._updateExportInfos(t,s,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,e,l=!1,o=""){return a("calcite-action",{disabled:!t,icon:i,iconFlipRtl:!0,indicator:l,onClick:e,slot:o,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){const t=await(this._selectTools?.getSelection()),i=this._selectTools?.isUpdate;return this._selectionSets=i?this._selectionSets.map((i=>i.id===t.id?t:i)):[...this._selectionSets,t],this._home()}async _clearSelection(){await(this._selectTools?.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){d(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===h.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];g.highlightHandles.push(await p(e.ids,e.layerView,this.mapView))}}_checkPopups(){"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=this.mapView?.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await r(this.el);this._translations=t[0]}static get watchers(){return{mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}';export{u as public_notification}
@@ -1,11 +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,h as i,g as s,c as e,F as a}from"./p-4e6eb06e.js";import{c as h}from"./p-ff336351.js";import{c as n,s as c,a as o}from"./p-ad9d1221.js";import{l as r,g as l,f as d}from"./p-f4aadb3b.js";import{b as f,d as p,a as m,c as b}from"./p-d572627c.js";import"./p-4f82eb55.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
10
- * v2.13.0
11
- */const y="frame",u="frame--advancing",g="frame--retreating",w=class{constructor(i){t(this,i),this.itemMutationObserver=h("mutation",(()=>this.updateFlowProps())),this.getFlowDirection=(t,i)=>t&&i>1||t>1?i<t?"retreating":"advancing":null,this.updateFlowProps=()=>{const{customItemSelectors:t,el:i,items:s}=this,e=Array.from(i.querySelectorAll("calcite-flow-item"+(t?`,${t}`:""))).filter((t=>t.closest("calcite-flow")===i)),a=s.length,h=e.length,n=e[h-1],c=e[h-2];if(h&&n&&e.forEach((t=>{t.showBackButton=t===n&&h>1,t.hidden=t!==n})),c&&(c.menuOpen=!1),this.items=e,a!==h){const t=this.getFlowDirection(a,h);this.itemCount=h,this.flowDirection=t}},this.customItemSelectors=void 0,this.flowDirection=null,this.itemCount=0,this.items=[]}async back(){const{items:t}=this,i=t[t.length-1];if(!i)return;const s=i.beforeBack?i.beforeBack:()=>Promise.resolve();try{await s.call(i)}catch(t){return}return i.remove(),i}async setFocus(){await n(this);const{items:t}=this,i=t[t.length-1];return i?.setFocus()}connectedCallback(){this.itemMutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.updateFlowProps()}async componentWillLoad(){c(this)}componentDidLoad(){o(this)}disconnectedCallback(){this.itemMutationObserver?.disconnect()}async handleItemBackClick(t){if(!t.defaultPrevented)return await this.back(),this.setFocus()}render(){const{flowDirection:t}=this;return i("div",{key:"01fbee965d48cb54fa5bd1b53a3435538df84332",class:{[y]:!0,[u]:"advancing"===t,[g]:"retreating"===t}},i("slot",{key:"495880eceeb04387dd1352aa00337f037ab0636c"}))}get el(){return s(this)}};w.style=":host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;align-items:stretch;overflow:hidden;background-color:transparent}:host .frame{position:relative;margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;padding:0px}:host ::slotted(calcite-flow-item),:host ::slotted(calcite-panel){block-size:100%}:host ::slotted(.calcite-match-height:last-child){display:flex;flex:1 1 auto;overflow:hidden}:host .frame--advancing{animation:calcite-frame-advance var(--calcite-animation-timing)}:host .frame--retreating{animation:calcite-frame-retreat var(--calcite-animation-timing)}@keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5;transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5;transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}:host([hidden]){display:none}[hidden]{display:none}";const k=class{constructor(i){t(this,i),this.success=e(this,"success",7),this.fail=e(this,"fail",7),this.isActionPending=e(this,"isActionPending",7),this.formReady=e(this,"formReady",7),this.mapView=void 0,this.table=void 0,this.selectedFeature=void 0,this.customizeSubmit=!1,this.showGuidingMsg=!0,this._editorLoading=!1,this._translations=void 0}get el(){return s(this)}Editor;_editor;reactiveUtils;_container;_addingAttachment;_isSubmitBtnClicked=!1;async mapViewWatchHandler(){await this.mapView.when((async()=>{await this.init()}))}async _editorLoadingWatchHandler(t){t&&(this._container?.classList.add("display-none"),await this.startCreate(),this._container?.classList.remove("display-none"),this._editorLoading=!1)}async submit(){this._editor&&(this._isSubmitBtnClicked=!0,this._editor.viewModel.featureFormViewModel.submit())}success;fail;isActionPending;formReady;async componentWillLoad(){await this._getTranslations(),await this.initModules()}async init(){this.mapView&&await this.createEditorWidget()}async initModules(){const[t,i]=await r(["esri/widgets/Editor","esri/core/reactiveUtils"]);this.Editor=t,this.reactiveUtils=i}render(){const t=this._editorLoading?"":"display-none";return i(a,{key:"641b4f6f51bce04b6263a1d7dc72a31839df970d"},this.showGuidingMsg&&i("calcite-notice",{key:"1a6e577bcc0632a7bc69dd411a692062a7ad176e",class:"notice-msg",icon:"lightbulb",kind:"success",open:!0},i("div",{key:"55c5836314fcca69a259be3a36e34c527edcabf3",slot:"message"},this._translations.provideDetailsMsg)),i("calcite-loader",{key:"18c5603a4a75c67a160a71caa15e94790f66d60b",class:t,label:"",scale:"s"}))}async componentDidLoad(){await this.init()}disconnectedCallback(){this._editor&&this._editor.destroy()}async createEditorWidget(){this._editor&&this._editor.destroy(),this._container=document.createElement("div"),this._container?.classList.add("display-none"),this._editor=new this.Editor({view:this.mapView,visibleElements:{snappingControls:!1},container:this._container}),this.el.appendChild(this._container);const t=this.reactiveUtils.watch((()=>this._editor.viewModel.featureTemplatesViewModel.state),(t=>{"ready"===t&&(this._editorLoading=!0)}));this._editor.viewModel.addHandles(t);const i=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"adding-attachment"===t||"editing-attachment"===t?(this._addingAttachment=!0,this.isActionPending.emit(!0)):this._addingAttachment&&(this.isActionPending.emit(!1),this._addingAttachment=!1)}));this._editor.viewModel.addHandles(i);const s=this.reactiveUtils.watch((()=>this._editor.viewModel.featureFormViewModel?.state),(t=>{"ready"===t&&this.formReady.emit()}));this._editor.viewModel.addHandles(s)}async startCreate(){const t=this.selectedFeature.layer,i=this.table,s=t.relationships[0],e=i.relationships.find((i=>t.layerId===i.relatedTableId)),a=await t.queryFeatures({objectIds:[this.selectedFeature.getObjectId()],outFields:[t.objectIdField,s.keyField]}),h=i.templates[0],n={attributeOverrides:this.makeAttributesForRelatedFeature(a.features[0],s,e),layer:i,template:h};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(n),await this.hideEditorsElements(),this._editor.viewModel.featureFormViewModel.on("submit",this.submitted.bind(this))}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector(".esri-editor")?.querySelectorAll("calcite-flow-item")?.forEach((t=>{const i=t.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");i?.querySelector("header")?.setAttribute("style","display: none"),i?.querySelector("footer")?.setAttribute("style","display: none")})))}makeAttributesForRelatedFeature(t,i,s){const e=i.keyField;let a;t.attributes.hasOwnProperty(e)?a=t.getAttribute(e):t.attributes.hasOwnProperty(e.toLowerCase())?a=t.getAttribute(e.toLowerCase()):t.attributes.hasOwnProperty(e.toUpperCase())&&(a=t.getAttribute(e.toUpperCase()));let h=s.keyField;const n=this.table.fields.find((t=>t.name.toLocaleLowerCase()===h.toLocaleLowerCase()));return h=n.name,{[h]:a}}async submitted(t){if(t.invalid.length)this._isSubmitBtnClicked=!1;else if(t.valid.length&&this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{await this._editor.activeWorkflow.commit(),this._editor.viewModel.failures?.length&&this._editor.viewModel.failures.some((t=>{if(t.error)throw t.error}))}catch(t){return void this.fail.emit(t)}this.success.emit()}}timeout(t){return new Promise((i=>setTimeout(i,t)))}async _getTranslations(){const t=await l(this.el);this._translations=t[0]}static get watchers(){return{mapView:["mapViewWatchHandler"],_editorLoading:["_editorLoadingWatchHandler"]}}};k.style=":host{display:block}.esri-editor__panel-toolbar{display:none !important}.display-none{display:none !important}.esri-editor__panel-content{padding-block:10px !important}.notice-msg{padding:10px;width:calc(100% - 20px)}";const v=class{constructor(i){t(this,i),this.loadingStatus=e(this,"loadingStatus",7),this.commentSelect=e(this,"commentSelect",7),this.addComment=e(this,"addComment",7),this.likeOrDislikeClicked=e(this,"likeOrDislikeClicked",7),this.featureSelectionChange=e(this,"featureSelectionChange",7),this.mapView=void 0,this.graphics=void 0,this.reportingOptions=void 0,this.layerItemsHash=void 0,this.showUserImageInCommentsList=!1,this._likeFieldAvailable=!1,this._likeCount=0,this._disLikeCount=0,this._dislikeFieldAvailable=!1,this._commentsAvailable=!1,this._isLikeBtnClicked=!1,this._isDislikeBtnClicked=!1,this._relatedFeaturesOIDs=void 0,this._updating=!1}get el(){return s(this)}_infoCard;_commentsList;_selectedGraphic;_likeField;_dislikeField;Graphic;RelationshipQuery;_validFieldTypes=["small-integer","integer","big-integer","single","long"];relatedTableId;async graphicsWatchHandler(){await this.getCompleteGraphic(this.graphics[0]),this.checkLikeDislikeFields(),await this.processComments()}async refresh(t){await this.getCompleteGraphic(t),await this.processComments(),this.isLikeDislikeConfigured(t.layer)?t&&this.graphics.length>1&&this.checkLikeDislikeFields():(this._likeFieldAvailable=!1,this._dislikeFieldAvailable=!1)}async back(){this._infoCard.back()}async next(){this._infoCard.next()}async toggleListView(){this._infoCard.toggleListView()}loadingStatus;commentSelect;addComment;likeOrDislikeClicked;featureSelectionChange;async componentWillLoad(){await this._initModules(),await this.getCompleteGraphic(this.graphics[0]),this.checkLikeDislikeFields(),await this.processComments()}render(){const t=this._relatedFeaturesOIDs?.length>0?`objectId in(${this._relatedFeaturesOIDs})`:"1=0";return i("calcite-panel",{key:"e09b693348a5d446f6ea3c774af3c2fd14e66daf","full-height":!0},i("info-card",{key:"4483a15e4e0bdd62c2c21bc4622d3bbddf3cd113",allowEditing:!1,graphics:this.graphics,highlightEnabled:!1,isLoading:!1,isMobile:!1,mapView:this.mapView,onSelectionChanged:t=>{this.featureSelectionChange.emit(t.detail)},paginationEnabled:!1,position:"relative",ref:t=>this._infoCard=t}),(this._likeFieldAvailable||this._dislikeFieldAvailable||this._commentsAvailable)&&i("div",{key:"ac24bb5fd56a7561e78d90c3a1b10027cfab6b2b",class:"buttons-container"},this._commentsAvailable&&i("calcite-button",{key:"676c5da52465f295212668f8db9b353e219070f2",appearance:"transparent",iconEnd:"speech-bubble",kind:"neutral",onClick:()=>{this.addComment.emit()},scale:"m"},this._relatedFeaturesOIDs.length),this._likeFieldAvailable&&i("calcite-button",{key:"b3fe54ea2fcf5361e6ec0a91bd52775d24408d77",appearance:"transparent",iconEnd:"thumbs-up",kind:this._isLikeBtnClicked?"brand":"neutral",loading:this._updating,onClick:this.onLikeButtonClick.bind(this),scale:"m"},this._likeCount??this._selectedGraphic.attributes[this._likeField]??0),this._dislikeFieldAvailable&&i("calcite-button",{key:"d83c9b9fdd287e07670ca9a5aeafd1a4cc38c0f8",appearance:"transparent",iconEnd:"thumbs-down",kind:this._isDislikeBtnClicked?"brand":"neutral",loading:this._updating,onClick:this.onDislikeButtonClick.bind(this),scale:"m"},this._disLikeCount??this._selectedGraphic.attributes[this._dislikeField]??0)),this.relatedTableId&&this._commentsAvailable&&i("feature-list",{key:"9d72181a778e08b632d802689a66fa21924cd5b3",class:"height-full",mapView:this.mapView,onFeatureSelect:t=>{this.commentSelect.emit(t.detail)},pageSize:5,ref:t=>this._commentsList=t,selectedLayerId:this.relatedTableId,showErrorWhenNoFeatures:!1,showInitialLoading:!1,showUserImageInList:this.showUserImageInCommentsList,textSize:"small",whereClause:t}))}async _initModules(){const[t,i]=await r(["esri/rest/support/RelationshipQuery","esri/Graphic"]);this.RelationshipQuery=t,this.Graphic=i}async getCompleteGraphic(t){if(t){const i=t.layer,s=i.createQuery();s.objectIds=[t.getObjectId()];const e=await i.queryFeatures(s);this._selectedGraphic=e.features[0]}}async processComments(){const t=this._selectedGraphic.layer;if(this.reportingOptions&&this.reportingOptions[t.id]&&this.reportingOptions[t.id].comment&&t.relationships?.length>0){const i=await f(this.mapView);let s=null,e=null;if(t.relationships.some((a=>{const h=i.filter((i=>t.url===i.url&&i.layerId===a.relatedTableId));if(h&&h.length>0)return s=h[0],e=a.id,!0})),this.relatedTableId=s?.id??"",this.relatedTableId){const i=this._selectedGraphic.attributes[t.objectIdField],a=new this.RelationshipQuery({objectIds:[i],outFields:["*"],relationshipId:e}),h=await t.queryRelatedFeatures(a).catch((t=>{console.error(t)})),n=[];h[i]&&h[i].features.forEach((t=>{n.push(t.attributes[s.objectIdField])})),this._relatedFeaturesOIDs=n,this._commentsAvailable=!0}else this._relatedFeaturesOIDs=[],this._commentsAvailable=!1}else this._relatedFeaturesOIDs=[],this._commentsAvailable=!1,this.relatedTableId=""}isLikeDislikeConfigured(t){let i=!1,s=!1;if(this.reportingOptions&&this.reportingOptions[t.id]){if(!this.reportingOptions[t.id].like&&!this.reportingOptions[t.id].dislike)return!1;const e=this.reportingOptions[t.id].likeField,a=this.reportingOptions[t.id].dislikeField;if(!e&&!a)return!1;t.fields.forEach((h=>{this._validFieldTypes.indexOf(h.type)>-1&&this.layerItemsHash[t.id].supportsUpdate&&(h.name===e&&this.reportingOptions[t.id].like?i=!0:h.name===a&&this.reportingOptions[t.id].dislike&&(s=!0))}))}return i||s}checkLikeDislikeFields(){this._likeFieldAvailable=!1,this._dislikeFieldAvailable=!1,this._isLikeBtnClicked=!1,this._isDislikeBtnClicked=!1,this._likeCount=0,this._disLikeCount=0;const t=this._selectedGraphic.layer;if(this.reportingOptions&&this.reportingOptions[t.id]){if(this._likeField=this.reportingOptions[t.id].likeField,this._dislikeField=this.reportingOptions[t.id].dislikeField,!this._likeField&&!this._dislikeField)return;t.fields.forEach((i=>{this._validFieldTypes.indexOf(i.type)>-1&&this.layerItemsHash[t.id].supportsUpdate&&(i.name===this._likeField&&this.reportingOptions[t.id].like?(this._likeFieldAvailable=!0,this._likeCount=this._selectedGraphic.attributes[i.name]):i.name===this._dislikeField&&this.reportingOptions[t.id].dislike&&(this._dislikeFieldAvailable=!0,this._disLikeCount=this._selectedGraphic.attributes[i.name]))})),this.getFromLocalStorage()}}onLikeButtonClick(){this._isDislikeBtnClicked&&this.reportingOptions[this._selectedGraphic.layer.id].dislike&&this.onDislikeButtonClick(),this._isLikeBtnClicked=!this._isLikeBtnClicked,this._isLikeBtnClicked?this._likeCount++:this._likeCount--,this.updateFeaturesLikeDislikeField(this._likeField,this._isLikeBtnClicked)}onDislikeButtonClick(){this._isLikeBtnClicked&&this.reportingOptions[this._selectedGraphic.layer.id].like&&this.onLikeButtonClick(),this._isDislikeBtnClicked=!this._isDislikeBtnClicked,this._isDislikeBtnClicked?this._disLikeCount++:this._disLikeCount--,this.updateFeaturesLikeDislikeField(this._dislikeField,this._isDislikeBtnClicked)}async updateFeaturesLikeDislikeField(t,i){const s={},e=this._selectedGraphic.layer;this._updating=!0;const a=this._selectedGraphic;a.attributes[t]=Number(a.attributes[t])+(i?1:-1),s[e.objectIdField]=a.attributes[e.objectIdField],s[t]=a.attributes[t];const h=new this.Graphic;h.attributes=s;const n={updateFeatures:[h]};await e.applyEdits(n).then((()=>{this._selectedGraphic=a,this.setInLocalStorage(),this._updating=!1,this.likeOrDislikeClicked.emit()}),(t=>{this._updating=!1,console.log(t)}))}getFromLocalStorage(){const t=localStorage[this._selectedGraphic.layer.id];if(t){const i=JSON.parse(t).filter((t=>t.id===this._selectedGraphic.getObjectId()));i.length>0&&(this._isLikeBtnClicked=i[0].like,this._isDislikeBtnClicked=i[0].dislike)}}setInLocalStorage(){const t=this._selectedGraphic.layer.id,i=localStorage[t];let s=[];if(i){s=JSON.parse(i);const t=s.findIndex((t=>t.id===this._selectedGraphic.getObjectId()));t>=0&&s.splice(t,1)}s.push({id:this._selectedGraphic.getObjectId(),like:this._isLikeBtnClicked&&0!==this._likeCount,dislike:this._isDislikeBtnClicked&&0!==this._disLikeCount}),localStorage.setItem(t,JSON.stringify(s))}static get watchers(){return{graphics:["graphicsWatchHandler"]}}};v.style=":host{display:block}.buttons-container{align-items:center;display:flex;padding:4px;color:var(--calcite-color-text-1) !important;background-color:var(--calcite-color-foreground-1) !important;border-block-start:1px solid var(--calcite-color-border-3);border-block-end:1px solid var(--calcite-color-border-3)}";const L=class{constructor(i){t(this,i),this.layerSelect=e(this,"layerSelect",7),this.layersListLoaded=e(this,"layersListLoaded",7),this.mapView=void 0,this.layers=void 0,this.showFeatureCount=!0,this.showNextIcon=!1,this.applyLayerViewFilter=!1,this._noLayersToDisplay=!1,this._mapLayerIds=[],this._isLoading=!1,this._translations=void 0}get el(){return s(this)}_layerItemsHash;async refresh(){await this.setLayers()}layerSelect;layersListLoaded;async componentWillLoad(){await this._getTranslations()}async componentDidLoad(){await this.setLayers()}render(){return i(a,{key:"f8e0c21d4ff87d663a1e0f00f1d9ef1123091db9"},this._isLoading&&i("calcite-loader",{key:"42058be6b41126e58d33895bc237b174e55a16ed",label:"",scale:"m"}),!this._isLoading&&this.mapView&&this._noLayersToDisplay&&i("calcite-notice",{key:"89d9073a156f07379699cc5b67bf9ba54654cc68",class:"error-msg",icon:"layers-reference",kind:"danger",open:!0},i("div",{key:"730b8dcca79bd45a7a6eecb5030626d1dcd01238",slot:"title"},this._translations.error),i("div",{key:"656e8276ffab75734909348f49f11492de1d5a8b",slot:"message"},this._translations.noLayerToDisplayErrorMsg)),!this._isLoading&&this.mapView&&i("calcite-list",{key:"1d2206d3163b6c5ed8511e32ab296f0025889824","selection-appearance":"border","selection-mode":"none"},this.renderLayerList()))}async setLayers(){this.mapView&&(this._isLoading=!0,await this.initLayerHash(),this._isLoading=!1)}async initLayerHash(){const t=[];this._layerItemsHash=await p(this.mapView,!0);const i=await m(this.mapView);for(const s of i)if("feature"===s?.type&&this.showFeatureCount){const i=s.createQuery();if(s?.definitionExpression&&(i.where=i.where+" AND "+s.definitionExpression),this.applyLayerViewFilter){const t=await b(this.mapView,s.id);t?.filter?.where&&(i.where=i.where?i.where+" AND "+t.filter.where:t.filter.where)}const e=s.queryFeatureCount(i);t.push(e),e.then((async t=>{const i=isNaN(t)?"":await d(t,{places:0,api:4,type:"decimal"});this._layerItemsHash[s.id].formattedFeatureCount=i}))}await Promise.all(t).then((()=>{const t=this.getLayersToBeShownInList(this._layerItemsHash);this._mapLayerIds=t.reverse(),this.handleNoLayersToDisplay()}),(()=>{this._mapLayerIds=[],this.handleNoLayersToDisplay()}))}handleNoLayersToDisplay(){this._noLayersToDisplay=!(this._mapLayerIds.length>0),this.layersListLoaded.emit(this._mapLayerIds)}getLayersToBeShownInList(t){const i=this.layers?.length>0?this.layers:[];return Object.keys(t).reduce(((t,s)=>(i.indexOf(s)>-1&&t.push(s),t)),[])}renderLayerList(){return this._mapLayerIds.length>0&&this._mapLayerIds.reduce(((t,i)=>(this._layerItemsHash[i]&&t.push(this.getLayerListItem(i)),t)),[])}getLayerListItem(t){const s=this._layerItemsHash[t].formattedFeatureCount;return i("calcite-list-item",{onCalciteListItemSelect:()=>{this.onLayerItemSelected(t)}},i("div",{class:"layer-name",slot:"content-start"},this._layerItemsHash[t].name),this.showFeatureCount&&void 0!==s&&""!==s&&i("div",{class:this.showNextIcon?"":"feature-count",slot:"content-end"},"("+s+")"),this.showNextIcon&&i("calcite-icon",{flipRtl:!0,icon:"chevron-right",scale:"s",slot:"content-end"}))}onLayerItemSelected(t){this.layerSelect.emit({layerId:t,layerName:this._layerItemsHash[t].name})}async _getTranslations(){const t=await l(this.el);this._translations=t[0]}};L.style=":host{display:block}.error-msg{padding:10px}.layer-name{font-weight:500;padding:10px 12px}.feature-count{padding-right:12px}";export{w as calcite_flow,k as create_related_feature,v as feature_details,L as layer_list}
@@ -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 e,g as s,h as t,H as o}from"./p-4e6eb06e.js";const r=class{constructor(s){e(this,s)}get el(){return s(this)}render(){return t(o,{key:"65473b5e82ede7018cc249c583e09be2981172ed"},t("slot",{key:"0d637e47de593df9cd1e716538742996d9de682e"}))}};r.style=":host{display:block}";export{r as location_flow_item}
@@ -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 e,g as t,h as i,H as s}from"./p-4e6eb06e.js";import{g as a}from"./p-f4aadb3b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const o=class{constructor(t){e(this,t),this.templateInfos=[],this._sortedTemplateInfos=[],this._translations=void 0}get el(){return t(this)}_sortOrder=["Hub Site Application","Hub Page","Web Experience","Instant App","Web Mapping Application","Dashboard","StoryMap","Form","QuickCapture Project","Workflow","Big Data Analytic (hosted)","Real Time Analytic (hosted)","Feed (hosted)","Tool","Notebook","Data Pipeline","Project Package","Desktop Application Template","TypeNotFound","Web Map","Web Scene","Feature Layer (hosted, view)","Feature Layer (hosted)","Table (hosted, view)","Table (hosted)","Tile Layer","CSV","Microsoft Excel","Microsoft Word","Report Template","Rule Package","Group"];_types=[];async templateInfosWatchHandler(){this._types=[],this._sortedTemplateInfos=this._sortTemplates()}async componentWillLoad(){await this._getTranslations()}async componentWillRender(){0===this._sortedTemplateInfos.length&&this.templateInfos?.length>0&&(this._sortedTemplateInfos=this._sortTemplates())}render(){return i(s,{key:"8e51f89ed52cd292aae82ed819c61ec4f1e1e5fb"},this._getAccordion())}_getAccordion(){return i("calcite-accordion",{selectionMode:"single"},this._sortedTemplateInfos.reduce(((e,t)=>{const i=this._getTypeForDisplay(t.type,t.typeKeywords);return this._types.indexOf(i)<0&&(this._types.push(i),e.push(this._getAccordionItem(t))),e}),[]))}_getAccordionItem(e){const t=this._getTypeForDisplay(e.type,e.typeKeywords),s=this._sortedTemplateInfos.filter((e=>this._getTypeForDisplay(e.type,e.typeKeywords)===t));return i("calcite-accordion-item",{description:`${t} (${s.length})`},i("solution-item-icon",{class:"padding-start-1",slot:"actions-start",type:e.type,typeKeywords:e.typeKeywords}),this._getList(s))}_getList(e){const t=this._sortTemplatesByTitle(e);return i("calcite-list",null,t.map((e=>this._getListItem(e))))}_getListItem(e){return i("calcite-list-item",{class:"font-size-override",description:e.snippet,label:e.title,value:e.id})}_sortTemplatesByTitle(e){return e.sort(((e,t)=>e.title<t.title?-1:e.title>t.title?1:0))}_sortTemplates(){return this.templateInfos.sort(((e,t)=>{const i=this._getTypeForSort(e),s=this._getTypeForSort(t);return this._sortOrder.indexOf(i)-this._sortOrder.indexOf(s)}))}_getTypeForSort(e){let t=this._getTypeForDisplay(e.type,e.typeKeywords);return this._sortOrder.indexOf(t)<0&&(t="TypeNotFound"),t}_getTypeForDisplay(e,t){let i=e;if("Feature Service"===e){const e=t.indexOf("View Service")>-1,s=t.indexOf("Table")>-1;i=e&&s?"Table (hosted, view)":s?"Table (hosted)":e?"Feature Layer (hosted, view)":"Feature Layer (hosted)"}return"Web Mapping Application"===e&&(i=t.indexOf("configurableApp")>-1?"Instant App":i),i="Geoprocessing Service"===e?"Tool":i,i="Feed"===e?"Feed (hosted)":i,i="Real Time Analytic"===e?"Real Time Analytic (hosted)":i,i="Big Data Analytic"===e?"Big Data Analytic (hosted)":i,i="Vector Tile Service"===e?"Tile Layer":i,i}async _getTranslations(){const e=await a(this.el);this._translations=e[0]}static get watchers(){return{templateInfos:["templateInfosWatchHandler"]}}};o.style=":host{display:block}.padding-start-1{padding-inline-start:1rem}.font-size-override{--calcite-font-size--2:var(--calcite-font-size--1)}";export{o as solution_item_accordion}
@@ -1,19 +0,0 @@
1
- /** @license
2
- * Copyright 2022 Esri
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- export declare class FeatureComments {
17
- el: HTMLFeatureCommentsElement;
18
- render(): any;
19
- }