@esri/solutions-components 0.10.34 → 0.10.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +6 -6
  2. package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
  3. package/dist/cjs/calcite-alert_5.cjs.entry.js +7 -5
  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 +20 -9
  10. package/dist/cjs/crowdsource-manager.cjs.entry.js +3 -2
  11. package/dist/cjs/crowdsource-reporter.cjs.entry.js +24 -21
  12. package/dist/cjs/feature-comments.cjs.entry.js +1 -1
  13. package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
  14. package/dist/cjs/feature-list.cjs.entry.js +4 -4
  15. package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
  16. package/dist/cjs/layout-manager.cjs.entry.js +1 -1
  17. package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
  18. package/dist/cjs/loader.cjs.js +1 -1
  19. package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
  20. package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
  21. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  22. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  23. package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
  24. package/dist/cjs/share-item.cjs.entry.js +1 -1
  25. package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
  26. package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
  27. package/dist/cjs/solution-item-accordion.cjs.entry.js +1 -1
  28. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  29. package/dist/cjs/solutions-components.cjs.js +1 -1
  30. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  31. package/dist/collection/assets/t9n/delete-dialog/resources.json +8 -0
  32. package/dist/collection/assets/t9n/delete-dialog/resources_ar.json +8 -0
  33. package/dist/collection/assets/t9n/delete-dialog/resources_bg.json +8 -0
  34. package/dist/collection/assets/t9n/delete-dialog/resources_bs.json +8 -0
  35. package/dist/collection/assets/t9n/delete-dialog/resources_ca.json +8 -0
  36. package/dist/collection/assets/t9n/delete-dialog/resources_cs.json +8 -0
  37. package/dist/collection/assets/t9n/delete-dialog/resources_da.json +8 -0
  38. package/dist/collection/assets/t9n/delete-dialog/resources_de.json +8 -0
  39. package/dist/collection/assets/t9n/delete-dialog/resources_el.json +8 -0
  40. package/dist/collection/assets/t9n/delete-dialog/resources_en.json +8 -0
  41. package/dist/collection/assets/t9n/delete-dialog/resources_es.json +8 -0
  42. package/dist/collection/assets/t9n/delete-dialog/resources_et.json +8 -0
  43. package/dist/collection/assets/t9n/delete-dialog/resources_fi.json +8 -0
  44. package/dist/collection/assets/t9n/delete-dialog/resources_fr.json +8 -0
  45. package/dist/collection/assets/t9n/delete-dialog/resources_he.json +8 -0
  46. package/dist/collection/assets/t9n/delete-dialog/resources_hr.json +8 -0
  47. package/dist/collection/assets/t9n/delete-dialog/resources_hu.json +8 -0
  48. package/dist/collection/assets/t9n/delete-dialog/resources_id.json +8 -0
  49. package/dist/collection/assets/t9n/delete-dialog/resources_it.json +8 -0
  50. package/dist/collection/assets/t9n/delete-dialog/resources_ja.json +8 -0
  51. package/dist/collection/assets/t9n/delete-dialog/resources_ko.json +8 -0
  52. package/dist/collection/assets/t9n/delete-dialog/resources_lt.json +8 -0
  53. package/dist/collection/assets/t9n/delete-dialog/resources_lv.json +8 -0
  54. package/dist/collection/assets/t9n/delete-dialog/resources_nb.json +8 -0
  55. package/dist/collection/assets/t9n/delete-dialog/resources_nl.json +8 -0
  56. package/dist/collection/assets/t9n/delete-dialog/resources_pl.json +8 -0
  57. package/dist/collection/assets/t9n/delete-dialog/resources_pt-BR.json +8 -0
  58. package/dist/collection/assets/t9n/delete-dialog/resources_pt-PT.json +8 -0
  59. package/dist/collection/assets/t9n/delete-dialog/resources_ro.json +8 -0
  60. package/dist/collection/assets/t9n/delete-dialog/resources_ru.json +8 -0
  61. package/dist/collection/assets/t9n/delete-dialog/resources_sk.json +8 -0
  62. package/dist/collection/assets/t9n/delete-dialog/resources_sl.json +8 -0
  63. package/dist/collection/assets/t9n/delete-dialog/resources_sr.json +8 -0
  64. package/dist/collection/assets/t9n/delete-dialog/resources_sv.json +8 -0
  65. package/dist/collection/assets/t9n/delete-dialog/resources_th.json +8 -0
  66. package/dist/collection/assets/t9n/delete-dialog/resources_tr.json +8 -0
  67. package/dist/collection/assets/t9n/delete-dialog/resources_uk.json +8 -0
  68. package/dist/collection/assets/t9n/delete-dialog/resources_vi.json +8 -0
  69. package/dist/collection/assets/t9n/delete-dialog/resources_zh-CN.json +8 -0
  70. package/dist/collection/assets/t9n/delete-dialog/resources_zh-HK.json +8 -0
  71. package/dist/collection/assets/t9n/delete-dialog/resources_zh-TW.json +8 -0
  72. package/dist/collection/collection-manifest.json +1 -0
  73. package/dist/collection/components/create-feature/create-feature.css +2 -1
  74. package/dist/collection/components/create-feature/create-feature.js +3 -1
  75. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +4 -0
  76. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +2 -1
  77. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +24 -21
  78. package/dist/collection/components/delete-button/delete-button.js +20 -27
  79. package/dist/collection/components/delete-dialog/delete-dialog.css +23 -0
  80. package/dist/collection/components/delete-dialog/delete-dialog.js +239 -0
  81. package/dist/collection/components/edit-card/edit-card.js +1 -1
  82. package/dist/collection/components/feature-comments/feature-comments.js +1 -1
  83. package/dist/collection/components/feature-details/feature-details.js +13 -11
  84. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
  85. package/dist/collection/components/feature-list/feature-list.js +4 -4
  86. package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
  87. package/dist/collection/components/floor-filter/floor-filter.js +1 -1
  88. package/dist/collection/components/info-card/info-card.js +2 -2
  89. package/dist/collection/components/json-editor/json-editor.js +1 -1
  90. package/dist/collection/components/layer-list/layer-list.js +5 -5
  91. package/dist/collection/components/layer-table/layer-table.css +6 -0
  92. package/dist/collection/components/layer-table/layer-table.js +19 -7
  93. package/dist/collection/components/layout-manager/layout-manager.js +1 -1
  94. package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
  95. package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
  96. package/dist/collection/components/map-card/map-card.js +1 -1
  97. package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
  98. package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
  99. package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
  100. package/dist/collection/components/map-legend/map-legend.js +1 -1
  101. package/dist/collection/components/map-picker/map-picker.js +1 -1
  102. package/dist/collection/components/map-search/map-search.js +1 -1
  103. package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
  104. package/dist/collection/components/map-tools/map-tools.js +1 -1
  105. package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
  106. package/dist/collection/components/pdf-download/pdf-download.js +1 -1
  107. package/dist/collection/components/public-notification/public-notification.js +1 -1
  108. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
  109. package/dist/collection/components/refine-selection/refine-selection.js +1 -1
  110. package/dist/collection/components/share-item/share-item.js +1 -1
  111. package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
  112. package/dist/collection/components/solution-contents/solution-contents.js +1 -1
  113. package/dist/collection/components/solution-item/solution-item.js +1 -1
  114. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +1 -1
  115. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
  116. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  117. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
  118. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
  119. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  120. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
  121. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  122. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  123. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  124. package/dist/components/card-manager2.js +40 -34
  125. package/dist/components/create-feature2.js +4 -2
  126. package/dist/components/crowdsource-manager.js +101 -94
  127. package/dist/components/crowdsource-reporter.js +110 -101
  128. package/dist/components/delete-button2.js +24 -41
  129. package/dist/components/delete-dialog.d.ts +11 -0
  130. package/dist/components/delete-dialog.js +11 -0
  131. package/dist/components/delete-dialog2.js +165 -0
  132. package/dist/components/edit-card2.js +1 -1
  133. package/dist/components/feature-comments.js +1 -1
  134. package/dist/components/feature-details2.js +67 -59
  135. package/dist/components/feature-form-flow-item.js +1 -1
  136. package/dist/components/feature-list2.js +4 -4
  137. package/dist/components/features-flow-item.js +1 -1
  138. package/dist/components/floor-filter2.js +1 -1
  139. package/dist/components/info-card2.js +38 -32
  140. package/dist/components/json-editor2.js +1 -1
  141. package/dist/components/layer-list2.js +5 -5
  142. package/dist/components/layer-table2.js +100 -82
  143. package/dist/components/layout-manager.js +1 -1
  144. package/dist/components/list-flow-item.js +1 -1
  145. package/dist/components/location-flow-item.js +1 -1
  146. package/dist/components/map-card2.js +1 -1
  147. package/dist/components/map-draw-tools2.js +1 -1
  148. package/dist/components/map-fullscreen2.js +1 -1
  149. package/dist/components/map-layer-picker2.js +1 -1
  150. package/dist/components/map-legend2.js +1 -1
  151. package/dist/components/map-picker2.js +1 -1
  152. package/dist/components/map-search2.js +1 -1
  153. package/dist/components/map-select-tools2.js +1 -1
  154. package/dist/components/map-tools2.js +1 -1
  155. package/dist/components/pci-calculator.js +1 -1
  156. package/dist/components/pdf-download2.js +1 -1
  157. package/dist/components/public-notification.js +1 -1
  158. package/dist/components/refine-results-flow-item.js +1 -1
  159. package/dist/components/refine-selection2.js +1 -1
  160. package/dist/components/share-item.js +1 -1
  161. package/dist/components/solution-configuration.js +3 -3
  162. package/dist/components/solution-contents2.js +1 -1
  163. package/dist/components/solution-item-accordion.js +1 -1
  164. package/dist/components/solution-item-details2.js +1 -1
  165. package/dist/components/solution-item-icon2.js +1 -1
  166. package/dist/components/solution-item-sharing2.js +1 -1
  167. package/dist/components/solution-item2.js +1 -1
  168. package/dist/components/solution-organization-variables2.js +1 -1
  169. package/dist/components/solution-resource-item2.js +1 -1
  170. package/dist/components/solution-spatial-ref2.js +1 -1
  171. package/dist/components/solution-template-data2.js +1 -1
  172. package/dist/components/solution-variables2.js +1 -1
  173. package/dist/components/spatial-ref.js +1 -1
  174. package/dist/esm/basemap-gallery_7.entry.js +6 -6
  175. package/dist/esm/buffer-tools_3.entry.js +1 -1
  176. package/dist/esm/calcite-alert_5.entry.js +7 -5
  177. package/dist/esm/calcite-combobox_3.entry.js +1 -1
  178. package/dist/esm/calcite-flow_4.entry.js +18 -16
  179. package/dist/esm/{calcite-modal_3.entry.js → calcite-modal.entry.js} +30 -369
  180. package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
  181. package/dist/esm/calcite-shell_3.entry.js +434 -0
  182. package/dist/esm/card-manager_3.entry.js +20 -9
  183. package/dist/esm/crowdsource-manager.entry.js +3 -2
  184. package/dist/esm/crowdsource-reporter.entry.js +24 -21
  185. package/dist/esm/feature-comments.entry.js +1 -1
  186. package/dist/esm/feature-form-flow-item.entry.js +1 -1
  187. package/dist/esm/feature-list.entry.js +4 -4
  188. package/dist/esm/features-flow-item.entry.js +1 -1
  189. package/dist/esm/layout-manager.entry.js +1 -1
  190. package/dist/esm/list-flow-item.entry.js +1 -1
  191. package/dist/esm/loader.js +1 -1
  192. package/dist/esm/location-flow-item.entry.js +1 -1
  193. package/dist/esm/map-select-tools_3.entry.js +3 -3
  194. package/dist/esm/pci-calculator.entry.js +1 -1
  195. package/dist/esm/public-notification.entry.js +1 -1
  196. package/dist/esm/refine-results-flow-item.entry.js +1 -1
  197. package/dist/esm/share-item.entry.js +1 -1
  198. package/dist/esm/solution-configuration.entry.js +3 -3
  199. package/dist/esm/solution-contents_3.entry.js +3 -3
  200. package/dist/esm/solution-item-accordion.entry.js +1 -1
  201. package/dist/esm/solution-item-icon.entry.js +1 -1
  202. package/dist/esm/solutions-components.js +1 -1
  203. package/dist/esm/spatial-ref.entry.js +1 -1
  204. package/dist/solutions-components/assets/t9n/delete-dialog/resources.json +8 -0
  205. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ar.json +8 -0
  206. package/dist/solutions-components/assets/t9n/delete-dialog/resources_bg.json +8 -0
  207. package/dist/solutions-components/assets/t9n/delete-dialog/resources_bs.json +8 -0
  208. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ca.json +8 -0
  209. package/dist/solutions-components/assets/t9n/delete-dialog/resources_cs.json +8 -0
  210. package/dist/solutions-components/assets/t9n/delete-dialog/resources_da.json +8 -0
  211. package/dist/solutions-components/assets/t9n/delete-dialog/resources_de.json +8 -0
  212. package/dist/solutions-components/assets/t9n/delete-dialog/resources_el.json +8 -0
  213. package/dist/solutions-components/assets/t9n/delete-dialog/resources_en.json +8 -0
  214. package/dist/solutions-components/assets/t9n/delete-dialog/resources_es.json +8 -0
  215. package/dist/solutions-components/assets/t9n/delete-dialog/resources_et.json +8 -0
  216. package/dist/solutions-components/assets/t9n/delete-dialog/resources_fi.json +8 -0
  217. package/dist/solutions-components/assets/t9n/delete-dialog/resources_fr.json +8 -0
  218. package/dist/solutions-components/assets/t9n/delete-dialog/resources_he.json +8 -0
  219. package/dist/solutions-components/assets/t9n/delete-dialog/resources_hr.json +8 -0
  220. package/dist/solutions-components/assets/t9n/delete-dialog/resources_hu.json +8 -0
  221. package/dist/solutions-components/assets/t9n/delete-dialog/resources_id.json +8 -0
  222. package/dist/solutions-components/assets/t9n/delete-dialog/resources_it.json +8 -0
  223. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ja.json +8 -0
  224. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ko.json +8 -0
  225. package/dist/solutions-components/assets/t9n/delete-dialog/resources_lt.json +8 -0
  226. package/dist/solutions-components/assets/t9n/delete-dialog/resources_lv.json +8 -0
  227. package/dist/solutions-components/assets/t9n/delete-dialog/resources_nb.json +8 -0
  228. package/dist/solutions-components/assets/t9n/delete-dialog/resources_nl.json +8 -0
  229. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pl.json +8 -0
  230. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pt-BR.json +8 -0
  231. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pt-PT.json +8 -0
  232. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ro.json +8 -0
  233. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ru.json +8 -0
  234. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sk.json +8 -0
  235. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sl.json +8 -0
  236. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sr.json +8 -0
  237. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sv.json +8 -0
  238. package/dist/solutions-components/assets/t9n/delete-dialog/resources_th.json +8 -0
  239. package/dist/solutions-components/assets/t9n/delete-dialog/resources_tr.json +8 -0
  240. package/dist/solutions-components/assets/t9n/delete-dialog/resources_uk.json +8 -0
  241. package/dist/solutions-components/assets/t9n/delete-dialog/resources_vi.json +8 -0
  242. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-CN.json +8 -0
  243. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-HK.json +8 -0
  244. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-TW.json +8 -0
  245. package/dist/solutions-components/{p-6c3261d7.entry.js → p-06364211.entry.js} +1 -1
  246. package/dist/solutions-components/{p-d119872d.entry.js → p-18089a0b.entry.js} +1 -1
  247. package/dist/solutions-components/p-1f07e21a.entry.js +6 -0
  248. package/dist/solutions-components/p-2a6ecaa9.entry.js +11 -0
  249. package/dist/solutions-components/p-46416e11.entry.js +6 -0
  250. package/dist/solutions-components/{p-a8525233.entry.js → p-588adf13.entry.js} +1 -1
  251. package/dist/solutions-components/{p-5fc0e134.entry.js → p-59ccd27c.entry.js} +1 -1
  252. package/dist/solutions-components/p-5eb9a413.entry.js +6 -0
  253. package/dist/solutions-components/{p-42f75c8f.entry.js → p-6502d0f8.entry.js} +1 -1
  254. package/dist/solutions-components/p-70c0050c.entry.js +6 -0
  255. package/dist/solutions-components/p-74bcef23.entry.js +11 -0
  256. package/dist/solutions-components/{p-4cb12506.entry.js → p-76154700.entry.js} +1 -1
  257. package/dist/solutions-components/p-82ddf716.entry.js +6 -0
  258. package/dist/solutions-components/{p-d08ece15.entry.js → p-841816a1.entry.js} +1 -1
  259. package/dist/solutions-components/{p-4f5913f3.entry.js → p-89046451.entry.js} +1 -1
  260. package/dist/solutions-components/p-938bc915.entry.js +6 -0
  261. package/dist/solutions-components/{p-fa7672c7.entry.js → p-9d56f4b5.entry.js} +1 -1
  262. package/dist/solutions-components/p-9da8a590.entry.js +6 -0
  263. package/dist/solutions-components/{p-5fdb8f83.entry.js → p-a5d79c86.entry.js} +1 -1
  264. package/dist/solutions-components/{p-dd0bd439.entry.js → p-b4c49411.entry.js} +2 -2
  265. package/dist/solutions-components/p-b86b2664.entry.js +6 -0
  266. package/dist/solutions-components/{p-ddc1218d.entry.js → p-be4c7ffd.entry.js} +1 -1
  267. package/dist/solutions-components/{p-ffa9a117.entry.js → p-cb3199f9.entry.js} +1 -1
  268. package/dist/solutions-components/{p-a07322cc.entry.js → p-df7de4b7.entry.js} +1 -1
  269. package/dist/solutions-components/{p-1f072e2c.entry.js → p-eadff42b.entry.js} +1 -1
  270. package/dist/solutions-components/{p-8a411917.entry.js → p-ecf642c2.entry.js} +1 -1
  271. package/dist/solutions-components/{p-06db1bfd.entry.js → p-efb4cb43.entry.js} +1 -1
  272. package/dist/solutions-components/{p-e4a42efa.entry.js → p-fa1c368c.entry.js} +1 -1
  273. package/dist/solutions-components/solutions-components.esm.js +1 -1
  274. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +6 -1
  275. package/dist/types/components/delete-button/delete-button.d.ts +4 -12
  276. package/dist/types/components/delete-dialog/delete-dialog.d.ts +75 -0
  277. package/dist/types/components/layer-table/layer-table.d.ts +12 -0
  278. package/dist/types/components.d.ts +69 -0
  279. package/dist/types/preact.d.ts +5 -0
  280. package/package.json +1 -1
  281. package/dist/solutions-components/p-51e2500f.entry.js +0 -6
  282. package/dist/solutions-components/p-52280e10.entry.js +0 -17
  283. package/dist/solutions-components/p-67ca4a64.entry.js +0 -6
  284. package/dist/solutions-components/p-7e6a8c06.entry.js +0 -6
  285. package/dist/solutions-components/p-8d2d66d0.entry.js +0 -6
  286. package/dist/solutions-components/p-8e6081e0.entry.js +0 -6
  287. package/dist/solutions-components/p-b9b77b87.entry.js +0 -6
  288. package/dist/solutions-components/p-cf878a34.entry.js +0 -6
  289. package/dist/solutions-components/p-edd88d2d.entry.js +0 -6
