@esri/solutions-components 0.10.34 → 0.10.36

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +7 -6
  2. package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
  3. package/dist/cjs/calcite-alert_5.cjs.entry.js +10 -8
  4. package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
  5. package/dist/cjs/calcite-flow_4.cjs.entry.js +18 -16
  6. package/dist/cjs/{calcite-modal_3.cjs.entry.js → calcite-modal.cjs.entry.js} +27 -368
  7. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +7 -7
  8. package/dist/cjs/calcite-shell_3.cjs.entry.js +440 -0
  9. package/dist/cjs/card-manager_3.cjs.entry.js +22 -11
  10. package/dist/cjs/crowdsource-manager.cjs.entry.js +28 -31
  11. package/dist/cjs/crowdsource-reporter.cjs.entry.js +24 -21
  12. package/dist/cjs/{downloadUtils-20637f89.js → downloadUtils-76bc7e30.js} +6 -5
  13. package/dist/cjs/feature-comments.cjs.entry.js +1 -1
  14. package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
  15. package/dist/cjs/feature-list.cjs.entry.js +7 -7
  16. package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
  17. package/dist/cjs/{index.es-a242cb45.js → index.es-8336efed.js} +2 -2
  18. package/dist/cjs/layout-manager.cjs.entry.js +1 -1
  19. package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
  22. package/dist/cjs/map-select-tools_3.cjs.entry.js +5 -5
  23. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  24. package/dist/cjs/{popupUtils-d477705b.js → popupUtils-bc762034.js} +1 -1
  25. package/dist/cjs/public-notification.cjs.entry.js +3 -3
  26. package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
  27. package/dist/cjs/share-item.cjs.entry.js +1 -1
  28. package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
  29. package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
  30. package/dist/cjs/solution-item-accordion.cjs.entry.js +1 -1
  31. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  32. package/dist/cjs/solutions-components.cjs.js +1 -1
  33. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  34. package/dist/collection/assets/t9n/delete-dialog/resources.json +8 -0
  35. package/dist/collection/assets/t9n/delete-dialog/resources_ar.json +8 -0
  36. package/dist/collection/assets/t9n/delete-dialog/resources_bg.json +8 -0
  37. package/dist/collection/assets/t9n/delete-dialog/resources_bs.json +8 -0
  38. package/dist/collection/assets/t9n/delete-dialog/resources_ca.json +8 -0
  39. package/dist/collection/assets/t9n/delete-dialog/resources_cs.json +8 -0
  40. package/dist/collection/assets/t9n/delete-dialog/resources_da.json +8 -0
  41. package/dist/collection/assets/t9n/delete-dialog/resources_de.json +8 -0
  42. package/dist/collection/assets/t9n/delete-dialog/resources_el.json +8 -0
  43. package/dist/collection/assets/t9n/delete-dialog/resources_en.json +8 -0
  44. package/dist/collection/assets/t9n/delete-dialog/resources_es.json +8 -0
  45. package/dist/collection/assets/t9n/delete-dialog/resources_et.json +8 -0
  46. package/dist/collection/assets/t9n/delete-dialog/resources_fi.json +8 -0
  47. package/dist/collection/assets/t9n/delete-dialog/resources_fr.json +8 -0
  48. package/dist/collection/assets/t9n/delete-dialog/resources_he.json +8 -0
  49. package/dist/collection/assets/t9n/delete-dialog/resources_hr.json +8 -0
  50. package/dist/collection/assets/t9n/delete-dialog/resources_hu.json +8 -0
  51. package/dist/collection/assets/t9n/delete-dialog/resources_id.json +8 -0
  52. package/dist/collection/assets/t9n/delete-dialog/resources_it.json +8 -0
  53. package/dist/collection/assets/t9n/delete-dialog/resources_ja.json +8 -0
  54. package/dist/collection/assets/t9n/delete-dialog/resources_ko.json +8 -0
  55. package/dist/collection/assets/t9n/delete-dialog/resources_lt.json +8 -0
  56. package/dist/collection/assets/t9n/delete-dialog/resources_lv.json +8 -0
  57. package/dist/collection/assets/t9n/delete-dialog/resources_nb.json +8 -0
  58. package/dist/collection/assets/t9n/delete-dialog/resources_nl.json +8 -0
  59. package/dist/collection/assets/t9n/delete-dialog/resources_pl.json +8 -0
  60. package/dist/collection/assets/t9n/delete-dialog/resources_pt-BR.json +8 -0
  61. package/dist/collection/assets/t9n/delete-dialog/resources_pt-PT.json +8 -0
  62. package/dist/collection/assets/t9n/delete-dialog/resources_ro.json +8 -0
  63. package/dist/collection/assets/t9n/delete-dialog/resources_ru.json +8 -0
  64. package/dist/collection/assets/t9n/delete-dialog/resources_sk.json +8 -0
  65. package/dist/collection/assets/t9n/delete-dialog/resources_sl.json +8 -0
  66. package/dist/collection/assets/t9n/delete-dialog/resources_sr.json +8 -0
  67. package/dist/collection/assets/t9n/delete-dialog/resources_sv.json +8 -0
  68. package/dist/collection/assets/t9n/delete-dialog/resources_th.json +8 -0
  69. package/dist/collection/assets/t9n/delete-dialog/resources_tr.json +8 -0
  70. package/dist/collection/assets/t9n/delete-dialog/resources_uk.json +8 -0
  71. package/dist/collection/assets/t9n/delete-dialog/resources_vi.json +8 -0
  72. package/dist/collection/assets/t9n/delete-dialog/resources_zh-CN.json +8 -0
  73. package/dist/collection/assets/t9n/delete-dialog/resources_zh-HK.json +8 -0
  74. package/dist/collection/assets/t9n/delete-dialog/resources_zh-TW.json +8 -0
  75. package/dist/collection/collection-manifest.json +1 -0
  76. package/dist/collection/components/create-feature/create-feature.css +2 -1
  77. package/dist/collection/components/create-feature/create-feature.js +3 -1
  78. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +4 -0
  79. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +29 -30
  80. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +24 -21
  81. package/dist/collection/components/delete-button/delete-button.js +20 -27
  82. package/dist/collection/components/delete-dialog/delete-dialog.css +23 -0
  83. package/dist/collection/components/delete-dialog/delete-dialog.js +239 -0
  84. package/dist/collection/components/edit-card/edit-card.js +1 -1
  85. package/dist/collection/components/feature-comments/feature-comments.js +1 -1
  86. package/dist/collection/components/feature-details/feature-details.js +13 -11
  87. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
  88. package/dist/collection/components/feature-list/feature-list.js +4 -4
  89. package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
  90. package/dist/collection/components/floor-filter/floor-filter.js +1 -1
  91. package/dist/collection/components/info-card/info-card.js +2 -2
  92. package/dist/collection/components/json-editor/json-editor.js +1 -1
  93. package/dist/collection/components/layer-list/layer-list.js +5 -5
  94. package/dist/collection/components/layer-table/layer-table.css +6 -0
  95. package/dist/collection/components/layer-table/layer-table.js +19 -7
  96. package/dist/collection/components/layout-manager/layout-manager.js +1 -1
  97. package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
  98. package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
  99. package/dist/collection/components/map-card/map-card.js +1 -1
  100. package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
  101. package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
  102. package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
  103. package/dist/collection/components/map-legend/map-legend.js +2 -1
  104. package/dist/collection/components/map-picker/map-picker.js +1 -1
  105. package/dist/collection/components/map-search/map-search.js +1 -1
  106. package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
  107. package/dist/collection/components/map-tools/map-tools.js +1 -1
  108. package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
  109. package/dist/collection/components/pdf-download/pdf-download.js +1 -1
  110. package/dist/collection/components/public-notification/public-notification.js +1 -1
  111. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
  112. package/dist/collection/components/refine-selection/refine-selection.js +1 -1
  113. package/dist/collection/components/share-item/share-item.js +1 -1
  114. package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
  115. package/dist/collection/components/solution-contents/solution-contents.js +1 -1
  116. package/dist/collection/components/solution-item/solution-item.js +1 -1
  117. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +1 -1
  118. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
  119. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  120. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
  121. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
  122. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  123. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
  124. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  125. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  126. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  127. package/dist/collection/utils/downloadUtils.js +5 -3
  128. package/dist/collection/utils/downloadUtils.ts +6 -3
  129. package/dist/collection/utils/test/downloadUtils.spec.tsx +10 -12
  130. package/dist/components/card-manager2.js +40 -34
  131. package/dist/components/create-feature2.js +4 -2
  132. package/dist/components/crowdsource-manager.js +127 -123
  133. package/dist/components/crowdsource-reporter.js +110 -101
  134. package/dist/components/delete-button2.js +24 -41
  135. package/dist/components/delete-dialog.d.ts +11 -0
  136. package/dist/components/delete-dialog.js +11 -0
  137. package/dist/components/delete-dialog2.js +165 -0
  138. package/dist/components/downloadUtils.js +5 -4
  139. package/dist/components/edit-card2.js +1 -1
  140. package/dist/components/feature-comments.js +1 -1
  141. package/dist/components/feature-details2.js +67 -59
  142. package/dist/components/feature-form-flow-item.js +1 -1
  143. package/dist/components/feature-list2.js +4 -4
  144. package/dist/components/features-flow-item.js +1 -1
  145. package/dist/components/floor-filter2.js +1 -1
  146. package/dist/components/info-card2.js +38 -32
  147. package/dist/components/json-editor2.js +1 -1
  148. package/dist/components/layer-list2.js +5 -5
  149. package/dist/components/layer-table2.js +100 -82
  150. package/dist/components/layout-manager.js +1 -1
  151. package/dist/components/list-flow-item.js +1 -1
  152. package/dist/components/location-flow-item.js +1 -1
  153. package/dist/components/map-card2.js +1 -1
  154. package/dist/components/map-draw-tools2.js +1 -1
  155. package/dist/components/map-fullscreen2.js +1 -1
  156. package/dist/components/map-layer-picker2.js +1 -1
  157. package/dist/components/map-legend2.js +2 -1
  158. package/dist/components/map-picker2.js +1 -1
  159. package/dist/components/map-search2.js +1 -1
  160. package/dist/components/map-select-tools2.js +1 -1
  161. package/dist/components/map-tools2.js +1 -1
  162. package/dist/components/pci-calculator.js +1 -1
  163. package/dist/components/pdf-download2.js +1 -1
  164. package/dist/components/public-notification.js +1 -1
  165. package/dist/components/refine-results-flow-item.js +1 -1
  166. package/dist/components/refine-selection2.js +1 -1
  167. package/dist/components/share-item.js +1 -1
  168. package/dist/components/solution-configuration.js +3 -3
  169. package/dist/components/solution-contents2.js +1 -1
  170. package/dist/components/solution-item-accordion.js +1 -1
  171. package/dist/components/solution-item-details2.js +1 -1
  172. package/dist/components/solution-item-icon2.js +1 -1
  173. package/dist/components/solution-item-sharing2.js +1 -1
  174. package/dist/components/solution-item2.js +1 -1
  175. package/dist/components/solution-organization-variables2.js +1 -1
  176. package/dist/components/solution-resource-item2.js +1 -1
  177. package/dist/components/solution-spatial-ref2.js +1 -1
  178. package/dist/components/solution-template-data2.js +1 -1
  179. package/dist/components/solution-variables2.js +1 -1
  180. package/dist/components/spatial-ref.js +1 -1
  181. package/dist/esm/basemap-gallery_7.entry.js +7 -6
  182. package/dist/esm/buffer-tools_3.entry.js +1 -1
  183. package/dist/esm/calcite-alert_5.entry.js +10 -8
  184. package/dist/esm/calcite-combobox_3.entry.js +1 -1
  185. package/dist/esm/calcite-flow_4.entry.js +18 -16
  186. package/dist/esm/{calcite-modal_3.entry.js → calcite-modal.entry.js} +30 -369
  187. package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
  188. package/dist/esm/calcite-shell_3.entry.js +434 -0
  189. package/dist/esm/card-manager_3.entry.js +22 -11
  190. package/dist/esm/crowdsource-manager.entry.js +28 -31
  191. package/dist/esm/crowdsource-reporter.entry.js +24 -21
  192. package/dist/esm/{downloadUtils-e266e98d.js → downloadUtils-bc7a4ba1.js} +6 -5
  193. package/dist/esm/feature-comments.entry.js +1 -1
  194. package/dist/esm/feature-form-flow-item.entry.js +1 -1
  195. package/dist/esm/feature-list.entry.js +7 -7
  196. package/dist/esm/features-flow-item.entry.js +1 -1
  197. package/dist/esm/{index.es-c5f258e2.js → index.es-0d189a34.js} +2 -2
  198. package/dist/esm/layout-manager.entry.js +1 -1
  199. package/dist/esm/list-flow-item.entry.js +1 -1
  200. package/dist/esm/loader.js +1 -1
  201. package/dist/esm/location-flow-item.entry.js +1 -1
  202. package/dist/esm/map-select-tools_3.entry.js +5 -5
  203. package/dist/esm/pci-calculator.entry.js +1 -1
  204. package/dist/esm/{popupUtils-4570096e.js → popupUtils-03dc398a.js} +1 -1
  205. package/dist/esm/public-notification.entry.js +3 -3
  206. package/dist/esm/refine-results-flow-item.entry.js +1 -1
  207. package/dist/esm/share-item.entry.js +1 -1
  208. package/dist/esm/solution-configuration.entry.js +3 -3
  209. package/dist/esm/solution-contents_3.entry.js +3 -3
  210. package/dist/esm/solution-item-accordion.entry.js +1 -1
  211. package/dist/esm/solution-item-icon.entry.js +1 -1
  212. package/dist/esm/solutions-components.js +1 -1
  213. package/dist/esm/spatial-ref.entry.js +1 -1
  214. package/dist/solutions-components/assets/t9n/delete-dialog/resources.json +8 -0
  215. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ar.json +8 -0
  216. package/dist/solutions-components/assets/t9n/delete-dialog/resources_bg.json +8 -0
  217. package/dist/solutions-components/assets/t9n/delete-dialog/resources_bs.json +8 -0
  218. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ca.json +8 -0
  219. package/dist/solutions-components/assets/t9n/delete-dialog/resources_cs.json +8 -0
  220. package/dist/solutions-components/assets/t9n/delete-dialog/resources_da.json +8 -0
  221. package/dist/solutions-components/assets/t9n/delete-dialog/resources_de.json +8 -0
  222. package/dist/solutions-components/assets/t9n/delete-dialog/resources_el.json +8 -0
  223. package/dist/solutions-components/assets/t9n/delete-dialog/resources_en.json +8 -0
  224. package/dist/solutions-components/assets/t9n/delete-dialog/resources_es.json +8 -0
  225. package/dist/solutions-components/assets/t9n/delete-dialog/resources_et.json +8 -0
  226. package/dist/solutions-components/assets/t9n/delete-dialog/resources_fi.json +8 -0
  227. package/dist/solutions-components/assets/t9n/delete-dialog/resources_fr.json +8 -0
  228. package/dist/solutions-components/assets/t9n/delete-dialog/resources_he.json +8 -0
  229. package/dist/solutions-components/assets/t9n/delete-dialog/resources_hr.json +8 -0
  230. package/dist/solutions-components/assets/t9n/delete-dialog/resources_hu.json +8 -0
  231. package/dist/solutions-components/assets/t9n/delete-dialog/resources_id.json +8 -0
  232. package/dist/solutions-components/assets/t9n/delete-dialog/resources_it.json +8 -0
  233. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ja.json +8 -0
  234. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ko.json +8 -0
  235. package/dist/solutions-components/assets/t9n/delete-dialog/resources_lt.json +8 -0
  236. package/dist/solutions-components/assets/t9n/delete-dialog/resources_lv.json +8 -0
  237. package/dist/solutions-components/assets/t9n/delete-dialog/resources_nb.json +8 -0
  238. package/dist/solutions-components/assets/t9n/delete-dialog/resources_nl.json +8 -0
  239. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pl.json +8 -0
  240. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pt-BR.json +8 -0
  241. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pt-PT.json +8 -0
  242. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ro.json +8 -0
  243. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ru.json +8 -0
  244. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sk.json +8 -0
  245. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sl.json +8 -0
  246. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sr.json +8 -0
  247. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sv.json +8 -0
  248. package/dist/solutions-components/assets/t9n/delete-dialog/resources_th.json +8 -0
  249. package/dist/solutions-components/assets/t9n/delete-dialog/resources_tr.json +8 -0
  250. package/dist/solutions-components/assets/t9n/delete-dialog/resources_uk.json +8 -0
  251. package/dist/solutions-components/assets/t9n/delete-dialog/resources_vi.json +8 -0
  252. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-CN.json +8 -0
  253. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-HK.json +8 -0
  254. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-TW.json +8 -0
  255. package/dist/solutions-components/{p-ffa9a117.entry.js → p-04ab956c.entry.js} +1 -1
  256. package/dist/solutions-components/{p-6c3261d7.entry.js → p-06364211.entry.js} +1 -1
  257. package/dist/solutions-components/{p-d119872d.entry.js → p-18089a0b.entry.js} +1 -1
  258. package/dist/solutions-components/p-1f07e21a.entry.js +6 -0
  259. package/dist/solutions-components/p-2a6ecaa9.entry.js +11 -0
  260. package/dist/solutions-components/p-46416e11.entry.js +6 -0
  261. package/dist/solutions-components/{p-5fc0e134.entry.js → p-59ccd27c.entry.js} +1 -1
  262. package/dist/solutions-components/{p-42f75c8f.entry.js → p-6502d0f8.entry.js} +1 -1
  263. package/dist/solutions-components/{p-a568af9f.js → p-6f606cdb.js} +1 -1
  264. package/dist/solutions-components/p-70c0050c.entry.js +6 -0
  265. package/dist/solutions-components/p-720de4db.entry.js +6 -0
  266. package/dist/solutions-components/p-74bcef23.entry.js +11 -0
  267. package/dist/solutions-components/{p-4cb12506.entry.js → p-76154700.entry.js} +1 -1
  268. package/dist/solutions-components/p-82ddf716.entry.js +6 -0
  269. package/dist/solutions-components/{p-d08ece15.entry.js → p-841816a1.entry.js} +1 -1
  270. package/dist/solutions-components/p-938bc915.entry.js +6 -0
  271. package/dist/solutions-components/p-97fe6ec5.entry.js +6 -0
  272. package/dist/solutions-components/{p-dd0bd439.entry.js → p-9c4fef09.entry.js} +3 -3
  273. package/dist/solutions-components/{p-fa7672c7.entry.js → p-9d56f4b5.entry.js} +1 -1
  274. package/dist/solutions-components/p-9da8a590.entry.js +6 -0
  275. package/dist/solutions-components/{p-5fdb8f83.entry.js → p-a5d79c86.entry.js} +1 -1
  276. package/dist/solutions-components/{p-4f5913f3.entry.js → p-aac0c89c.entry.js} +1 -1
  277. package/dist/solutions-components/{p-ddc1218d.entry.js → p-be4c7ffd.entry.js} +1 -1
  278. package/dist/solutions-components/p-cd482a33.js +21 -0
  279. package/dist/solutions-components/p-d2612c30.entry.js +6 -0
  280. package/dist/solutions-components/{p-a07322cc.entry.js → p-df7de4b7.entry.js} +1 -1
  281. package/dist/solutions-components/{p-a8525233.entry.js → p-e345f9c4.entry.js} +1 -1
  282. package/dist/solutions-components/{p-1f072e2c.entry.js → p-eadff42b.entry.js} +1 -1
  283. package/dist/solutions-components/{p-06db1bfd.entry.js → p-efb4cb43.entry.js} +1 -1
  284. package/dist/solutions-components/{p-e4a42efa.entry.js → p-fa1c368c.entry.js} +1 -1
  285. package/dist/solutions-components/{p-46c8015c.js → p-ff9e28d1.js} +30 -30
  286. package/dist/solutions-components/solutions-components.esm.js +1 -1
  287. package/dist/solutions-components/utils/downloadUtils.ts +6 -3
  288. package/dist/solutions-components/utils/test/downloadUtils.spec.tsx +10 -12
  289. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -7
  290. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +6 -1
  291. package/dist/types/components/delete-button/delete-button.d.ts +4 -12
  292. package/dist/types/components/delete-dialog/delete-dialog.d.ts +75 -0
  293. package/dist/types/components/layer-table/layer-table.d.ts +12 -0
  294. package/dist/types/components.d.ts +69 -0
  295. package/dist/types/preact.d.ts +5 -0
  296. package/package.json +2 -1
  297. package/dist/solutions-components/p-2360802a.js +0 -21
  298. package/dist/solutions-components/p-51e2500f.entry.js +0 -6
  299. package/dist/solutions-components/p-52280e10.entry.js +0 -17
  300. package/dist/solutions-components/p-67ca4a64.entry.js +0 -6
  301. package/dist/solutions-components/p-7e6a8c06.entry.js +0 -6
  302. package/dist/solutions-components/p-8a411917.entry.js +0 -6
  303. package/dist/solutions-components/p-8d2d66d0.entry.js +0 -6
  304. package/dist/solutions-components/p-8e6081e0.entry.js +0 -6
  305. package/dist/solutions-components/p-b9b77b87.entry.js +0 -6
  306. package/dist/solutions-components/p-cf878a34.entry.js +0 -6
  307. package/dist/solutions-components/p-edd88d2d.entry.js +0 -6
