@esri/solutions-components 0.11.18 → 0.11.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +49 -258
  2. package/dist/cjs/buffer-tools_2.cjs.entry.js +30 -123
  3. package/dist/cjs/card-manager_3.cjs.entry.js +98 -427
  4. package/dist/cjs/consent-manager.cjs.entry.js +12 -54
  5. package/dist/cjs/create-feature_4.cjs.entry.js +88 -287
  6. package/dist/cjs/create-related-feature_3.cjs.entry.js +36 -170
  7. package/dist/cjs/crowdsource-manager.cjs.entry.js +61 -253
  8. package/dist/cjs/crowdsource-reporter.cjs.entry.js +56 -219
  9. package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
  10. package/dist/cjs/delete-dialog.cjs.entry.js +8 -37
  11. package/dist/cjs/{downloadUtils-9abff913.js → downloadUtils-fcae8eb1.js} +2 -2
  12. package/dist/cjs/feature-list.cjs.entry.js +27 -107
  13. package/dist/cjs/{helpers-a65cb83a.js → helpers-8d452256.js} +1 -1
  14. package/dist/cjs/{index-2c21082d.js → index-af14245a.js} +346 -428
  15. package/dist/cjs/{index-90ef3c01.js → index-ffd12cb0.js} +1 -1
  16. package/dist/cjs/instant-apps-app-guide.cjs.entry.js +2 -2
  17. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +4 -4
  18. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
  19. package/dist/cjs/instant-apps-create.cjs.entry.js +2 -2
  20. package/dist/cjs/instant-apps-export-views.cjs.entry.js +2 -2
  21. package/dist/cjs/instant-apps-export.cjs.entry.js +2 -2
  22. package/dist/cjs/instant-apps-filter-list_2.cjs.entry.js +2 -2
  23. package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
  24. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
  25. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
  26. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
  27. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
  28. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +4 -4
  29. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +2 -2
  30. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
  31. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +4 -4
  32. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +4 -4
  33. package/dist/cjs/instant-apps-measurement-tool.cjs.entry.js +1 -1
  34. package/dist/cjs/instant-apps-measurement.cjs.entry.js +2 -2
  35. package/dist/cjs/instant-apps-popover.cjs.entry.js +2 -2
  36. package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
  37. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +2 -2
  38. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +2 -2
  39. package/dist/cjs/instant-apps-splash.cjs.entry.js +2 -2
  40. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +3 -3
  41. package/dist/cjs/json-editor_7.cjs.entry.js +49 -227
  42. package/dist/cjs/loader.cjs.js +2 -2
  43. package/dist/cjs/{locale-c09e93fb.js → locale-1c60be9c.js} +1 -1
  44. package/dist/cjs/{locale-0a273172.js → locale-da41a06f.js} +1 -1
  45. package/dist/cjs/map-layer-picker.cjs.entry.js +27 -112
  46. package/dist/cjs/map-select-tools_3.cjs.entry.js +50 -229
  47. package/dist/cjs/pci-calculator.cjs.entry.js +2 -15
  48. package/dist/cjs/{popupUtils-fc7557da.js → popupUtils-87b006a6.js} +2 -2
  49. package/dist/cjs/public-notification.cjs.entry.js +44 -194
  50. package/dist/cjs/{publicNotificationStore-ee00411f.js → publicNotificationStore-beb782de.js} +1 -1
  51. package/dist/cjs/solution-configuration.cjs.entry.js +17 -52
  52. package/dist/cjs/solution-contents_3.cjs.entry.js +18 -84
  53. package/dist/cjs/solution-item-accordion.cjs.entry.js +8 -38
  54. package/dist/cjs/solution-item-icon.cjs.entry.js +4 -18
  55. package/dist/cjs/{solution-store-6208ce28.js → solution-store-3cf25b71.js} +1 -1
  56. package/dist/cjs/solutions-components.cjs.js +3 -3
  57. package/dist/cjs/spatial-ref.cjs.entry.js +10 -45
  58. package/dist/cjs/store-manager.cjs.entry.js +6 -21
  59. package/dist/cjs/{utils-30344ce0.js → utils-3e512114.js} +2 -2
  60. package/dist/collection/assets/t9n/create-feature/resources.json +1 -1
  61. package/dist/collection/assets/t9n/create-feature/resources_en.json +1 -1
  62. package/dist/collection/assets/t9n/solution-item-accordion/resources.json +1 -1
  63. package/dist/collection/assets/t9n/solution-item-accordion/resources_en.json +1 -1
  64. package/dist/collection/collection-manifest.json +1 -1
  65. package/dist/collection/components/basemap-gallery/basemap-gallery.js +5 -19
  66. package/dist/collection/components/buffer-tools/buffer-tools.js +13 -52
  67. package/dist/collection/components/card-manager/card-manager.js +17 -71
  68. package/dist/collection/components/consent-manager/consent-manager.js +12 -52
  69. package/dist/collection/components/create-feature/create-feature.js +139 -171
  70. package/dist/collection/components/create-related-feature/create-related-feature.js +10 -44
  71. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +61 -251
  72. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +75 -217
  73. package/dist/collection/components/delete-button/delete-button.js +13 -55
  74. package/dist/collection/components/delete-dialog/delete-dialog.js +8 -35
  75. package/dist/collection/components/edit-card/edit-card.js +10 -43
  76. package/dist/collection/components/feature-details/feature-details.js +18 -74
  77. package/dist/collection/components/feature-list/feature-list.js +25 -103
  78. package/dist/collection/components/floor-filter/floor-filter.js +5 -19
  79. package/dist/collection/components/info-card/info-card.js +20 -85
  80. package/dist/collection/components/json-editor/json-editor.js +7 -28
  81. package/dist/collection/components/layer-list/layer-list.js +12 -50
  82. package/dist/collection/components/layer-table/layer-table.js +41 -171
  83. package/dist/collection/components/map-card/map-card.js +43 -182
  84. package/dist/collection/components/map-draw-tools/map-draw-tools.js +17 -67
  85. package/dist/collection/components/map-fullscreen/map-fullscreen.js +4 -18
  86. package/dist/collection/components/map-layer-picker/map-layer-picker.js +25 -108
  87. package/dist/collection/components/map-legend/map-legend.js +4 -15
  88. package/dist/collection/components/map-picker/map-picker.js +8 -35
  89. package/dist/collection/components/map-search/map-search.js +8 -35
  90. package/dist/collection/components/map-select-tools/map-select-tools.js +32 -138
  91. package/dist/collection/components/map-tools/map-tools.js +27 -115
  92. package/dist/collection/components/pci-calculator/pci-calculator.js +3 -14
  93. package/dist/collection/components/pdf-download/pdf-download.js +6 -27
  94. package/dist/collection/components/public-notification/public-notification.js +41 -189
  95. package/dist/collection/components/refine-selection/refine-selection.js +13 -59
  96. package/dist/collection/components/solution-configuration/solution-configuration.js +13 -48
  97. package/dist/collection/components/solution-contents/solution-contents.js +4 -13
  98. package/dist/collection/components/solution-item/solution-item.js +9 -36
  99. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +8 -36
  100. package/dist/collection/components/solution-item-details/solution-item-details.js +16 -35
  101. package/dist/collection/components/solution-item-icon/solution-item-icon.js +5 -17
  102. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +6 -27
  103. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +6 -24
  104. package/dist/collection/components/solution-resource-item/solution-resource-item.js +8 -36
  105. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +7 -31
  106. package/dist/collection/components/solution-template-data/solution-template-data.js +8 -49
  107. package/dist/collection/components/solution-variables/solution-variables.js +6 -24
  108. package/dist/collection/components/spatial-ref/spatial-ref.js +8 -43
  109. package/dist/collection/components/store-manager/store-manager.js +5 -18
  110. package/dist/components/basemap-gallery2.js +3 -19
  111. package/dist/components/buffer-tools2.js +11 -52
  112. package/dist/components/card-manager2.js +15 -71
  113. package/dist/components/consent-manager.js +10 -52
  114. package/dist/components/create-feature2.js +55 -107
  115. package/dist/components/create-related-feature2.js +8 -44
  116. package/dist/components/crowdsource-manager.js +59 -251
  117. package/dist/components/crowdsource-reporter.js +55 -217
  118. package/dist/components/delete-button2.js +11 -55
  119. package/dist/components/delete-dialog2.js +6 -35
  120. package/dist/components/edit-card2.js +8 -43
  121. package/dist/components/feature-details2.js +16 -74
  122. package/dist/components/feature-list2.js +23 -103
  123. package/dist/components/floor-filter2.js +3 -19
  124. package/dist/components/info-card2.js +18 -85
  125. package/dist/components/json-editor2.js +5 -28
  126. package/dist/components/layer-list2.js +10 -50
  127. package/dist/components/layer-table2.js +39 -171
  128. package/dist/components/map-card2.js +41 -182
  129. package/dist/components/map-draw-tools2.js +15 -67
  130. package/dist/components/map-fullscreen2.js +2 -18
  131. package/dist/components/map-layer-picker2.js +23 -108
  132. package/dist/components/map-legend2.js +2 -15
  133. package/dist/components/map-picker2.js +6 -35
  134. package/dist/components/map-search2.js +6 -35
  135. package/dist/components/map-select-tools2.js +30 -138
  136. package/dist/components/map-tools2.js +25 -115
  137. package/dist/components/pci-calculator.js +1 -14
  138. package/dist/components/pdf-download2.js +4 -27
  139. package/dist/components/public-notification.js +39 -189
  140. package/dist/components/refine-selection2.js +11 -59
  141. package/dist/components/solution-configuration.js +13 -48
  142. package/dist/components/solution-contents2.js +2 -13
  143. package/dist/components/solution-item-accordion.js +6 -36
  144. package/dist/components/solution-item-details2.js +14 -35
  145. package/dist/components/solution-item-icon2.js +3 -17
  146. package/dist/components/solution-item-sharing2.js +4 -27
  147. package/dist/components/solution-item2.js +7 -36
  148. package/dist/components/solution-organization-variables2.js +4 -24
  149. package/dist/components/solution-resource-item2.js +6 -36
  150. package/dist/components/solution-spatial-ref2.js +5 -31
  151. package/dist/components/solution-template-data2.js +8 -49
  152. package/dist/components/solution-variables2.js +4 -24
  153. package/dist/components/spatial-ref.js +8 -43
  154. package/dist/components/store-manager.js +3 -18
  155. package/dist/esm/basemap-gallery_7.entry.js +49 -258
  156. package/dist/esm/buffer-tools_2.entry.js +30 -123
  157. package/dist/esm/card-manager_3.entry.js +98 -427
  158. package/dist/esm/consent-manager.entry.js +12 -54
  159. package/dist/esm/create-feature_4.entry.js +88 -287
  160. package/dist/esm/create-related-feature_3.entry.js +36 -170
  161. package/dist/esm/crowdsource-manager.entry.js +61 -253
  162. package/dist/esm/crowdsource-reporter.entry.js +56 -219
  163. package/dist/esm/deduct-calculator.entry.js +1 -1
  164. package/dist/esm/delete-dialog.entry.js +8 -37
  165. package/dist/esm/{downloadUtils-36d854d2.js → downloadUtils-078cd709.js} +2 -2
  166. package/dist/esm/feature-list.entry.js +27 -107
  167. package/dist/esm/{helpers-77bdd30e.js → helpers-15d5cd56.js} +1 -1
  168. package/dist/esm/{index-6de7c296.js → index-c247b62b.js} +1 -1
  169. package/dist/esm/{index-3702583a.js → index-df5db8e9.js} +346 -428
  170. package/dist/esm/instant-apps-app-guide.entry.js +2 -2
  171. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +4 -4
  172. package/dist/esm/instant-apps-control-panel.entry.js +1 -1
  173. package/dist/esm/instant-apps-create.entry.js +2 -2
  174. package/dist/esm/instant-apps-export-views.entry.js +2 -2
  175. package/dist/esm/instant-apps-export.entry.js +2 -2
  176. package/dist/esm/instant-apps-filter-list_2.entry.js +2 -2
  177. package/dist/esm/instant-apps-header.entry.js +1 -1
  178. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
  179. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
  180. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
  181. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
  182. package/dist/esm/instant-apps-interactive-legend.entry.js +4 -4
  183. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +2 -2
  184. package/dist/esm/instant-apps-landing-page.entry.js +1 -1
  185. package/dist/esm/instant-apps-language-switcher.entry.js +4 -4
  186. package/dist/esm/instant-apps-language-translator.entry.js +4 -4
  187. package/dist/esm/instant-apps-measurement-tool.entry.js +1 -1
  188. package/dist/esm/instant-apps-measurement.entry.js +2 -2
  189. package/dist/esm/instant-apps-popover.entry.js +2 -2
  190. package/dist/esm/instant-apps-popovers.entry.js +1 -1
  191. package/dist/esm/instant-apps-scoreboard.entry.js +2 -2
  192. package/dist/esm/instant-apps-sign-in.entry.js +2 -2
  193. package/dist/esm/instant-apps-splash.entry.js +2 -2
  194. package/dist/esm/instant-apps-time-filter.entry.js +3 -3
  195. package/dist/esm/json-editor_7.entry.js +49 -227
  196. package/dist/esm/loader.js +3 -3
  197. package/dist/esm/{locale-aa656a2c.js → locale-7874c756.js} +1 -1
  198. package/dist/esm/{locale-b0016f8e.js → locale-e02b0e14.js} +1 -1
  199. package/dist/esm/map-layer-picker.entry.js +27 -112
  200. package/dist/esm/map-select-tools_3.entry.js +50 -229
  201. package/dist/esm/pci-calculator.entry.js +2 -15
  202. package/dist/esm/{popupUtils-64d25cb0.js → popupUtils-6a965512.js} +2 -2
  203. package/dist/esm/public-notification.entry.js +44 -194
  204. package/dist/esm/{publicNotificationStore-70219049.js → publicNotificationStore-9ec5e22a.js} +1 -1
  205. package/dist/esm/solution-configuration.entry.js +17 -52
  206. package/dist/esm/solution-contents_3.entry.js +18 -84
  207. package/dist/esm/solution-item-accordion.entry.js +8 -38
  208. package/dist/esm/solution-item-icon.entry.js +4 -18
  209. package/dist/esm/{solution-store-2493275a.js → solution-store-4c39c654.js} +1 -1
  210. package/dist/esm/solutions-components.js +4 -4
  211. package/dist/esm/spatial-ref.entry.js +10 -45
  212. package/dist/esm/store-manager.entry.js +6 -21
  213. package/dist/esm/{utils-68015f9d.js → utils-6fe5b5fa.js} +2 -2
  214. package/dist/solutions-components/assets/t9n/create-feature/resources.json +1 -1
  215. package/dist/solutions-components/assets/t9n/create-feature/resources_en.json +1 -1
  216. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources.json +1 -1
  217. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_en.json +1 -1
  218. package/dist/solutions-components/p-00ec642f.entry.js +6 -0
  219. package/dist/solutions-components/p-02c4e6fc.entry.js +6 -0
  220. package/dist/solutions-components/{p-68d49e1a.entry.js → p-0326f1f4.entry.js} +2 -2
  221. package/dist/solutions-components/{p-8f7957a2.js → p-1e1dfef6.js} +1 -1
  222. package/dist/solutions-components/p-244316dd.entry.js +6 -0
  223. package/dist/solutions-components/p-2460cf10.entry.js +6 -0
  224. package/dist/solutions-components/{p-173d5fce.js → p-2884ca49.js} +1 -1
  225. package/dist/solutions-components/p-38814554.entry.js +6 -0
  226. package/dist/solutions-components/{p-ee863ffb.entry.js → p-3ce5c7fd.entry.js} +1 -1
  227. package/dist/solutions-components/{p-ee2cbba0.js → p-404cbf48.js} +1 -1
  228. package/dist/solutions-components/{p-2dcf8f00.entry.js → p-41a3b49a.entry.js} +1 -1
  229. package/dist/solutions-components/{p-579628d9.entry.js → p-443168f0.entry.js} +1 -1
  230. package/dist/solutions-components/{p-81ae30bd.entry.js → p-4ced7b11.entry.js} +1 -1
  231. package/dist/solutions-components/{p-eb97b5ad.entry.js → p-4d5dd39e.entry.js} +1 -1
  232. package/dist/solutions-components/{p-699a9557.entry.js → p-4e7514a3.entry.js} +1 -1
  233. package/dist/solutions-components/{p-fa09caf3.entry.js → p-4f7fb338.entry.js} +1 -1
  234. package/dist/solutions-components/{p-959cb673.entry.js → p-552fb1c0.entry.js} +1 -1
  235. package/dist/solutions-components/{p-f07a02e2.entry.js → p-5786b9da.entry.js} +1 -1
  236. package/dist/solutions-components/p-5a202f3f.entry.js +6 -0
  237. package/dist/solutions-components/p-5e4e0f84.entry.js +6 -0
  238. package/dist/solutions-components/{p-2b556610.entry.js → p-64a6162f.entry.js} +1 -1
  239. package/dist/solutions-components/{p-7f6cbe61.entry.js → p-65105504.entry.js} +1 -1
  240. package/dist/solutions-components/p-698656b8.entry.js +6 -0
  241. package/dist/solutions-components/p-7251848d.entry.js +6 -0
  242. package/dist/solutions-components/{p-1890b884.entry.js → p-72d04c7a.entry.js} +2 -2
  243. package/dist/solutions-components/p-832707fd.entry.js +6 -0
  244. package/dist/solutions-components/{p-e81e2d83.entry.js → p-837e0939.entry.js} +2 -2
  245. package/dist/solutions-components/{p-3d20e307.js → p-84bb6925.js} +1 -1
  246. package/dist/solutions-components/{p-e23b4193.js → p-8717729a.js} +1 -1
  247. package/dist/solutions-components/p-8859b622.entry.js +6 -0
  248. package/dist/solutions-components/{p-300ff31e.entry.js → p-8a010f9e.entry.js} +1 -1
  249. package/dist/solutions-components/{p-e85da876.entry.js → p-8dd677dd.entry.js} +1 -1
  250. package/dist/solutions-components/{p-ea64b72e.entry.js → p-9927342d.entry.js} +1 -1
  251. package/dist/solutions-components/{p-1dffcc22.entry.js → p-a277d08c.entry.js} +1 -1
  252. package/dist/solutions-components/p-a5eaf7fe.entry.js +6 -0
  253. package/dist/solutions-components/{p-b40b5be5.entry.js → p-aad84d69.entry.js} +1 -1
  254. package/dist/solutions-components/{p-b560498c.entry.js → p-b394f504.entry.js} +1 -1
  255. package/dist/solutions-components/p-b636a8b4.entry.js +6 -0
  256. package/dist/solutions-components/{p-1ddd7128.entry.js → p-ba4e219a.entry.js} +1 -1
  257. package/dist/solutions-components/{p-d0d21a1f.js → p-bf04c6f4.js} +2 -2
  258. package/dist/solutions-components/{p-335a630e.entry.js → p-c6c697e5.entry.js} +1 -1
  259. package/dist/solutions-components/{p-2c8360b4.entry.js → p-d324196d.entry.js} +1 -1
  260. package/dist/solutions-components/{p-8b218ba7.js → p-da1e098c.js} +1 -1
  261. package/dist/solutions-components/{p-6eab9d1f.js → p-db3391b9.js} +1 -1
  262. package/dist/solutions-components/p-de42e8b2.entry.js +6 -0
  263. package/dist/solutions-components/{p-70e8be5c.entry.js → p-e3e35c14.entry.js} +1 -1
  264. package/dist/solutions-components/{p-48942eb8.js → p-e6859850.js} +2 -2
  265. package/dist/solutions-components/p-e996c38f.js +7 -0
  266. package/dist/solutions-components/p-ea566af0.entry.js +6 -0
  267. package/dist/solutions-components/p-eb3c867f.entry.js +6 -0
  268. package/dist/solutions-components/p-ed1ecb5b.entry.js +6 -0
  269. package/dist/solutions-components/p-ee3bb943.entry.js +6 -0
  270. package/dist/solutions-components/{p-ff5db601.entry.js → p-f165921f.entry.js} +1 -1
  271. package/dist/solutions-components/{p-4bdd4009.entry.js → p-f75786a8.entry.js} +1 -1
  272. package/dist/solutions-components/{p-8107be38.entry.js → p-f956c598.entry.js} +1 -1
  273. package/dist/solutions-components/{p-6da8fe2d.entry.js → p-fa663804.entry.js} +1 -1
  274. package/dist/solutions-components/{p-afc3ac6d.entry.js → p-ff317687.entry.js} +1 -1
  275. package/dist/solutions-components/solutions-components.esm.js +1 -1
  276. package/dist/solutions-components_commit.txt +6 -6
  277. package/dist/types/components/create-feature/create-feature.d.ts +54 -50
  278. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +4 -0
  279. package/dist/types/components.d.ts +16 -0
  280. package/package.json +2 -2
  281. package/dist/solutions-components/p-032d4411.entry.js +0 -6
  282. package/dist/solutions-components/p-055706e3.entry.js +0 -6
  283. package/dist/solutions-components/p-06970873.entry.js +0 -6
  284. package/dist/solutions-components/p-1b0588d2.js +0 -7
  285. package/dist/solutions-components/p-265f5dc4.entry.js +0 -6
  286. package/dist/solutions-components/p-3c43839b.entry.js +0 -6
  287. package/dist/solutions-components/p-4426901e.entry.js +0 -6
  288. package/dist/solutions-components/p-4ebc471b.entry.js +0 -6
  289. package/dist/solutions-components/p-6d62a4fa.entry.js +0 -6
  290. package/dist/solutions-components/p-70036eb6.entry.js +0 -6
  291. package/dist/solutions-components/p-72ae3bf0.entry.js +0 -6
  292. package/dist/solutions-components/p-777ed6b0.entry.js +0 -6
  293. package/dist/solutions-components/p-8b5c3c9f.entry.js +0 -6
  294. package/dist/solutions-components/p-9d953313.entry.js +0 -6
  295. package/dist/solutions-components/p-a44815ea.entry.js +0 -6
  296. package/dist/solutions-components/p-acd2699e.entry.js +0 -6
  297. package/dist/solutions-components/p-b1bd3028.entry.js +0 -6
  298. package/dist/solutions-components/p-e2270562.entry.js +0 -6
  299. package/dist/solutions-components/p-e90c0e26.entry.js +0 -6
