@esri/solutions-components 0.10.34 → 0.10.35

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -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.
@@ -232,8 +232,8 @@ export class InfoCard {
232
232
  const id = this._features?.selectedFeature?.getObjectId();
233
233
  const ids = parseInt(id?.toString(), 10) > -1 ? [id] : [];
234
234
  const deleteEnabled = this._layer?.editingEnabled && this._layer?.capabilities?.operations?.supportsDelete;
235
- return (h(Host, { key: 'a46a4081790c4e67a7e62d7602cf7d3203688d43' }, h("calcite-shell", { key: '688be9c8641692e2843536024752172416e88213', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: '0d99da4c0046325af848deaa5b6cb67ed524de96', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: 'e075742e911624b76b56404ccde68bff8f0363aa', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '17423712d3a1a2d38ee890ca4dba3ab55ff9ff5f', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
236
- h("div", { key: 'f9738f91381d1f1e011951c74b53c733a563f37d', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: 'bdb409117bc78ce70cb015521506086c6a8fc9c1', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, onEditsComplete: () => this._closePopup() })) : undefined, h("calcite-tooltip", { key: 'b1927881890a62576bfb794ac8d7ceec3178ae50', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: '5b8024aca83b9a12e55e83025353b718fbabc56a' }, this._translations.edit)), this.isMobile ? (h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && h("div", { key: '5b2410d9f2a2038f8903fb312ec00174d7b227f7', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: '3e1ba697bd0c22e59b5555375aa192e05900d4a3' }, h("calcite-button", { key: 'd0308cab8f7b570eb64ba6639b753e34e471f0e4', appearance: 'transparent', disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: 'ff51bfc1fe19c2cff4e9ef37c619e0c69dd7c707', placement: "top", "reference-element": "solutions-back" }, h("span", { key: 'dc1e698ca37f5988c2b822d6d7e00eacfc4fe4ba' }, this._translations.back))), h("calcite-action", { key: 'e442df4bcc0012851b8102a2590a58697cb1dc49', class: 'pagination-action', iconFlipRtl: true, onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: 'cb4729f055978f1d4c1c63d3e875fec3e4161602', class: "pagination-count" }, this._count)), h("div", { key: 'e6eac05de054f614dc8b6bf3de2ae289dd6d527f' }, h("calcite-button", { key: 'e253248af7d5e21880ccb3e82bbbe95082ff916a', appearance: "transparent", disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: '7a2340dc1403c1a95c0a926c9fda19876a513708', placement: "top", "reference-element": "solutions-next" }, h("span", { key: '3b69deac115afe2dc8cf9fb9d9eaed8d93abb22c' }, this._translations.next))))), h("edit-card", { key: 'e43be40ba13bec51123fbcd3f30062f4bc3e8550', class: editClass, enableEditGeometry: this.enableEditGeometry, graphicIndex: this._features?.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: 'ccbd2ecf9f1f719912ec3020d29559a6d8727e3f', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: '4f17aeceb63548d1eef560d3ef178f630f8dfe47', slot: "title" }, this._translations.editDisabled), h("div", { key: '9c720479ed61012787d7f6be966e31e3fa136d54', slot: "message" }, this._translations.enableEditing)))));
235
+ return (h(Host, { key: 'e200fd8d903d1c3295247a45f352ae62394501d5' }, h("calcite-shell", { key: '0b467ed0b480944660ef2194b302070d56cb70e4', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: 'cf6172f533f67274b04ac61af75f44ffe62cbc9e', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: '06f3e0c61e14fe73c0fadd58c3cf2c7c03efff6d', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '0f964afa075abbd27db827f90d189b9bc2a7c9d4', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
236
+ h("div", { key: 'd518934d172425ecb46e6b28ea683427d8982382', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: '4d4f3583b6448e33e3d3ad1aba8c9178f71d75b8', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, onEditsComplete: () => this._closePopup() })) : undefined, h("calcite-tooltip", { key: '5358ba4079f1906d23b6df5b1facb84eec9692d3', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: '8466cfb97ce12e46a06ed665afe974377911e101' }, this._translations.edit)), this.isMobile ? (h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && h("div", { key: '61c551cc2b0c0a2981daa9bf67c7e13318508ca6', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: '379dc6697743caedf8fdbea16423b83e9e823a5b' }, h("calcite-button", { key: '616a52367d2f56db0104ce279951a81fcf60a376', appearance: 'transparent', disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: 'f7f83e145c25591de025650fd358ca6200c4b6c5', placement: "top", "reference-element": "solutions-back" }, h("span", { key: '8afbde57b91ee8597de237db87efda7eabc10d69' }, this._translations.back))), h("calcite-action", { key: '23344d4abac515d089b8770d63181a989971aa33', class: 'pagination-action', iconFlipRtl: true, onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: 'a4c784c5a2c7dfeb9442a58f86961a3242f55055', class: "pagination-count" }, this._count)), h("div", { key: '75e33452a93e9a77f30505957e87b8758ab8d2dd' }, h("calcite-button", { key: '0283a96c401e1929588e28d6ec014eb28b93d1f1', appearance: "transparent", disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: '658a26b1bca471b96799cb81ee941f0556619dc9', placement: "top", "reference-element": "solutions-next" }, h("span", { key: '9892d4ee61a1b5656711bb0a188282d9b46bd3f9' }, this._translations.next))))), h("edit-card", { key: '541268c24631ab526bf1b65313d39f3ca606cb6d', class: editClass, enableEditGeometry: this.enableEditGeometry, graphicIndex: this._features?.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: '1cdff00f5d7e72b5db220750d290593a1baf68c4', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: 'bb250c5906f0e998a794b5c02c22f9643fab16a9', slot: "title" }, this._translations.editDisabled), h("div", { key: 'd330d1ce74473fc76630d2607ab3ca2584aabbd7', slot: "message" }, this._translations.enableEditing)))));
237
237
  }