@@ -8,46 +8,47 @@ import { g as getLocaleComponentStrings } from './locale.js';
8
8
  import { l as loadModules } from './loadModules.js';
9
9
  import { g as getLayerOrTable, a as getAllLayers, f as getAllTables, c as getFeatureLayerView, h as highlightFeatures, d as getMapLayerHash } from './mapViewUtils.js';
10
10
  import { q as queryFeaturesByID } from './queryUtils.js';
11
- import { d as defineCustomElement$M } from './action.js';
12
- import { d as defineCustomElement$L } from './action-menu.js';
13
- import { d as defineCustomElement$K } from './alert.js';
14
- import { d as defineCustomElement$J } from './avatar.js';
15
- import { d as defineCustomElement$I } from './block.js';
16
- import { d as defineCustomElement$H } from './button.js';
17
- import { d as defineCustomElement$G } from './checkbox.js';
18
- import { d as defineCustomElement$F } from './chip.js';
19
- import { d as defineCustomElement$E } from './combobox.js';
20
- import { d as defineCustomElement$D } from './combobox-item.js';
21
- import { d as defineCustomElement$C } from './date-picker.js';
22
- import { d as defineCustomElement$B } from './date-picker-day.js';
23
- import { d as defineCustomElement$A } from './date-picker-month.js';
24
- import { d as defineCustomElement$z } from './date-picker-month-header.js';
25
- import { d as defineCustomElement$y } from './filter2.js';
26
- import { d as defineCustomElement$x } from './flow.js';
27
- import { d as defineCustomElement$w } from './flow-item.js';
28
- import { d as defineCustomElement$v } from './graph.js';
29
- import { d as defineCustomElement$u } from './handle.js';
30
- import { d as defineCustomElement$t } from './icon.js';
31
- import { d as defineCustomElement$s } from './input.js';
32
- import { d as defineCustomElement$r } from './input-date-picker.js';
33
- import { d as defineCustomElement$q } from './input-text.js';
34
- import { d as defineCustomElement$p } from './list.js';
35
- import { d as defineCustomElement$o } from './list-item.js';
36
- import { d as defineCustomElement$n } from './loader.js';
37
- import { d as defineCustomElement$m } from './modal.js';
38
- import { d as defineCustomElement$l } from './notice.js';
39
- import { d as defineCustomElement$k } from './pagination.js';
40
- import { d as defineCustomElement$j } from './panel.js';
41
- import { d as defineCustomElement$i } from './popover.js';
42
- import { d as defineCustomElement$h } from './progress.js';
43
- import { d as defineCustomElement$g } from './scrim.js';
44
- import { d as defineCustomElement$f } from './shell.js';
45
- import { d as defineCustomElement$e } from './slider.js';
46
- import { d as defineCustomElement$d } from './stack.js';
47
- import { d as defineCustomElement$c } from './tooltip.js';
48
- import { d as defineCustomElement$b } from './create-feature2.js';
49
- import { d as defineCustomElement$a } from './create-related-feature2.js';
50
- import { d as defineCustomElement$9 } from './delete-button2.js';
11
+ import { d as defineCustomElement$N } from './action.js';
12
+ import { d as defineCustomElement$M } from './action-menu.js';
13
+ import { d as defineCustomElement$L } from './alert.js';
14
+ import { d as defineCustomElement$K } from './avatar.js';
15
+ import { d as defineCustomElement$J } from './block.js';
16
+ import { d as defineCustomElement$I } from './button.js';
17
+ import { d as defineCustomElement$H } from './checkbox.js';
18
+ import { d as defineCustomElement$G } from './chip.js';
19
+ import { d as defineCustomElement$F } from './combobox.js';
20
+ import { d as defineCustomElement$E } from './combobox-item.js';
21
+ import { d as defineCustomElement$D } from './date-picker.js';
22
+ import { d as defineCustomElement$C } from './date-picker-day.js';
23
+ import { d as defineCustomElement$B } from './date-picker-month.js';
24
+ import { d as defineCustomElement$A } from './date-picker-month-header.js';
25
+ import { d as defineCustomElement$z } from './filter2.js';
26
+ import { d as defineCustomElement$y } from './flow.js';
27
+ import { d as defineCustomElement$x } from './flow-item.js';
28
+ import { d as defineCustomElement$w } from './graph.js';
29
+ import { d as defineCustomElement$v } from './handle.js';
30
+ import { d as defineCustomElement$u } from './icon.js';
31
+ import { d as defineCustomElement$t } from './input.js';
32
+ import { d as defineCustomElement$s } from './input-date-picker.js';
33
+ import { d as defineCustomElement$r } from './input-text.js';
34
+ import { d as defineCustomElement$q } from './list.js';
35
+ import { d as defineCustomElement$p } from './list-item.js';
36
+ import { d as defineCustomElement$o } from './loader.js';
37
+ import { d as defineCustomElement$n } from './modal.js';
38
+ import { d as defineCustomElement$m } from './notice.js';
39
+ import { d as defineCustomElement$l } from './pagination.js';
40
+ import { d as defineCustomElement$k } from './panel.js';
41
+ import { d as defineCustomElement$j } from './popover.js';
42
+ import { d as defineCustomElement$i } from './progress.js';
43
+ import { d as defineCustomElement$h } from './scrim.js';
44
+ import { d as defineCustomElement$g } from './shell.js';
45
+ import { d as defineCustomElement$f } from './slider.js';
46
+ import { d as defineCustomElement$e } from './stack.js';
47
+ import { d as defineCustomElement$d } from './tooltip.js';
48
+ import { d as defineCustomElement$c } from './create-feature2.js';
49
+ import { d as defineCustomElement$b } from './create-related-feature2.js';
50
+ import { d as defineCustomElement$a } from './delete-button2.js';
51
+ import { d as defineCustomElement$9 } from './delete-dialog2.js';
51
52
  import { d as defineCustomElement$8 } from './edit-card2.js';