@@ -0,0 +1,6 @@
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 t,c as i,g as s,h as e,H as a,F as h}from"./p-e996c38f.js";import{l,g as o}from"./p-404cbf48.js";import{g as c,a as n,b as r,c as d,h as u,d as p,q as f}from"./p-dcd2f00b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";const m=class{constructor(s){t(this,s),this.togglePanel=i(this,"togglePanel",7),this.center=void 0,this.commentButtonText=void 0,this.commentSubmittedMessage=void 0,this.defaultWebmap="",this.description=void 0,this.enableAnonymousAccess=void 0,this.enableAnonymousComments=void 0,this.enableComments=void 0,this.enableHome=!0,this.enableLogin=void 0,this.enableNewReports=void 0,this.enableSearch=!0,this.enableZoom=!0,this.isMobile=void 0,this.layerExpressions=[],this.layerId=void 0,this.level=void 0,this.locale=void 0,this.loginTitle=void 0,this.mapInfos=[],this.mapView=void 0,this.objectId=void 0,this.reportButtonText=void 0,this.reportingOptions=void 0,this.reportsHeader=void 0,this.reportSubmittedMessage=void 0,this.searchConfiguration=void 0,this.showComments=void 0,this.showUserImageInCommentsList=!1,this.showFeatureSymbol=!1,this.showMyReportsOnly=!1,this.submitNewReportsMessage=void 0,this.theme="light",this.zoomToScale=void 0,this.floorLevel=void 0,this.showFullCommentTitle=!0,this._featureCreationFailedErrorMsg=void 0,this._filterActive=!1,this._flowItems=[],this._hasValidLayers=!1,this._mapInfo=void 0,this._reportSubmitted=!1,this._selectedLayerName=void 0,this._showSubmitCancelButton=!1,this._showLoadingIndicator=!1,this._sidePanelCollapsed=!1,this._translations=void 0,this._updatedProgressBarStatus=25,this._updatedSorting=void 0,this._updatedSortOption="sortNewest",this._commentSubmitted=!1,this._addingCommentFailed=!1}get el(){return s(this)}_createFeature;_currentFeatureId;_defaultCenter;_defaultLevel;_editableLayerIds;_featureDetails;_featureList;_currentFeature;_selectedRelatedFeature;_relatedTable;_filterList;_highlightHandle;_layerList;_createRelatedFeature;_layers;_mapChange;_mapClickHandle;reactiveUtils;FeatureFilter;_selectedFeature;_selectedFeatureIndex;_selectedLayerId;_shareNode;_urlParamsLoaded;_validLayers;_nonVisibleValidLayers;_selectedLayer;_layerItemsHash;_showFullPanel;_floorExpression;_formElements=[];_prevSelectedLayerId;_currentLayerExpressions;_initDefExpressions;_t9nLayerExpressions;async isMobileWatchHandler(){this.updatePanelState(!1,this._showFullPanel)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((async()=>{this.setInitExpressions(),await this.setMapView()}))}async floorLevelWatchHandler(){if(this._editableLayerIds)for(const t of this._editableLayerIds){const i=await c(this.mapView,t);i.floorInfo?.floorField&&this._updateFloorDefinitionExpression(i)}"layer-list"===this._flowItems[this._flowItems.length-1]&&this._layerList&&await this._layerList.refresh(),this._featureList&&this._featureList.refresh(),this._createFeature&&this._createFeature.refresh(this.floorLevel)}async showMyReportsOnlyWatchHandler(){this._editableLayerIds&&(await this._updateFeatures(),setTimeout((()=>{"layer-list"===this._flowItems[this._flowItems.length-1]&&this._layerList&&this._layerList.refresh(),this._featureList&&this._featureList.refresh()}),50))}async layerExpressionsWatchHandler(){this.resetFilterList(),await this.handleSelectedLayersFilter(),await(this._featureList?.refresh())}async showFeatureSymbolWatchHandler(){await(this._featureList?.refresh())}async updateLayerExpressionsT9n(t){if(this._t9nLayerExpressions=t||this.layerExpressions,null!=this._filterList)await this._filterList.handleUpdatingT9nData(this._t9nLayerExpressions);else if(null!=this._currentLayerExpressions){const t=structuredClone(this._currentLayerExpressions);this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t}return Promise.resolve()}togglePanel;async componentWillLoad(){this._urlParamsLoaded=!1,await this._initModules(),await this._getTranslations(),await(this.mapView?.when((async()=>{this._layers=this.reportingOptions?Object.keys(this.reportingOptions).filter((t=>this.reportingOptions[t].visible)):[],this.setInitExpressions(),await this.setMapView()})))}componentWillRender(){this._flowItems.includes("filter-panel")&&this._filterList?.updateInitDefExpressions({initDefExpressions:this._initDefExpressions})}render(){const t="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return e(a,{key:"b97883be773d948b75e6df1be453cde018a0dba1"},this._reportSubmitted&&e("calcite-alert",{key:"5fd17c13a0d4dc3c7fed1bb253e9196b83c20e1d","auto-close":!0,class:t+" report-submitted-msg",icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._reportSubmitted=!1},open:!0,placement:"top"},e("div",{key:"5c7a00cb3eaaaeb3a0501324c10b407746ecca46",slot:"message"},this.reportSubmittedMessage?this.reportSubmittedMessage:this._translations.submitMsg)),this._featureCreationFailedErrorMsg&&e("calcite-alert",{key:"d83c690d60c2e6f12a5ec356c5ae67185edc6a1e","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._featureCreationFailedErrorMsg=""},open:!0,placement:"top"},e("div",{key:"9cbac1cf8698f1f918004764e4e43c25af766e4a",slot:"title"},this._translations.error),e("div",{key:"b4dbe07b4af7ab6c543596c6a3374b785fac4c7e",slot:"message"},this._featureCreationFailedErrorMsg)),this._commentSubmitted&&e("calcite-alert",{key:"cde843955c6538ea857a0a187c995062efd777e7","auto-close":!0,class:"report-submitted "+t,icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._commentSubmitted=!1},open:!0,placement:"top"},e("div",{key:"86e3d820aa0d4362c07470bd60d8f0efd0614bc2",slot:"message"},this.commentSubmittedMessage||this._translations.commentSubmittedMsg)),this._addingCommentFailed&&e("calcite-alert",{key:"a0bdeec1bb3a33f3bfa938c0a1f4e631c6a76399","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._addingCommentFailed=!1},open:!0,placement:"top"},e("div",{key:"b161d8e42a078d961ec4e42888d26f4314e9d5a4",slot:"title"},this._translations.error),e("div",{key:"cf3908f91448dfbb7cf6ec78b413eaa3327372be",slot:"message"},this._translations.addingCommentFailedMsg)),e("div",{key:"42e2c8abaf43d6a587729229347efb2836827b98"},e("calcite-shell",{key:"9e3174a699c37be8f20f4609f52c94ecb95d599f","content-behind":!0},this._getReporter())))}async _initModules(){const[t,i]=await l(["esri/core/reactiveUtils","esri/layers/support/FeatureFilter"]);this.reactiveUtils=t,this.FeatureFilter=i}async setSelectedLayer(t,i){this._selectedLayerId=t,this._selectedLayer=await c(this.mapView,t),this._selectedLayerName=i,this._validLayers.forEach((i=>{this._nonVisibleValidLayers.find((t=>t.id===i.id))||i.set("visible",!t||i.id===t)}))}_getLayersConfig(t){return this.reportingOptions&&this.reportingOptions[t]?this.reportingOptions[t]:null}_getReporter(){const t=[];return this._flowItems.forEach((i=>{switch(i){case"layer-list":t.push(this.getLayerListFlowItem());break;case"feature-list":t.push(this.getFeatureListFlowItem(this._selectedLayerId,this._selectedLayerName));break;case"filter-panel":t.push(this.getFilterPanel());break;case"feature-details":t.push(this.getFeatureDetailsFlowItem());break;case"reporting-layer-list":t.push(this.getChooseCategoryFlowItem());break;case"feature-create":t.push(this.getFeatureCreateFlowItem());break;case"comment-details":t.push(this.getCommentDetailsFlowItem());break;case"add-comment":t.push(this.getAddCommentFlowItem())}})),e("calcite-panel",{class:"width-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},this.mapView?e("calcite-flow",null,t?.length>0&&t):e("calcite-loader",{label:"",scale:"m"}))}async sortOptionClick(t,i,s){this._updatedSorting={field:t,order:i},this._updatedSortOption=s}_toggleSort(){const t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId]&&this.reportingOptions[this._selectedLayerId].like&&this.reportingOptions[this._selectedLayerId].likeField;return e("calcite-popover",{autoClose:!0,label:"",offsetDistance:0,placement:this.isMobile?"leading-start":"bottom-start",pointerDisabled:!0,referenceElement:"sort-popover"},e("calcite-list",{label:"","selection-mode":"single"},e("calcite-list-item",{label:this._translations.sortNewest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"desc","sortNewest")},selected:"sortNewest"===this._updatedSortOption,value:"sortNewest"}),e("calcite-list-item",{label:this._translations.sortOldest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"asc","sortOldest")},selected:"sortOldest"===this._updatedSortOption,value:"sortOldest"}),t&&e(h,null,e("calcite-list-item",{label:this._translations.sortHighestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"desc","sortHighestVoted")},selected:"sortHighestVoted"===this._updatedSortOption,value:"sortHighestVoted"}),e("calcite-list-item",{label:this._translations.sortLowestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"asc","sortLowestVoted")},selected:"sortLowestVoted"===this._updatedSortOption,value:"sortLowestVoted"}))))}async _handleFilterListReset(){this._filterActive=!1}async _handleFilterUpdate(t){this._showLoadingIndicator=!0,this._filterActive=t,await this._featureList.refresh(),this._showLoadingIndicator=!1}getLayerListFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportsHeader,selected:"layer-list"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),this._hasValidLayers&&this.enableNewReports&&e("calcite-button",{appearance:"solid",onClick:this.navigateToChooseCategory.bind(this),slot:"footer",width:"full"},this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText),e("calcite-panel",{"full-height":!0,"full-width":!0},e("layer-list",{applyLayerViewFilter:this.showMyReportsOnly,class:"height-full",layers:this._editableLayerIds?.length>0?this._editableLayerIds:this._layers,locale:this.locale,mapView:this.mapView,onLayerSelect:this.displayFeaturesList.bind(this),onLayersListLoaded:this.layerListLoaded.bind(this),ref:t=>this._layerList=t,showFeatureCount:!0,showNextIcon:!0})))}getChooseCategoryFlowItem(){const t=this.reportingOptions?Object.keys(this.reportingOptions).filter((t=>this.reportingOptions[t].visible&&this.reportingOptions[t].reporting&&this._layerItemsHash[t]&&this._layerItemsHash[t].supportsAdd)):[];return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"reporting-layer-list"===this._flowItems[this._flowItems.length-1]},e("calcite-panel",{"full-height":!0,"full-width":!0},e("div",{class:"progress-bar"},e("calcite-progress",{type:"determinate",value:this._updatedProgressBarStatus})),e("calcite-notice",{class:"notice-msg",icon:"lightbulb",kind:"success",open:!0},e("div",{slot:"message"},this._translations.chooseCategoryMsg)),e("layer-list",{class:"height-full",layers:t,locale:this.locale,mapView:this.mapView,onLayerSelect:this.navigateToCreateFeature.bind(this),showFeatureCount:!1,showNextIcon:!1})))}getFeatureCreateFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,onCalciteFlowItemBack:this.backFromCreateFeaturePanel.bind(this),selected:"feature-create"===this._flowItems[this._flowItems.length-1]},this._showSubmitCancelButton&&e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",onClick:this.onCreateFeatureSubmitButtonClick.bind(this),width:"full"},this._translations.submit),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromCreateFeaturePanel.bind(this),width:"full"},this._translations.cancel)),e("calcite-panel",{"full-height":!0,"full-width":!0},e("div",{class:"progress-bar"},e("calcite-progress",{type:"determinate",value:this._updatedProgressBarStatus})),e("create-feature",{customizeSubmit:!0,enableSearch:!0,floorLevel:this.floorLevel,formElements:this._formElements.find((t=>t.id===this._selectedLayerId)),isMobile:this.isMobile,locale:this.locale,mapView:this.mapView,onDrawComplete:this.onFormReady.bind(this),onEditingAttachment:this.showSubmitCancelButton.bind(this),onFail:this.createFeatureFailed.bind(this),onModeChanged:this.backFromCreateFeaturePanel.bind(this),onProgressStatus:this.updatedProgressStatus.bind(this),onSuccess:this.onReportSubmitted.bind(this),ref:t=>this._createFeature=t,searchConfiguration:this.searchConfiguration,selectedLayerId:this._selectedLayerId,submitNewReportsMessage:this.submitNewReportsMessage})))}updatedProgressStatus(t){this._updatedProgressBarStatus=t.detail}onFormReady(){this._showSubmitCancelButton=!0}showSubmitCancelButton(t){this._showSubmitCancelButton=!t.detail}onCreateFeatureSubmitButtonClick(){this._createFeature&&this._createFeature.submit()}backFromCreateFeaturePanel(){this._createFeature&&this.updateNonVisibleLayersOnMap(!1),this.backFromSelectedPanel()}onCreateRelatedFeatureSubmitButtonClick(){this._createRelatedFeature&&this._createRelatedFeature.submit()}backFromCreateRelatedFeaturePanel(){this._createRelatedFeature&&(this._showSubmitCancelButton=!1),this.backFromSelectedPanel()}createFeatureFailed(t){console.error(t.detail),this._featureCreationFailedErrorMsg=t.detail.message}async onReportSubmitted(){this.updateNonVisibleLayersOnMap(!1),await this.navigateToHomePage(),this._reportSubmitted=!0,this._updatedProgressBarStatus=25,this._showFullPanel&&this.updatePanelState(this._sidePanelCollapsed,!1)}addCommentFailed(t){console.error(t.detail),this._addingCommentFailed=!0}async onCommentSubmitted(){this._commentSubmitted=!0,this.backFromSelectedPanel(),this._showLoadingIndicator=!0,await this._featureDetails.refresh(this._currentFeature),setTimeout((()=>{this._showLoadingIndicator=!1}),300)}async navigateToHomePage(){await this.setSelectedFeatures([]),this._layerList&&await this._layerList.refresh(),1===this._editableLayerIds.length?(await this._featureList.refresh(),this._flowItems=["feature-list"]):this._flowItems=["layer-list"]}async navigateToCreateFeature(t){t.detail.layerId&&t.detail.layerName&&await this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this.updateNonVisibleLayersOnMap(!0),this._getFormElements(),this._showSubmitCancelButton=!1,this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"feature-create"]}navigateToChooseCategory(){this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"reporting-layer-list"]}updateNonVisibleLayersOnMap(t){this._nonVisibleValidLayers.find((t=>t.id===this._selectedLayerId))&&this._selectedLayer.set("visible",t)}async layerListLoaded(t){const i=t.detail,s=await n(this.mapView),e=[];this._validLayers=[],this._nonVisibleValidLayers=[],s.forEach((t=>{i.includes(t.id)&&(this._validLayers.push(t),t.visible||this._nonVisibleValidLayers.push(t),this._getLayersConfig(t.id)?.reporting&&this._layerItemsHash[t.id]&&this._layerItemsHash[t.id].supportsAdd&&e.push(t.id))})),this.handleMapClick(),this._hasValidLayers=e.length>0,this._urlParamsLoaded||(this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams())}async displayFeaturesList(t){this._updatedSorting={field:"",order:"desc"},this._updatedSortOption="sortNewest",await this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this.handleSelectedLayersFilter(),this._flowItems=[...this._flowItems,"feature-list"],this._prevSelectedLayerId=this._selectedLayerId}async backFromFilterPanel(){null!=this._filterList&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions()),await this._featureList.refresh(),this.backFromSelectedPanel()}backFromSelectedPanel(){this._updatedProgressBarStatus=25;const t=[...this._flowItems];"comment-details"!==t[t.length-1]&&"add-comment"!==t[t.length-1]&&this.clearHighlights(),"reporting-layer-list"!==t[t.length-1]&&("feature-create"!==t[t.length-1]||"feature-list"!==t[0]&&"feature-list"!==t[t.length-2])||this.updatePanelState(this._sidePanelCollapsed,!1),t.pop(),1!==t.length||"layer-list"!==t[0]?this._flowItems=[...t]:this.navigateToHomePage()}toggleSidePanel(){this._sidePanelCollapsed=!this._sidePanelCollapsed,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}updatePanelState(t,i){this._sidePanelCollapsed=t,this._showFullPanel=i,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}async onFeatureSelectFromList(t){this._showLoadingIndicator=!0,await this.setSelectedFeatures([t.detail]),this._flowItems=[...this._flowItems,"feature-details"]}async getRelatedTable(){const t=this._currentFeature.layer,i=await r(this.mapView);t.relationships.some((s=>{const e=i.filter((i=>t.url===i.url&&i.layerId===s.relatedTableId));if(e&&e.length>0)return this._relatedTable=e[0],!0}))}async updatingFeatureDetails(t){this._showLoadingIndicator=t}async selectionChanged(t){this.updatingFeatureDetails(!0),await this.setCurrentFeature(t.detail.selectedFeature[0]),this.highlightOnMap(t.detail.selectedFeature[0]),this._selectedFeatureIndex=t.detail.selectedFeatureIndex,await this._featureDetails.refresh(t.detail.selectedFeature[0])}showAddCommentsPanel(){this._flowItems=[...this._flowItems,"add-comment"]}async onCommentSelectFromList(t){this._selectedRelatedFeature=[t.detail],this._flowItems=[...this._flowItems,"comment-details"]}getFeatureListFlowItem(t,i){const s=this._getLayersConfig(this._selectedLayerId)?.reporting&&this._layerItemsHash[this._selectedLayerId].supportsAdd,a=this._currentLayerExpressions?.length>0;return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:i,loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"feature-list"===this._flowItems[this._flowItems.length-1]},this._toggleSort(),e("calcite-action",{icon:"sort-ascending-arrow",id:"sort-popover",slot:"header-actions-end",text:this._translations.sort,title:this._translations.sort}),a&&e("calcite-action",{icon:"filter",indicator:this._filterActive,onClick:()=>{this._flowItems=[...this._flowItems,"filter-panel"]},slot:"header-actions-end",text:this._translations.filter,title:this._translations.filter}),this.isMobile&&this.getActionToExpandCollapsePanel(),this.enableNewReports&&s&&e("calcite-button",{appearance:"solid",onClick:this.navigateToCreateFeature.bind(this),slot:"footer",width:"full"},this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText),e("calcite-panel",{"full-height":!0},e("feature-list",{applyLayerViewFilter:this.showMyReportsOnly,class:"height-full",highlightOnHover:!0,locale:this.locale,mapView:this.mapView,noFeaturesFoundMsg:this._translations.featureErrorMsg,onFeatureSelect:this.onFeatureSelectFromList.bind(this),pageSize:30,ref:t=>this._featureList=t,reportingOptions:this.reportingOptions,selectedLayerId:t,showFeatureSymbol:this.showFeatureSymbol,sortingInfo:this._updatedSorting})))}getFilterPanel(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._translations?.filterLayerTitle?.replace("{{title}}",this._selectedLayerName),loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromFilterPanel.bind(this),selected:"filter-panel"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("div",{class:"width-full",slot:"footer"},e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",disabled:!this._filterActive,onClick:this.resetFilterList.bind(this),width:"full"},this._translations.resetFilter),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromFilterPanel.bind(this),width:"full"},this._translations.close))),e("calcite-panel",{"full-height":!0},e("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtnOnClick:()=>{},comboboxOverlayPositioning:"fixed",layerExpressions:this._currentLayerExpressions,onFilterListReset:()=>{this._handleFilterListReset()},onFilterUpdate:()=>{this._handleFilterUpdate(this._filterList.filterCount>0)},ref:t=>this._filterList=t,resetBtn:!1,resetFiltersOnDisconnect:!1,view:this.mapView,zoomBtn:!1})))}getFeatureDetailsFlowItem(){const t=this._getLayersConfig(this._selectedLayerId)?.comment&&this._selectedLayer.relationships.length>0&&this._relatedTable;return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"feature-details"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"share-node",embed:!1,popoverButtonIconScale:"s",ref:t=>this._shareNode=t,removePopoverOffset:!0,scale:"m",shareButtonColor:"neutral",shareButtonType:"action",slot:"header-actions-end",socialMedia:!0,view:this.mapView}),this._selectedFeature.length>1&&this.getFeaturesPagination(),e("calcite-panel",null,e("feature-details",{class:"full-height",graphics:this._selectedFeature,layerItemsHash:this._layerItemsHash,locale:this.locale,mapView:this.mapView,onAddComment:this.showAddCommentsPanel.bind(this),onCommentSelect:this.onCommentSelectFromList.bind(this),onFeatureSelectionChange:this.selectionChanged.bind(this),onLikeOrDislikeClicked:()=>{this._featureList.refresh(!0)},onLoadingStatus:t=>{this.updatingFeatureDetails(t.detail)},ref:t=>this._featureDetails=t,reportingOptions:this.reportingOptions,showFullCommentTitle:this.showFullCommentTitle,showUserImageInCommentsList:this.showUserImageInCommentsList}),t&&e("calcite-button",{appearance:"solid",onClick:this.showAddCommentsPanel.bind(this),slot:"footer",width:"full"},this.commentButtonText||this._translations.comment)))}getFeaturesPagination(){return e("div",{class:"feature-pagination"},e("div",null,e("calcite-button",{appearance:"transparent",disabled:!1,iconStart:"chevron-left",id:"solutions-back",onClick:()=>{this._featureDetails.back()},scale:"s",width:"full"}),e("calcite-tooltip",{label:"",placement:"top","reference-element":"solutions-back"},e("span",null,this._translations.back))),e("calcite-button",{appearance:"transparent",onClick:()=>{this._featureDetails.toggleListView()},scale:"s"},e("span",{class:"pagination-count"},this._getCount())),e("div",null,e("calcite-button",{appearance:"transparent",disabled:!1,iconStart:"chevron-right",id:"solutions-next",onClick:()=>{this._featureDetails.next()},scale:"s",width:"full"}),e("calcite-tooltip",{placement:"top","reference-element":"solutions-next"},e("span",null,this._translations.next))))}getCommentDetailsFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._relatedTable.title,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"comment-details"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("calcite-panel",{"full-height":!0},e("info-card",{allowEditing:!1,graphics:this._selectedRelatedFeature,highlightEnabled:!1,isLoading:!1,isMobile:!1,locale:this.locale,mapView:this.mapView,paginationEnabled:!1})))}getAddCommentFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._relatedTable.title,onCalciteFlowItemBack:this.backFromCreateRelatedFeaturePanel.bind(this),selected:"add-comment"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("div",{class:"width-full",slot:"footer"},this._showSubmitCancelButton&&e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",onClick:this.onCreateRelatedFeatureSubmitButtonClick.bind(this),width:"full"},this._translations.submit),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromCreateRelatedFeaturePanel.bind(this),width:"full"},this._translations.cancel))),e("calcite-panel",null,e("create-related-feature",{customizeSubmit:!0,locale:this.locale,mapView:this.mapView,onFail:this.addCommentFailed.bind(this),onFormReady:this.onFormReady.bind(this),onIsActionPending:this.showSubmitCancelButton.bind(this),onSuccess:this.onCommentSubmitted.bind(this),ref:t=>this._createRelatedFeature=t,selectedFeature:this._currentFeature,table:this._relatedTable})))}async setSelectedFeatures(t){this._selectedFeature=t,await this.setCurrentFeature(this._selectedFeature.length?this._selectedFeature[0]:null)}async setCurrentFeature(t){if(this._currentFeature=t,t&&t.layer){const i=t.layer;this.setSelectedLayer(i.id,i.title),this._currentFeatureId=t.attributes[i.objectIdField],this._getLayersConfig(i.id)?.comment&&i.relationships.length>0&&await this.getRelatedTable()}else this._editableLayerIds.length>1&&(this.setSelectedLayer("",""),this.handlePrevLayersFilter()),this._currentFeatureId="";this._updateShareURL()}async highlightOnMap(t){if(this.clearHighlights(),t&&t.geometry&&t.layer){const i=await d(this.mapView,t.layer.id);i.highlightOptions=null,this._highlightHandle=await u([t.getObjectId()],i,this.mapView,!0,this.zoomToScale)}this.updatingFeatureDetails(!1)}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}getActionToExpandCollapsePanel(){return e("calcite-action",{icon:this._sidePanelCollapsed?"chevrons-up":"chevrons-down",onClick:this.toggleSidePanel.bind(this),slot:"header-actions-end",text:this._sidePanelCollapsed?this._translations.expand:this._translations.collapse})}async setMapView(){await this.getLayersToShowInList(),await this._updateFeatures(),1===this._editableLayerIds?.length?await this.renderFeaturesList():this._flowItems=["layer-list"],this.mapView.popupEnabled=!1,this._defaultCenter&&this._defaultLevel&&(await this.mapView.goTo({center:this._defaultCenter,zoom:this._defaultLevel}),this._defaultCenter=void 0,this._defaultLevel=void 0)}handleMapClick(){this._mapClickHandle&&this._mapClickHandle.remove(),this._mapClickHandle=this.reactiveUtils.on((()=>this.mapView),"click",this.onMapClick.bind(this))}async onMapClick(t){this.mapView.popupEnabled=!1;const i=await this.mapView.hitTest(t);if(i.results.length>0){const t=[];i.results.forEach((function(i){"graphic"===i.type&&t.push(i.graphic)}));const s=t.filter((t=>this._validLayers.includes(t.layer))),e=t.filter((t=>!this._validLayers.includes(t.layer)&&t?.layer?.popupEnabled&&t?.layer?.id));if(s.length>0&&(await this.setSelectedFeatures(s),this._flowItems.length&&this._flowItems.includes("feature-details")?(this._flowItems=[...this._flowItems.slice(0,this._flowItems.indexOf("feature-details")+1)],await this.highlightOnMap(t[0])):this._flowItems=[...this._flowItems,"feature-details"]),e.length>0){this.mapView.popupEnabled=!0;const t={features:e,updateLocationEnabled:!0};await this.mapView.openPopup(t)}}}_getCount(){const t=(this._selectedFeatureIndex+1).toString(),i=this._selectedFeature.length.toString();return this._translations.indexOfTotal.replace("{{index}}",t).replace("{{total}}",i)}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}_updateFloorDefinitionExpression(t){const i=`${t.floorInfo.floorField} = '${this.floorLevel}'`,s=t.definitionExpression;t.definitionExpression=s?.indexOf(this._floorExpression)>-1?s.replace(this._floorExpression,i):i,this._floorExpression=i}_getFormElements(){const t=this._selectedLayer,i=t?.floorInfo?.floorField;if(i&&this.floorLevel&&t?.formTemplate){const i=this._formElements.find((i=>i.id===t.id));0!==this._formElements.length&&i||this._formElements.push({id:t.id,orgElements:t.formTemplate.elements,orgExpressionInfos:t.formTemplate.expressionInfos})}}reduceToConfiguredLayers(t,i){return Object.keys(t).reduce(((s,e)=>{const a=this.reportingOptions?this._getLayersConfig(e)?.visible:t[e].supportsAdd;return!i.includes(e)&&a&&s.push(e),s}),[])}async _updateFeatures(){for(const t of this._editableLayerIds){const i=await d(this.mapView,t);await this._showMyFeaturesOnly(i);const s=i.layer?.floorInfo?.floorField;s&&this.floorLevel&&this._updateFloorDefinitionExpression(i.layer)}}async _showMyFeaturesOnly(t){const i=this.mapView.map.portalItem.portal?.credential?.userId;if(i){const s=t.layer.editFieldsInfo?.creatorField.toLowerCase();t.filter=this.showMyReportsOnly&&s?new this.FeatureFilter({where:s+"='"+i+"'"}):null}}async getLayersToShowInList(){const t=await p(this.mapView,!0),i=await n(this.mapView),s=[];i.forEach((i=>{"feature"===i?.type&&i?.editingEnabled&&i?.capabilities?.operations?.supportsAdd&&(t[i.id].supportsAdd=!0),i?.editingEnabled||s.push(i.id)})),this._editableLayerIds=this.reduceToConfiguredLayers(t,s),this._layerItemsHash=t}async renderFeaturesList(){this._flowItems=["feature-list"];const t={detail:this._editableLayerIds};await this.layerListLoaded(t),await this.setSelectedLayer(this._validLayers[0].id,this._validLayers[0].title),this.handleSelectedLayersFilter()}_updateShareURL(){const t=this._shareNode?.shareUrl;if(!t)return;const i=new URL(t);this._selectedLayerId?i.searchParams.set("layerid",this._selectedLayerId):i.searchParams.delete("layerid"),this._selectedFeature?.length?i.searchParams.set("oid",this._currentFeatureId):i.searchParams.delete("oid"),this._shareNode.shareUrl=i.href}async loadFeatureFromURLParams(){if(this.center&&this.level&&await this.mapView.goTo({center:this.center.split(";").map(Number),zoom:this.level}),this.layerId&&this.objectId){const t=await c(this.mapView,this.layerId);if(t){const i=await f([Number(this.objectId)],t,[],!0,this.mapView.spatialReference);i.length&&(await this.setSelectedFeatures(i),this._flowItems=this._flowItems.length&&"feature-details"!==this._flowItems[this._flowItems.length-1]?[...this._flowItems,"feature-details"]:[...this._flowItems])}}}async handleSelectedLayersFilter(){if(this._selectedLayer){const t=this.layerExpressions?structuredClone(this.layerExpressions.filter((t=>t.id===this._selectedLayerId))):[];null!=this._t9nLayerExpressions&&this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t,this.setActiveDefinitionExpressions()}}async handlePrevLayersFilter(){if(this._prevSelectedLayerId){const t=await c(this.mapView,this._prevSelectedLayerId);t&&(t.definitionExpression=this._initDefExpressions[this._prevSelectedLayerId])}}resetFilterList(){this._filterList?.forceReset(),null!=this._selectedLayer&&(this._selectedLayer.definitionExpression=this._initDefExpressions[this._selectedLayerId],this._filterActive=!1)}setActiveDefinitionExpressions(){if(null==this._selectedLayer)return;const t=[];if(this._currentLayerExpressions?.length>0){const i=this._currentLayerExpressions[0];for(const s of i.expressions){const{active:i,definitionExpression:e}=s;i&&e&&t.push(`(${e})`)}this._filterActive=t.length>0,this.updateFilterLayerDefExpression(t,i.operator)}}updateFilterLayerDefExpression(t,i){const s=this._initDefExpressions[this._selectedLayerId],e=t?.length>0&&null!=s?`(${t.join(i)}) AND (${s})`:t.length>0?t.join(i):s;this._selectedLayer.definitionExpression=e}setInitExpressions(){if(this._initDefExpressions={},null==this.mapView)return;const t=this.mapView.map;t.allLayers.concat(t.allTables).forEach((t=>{"feature"===t.type&&(this._initDefExpressions[t.id]=t.definitionExpression)}))}handleLayerExpressionsT9n(t,i){t?.forEach((t=>{const s=i?.find((i=>i.id===t.id));null!=s&&(t.title=s.title,t.expressions?.forEach((t=>{const i=s.expressions?.find((i=>i.id===t.id));null!=i&&(t.name=i.name)})))}))}static get watchers(){return{isMobile:["isMobileWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],floorLevel:["floorLevelWatchHandler"],showMyReportsOnly:["showMyReportsOnlyWatchHandler"],layerExpressions:["layerExpressionsWatchHandler"],showFeatureSymbol:["showFeatureSymbolWatchHandler"]}}};m.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{background-color:var(--calcite-color-foreground-1) !important;border-block-end:1px solid var(--calcite-color-border-3);display:flex;justify-content:center;padding:5px 0}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}.report-submitted-msg{position:absolute;z-index:1000}.share-node{display:flex}";export{m as crowdsource_reporter}