@@ -0,0 +1,434 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { r as registerInstance, h, F as Fragment, g as getElement, c as createEvent, H as Host } from './index-904bc599.js';
7
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-8a0b08ef.js';
8
+ import { s as slotChangeHasAssignedElement, e as slotChangeGetAssignedElements } from './dom-75c641a7.js';
9
+ import { g as getLocaleComponentStrings } from './locale-0d06fca0.js';
10
+ import './observers-c83631e8.js';
11
+ import './browser-b67d8df6.js';
12
+ import './guid-b0fb1de3.js';
13
+ import './resources-8e2ed936.js';
14
+ import './esri-loader-c6842c6b.js';
15
+ import './_commonjsHelpers-089957fe.js';
16
+
17
+ /*!
18
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
19
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
20
+ * v2.13.0
21
+ */
22
+ const CSS = {
23
+ main: "main",
24
+ content: "content",
25
+ contentBehind: "content--behind",
26
+ contentBottom: "content-bottom",
27
+ contentNonInteractive: "content--non-interactive",
28
+ footer: "footer",
29
+ positionedSlotWrapper: "positioned-slot-wrapper",
30
+ container: "container",
31
+ contentBehindCenterContent: "center-content",
32
+ };
33
+ const SLOTS = {
34
+ centerRow: "center-row",
35
+ panelStart: "panel-start",
36
+ panelEnd: "panel-end",
37
+ panelTop: "panel-top",
38
+ panelBottom: "panel-bottom",
39
+ header: "header",
40
+ footer: "footer",
41
+ alerts: "alerts",
42
+ sheets: "sheets",
43
+ modals: "modals",
44
+ dialogs: "dialogs",
45
+ };
46
+
47
+ const shellCss = ":host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:absolute;inset:0px;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;--calcite-shell-tip-spacing:26vw}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto;justify-content:space-between}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0px;border-width:0px;z-index:calc(var(--calcite-z-index) - 1);display:initial}.content--non-interactive{pointer-events:none;display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-start]::slotted(calcite-shell-panel),slot[name=panel-end]::slotted(calcite-shell-panel){position:relative;z-index:calc(var(--calcite-z-index) + 1)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-color-border-3)}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-top]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-bottom]::slotted(calcite-shell-center-row:not([detached])){border-inline-start-width:1px;border-inline-end-width:1px;border-color:var(--calcite-color-border-3)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}.content-bottom{justify-content:flex-end}::slotted(calcite-shell-center-row){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);inset-block-end:0.5rem;inset-inline:var(--calcite-shell-tip-spacing)}slot[name=center-row]::slotted(calcite-shell-center-row),slot[name=panel-bottom]::slotted(calcite-shell-center-row){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-center-row){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}:host([hidden]){display:none}[hidden]{display:none}";
48
+ const CalciteShellStyle0 = shellCss;
49
+
50
+ const Shell = class {
51
+ constructor(hostRef) {
52
+ registerInstance(this, hostRef);
53
+ // --------------------------------------------------------------------------
54
+ //
55
+ // Private Methods
56
+ //
57
+ // --------------------------------------------------------------------------
58
+ this.handleHeaderSlotChange = (event) => {
59
+ this.hasHeader = !!slotChangeHasAssignedElement(event);
60
+ };
61
+ this.handleFooterSlotChange = (event) => {
62
+ this.hasFooter = !!slotChangeHasAssignedElement(event);
63
+ };
64
+ this.handleAlertsSlotChange = (event) => {
65
+ this.hasAlerts = !!slotChangeHasAssignedElement(event);
66
+ slotChangeGetAssignedElements(event)?.map((el) => {
67
+ if (el.tagName === "CALCITE-ALERT") {
68
+ el.embedded = true;
69
+ }
70
+ });
71
+ };
72
+ this.handleSheetsSlotChange = (event) => {
73
+ this.hasSheets = !!slotChangeHasAssignedElement(event);
74
+ slotChangeGetAssignedElements(event)?.map((el) => {
75
+ if (el.tagName === "CALCITE-SHEET") {
76
+ el.embedded = true;
77
+ }
78
+ });
79
+ };
80
+ this.handleModalsSlotChange = (event) => {
81
+ this.hasModals = !!slotChangeHasAssignedElement(event);
82
+ slotChangeGetAssignedElements(event)?.map((el) => {
83
+ if (el.tagName === "CALCITE-MODAL") {
84
+ el.embedded = true;
85
+ }
86
+ });
87
+ };
88
+ this.handlePanelTopChange = (event) => {
89
+ this.hasPanelTop = slotChangeHasAssignedElement(event);
90
+ };
91
+ this.handlePanelBottomChange = (event) => {
92
+ this.hasPanelBottom = slotChangeHasAssignedElement(event);
93
+ };
94
+ this.handleDialogsSlotChange = (event) => {
95
+ this.hasDialogs = !!slotChangeHasAssignedElement(event);
96
+ slotChangeGetAssignedElements(event)?.map((el) => {
97
+ if (el.tagName === "CALCITE-DIALOG") {
98
+ el.embedded = true;
99
+ }
100
+ });
101
+ };
102
+ this.contentBehind = false;
103
+ this.hasHeader = false;
104
+ this.hasFooter = false;
105
+ this.hasAlerts = false;
106
+ this.hasModals = false;
107
+ this.hasDialogs = false;
108
+ this.hasSheets = false;
109
+ this.hasPanelTop = false;
110
+ this.hasPanelBottom = false;
111
+ this.hasOnlyPanelBottom = false;
112
+ this.panelIsResizing = false;
113
+ }
114
+ //--------------------------------------------------------------------------
115
+ //
116
+ // Event Listeners
117
+ //
118
+ //--------------------------------------------------------------------------
119
+ handleCalciteInternalShellPanelResizeStart(event) {
120
+ this.panelIsResizing = true;
121
+ event.stopPropagation();
122
+ }
123
+ handleCalciteInternalShellPanelResizeEnd(event) {
124
+ this.panelIsResizing = false;
125
+ event.stopPropagation();
126
+ }
127
+ updateHasOnlyPanelBottom() {
128
+ this.hasOnlyPanelBottom = !this.hasPanelTop && this.hasPanelBottom;
129
+ }
130
+ // --------------------------------------------------------------------------
131
+ //
132
+ // Lifecycle
133
+ //
134
+ // --------------------------------------------------------------------------
135
+ connectedCallback() {
136
+ connectConditionalSlotComponent(this);
137
+ }
138
+ disconnectedCallback() {
139
+ disconnectConditionalSlotComponent(this);
140
+ }
141
+ // --------------------------------------------------------------------------
142
+ //
143
+ // Render Methods
144
+ //
145
+ // --------------------------------------------------------------------------
146
+ renderHeader() {
147
+ return (h("div", { hidden: !this.hasHeader }, h("slot", { key: "header", name: SLOTS.header, onSlotchange: this.handleHeaderSlotChange })));
148
+ }
149
+ renderFooter() {
150
+ return (h("div", { class: CSS.footer, hidden: !this.hasFooter, key: "footer" }, h("slot", { name: SLOTS.footer, onSlotchange: this.handleFooterSlotChange })));
151
+ }
152
+ renderAlerts() {
153
+ return (h("div", { hidden: !this.hasAlerts }, h("slot", { key: "alerts", name: SLOTS.alerts, onSlotchange: this.handleAlertsSlotChange })));
154
+ }
155
+ renderSheets() {
156
+ return (h("div", { hidden: !this.hasSheets }, h("slot", { key: "sheets", name: SLOTS.sheets, onSlotchange: this.handleSheetsSlotChange })));
157
+ }
158
+ renderModals() {
159
+ return (h("div", { hidden: !this.hasModals }, h("slot", { key: "modals", name: SLOTS.modals, onSlotchange: this.handleModalsSlotChange })));
160
+ }
161
+ renderDialogs() {
162
+ return (h("div", { hidden: !this.hasDialogs }, h("slot", { key: "dialogs", name: SLOTS.dialogs, onSlotchange: this.handleDialogsSlotChange })));
163
+ }
164
+ renderContent() {
165
+ const { panelIsResizing } = this;
166
+ const defaultSlotNode = h("slot", { key: "default-slot" });
167
+ const defaultSlotContainerNode = panelIsResizing ? (h("div", { class: CSS.contentNonInteractive }, defaultSlotNode)) : (defaultSlotNode);
168
+ const deprecatedCenterRowSlotNode = (h("slot", { key: "center-row-slot", name: SLOTS.centerRow }));
169
+ const panelBottomSlotNode = (h("slot", { key: "panel-bottom-slot", name: SLOTS.panelBottom, onSlotchange: this.handlePanelBottomChange }));
170
+ const panelTopSlotNode = (h("slot", { key: "panel-top-slot", name: SLOTS.panelTop, onSlotchange: this.handlePanelTopChange }));
171
+ const contentContainerKey = "content-container";
172
+ const content = this.contentBehind
173
+ ? [
174
+ h("div", { class: {
175
+ [CSS.content]: true,
176
+ [CSS.contentBehind]: true,
177
+ }, key: contentContainerKey }, defaultSlotContainerNode),
178
+ h("div", { class: {
179
+ [CSS.contentBehindCenterContent]: true,
180
+ [CSS.contentBottom]: this.hasOnlyPanelBottom,
181
+ } }, panelTopSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
182
+ ]
183
+ : [
184
+ h("div", { class: { [CSS.content]: true, [CSS.contentBottom]: this.hasOnlyPanelBottom }, key: contentContainerKey }, panelTopSlotNode, defaultSlotContainerNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
185
+ ];
186
+ return content;
187
+ }
188
+ renderMain() {
189
+ return (h("div", { class: CSS.main }, h("slot", { name: SLOTS.panelStart }), this.renderContent(), h("slot", { name: SLOTS.panelEnd })));
190
+ }
191
+ renderPositionedSlots() {
192
+ return (h("div", { class: CSS.positionedSlotWrapper }, this.renderAlerts(), this.renderModals(), this.renderDialogs(), this.renderSheets()));
193
+ }
194
+ render() {
195
+ return (h(Fragment, { key: '6864b8b95b6edd871ad622b0d49a3f4a42a0a8a8' }, this.renderHeader(), this.renderMain(), this.renderFooter(), this.renderPositionedSlots()));
196
+ }
197
+ get el() { return getElement(this); }
198
+ static get watchers() { return {
199
+ "hasPanelTop": ["updateHasOnlyPanelBottom"],
200
+ "hasPanelBottom": ["updateHasOnlyPanelBottom"]
201
+ }; }
202
+ };
203
+ Shell.style = CalciteShellStyle0;
204
+
205
+ const deleteButtonCss = ":host{display:block}.delete-modal{position:fixed}";
206
+ const DeleteButtonStyle0 = deleteButtonCss;
207
+
208
+ const DeleteButton = class {
209
+ constructor(hostRef) {
210
+ registerInstance(this, hostRef);
211
+ this.editsComplete = createEvent(this, "editsComplete", 7);
212
+ this.deleteDialog = undefined;
213
+ this.buttonType = "button";
214
+ this.disabled = false;
215
+ this.icon = undefined;
216
+ this.ids = [];
217
+ this.layer = undefined;
218
+ this._confirmDelete = false;
219
+ this._deleteEndabled = false;
220
+ this._supportsDelete = undefined;
221
+ this._translations = undefined;
222
+ }
223
+ get el() { return getElement(this); }
224
+ //--------------------------------------------------------------------------
225
+ //
226
+ // Properties (protected)
227
+ //
228
+ //--------------------------------------------------------------------------
229
+ //--------------------------------------------------------------------------
230
+ //
231
+ // Watch handlers
232
+ //
233
+ //--------------------------------------------------------------------------
234
+ /**
235
+ * watch for changes in layer view and verify if it has editing enabled
236
+ */
237
+ async idsWatchHandler() {
238
+ this._setDeleteEnabled();
239
+ }
240
+ /**
241
+ * watch for changes in layer view and verify if it has editing enabled
242
+ */
243
+ async layerWatchHandler() {
244
+ this._setDeleteEnabled();
245
+ }
246
+ //--------------------------------------------------------------------------
247
+ //
248
+ // Methods (public)
249
+ //
250
+ //--------------------------------------------------------------------------
251
+ //--------------------------------------------------------------------------
252
+ //
253
+ // Events (public)
254
+ //
255
+ //--------------------------------------------------------------------------
256
+ /**
257
+ * Emitted on demand when features have been deleted
258
+ */
259
+ editsComplete;
260
+ //--------------------------------------------------------------------------
261
+ //
262
+ // Functions (lifecycle)
263
+ //
264
+ //--------------------------------------------------------------------------
265
+ /**
266
+ * StencilJS: Called once just after the component is first connected to the DOM.
267
+ *
268
+ * @returns Promise when complete
269
+ */
270
+ async componentWillLoad() {
271
+ await this._getTranslations();
272
+ }
273
+ /**
274
+ * Renders the component.
275
+ */
276
+ render() {
277
+ 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))));
278
+ }
279
+ /**
280
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
281
+ */
282
+ async componentDidLoad() {
283
+ this._setDeleteEnabled();
284
+ }
285
+ //--------------------------------------------------------------------------
286
+ //
287
+ // Functions (protected)
288
+ //
289
+ //--------------------------------------------------------------------------
290
+ /**
291
+ * Verify if the layer supports delete and that we have 1 or more ids
292
+ */
293
+ _setDeleteEnabled() {
294
+ this._supportsDelete = this.layer?.editingEnabled && this.layer?.capabilities?.operations?.supportsDelete;
295
+ this._deleteEndabled = !this.disabled || this._supportsDelete && this.ids.length > 0;
296
+ }
297
+ /**
298
+ * Delete all selected records or shows an alert if the layer does not have editing enabled
299
+ *
300
+ * @returns a promise that will resolve when the operation is complete
301
+ */
302
+ _delete() {
303
+ this._confirmDelete = true;
304
+ }
305
+ /**
306
+ * Show delete confirmation message
307
+ *
308
+ * @returns node to confirm or deny the delete operation
309
+ */
310
+ _deleteMessage() {
311
+ 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 }));
312
+ }
313
+ /**
314
+ * Fetches the component's translations
315
+ *
316
+ * @returns Promise when complete
317
+ * @protected
318
+ */
319
+ async _getTranslations() {
320
+ const messages = await getLocaleComponentStrings(this.el);
321
+ this._translations = messages[0];
322
+ }
323
+ static get watchers() { return {
324
+ "ids": ["idsWatchHandler"],
325
+ "layer": ["layerWatchHandler"]
326
+ }; }
327
+ };
328
+ DeleteButton.style = DeleteButtonStyle0;
329
+
330
+ const deleteDialogCss = ":host{display:block}.delete-modal{position:fixed}";
331
+ const DeleteDialogStyle0 = deleteDialogCss;
332
+
333
+ const DeleteDialog = class {
334
+ constructor(hostRef) {
335
+ registerInstance(this, hostRef);
336
+ this.editsComplete = createEvent(this, "editsComplete", 7);
337
+ this.deleteDialogClose = createEvent(this, "deleteDialogClose", 7);
338
+ this.ids = [];
339
+ this.layer = undefined;
340
+ this.open = false;
341
+ this._isDeleting = false;
342
+ this._translations = undefined;
343
+ }
344
+ get el() { return getElement(this); }
345
+ //--------------------------------------------------------------------------
346
+ //
347
+ // Properties (protected)
348
+ //
349
+ //--------------------------------------------------------------------------
350
+ //--------------------------------------------------------------------------
351
+ //
352
+ // Watch handlers
353
+ //
354
+ //--------------------------------------------------------------------------
355
+ //--------------------------------------------------------------------------
356
+ //
357
+ // Methods (public)
358
+ //
359
+ //--------------------------------------------------------------------------
360
+ //--------------------------------------------------------------------------
361
+ //
362
+ // Events (public)
363
+ //
364
+ //--------------------------------------------------------------------------
365
+ /**
366
+ * Emitted on demand when features have been deleted
367
+ */
368
+ editsComplete;
369
+ /**
370
+ * Emitted on demand when features have been deleted
371
+ */
372
+ deleteDialogClose;
373
+ //--------------------------------------------------------------------------
374
+ //
375
+ // Functions (lifecycle)
376
+ //
377
+ //--------------------------------------------------------------------------
378
+ /**
379
+ * StencilJS: Called once just after the component is first connected to the DOM.
380
+ *
381
+ * @returns Promise when complete
382
+ */
383
+ async componentWillLoad() {
384
+ await this._getTranslations();
385
+ }
386
+ /**
387
+ * Renders the component.
388
+ */
389
+ render() {
390
+ const confirmMessage = this.ids.length === 1 ? this._translations?.confirmSingle :
391
+ this._translations?.confirmMultiple;
392
+ 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))));
393
+ }
394
+ //--------------------------------------------------------------------------
395
+ //
396
+ // Functions (protected)
397
+ //
398
+ //--------------------------------------------------------------------------
399
+ /**
400
+ * Delete the currently selected features
401
+ */
402
+ async _deleteFeatures() {
403
+ this._isDeleting = true;
404
+ const deleteFeatures = this.ids.map((objectId) => {
405
+ return { objectId };
406
+ });
407
+ await this.layer.applyEdits({
408
+ deleteFeatures
409
+ });
410
+ this._isDeleting = false;
411
+ this._close();
412
+ this.editsComplete.emit("delete");
413
+ }
414
+ /**
415
+ * Set the alertOpen member to false when the alert is closed
416
+ */
417
+ _close() {
418
+ this.open = false;
419
+ this.deleteDialogClose.emit();
420
+ }
421
+ /**
422
+ * Fetches the component's translations
423
+ *
424
+ * @returns Promise when complete
425
+ * @protected
426
+ */
427
+ async _getTranslations() {
428
+ const messages = await getLocaleComponentStrings(this.el);
429
+ this._translations = messages[0];
430
+ }
431
+ };
432
+ DeleteDialog.style = DeleteDialogStyle0;
433
+
434
+ export { Shell as calcite_shell, DeleteButton as delete_button, DeleteDialog as delete_dialog };
@@ -6,12 +6,12 @@
6
6
  import { r as registerInstance, c as createEvent, g as getElement, h, H as Host } from './index-904bc599.js';