52
53
  import { d as defineCustomElement$7 } from './feature-details2.js';
53
54
  import { d as defineCustomElement$6 } from './feature-list2.js';
@@ -290,7 +291,8 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
290
291
  }
291
292
  }
292
293
  }
293
- if (this._layerList) {
294
+ // refresh layer list when user is on layer list panel
295
+ if (this._flowItems[this._flowItems.length - 1] === "layer-list" && this._layerList) {
294
296
  await this._layerList.refresh();
295
297
  }
296
298
  if (this._featureList) {
@@ -307,7 +309,8 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
307
309
  if (this._editableLayerIds) {
308
310
  await this._updateFeatures();
309
311
  setTimeout(() => {
310
- if (this._layerList) {
312
+ // refresh layer list when user is on layer list panel
313
+ if (this._flowItems[this._flowItems.length - 1] === "layer-list" && this._layerList) {
311
314
  void this._layerList.refresh();
312
315
  }
313
316
  if (this._featureList) {
@@ -357,7 +360,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
357
360
  */
358
361
  render() {
359
362
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
360
- 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()))));
363
+ 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()))));
361
364
  }
362
365
  //--------------------------------------------------------------------------
363
366
  //
@@ -479,6 +482,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
479
482
  if (canRestoreFilter) {
480
483
  void this._filterList.restoreFilters(this._filterUrlParams[0], this._filterInitState);
481
484
  }