238
238
  //--------------------------------------------------------------------------
239
239
  //
@@ -135,7 +135,7 @@ export class JsonEditor {
135
135
  * Renders the component.
136
136
  */
137
137
  render() {
138
- return (h(Host, { key: '2932135e373b0e5cf5bc5347c7b7960a60e81df1' }, h("div", { key: '98579089177f92e2a3600dd64d738e4ec8ff8ae2', id: `${this.instanceid}-editor-container`, class: "editor-container padding-right" }, h("div", { key: '971de116ef81850ecc2fcbff9d9f30e36c5928cf', class: "editor-controls" }, h("div", { key: '75e505043095753dc414dad671c6eec4e27a47c1', class: "editor-buttons" }, h("calcite-icon", { key: 'af8645c74758aff0f310089a5c97a504a52a2026', id: `${this.instanceid}-errorFlag`, icon: "exclamation-mark-triangle", title: this._translations.errorFlag, scale: "s", class: "edit-error-flag" }), h("calcite-button", { key: '6d736a2f3aa9c3e0efd5c1919253fc02e3dec0a2', id: `${this.instanceid}-undo`, color: "blue", appearance: "solid", title: this._translations.undo, onClick: () => this._undo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '20fdf41124e256f139c7be3bd6f0e42823706cec', icon: "undo", scale: "s" })), h("calcite-button", { key: '7ca8a3bf590e33d6596af51e0b1f25019e9f806a', id: `${this.instanceid}-redo`, color: "blue", appearance: "solid", title: this._translations.redo, onClick: () => this._redo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '3e248322dd1381da5ec609e92953d8ea94ebad29', icon: "redo", scale: "s" })), h("calcite-button", { key: '2e147af3b73714e40347f432d3d440d0e9bd2ae9', id: `${this.instanceid}-diff`, color: "blue", appearance: "solid", title: this._translations.diff, onClick: () => this._toggleEditor(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: 'dc3fea2e4743511af20347412c6093163f0b674c', icon: "compare", scale: "s" })), h("calcite-button", { key: 'f983c7535f4a36a693b186a716ad6750e33f679a', id: `${this.instanceid}-search`, appearance: "outline", color: "blue", title: this._translations.search, onClick: () => this._search(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '315076f61831b8294e0c9b2c2e5fb174d9163bce', icon: "search", scale: "s" })), h("calcite-button", { key: 'a9223c5ad5eeed5a932ce106d3f3db90008933b9', id: `${this.instanceid}-reset`, color: "blue", appearance: "solid", disabled: true, title: this._translations.cancelEdits, onClick: () => this._reset(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '0cd3c9c634da8fe710890b533bc046c536af0bb2', icon: "reset", scale: "s" })))), h("div", { key: '73fc19136eb3aa3148c859ba617cd9904ee92f98', class: "edit-parent" }, h("div", { key: '57435dbeeef39ddaeb97256512acca6360e1a7ec', id: `${this.instanceid}-container`, class: "json-edit-container" }), h("div", { key: '152e58aeb94ae22d6d11e4332496cb2e637ebbca', id: `${this.instanceid}-diff-container`, class: "json-edit-container display-none" })))));
138
+ return (h(Host, { key: '0c7531c8c816eb9be80d357b19b568ccdb22c407' }, h("div", { key: '866f82b68c2a750edfc80d801e4ea95a3f655100', id: `${this.instanceid}-editor-container`, class: "editor-container padding-right" }, h("div", { key: '5b9f15641f6a26daeb3847d8ef75c76b8be44fc5', class: "editor-controls" }, h("div", { key: 'd1e91eaa242ccd23d5dc1386b6a58d2fafeb4083', class: "editor-buttons" }, h("calcite-icon", { key: 'd9364f7dfdbc22a414b4711c8a22e145b533998e', id: `${this.instanceid}-errorFlag`, icon: "exclamation-mark-triangle", title: this._translations.errorFlag, scale: "s", class: "edit-error-flag" }), h("calcite-button", { key: '29750fc7cedf1f9caf556df3ff84dc45d6b922b9', id: `${this.instanceid}-undo`, color: "blue", appearance: "solid", title: this._translations.undo, onClick: () => this._undo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: 'c95008b3fccb8bc33f01eb1bd204c84141850981', icon: "undo", scale: "s" })), h("calcite-button", { key: '49ac9ee70c58954f6dee34524f4c7ab6fa0d7a49', id: `${this.instanceid}-redo`, color: "blue", appearance: "solid", title: this._translations.redo, onClick: () => this._redo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '2170c36d0fd236c989222991353324d50afa8ac0', icon: "redo", scale: "s" })), h("calcite-button", { key: 'c6e1a0f84fac6fb02d2590cc7b32aefffbc06d25', id: `${this.instanceid}-diff`, color: "blue", appearance: "solid", title: this._translations.diff, onClick: () => this._toggleEditor(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '88443cfd2a8888447acc75588ecff7938ade5273', icon: "compare", scale: "s" })), h("calcite-button", { key: '42dcd8f63600d4ddb77eaedd529321999cf537b3', id: `${this.instanceid}-search`, appearance: "outline", color: "blue", title: this._translations.search, onClick: () => this._search(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '31e8ced3f14f1475c62133fbd7730e34b2bc4028', icon: "search", scale: "s" })), h("calcite-button", { key: '769b268d7476f3fe1a8623e9432cfae56602db0c', id: `${this.instanceid}-reset`, color: "blue", appearance: "solid", disabled: true, title: this._translations.cancelEdits, onClick: () => this._reset(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '4a8ead1dbf8fefe8b4106a0f6f9c42fb5b875cd2', icon: "reset", scale: "s" })))), h("div", { key: '98f29030a0fa0ecbce0d165840a30edd655ba249', class: "edit-parent" }, h("div", { key: '1441e32a184bc24f2a0a25fcb855c41b40bd0cec', id: `${this.instanceid}-container`, class: "json-edit-container" }), h("div", { key: 'f0cf0a3bd11d3f8102c4cc8695ac1743bac36bbb', id: `${this.instanceid}-diff-container`, class: "json-edit-container display-none" })))));
139
139
  }
