@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,440 @@
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
+ 'use strict';
7
+
8
+ Object.defineProperty(exports, '__esModule', { value: true });
9
+
10
+ const index = require('./index-4b68e4b4.js');
11
+ const conditionalSlot = require('./conditionalSlot-37ff4832.js');
12
+ const dom = require('./dom-795d4a33.js');
13
+ const locale = require('./locale-339b55f0.js');
14
+ require('./observers-18d87cb5.js');
15
+ require('./browser-333a21c5.js');
16
+ require('./guid-e84a8375.js');
17
+ require('./resources-18f799c7.js');
18
+ require('./esri-loader-08dc41bd.js');
19
+ require('./_commonjsHelpers-baf43783.js');
20
+
21
+ /*!
22
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
23
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
24
+ * v2.13.0
25
+ */
26
+ const CSS = {
27
+ main: "main",
28
+ content: "content",
29
+ contentBehind: "content--behind",
30
+ contentBottom: "content-bottom",
31
+ contentNonInteractive: "content--non-interactive",
32
+ footer: "footer",
33
+ positionedSlotWrapper: "positioned-slot-wrapper",
34
+ container: "container",
35
+ contentBehindCenterContent: "center-content",
36
+ };
37
+ const SLOTS = {
38
+ centerRow: "center-row",
39
+ panelStart: "panel-start",
40
+ panelEnd: "panel-end",
41
+ panelTop: "panel-top",
42
+ panelBottom: "panel-bottom",
43
+ header: "header",
44
+ footer: "footer",
45
+ alerts: "alerts",
46
+ sheets: "sheets",
47
+ modals: "modals",
48
+ dialogs: "dialogs",
49
+ };
50
+
51
+ 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}";
52
+ const CalciteShellStyle0 = shellCss;
53
+
54
+ const Shell = class {
55
+ constructor(hostRef) {
56
+ index.registerInstance(this, hostRef);
57
+ // --------------------------------------------------------------------------
58
+ //
59
+ // Private Methods
60
+ //
61
+ // --------------------------------------------------------------------------
62
+ this.handleHeaderSlotChange = (event) => {
63
+ this.hasHeader = !!dom.slotChangeHasAssignedElement(event);
64
+ };
65
+ this.handleFooterSlotChange = (event) => {
66
+ this.hasFooter = !!dom.slotChangeHasAssignedElement(event);
67
+ };
68
+ this.handleAlertsSlotChange = (event) => {
69
+ this.hasAlerts = !!dom.slotChangeHasAssignedElement(event);
70
+ dom.slotChangeGetAssignedElements(event)?.map((el) => {
71
+ if (el.tagName === "CALCITE-ALERT") {
72
+ el.embedded = true;
73
+ }
74
+ });
75
+ };
76
+ this.handleSheetsSlotChange = (event) => {
77
+ this.hasSheets = !!dom.slotChangeHasAssignedElement(event);
78
+ dom.slotChangeGetAssignedElements(event)?.map((el) => {
79
+ if (el.tagName === "CALCITE-SHEET") {
80
+ el.embedded = true;
81
+ }
82
+ });
83
+ };
84
+ this.handleModalsSlotChange = (event) => {
85
+ this.hasModals = !!dom.slotChangeHasAssignedElement(event);
86
+ dom.slotChangeGetAssignedElements(event)?.map((el) => {
87
+ if (el.tagName === "CALCITE-MODAL") {
88
+ el.embedded = true;
89
+ }
90
+ });
91
+ };
92
+ this.handlePanelTopChange = (event) => {
93
+ this.hasPanelTop = dom.slotChangeHasAssignedElement(event);
94
+ };
95
+ this.handlePanelBottomChange = (event) => {
96
+ this.hasPanelBottom = dom.slotChangeHasAssignedElement(event);
97
+ };
98
+ this.handleDialogsSlotChange = (event) => {
99
+ this.hasDialogs = !!dom.slotChangeHasAssignedElement(event);
100
+ dom.slotChangeGetAssignedElements(event)?.map((el) => {
101
+ if (el.tagName === "CALCITE-DIALOG") {
102
+ el.embedded = true;
103
+ }
104
+ });
105
+ };
106
+ this.contentBehind = false;
107
+ this.hasHeader = false;
108
+ this.hasFooter = false;
109
+ this.hasAlerts = false;
110
+ this.hasModals = false;
111
+ this.hasDialogs = false;
112
+ this.hasSheets = false;
113
+ this.hasPanelTop = false;
114
+ this.hasPanelBottom = false;
115
+ this.hasOnlyPanelBottom = false;
116
+ this.panelIsResizing = false;
117
+ }
118
+ //--------------------------------------------------------------------------
119
+ //
120
+ // Event Listeners
121
+ //
122
+ //--------------------------------------------------------------------------
123
+ handleCalciteInternalShellPanelResizeStart(event) {
124
+ this.panelIsResizing = true;
125
+ event.stopPropagation();
126
+ }
127
+ handleCalciteInternalShellPanelResizeEnd(event) {
128
+ this.panelIsResizing = false;
129
+ event.stopPropagation();
130
+ }
131
+ updateHasOnlyPanelBottom() {
132
+ this.hasOnlyPanelBottom = !this.hasPanelTop && this.hasPanelBottom;
133
+ }
134
+ // --------------------------------------------------------------------------
135
+ //
136
+ // Lifecycle
137
+ //
138
+ // --------------------------------------------------------------------------
139
+ connectedCallback() {
140
+ conditionalSlot.connectConditionalSlotComponent(this);
141
+ }
142
+ disconnectedCallback() {
143
+ conditionalSlot.disconnectConditionalSlotComponent(this);
144
+ }
145
+ // --------------------------------------------------------------------------
146
+ //
147
+ // Render Methods
148
+ //
149
+ // --------------------------------------------------------------------------
150
+ renderHeader() {
151
+ return (index.h("div", { hidden: !this.hasHeader }, index.h("slot", { key: "header", name: SLOTS.header, onSlotchange: this.handleHeaderSlotChange })));
152
+ }
153
+ renderFooter() {
154
+ return (index.h("div", { class: CSS.footer, hidden: !this.hasFooter, key: "footer" }, index.h("slot", { name: SLOTS.footer, onSlotchange: this.handleFooterSlotChange })));
155
+ }
156
+ renderAlerts() {
157
+ return (index.h("div", { hidden: !this.hasAlerts }, index.h("slot", { key: "alerts", name: SLOTS.alerts, onSlotchange: this.handleAlertsSlotChange })));
158
+ }
159
+ renderSheets() {
160
+ return (index.h("div", { hidden: !this.hasSheets }, index.h("slot", { key: "sheets", name: SLOTS.sheets, onSlotchange: this.handleSheetsSlotChange })));
161
+ }
162
+ renderModals() {
163
+ return (index.h("div", { hidden: !this.hasModals }, index.h("slot", { key: "modals", name: SLOTS.modals, onSlotchange: this.handleModalsSlotChange })));
164
+ }
165
+ renderDialogs() {
166
+ return (index.h("div", { hidden: !this.hasDialogs }, index.h("slot", { key: "dialogs", name: SLOTS.dialogs, onSlotchange: this.handleDialogsSlotChange })));
167
+ }
168
+ renderContent() {
169
+ const { panelIsResizing } = this;
170
+ const defaultSlotNode = index.h("slot", { key: "default-slot" });
171
+ const defaultSlotContainerNode = panelIsResizing ? (index.h("div", { class: CSS.contentNonInteractive }, defaultSlotNode)) : (defaultSlotNode);
172
+ const deprecatedCenterRowSlotNode = (index.h("slot", { key: "center-row-slot", name: SLOTS.centerRow }));
173
+ const panelBottomSlotNode = (index.h("slot", { key: "panel-bottom-slot", name: SLOTS.panelBottom, onSlotchange: this.handlePanelBottomChange }));
174
+ const panelTopSlotNode = (index.h("slot", { key: "panel-top-slot", name: SLOTS.panelTop, onSlotchange: this.handlePanelTopChange }));
175
+ const contentContainerKey = "content-container";
176
+ const content = this.contentBehind
177
+ ? [
178
+ index.h("div", { class: {
179
+ [CSS.content]: true,
180
+ [CSS.contentBehind]: true,
181
+ }, key: contentContainerKey }, defaultSlotContainerNode),
182
+ index.h("div", { class: {
183
+ [CSS.contentBehindCenterContent]: true,
184
+ [CSS.contentBottom]: this.hasOnlyPanelBottom,
185
+ } }, panelTopSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
186
+ ]
187
+ : [
188
+ index.h("div", { class: { [CSS.content]: true, [CSS.contentBottom]: this.hasOnlyPanelBottom }, key: contentContainerKey }, panelTopSlotNode, defaultSlotContainerNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
189
+ ];
190
+ return content;
191
+ }
192
+ renderMain() {
193
+ return (index.h("div", { class: CSS.main }, index.h("slot", { name: SLOTS.panelStart }), this.renderContent(), index.h("slot", { name: SLOTS.panelEnd })));
194
+ }
195
+ renderPositionedSlots() {
196
+ return (index.h("div", { class: CSS.positionedSlotWrapper }, this.renderAlerts(), this.renderModals(), this.renderDialogs(), this.renderSheets()));
197
+ }
198
+ render() {
199
+ return (index.h(index.Fragment, { key: '6864b8b95b6edd871ad622b0d49a3f4a42a0a8a8' }, this.renderHeader(), this.renderMain(), this.renderFooter(), this.renderPositionedSlots()));
200
+ }
201
+ get el() { return index.getElement(this); }
202
+ static get watchers() { return {
203
+ "hasPanelTop": ["updateHasOnlyPanelBottom"],
204
+ "hasPanelBottom": ["updateHasOnlyPanelBottom"]
205
+ }; }
206
+ };
207
+ Shell.style = CalciteShellStyle0;
208
+
209
+ const deleteButtonCss = ":host{display:block}.delete-modal{position:fixed}";
210
+ const DeleteButtonStyle0 = deleteButtonCss;
211
+
212
+ const DeleteButton = class {
213
+ constructor(hostRef) {
214
+ index.registerInstance(this, hostRef);
215
+ this.editsComplete = index.createEvent(this, "editsComplete", 7);
216
+ this.deleteDialog = undefined;
217
+ this.buttonType = "button";
218
+ this.disabled = false;
219
+ this.icon = undefined;
220
+ this.ids = [];
221
+ this.layer = undefined;
222
+ this._confirmDelete = false;
223
+ this._deleteEndabled = false;
224
+ this._supportsDelete = undefined;
225
+ this._translations = undefined;
226
+ }
227
+ get el() { return index.getElement(this); }
228
+ //--------------------------------------------------------------------------
229
+ //
230
+ // Properties (protected)
231
+ //
232
+ //--------------------------------------------------------------------------
233
+ //--------------------------------------------------------------------------
234
+ //
235
+ // Watch handlers
236
+ //
237
+ //--------------------------------------------------------------------------
238
+ /**
239
+ * watch for changes in layer view and verify if it has editing enabled
240
+ */
241
+ async idsWatchHandler() {
242
+ this._setDeleteEnabled();
243
+ }
244
+ /**
245
+ * watch for changes in layer view and verify if it has editing enabled
246
+ */
247
+ async layerWatchHandler() {
248
+ this._setDeleteEnabled();
249
+ }
250
+ //--------------------------------------------------------------------------
251
+ //
252
+ // Methods (public)
253
+ //
254
+ //--------------------------------------------------------------------------
255
+ //--------------------------------------------------------------------------
256
+ //
257
+ // Events (public)
258
+ //
259
+ //--------------------------------------------------------------------------
260
+ /**
261
+ * Emitted on demand when features have been deleted
262
+ */
263
+ editsComplete;
264
+ //--------------------------------------------------------------------------
265
+ //
266
+ // Functions (lifecycle)
267
+ //
268
+ //--------------------------------------------------------------------------
269
+ /**
270
+ * StencilJS: Called once just after the component is first connected to the DOM.
271
+ *
272
+ * @returns Promise when complete
273
+ */
274
+ async componentWillLoad() {
275
+ await this._getTranslations();
276
+ }
277
+ /**
278
+ * Renders the component.
279
+ */
280
+ render() {
281
+ return (index.h(index.Host, { key: '4ced17b35479900aaa01ebbd298eeae57194e358' }, this.buttonType === "button" ? (index.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()))) : (index.h("calcite-action", { appearance: "solid", compact: true, disabled: !this._deleteEndabled, id: this.icon, onClick: () => this._delete(), scale: "s", text: this._translations.delete }, index.h("calcite-button", { appearance: "transparent", iconStart: this.icon, kind: "danger" }, this._translations.delete))), this._deleteMessage(), index.h("calcite-tooltip", { key: '04f82e726cf9142c403ee43cb8151027bb7b617f', placement: "bottom", "reference-element": this.buttonType === "button" ? "solutions-delete" : this.icon }, index.h("span", { key: 'f7852b2476dae4b18e82495c64a819b3db98696d' }, this._translations.delete))));
282
+ }
283
+ /**
284
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
285
+ */
286
+ async componentDidLoad() {
287
+ this._setDeleteEnabled();
288
+ }
289
+ //--------------------------------------------------------------------------
290
+ //
291
+ // Functions (protected)
292
+ //
293
+ //--------------------------------------------------------------------------
294
+ /**
295
+ * Verify if the layer supports delete and that we have 1 or more ids
296
+ */
297
+ _setDeleteEnabled() {
298
+ this._supportsDelete = this.layer?.editingEnabled && this.layer?.capabilities?.operations?.supportsDelete;
299
+ this._deleteEndabled = !this.disabled || this._supportsDelete && this.ids.length > 0;
300
+ }
301
+ /**
302
+ * Delete all selected records or shows an alert if the layer does not have editing enabled
303
+ *
304
+ * @returns a promise that will resolve when the operation is complete
305
+ */
306
+ _delete() {
307
+ this._confirmDelete = true;
308
+ }
309
+ /**
310
+ * Show delete confirmation message
311
+ *
312
+ * @returns node to confirm or deny the delete operation
313
+ */
314
+ _deleteMessage() {
315
+ return this.deleteDialog ? this.deleteDialog : (index.h("delete-dialog", { id: "solution-delete-dialog", ids: this.ids, layer: this.layer, onDeleteDialogClose: () => this._confirmDelete = false, open: this._confirmDelete }));
316
+ }
317
+ /**
318
+ * Fetches the component's translations
319
+ *
320
+ * @returns Promise when complete
321
+ * @protected
322
+ */
323
+ async _getTranslations() {
324
+ const messages = await locale.getLocaleComponentStrings(this.el);
325
+ this._translations = messages[0];
326
+ }
327
+ static get watchers() { return {
328
+ "ids": ["idsWatchHandler"],
329
+ "layer": ["layerWatchHandler"]
330
+ }; }
331
+ };
332
+ DeleteButton.style = DeleteButtonStyle0;
333
+
334
+ const deleteDialogCss = ":host{display:block}.delete-modal{position:fixed}";
335
+ const DeleteDialogStyle0 = deleteDialogCss;
336
+
337
+ const DeleteDialog = class {
338
+ constructor(hostRef) {
339
+ index.registerInstance(this, hostRef);
340
+ this.editsComplete = index.createEvent(this, "editsComplete", 7);
341
+ this.deleteDialogClose = index.createEvent(this, "deleteDialogClose", 7);
342
+ this.ids = [];
343
+ this.layer = undefined;
344
+ this.open = false;
345
+ this._isDeleting = false;
346
+ this._translations = undefined;
347
+ }
348
+ get el() { return index.getElement(this); }
349
+ //--------------------------------------------------------------------------
350
+ //
351
+ // Properties (protected)
352
+ //
353
+ //--------------------------------------------------------------------------
354
+ //--------------------------------------------------------------------------
355
+ //
356
+ // Watch handlers
357
+ //
358
+ //--------------------------------------------------------------------------
359
+ //--------------------------------------------------------------------------
360
+ //
361
+ // Methods (public)
362
+ //
363
+ //--------------------------------------------------------------------------
364
+ //--------------------------------------------------------------------------
365
+ //
366
+ // Events (public)
367
+ //
368
+ //--------------------------------------------------------------------------
369
+ /**
370
+ * Emitted on demand when features have been deleted
371
+ */
372
+ editsComplete;
373
+ /**
374
+ * Emitted on demand when features have been deleted
375
+ */
376
+ deleteDialogClose;
377
+ //--------------------------------------------------------------------------
378
+ //
379
+ // Functions (lifecycle)
380
+ //
381
+ //--------------------------------------------------------------------------
382
+ /**
383
+ * StencilJS: Called once just after the component is first connected to the DOM.
384
+ *
385
+ * @returns Promise when complete
386
+ */
387
+ async componentWillLoad() {
388
+ await this._getTranslations();
389
+ }
390
+ /**
391
+ * Renders the component.
392
+ */
393
+ render() {
394
+ const confirmMessage = this.ids.length === 1 ? this._translations?.confirmSingle :
395
+ this._translations?.confirmMultiple;
396
+ return (index.h(index.Host, { key: '64cd1440f80a9609f90056b919fa807e975eff70' }, index.h("calcite-modal", { key: '022302455960cbcf894dc2f0079d88be6fb59367', "aria-labelledby": "modal-title", class: "delete-modal", kind: "danger", onCalciteModalClose: () => this._close(), open: this.open, widthScale: "s" }, index.h("div", { key: '7484caedbdd759efbe972182ddd41a6ebaa2bd64', class: "display-flex align-center", id: "modal-title", slot: "header" }, this._translations?.deleteFeature), index.h("div", { key: 'e31136a6eed46dd0cbc4d919deb732a623097fbf', slot: "content" }, confirmMessage), index.h("calcite-button", { key: '7de42845a99777bcec59221fb6ab863e72ca2654', appearance: "outline", kind: "danger", onClick: () => this._close(), slot: "secondary", width: "full" }, this._translations?.cancel), index.h("calcite-button", { key: '67921ff64fc5c4439e66833fd8502f7e95671b5d', kind: "danger", loading: this._isDeleting, onClick: () => void this._deleteFeatures(), slot: "primary", width: "full" }, this._translations?.delete))));
397
+ }
398
+ //--------------------------------------------------------------------------
399
+ //
400
+ // Functions (protected)
401
+ //
402
+ //--------------------------------------------------------------------------
403
+ /**
404
+ * Delete the currently selected features
405
+ */
406
+ async _deleteFeatures() {
407
+ this._isDeleting = true;
408
+ const deleteFeatures = this.ids.map((objectId) => {
409
+ return { objectId };
410
+ });
411
+ await this.layer.applyEdits({
412
+ deleteFeatures
413
+ });
414
+ this._isDeleting = false;
415
+ this._close();
416
+ this.editsComplete.emit("delete");
417
+ }
418
+ /**
419
+ * Set the alertOpen member to false when the alert is closed
420
+ */
421
+ _close() {
422
+ this.open = false;
423
+ this.deleteDialogClose.emit();
424
+ }
425
+ /**
426
+ * Fetches the component's translations
427
+ *
428
+ * @returns Promise when complete
429
+ * @protected
430
+ */
431
+ async _getTranslations() {
432
+ const messages = await locale.getLocaleComponentStrings(this.el);
433
+ this._translations = messages[0];
434
+ }
435
+ };
436
+ DeleteDialog.style = DeleteDialogStyle0;
437
+
438
+ exports.calcite_shell = Shell;
439
+ exports.delete_button = DeleteButton;
440
+ exports.delete_dialog = DeleteDialog;