485
+ this._filterInitState = null;
482
486
  }, 200);
483
487
  }
484
488
  /**
@@ -490,12 +494,6 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
490
494
  this._filterActive = false;
491
495
  this._filterUrlParams = null;
492
496
  this._filterInitState = null;
493
- if (this._featureList) {
494
- await this._featureList.refresh();
495
- }
496
- if (this._layerList) {
497
- await this._layerList.refresh();
498
- }
499
497
  }
500
498
  /**
501
499
  * Check if the layers definitionExpression has been modified and update the feature list depending on the applied filters
@@ -507,11 +505,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
507
505
  //set the filter active state based on the length of applied filters
508
506
  this._filterActive = this._filterList.urlParams.getAll('filter').length > 0;
509
507
  this._filterUrlParams = this._filterList.urlParams.getAll('filter');
510
- this._filterInitState = await this._filterList.getFilterInitState();
511
508
  await this._featureList.refresh();
512
- if (this._layerList) {
513
- await this._layerList.refresh();
514
- }
515
509
  this._showLoadingIndicator = false;
516
510
  }
517
511
  /**
@@ -617,15 +611,15 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
617
611
  * On submit report navigate to the layer list home page and refresh the layer list
618
612
  * @protected
619
613
  */
620
- onReportSubmitted() {
614
+ async onReportSubmitted() {
615
+ void this.updateNonVisibleLayersOnMap(false);
616
+ await this.navigateToHomePage();
617
+ this._reportSubmitted = true;
618
+ this._updatedProgressBarStatus = 0.25;
621
619
  //on report submit form will be closed, so update the form state
622
620
  if (this._showFullPanel) {
623
621
  this.updatePanelState(this._sidePanelCollapsed, false);
624
622
  }
625
- void this.updateNonVisibleLayersOnMap(false);
626
- this._reportSubmitted = true;
627
- this._updatedProgressBarStatus = 0.25;
628
- void this.navigateToHomePage();
629
623
  }
630
624
  /**
631
625
  * On adding the is failed, show the error message
@@ -655,10 +649,11 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
655
649
  * @protected
656
650
  */
657
651
  async navigateToHomePage() {
652
+ // set the selected features and then refresh the layer list to maintain the layer's visibility state
653
+ await this.setSelectedFeatures([]);
658
654
  if (this._layerList) {
659
- void this._layerList.refresh();
655
+ await this._layerList.refresh();
660
656
  }
661
- await this.setSelectedFeatures([]);
662
657
  if (this._editableLayerIds.length === 1) {
663
658
  await this._featureList.refresh();
664
659
  this._flowItems = ["feature-list"];
@@ -767,6 +762,15 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
767
762
  prevLayer.definitionExpression = this._filterInitState.initDefExpressions[this._prevSelectedLayerId];
768
763
  void this._handleFilterListReset();
769
764
  }
765
+ /**
766
+ * On back from filter panel get the filter's init state
767
+ * @protected
768
+ */
769
+ async backFromFilterPanel() {
770
+ this._filterInitState = await this._filterList.getFilterInitState();
771
+ await this._featureList.refresh();
772
+ this.backFromSelectedPanel();
773
+ }
770
774
  /**
771
775
  * On back from selected panel navigate to the previous panel
772
776
  * @protected
@@ -891,7 +895,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
891
895
  */
892
896
  getFilterPanel() {
893
897
  const currentLayersExpressions = this.layerExpressions ? this.layerExpressions.filter((exp) => exp.id === this._selectedLayerId) : [];
894
- 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 }))));
898
+ 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 }))));
895
899
  }
