@esri/solutions-components 0.10.34 → 0.10.36

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +7 -6
  2. package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
  3. package/dist/cjs/calcite-alert_5.cjs.entry.js +10 -8
  4. package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
  5. package/dist/cjs/calcite-flow_4.cjs.entry.js +18 -16
  6. package/dist/cjs/{calcite-modal_3.cjs.entry.js → calcite-modal.cjs.entry.js} +27 -368
  7. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +7 -7
  8. package/dist/cjs/calcite-shell_3.cjs.entry.js +440 -0
  9. package/dist/cjs/card-manager_3.cjs.entry.js +22 -11
  10. package/dist/cjs/crowdsource-manager.cjs.entry.js +28 -31
  11. package/dist/cjs/crowdsource-reporter.cjs.entry.js +24 -21
  12. package/dist/cjs/{downloadUtils-20637f89.js → downloadUtils-76bc7e30.js} +6 -5
  13. package/dist/cjs/feature-comments.cjs.entry.js +1 -1
  14. package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
  15. package/dist/cjs/feature-list.cjs.entry.js +7 -7
  16. package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
  17. package/dist/cjs/{index.es-a242cb45.js → index.es-8336efed.js} +2 -2
  18. package/dist/cjs/layout-manager.cjs.entry.js +1 -1
  19. package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
  22. package/dist/cjs/map-select-tools_3.cjs.entry.js +5 -5
  23. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  24. package/dist/cjs/{popupUtils-d477705b.js → popupUtils-bc762034.js} +1 -1
  25. package/dist/cjs/public-notification.cjs.entry.js +3 -3
  26. package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
  27. package/dist/cjs/share-item.cjs.entry.js +1 -1
  28. package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
  29. package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
  30. package/dist/cjs/solution-item-accordion.cjs.entry.js +1 -1
  31. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  32. package/dist/cjs/solutions-components.cjs.js +1 -1
  33. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  34. package/dist/collection/assets/t9n/delete-dialog/resources.json +8 -0
  35. package/dist/collection/assets/t9n/delete-dialog/resources_ar.json +8 -0
  36. package/dist/collection/assets/t9n/delete-dialog/resources_bg.json +8 -0
  37. package/dist/collection/assets/t9n/delete-dialog/resources_bs.json +8 -0
  38. package/dist/collection/assets/t9n/delete-dialog/resources_ca.json +8 -0
  39. package/dist/collection/assets/t9n/delete-dialog/resources_cs.json +8 -0
  40. package/dist/collection/assets/t9n/delete-dialog/resources_da.json +8 -0
  41. package/dist/collection/assets/t9n/delete-dialog/resources_de.json +8 -0
  42. package/dist/collection/assets/t9n/delete-dialog/resources_el.json +8 -0
  43. package/dist/collection/assets/t9n/delete-dialog/resources_en.json +8 -0
  44. package/dist/collection/assets/t9n/delete-dialog/resources_es.json +8 -0
  45. package/dist/collection/assets/t9n/delete-dialog/resources_et.json +8 -0
  46. package/dist/collection/assets/t9n/delete-dialog/resources_fi.json +8 -0
  47. package/dist/collection/assets/t9n/delete-dialog/resources_fr.json +8 -0
  48. package/dist/collection/assets/t9n/delete-dialog/resources_he.json +8 -0
  49. package/dist/collection/assets/t9n/delete-dialog/resources_hr.json +8 -0
  50. package/dist/collection/assets/t9n/delete-dialog/resources_hu.json +8 -0
  51. package/dist/collection/assets/t9n/delete-dialog/resources_id.json +8 -0
  52. package/dist/collection/assets/t9n/delete-dialog/resources_it.json +8 -0
  53. package/dist/collection/assets/t9n/delete-dialog/resources_ja.json +8 -0
  54. package/dist/collection/assets/t9n/delete-dialog/resources_ko.json +8 -0
  55. package/dist/collection/assets/t9n/delete-dialog/resources_lt.json +8 -0
  56. package/dist/collection/assets/t9n/delete-dialog/resources_lv.json +8 -0
  57. package/dist/collection/assets/t9n/delete-dialog/resources_nb.json +8 -0
  58. package/dist/collection/assets/t9n/delete-dialog/resources_nl.json +8 -0
  59. package/dist/collection/assets/t9n/delete-dialog/resources_pl.json +8 -0
  60. package/dist/collection/assets/t9n/delete-dialog/resources_pt-BR.json +8 -0
  61. package/dist/collection/assets/t9n/delete-dialog/resources_pt-PT.json +8 -0
  62. package/dist/collection/assets/t9n/delete-dialog/resources_ro.json +8 -0
  63. package/dist/collection/assets/t9n/delete-dialog/resources_ru.json +8 -0
  64. package/dist/collection/assets/t9n/delete-dialog/resources_sk.json +8 -0
  65. package/dist/collection/assets/t9n/delete-dialog/resources_sl.json +8 -0
  66. package/dist/collection/assets/t9n/delete-dialog/resources_sr.json +8 -0
  67. package/dist/collection/assets/t9n/delete-dialog/resources_sv.json +8 -0
  68. package/dist/collection/assets/t9n/delete-dialog/resources_th.json +8 -0
  69. package/dist/collection/assets/t9n/delete-dialog/resources_tr.json +8 -0
  70. package/dist/collection/assets/t9n/delete-dialog/resources_uk.json +8 -0
  71. package/dist/collection/assets/t9n/delete-dialog/resources_vi.json +8 -0
  72. package/dist/collection/assets/t9n/delete-dialog/resources_zh-CN.json +8 -0
  73. package/dist/collection/assets/t9n/delete-dialog/resources_zh-HK.json +8 -0
  74. package/dist/collection/assets/t9n/delete-dialog/resources_zh-TW.json +8 -0
  75. package/dist/collection/collection-manifest.json +1 -0
  76. package/dist/collection/components/create-feature/create-feature.css +2 -1
  77. package/dist/collection/components/create-feature/create-feature.js +3 -1
  78. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +4 -0
  79. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +29 -30
  80. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +24 -21
  81. package/dist/collection/components/delete-button/delete-button.js +20 -27
  82. package/dist/collection/components/delete-dialog/delete-dialog.css +23 -0
  83. package/dist/collection/components/delete-dialog/delete-dialog.js +239 -0
  84. package/dist/collection/components/edit-card/edit-card.js +1 -1
  85. package/dist/collection/components/feature-comments/feature-comments.js +1 -1
  86. package/dist/collection/components/feature-details/feature-details.js +13 -11
  87. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
  88. package/dist/collection/components/feature-list/feature-list.js +4 -4
  89. package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
  90. package/dist/collection/components/floor-filter/floor-filter.js +1 -1
  91. package/dist/collection/components/info-card/info-card.js +2 -2
  92. package/dist/collection/components/json-editor/json-editor.js +1 -1
  93. package/dist/collection/components/layer-list/layer-list.js +5 -5
  94. package/dist/collection/components/layer-table/layer-table.css +6 -0
  95. package/dist/collection/components/layer-table/layer-table.js +19 -7
  96. package/dist/collection/components/layout-manager/layout-manager.js +1 -1
  97. package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
  98. package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
  99. package/dist/collection/components/map-card/map-card.js +1 -1
  100. package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
  101. package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
  102. package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
  103. package/dist/collection/components/map-legend/map-legend.js +2 -1
  104. package/dist/collection/components/map-picker/map-picker.js +1 -1
  105. package/dist/collection/components/map-search/map-search.js +1 -1
  106. package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
  107. package/dist/collection/components/map-tools/map-tools.js +1 -1
  108. package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
  109. package/dist/collection/components/pdf-download/pdf-download.js +1 -1
  110. package/dist/collection/components/public-notification/public-notification.js +1 -1
  111. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
  112. package/dist/collection/components/refine-selection/refine-selection.js +1 -1
  113. package/dist/collection/components/share-item/share-item.js +1 -1
  114. package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
  115. package/dist/collection/components/solution-contents/solution-contents.js +1 -1
  116. package/dist/collection/components/solution-item/solution-item.js +1 -1
  117. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +1 -1
  118. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
  119. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  120. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
  121. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
  122. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  123. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
  124. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  125. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  126. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  127. package/dist/collection/utils/downloadUtils.js +5 -3
  128. package/dist/collection/utils/downloadUtils.ts +6 -3
  129. package/dist/collection/utils/test/downloadUtils.spec.tsx +10 -12
  130. package/dist/components/card-manager2.js +40 -34
  131. package/dist/components/create-feature2.js +4 -2
  132. package/dist/components/crowdsource-manager.js +127 -123
  133. package/dist/components/crowdsource-reporter.js +110 -101
  134. package/dist/components/delete-button2.js +24 -41
  135. package/dist/components/delete-dialog.d.ts +11 -0
  136. package/dist/components/delete-dialog.js +11 -0
  137. package/dist/components/delete-dialog2.js +165 -0
  138. package/dist/components/downloadUtils.js +5 -4
  139. package/dist/components/edit-card2.js +1 -1
  140. package/dist/components/feature-comments.js +1 -1
  141. package/dist/components/feature-details2.js +67 -59
  142. package/dist/components/feature-form-flow-item.js +1 -1
  143. package/dist/components/feature-list2.js +4 -4
  144. package/dist/components/features-flow-item.js +1 -1
  145. package/dist/components/floor-filter2.js +1 -1
  146. package/dist/components/info-card2.js +38 -32
  147. package/dist/components/json-editor2.js +1 -1
  148. package/dist/components/layer-list2.js +5 -5
  149. package/dist/components/layer-table2.js +100 -82
  150. package/dist/components/layout-manager.js +1 -1
  151. package/dist/components/list-flow-item.js +1 -1
  152. package/dist/components/location-flow-item.js +1 -1
  153. package/dist/components/map-card2.js +1 -1
  154. package/dist/components/map-draw-tools2.js +1 -1
  155. package/dist/components/map-fullscreen2.js +1 -1
  156. package/dist/components/map-layer-picker2.js +1 -1
  157. package/dist/components/map-legend2.js +2 -1
  158. package/dist/components/map-picker2.js +1 -1
  159. package/dist/components/map-search2.js +1 -1
  160. package/dist/components/map-select-tools2.js +1 -1
  161. package/dist/components/map-tools2.js +1 -1
  162. package/dist/components/pci-calculator.js +1 -1
  163. package/dist/components/pdf-download2.js +1 -1
  164. package/dist/components/public-notification.js +1 -1
  165. package/dist/components/refine-results-flow-item.js +1 -1
  166. package/dist/components/refine-selection2.js +1 -1
  167. package/dist/components/share-item.js +1 -1
  168. package/dist/components/solution-configuration.js +3 -3
  169. package/dist/components/solution-contents2.js +1 -1
  170. package/dist/components/solution-item-accordion.js +1 -1
  171. package/dist/components/solution-item-details2.js +1 -1
  172. package/dist/components/solution-item-icon2.js +1 -1
  173. package/dist/components/solution-item-sharing2.js +1 -1
  174. package/dist/components/solution-item2.js +1 -1
  175. package/dist/components/solution-organization-variables2.js +1 -1
  176. package/dist/components/solution-resource-item2.js +1 -1
  177. package/dist/components/solution-spatial-ref2.js +1 -1
  178. package/dist/components/solution-template-data2.js +1 -1
  179. package/dist/components/solution-variables2.js +1 -1
  180. package/dist/components/spatial-ref.js +1 -1
  181. package/dist/esm/basemap-gallery_7.entry.js +7 -6
  182. package/dist/esm/buffer-tools_3.entry.js +1 -1
  183. package/dist/esm/calcite-alert_5.entry.js +10 -8
  184. package/dist/esm/calcite-combobox_3.entry.js +1 -1
  185. package/dist/esm/calcite-flow_4.entry.js +18 -16
  186. package/dist/esm/{calcite-modal_3.entry.js → calcite-modal.entry.js} +30 -369
  187. package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
  188. package/dist/esm/calcite-shell_3.entry.js +434 -0
  189. package/dist/esm/card-manager_3.entry.js +22 -11
  190. package/dist/esm/crowdsource-manager.entry.js +28 -31
  191. package/dist/esm/crowdsource-reporter.entry.js +24 -21
  192. package/dist/esm/{downloadUtils-e266e98d.js → downloadUtils-bc7a4ba1.js} +6 -5
  193. package/dist/esm/feature-comments.entry.js +1 -1
  194. package/dist/esm/feature-form-flow-item.entry.js +1 -1
  195. package/dist/esm/feature-list.entry.js +7 -7
  196. package/dist/esm/features-flow-item.entry.js +1 -1
  197. package/dist/esm/{index.es-c5f258e2.js → index.es-0d189a34.js} +2 -2
  198. package/dist/esm/layout-manager.entry.js +1 -1
  199. package/dist/esm/list-flow-item.entry.js +1 -1
  200. package/dist/esm/loader.js +1 -1
  201. package/dist/esm/location-flow-item.entry.js +1 -1
  202. package/dist/esm/map-select-tools_3.entry.js +5 -5
  203. package/dist/esm/pci-calculator.entry.js +1 -1
  204. package/dist/esm/{popupUtils-4570096e.js → popupUtils-03dc398a.js} +1 -1
  205. package/dist/esm/public-notification.entry.js +3 -3
  206. package/dist/esm/refine-results-flow-item.entry.js +1 -1
  207. package/dist/esm/share-item.entry.js +1 -1
  208. package/dist/esm/solution-configuration.entry.js +3 -3
  209. package/dist/esm/solution-contents_3.entry.js +3 -3
  210. package/dist/esm/solution-item-accordion.entry.js +1 -1
  211. package/dist/esm/solution-item-icon.entry.js +1 -1
  212. package/dist/esm/solutions-components.js +1 -1
  213. package/dist/esm/spatial-ref.entry.js +1 -1
  214. package/dist/solutions-components/assets/t9n/delete-dialog/resources.json +8 -0
  215. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ar.json +8 -0
  216. package/dist/solutions-components/assets/t9n/delete-dialog/resources_bg.json +8 -0
  217. package/dist/solutions-components/assets/t9n/delete-dialog/resources_bs.json +8 -0
  218. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ca.json +8 -0
  219. package/dist/solutions-components/assets/t9n/delete-dialog/resources_cs.json +8 -0
  220. package/dist/solutions-components/assets/t9n/delete-dialog/resources_da.json +8 -0
  221. package/dist/solutions-components/assets/t9n/delete-dialog/resources_de.json +8 -0
  222. package/dist/solutions-components/assets/t9n/delete-dialog/resources_el.json +8 -0
  223. package/dist/solutions-components/assets/t9n/delete-dialog/resources_en.json +8 -0
  224. package/dist/solutions-components/assets/t9n/delete-dialog/resources_es.json +8 -0
  225. package/dist/solutions-components/assets/t9n/delete-dialog/resources_et.json +8 -0
  226. package/dist/solutions-components/assets/t9n/delete-dialog/resources_fi.json +8 -0
  227. package/dist/solutions-components/assets/t9n/delete-dialog/resources_fr.json +8 -0
  228. package/dist/solutions-components/assets/t9n/delete-dialog/resources_he.json +8 -0
  229. package/dist/solutions-components/assets/t9n/delete-dialog/resources_hr.json +8 -0
  230. package/dist/solutions-components/assets/t9n/delete-dialog/resources_hu.json +8 -0
  231. package/dist/solutions-components/assets/t9n/delete-dialog/resources_id.json +8 -0
  232. package/dist/solutions-components/assets/t9n/delete-dialog/resources_it.json +8 -0
  233. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ja.json +8 -0
  234. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ko.json +8 -0
  235. package/dist/solutions-components/assets/t9n/delete-dialog/resources_lt.json +8 -0
  236. package/dist/solutions-components/assets/t9n/delete-dialog/resources_lv.json +8 -0
  237. package/dist/solutions-components/assets/t9n/delete-dialog/resources_nb.json +8 -0
  238. package/dist/solutions-components/assets/t9n/delete-dialog/resources_nl.json +8 -0
  239. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pl.json +8 -0
  240. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pt-BR.json +8 -0
  241. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pt-PT.json +8 -0
  242. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ro.json +8 -0
  243. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ru.json +8 -0
  244. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sk.json +8 -0
  245. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sl.json +8 -0
  246. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sr.json +8 -0
  247. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sv.json +8 -0
  248. package/dist/solutions-components/assets/t9n/delete-dialog/resources_th.json +8 -0
  249. package/dist/solutions-components/assets/t9n/delete-dialog/resources_tr.json +8 -0
  250. package/dist/solutions-components/assets/t9n/delete-dialog/resources_uk.json +8 -0
  251. package/dist/solutions-components/assets/t9n/delete-dialog/resources_vi.json +8 -0
  252. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-CN.json +8 -0
  253. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-HK.json +8 -0
  254. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-TW.json +8 -0
  255. package/dist/solutions-components/{p-ffa9a117.entry.js → p-04ab956c.entry.js} +1 -1
  256. package/dist/solutions-components/{p-6c3261d7.entry.js → p-06364211.entry.js} +1 -1
  257. package/dist/solutions-components/{p-d119872d.entry.js → p-18089a0b.entry.js} +1 -1
  258. package/dist/solutions-components/p-1f07e21a.entry.js +6 -0
  259. package/dist/solutions-components/p-2a6ecaa9.entry.js +11 -0
  260. package/dist/solutions-components/p-46416e11.entry.js +6 -0
  261. package/dist/solutions-components/{p-5fc0e134.entry.js → p-59ccd27c.entry.js} +1 -1
  262. package/dist/solutions-components/{p-42f75c8f.entry.js → p-6502d0f8.entry.js} +1 -1
  263. package/dist/solutions-components/{p-a568af9f.js → p-6f606cdb.js} +1 -1
  264. package/dist/solutions-components/p-70c0050c.entry.js +6 -0
  265. package/dist/solutions-components/p-720de4db.entry.js +6 -0
  266. package/dist/solutions-components/p-74bcef23.entry.js +11 -0
  267. package/dist/solutions-components/{p-4cb12506.entry.js → p-76154700.entry.js} +1 -1
  268. package/dist/solutions-components/p-82ddf716.entry.js +6 -0
  269. package/dist/solutions-components/{p-d08ece15.entry.js → p-841816a1.entry.js} +1 -1
  270. package/dist/solutions-components/p-938bc915.entry.js +6 -0
  271. package/dist/solutions-components/p-97fe6ec5.entry.js +6 -0
  272. package/dist/solutions-components/{p-dd0bd439.entry.js → p-9c4fef09.entry.js} +3 -3
  273. package/dist/solutions-components/{p-fa7672c7.entry.js → p-9d56f4b5.entry.js} +1 -1
  274. package/dist/solutions-components/p-9da8a590.entry.js +6 -0
  275. package/dist/solutions-components/{p-5fdb8f83.entry.js → p-a5d79c86.entry.js} +1 -1
  276. package/dist/solutions-components/{p-4f5913f3.entry.js → p-aac0c89c.entry.js} +1 -1
  277. package/dist/solutions-components/{p-ddc1218d.entry.js → p-be4c7ffd.entry.js} +1 -1
  278. package/dist/solutions-components/p-cd482a33.js +21 -0
  279. package/dist/solutions-components/p-d2612c30.entry.js +6 -0
  280. package/dist/solutions-components/{p-a07322cc.entry.js → p-df7de4b7.entry.js} +1 -1
  281. package/dist/solutions-components/{p-a8525233.entry.js → p-e345f9c4.entry.js} +1 -1
  282. package/dist/solutions-components/{p-1f072e2c.entry.js → p-eadff42b.entry.js} +1 -1
  283. package/dist/solutions-components/{p-06db1bfd.entry.js → p-efb4cb43.entry.js} +1 -1
  284. package/dist/solutions-components/{p-e4a42efa.entry.js → p-fa1c368c.entry.js} +1 -1
  285. package/dist/solutions-components/{p-46c8015c.js → p-ff9e28d1.js} +30 -30
  286. package/dist/solutions-components/solutions-components.esm.js +1 -1
  287. package/dist/solutions-components/utils/downloadUtils.ts +6 -3
  288. package/dist/solutions-components/utils/test/downloadUtils.spec.tsx +10 -12
  289. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -7
  290. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +6 -1
  291. package/dist/types/components/delete-button/delete-button.d.ts +4 -12
  292. package/dist/types/components/delete-dialog/delete-dialog.d.ts +75 -0
  293. package/dist/types/components/layer-table/layer-table.d.ts +12 -0
  294. package/dist/types/components.d.ts +69 -0
  295. package/dist/types/preact.d.ts +5 -0
  296. package/package.json +2 -1
  297. package/dist/solutions-components/p-2360802a.js +0 -21
  298. package/dist/solutions-components/p-51e2500f.entry.js +0 -6
  299. package/dist/solutions-components/p-52280e10.entry.js +0 -17
  300. package/dist/solutions-components/p-67ca4a64.entry.js +0 -6
  301. package/dist/solutions-components/p-7e6a8c06.entry.js +0 -6
  302. package/dist/solutions-components/p-8a411917.entry.js +0 -6
  303. package/dist/solutions-components/p-8d2d66d0.entry.js +0 -6
  304. package/dist/solutions-components/p-8e6081e0.entry.js +0 -6
  305. package/dist/solutions-components/p-b9b77b87.entry.js +0 -6
  306. package/dist/solutions-components/p-cf878a34.entry.js +0 -6
  307. package/dist/solutions-components/p-edd88d2d.entry.js +0 -6