140
140
  //--------------------------------------------------------------------------
141
141
  //
@@ -91,22 +91,20 @@ export class LayerList {
91
91
  */
92
92
  async componentWillLoad() {
93
93
  await this._getTranslations();
94
- this._isLoading = true;
95
94
  }
96
95
  /**
97
96
  * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
98
97
  */
99
98
  async componentDidLoad() {
100
99
  await this.setLayers();
101
- this._isLoading = false;
102
100
  }
103
101
  /**
104
102
  * Renders the component.
105
103
  */
106
104
  render() {
107
- return (h(Fragment, { key: '96f61a2b92d352cdc341961c54b9fdfb06bab6fc' }, this._isLoading && h("calcite-loader", { key: '948c5a101fe19294dbc99a5d015c4f08c3db7f24', label: "", scale: "m" }), !this._isLoading && this.mapView && this._noLayersToDisplay &&
108
- h("calcite-notice", { key: '23a73833e78b0c0009453ecfbf9bc000f2f7ff33', class: "error-msg", icon: "layers-reference", kind: "danger", open: true }, h("div", { key: 'da338486c22d7d70499713e22d45bd343c752e38', slot: "title" }, this._translations.error), h("div", { key: '751c99a20af04f7253a518181d02a353e7f1b6b8', slot: "message" }, this._translations.noLayerToDisplayErrorMsg)), !this._isLoading && this.mapView &&
109
- h("calcite-list", { key: '09c24ccb0ce715bc0606302af41571b5594e64b5', "selection-appearance": "border", "selection-mode": "none" }, this.renderLayerList())));
105
+ return (h(Fragment, { key: 'f8e0c21d4ff87d663a1e0f00f1d9ef1123091db9' }, this._isLoading && h("calcite-loader", { key: '42058be6b41126e58d33895bc237b174e55a16ed', label: "", scale: "m" }), !this._isLoading && this.mapView && this._noLayersToDisplay &&
106
+ h("calcite-notice", { key: '89d9073a156f07379699cc5b67bf9ba54654cc68', class: "error-msg", icon: "layers-reference", kind: "danger", open: true }, h("div", { key: '730b8dcca79bd45a7a6eecb5030626d1dcd01238', slot: "title" }, this._translations.error), h("div", { key: '656e8276ffab75734909348f49f11492de1d5a8b', slot: "message" }, this._translations.noLayerToDisplayErrorMsg)), !this._isLoading && this.mapView &&
107
+ h("calcite-list", { key: '1d2206d3163b6c5ed8511e32ab296f0025889824', "selection-appearance": "border", "selection-mode": "none" }, this.renderLayerList())));
110
108
  }
111
109
  //--------------------------------------------------------------------------
112
110
  //
@@ -120,7 +118,9 @@ export class LayerList {
120
118
  */
121
119
  async setLayers() {
122
120
  if (this.mapView) {
121
+ this._isLoading = true;
123
122
  await this.initLayerHash();
123
+ this._isLoading = false;
124
124
  }
125
125
  }
126
126
  /**
@@ -148,4 +148,10 @@ html[dir="rtl"] .share-action {
148
148
  --calcite-color-border-input: var(--calcite-color-border-3);
149
149
  width: 60%;
150
150
  padding: 10px;
151
+ }
152
+
153
+ .delete-red {
154
+ --calcite-icon-color: var(--calcite-color-status-danger);
155
+ --calcite-color-text-1: var(--calcite-color-status-danger);
156
+ --calcite-color-text-3: var(--calcite-color-status-danger);
151
157
  }