7
7
  import { g as getLocaleComponentStrings, l as loadModules } from './locale-0d06fca0.js';
8
8
  import { g as getLayerOrTable, q as queryFeaturesByID, e as goToSelection, f as queryAllIds, i as queryAllOidsWithQueryFeatures, j as queryFeaturesByGlobalID, c as getFeatureLayerView } from './mapViewUtils-f54edae3.js';
9
- import { d as downloadCSV } from './downloadUtils-e266e98d.js';
9
+ import { d as downloadCSV } from './downloadUtils-bc7a4ba1.js';
10
10
  import './esri-loader-c6842c6b.js';
11
11
  import './_commonjsHelpers-089957fe.js';
12
12
  import './interfaces-659e3836.js';
13
- import './solution-resource-f5809979.js';
14
13
  import './index-e14fade9.js';
14
+ import './solution-resource-f5809979.js';
15
15
  import './restHelpersGet-48113381.js';
16
16
 
17
17
  const cardManagerCss = ":host{display:block !important}.display-flex{display:flex}.display-none{display:none}.w-100{width:100%}.padding-bottom-1{padding-bottom:1rem}.padding-1{padding:1rem}.position-relative{position:relative}.focus-margin{margin:1px 1px 0px 1px}.overflow-auto{overflow:auto}.height-full{height:100%}.position-static{position:static !important}.z-index-500{z-index:500 !important}card-manager{display:block}";