896
900
  /**
897
901
  * Returns the calcite-flow item for feature details
@@ -1334,7 +1338,7 @@ function defineCustomElement$1() {
1334
1338
  if (typeof customElements === "undefined") {
1335
1339
  return;
1336
1340
  }
1337
- const components = ["crowdsource-reporter", "calcite-action", "calcite-action-menu", "calcite-alert", "calcite-avatar", "calcite-block", "calcite-button", "calcite-checkbox", "calcite-chip", "calcite-combobox", "calcite-combobox-item", "calcite-date-picker", "calcite-date-picker-day", "calcite-date-picker-month", "calcite-date-picker-month-header", "calcite-filter", "calcite-flow", "calcite-flow-item", "calcite-graph", "calcite-handle", "calcite-icon", "calcite-input", "calcite-input-date-picker", "calcite-input-text", "calcite-list", "calcite-list-item", "calcite-loader", "calcite-modal", "calcite-notice", "calcite-pagination", "calcite-panel", "calcite-popover", "calcite-progress", "calcite-scrim", "calcite-shell", "calcite-slider", "calcite-stack", "calcite-tooltip", "create-feature", "create-related-feature", "delete-button", "edit-card", "feature-details", "feature-list", "info-card", "instant-apps-filter-list", "instant-apps-social-share", "layer-list"];
1341
+ const components = ["crowdsource-reporter", "calcite-action", "calcite-action-menu", "calcite-alert", "calcite-avatar", "calcite-block", "calcite-button", "calcite-checkbox", "calcite-chip", "calcite-combobox", "calcite-combobox-item", "calcite-date-picker", "calcite-date-picker-day", "calcite-date-picker-month", "calcite-date-picker-month-header", "calcite-filter", "calcite-flow", "calcite-flow-item", "calcite-graph", "calcite-handle", "calcite-icon", "calcite-input", "calcite-input-date-picker", "calcite-input-text", "calcite-list", "calcite-list-item", "calcite-loader", "calcite-modal", "calcite-notice", "calcite-pagination", "calcite-panel", "calcite-popover", "calcite-progress", "calcite-scrim", "calcite-shell", "calcite-slider", "calcite-stack", "calcite-tooltip", "create-feature", "create-related-feature", "delete-button", "delete-dialog", "edit-card", "feature-details", "feature-list", "info-card", "instant-apps-filter-list", "instant-apps-social-share", "layer-list"];
1338
1342
  components.forEach(tagName => { switch (tagName) {
1339
1343
  case "crowdsource-reporter":
1340
1344
  if (!customElements.get(tagName)) {
@@ -1343,200 +1347,205 @@ function defineCustomElement$1() {
1343
1347
  break;
1344
1348
  case "calcite-action":
1345
1349
  if (!customElements.get(tagName)) {
1346
- defineCustomElement$M();
1350
+ defineCustomElement$N();
1347
1351
  }
1348
1352
  break;
1349
1353
  case "calcite-action-menu":
1350
1354
  if (!customElements.get(tagName)) {
1351
- defineCustomElement$L();
1355
+ defineCustomElement$M();
1352
1356
  }
1353
1357
  break;
1354
1358
  case "calcite-alert":
1355
1359
  if (!customElements.get(tagName)) {
1356
- defineCustomElement$K();
1360
+ defineCustomElement$L();
1357
1361
  }
1358
1362
  break;
1359
1363
  case "calcite-avatar":
1360
1364
  if (!customElements.get(tagName)) {
1361
- defineCustomElement$J();
1365
+ defineCustomElement$K();
1362
1366
  }
1363
1367
  break;
1364
1368
  case "calcite-block":
1365
1369
  if (!customElements.get(tagName)) {
1366
- defineCustomElement$I();
1370
+ defineCustomElement$J();
1367
1371
  }
1368
1372
  break;
1369
1373
  case "calcite-button":
1370
1374
  if (!customElements.get(tagName)) {
1371
- defineCustomElement$H();
1375
+ defineCustomElement$I();
1372
1376
  }
1373
1377
  break;
1374
1378
  case "calcite-checkbox":
1375
1379
  if (!customElements.get(tagName)) {
1376
- defineCustomElement$G();
1380
+ defineCustomElement$H();
1377
1381
  }
1378
1382
  break;
1379
1383
  case "calcite-chip":
1380
1384
  if (!customElements.get(tagName)) {
1381
- defineCustomElement$F();
1385
+ defineCustomElement$G();
1382
1386
  }
1383
1387
  break;
1384
1388
  case "calcite-combobox":
1385
1389
  if (!customElements.get(tagName)) {
1386
- defineCustomElement$E();
1390
+ defineCustomElement$F();
1387
1391
  }
1388
1392
  break;
1389
1393
  case "calcite-combobox-item":
1390
1394
  if (!customElements.get(tagName)) {
1391
- defineCustomElement$D();
1395
+ defineCustomElement$E();
1392
1396
  }
1393
1397
  break;
1394
1398
  case "calcite-date-picker":
1395
1399
  if (!customElements.get(tagName)) {
1396
- defineCustomElement$C();
1400
+ defineCustomElement$D();
1397
1401
  }
1398
1402
  break;
1399
1403
  case "calcite-date-picker-day":
1400
1404
  if (!customElements.get(tagName)) {
1401
- defineCustomElement$B();
1405
+ defineCustomElement$C();
1402
1406
  }
1403
1407
  break;
1404
1408
  case "calcite-date-picker-month":
1405
1409
  if (!customElements.get(tagName)) {
1406
- defineCustomElement$A();
1410
+ defineCustomElement$B();
1407
1411
  }
1408
1412
  break;
1409
1413
  case "calcite-date-picker-month-header":
1410
1414
  if (!customElements.get(tagName)) {
1411
- defineCustomElement$z();
1415
+ defineCustomElement$A();
1412
1416
  }
1413
1417
  break;
1414
1418
  case "calcite-filter":
1415
1419
  if (!customElements.get(tagName)) {
1416
- defineCustomElement$y();
1420
+ defineCustomElement$z();
1417
1421
  }
1418
1422
  break;
1419
1423
  case "calcite-flow":
1420
1424
  if (!customElements.get(tagName)) {
1421
- defineCustomElement$x();
1425
+ defineCustomElement$y();
1422
1426
  }
1423
1427
  break;
1424
1428
  case "calcite-flow-item":
1425
1429
  if (!customElements.get(tagName)) {
1426
- defineCustomElement$w();
1430
+ defineCustomElement$x();
1427
1431
  }
1428
1432
  break;
1429
1433
  case "calcite-graph":
1430
1434
  if (!customElements.get(tagName)) {
1431
- defineCustomElement$v();
1435
+ defineCustomElement$w();
1432
1436
  }
1433
1437
  break;
1434
1438
  case "calcite-handle":
1435
1439
  if (!customElements.get(tagName)) {
1436
- defineCustomElement$u();
1440
+ defineCustomElement$v();
1437
1441
  }
1438
1442
  break;
1439
1443
  case "calcite-icon":
1440
1444
  if (!customElements.get(tagName)) {
1441
- defineCustomElement$t();
1445
+ defineCustomElement$u();
1442
1446
  }
1443
1447
  break;
1444
1448
  case "calcite-input":
1445
1449
  if (!customElements.get(tagName)) {
1446
- defineCustomElement$s();
1450
+ defineCustomElement$t();
1447
1451
  }
1448
1452
  break;
1449
1453
  case "calcite-input-date-picker":
1450
1454
  if (!customElements.get(tagName)) {
1451
- defineCustomElement$r();
1455
+ defineCustomElement$s();
1452
1456
  }
1453
1457
  break;
1454
1458
  case "calcite-input-text":
1455
1459
  if (!customElements.get(tagName)) {
1456
- defineCustomElement$q();
1460
+ defineCustomElement$r();
1457
1461
  }
1458
1462
  break;
1459
1463
  case "calcite-list":
1460
1464
  if (!customElements.get(tagName)) {
1461
- defineCustomElement$p();
1465
+ defineCustomElement$q();
1462
1466
  }
1463
1467
  break;
1464
1468
  case "calcite-list-item":
1465
1469
  if (!customElements.get(tagName)) {
1466
- defineCustomElement$o();
1470
+ defineCustomElement$p();
1467
1471
  }
1468
1472
  break;
1469
1473
  case "calcite-loader":
1470
1474
  if (!customElements.get(tagName)) {
1471
- defineCustomElement$n();
1475
+ defineCustomElement$o();
1472
1476
  }
1473
1477
  break;
1474
1478
  case "calcite-modal":
1475
1479
  if (!customElements.get(tagName)) {
1476
- defineCustomElement$m();
1480
+ defineCustomElement$n();
1477
1481
  }
1478
1482
  break;
1479
1483
  case "calcite-notice":
1480
1484
  if (!customElements.get(tagName)) {
1481
- defineCustomElement$l();
1485
+ defineCustomElement$m();
1482
1486
  }
1483
1487
  break;
1484
1488
  case "calcite-pagination":
1485
1489
  if (!customElements.get(tagName)) {
1486
- defineCustomElement$k();
1490
+ defineCustomElement$l();
1487
1491
  }
1488
1492
  break;
1489
1493
  case "calcite-panel":
1490
1494
  if (!customElements.get(tagName)) {
1491
- defineCustomElement$j();
1495
+ defineCustomElement$k();
1492
1496
  }
1493
1497
  break;
1494
1498
  case "calcite-popover":
1495
1499
  if (!customElements.get(tagName)) {
1496
- defineCustomElement$i();
1500
+ defineCustomElement$j();
1497
1501
  }
1498
1502
  break;
1499
1503
  case "calcite-progress":
1500
1504
  if (!customElements.get(tagName)) {
1501
- defineCustomElement$h();
1505
+ defineCustomElement$i();
1502
1506
  }
1503
1507
  break;
1504
1508
  case "calcite-scrim":
1505
1509
  if (!customElements.get(tagName)) {
1506
- defineCustomElement$g();
1510
+ defineCustomElement$h();
1507
1511
  }
1508
1512
  break;
1509
1513
  case "calcite-shell":
1510
1514
  if (!customElements.get(tagName)) {
1511
- defineCustomElement$f();
1515
+ defineCustomElement$g();
1512
1516
  }
1513
1517
  break;
1514
1518
  case "calcite-slider":
1515
1519
  if (!customElements.get(tagName)) {
1516
- defineCustomElement$e();
1520
+ defineCustomElement$f();
1517
1521
  }
1518
1522
  break;
1519
1523
  case "calcite-stack":
1520
1524
  if (!customElements.get(tagName)) {
1521
- defineCustomElement$d();
1525
+ defineCustomElement$e();
1522
1526
  }
1523
1527
  break;
1524
1528
  case "calcite-tooltip":
1525
1529
  if (!customElements.get(tagName)) {
1526
- defineCustomElement$c();
1530
+ defineCustomElement$d();
1527
1531
  }
1528
1532
  break;
1529
1533
  case "create-feature":
1530
1534
  if (!customElements.get(tagName)) {
1531
- defineCustomElement$b();
1535
+ defineCustomElement$c();
1532
1536
  }
1533
1537
  break;
1534
1538
  case "create-related-feature":
1535
1539
  if (!customElements.get(tagName)) {
1536
- defineCustomElement$a();
1540
+ defineCustomElement$b();
1537
1541
  }
1538
1542
  break;
1539
1543
  case "delete-button":
1544
+ if (!customElements.get(tagName)) {
1545
+ defineCustomElement$a();
1546
+ }
1547
+ break;
1548
+ case "delete-dialog":
1540
1549
  if (!customElements.get(tagName)) {
1541
1550
  defineCustomElement$9();
1542
1551
  }
@@ -5,13 +5,14 @@
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as getLocaleComponentStrings } from './locale.js';
8
- import { d as defineCustomElement$7 } from './action.js';
9
- import { d as defineCustomElement$6 } from './button.js';
10
- import { d as defineCustomElement$5 } from './icon.js';
11
- import { d as defineCustomElement$4 } from './loader.js';
12
- import { d as defineCustomElement$3 } from './modal.js';
13
- import { d as defineCustomElement$2 } from './scrim.js';
14
- import { d as defineCustomElement$1 } from './tooltip.js';
8
+ import { d as defineCustomElement$8 } from './action.js';
9
+ import { d as defineCustomElement$7 } from './button.js';
10
+ import { d as defineCustomElement$6 } from './icon.js';
11
+ import { d as defineCustomElement$5 } from './loader.js';
12
+ import { d as defineCustomElement$4 } from './modal.js';
13
+ import { d as defineCustomElement$3 } from './scrim.js';
14
+ import { d as defineCustomElement$2 } from './tooltip.js';
15
+ import { d as defineCustomElement$1 } from './delete-dialog2.js';
15
16
 
16
17
  const deleteButtonCss = ":host{display:block}.delete-modal{position:fixed}";
17
18
  const DeleteButtonStyle0 = deleteButtonCss;
@@ -22,6 +23,7 @@ const DeleteButton = /*@__PURE__*/ proxyCustomElement(class DeleteButton extends
22
23
  this.__registerHost();
23
24
  this.__attachShadow();
24
25
  this.editsComplete = createEvent(this, "editsComplete", 7);
26
+ this.deleteDialog = undefined;
25
27
  this.buttonType = "button";
26
28
  this.disabled = false;
27
29
  this.icon = undefined;
@@ -29,7 +31,6 @@ const DeleteButton = /*@__PURE__*/ proxyCustomElement(class DeleteButton extends
29
31
  this.layer = undefined;
30
32
  this._confirmDelete = false;
31
33
  this._deleteEndabled = false;
32
- this._isDeleting = false;
33
34
  this._supportsDelete = undefined;
34
35
  this._translations = undefined;
35
36
  }
@@ -87,7 +88,7 @@ const DeleteButton = /*@__PURE__*/ proxyCustomElement(class DeleteButton extends
87
88
  * Renders the component.
88
89
  */
89
90
  render() {
90
- 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))));
91
+ 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))));
91
92
  }
