@esri/solutions-components 0.10.33 → 0.10.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (300) 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 +114 -10
  10. package/dist/cjs/crowdsource-manager.cjs.entry.js +16 -6
  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/instant-apps-time-filter.cjs.entry.js +2 -2
  17. package/dist/cjs/layout-manager.cjs.entry.js +1 -1
  18. package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
  21. package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
  22. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  23. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  24. package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
  25. package/dist/cjs/share-item.cjs.entry.js +1 -1
  26. package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
  27. package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
  28. package/dist/cjs/solution-item-accordion.cjs.entry.js +1 -1
  29. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  30. package/dist/cjs/solutions-components.cjs.js +1 -1
  31. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  32. package/dist/collection/assets/t9n/delete-dialog/resources.json +8 -0
  33. package/dist/collection/assets/t9n/delete-dialog/resources_ar.json +8 -0
  34. package/dist/collection/assets/t9n/delete-dialog/resources_bg.json +8 -0
  35. package/dist/collection/assets/t9n/delete-dialog/resources_bs.json +8 -0
  36. package/dist/collection/assets/t9n/delete-dialog/resources_ca.json +8 -0
  37. package/dist/collection/assets/t9n/delete-dialog/resources_cs.json +8 -0
  38. package/dist/collection/assets/t9n/delete-dialog/resources_da.json +8 -0
  39. package/dist/collection/assets/t9n/delete-dialog/resources_de.json +8 -0
  40. package/dist/collection/assets/t9n/delete-dialog/resources_el.json +8 -0
  41. package/dist/collection/assets/t9n/delete-dialog/resources_en.json +8 -0
  42. package/dist/collection/assets/t9n/delete-dialog/resources_es.json +8 -0
  43. package/dist/collection/assets/t9n/delete-dialog/resources_et.json +8 -0
  44. package/dist/collection/assets/t9n/delete-dialog/resources_fi.json +8 -0
  45. package/dist/collection/assets/t9n/delete-dialog/resources_fr.json +8 -0
  46. package/dist/collection/assets/t9n/delete-dialog/resources_he.json +8 -0
  47. package/dist/collection/assets/t9n/delete-dialog/resources_hr.json +8 -0
  48. package/dist/collection/assets/t9n/delete-dialog/resources_hu.json +8 -0
  49. package/dist/collection/assets/t9n/delete-dialog/resources_id.json +8 -0
  50. package/dist/collection/assets/t9n/delete-dialog/resources_it.json +8 -0
  51. package/dist/collection/assets/t9n/delete-dialog/resources_ja.json +8 -0
  52. package/dist/collection/assets/t9n/delete-dialog/resources_ko.json +8 -0
  53. package/dist/collection/assets/t9n/delete-dialog/resources_lt.json +8 -0
  54. package/dist/collection/assets/t9n/delete-dialog/resources_lv.json +8 -0
  55. package/dist/collection/assets/t9n/delete-dialog/resources_nb.json +8 -0
  56. package/dist/collection/assets/t9n/delete-dialog/resources_nl.json +8 -0
  57. package/dist/collection/assets/t9n/delete-dialog/resources_pl.json +8 -0
  58. package/dist/collection/assets/t9n/delete-dialog/resources_pt-BR.json +8 -0
  59. package/dist/collection/assets/t9n/delete-dialog/resources_pt-PT.json +8 -0
  60. package/dist/collection/assets/t9n/delete-dialog/resources_ro.json +8 -0
  61. package/dist/collection/assets/t9n/delete-dialog/resources_ru.json +8 -0
  62. package/dist/collection/assets/t9n/delete-dialog/resources_sk.json +8 -0
  63. package/dist/collection/assets/t9n/delete-dialog/resources_sl.json +8 -0
  64. package/dist/collection/assets/t9n/delete-dialog/resources_sr.json +8 -0
  65. package/dist/collection/assets/t9n/delete-dialog/resources_sv.json +8 -0
  66. package/dist/collection/assets/t9n/delete-dialog/resources_th.json +8 -0
  67. package/dist/collection/assets/t9n/delete-dialog/resources_tr.json +8 -0
  68. package/dist/collection/assets/t9n/delete-dialog/resources_uk.json +8 -0
  69. package/dist/collection/assets/t9n/delete-dialog/resources_vi.json +8 -0
  70. package/dist/collection/assets/t9n/delete-dialog/resources_zh-CN.json +8 -0
  71. package/dist/collection/assets/t9n/delete-dialog/resources_zh-HK.json +8 -0
  72. package/dist/collection/assets/t9n/delete-dialog/resources_zh-TW.json +8 -0
  73. package/dist/collection/assets/t9n/map-card/resources.json +2 -1
  74. package/dist/collection/assets/t9n/map-card/resources_en.json +2 -1
  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 +38 -5
  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 +53 -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 +168 -2
  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 +1 -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/components/card-manager2.js +40 -34
  128. package/dist/components/create-feature2.js +4 -2
  129. package/dist/components/crowdsource-manager.js +115 -98
  130. package/dist/components/crowdsource-reporter.js +110 -101
  131. package/dist/components/delete-button2.js +24 -41
  132. package/dist/components/delete-dialog.d.ts +11 -0
  133. package/dist/components/delete-dialog.js +11 -0
  134. package/dist/components/delete-dialog2.js +165 -0
  135. package/dist/components/edit-card2.js +1 -1
  136. package/dist/components/feature-comments.js +1 -1
  137. package/dist/components/feature-details2.js +67 -59
  138. package/dist/components/feature-form-flow-item.js +1 -1
  139. package/dist/components/feature-list2.js +4 -4
  140. package/dist/components/features-flow-item.js +1 -1
  141. package/dist/components/floor-filter2.js +1 -1
  142. package/dist/components/info-card2.js +38 -32
  143. package/dist/components/instant-apps-time-filter.js +2 -2
  144. package/dist/components/json-editor2.js +1 -1
  145. package/dist/components/layer-list2.js +5 -5
  146. package/dist/components/layer-table2.js +111 -82
  147. package/dist/components/layout-manager.js +1 -1
  148. package/dist/components/list-flow-item.js +1 -1
  149. package/dist/components/location-flow-item.js +1 -1
  150. package/dist/components/map-card2.js +157 -60
  151. package/dist/components/map-draw-tools2.js +1 -1
  152. package/dist/components/map-fullscreen2.js +1 -1
  153. package/dist/components/map-layer-picker2.js +1 -1
  154. package/dist/components/map-legend2.js +1 -1
  155. package/dist/components/map-picker2.js +1 -1
  156. package/dist/components/map-search2.js +1 -1
  157. package/dist/components/map-select-tools2.js +1 -1
  158. package/dist/components/map-tools2.js +1 -1
  159. package/dist/components/pci-calculator.js +1 -1
  160. package/dist/components/pdf-download2.js +1 -1
  161. package/dist/components/public-notification.js +1 -1
  162. package/dist/components/refine-results-flow-item.js +1 -1
  163. package/dist/components/refine-selection2.js +1 -1
  164. package/dist/components/share-item.js +1 -1
  165. package/dist/components/solution-configuration.js +3 -3
  166. package/dist/components/solution-contents2.js +1 -1
  167. package/dist/components/solution-item-accordion.js +1 -1
  168. package/dist/components/solution-item-details2.js +1 -1
  169. package/dist/components/solution-item-icon2.js +1 -1
  170. package/dist/components/solution-item-sharing2.js +1 -1
  171. package/dist/components/solution-item2.js +1 -1
  172. package/dist/components/solution-organization-variables2.js +1 -1
  173. package/dist/components/solution-resource-item2.js +1 -1
  174. package/dist/components/solution-spatial-ref2.js +1 -1
  175. package/dist/components/solution-template-data2.js +1 -1
  176. package/dist/components/solution-variables2.js +1 -1
  177. package/dist/components/spatial-ref.js +1 -1
  178. package/dist/esm/basemap-gallery_7.entry.js +6 -6
  179. package/dist/esm/buffer-tools_3.entry.js +1 -1
  180. package/dist/esm/calcite-alert_5.entry.js +7 -5
  181. package/dist/esm/calcite-combobox_3.entry.js +1 -1
  182. package/dist/esm/calcite-flow_4.entry.js +18 -16
  183. package/dist/esm/{calcite-modal_3.entry.js → calcite-modal.entry.js} +30 -369
  184. package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
  185. package/dist/esm/calcite-shell_3.entry.js +434 -0
  186. package/dist/esm/card-manager_3.entry.js +114 -10
  187. package/dist/esm/crowdsource-manager.entry.js +16 -6
  188. package/dist/esm/crowdsource-reporter.entry.js +24 -21
  189. package/dist/esm/feature-comments.entry.js +1 -1
  190. package/dist/esm/feature-form-flow-item.entry.js +1 -1
  191. package/dist/esm/feature-list.entry.js +4 -4
  192. package/dist/esm/features-flow-item.entry.js +1 -1
  193. package/dist/esm/instant-apps-time-filter.entry.js +2 -2
  194. package/dist/esm/layout-manager.entry.js +1 -1
  195. package/dist/esm/list-flow-item.entry.js +1 -1
  196. package/dist/esm/loader.js +1 -1
  197. package/dist/esm/location-flow-item.entry.js +1 -1
  198. package/dist/esm/map-select-tools_3.entry.js +3 -3
  199. package/dist/esm/pci-calculator.entry.js +1 -1
  200. package/dist/esm/public-notification.entry.js +1 -1
  201. package/dist/esm/refine-results-flow-item.entry.js +1 -1
  202. package/dist/esm/share-item.entry.js +1 -1
  203. package/dist/esm/solution-configuration.entry.js +3 -3
  204. package/dist/esm/solution-contents_3.entry.js +3 -3
  205. package/dist/esm/solution-item-accordion.entry.js +1 -1
  206. package/dist/esm/solution-item-icon.entry.js +1 -1
  207. package/dist/esm/solutions-components.js +1 -1
  208. package/dist/esm/spatial-ref.entry.js +1 -1
  209. package/dist/solutions-components/assets/t9n/delete-dialog/resources.json +8 -0
  210. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ar.json +8 -0
  211. package/dist/solutions-components/assets/t9n/delete-dialog/resources_bg.json +8 -0
  212. package/dist/solutions-components/assets/t9n/delete-dialog/resources_bs.json +8 -0
  213. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ca.json +8 -0
  214. package/dist/solutions-components/assets/t9n/delete-dialog/resources_cs.json +8 -0
  215. package/dist/solutions-components/assets/t9n/delete-dialog/resources_da.json +8 -0
  216. package/dist/solutions-components/assets/t9n/delete-dialog/resources_de.json +8 -0
  217. package/dist/solutions-components/assets/t9n/delete-dialog/resources_el.json +8 -0
  218. package/dist/solutions-components/assets/t9n/delete-dialog/resources_en.json +8 -0
  219. package/dist/solutions-components/assets/t9n/delete-dialog/resources_es.json +8 -0
  220. package/dist/solutions-components/assets/t9n/delete-dialog/resources_et.json +8 -0
  221. package/dist/solutions-components/assets/t9n/delete-dialog/resources_fi.json +8 -0
  222. package/dist/solutions-components/assets/t9n/delete-dialog/resources_fr.json +8 -0
  223. package/dist/solutions-components/assets/t9n/delete-dialog/resources_he.json +8 -0
  224. package/dist/solutions-components/assets/t9n/delete-dialog/resources_hr.json +8 -0
  225. package/dist/solutions-components/assets/t9n/delete-dialog/resources_hu.json +8 -0
  226. package/dist/solutions-components/assets/t9n/delete-dialog/resources_id.json +8 -0
  227. package/dist/solutions-components/assets/t9n/delete-dialog/resources_it.json +8 -0
  228. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ja.json +8 -0
  229. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ko.json +8 -0
  230. package/dist/solutions-components/assets/t9n/delete-dialog/resources_lt.json +8 -0
  231. package/dist/solutions-components/assets/t9n/delete-dialog/resources_lv.json +8 -0
  232. package/dist/solutions-components/assets/t9n/delete-dialog/resources_nb.json +8 -0
  233. package/dist/solutions-components/assets/t9n/delete-dialog/resources_nl.json +8 -0
  234. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pl.json +8 -0
  235. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pt-BR.json +8 -0
  236. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pt-PT.json +8 -0
  237. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ro.json +8 -0
  238. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ru.json +8 -0
  239. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sk.json +8 -0
  240. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sl.json +8 -0
  241. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sr.json +8 -0
  242. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sv.json +8 -0
  243. package/dist/solutions-components/assets/t9n/delete-dialog/resources_th.json +8 -0
  244. package/dist/solutions-components/assets/t9n/delete-dialog/resources_tr.json +8 -0
  245. package/dist/solutions-components/assets/t9n/delete-dialog/resources_uk.json +8 -0
  246. package/dist/solutions-components/assets/t9n/delete-dialog/resources_vi.json +8 -0
  247. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-CN.json +8 -0
  248. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-HK.json +8 -0
  249. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-TW.json +8 -0
  250. package/dist/solutions-components/assets/t9n/map-card/resources.json +2 -1
  251. package/dist/solutions-components/assets/t9n/map-card/resources_en.json +2 -1
  252. package/dist/solutions-components/{p-6c3261d7.entry.js → p-06364211.entry.js} +1 -1
  253. package/dist/solutions-components/{p-d119872d.entry.js → p-18089a0b.entry.js} +1 -1
  254. package/dist/solutions-components/p-1f07e21a.entry.js +6 -0
  255. package/dist/solutions-components/p-2a6ecaa9.entry.js +11 -0
  256. package/dist/solutions-components/p-3a513c67.entry.js +6 -0
  257. package/dist/solutions-components/p-46416e11.entry.js +6 -0
  258. package/dist/solutions-components/{p-a8525233.entry.js → p-588adf13.entry.js} +1 -1
  259. package/dist/solutions-components/{p-5fc0e134.entry.js → p-59ccd27c.entry.js} +1 -1
  260. package/dist/solutions-components/p-5eb9a413.entry.js +6 -0
  261. package/dist/solutions-components/{p-42f75c8f.entry.js → p-6502d0f8.entry.js} +1 -1
  262. package/dist/solutions-components/p-70c0050c.entry.js +6 -0
  263. package/dist/solutions-components/p-74bcef23.entry.js +11 -0
  264. package/dist/solutions-components/{p-4cb12506.entry.js → p-76154700.entry.js} +1 -1
  265. package/dist/solutions-components/p-82ddf716.entry.js +6 -0
  266. package/dist/solutions-components/{p-d08ece15.entry.js → p-841816a1.entry.js} +1 -1
  267. package/dist/solutions-components/{p-4f5913f3.entry.js → p-89046451.entry.js} +1 -1
  268. package/dist/solutions-components/p-938bc915.entry.js +6 -0
  269. package/dist/solutions-components/{p-fa7672c7.entry.js → p-9d56f4b5.entry.js} +1 -1
  270. package/dist/solutions-components/p-9da8a590.entry.js +6 -0
  271. package/dist/solutions-components/{p-5fdb8f83.entry.js → p-a5d79c86.entry.js} +1 -1
  272. package/dist/solutions-components/{p-dd0bd439.entry.js → p-b4c49411.entry.js} +2 -2
  273. package/dist/solutions-components/p-b86b2664.entry.js +6 -0
  274. package/dist/solutions-components/{p-ddc1218d.entry.js → p-be4c7ffd.entry.js} +1 -1
  275. package/dist/solutions-components/{p-ffa9a117.entry.js → p-cb3199f9.entry.js} +1 -1
  276. package/dist/solutions-components/{p-a07322cc.entry.js → p-df7de4b7.entry.js} +1 -1
  277. package/dist/solutions-components/{p-1f072e2c.entry.js → p-eadff42b.entry.js} +1 -1
  278. package/dist/solutions-components/{p-8a411917.entry.js → p-ecf642c2.entry.js} +1 -1
  279. package/dist/solutions-components/{p-06db1bfd.entry.js → p-efb4cb43.entry.js} +1 -1
  280. package/dist/solutions-components/{p-e4a42efa.entry.js → p-fa1c368c.entry.js} +1 -1
  281. package/dist/solutions-components/solutions-components.esm.js +1 -1
  282. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
  283. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +6 -1
  284. package/dist/types/components/delete-button/delete-button.d.ts +4 -12
  285. package/dist/types/components/delete-dialog/delete-dialog.d.ts +75 -0
  286. package/dist/types/components/layer-table/layer-table.d.ts +21 -1
  287. package/dist/types/components/map-card/map-card.d.ts +46 -1
  288. package/dist/types/components.d.ts +117 -0
  289. package/dist/types/preact.d.ts +5 -0
  290. package/package.json +2 -2
  291. package/dist/solutions-components/p-084719d6.entry.js +0 -6
  292. package/dist/solutions-components/p-3bcdf332.entry.js +0 -6
  293. package/dist/solutions-components/p-51e2500f.entry.js +0 -6
  294. package/dist/solutions-components/p-52280e10.entry.js +0 -17
  295. package/dist/solutions-components/p-67ca4a64.entry.js +0 -6
  296. package/dist/solutions-components/p-710bd9ec.entry.js +0 -6
  297. package/dist/solutions-components/p-7e6a8c06.entry.js +0 -6
  298. package/dist/solutions-components/p-8e6081e0.entry.js +0 -6
  299. package/dist/solutions-components/p-b9b77b87.entry.js +0 -6
  300. 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 };