@@ -201,7 +201,7 @@ const CardManager = class {
201
201
  };
202
202
  CardManager.style = CardManagerStyle0;
203
203
 
204
- const layerTableCss = ":host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{font-size:14px !important;color:var(--calcite-color-text-3) !important}.share-action{position:absolute;right:0}html[dir=\"rtl\"] .share-action{left:0}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.instant-app-share{height:50px !important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding:0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1) !important}.search{--calcite-color-border-input:var(--calcite-color-border-3);width:60%;padding:10px}";
204
+ const layerTableCss = ":host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=\"rtl\"] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{font-size:14px !important;color:var(--calcite-color-text-3) !important}.share-action{position:absolute;right:0}html[dir=\"rtl\"] .share-action{left:0}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.instant-app-share{height:50px !important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding:0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1) !important}.search{--calcite-color-border-input:var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color:var(--calcite-color-status-danger);--calcite-color-text-1:var(--calcite-color-status-danger);--calcite-color-text-3:var(--calcite-color-status-danger)}";
205
205
  const LayerTableStyle0 = layerTableCss;
206
206
 
207
207
  const LayerTable = class {
@@ -238,6 +238,7 @@ const LayerTable = class {
238
238
  this._filterOpen = false;
239
239
  this._layer = undefined;
240
240
  this._selectAllActive = false;
241
+ this._deleteDialogOpen = false;
241
242
  this._showHideOpen = false;
242
243
  this._showOnlySelected = false;
243
244
  this._toolInfos = undefined;
@@ -705,11 +706,12 @@ const LayerTable = class {
705
706
  const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
706
707
  const showSearch = this._canShowFullTextSearch();
707
708
  this._validateActiveActions();
708
- return (h(Host, { key: 'aa79d91e6c569393334a38f937a493de227a0e5b' }, h("calcite-shell", { key: '4b7460fc764c5a6027ad5aa8da826bd188e5490e' }, this._getTableControlRow("header"), h("div", { key: '66ea361c6c2c3a5d05c4403a5d3dd1dea5a9e70b', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'b213a696294c94504f394b54082f0183b46691ce', class: "height-full width-full" }, showSearch &&
709
- h("div", { key: '866dd2a69bc9e504b459ca8639d13f5babfa65fa', class: "search-container" }, h("calcite-input", { key: '26f80276d08106981ef8c769fd4334528a37d881', class: "search", clearable: true, icon: "search", onCalciteInputChange: (evt) => void this._searchTextChanged(evt), placeholder: this._searchPlaceHolder, title: this._searchPlaceHolder, type: "search" })), h("calcite-loader", { key: 'a3d2e215cee3e370ef5645b6422c95eef32beedf', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: 'e48c86ee1ebcc23121eab08903e55cc41270c4c8', class: tableNodeClass, ref: this.onTableNodeCreate }))), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
709
+ return (h(Host, { key: '04fccaaa9862ed315d99ad74f7e1135dd5656613' }, h("calcite-shell", { key: 'e332d781be1499857a5e17e37ad2e058bba453b1' }, this._getTableControlRow("header"), h("div", { key: '6337e494f879c250494c5f5859daec627fdd0700', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'd0d437997906fd15f97765cb89c3917f66b20c37', class: "height-full width-full" }, showSearch &&
710
+ h("div", { key: '596a2d54fd707941d9e2ec167598313d9ee9b295', class: "search-container" }, h("calcite-input", { key: '31cd1ffb09bc2c6c9c1f9daf39f3e9549cbceeb2', class: "search", clearable: true, icon: "search", onCalciteInputChange: (evt) => void this._searchTextChanged(evt), placeholder: this._searchPlaceHolder, title: this._searchPlaceHolder, type: "search" })), h("calcite-loader", { key: 'b4ba3d32fb346134672e08d55428bd38ac43f40d', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '4fbac73935be7a1163643543e6d77a200534e5e3', class: tableNodeClass, ref: this.onTableNodeCreate }))), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
710
711
  .replace("{{total}}", total)
711
- .replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal()));
712
+ .replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal(), h("delete-dialog", { key: '3b0dba8bc391d777f4687ad6f4e905aeb1eb580b', id: "deleteDialogId", ids: this._getIds(), layer: this._layer, onDeleteDialogClose: () => this._deleteDialogOpen = false, open: this._deleteDialogOpen, ref: (el) => this._deleteDialog = el })));
712
713
  }
714
+ _deleteDialog;
713
715
  /**
714
716
  * Called once after the component is loaded
715
717
  */
@@ -1012,7 +1014,7 @@ const LayerTable = class {
1012
1014
  icon: "trash",
1013
1015
  indicator: undefined,
1014
1016
  label: this._translations.delete,
1015
- func: () => undefined,
1017
+ func: () => this._showDelete(),
1016
1018
  disabled: !featuresSelected,
1017
1019
  isDanger: true,
1018
1020
  isOverflow: false
@@ -1252,7 +1254,7 @@ const LayerTable = class {
1252
1254
  _getDropdown(id) {
1253
1255
  const dropdownItems = this._getDropdownItems();
1254
1256
  return dropdownItems.length > 0 ? (h("calcite-dropdown", { closeOnSelectDisabled: true, disabled: this._layer === undefined, id: "solutions-more", onCalciteDropdownBeforeClose: () => this._forceShowHide(), ref: (el) => this._moreDropdown = el }, h("calcite-action", { appearance: "solid", id: id, label: "", onClick: () => this._closeShowHide(), slot: "trigger", text: "" }, h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), h("calcite-dropdown-group", { "selection-mode": "none" }, dropdownItems.map(item => {
1255
- return (h("calcite-dropdown-group", { class: item.disabled ? "disabled" : "", selectionMode: "none" }, h("calcite-dropdown-item", { disabled: item.loading, iconStart: item.isSublist && this._showHideOpen ? "chevron-down" : item.loading ? "" : item.icon, id: `layer-table-${item.icon}`, onClick: item.func }, item.loading ? (h("div", { class: "display-flex" }, h("calcite-loader", { inline: true, label: item.label, scale: "m" }), item.label)) : item.label)));
1257
+ return (h("calcite-dropdown-group", { class: `${item.disabled ? "disabled" : ""} ${item.icon === "trash" ? "delete-red" : ""}`, selectionMode: "none" }, h("calcite-dropdown-item", { disabled: item.loading, iconStart: item.isSublist && this._showHideOpen ? "chevron-down" : item.loading ? "" : item.icon, id: `layer-table-${item.icon}`, onClick: item.func }, item.loading ? (h("div", { class: "display-flex" }, h("calcite-loader", { inline: true, label: item.label, scale: "m" }), item.label)) : item.label)));
1256
1258
  })), this._showHideOpen ? this._getFieldlist() : undefined)) : undefined;
1257
1259
  }
1258
1260
  /**
@@ -1277,6 +1279,15 @@ const LayerTable = class {
1277
1279
  const _disabled = this._layer === undefined ? true : disabled;
1278
1280
  return (h("div", { class: "display-flex", id: this._getId(icon), slot: slot }, h("calcite-action", { active: active, appearance: "solid", disabled: _disabled, icon: icon, id: `layer-table-${icon}`, indicator: indicator, label: label, loading: loading, onClick: func, text: label, textEnabled: true }), this._getToolTip("bottom", icon, label)));
1279
1281
  }
1282
+ /**
1283
+ * Show the delete dialog
1284
+ *
1285
+ * @param
1286
+ *
1287
+ */
1288
+ _showDelete() {
1289
+ this._deleteDialogOpen = true;
1290
+ }
1280
1291
  /**
1281
1292
  * Get an action and tooltip for share
1282
1293
  *
@@ -1353,7 +1364,7 @@ const LayerTable = class {
1353
1364
  */
1354
1365
  _getDangerAction(icon, label, func, disabled) {
1355
1366
  const _disabled = this._layer === undefined ? true : disabled;
1356
- return (h("div", { class: "display-flex", id: this._getId(icon) }, icon === "trash" ? (h("delete-button", { buttonType: "action", class: "display-flex", disabled: _disabled, icon: icon, ids: this._getIds(), layer: this._layer })) : (h("calcite-action", { appearance: "solid", disabled: _disabled, id: icon, onClick: func, text: label }, h("calcite-button", { appearance: "transparent", iconStart: icon, kind: "danger" }, label))), this._getToolTip("bottom", icon, label)));
1367
+ return (h("div", { class: "display-flex", id: this._getId(icon) }, icon === "trash" ? (h("delete-button", { buttonType: "action", class: "display-flex", disabled: _disabled, icon: icon, id: "solutions-delete", ids: this._getIds(), layer: this._layer })) : (h("calcite-action", { appearance: "solid", disabled: _disabled, id: icon, onClick: func, text: label }, h("calcite-button", { appearance: "transparent", iconStart: icon, kind: "danger" }, label))), this._getToolTip("bottom", icon, label)));
1357
1368
  }
1358
1369
  /**
1359
1370
  * Return all currently selected IDs from the table
@@ -1361,7 +1372,7 @@ const LayerTable = class {
1361
1372
  * @param number[] the selected ids
1362
1373
  */
1363
1374
  _getIds() {
1364
- return this._table.highlightIds.toArray();
1375
+ return this._table?.highlightIds?.toArray();
1365
1376
  }
1366
1377
  /**
1367
1378
  * Store a reference to the table node after it's first created
@@ -2424,7 +2435,7 @@ const MapCard = class {
2424
2435
  const mapHeightClass = this.mapInfos?.length > 1 || this.isMapLayout ? "map-height" : "height-full";
2425
2436
  const progressClass = this.isMapLayout ? "" : "display-none";
2426
2437
  this._validateActiveActions();
2427
- return (h(Host, { key: '790599924cf104116f6961380103aef7c55e6d76' }, h("div", { key: '5467a5d4e3998807fdf243ada3088dba8e69941f', class: `${mapContainerClass} width-full`, ref: (el) => this._toolbar = el }, this._getActionBar(), !this.isMobile && this.isMapLayout && this._getDropdown("more-table-options"), this.enableShare && !this.isMobile && this.isMapLayout ? this._getShare("share") : undefined), h("calcite-progress", { key: '5c82042e0206be05e12d29ba588b26344b1017b8', class: progressClass, value: 0 }), h("div", { key: '0831bc4593f5a7680a8599a9868990734cb013b9', class: `${mapHeightClass} ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { key: '5bbf14428cc845d8b889e72d707672250f820686', basemapConfig: this.basemapConfig, class: `box-shadow ${themeClass}`, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, enableSingleExpand: this.enableSingleExpand, homeZoomToolsSize: this.homeZoomToolsSize, mapView: this.mapView, mapWidgetsSize: this.mapWidgetsSize, position: this.mapWidgetsPosition, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration, stackTools: this.stackTools, toolOrder: this.toolOrder })));
2438
+ return (h(Host, { key: 'd4e5ff9c4aa08a4effe19a54a1a48463cb8b3774' }, h("div", { key: '51ee35d267d5ef081a4c160de3e03b1790d328c8', class: `${mapContainerClass} width-full`, ref: (el) => this._toolbar = el }, this._getActionBar(), !this.isMobile && this.isMapLayout && this._getDropdown("more-table-options"), this.enableShare && !this.isMobile && this.isMapLayout ? this._getShare("share") : undefined), h("calcite-progress", { key: '70a5c232aae8a9ff6740fd326e6ba6fe61936541', class: progressClass, value: 0 }), h("div", { key: 'c399acc019d7f0a16dbb644eee4cfdd1e6e83c7c', class: `${mapHeightClass} ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { key: 'c6a88ccfa140fe9b0d059f74b9254af6ef0997ce', basemapConfig: this.basemapConfig, class: `box-shadow ${themeClass}`, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, enableSingleExpand: this.enableSingleExpand, homeZoomToolsSize: this.homeZoomToolsSize, mapView: this.mapView, mapWidgetsSize: this.mapWidgetsSize, position: this.mapWidgetsPosition, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration, stackTools: this.stackTools, toolOrder: this.toolOrder })));
2428
2439
  }
2429
2440
  /**
2430
2441
  * Called each time after the component is loaded