92
93
  /**
93
94
  * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
@@ -121,30 +122,7 @@ const DeleteButton = /*@__PURE__*/ proxyCustomElement(class DeleteButton extends
121
122
  * @returns node to confirm or deny the delete operation
122
123
  */
123
124
  _deleteMessage() {
124
- const confirmMessage = this.ids.length === 1 ? this._translations.confirmSingle :
125
- this._translations.confirmMultiple;
126
- 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)));
127
- }
128
- /**
129
- * Delete the currently selected features
130
- */
131
- async _deleteFeatures() {
132
- this._isDeleting = true;
133
- const deleteFeatures = this.ids.map((objectId) => {
134
- return { objectId };
135
- });
136
- await this.layer.applyEdits({
137
- deleteFeatures
138
- });
139
- this._isDeleting = false;
140
- this._deleteClosed();
141
- this.editsComplete.emit("delete");
142
- }
143
- /**
144
- * Set the alertOpen member to false when the alert is closed
145
- */
146
- _deleteClosed() {
147
- this._confirmDelete = false;
125
+ 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 }));
148
126
  }
149
127
  /**
150
128
  * Fetches the component's translations
@@ -162,6 +140,7 @@ const DeleteButton = /*@__PURE__*/ proxyCustomElement(class DeleteButton extends
162
140
  }; }