@@ -256,7 +256,8 @@ export class CrowdsourceReporter {
256
256
  }
257
257
  }
258
258
  }
259
- if (this._layerList) {
259
+ // refresh layer list when user is on layer list panel
260
+ if (this._flowItems[this._flowItems.length - 1] === "layer-list" && this._layerList) {
260
261
  await this._layerList.refresh();
261
262
  }
262
263
  if (this._featureList) {
@@ -273,7 +274,8 @@ export class CrowdsourceReporter {
273
274
  if (this._editableLayerIds) {
274
275
  await this._updateFeatures();
275
276
  setTimeout(() => {
276
- if (this._layerList) {
277
+ // refresh layer list when user is on layer list panel
278
+ if (this._flowItems[this._flowItems.length - 1] === "layer-list" && this._layerList) {
277
279
  void this._layerList.refresh();
278
280
  }
279
281
  if (this._featureList) {
@@ -323,7 +325,7 @@ export class CrowdsourceReporter {
323
325
  */
324
326
  render() {
325
327
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
326
- return (h(Host, { key: 'bb2f79258038360e5c0b894ce5a21dcdd41d0ce4' }, this._reportSubmitted && h("calcite-alert", { key: 'aa244cd93326c8817b851d2465c7b9c453117ad2', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '25d6d6bd01ee8dc260bce41ea6c43eafa609292e', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: '06851f2f8cabebd0e953c31bdddfdeac363a4e6e', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: 'f0d73a00a8150a78c48cc09e8901ad7dcb438e90', slot: "title" }, this._translations.error), h("div", { key: '0747a85bbf4936a28dd85a9ea0e8b416f70ee7cf', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: '55017090c066ad4e12023315bde39e8c7fa67091', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: 'cb63168c1fe507b7b93ac4f58d5283ad0d09b34b', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: '36b551428b32c7d93f4d04639504bfe326bbc9c8', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: '2e9865c5611f4960bb622f75f386a489abcbb484', slot: "title" }, this._translations.error), h("div", { key: 'ebdf339d63369e18b1c68867cdffb9bd40f52766', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: 'a08980aead377e11697e96e77aa514ed66dc9613' }, h("calcite-shell", { key: '6d96e769ece33073870f2b8f1a7ef6a44006c3f0', "content-behind": true }, this._getReporter()))));
328
+ return (h(Host, { key: 'c8f50d4d6004a875444a863a9e839442708f732b' }, this._reportSubmitted && h("calcite-alert", { key: '5f556d67fd9f04c6277b88c0ad0f774ec9216850', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '0204b9967307421fdfeafc61eca006db62f99aab', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: 'fd21dc9f77fddd3b5a1edcef8f4ac0983018fb97', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: '3a33593f8c3285d38f651316ea2f4acc148606ec', slot: "title" }, this._translations.error), h("div", { key: '588890b6760a7657218282ddff9f3db94b9f73f6', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: 'b999711f77b1f5c94a84b4ca5f80d33a4d352ea2', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: 'ed7f7b1604d5dcdbf146fdbae108081742806587', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: '4bbcb945e9cc232ba77b327247b37b4ca420a77c', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: 'b75dad85bd1a793232c99b7d870fc9df9ccc0303', slot: "title" }, this._translations.error), h("div", { key: 'f161f78d54beba9ecaeccedd69d8e019c88a48e4', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: '43aea9a8138da6645ee420e9e2abe21a3cbe4c91' }, h("calcite-shell", { key: '5fd031aba8feed8d54e3118a7a99a5be8254c89f', "content-behind": true }, this._getReporter()))));
327
329
  }
328
330
  //--------------------------------------------------------------------------
329
331
  //
@@ -445,6 +447,7 @@ export class CrowdsourceReporter {
445
447
  if (canRestoreFilter) {
446
448
  void this._filterList.restoreFilters(this._filterUrlParams[0], this._filterInitState);
447
449
  }
450
+ this._filterInitState = null;
448
451
  }, 200);
449
452
  }
450
453
  /**
@@ -456,12 +459,6 @@ export class CrowdsourceReporter {
456
459
  this._filterActive = false;
457
460
  this._filterUrlParams = null;
458
461
  this._filterInitState = null;
459
- if (this._featureList) {
460
- await this._featureList.refresh();
461
- }
462
- if (this._layerList) {
463
- await this._layerList.refresh();
464
- }
465
462
  }
466
463
  /**
467
464
  * Check if the layers definitionExpression has been modified and update the feature list depending on the applied filters
@@ -473,11 +470,7 @@ export class CrowdsourceReporter {
473
470
  //set the filter active state based on the length of applied filters
474
471
  this._filterActive = this._filterList.urlParams.getAll('filter').length > 0;
475
472
  this._filterUrlParams = this._filterList.urlParams.getAll('filter');
476
- this._filterInitState = await this._filterList.getFilterInitState();
477
473
  await this._featureList.refresh();
478
- if (this._layerList) {
479
- await this._layerList.refresh();
480
- }
481
474
  this._showLoadingIndicator = false;
482
475
  }
483
476
  /**
@@ -583,15 +576,15 @@ export class CrowdsourceReporter {
583
576
  * On submit report navigate to the layer list home page and refresh the layer list
584
577
  * @protected
585
578
  */
586
- onReportSubmitted() {
579
+ async onReportSubmitted() {
580
+ void this.updateNonVisibleLayersOnMap(false);
581
+ await this.navigateToHomePage();
582
+ this._reportSubmitted = true;
583
+ this._updatedProgressBarStatus = 0.25;
587
584
  //on report submit form will be closed, so update the form state
588
585
  if (this._showFullPanel) {
589
586
  this.updatePanelState(this._sidePanelCollapsed, false);
590
587
  }
591
- void this.updateNonVisibleLayersOnMap(false);
592
- this._reportSubmitted = true;
593
- this._updatedProgressBarStatus = 0.25;
594
- void this.navigateToHomePage();
595
588
  }
596
589
  /**
597
590
  * On adding the is failed, show the error message
@@ -621,10 +614,11 @@ export class CrowdsourceReporter {
621
614
  * @protected
622
615
  */
623
616
  async navigateToHomePage() {
617
+ // set the selected features and then refresh the layer list to maintain the layer's visibility state
618
+ await this.setSelectedFeatures([]);
624
619
  if (this._layerList) {
625
- void this._layerList.refresh();
620
+ await this._layerList.refresh();
626
621
  }
627
- await this.setSelectedFeatures([]);
628
622
  if (this._editableLayerIds.length === 1) {
629
623
  await this._featureList.refresh();
630
624
  this._flowItems = ["feature-list"];
@@ -733,6 +727,15 @@ export class CrowdsourceReporter {
733
727
  prevLayer.definitionExpression = this._filterInitState.initDefExpressions[this._prevSelectedLayerId];
734
728
  void this._handleFilterListReset();
735
729
  }
730
+ /**
731
+ * On back from filter panel get the filter's init state
732
+ * @protected
733
+ */
734
+ async backFromFilterPanel() {
735
+ this._filterInitState = await this._filterList.getFilterInitState();
736
+ await this._featureList.refresh();
737
+ this.backFromSelectedPanel();
738
+ }
736
739
  /**
737
740
  * On back from selected panel navigate to the previous panel
738
741
  * @protected
@@ -857,7 +860,7 @@ export class CrowdsourceReporter {
857
860
  */
858
861
  getFilterPanel() {
859
862
  const currentLayersExpressions = this.layerExpressions ? this.layerExpressions.filter((exp) => exp.id === this._selectedLayerId) : [];
860
- return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._translations?.filterLayerTitle?.replace("{{title}}", this._selectedLayerName), loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("div", { class: "width-full", slot: "footer" }, h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", disabled: !this._filterActive, onClick: () => { void this._filterList?.forceReset(); }, width: "full" }, this._translations.resetFilter), h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromSelectedPanel.bind(this), width: "full" }, this._translations.close))), h("calcite-panel", { "full-height": true }, h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtnOnClick: () => undefined, comboboxOverlayPositioning: "fixed", layerExpressions: currentLayersExpressions, onFilterListReset: () => this._handleFilterListReset(), onFilterUpdate: () => this._handleFilterUpdate(), ref: (el) => this._filterList = el, resetBtn: false, resetFiltersOnDisconnect: false, view: this.mapView, zoomBtn: false }))));
863
+ return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._translations?.filterLayerTitle?.replace("{{title}}", this._selectedLayerName), loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromFilterPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("div", { class: "width-full", slot: "footer" }, h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", disabled: !this._filterActive, onClick: () => { void this._filterList?.forceReset(); }, width: "full" }, this._translations.resetFilter), h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromFilterPanel.bind(this), width: "full" }, this._translations.close))), h("calcite-panel", { "full-height": true }, h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtnOnClick: () => undefined, comboboxOverlayPositioning: "fixed", layerExpressions: currentLayersExpressions, onFilterListReset: () => this._handleFilterListReset(), onFilterUpdate: () => this._handleFilterUpdate(), ref: (el) => this._filterList = el, resetBtn: false, resetFiltersOnDisconnect: false, view: this.mapView, zoomBtn: false }))));
861
864
  }
862
865
  /**
863
866
  * Returns the calcite-flow item for feature details
@@ -22,6 +22,7 @@ import { Host, h } from "@stencil/core";
22
22
  import { getLocaleComponentStrings } from "../../utils/locale";
23
23
  export class DeleteButton {
24
24
  constructor() {
25
+ this.deleteDialog = undefined;
25
26
  this.buttonType = "button";
26
27
  this.disabled = false;
27
28
  this.icon = undefined;
@@ -29,7 +30,6 @@ export class DeleteButton {
29
30
  this.layer = undefined;
30
31
  this._confirmDelete = false;
31
32
  this._deleteEndabled = false;
32
- this._isDeleting = false;
33
33
  this._supportsDelete = undefined;
34
34
  this._translations = undefined;
35
35
  }
@@ -92,7 +92,7 @@ export class DeleteButton {
92
92
  * Renders the component.
93
93
  */
94
94
  render() {
95
- return (h(Host, { key: '23936d6981c9779f5a21951c6667e3cba86e5d82' }, this.buttonType === "button" ? (h("calcite-button", { appearance: "outline", disabled: !this._deleteEndabled, id: "solutions-delete", kind: "danger", onClick: () => this._delete(), width: "full" }, this._translations.deleteCount.replace("{{n}}", this.ids.length.toString()))) : (h("calcite-action", { appearance: "solid", compact: true, disabled: !this._deleteEndabled, id: this.icon, onClick: () => this._delete(), scale: "s", text: this._translations.delete }, h("calcite-button", { appearance: "transparent", iconStart: this.icon, kind: "danger" }, this._translations.delete))), this._deleteMessage(), h("calcite-tooltip", { key: '0078ca79ef0a2195be88d0b508fefc9838af9693', placement: "bottom", "reference-element": this.buttonType === "button" ? "solutions-delete" : this.icon }, h("span", { key: '6a2f3c55237c2cb07f17559c9f14edd4b442e004' }, this._translations.delete))));
95
+ return (h(Host, { key: '4ced17b35479900aaa01ebbd298eeae57194e358' }, this.buttonType === "button" ? (h("calcite-button", { appearance: "outline", disabled: !this._deleteEndabled, id: "solutions-delete", kind: "danger", onClick: () => this._delete(), width: "full" }, this._translations.deleteCount.replace("{{n}}", this.ids.length.toString()))) : (h("calcite-action", { appearance: "solid", compact: true, disabled: !this._deleteEndabled, id: this.icon, onClick: () => this._delete(), scale: "s", text: this._translations.delete }, h("calcite-button", { appearance: "transparent", iconStart: this.icon, kind: "danger" }, this._translations.delete))), this._deleteMessage(), h("calcite-tooltip", { key: '04f82e726cf9142c403ee43cb8151027bb7b617f', placement: "bottom", "reference-element": this.buttonType === "button" ? "solutions-delete" : this.icon }, h("span", { key: 'f7852b2476dae4b18e82495c64a819b3db98696d' }, this._translations.delete))));
96
96
  }
97
97
  /**
98
98
  * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
@@ -126,30 +126,7 @@ export class DeleteButton {
126
126
  * @returns node to confirm or deny the delete operation
127
127
  */
128
128
  _deleteMessage() {
129
- const confirmMessage = this.ids.length === 1 ? this._translations.confirmSingle :
130
- this._translations.confirmMultiple;
131
- return (h("calcite-modal", { "aria-labelledby": "modal-title", class: "delete-modal", kind: "danger", onCalciteModalClose: () => this._deleteClosed(), open: this._confirmDelete }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations.deleteFeature), h("div", { slot: "content" }, confirmMessage), h("calcite-button", { appearance: "outline", kind: "danger", onClick: () => this._deleteClosed(), slot: "secondary", width: "full" }, this._translations.cancel), h("calcite-button", { kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations.delete)));
132
- }
133
- /**
134
- * Delete the currently selected features
135
- */
136
- async _deleteFeatures() {
137
- this._isDeleting = true;
138
- const deleteFeatures = this.ids.map((objectId) => {
139
- return { objectId };
140
- });
141
- await this.layer.applyEdits({
142
- deleteFeatures
143
- });
144
- this._isDeleting = false;
145
- this._deleteClosed();
146
- this.editsComplete.emit("delete");
147
- }
148
- /**
149
- * Set the alertOpen member to false when the alert is closed
150
- */
151
- _deleteClosed() {
152
- this._confirmDelete = false;
129
+ return this.deleteDialog ? this.deleteDialog : (h("delete-dialog", { id: "solution-delete-dialog", ids: this.ids, layer: this.layer, onDeleteDialogClose: () => this._confirmDelete = false, open: this._confirmDelete }));
153
130
  }
154
131
  /**
155
132
  * Fetches the component's translations
@@ -175,6 +152,23 @@ export class DeleteButton {
175
152
  }
176
153
  static get properties() {
177
154
  return {
155
+ "deleteDialog": {
156
+ "type": "any",
157
+ "mutable": false,
158
+ "complexType": {
159
+ "original": "any",
160
+ "resolved": "any",
161
+ "references": {}
162
+ },
163
+ "required": false,
164
+ "optional": false,
165
+ "docs": {
166
+ "tags": [],
167
+ "text": "calcite-modal: Use this prop when using the button within a parent like a dropdown that would constrain the modal and that is not desired"
168
+ },
169
+ "attribute": "delete-dialog",
170
+ "reflect": false
171
+ },
178
172
  "buttonType": {
179
173
  "type": "string",
180
174
  "mutable": false,
@@ -276,7 +270,6 @@ export class DeleteButton {
276
270
  return {
277
271
  "_confirmDelete": {},
278
272
  "_deleteEndabled": {},
279
- "_isDeleting": {},
280
273
  "_supportsDelete": {},
281
274
  "_translations": {}
282
275
  };
@@ -0,0 +1,23 @@
1
+ /** @license
2
+ * Copyright 2024 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
+
17
+ :host {
18
+ display: block;
19
+ }
20
+
21
+ .delete-modal {
22
+ position: fixed;
23
+ }
@@ -0,0 +1,239 @@
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
+ /** @license
7
+ * Copyright 2024 Esri
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License");
10
+ * you may not use this file except in compliance with the License.
11
+ * You may obtain a copy of the License at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an "AS IS" BASIS,
17
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ * See the License for the specific language governing permissions and
19
+ * limitations under the License.
20
+ */
21
+ import { Host, h } from "@stencil/core";
22
+ import { getLocaleComponentStrings } from "../../utils/locale";
23
+ export class DeleteDialog {
24
+ constructor() {
25
+ this.ids = [];
26
+ this.layer = undefined;
27
+ this.open = false;
28
+ this._isDeleting = false;
29
+ this._translations = undefined;
30
+ }
31
+ //--------------------------------------------------------------------------
32
+ //
33
+ // Host element access
34
+ //
35
+ //--------------------------------------------------------------------------
36
+ el;
37
+ //--------------------------------------------------------------------------
38
+ //
39
+ // Properties (protected)
40
+ //
41
+ //--------------------------------------------------------------------------
42
+ //--------------------------------------------------------------------------
43
+ //
44
+ // Watch handlers
45
+ //
46
+ //--------------------------------------------------------------------------
47
+ //--------------------------------------------------------------------------
48
+ //
49
+ // Methods (public)
50
+ //
51
+ //--------------------------------------------------------------------------
52
+ //--------------------------------------------------------------------------
53
+ //
54
+ // Events (public)
55
+ //
56
+ //--------------------------------------------------------------------------
57
+ /**
58
+ * Emitted on demand when features have been deleted
59
+ */
60
+ editsComplete;
61
+ /**
62
+ * Emitted on demand when features have been deleted
63
+ */
64
+ deleteDialogClose;
65
+ //--------------------------------------------------------------------------
66
+ //
67
+ // Functions (lifecycle)
68
+ //
69
+ //--------------------------------------------------------------------------
70
+ /**
71
+ * StencilJS: Called once just after the component is first connected to the DOM.
72
+ *
73
+ * @returns Promise when complete
74
+ */
75
+ async componentWillLoad() {
76
+ await this._getTranslations();
77
+ }
78
+ /**
79
+ * Renders the component.
80
+ */
81
+ render() {
82
+ const confirmMessage = this.ids.length === 1 ? this._translations?.confirmSingle :
83
+ this._translations?.confirmMultiple;
84
+ return (h(Host, { key: '64cd1440f80a9609f90056b919fa807e975eff70' }, h("calcite-modal", { key: '022302455960cbcf894dc2f0079d88be6fb59367', "aria-labelledby": "modal-title", class: "delete-modal", kind: "danger", onCalciteModalClose: () => this._close(), open: this.open, widthScale: "s" }, h("div", { key: '7484caedbdd759efbe972182ddd41a6ebaa2bd64', class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations?.deleteFeature), h("div", { key: 'e31136a6eed46dd0cbc4d919deb732a623097fbf', slot: "content" }, confirmMessage), h("calcite-button", { key: '7de42845a99777bcec59221fb6ab863e72ca2654', appearance: "outline", kind: "danger", onClick: () => this._close(), slot: "secondary", width: "full" }, this._translations?.cancel), h("calcite-button", { key: '67921ff64fc5c4439e66833fd8502f7e95671b5d', kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations?.delete))));
85
+ }
86
+ //--------------------------------------------------------------------------
87
+ //
88
+ // Functions (protected)
89
+ //
90
+ //--------------------------------------------------------------------------
91
+ /**
92
+ * Delete the currently selected features
93
+ */
94
+ async _deleteFeatures() {
95
+ this._isDeleting = true;
96
+ const deleteFeatures = this.ids.map((objectId) => {
97
+ return { objectId };
98
+ });
99
+ await this.layer.applyEdits({
100
+ deleteFeatures
101
+ });
102
+ this._isDeleting = false;
103
+ this._close();
104
+ this.editsComplete.emit("delete");
105
+ }
106
+ /**
107
+ * Set the alertOpen member to false when the alert is closed
108
+ */
109
+ _close() {
110
+ this.open = false;
111
+ this.deleteDialogClose.emit();
112
+ }
113
+ /**
114
+ * Fetches the component's translations
115
+ *
116
+ * @returns Promise when complete
117
+ * @protected
118
+ */
119
+ async _getTranslations() {
120
+ const messages = await getLocaleComponentStrings(this.el);
121
+ this._translations = messages[0];
122
+ }
123
+ static get is() { return "delete-dialog"; }
124
+ static get encapsulation() { return "shadow"; }
125
+ static get originalStyleUrls() {
126
+ return {
127
+ "$": ["delete-dialog.css"]
128
+ };
129
+ }
130
+ static get styleUrls() {
131
+ return {
132
+ "$": ["delete-dialog.css"]
133
+ };
134
+ }
135
+ static get properties() {
136
+ return {
137
+ "ids": {
138
+ "type": "unknown",
139
+ "mutable": false,
140
+ "complexType": {
141
+ "original": "any[]",
142
+ "resolved": "any[]",
143
+ "references": {}
144
+ },
145
+ "required": false,
146
+ "optional": false,
147
+ "docs": {
148
+ "tags": [],
149
+ "text": "number[]: The ids that would be deleted"
150
+ },
151
+ "defaultValue": "[]"
152
+ },
153
+ "layer": {
154
+ "type": "unknown",
155
+ "mutable": false,
156
+ "complexType": {
157
+ "original": "__esri.FeatureLayer",
158
+ "resolved": "FeatureLayer",
159
+ "references": {
160
+ "___esri": {
161
+ "location": "global",
162
+ "id": "global::___esri"
163
+ }
164
+ }
165
+ },
166
+ "required": false,
167
+ "optional": false,
168
+ "docs": {
169
+ "tags": [],
170
+ "text": "esri/views/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html"
171
+ }
172
+ },
173
+ "open": {
174
+ "type": "boolean",
175
+ "mutable": false,
176
+ "complexType": {
177
+ "original": "boolean",
178
+ "resolved": "boolean",
179
+ "references": {}
180
+ },
181
+ "required": false,
182
+ "optional": false,
183
+ "docs": {
184
+ "tags": [],
185
+ "text": "boolean: When true the delete dialog will be displayed"
186
+ },
187
+ "attribute": "open",
188
+ "reflect": false,
189
+ "defaultValue": "false"
190
+ }
191
+ };
192
+ }
193
+ static get states() {
194
+ return {
195
+ "_isDeleting": {},
196
+ "_translations": {}
197
+ };
198
+ }
199
+ static get events() {
200
+ return [{
201
+ "method": "editsComplete",
202
+ "name": "editsComplete",
203
+ "bubbles": true,
204
+ "cancelable": true,
205
+ "composed": true,
206
+ "docs": {
207
+ "tags": [],
208
+ "text": "Emitted on demand when features have been deleted"
209
+ },
210
+ "complexType": {
211
+ "original": "EditType",
212
+ "resolved": "\"add\" | \"delete\" | \"update\"",
213
+ "references": {
214
+ "EditType": {
215
+ "location": "import",
216
+ "path": "../../utils/interfaces",
217
+ "id": "src/utils/interfaces.ts::EditType"
218
+ }
219
+ }
220
+ }
221
+ }, {
222
+ "method": "deleteDialogClose",
223
+ "name": "deleteDialogClose",
224
+ "bubbles": true,
225
+ "cancelable": true,
226
+ "composed": true,
227
+ "docs": {
228
+ "tags": [],
229
+ "text": "Emitted on demand when features have been deleted"
230
+ },
231
+ "complexType": {
232
+ "original": "void",
233
+ "resolved": "void",
234
+ "references": {}
235
+ }
236
+ }];
237
+ }
238
+ static get elementRef() { return "el"; }
239
+ }
@@ -198,7 +198,7 @@ export class EditCard {
198
198
  !this.graphics[0].layer.editingEnabled : true;
199
199
  const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
200
200
  const loadingClass = this._editorLoading ? "" : "display-none";
201
- return (h(Host, { key: '9f4aaad65aed5e7b8d05e6171fdbfdb4f6534c12' }, h("div", { key: 'ded5d125959b11da1a48faf2f28baa9779e36e57', class: "position-absolute" }, editDisabled ? (h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, h("div", { key: '6eb7dd1c025f3385f68a08176558e07a0c4bf3cd', class: "position-absolute" }, h("div", { key: 'a56ac68bc0bda73a2153d89fc29d5bef3313ae7f', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: 'a1323d9db0e6de6df48573de7fbc954280b27b8f', class: loadingClass, label: "", scale: "s" })))));
201
+ return (h(Host, { key: 'ff6d1819cfd084e9f11a1c87d89c49d13035b289' }, h("div", { key: '797882acbcc26283719be4c08936e93b93931bcd', class: "position-absolute" }, editDisabled ? (h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, h("div", { key: '34ce92da0b7c452f0fbae98d9f557543da59f5b8', class: "position-absolute" }, h("div", { key: '81af3854249e193d0d508c022cb4075be63f052d', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: 'd7aa82424f87c47039a8a8f8c61240da7a5ca971', class: loadingClass, label: "", scale: "s" })))));
202
202
  }
203
203
  //--------------------------------------------------------------------------
204
204
  //
@@ -62,7 +62,7 @@ export class FeatureComments {
62
62
  //
63
63
  //--------------------------------------------------------------------------
64
64
  render() {
65
- return (h(Host, { key: '9d6d06f2466bbbfba74ead0dd8af4354834006c6' }, h("slot", { key: '25722c28a43a7a005a0c55b16c0df536a7a19a61' })));
65
+ return (h(Host, { key: 'b58aca4fb9f05091f7b4c9a622755afed968a539' }, h("slot", { key: '806ab314b95a05252b5d558722b3dcb68e9b5b44' })));
66
66
  }
67
67
  static get is() { return "feature-comments"; }
68
68
  static get encapsulation() { return "shadow"; }
@@ -180,12 +180,12 @@ export class FeatureDetails {
180
180
  render() {
181
181
  //When related features found show comments list of only those features else comments list will be empty
182
182
  const commentsListWhereClause = this._relatedFeaturesOIDs?.length > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
183
- return (h("calcite-panel", { key: '05a12e56500ab833e856b8f5ac0f8371de522170', "full-height": true }, h("info-card", { key: '53c2102681c8005322c1711b038087b1a70d9a53', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, onSelectionChanged: (e) => { this.featureSelectionChange.emit(e.detail); }, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
184
- h("div", { key: '1cf9a8eb026a2ed6c15ccafc3910fed388e63e5d', class: "buttons-container" }, this._commentsAvailable &&
185
- h("calcite-button", { key: 'c95920ae526cfeaa9a8824b985f593c95807c3ae', appearance: "transparent", iconEnd: "speech-bubble", kind: "neutral", onClick: () => { this.addComment.emit(); }, scale: 'm' }, this._relatedFeaturesOIDs.length), this._likeFieldAvailable &&
186
- h("calcite-button", { key: 'cf6cab791332884e63615058d6d0a1861534177b', 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 &&
187
- h("calcite-button", { key: '1fe322958b367df620c73834353251d05566d8c7', 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 &&
188
- h("feature-list", { key: '8eefe98bc8af36db6793879c38dbed85f45b4a36', class: "height-full", mapView: this.mapView, onFeatureSelect: (e) => { this.commentSelect.emit(e.detail); }, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showErrorWhenNoFeatures: false, showInitialLoading: false, showUserImageInList: this.showUserImageInCommentsList, textSize: "small", whereClause: commentsListWhereClause })));
183
+ return (h("calcite-panel", { key: 'e09b693348a5d446f6ea3c774af3c2fd14e66daf', "full-height": true }, h("info-card", { key: '4483a15e4e0bdd62c2c21bc4622d3bbddf3cd113', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, onSelectionChanged: (e) => { this.featureSelectionChange.emit(e.detail); }, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
184
+ h("div", { key: 'ac24bb5fd56a7561e78d90c3a1b10027cfab6b2b', class: "buttons-container" }, this._commentsAvailable &&
185
+ h("calcite-button", { key: '676c5da52465f295212668f8db9b353e219070f2', appearance: "transparent", iconEnd: "speech-bubble", kind: "neutral", onClick: () => { this.addComment.emit(); }, scale: 'm' }, this._relatedFeaturesOIDs.length), this._likeFieldAvailable &&
186
+ h("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 &&
187
+ h("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 &&
188
+ h("feature-list", { key: '9d72181a778e08b632d802689a66fa21924cd5b3', class: "height-full", mapView: this.mapView, onFeatureSelect: (e) => { this.commentSelect.emit(e.detail); }, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showErrorWhenNoFeatures: false, showInitialLoading: false, showUserImageInList: this.showUserImageInCommentsList, textSize: "small", whereClause: commentsListWhereClause })));
189
189
  }
190
190
  /**
191
191
  * Load esri javascript api modules
@@ -208,11 +208,13 @@ export class FeatureDetails {
208
208
  * @protected
209
209
  */
210
210
  async getCompleteGraphic(graphic) {
211
- const layer = graphic.layer;
212
- const query = layer.createQuery();
213
- query.objectIds = [graphic.getObjectId()];
214
- const completeGraphic = await layer.queryFeatures(query);
215
- this._selectedGraphic = completeGraphic.features[0];
211
+ if (graphic) {
212
+ const layer = graphic.layer;
213
+ const query = layer.createQuery();
214
+ query.objectIds = [graphic.getObjectId()];
215
+ const completeGraphic = await layer.queryFeatures(query);
216
+ this._selectedGraphic = completeGraphic.features[0];
217
+ }
216
218
  }
217
219
  /**
218
220
  * Process the comments functionality.
@@ -62,7 +62,7 @@ export class FeatureFormFlowItem {
62
62
  //
63
63
  //--------------------------------------------------------------------------
64
64
  render() {
65
- return (h(Host, { key: '69a6d88e4a58724a61b964ab9e4cc44df1879be4' }, h("slot", { key: '57bb8fc9d5fc942af7a47d4735b358510e406818' })));
65
+ return (h(Host, { key: 'ada36a5353ae5c21f81ab8ffea24fab3312acc85' }, h("slot", { key: '424cb194632c9ea0ade6cf848e01a414c05abc42' })));
66
66
  }
67
67
  static get is() { return "feature-form-flow-item"; }
68
68
  static get encapsulation() { return "shadow"; }
@@ -187,9 +187,9 @@ export class FeatureList {
187
187
  * Renders the component.
188
188
  */
189
189
  render() {
190
- return (h("calcite-panel", { key: '381f7da40e715848d4601810aacedbe3a7a46d6d', "full-height": true, "full-width": true }, this._isLoading && h("calcite-loader", { key: '62d128eee1b0a987fe24764b8cfbff148dcf9084', label: "", scale: "m" }), this.showErrorWhenNoFeatures && this._featureItems.length === 0 && !this._isLoading &&
191
- h("calcite-notice", { key: '975aef0b4c33676fc2be4aa85a51641d0b203cd4', class: "error-msg", icon: "feature-details", kind: "info", open: true }, h("div", { key: 'c002eb4d59d8bab086d91266ca4a0ca56a185db3', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), h("calcite-list", { key: '50f0c269f30e9619561ea61f462fb964f91a93a9', "selection-appearance": "border", "selection-mode": "none" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
192
- h("div", { key: '97f837035b89d3045efd2771c0ef77d12fbb333b', class: "width-full", slot: "footer" }, h("calcite-pagination", { key: 'd88adbe6499b358395bd7bf5917c3d0c1506d8b1', class: "pagination", "full-width": true, onCalcitePaginationChange: this.pageChanged.bind(this), "page-size": this.pageSize, ref: el => this._pagination = el, "start-item": "1", "total-items": this._featuresCount }))));
190
+ return (h("calcite-panel", { key: '59289a87561105e3edcbd52bac96b974b1387a16', "full-height": true, "full-width": true }, this._isLoading && h("calcite-loader", { key: '59629285e49227209761d2f16bdd62a90750538f', label: "", scale: "m" }), this.showErrorWhenNoFeatures && this._featureItems.length === 0 && !this._isLoading &&
191
+ h("calcite-notice", { key: 'bc6c2e6e0fdf959374caf79f2027784e2fdaca15', class: "error-msg", icon: "feature-details", kind: "info", open: true }, h("div", { key: '052207ce0b0e2d8030ac7a4a7985c718371a9667', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), h("calcite-list", { key: '3f17ea85f2265717aa13c9c71f19c259470c9fcc', "selection-appearance": "border", "selection-mode": "none" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
192
+ h("div", { key: 'ce3179bcdc7af254488dea909034c58db17ec565', class: "width-full", slot: "footer" }, h("calcite-pagination", { key: 'd6a4b8c7a940918388b3b9891a666c4a142edae7', class: "pagination", "full-width": true, onCalcitePaginationChange: this.pageChanged.bind(this), "page-size": this.pageSize, ref: el => this._pagination = el, "start-item": "1", "total-items": this._featuresCount }))));
193
193
  }
194
194
  //--------------------------------------------------------------------------
195
195
  //
@@ -424,7 +424,7 @@ export class FeatureList {
424
424
  const popupTitlePaddingClass = this.showUserImageInList || this.showFeatureSymbol ? 'feature-list-popup-title-padding-reduced' : 'feature-list-popup-title-padding';
425
425
  return (h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, this.showUserImageInList &&
426
426
  h("calcite-avatar", { class: 'profile-img', "full-name": userInfo?.fullName, scale: "m", slot: "content-start", thumbnail: userInfo?.userProfileUrl, userId: userInfo?.id, username: userInfo?.fullName ? userInfo.username : undefined }), this.showFeatureSymbol &&
427
- h("div", { class: 'feature-symbol', ref: (el) => el && el.appendChild(featureSymbol), slot: "content-start" }), h("div", { class: `${popupTitleClass} ${popupTitlePaddingClass}`, slot: "content-start" }, popupTitle), this._likeFieldAvailable &&
427
+ h("div", { class: 'feature-symbol', ref: (el) => el && el.replaceChildren(featureSymbol), slot: "content-start" }), h("div", { class: `${popupTitleClass} ${popupTitlePaddingClass}`, slot: "content-start" }, popupTitle), this._likeFieldAvailable &&
428
428
  h("div", { class: "like-container", id: oId.concat("like"), slot: "content-end" }, h("span", null, this._abbreviatedLikeCount), h("calcite-icon", { icon: "thumbs-up", scale: 's' }), h("calcite-tooltip", { overlayPositioning: "fixed", placement: "top", "reference-element": oId.concat("like") }, formattedLikeCount)), h("calcite-icon", { flipRtl: true, icon: "chevron-right", scale: "s", slot: "content-end" })));
429
429
  }
430
430
  /**
@@ -62,7 +62,7 @@ export class FeaturesFlowItem {
62
62
  //
63
63
  //--------------------------------------------------------------------------
64
64
  render() {
65
- return (h(Host, { key: '8154ad4de3a112bcdef4b1495c6fbeab1a13e292' }, h("slot", { key: '6c12197599bd5742f4ffacbae64170929e485d99' })));
65
+ return (h(Host, { key: 'b775a26ab493f17e0e93ba5713b407566d37683d' }, h("slot", { key: '05f063062f8cced80ae18d36e7ef08abe6b15839' })));
66
66
  }
67
67
  static get is() { return "features-flow-item"; }
68
68
  static get encapsulation() { return "shadow"; }
@@ -127,7 +127,7 @@ export class FloorFilter {
127
127
  * Renders the component.
128
128
  */
129
129
  render() {
130
- return (h(Host, { key: '51da7a656e7f56ecc8cc4093d3dab856f77b5c7a' }, h("div", { key: 'd2fda7047f09a673216484f5c202f039fca20108', ref: (el) => { this._floorFilterElement = el; } })));
130
+ return (h(Host, { key: '7890927db517fe8e1133fce3e0fe977a441f2abf' }, h("div", { key: '34ad695eb04dd20a0b9893817a33df5020de7da1', ref: (el) => { this._floorFilterElement = el; } })));
131
131
  }
132
132
  /**
133
133
  * StencilJS: Called once just after the component is first loaded.