163
141
  static get style() { return DeleteButtonStyle0; }
164
142
  }, [1, "delete-button", {
143
+ "deleteDialog": [8, "delete-dialog"],
165
144
  "buttonType": [1, "button-type"],
166
145
  "disabled": [4],
167
146
  "icon": [1],
@@ -169,7 +148,6 @@ const DeleteButton = /*@__PURE__*/ proxyCustomElement(class DeleteButton extends
169
148
  "layer": [16],
170
149
  "_confirmDelete": [32],
171
150
  "_deleteEndabled": [32],
172
- "_isDeleting": [32],
173
151
  "_supportsDelete": [32],
174
152
  "_translations": [32]
175
153
  }, undefined, {
@@ -180,7 +158,7 @@ function defineCustomElement() {
180
158
  if (typeof customElements === "undefined") {
181
159
  return;
182
160
  }
183
- const components = ["delete-button", "calcite-action", "calcite-button", "calcite-icon", "calcite-loader", "calcite-modal", "calcite-scrim", "calcite-tooltip"];
161
+ const components = ["delete-button", "calcite-action", "calcite-button", "calcite-icon", "calcite-loader", "calcite-modal", "calcite-scrim", "calcite-tooltip", "delete-dialog"];
184
162
  components.forEach(tagName => { switch (tagName) {
185
163
  case "delete-button":
186
164
  if (!customElements.get(tagName)) {
@@ -189,35 +167,40 @@ function defineCustomElement() {
189
167
  break;
190
168
  case "calcite-action":
191
169
  if (!customElements.get(tagName)) {
192
- defineCustomElement$7();
170
+ defineCustomElement$8();
193
171
  }
194
172
  break;
195
173
  case "calcite-button":
196
174
  if (!customElements.get(tagName)) {
197
- defineCustomElement$6();
175
+ defineCustomElement$7();
198
176
  }
199
177
  break;
200
178
  case "calcite-icon":
201
179
  if (!customElements.get(tagName)) {
202
- defineCustomElement$5();
180
+ defineCustomElement$6();
203
181
  }
204
182
  break;
205
183
  case "calcite-loader":
206
184
  if (!customElements.get(tagName)) {
207
- defineCustomElement$4();
185
+ defineCustomElement$5();
208
186
  }
209
187
  break;
210
188
  case "calcite-modal":
211
189
  if (!customElements.get(tagName)) {
212
- defineCustomElement$3();
190
+ defineCustomElement$4();
213
191
  }
214
192
  break;
215
193
  case "calcite-scrim":
216
194
  if (!customElements.get(tagName)) {
217
- defineCustomElement$2();
195
+ defineCustomElement$3();
218
196
  }
219
197
  break;
220
198
  case "calcite-tooltip":
199
+ if (!customElements.get(tagName)) {
200
+ defineCustomElement$2();
201
+ }
202
+ break;
203
+ case "delete-dialog":
221
204
  if (!customElements.get(tagName)) {
222
205
  defineCustomElement$1();
223
206
  }
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface DeleteDialog extends Components.DeleteDialog, HTMLElement {}
4
+ export const DeleteDialog: {
5
+ prototype: DeleteDialog;
6
+ new (): DeleteDialog;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;