@esri/solutions-components 0.8.14 → 0.8.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (390) hide show
  1. package/dist/assets/arcgis-pdf-creator/PDFLabels.d.ts +218 -0
  2. package/dist/assets/t9n/crowdsource-reporter/resources.json +0 -1
  3. package/dist/assets/t9n/crowdsource-reporter/resources_ar.json +15 -7
  4. package/dist/assets/t9n/crowdsource-reporter/resources_bg.json +15 -7
  5. package/dist/assets/t9n/crowdsource-reporter/resources_bs.json +15 -7
  6. package/dist/assets/t9n/crowdsource-reporter/resources_ca.json +15 -7
  7. package/dist/assets/t9n/crowdsource-reporter/resources_cs.json +15 -7
  8. package/dist/assets/t9n/crowdsource-reporter/resources_da.json +15 -7
  9. package/dist/assets/t9n/crowdsource-reporter/resources_de.json +15 -7
  10. package/dist/assets/t9n/crowdsource-reporter/resources_el.json +15 -7
  11. package/dist/assets/t9n/crowdsource-reporter/resources_en.json +0 -1
  12. package/dist/assets/t9n/crowdsource-reporter/resources_es.json +15 -7
  13. package/dist/assets/t9n/crowdsource-reporter/resources_et.json +15 -7
  14. package/dist/assets/t9n/crowdsource-reporter/resources_fi.json +15 -7
  15. package/dist/assets/t9n/crowdsource-reporter/resources_fr.json +15 -7
  16. package/dist/assets/t9n/crowdsource-reporter/resources_he.json +15 -7
  17. package/dist/assets/t9n/crowdsource-reporter/resources_hr.json +15 -7
  18. package/dist/assets/t9n/crowdsource-reporter/resources_hu.json +15 -7
  19. package/dist/assets/t9n/crowdsource-reporter/resources_id.json +15 -7
  20. package/dist/assets/t9n/crowdsource-reporter/resources_it.json +15 -7
  21. package/dist/assets/t9n/crowdsource-reporter/resources_ja.json +15 -7
  22. package/dist/assets/t9n/crowdsource-reporter/resources_ko.json +15 -7
  23. package/dist/assets/t9n/crowdsource-reporter/resources_lt.json +15 -7
  24. package/dist/assets/t9n/crowdsource-reporter/resources_lv.json +15 -7
  25. package/dist/assets/t9n/crowdsource-reporter/resources_nb.json +15 -7
  26. package/dist/assets/t9n/crowdsource-reporter/resources_nl.json +15 -7
  27. package/dist/assets/t9n/crowdsource-reporter/resources_pl.json +15 -7
  28. package/dist/assets/t9n/crowdsource-reporter/resources_pt-BR.json +15 -7
  29. package/dist/assets/t9n/crowdsource-reporter/resources_pt-PT.json +15 -7
  30. package/dist/assets/t9n/crowdsource-reporter/resources_ro.json +15 -7
  31. package/dist/assets/t9n/crowdsource-reporter/resources_ru.json +15 -7
  32. package/dist/assets/t9n/crowdsource-reporter/resources_sk.json +15 -7
  33. package/dist/assets/t9n/crowdsource-reporter/resources_sl.json +15 -7
  34. package/dist/assets/t9n/crowdsource-reporter/resources_sr.json +15 -7
  35. package/dist/assets/t9n/crowdsource-reporter/resources_sv.json +15 -7
  36. package/dist/assets/t9n/crowdsource-reporter/resources_th.json +15 -7
  37. package/dist/assets/t9n/crowdsource-reporter/resources_tr.json +15 -7
  38. package/dist/assets/t9n/crowdsource-reporter/resources_uk.json +15 -7
  39. package/dist/assets/t9n/crowdsource-reporter/resources_vi.json +15 -7
  40. package/dist/assets/t9n/crowdsource-reporter/resources_zh-CN.json +15 -7
  41. package/dist/assets/t9n/crowdsource-reporter/resources_zh-HK.json +15 -7
  42. package/dist/assets/t9n/crowdsource-reporter/resources_zh-TW.json +15 -7
  43. package/dist/assets/t9n/feature-list/resources_ar.json +1 -1
  44. package/dist/assets/t9n/feature-list/resources_bg.json +1 -1
  45. package/dist/assets/t9n/feature-list/resources_bs.json +1 -1
  46. package/dist/assets/t9n/feature-list/resources_ca.json +1 -1
  47. package/dist/assets/t9n/feature-list/resources_cs.json +1 -1
  48. package/dist/assets/t9n/feature-list/resources_da.json +1 -1
  49. package/dist/assets/t9n/feature-list/resources_de.json +1 -1
  50. package/dist/assets/t9n/feature-list/resources_el.json +1 -1
  51. package/dist/assets/t9n/feature-list/resources_es.json +1 -1
  52. package/dist/assets/t9n/feature-list/resources_et.json +1 -1
  53. package/dist/assets/t9n/feature-list/resources_fi.json +1 -1
  54. package/dist/assets/t9n/feature-list/resources_fr.json +1 -1
  55. package/dist/assets/t9n/feature-list/resources_he.json +1 -1
  56. package/dist/assets/t9n/feature-list/resources_hr.json +1 -1
  57. package/dist/assets/t9n/feature-list/resources_hu.json +1 -1
  58. package/dist/assets/t9n/feature-list/resources_id.json +1 -1
  59. package/dist/assets/t9n/feature-list/resources_it.json +1 -1
  60. package/dist/assets/t9n/feature-list/resources_ja.json +1 -1
  61. package/dist/assets/t9n/feature-list/resources_ko.json +1 -1
  62. package/dist/assets/t9n/feature-list/resources_lt.json +1 -1
  63. package/dist/assets/t9n/feature-list/resources_lv.json +1 -1
  64. package/dist/assets/t9n/feature-list/resources_nb.json +1 -1
  65. package/dist/assets/t9n/feature-list/resources_nl.json +1 -1
  66. package/dist/assets/t9n/feature-list/resources_pl.json +1 -1
  67. package/dist/assets/t9n/feature-list/resources_pt-BR.json +1 -1
  68. package/dist/assets/t9n/feature-list/resources_pt-PT.json +1 -1
  69. package/dist/assets/t9n/feature-list/resources_ro.json +1 -1
  70. package/dist/assets/t9n/feature-list/resources_ru.json +1 -1
  71. package/dist/assets/t9n/feature-list/resources_sk.json +1 -1
  72. package/dist/assets/t9n/feature-list/resources_sl.json +1 -1
  73. package/dist/assets/t9n/feature-list/resources_sr.json +1 -1
  74. package/dist/assets/t9n/feature-list/resources_sv.json +1 -1
  75. package/dist/assets/t9n/feature-list/resources_th.json +1 -1
  76. package/dist/assets/t9n/feature-list/resources_tr.json +1 -1
  77. package/dist/assets/t9n/feature-list/resources_uk.json +1 -1
  78. package/dist/assets/t9n/feature-list/resources_vi.json +1 -1
  79. package/dist/assets/t9n/feature-list/resources_zh-CN.json +1 -1
  80. package/dist/assets/t9n/feature-list/resources_zh-HK.json +1 -1
  81. package/dist/assets/t9n/feature-list/resources_zh-TW.json +1 -1
  82. package/dist/assets/t9n/layer-list/resources.json +1 -1
  83. package/dist/assets/t9n/layer-list/resources_en.json +1 -1
  84. package/dist/assets/t9n/media-card/resources.json +1 -3
  85. package/dist/assets/t9n/media-card/resources_ar.json +3 -0
  86. package/dist/assets/t9n/media-card/resources_bg.json +3 -0
  87. package/dist/assets/t9n/media-card/resources_bs.json +3 -0
  88. package/dist/assets/t9n/media-card/resources_ca.json +3 -0
  89. package/dist/assets/t9n/media-card/resources_cs.json +3 -0
  90. package/dist/assets/t9n/media-card/resources_da.json +3 -0
  91. package/dist/assets/t9n/media-card/resources_de.json +3 -0
  92. package/dist/assets/t9n/media-card/resources_el.json +3 -0
  93. package/dist/assets/t9n/media-card/resources_en.json +1 -3
  94. package/dist/assets/t9n/media-card/resources_es.json +3 -0
  95. package/dist/assets/t9n/media-card/resources_et.json +3 -0
  96. package/dist/assets/t9n/media-card/resources_fi.json +3 -0
  97. package/dist/assets/t9n/media-card/resources_fr.json +3 -0
  98. package/dist/assets/t9n/media-card/resources_he.json +3 -0
  99. package/dist/assets/t9n/media-card/resources_hr.json +3 -0
  100. package/dist/assets/t9n/media-card/resources_hu.json +3 -0
  101. package/dist/assets/t9n/media-card/resources_id.json +3 -0
  102. package/dist/assets/t9n/media-card/resources_it.json +3 -0
  103. package/dist/assets/t9n/media-card/resources_ja.json +3 -0
  104. package/dist/assets/t9n/media-card/resources_ko.json +3 -0
  105. package/dist/assets/t9n/media-card/resources_lt.json +3 -0
  106. package/dist/assets/t9n/media-card/resources_lv.json +3 -0
  107. package/dist/assets/t9n/media-card/resources_nb.json +3 -0
  108. package/dist/assets/t9n/media-card/resources_nl.json +3 -0
  109. package/dist/assets/t9n/media-card/resources_pl.json +3 -0
  110. package/dist/assets/t9n/media-card/resources_pt-BR.json +3 -0
  111. package/dist/assets/t9n/media-card/resources_pt-PT.json +3 -0
  112. package/dist/assets/t9n/media-card/resources_ro.json +3 -0
  113. package/dist/assets/t9n/media-card/resources_ru.json +3 -0
  114. package/dist/assets/t9n/media-card/resources_sk.json +3 -0
  115. package/dist/assets/t9n/media-card/resources_sl.json +3 -0
  116. package/dist/assets/t9n/media-card/resources_sr.json +3 -0
  117. package/dist/assets/t9n/media-card/resources_sv.json +3 -0
  118. package/dist/assets/t9n/media-card/resources_th.json +3 -0
  119. package/dist/assets/t9n/media-card/resources_tr.json +3 -0
  120. package/dist/assets/t9n/media-card/resources_uk.json +3 -0
  121. package/dist/assets/t9n/media-card/resources_vi.json +3 -0
  122. package/dist/assets/t9n/media-card/resources_zh-CN.json +3 -0
  123. package/dist/assets/t9n/media-card/resources_zh-HK.json +3 -0
  124. package/dist/assets/t9n/media-card/resources_zh-TW.json +3 -0
  125. package/dist/assets/t9n/public-notification/resources_ar.json +3 -1
  126. package/dist/assets/t9n/public-notification/resources_bg.json +3 -1
  127. package/dist/assets/t9n/public-notification/resources_bs.json +3 -1
  128. package/dist/assets/t9n/public-notification/resources_ca.json +3 -1
  129. package/dist/assets/t9n/public-notification/resources_cs.json +3 -1
  130. package/dist/assets/t9n/public-notification/resources_da.json +3 -1
  131. package/dist/assets/t9n/public-notification/resources_de.json +3 -1
  132. package/dist/assets/t9n/public-notification/resources_el.json +3 -1
  133. package/dist/assets/t9n/public-notification/resources_es.json +3 -1
  134. package/dist/assets/t9n/public-notification/resources_et.json +3 -1
  135. package/dist/assets/t9n/public-notification/resources_fi.json +3 -1
  136. package/dist/assets/t9n/public-notification/resources_fr.json +3 -1
  137. package/dist/assets/t9n/public-notification/resources_he.json +3 -1
  138. package/dist/assets/t9n/public-notification/resources_hr.json +3 -1
  139. package/dist/assets/t9n/public-notification/resources_hu.json +3 -1
  140. package/dist/assets/t9n/public-notification/resources_id.json +3 -1
  141. package/dist/assets/t9n/public-notification/resources_it.json +3 -1
  142. package/dist/assets/t9n/public-notification/resources_ja.json +3 -1
  143. package/dist/assets/t9n/public-notification/resources_ko.json +3 -1
  144. package/dist/assets/t9n/public-notification/resources_lt.json +3 -1
  145. package/dist/assets/t9n/public-notification/resources_lv.json +3 -1
  146. package/dist/assets/t9n/public-notification/resources_nb.json +3 -1
  147. package/dist/assets/t9n/public-notification/resources_nl.json +3 -1
  148. package/dist/assets/t9n/public-notification/resources_pl.json +3 -1
  149. package/dist/assets/t9n/public-notification/resources_pt-BR.json +3 -1
  150. package/dist/assets/t9n/public-notification/resources_pt-PT.json +3 -1
  151. package/dist/assets/t9n/public-notification/resources_ro.json +3 -1
  152. package/dist/assets/t9n/public-notification/resources_ru.json +3 -1
  153. package/dist/assets/t9n/public-notification/resources_sk.json +3 -1
  154. package/dist/assets/t9n/public-notification/resources_sl.json +3 -1
  155. package/dist/assets/t9n/public-notification/resources_sr.json +3 -1
  156. package/dist/assets/t9n/public-notification/resources_sv.json +3 -1
  157. package/dist/assets/t9n/public-notification/resources_th.json +3 -1
  158. package/dist/assets/t9n/public-notification/resources_tr.json +3 -1
  159. package/dist/assets/t9n/public-notification/resources_uk.json +3 -1
  160. package/dist/assets/t9n/public-notification/resources_vi.json +3 -1
  161. package/dist/assets/t9n/public-notification/resources_zh-CN.json +3 -1
  162. package/dist/assets/t9n/public-notification/resources_zh-HK.json +3 -1
  163. package/dist/assets/t9n/public-notification/resources_zh-TW.json +3 -1
  164. package/dist/cjs/basemap-gallery_7.cjs.entry.js +6 -6
  165. package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
  166. package/dist/cjs/calcite-alert_4.cjs.entry.js +12 -8
  167. package/dist/cjs/calcite-dropdown_4.cjs.entry.js +2 -2
  168. package/dist/cjs/calcite-flow_6.cjs.entry.js +320 -255
  169. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +7 -7
  170. package/dist/cjs/card-manager_3.cjs.entry.js +5 -5
  171. package/dist/cjs/crowdsource-manager.cjs.entry.js +2 -2
  172. package/dist/cjs/crowdsource-reporter.cjs.entry.js +181 -54
  173. package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
  174. package/dist/cjs/{downloadUtils-88c011ad.js → downloadUtils-2e36a300.js} +31 -35
  175. package/dist/cjs/feature-comments.cjs.entry.js +1 -1
  176. package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
  177. package/dist/cjs/feature-list.cjs.entry.js +297 -0
  178. package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
  179. package/dist/cjs/{index.es-1d5ee842.js → index.es-56415e48.js} +2 -2
  180. package/dist/cjs/layout-manager.cjs.entry.js +1 -1
  181. package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
  182. package/dist/cjs/loader.cjs.js +1 -1
  183. package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
  184. package/dist/cjs/map-select-tools_3.cjs.entry.js +5 -5
  185. package/dist/cjs/{mapViewUtils-82018df6.js → mapViewUtils-6e46ba33.js} +16 -0
  186. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  187. package/dist/cjs/public-notification.cjs.entry.js +3 -3
  188. package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
  189. package/dist/cjs/share-item.cjs.entry.js +1 -1
  190. package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
  191. package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
  192. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  193. package/dist/cjs/solutions-components.cjs.js +1 -1
  194. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  195. package/dist/collection/collection-manifest.json +1 -0
  196. package/dist/collection/components/create-related-feature/create-related-feature.css +8 -0
  197. package/dist/collection/components/create-related-feature/create-related-feature.js +426 -0
  198. package/dist/collection/components/create-related-feature/test/create-related-feature.e2e.js +14 -0
  199. package/dist/collection/components/create-related-feature/test/create-related-feature.spec.js +22 -0
  200. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
  201. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +1 -0
  202. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +367 -218
  203. package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
  204. package/dist/collection/components/delete-button/delete-button.js +1 -1
  205. package/dist/collection/components/edit-card/edit-card.js +1 -1
  206. package/dist/collection/components/feature-comments/feature-comments.js +1 -1
  207. package/dist/collection/components/feature-details/feature-details.css +6 -3
  208. package/dist/collection/components/feature-details/feature-details.js +95 -9
  209. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
  210. package/dist/collection/components/feature-list/feature-list.css +6 -1
  211. package/dist/collection/components/feature-list/feature-list.js +133 -13
  212. package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
  213. package/dist/collection/components/floor-filter/floor-filter.js +1 -1
  214. package/dist/collection/components/info-card/info-card.js +11 -7
  215. package/dist/collection/components/json-editor/json-editor.js +1 -1
  216. package/dist/collection/components/layer-list/layer-list.js +3 -23
  217. package/dist/collection/components/layer-table/layer-table.css +1 -1
  218. package/dist/collection/components/layer-table/layer-table.js +2 -2
  219. package/dist/collection/components/layout-manager/layout-manager.js +1 -1
  220. package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
  221. package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
  222. package/dist/collection/components/map-card/map-card.js +1 -1
  223. package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
  224. package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
  225. package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
  226. package/dist/collection/components/map-legend/map-legend.js +1 -1
  227. package/dist/collection/components/map-picker/map-picker.js +1 -1
  228. package/dist/collection/components/map-search/map-search.js +1 -1
  229. package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
  230. package/dist/collection/components/map-tools/map-tools.js +1 -1
  231. package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
  232. package/dist/collection/components/pdf-download/pdf-download.js +1 -1
  233. package/dist/collection/components/public-notification/public-notification.js +1 -1
  234. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
  235. package/dist/collection/components/refine-selection/refine-selection.js +1 -1
  236. package/dist/collection/components/share-item/share-item.js +1 -1
  237. package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
  238. package/dist/collection/components/solution-contents/solution-contents.js +1 -1
  239. package/dist/collection/components/solution-item/solution-item.js +1 -1
  240. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
  241. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  242. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
  243. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
  244. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  245. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
  246. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  247. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  248. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  249. package/dist/collection/utils/downloadUtils.js +0 -1
  250. package/dist/collection/utils/interfaces.ts +5 -0
  251. package/dist/collection/utils/mapViewUtils.js +15 -0
  252. package/dist/collection/utils/mapViewUtils.ts +19 -1
  253. package/dist/collection/utils/pdfUtils.js +29 -34
  254. package/dist/collection/utils/pdfUtils.ts +40 -47
  255. package/dist/components/create-related-feature.d.ts +11 -0
  256. package/dist/components/create-related-feature.js +11 -0
  257. package/dist/components/create-related-feature2.js +274 -0
  258. package/dist/components/crowdsource-manager.js +1 -1
  259. package/dist/components/crowdsource-reporter.js +287 -148
  260. package/dist/components/deduct-calculator2.js +1 -1
  261. package/dist/components/delete-button2.js +1 -1
  262. package/dist/components/downloadUtils.js +29 -33
  263. package/dist/components/edit-card2.js +1 -1
  264. package/dist/components/feature-comments.js +1 -1
  265. package/dist/components/feature-details2.js +163 -40
  266. package/dist/components/feature-form-flow-item.js +1 -1
  267. package/dist/components/feature-list2.js +64 -16
  268. package/dist/components/features-flow-item.js +1 -1
  269. package/dist/components/floor-filter2.js +1 -1
  270. package/dist/components/info-card2.js +9 -5
  271. package/dist/components/json-editor2.js +1 -1
  272. package/dist/components/layer-list2.js +3 -7
  273. package/dist/components/layer-table2.js +2 -2
  274. package/dist/components/layout-manager.js +1 -1
  275. package/dist/components/list-flow-item.js +1 -1
  276. package/dist/components/location-flow-item.js +1 -1
  277. package/dist/components/map-card2.js +1 -1
  278. package/dist/components/map-draw-tools2.js +1 -1
  279. package/dist/components/map-fullscreen2.js +1 -1
  280. package/dist/components/map-layer-picker2.js +1 -1
  281. package/dist/components/map-legend2.js +1 -1
  282. package/dist/components/map-picker2.js +1 -1
  283. package/dist/components/map-search2.js +1 -1
  284. package/dist/components/map-select-tools2.js +1 -1
  285. package/dist/components/map-tools2.js +1 -1
  286. package/dist/components/mapViewUtils.js +16 -1
  287. package/dist/components/pci-calculator.js +1 -1
  288. package/dist/components/pdf-download2.js +1 -1
  289. package/dist/components/public-notification.js +1 -1
  290. package/dist/components/refine-results-flow-item.js +1 -1
  291. package/dist/components/refine-selection2.js +2 -2
  292. package/dist/components/share-item.js +1 -1
  293. package/dist/components/solution-configuration.js +3 -3
  294. package/dist/components/solution-contents2.js +1 -1
  295. package/dist/components/solution-item-details2.js +1 -1
  296. package/dist/components/solution-item-icon2.js +1 -1
  297. package/dist/components/solution-item-sharing2.js +1 -1
  298. package/dist/components/solution-item2.js +1 -1
  299. package/dist/components/solution-organization-variables2.js +1 -1
  300. package/dist/components/solution-resource-item2.js +1 -1
  301. package/dist/components/solution-spatial-ref2.js +1 -1
  302. package/dist/components/solution-template-data2.js +1 -1
  303. package/dist/components/solution-variables2.js +1 -1
  304. package/dist/components/spatial-ref2.js +1 -1
  305. package/dist/esm/basemap-gallery_7.entry.js +6 -6
  306. package/dist/esm/buffer-tools_3.entry.js +1 -1
  307. package/dist/esm/calcite-alert_4.entry.js +12 -8
  308. package/dist/esm/calcite-dropdown_4.entry.js +2 -2
  309. package/dist/esm/calcite-flow_6.entry.js +321 -256
  310. package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
  311. package/dist/esm/card-manager_3.entry.js +5 -5
  312. package/dist/esm/crowdsource-manager.entry.js +2 -2
  313. package/dist/esm/crowdsource-reporter.entry.js +182 -55
  314. package/dist/esm/deduct-calculator.entry.js +1 -1
  315. package/dist/esm/{downloadUtils-fa6e5c37.js → downloadUtils-aab31bfe.js} +31 -35
  316. package/dist/esm/feature-comments.entry.js +1 -1
  317. package/dist/esm/feature-form-flow-item.entry.js +1 -1
  318. package/dist/esm/feature-list.entry.js +293 -0
  319. package/dist/esm/features-flow-item.entry.js +1 -1
  320. package/dist/esm/{index.es-114545fc.js → index.es-43ba3006.js} +2 -2
  321. package/dist/esm/layout-manager.entry.js +1 -1
  322. package/dist/esm/list-flow-item.entry.js +1 -1
  323. package/dist/esm/loader.js +1 -1
  324. package/dist/esm/location-flow-item.entry.js +1 -1
  325. package/dist/esm/map-select-tools_3.entry.js +5 -5
  326. package/dist/esm/{mapViewUtils-c83c03a4.js → mapViewUtils-4618ddb8.js} +16 -1
  327. package/dist/esm/pci-calculator.entry.js +1 -1
  328. package/dist/esm/public-notification.entry.js +3 -3
  329. package/dist/esm/refine-results-flow-item.entry.js +1 -1
  330. package/dist/esm/share-item.entry.js +1 -1
  331. package/dist/esm/solution-configuration.entry.js +3 -3
  332. package/dist/esm/solution-contents_3.entry.js +3 -3
  333. package/dist/esm/solution-item-icon.entry.js +1 -1
  334. package/dist/esm/solutions-components.js +1 -1
  335. package/dist/esm/spatial-ref.entry.js +1 -1
  336. package/dist/solutions-components/{p-afdc6bb2.entry.js → p-102b1f94.entry.js} +1 -1
  337. package/dist/solutions-components/p-22aece81.entry.js +6 -0
  338. package/dist/solutions-components/p-28c6906c.entry.js +6 -0
  339. package/dist/solutions-components/{p-71bdc77f.entry.js → p-33845a79.entry.js} +1 -1
  340. package/dist/solutions-components/{p-16ac309d.entry.js → p-3470c0f7.entry.js} +1 -1
  341. package/dist/solutions-components/{p-ee457c15.js → p-37fc92db.js} +3 -3
  342. package/dist/solutions-components/{p-59c92ba2.entry.js → p-3a2e0188.entry.js} +1 -1
  343. package/dist/solutions-components/p-3fae9775.entry.js +6 -0
  344. package/dist/solutions-components/p-4830649e.entry.js +6 -0
  345. package/dist/solutions-components/{p-0f139e3e.entry.js → p-54324eaa.entry.js} +1 -1
  346. package/dist/solutions-components/{p-d9c89479.js → p-583e5dd0.js} +1 -1
  347. package/dist/solutions-components/{p-69935f68.entry.js → p-667c022f.entry.js} +1 -1
  348. package/dist/solutions-components/{p-247edfb2.js → p-667caa6b.js} +1 -1
  349. package/dist/solutions-components/p-71de367b.entry.js +6 -0
  350. package/dist/solutions-components/{p-32fed174.entry.js → p-84a5d221.entry.js} +1 -1
  351. package/dist/solutions-components/{p-6e8782d1.entry.js → p-88f73319.entry.js} +1 -1
  352. package/dist/solutions-components/p-8a81f3c7.entry.js +6 -0
  353. package/dist/solutions-components/{p-288592d4.entry.js → p-92ed8d5d.entry.js} +1 -1
  354. package/dist/solutions-components/p-aa06f4d1.entry.js +6 -0
  355. package/dist/solutions-components/{p-67ee4afe.entry.js → p-b3160299.entry.js} +4 -4
  356. package/dist/solutions-components/p-b6d47bab.entry.js +17 -0
  357. package/dist/solutions-components/{p-bcf20616.entry.js → p-b76b5310.entry.js} +1 -1
  358. package/dist/solutions-components/{p-62994fb8.entry.js → p-bb0c7be3.entry.js} +3 -3
  359. package/dist/solutions-components/{p-7fdcce90.entry.js → p-bf57dbfd.entry.js} +2 -2
  360. package/dist/solutions-components/p-c047a6fc.entry.js +6 -0
  361. package/dist/solutions-components/{p-83997457.entry.js → p-d84fe0ee.entry.js} +2 -2
  362. package/dist/solutions-components/p-e9176a44.entry.js +6 -0
  363. package/dist/solutions-components/p-e947332f.entry.js +6 -0
  364. package/dist/solutions-components/{p-568c465e.entry.js → p-fc665a1a.entry.js} +1 -1
  365. package/dist/solutions-components/solutions-components.esm.js +1 -1
  366. package/dist/solutions-components/utils/interfaces.ts +5 -0
  367. package/dist/solutions-components/utils/mapViewUtils.ts +19 -1
  368. package/dist/solutions-components/utils/pdfUtils.ts +40 -47
  369. package/dist/types/assets/arcgis-pdf-creator/PDFLabels.d.ts +218 -0
  370. package/dist/types/components/create-related-feature/create-related-feature.d.ts +113 -0
  371. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +197 -99
  372. package/dist/types/components/feature-details/feature-details.d.ts +31 -0
  373. package/dist/types/components/feature-list/feature-list.d.ts +31 -2
  374. package/dist/types/components/info-card/info-card.d.ts +6 -2
  375. package/dist/types/components/layer-list/layer-list.d.ts +0 -5
  376. package/dist/types/components.d.ts +131 -12
  377. package/dist/types/preact.d.ts +8 -1
  378. package/dist/types/utils/interfaces.d.ts +4 -0
  379. package/dist/types/utils/mapViewUtils.d.ts +7 -0
  380. package/package.json +1 -1
  381. package/dist/solutions-components/p-28b4b325.entry.js +0 -6
  382. package/dist/solutions-components/p-36d3476c.entry.js +0 -17
  383. package/dist/solutions-components/p-452d2d38.entry.js +0 -6
  384. package/dist/solutions-components/p-48b2469f.entry.js +0 -6
  385. package/dist/solutions-components/p-4f0712e2.entry.js +0 -6
  386. package/dist/solutions-components/p-535c103e.entry.js +0 -6
  387. package/dist/solutions-components/p-7ca416ab.entry.js +0 -6
  388. package/dist/solutions-components/p-8e337f80.entry.js +0 -6
  389. package/dist/solutions-components/p-d13f6b3a.entry.js +0 -6
  390. package/dist/solutions-components/p-d62b99ff.entry.js +0 -6
@@ -18,55 +18,59 @@
18
18
  * See the License for the specific language governing permissions and
19
19
  * limitations under the License.
20
20
  */
21
- import { Host, h } from "@stencil/core";
21
+ import { Host, h, Fragment } from "@stencil/core";
22
22
  import { getLocaleComponentStrings } from "../../utils/locale";
23
23
  import { loadModules } from "../../utils/loadModules";
24
- import { getAllLayers, getFeatureLayerView, getLayerOrTable, getMapLayerHash, highlightFeatures } from "../../utils/mapViewUtils";
24
+ import { getAllLayers, getAllTables, getFeatureLayerView, getLayerOrTable, getMapLayerHash, highlightFeatures } from "../../utils/mapViewUtils";
25
25
  import { queryFeaturesByID } from "../../utils/queryUtils";
26
26
  export class CrowdsourceReporter {
27
27
  constructor() {
28
- //HARDCODED IN EN
29
- this._noLayerToDisplayErrorMsg = "Web map does not contain any editable layers.";
28
+ this.center = undefined;
29
+ this.coverPageEnabled = undefined;
30
+ this.defaultWebmap = "";
30
31
  this.description = undefined;
31
- this.isMobile = undefined;
32
32
  this.enableAnonymousAccess = undefined;
33
33
  this.enableAnonymousComments = undefined;
34
34
  this.enableComments = undefined;
35
+ this.enableHome = true;
35
36
  this.enableLogin = undefined;
36
37
  this.enableNewReports = undefined;
38
+ this.enableSearch = true;
39
+ this.enableZoom = true;
40
+ this.isMobile = undefined;
41
+ this.layerExpressions = [];
42
+ this.layerId = undefined;
43
+ this.level = undefined;
37
44
  this.loginTitle = undefined;
45
+ this.mapInfos = [];
38
46
  this.mapView = undefined;
39
- this.layerId = undefined;
40
47
  this.objectId = undefined;
41
- this.center = undefined;
42
- this.level = undefined;
43
48
  this.reportButtonText = undefined;
44
- this.reportsHeader = undefined;
45
49
  this.reportingOptions = undefined;
50
+ this.reportsHeader = undefined;
46
51
  this.reportSubmittedMessage = undefined;
47
52
  this.searchConfiguration = undefined;
48
53
  this.showComments = undefined;
49
- this.defaultWebmap = "";
50
- this.enableSearch = true;
51
- this.enableHome = true;
52
- this.mapInfos = [];
53
54
  this.theme = "light";
54
- this.enableZoom = true;
55
55
  this.zoomToScale = undefined;
56
- this.layerExpressions = [];
57
- this._mapInfo = undefined;
56
+ this._featureCreationFailedErrorMsg = undefined;
57
+ this._filterActive = false;
58
+ this._filterOpen = false;
58
59
  this._flowItems = [];
59
- this._sidePanelCollapsed = false;
60
- this._translations = undefined;
61
60
  this._hasValidLayers = false;
62
- this._selectedLayerName = undefined;
61
+ this._loadingFeatureDetails = undefined;
62
+ this._mapInfo = undefined;
63
63
  this._reportSubmitted = false;
64
+ this._selectedLayerName = undefined;
64
65
  this._showSubmitCancelButton = false;
65
- this._loadingFeatureDetails = undefined;
66
- this._featureCreationFailedErrorMsg = undefined;
66
+ this._showLoadingIndicator = false;
67
+ this._sidePanelCollapsed = false;
68
+ this._translations = undefined;
67
69
  this._updatedProgressBarStatus = 0.25;
68
- this._filterOpen = false;
69
- this._filterActive = false;
70
+ this._updatedSorting = undefined;
71
+ this._updatedSortOption = "sortNewest";
72
+ this._commentSubmitted = false;
73
+ this._addingCommentFailed = false;
70
74
  }
71
75
  //--------------------------------------------------------------------------
72
76
  //
@@ -93,10 +97,10 @@ export class CrowdsourceReporter {
93
97
  */
94
98
  async selectionChanged(evt) {
95
99
  void this.updatingFeatureDetails(true);
96
- this.setCurrentFeature(evt.detail.selectedFeature[0]);
100
+ await this.setCurrentFeature(evt.detail.selectedFeature[0]);
97
101
  void this.highlightOnMap(evt.detail.selectedFeature[0]);
98
- this.selectedFeatureIndex = evt.detail.selectedFeatureIndex;
99
- //update the feature details to reflect the like dislike values
102
+ this._selectedFeatureIndex = evt.detail.selectedFeatureIndex;
103
+ //update the feature details to reflect the like, dislike and comment values
100
104
  await this._featureDetails.refresh(evt.detail.selectedFeature[0]);
101
105
  }
102
106
  //--------------------------------------------------------------------------
@@ -116,7 +120,7 @@ export class CrowdsourceReporter {
116
120
  await this._getTranslations();
117
121
  await ((_a = this.mapView) === null || _a === void 0 ? void 0 : _a.when(async () => {
118
122
  //set configured reporting layers array
119
- this.layers = this.reportingOptions ? Object.keys(this.reportingOptions).filter((layerId) => {
123
+ this._layers = this.reportingOptions ? Object.keys(this.reportingOptions).filter((layerId) => {
120
124
  return this.reportingOptions[layerId].reporting;
121
125
  }) : [];
122
126
  await this.setMapView();
@@ -127,7 +131,7 @@ export class CrowdsourceReporter {
127
131
  */
128
132
  render() {
129
133
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
130
- return (h(Host, { key: '197ae2c1b96231124830a044c5a3642107987c85' }, this._reportSubmitted && h("calcite-alert", { key: '2cbdbc22994787e0ac1c204d5043c6c0409503e8', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '88ae73773b51678409fa69e68931714b5fdd951a', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: '4b0fa9ae2e597d4a44fe2624debe20b2bbeed037', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: '108c6a3b06c3f9c52ff15e158d20a39422bb2ad8', slot: "title" }, this._translations.error), h("div", { key: 'c0e54e5665480a5cbe9e4f4b8a05e3c56c20d825', slot: "message" }, this._featureCreationFailedErrorMsg)), h("div", { key: 'c3417032902e0fc8a6fc33909b2f2eb71ba72650' }, h("calcite-shell", { key: 'e5ac5faedf24bd22aa62f0d0f5a4925b2c5e06d4', "content-behind": true }, this._getReporter())), this.filterModal()));
134
+ return (h(Host, { key: 'e1591753c341fd3e59d534fdf789ea82aa1f5216' }, this._reportSubmitted && h("calcite-alert", { key: 'ba2b313b3053d15916ae178531f800fa1412d83a', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '7033da8d7d2b4f791b75c17b3cffbdf42824deab', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: '142417d36729dc61825a0f150737ed8085b39bfb', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: '3d49100e462d1c6265cfb928f83647f780660824', slot: "title" }, this._translations.error), h("div", { key: '486e96a7f2ab08f6a7562a016e6575ef6b894610', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: 'c3ff4d1d91fad3fd3b1afc2e3ee35b3653245bfa', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '1a370602baeee092bddcae5d70c27b01024b2c1a', slot: "message" }, this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: '0cd55b1b61af0ebba9ee1ab0a9e1f7148b143d16', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: '0ae2b4c623e02d80428a9ad5ad2b228d8e0d4e33', slot: "title" }, this._translations.error), h("div", { key: 'e46c0fa88539ea3250b525059b571f642dc720c1', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: 'a74767d14121d450933152680541d36d4ebe45fd' }, h("calcite-shell", { key: 'b1b30c06f2825f76c9e276bca1c3b0b0a9faa47d', "content-behind": true }, this._getReporter())), this.filterModal()));
131
135
  }
132
136
  //--------------------------------------------------------------------------
133
137
  //
@@ -152,8 +156,9 @@ export class CrowdsourceReporter {
152
156
  * @param layerId string layerId of the selected layer
153
157
  * @param layerName string layerName of the selected layer
154
158
  */
155
- setSelectedLayer(layerId, layerName) {
159
+ async setSelectedLayer(layerId, layerName) {
156
160
  this._selectedLayerId = layerId;
161
+ this._selectedLayer = await getLayerOrTable(this.mapView, layerId);
157
162
  this._selectedLayerName = layerName;
158
163
  //show only current layer on map and hide other valid editable layers
159
164
  //if layerId is empty then show all the layers on map
@@ -184,6 +189,12 @@ export class CrowdsourceReporter {
184
189
  case "feature-create":
185
190
  renderLists.push(this.getFeatureCreateFlowItem());
186
191
  break;
192
+ case "comment-details":
193
+ renderLists.push(this.getCommentDetailsFlowItem());
194
+ break;
195
+ case "add-comment":
196
+ renderLists.push(this.getAddCommentFlowItem());
197
+ break;
187
198
  }
188
199
  });
189
200
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
@@ -200,7 +211,7 @@ export class CrowdsourceReporter {
200
211
  //get layer expression for current selected layer
201
212
  const currentLayersExpressions = this.layerExpressions ? this.layerExpressions.filter((exp) => exp.id === this._selectedLayerId) : [];
202
213
  return (currentLayersExpressions.length > 0 &&
203
- h("calcite-modal", { "aria-labelledby": "modal-title", class: "modal", kind: "brand", onCalciteModalClose: () => void this._closeFilter(), open: this._filterOpen, widthScale: "s" }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, (_b = (_a = this._translations) === null || _a === void 0 ? void 0 : _a.filterLayerTitle) === null || _b === void 0 ? void 0 : _b.replace("{{title}}", this._selectedLayerName)), h("div", { slot: "content" }, h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtn: true, closeBtnOnClick: async () => this._closeFilter(), comboboxOverlayPositioning: "fixed", layerExpressions: currentLayersExpressions, onFilterListReset: () => this._handleFilterListReset(), onFilterUpdate: () => this._handleFilterUpdate(), ref: (el) => this._filterList = el, view: this.mapView, zoomBtn: false }))));
214
+ h("calcite-modal", { "aria-labelledby": "modal-title", class: "modal", kind: "brand", onCalciteModalClose: () => void this._closeFilter(), open: this._filterOpen, widthScale: "s" }, h("div", { class: "display-flex align-center", id: "modal-title", slot: "header" }, (_b = (_a = this._translations) === null || _a === void 0 ? void 0 : _a.filterLayerTitle) === null || _b === void 0 ? void 0 : _b.replace("{{title}}", this._selectedLayerName)), h("div", { slot: "content" }, h("instant-apps-filter-list", { autoUpdateUrl: false, closeBtn: true, closeBtnOnClick: () => void this._closeFilter(), comboboxOverlayPositioning: "fixed", layerExpressions: currentLayersExpressions, onFilterListReset: () => this._handleFilterListReset(), onFilterUpdate: () => this._handleFilterUpdate(), ref: (el) => this._filterList = el, view: this.mapView, zoomBtn: false }))));
204
215
  }
205
216
  /**
206
217
  * Close the filter modal
@@ -218,6 +229,28 @@ export class CrowdsourceReporter {
218
229
  _toggleFilter() {
219
230
  this._filterOpen = !this._filterOpen;
220
231
  }
232
+ /**
233
+ * On sort option click update the sort field and sort order
234
+ * @param sortField sort field
235
+ * @param sortOrder sort order
236
+ */
237
+ async sortOptionClick(sortField, sortOrder, sortOption) {
238
+ this._updatedSorting = {
239
+ field: sortField,
240
+ order: sortOrder
241
+ };
242
+ this._updatedSortOption = sortOption;
243
+ }
244
+ /**
245
+ * On sort button click, display the sorting options
246
+ * @returns Sort options list
247
+ */
248
+ _toggleSort() {
249
+ const canSortByVotes = this.reportingOptions && this.reportingOptions[this._selectedLayerId] &&
250
+ this.reportingOptions[this._selectedLayerId].like && this.reportingOptions[this._selectedLayerId].likeField;
251
+ return (h("calcite-popover", { autoClose: true, label: "", offsetDistance: 0, placement: this.isMobile ? "leading-start" : "auto", pointerDisabled: true, referenceElement: "sort-popover" }, h("calcite-list", { "selection-mode": "single" }, h("calcite-list-item", { label: this._translations.sortNewest, onCalciteListItemSelect: () => { void this.sortOptionClick(this._selectedLayer.objectIdField, "desc", "sortNewest"); }, selected: this._updatedSortOption === "sortNewest", value: "sortNewest" }), h("calcite-list-item", { label: this._translations.sortOldest, onCalciteListItemSelect: () => { void this.sortOptionClick(this._selectedLayer.objectIdField, "asc", "sortOldest"); }, selected: this._updatedSortOption === "sortOldest", value: "sortOldest" }), canSortByVotes &&
252
+ h(Fragment, null, h("calcite-list-item", { label: this._translations.sortHighestVoted, onCalciteListItemSelect: () => { void this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField, "desc", "sortHighestVoted"); }, selected: this._updatedSortOption === "sortHighestVoted", value: "sortHighestVoted" }), h("calcite-list-item", { label: this._translations.sortLowestVoted, onCalciteListItemSelect: () => { void this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField, "asc", "sortLowestVoted"); }, selected: this._updatedSortOption === "sortLowestVoted", value: "sortLowestVoted" })))));
253
+ }
221
254
  /**
222
255
  * Reset the filter active prop
223
256
  * @protected
@@ -229,7 +262,7 @@ export class CrowdsourceReporter {
229
262
  void this._featureList.refresh();
230
263
  }
231
264
  /**
232
- * Check if the layers definitionExpression has been modified
265
+ * Check if the layers definitionExpression has been modified and update the feature list depending on the applied filters
233
266
  * @protected
234
267
  */
235
268
  _handleFilterUpdate() {
@@ -247,7 +280,7 @@ export class CrowdsourceReporter {
247
280
  getLayerListFlowItem() {
248
281
  var _a;
249
282
  return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this.reportsHeader }, this.isMobile && this.getActionToExpandCollapsePanel(), this._hasValidLayers && this.enableNewReports &&
250
- h("calcite-button", { appearance: "solid", onClick: this.navigateToChooseCategory.bind(this), slot: "footer", width: "full" }, this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText), h("calcite-panel", { "full-height": true, "full-width": true }, h("layer-list", { class: "height-full", layers: ((_a = this._editableLayerIds) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this._editableLayerIds : this.layers, mapView: this.mapView, noLayerErrorMsg: this._noLayerToDisplayErrorMsg, onLayerSelect: this.displayFeaturesList.bind(this), onLayersListLoaded: this.layerListLoaded.bind(this), ref: el => this._layerList = el, showFeatureCount: true, showNextIcon: true }))));
283
+ h("calcite-button", { appearance: "solid", onClick: this.navigateToChooseCategory.bind(this), slot: "footer", width: "full" }, this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText), h("calcite-panel", { "full-height": true, "full-width": true }, h("layer-list", { class: "height-full", layers: ((_a = this._editableLayerIds) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this._editableLayerIds : this._layers, mapView: this.mapView, onLayerSelect: this.displayFeaturesList.bind(this), onLayersListLoaded: this.layerListLoaded.bind(this), ref: el => this._layerList = el, showFeatureCount: true, showNextIcon: true }))));
251
284
  }
252
285
  /**
253
286
  * Get the layer list for creating a report
@@ -255,7 +288,7 @@ export class CrowdsourceReporter {
255
288
  * @protected
256
289
  */
257
290
  getChooseCategoryFlowItem() {
258
- return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("calcite-panel", { "full-height": true, "full-width": true }, h("div", { class: "progress-bar" }, h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), h("calcite-notice", { class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, h("div", { slot: "message" }, this._translations.chooseCategoryMsg)), h("layer-list", { class: "height-full", layers: this.layers, mapView: this.mapView, noLayerErrorMsg: this._noLayerToDisplayErrorMsg, onLayerSelect: this.navigateToCreateFeature.bind(this), showFeatureCount: false, showNextIcon: false }))));
291
+ return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("calcite-panel", { "full-height": true, "full-width": true }, h("div", { class: "progress-bar" }, h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), h("calcite-notice", { class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, h("div", { slot: "message" }, this._translations.chooseCategoryMsg)), h("layer-list", { class: "height-full", layers: this._layers, mapView: this.mapView, onLayerSelect: this.navigateToCreateFeature.bind(this), showFeatureCount: false, showNextIcon: false }))));
259
292
  }
260
293
  /**
261
294
  * Get Feature create form of the selected feature layer
@@ -263,7 +296,7 @@ export class CrowdsourceReporter {
263
296
  * @protected
264
297
  */
265
298
  getFeatureCreateFlowItem() {
266
- return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromCreateFeaturePanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), this._showSubmitCancelButton && h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateFeaturePanel.bind(this), width: "full" }, this._translations.cancel)), h("calcite-panel", { "full-height": true, "full-width": true }, h("div", { class: "progress-bar" }, h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), h("calcite-notice", { class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, h("div", { slot: "message" }, this._translations.featureEditFormInfoMsg)), h("create-feature", { customizeSubmit: true, mapView: this.mapView, onDrawComplete: this.onDrawComplete.bind(this), onEditingAttachment: this.showSubmitCancelButton.bind(this), onFail: this.createFeatureFailed.bind(this), onProgressStatus: this.updatedProgressStatus.bind(this), onSuccess: this.onReportSubmitted.bind(this), ref: el => this._createFeature = el, searchConfiguration: this.searchConfiguration, selectedLayerId: this._selectedLayerId }))));
299
+ return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromCreateFeaturePanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), this._showSubmitCancelButton && h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onCreateFeatureSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateFeaturePanel.bind(this), width: "full" }, this._translations.cancel)), h("calcite-panel", { "full-height": true, "full-width": true }, h("div", { class: "progress-bar" }, h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), h("calcite-notice", { class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, h("div", { slot: "message" }, this._translations.featureEditFormInfoMsg)), h("create-feature", { customizeSubmit: true, mapView: this.mapView, onDrawComplete: this.onDrawComplete.bind(this), onEditingAttachment: this.showSubmitCancelButton.bind(this), onFail: this.createFeatureFailed.bind(this), onProgressStatus: this.updatedProgressStatus.bind(this), onSuccess: this.onReportSubmitted.bind(this), ref: el => this._createFeature = el, searchConfiguration: this.searchConfiguration, selectedLayerId: this._selectedLayerId }))));
267
300
  }
268
301
  /**
269
302
  * Update the progress bar status when editor panel changes
@@ -291,7 +324,7 @@ export class CrowdsourceReporter {
291
324
  * On back from create feature, call submit editor to destroy the Editor widget instance
292
325
  * @protected
293
326
  */
294
- onSubmitButtonClick() {
327
+ onCreateFeatureSubmitButtonClick() {
295
328
  if (this._createFeature) {
296
329
  void this._createFeature.submit();
297
330
  }
@@ -306,6 +339,26 @@ export class CrowdsourceReporter {
306
339
  }
307
340
  this.backFromSelectedPanel();
308
341
  }
342
+ /**
343
+ * On back from create realated feature, call submit editor to destroy the Editor widget instance
344
+ * @protected
345
+ */
346
+ onCreateRelatedFeatureSubmitButtonClick() {
347
+ if (this._createRelatedFeature) {
348
+ void this._createRelatedFeature.submit();
349
+ }
350
+ }
351
+ /**
352
+ * On back from create related feature, call close editor to destroy the Editor widget instance
353
+ * @protected
354
+ */
355
+ backFromCreateRelatedFeaturePanel() {
356
+ if (this._createRelatedFeature) {
357
+ void this._createRelatedFeature.close();
358
+ this._showSubmitCancelButton = false;
359
+ }
360
+ this.backFromSelectedPanel();
361
+ }
309
362
  /**
310
363
  * On creating the feature is failed, show the error message
311
364
  * @param evt Event which has feature failed message
@@ -323,6 +376,29 @@ export class CrowdsourceReporter {
323
376
  this._reportSubmitted = true;
324
377
  void this.navigateToHomePage();
325
378
  }
379
+ /**
380
+ * On adding the is failed, show the error message
381
+ * @param evt Event which has comment failed message
382
+ * @protected
383
+ */
384
+ addCommentFailed(evt) {
385
+ console.error(evt.detail);
386
+ this._addingCommentFailed = true;
387
+ }
388
+ /**
389
+ * On submit comment navigate to the feature list and refresh the feature details
390
+ * @protected
391
+ */
392
+ async onCommentSubmitted() {
393
+ this._commentSubmitted = true;
394
+ this.backFromSelectedPanel();
395
+ this._showLoadingIndicator = true;
396
+ //update the feature details to reflect the like, dislike and comment values
397
+ await this._featureDetails.refresh(this._currentFeature);
398
+ setTimeout(() => {
399
+ this._showLoadingIndicator = false;
400
+ }, 300);
401
+ }
326
402
  /**
327
403
  * Navigates to layer-list
328
404
  * @protected
@@ -334,7 +410,7 @@ export class CrowdsourceReporter {
334
410
  if (this._layerList) {
335
411
  void this._layerList.refresh();
336
412
  }
337
- this.setSelectedFeatures([]);
413
+ await this.setSelectedFeatures([]);
338
414
  if (this._editableLayerIds.length === 1) {
339
415
  await this._featureList.refresh();
340
416
  this._flowItems = ["feature-list"];
@@ -350,7 +426,7 @@ export class CrowdsourceReporter {
350
426
  */
351
427
  async navigateToCreateFeature(evt) {
352
428
  if (evt.detail.layerId && evt.detail.layerName) {
353
- this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
429
+ void this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
354
430
  }
355
431
  this._showSubmitCancelButton = false;
356
432
  this._flowItems = [...this._flowItems, "feature-create"];
@@ -392,7 +468,13 @@ export class CrowdsourceReporter {
392
468
  * @protected
393
469
  */
394
470
  displayFeaturesList(evt) {
395
- this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
471
+ this._updatedSorting = {
472
+ field: '',
473
+ order: 'desc'
474
+ };
475
+ this._filterActive = false;
476
+ this._updatedSortOption = "sortNewest";
477
+ void this.setSelectedLayer(evt.detail.layerId, evt.detail.layerName);
396
478
  this._flowItems = [...this._flowItems, "feature-list"];
397
479
  }
398
480
  /**
@@ -402,8 +484,11 @@ export class CrowdsourceReporter {
402
484
  backFromSelectedPanel() {
403
485
  this._updatedProgressBarStatus = 0.25;
404
486
  const updatedFlowItems = [...this._flowItems];
487
+ // when coming back from comment details page don't clear the highlighted feature of map
488
+ if (updatedFlowItems[updatedFlowItems.length - 1] !== 'comment-details') {
489
+ this.clearHighlights();
490
+ }
405
491
  updatedFlowItems.pop();
406
- this.clearHighlights();
407
492
  //Back to layer list, and return as the flowItems will be reset in navigateToHomePage
408
493
  if (updatedFlowItems.length === 1 && updatedFlowItems[0] === 'layer-list') {
409
494
  void this.navigateToHomePage();
@@ -424,15 +509,35 @@ export class CrowdsourceReporter {
424
509
  * @param evt Event which has details of selected feature
425
510
  */
426
511
  async onFeatureSelectFromList(evt) {
427
- this.setSelectedFeatures([evt.detail]);
512
+ this._showLoadingIndicator = true;
513
+ await this.setSelectedFeatures([evt.detail]);
428
514
  this._flowItems = [...this._flowItems, "feature-details"];
429
515
  }
516
+ /**
517
+ * Gets related table id of the selected feature's layer
518
+ * @protected
519
+ */
520
+ async getRelatedTable() {
521
+ const relatedTableIdFromRelnship = this._currentFeature.layer.relationships[0].relatedTableId;
522
+ const allTables = await getAllTables(this.mapView);
523
+ const relatedTable = allTables.filter((table) => relatedTableIdFromRelnship === table.layerId);
524
+ this._relatedTable = relatedTable[0];
525
+ }
430
526
  /**
431
527
  * Show loading indicator while updating the feature details component
432
528
  * @param isLoading is feature detail component loading
433
529
  */
434
530
  async updatingFeatureDetails(isLoading) {
435
- this._loadingFeatureDetails = isLoading;
531
+ this._showLoadingIndicator = isLoading;
532
+ }
533
+ /**
534
+ * When comment is selected from list store that and show comment details
535
+ * @param evt Event which has details of selected feature
536
+ * @protected
537
+ */
538
+ async onCommentSelectFromList(evt) {
539
+ this._selectedRelatedFeature = [evt.detail];
540
+ this._flowItems = [...this._flowItems, "comment-details"];
436
541
  }
437
542
  /**
438
543
  * Get feature list of the selected feature layer
@@ -444,16 +549,18 @@ export class CrowdsourceReporter {
444
549
  getFeatureListFlowItem(layerId, layerName) {
445
550
  var _a;
446
551
  const layerExpressions = (_a = this.layerExpressions) === null || _a === void 0 ? void 0 : _a.filter((exp) => exp.id === this._selectedLayerId);
447
- const showFilterIcon = layerExpressions.length > 0;
448
- return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: layerName, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, showFilterIcon && h("calcite-action", { icon: "filter", indicator: this._filterActive, onClick: this._toggleFilter.bind(this), slot: this.isMobile ? "header-menu-actions" : "header-actions-end", text: this._translations.filter, "text-enabled": this.isMobile }), this.isMobile && this.getActionToExpandCollapsePanel(), this.enableNewReports &&
449
- h("calcite-button", { appearance: "solid", onClick: this.navigateToCreateFeature.bind(this), slot: "footer", width: "full" }, this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText), h("calcite-panel", { "full-height": true }, h("feature-list", { class: "height-full", highlightOnHover: true, mapView: this.mapView, noFeaturesFoundMsg: this._translations.featureErrorMsg, onFeatureSelect: this.onFeatureSelectFromList.bind(this), pageSize: 30, ref: el => this._featureList = el, selectedLayerId: layerId }))));
552
+ const showFilterIcon = (layerExpressions === null || layerExpressions === void 0 ? void 0 : layerExpressions.length) > 0;
553
+ return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: layerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this._toggleSort(), h("calcite-action", { icon: "sort-ascending-arrow", id: "sort-popover", slot: "header-actions-end", text: this._translations.sort, title: this._translations.sort }), showFilterIcon && h("calcite-action", { icon: "filter", indicator: this._filterActive, onClick: this._toggleFilter.bind(this), slot: "header-actions-end", text: this._translations.filter, title: this._translations.filter }), this.isMobile && this.getActionToExpandCollapsePanel(), this.enableNewReports &&
554
+ h("calcite-button", { appearance: "solid", onClick: this.navigateToCreateFeature.bind(this), slot: "footer", width: "full" }, this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText), h("calcite-panel", { "full-height": true }, h("feature-list", { class: "height-full", highlightOnHover: true, mapView: this.mapView, noFeaturesFoundMsg: this._translations.featureErrorMsg, onFeatureSelect: this.onFeatureSelectFromList.bind(this), pageSize: 30, ref: el => this._featureList = el, selectedLayerId: layerId, sortingInfo: this._updatedSorting }))));
450
555
  }
451
556
  /**
452
557
  * Returns the calcite-flow item for feature details
453
558
  * @returns Node
454
559
  */
455
560
  getFeatureDetailsFlowItem() {
456
- return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, loading: this._loadingFeatureDetails, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("instant-apps-social-share", { autoUpdateShareUrl: false, embed: false, popoverButtonIconScale: "s", ref: el => this._shareNode = el, scale: "m", shareButtonColor: "neutral", shareButtonType: "action", slot: "header-actions-end", socialMedia: true, view: this.mapView }), h("calcite-panel", null, this._selectedFeature.length > 1 && this.getFeaturesPagination(), h("feature-details", { class: 'full-height', graphics: this._selectedFeature, mapView: this.mapView, onLoadingStatus: (evt) => { void this.updatingFeatureDetails(evt.detail); }, ref: el => this._featureDetails = el, reportingOptions: this.reportingOptions }))));
561
+ const showCommentBtn = this.reportingOptions[this._currentFeature.layer.id].comment && this._currentFeature.layer.relationships.length > 0;
562
+ return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("instant-apps-social-share", { autoUpdateShareUrl: false, embed: false, popoverButtonIconScale: "s", ref: el => this._shareNode = el, scale: "m", shareButtonColor: "neutral", shareButtonType: "action", slot: "header-actions-end", socialMedia: true, view: this.mapView }), h("calcite-panel", null, this._selectedFeature.length > 1 && this.getFeaturesPagination(), h("feature-details", { class: 'full-height', graphics: this._selectedFeature, mapView: this.mapView, onFeatureSelect: this.onCommentSelectFromList.bind(this), onLoadingStatus: (evt) => void this.updatingFeatureDetails(evt.detail), ref: el => this._featureDetails = el, reportingOptions: this.reportingOptions }), showCommentBtn &&
563
+ h("calcite-button", { appearance: "solid", onClick: () => this._flowItems = [...this._flowItems, "add-comment"], slot: "footer", width: "full" }, this._translations.comment))));
457
564
  }
458
565
  /**
459
566
  * Returns the pagination for the multiple features
@@ -463,27 +570,47 @@ export class CrowdsourceReporter {
463
570
  getFeaturesPagination() {
464
571
  return (h("div", { class: "feature-pagination", slot: "header-actions-start" }, h("div", null, h("calcite-button", { appearance: 'transparent', disabled: false, iconStart: "chevron-left", id: "solutions-back", onClick: () => void this._featureDetails.back(), scale: "s", width: "full" }), h("calcite-tooltip", { label: "", placement: "top", "reference-element": "solutions-back" }, h("span", null, this._translations.back))), h("calcite-button", { appearance: 'transparent', class: 'pagination-action', onClick: () => void this._featureDetails.toggleListView(), scale: "s" }, h("span", { class: "pagination-count" }, this._getCount())), h("div", null, h("calcite-button", { appearance: "transparent", disabled: false, iconStart: "chevron-right", id: "solutions-next", onClick: () => void this._featureDetails.next(), scale: "s", width: "full" }), h("calcite-tooltip", { placement: "top", "reference-element": "solutions-next" }, h("span", null, this._translations.next)))));
465
572
  }
573
+ /**
574
+ * Returns the calcite-flow item for comment details
575
+ * @returns Node
576
+ */
577
+ getCommentDetailsFlowItem() {
578
+ return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("calcite-panel", { "full-height": true }, h("info-card", { allowEditing: false, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false, zoomAndScrollToSelected: false }))));
579
+ }
580
+ /**
581
+ * Returns the calcite-flow item for add comment
582
+ * @returns Node
583
+ */
584
+ getAddCommentFlowItem() {
585
+ return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromCreateRelatedFeaturePanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("div", { class: "width-full", slot: "footer" }, this._showSubmitCancelButton && h("div", { class: "width-full", slot: "footer" }, h("calcite-button", { appearance: "solid", class: "footer-top-button footer-button", onClick: this.onCreateRelatedFeatureSubmitButtonClick.bind(this), width: "full" }, this._translations.submit), h("calcite-button", { appearance: "outline", class: "footer-button", onClick: this.backFromCreateRelatedFeaturePanel.bind(this), width: "full" }, this._translations.cancel))), h("calcite-panel", null, h("create-related-feature", { customizeSubmit: true, mapView: this.mapView, onFail: this.addCommentFailed.bind(this), onIsActionPending: this.showSubmitCancelButton.bind(this), onSuccess: this.onCommentSubmitted.bind(this), ref: el => this._createRelatedFeature = el, selectedFeature: this._currentFeature, table: this._relatedTable }))));
586
+ }
466
587
  /**
467
588
  * Sets the selected features and updates the first feature as the current selected feature
468
589
  * @param features Graphics array of the features selected
469
590
  */
470
- setSelectedFeatures(features) {
591
+ async setSelectedFeatures(features) {
471
592
  this._selectedFeature = features;
472
- this.setCurrentFeature(this._selectedFeature.length ? this._selectedFeature[0] : null);
593
+ await this.setCurrentFeature(this._selectedFeature.length ? this._selectedFeature[0] : null);
473
594
  }
474
595
  /**
475
596
  * Set the object id of the current selected feature, and also updates the current selected layer details
476
597
  * @param selectedFeature Graphic currently shown in feature details
477
598
  */
478
- setCurrentFeature(selectedFeature) {
599
+ async setCurrentFeature(selectedFeature) {
600
+ this._currentFeature = selectedFeature;
479
601
  if (selectedFeature && selectedFeature.layer) {
480
602
  const layer = selectedFeature.layer;
481
- this.setSelectedLayer(layer.id, layer.title);
603
+ void this.setSelectedLayer(layer.id, layer.title);
482
604
  this._currentFeatureId = selectedFeature.attributes[layer.objectIdField];
605
+ // check if comments are configured and relationship is present then only get the related table
606
+ const isCommentTablePresent = this.reportingOptions[selectedFeature.layer.id].comment && selectedFeature.layer.relationships.length > 0;
607
+ if (isCommentTablePresent) {
608
+ await this.getRelatedTable();
609
+ }
483
610
  }
484
611
  else {
485
612
  if (this._editableLayerIds.length > 1) {
486
- this.setSelectedLayer('', '');
613
+ void this.setSelectedLayer('', '');
487
614
  }
488
615
  this._currentFeatureId = '';
489
616
  }
@@ -587,7 +714,7 @@ export class CrowdsourceReporter {
587
714
  // if clicked graphic's layer is one of the reporting layers then show details in layer panel
588
715
  if (reportingLayerGraphics.length > 0) {
589
716
  //update the selectedFeature
590
- this.setSelectedFeatures(reportingLayerGraphics);
717
+ await this.setSelectedFeatures(reportingLayerGraphics);
591
718
  //if featureDetails not open then add it to the list else just reInit flowItems which will update details with newly selected features
592
719
  // eslint-disable-next-line unicorn/prefer-ternary
593
720
  if (this._flowItems.length && this._flowItems[this._flowItems.length - 1] !== "feature-details") {
@@ -616,7 +743,7 @@ export class CrowdsourceReporter {
616
743
  * @protected
617
744
  */
618
745
  _getCount() {
619
- const index = (this.selectedFeatureIndex + 1).toString();
746
+ const index = (this._selectedFeatureIndex + 1).toString();
620
747
  const total = this._selectedFeature.length.toString();
621
748
  return this._translations.indexOfTotal
622
749
  .replace("{{index}}", index)
@@ -639,7 +766,7 @@ export class CrowdsourceReporter {
639
766
  */
640
767
  reduceToConfiguredLayers(hash) {
641
768
  var _a;
642
- const configuredLayers = ((_a = this.layers) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.layers : [];
769
+ const configuredLayers = ((_a = this._layers) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this._layers : [];
643
770
  return Object.keys(hash).reduce((prev, cur) => {
644
771
  let showLayer = hash[cur].supportsAdd;
645
772
  if ((configuredLayers === null || configuredLayers === void 0 ? void 0 : configuredLayers.length) > 0) {
@@ -675,7 +802,7 @@ export class CrowdsourceReporter {
675
802
  detail: this._editableLayerIds
676
803
  };
677
804
  await this.layerListLoaded(evt);
678
- this.setSelectedLayer(this._validLayers[0].id, this._validLayers[0].title);
805
+ void this.setSelectedLayer(this._validLayers[0].id, this._validLayers[0].title);
679
806
  this._flowItems = ['feature-list'];
680
807
  }
681
808
  /**
@@ -751,7 +878,7 @@ export class CrowdsourceReporter {
751
878
  }
752
879
  static get properties() {
753
880
  return {
754
- "description": {
881
+ "center": {
755
882
  "type": "string",
756
883
  "mutable": false,
757
884
  "complexType": {
@@ -763,12 +890,12 @@ export class CrowdsourceReporter {
763
890
  "optional": false,
764
891
  "docs": {
765
892
  "tags": [],
766
- "text": "string: The text that will display under the title on the landing page"
893
+ "text": "string: Semicolon delimited numbers that will be used as the maps center point from URL params"
767
894
  },
768
- "attribute": "description",
895
+ "attribute": "center",
769
896
  "reflect": false
770
897
  },
771
- "isMobile": {
898
+ "coverPageEnabled": {
772
899
  "type": "boolean",
773
900
  "mutable": false,
774
901
  "complexType": {
@@ -780,9 +907,44 @@ export class CrowdsourceReporter {
780
907
  "optional": false,
781
908
  "docs": {
782
909
  "tags": [],
783
- "text": "boolean: When true the application will be in mobile mode, controls the mobile or desktop view"
910
+ "text": "boolean: When true a cover page has been enabled in the consuming application.\r\nAlso when true a floating button will be shown in the lower right of the window that\r\nwill emit an event when clicked that the consuming application can respond to that will open the cover page."
784
911
  },
785
- "attribute": "is-mobile",
912
+ "attribute": "cover-page-enabled",
913
+ "reflect": false
914
+ },
915
+ "defaultWebmap": {
916
+ "type": "string",
917
+ "mutable": false,
918
+ "complexType": {
919
+ "original": "string",
920
+ "resolved": "string",
921
+ "references": {}
922
+ },
923
+ "required": false,
924
+ "optional": false,
925
+ "docs": {
926
+ "tags": [],
927
+ "text": "string: Item ID of the web map that should be selected by default"
928
+ },
929
+ "attribute": "default-webmap",
930
+ "reflect": false,
931
+ "defaultValue": "\"\""
932
+ },
933
+ "description": {
934
+ "type": "string",
935
+ "mutable": false,
936
+ "complexType": {
937
+ "original": "string",
938
+ "resolved": "string",
939
+ "references": {}
940
+ },
941
+ "required": false,
942
+ "optional": false,
943
+ "docs": {
944
+ "tags": [],
945
+ "text": "string: The text that will display under the title on the landing page"
946
+ },
947
+ "attribute": "description",
786
948
  "reflect": false
787
949
  },
788
950
  "enableAnonymousAccess": {
@@ -836,6 +998,24 @@ export class CrowdsourceReporter {
836
998
  "attribute": "enable-comments",
837
999
  "reflect": false
838
1000
  },
1001
+ "enableHome": {
1002
+ "type": "boolean",
1003
+ "mutable": false,
1004
+ "complexType": {
1005
+ "original": "boolean",
1006
+ "resolved": "boolean",
1007
+ "references": {}
1008
+ },
1009
+ "required": false,
1010
+ "optional": false,
1011
+ "docs": {
1012
+ "tags": [],
1013
+ "text": "boolean: when true the home widget will be available"
1014
+ },
1015
+ "attribute": "enable-home",
1016
+ "reflect": false,
1017
+ "defaultValue": "true"
1018
+ },
839
1019
  "enableLogin": {
840
1020
  "type": "boolean",
841
1021
  "mutable": false,
@@ -870,33 +1050,70 @@ export class CrowdsourceReporter {
870
1050
  "attribute": "enable-new-reports",
871
1051
  "reflect": false
872
1052
  },
873
- "loginTitle": {
874
- "type": "string",
1053
+ "enableSearch": {
1054
+ "type": "boolean",
875
1055
  "mutable": false,
876
1056
  "complexType": {
877
- "original": "string",
878
- "resolved": "string",
1057
+ "original": "boolean",
1058
+ "resolved": "boolean",
879
1059
  "references": {}
880
1060
  },
881
1061
  "required": false,
882
1062
  "optional": false,
883
1063
  "docs": {
884
1064
  "tags": [],
885
- "text": "string: The text that will display at the top of the landing page"
1065
+ "text": "boolean: when true the search widget will be available"
886
1066
  },
887
- "attribute": "login-title",
1067
+ "attribute": "enable-search",
1068
+ "reflect": false,
1069
+ "defaultValue": "true"
1070
+ },
1071
+ "enableZoom": {
1072
+ "type": "boolean",
1073
+ "mutable": false,
1074
+ "complexType": {
1075
+ "original": "boolean",
1076
+ "resolved": "boolean",
1077
+ "references": {}
1078
+ },
1079
+ "required": false,
1080
+ "optional": false,
1081
+ "docs": {
1082
+ "tags": [],
1083
+ "text": "boolean: when true the zoom widget will be available"
1084
+ },
1085
+ "attribute": "enable-zoom",
1086
+ "reflect": false,
1087
+ "defaultValue": "true"
1088
+ },
1089
+ "isMobile": {
1090
+ "type": "boolean",
1091
+ "mutable": false,
1092
+ "complexType": {
1093
+ "original": "boolean",
1094
+ "resolved": "boolean",
1095
+ "references": {}
1096
+ },
1097
+ "required": false,
1098
+ "optional": false,
1099
+ "docs": {
1100
+ "tags": [],
1101
+ "text": "boolean: When true the application will be in mobile mode, controls the mobile or desktop view"
1102
+ },
1103
+ "attribute": "is-mobile",
888
1104
  "reflect": false
889
1105
  },
890
- "mapView": {
1106
+ "layerExpressions": {
891
1107
  "type": "unknown",
892
1108
  "mutable": false,
893
1109
  "complexType": {
894
- "original": "__esri.MapView",
895
- "resolved": "MapView",
1110
+ "original": "ILayerExpression[]",
1111
+ "resolved": "ILayerExpression[]",
896
1112
  "references": {
897
- "___esri": {
898
- "location": "global",
899
- "id": "global::___esri"
1113
+ "ILayerExpression": {
1114
+ "location": "import",
1115
+ "path": "../../utils/interfaces",
1116
+ "id": "src/utils/interfaces.ts::ILayerExpression"
900
1117
  }
901
1118
  }
902
1119
  },
@@ -904,8 +1121,9 @@ export class CrowdsourceReporter {
904
1121
  "optional": false,
905
1122
  "docs": {
906
1123
  "tags": [],
907
- "text": "esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html"
908
- }
1124
+ "text": "ILayerExpression[]: Array of layer expressions for layers (filter configuration)"
1125
+ },
1126
+ "defaultValue": "[]"
909
1127
  },
910
1128
  "layerId": {
911
1129
  "type": "string",
@@ -924,7 +1142,7 @@ export class CrowdsourceReporter {
924
1142
  "attribute": "layer-id",
925
1143
  "reflect": false
926
1144
  },
927
- "objectId": {
1145
+ "level": {
928
1146
  "type": "string",
929
1147
  "mutable": false,
930
1148
  "complexType": {
@@ -936,12 +1154,12 @@ export class CrowdsourceReporter {
936
1154
  "optional": false,
937
1155
  "docs": {
938
1156
  "tags": [],
939
- "text": "string: Object id of the feature from URL params"
1157
+ "text": "string: Id of the zoom level from URL params"
940
1158
  },
941
- "attribute": "object-id",
1159
+ "attribute": "level",
942
1160
  "reflect": false
943
1161
  },
944
- "center": {
1162
+ "loginTitle": {
945
1163
  "type": "string",
946
1164
  "mutable": false,
947
1165
  "complexType": {
@@ -953,29 +1171,54 @@ export class CrowdsourceReporter {
953
1171
  "optional": false,
954
1172
  "docs": {
955
1173
  "tags": [],
956
- "text": "string: Semicolon delimited numbers that will be used as the maps center point from URL params"
1174
+ "text": "string: The text that will display at the top of the landing page"
957
1175
  },
958
- "attribute": "center",
1176
+ "attribute": "login-title",
959
1177
  "reflect": false
960
1178
  },
961
- "level": {
962
- "type": "string",
1179
+ "mapInfos": {
1180
+ "type": "unknown",
963
1181
  "mutable": false,
964
1182
  "complexType": {
965
- "original": "string",
966
- "resolved": "string",
967
- "references": {}
1183
+ "original": "IMapInfo[]",
1184
+ "resolved": "IMapInfo[]",
1185
+ "references": {
1186
+ "IMapInfo": {
1187
+ "location": "import",
1188
+ "path": "../../utils/interfaces",
1189
+ "id": "src/utils/interfaces.ts::IMapInfo"
1190
+ }
1191
+ }
968
1192
  },
969
1193
  "required": false,
970
1194
  "optional": false,
971
1195
  "docs": {
972
1196
  "tags": [],
973
- "text": "string: Id of the zoom level from URL params"
1197
+ "text": "IMapInfo[]: array of map infos (name and id)"
974
1198
  },
975
- "attribute": "level",
976
- "reflect": false
1199
+ "defaultValue": "[]"
977
1200
  },
978
- "reportButtonText": {
1201
+ "mapView": {
1202
+ "type": "unknown",
1203
+ "mutable": false,
1204
+ "complexType": {
1205
+ "original": "__esri.MapView",
1206
+ "resolved": "MapView",
1207
+ "references": {
1208
+ "___esri": {
1209
+ "location": "global",
1210
+ "id": "global::___esri"
1211
+ }
1212
+ }
1213
+ },
1214
+ "required": false,
1215
+ "optional": false,
1216
+ "docs": {
1217
+ "tags": [],
1218
+ "text": "esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html"
1219
+ }
1220
+ },
1221
+ "objectId": {
979
1222
  "type": "string",
980
1223
  "mutable": false,
981
1224
  "complexType": {
@@ -987,12 +1230,12 @@ export class CrowdsourceReporter {
987
1230
  "optional": false,
988
1231
  "docs": {
989
1232
  "tags": [],
990
- "text": "string: The word(s) to display in the reports submit button"
1233
+ "text": "string: Object id of the feature from URL params"
991
1234
  },
992
- "attribute": "report-button-text",
1235
+ "attribute": "object-id",
993
1236
  "reflect": false
994
1237
  },
995
- "reportsHeader": {
1238
+ "reportButtonText": {
996
1239
  "type": "string",
997
1240
  "mutable": false,
998
1241
  "complexType": {
@@ -1004,9 +1247,9 @@ export class CrowdsourceReporter {
1004
1247
  "optional": false,
1005
1248
  "docs": {
1006
1249
  "tags": [],
1007
- "text": "string: The word(s) to display in the reports header"
1250
+ "text": "string: The word(s) to display in the reports submit button"
1008
1251
  },
1009
- "attribute": "reports-header",
1252
+ "attribute": "report-button-text",
1010
1253
  "reflect": false
1011
1254
  },
1012
1255
  "reportingOptions": {
@@ -1030,6 +1273,23 @@ export class CrowdsourceReporter {
1030
1273
  "text": "IReportingOptions: Key options for reporting"
1031
1274
  }
1032
1275
  },
1276
+ "reportsHeader": {
1277
+ "type": "string",
1278
+ "mutable": false,
1279
+ "complexType": {
1280
+ "original": "string",
1281
+ "resolved": "string",
1282
+ "references": {}
1283
+ },
1284
+ "required": false,
1285
+ "optional": false,
1286
+ "docs": {
1287
+ "tags": [],
1288
+ "text": "string: The word(s) to display in the reports header"
1289
+ },
1290
+ "attribute": "reports-header",
1291
+ "reflect": false
1292
+ },
1033
1293
  "reportSubmittedMessage": {
1034
1294
  "type": "string",
1035
1295
  "mutable": false,
@@ -1085,82 +1345,6 @@ export class CrowdsourceReporter {
1085
1345
  "attribute": "show-comments",
1086
1346
  "reflect": false
1087
1347
  },
1088
- "defaultWebmap": {
1089
- "type": "string",
1090
- "mutable": false,
1091
- "complexType": {
1092
- "original": "string",
1093
- "resolved": "string",
1094
- "references": {}
1095
- },
1096
- "required": false,
1097
- "optional": false,
1098
- "docs": {
1099
- "tags": [],
1100
- "text": "string: Item ID of the web map that should be selected by default"
1101
- },
1102
- "attribute": "default-webmap",
1103
- "reflect": false,
1104
- "defaultValue": "\"\""
1105
- },
1106
- "enableSearch": {
1107
- "type": "boolean",
1108
- "mutable": false,
1109
- "complexType": {
1110
- "original": "boolean",
1111
- "resolved": "boolean",
1112
- "references": {}
1113
- },
1114
- "required": false,
1115
- "optional": false,
1116
- "docs": {
1117
- "tags": [],
1118
- "text": "boolean: when true the search widget will be available"
1119
- },
1120
- "attribute": "enable-search",
1121
- "reflect": false,
1122
- "defaultValue": "true"
1123
- },
1124
- "enableHome": {
1125
- "type": "boolean",
1126
- "mutable": false,
1127
- "complexType": {
1128
- "original": "boolean",
1129
- "resolved": "boolean",
1130
- "references": {}
1131
- },
1132
- "required": false,
1133
- "optional": false,
1134
- "docs": {
1135
- "tags": [],
1136
- "text": "boolean: when true the home widget will be available"
1137
- },
1138
- "attribute": "enable-home",
1139
- "reflect": false,
1140
- "defaultValue": "true"
1141
- },
1142
- "mapInfos": {
1143
- "type": "unknown",
1144
- "mutable": false,
1145
- "complexType": {
1146
- "original": "IMapInfo[]",
1147
- "resolved": "IMapInfo[]",
1148
- "references": {
1149
- "IMapInfo": {
1150
- "location": "import",
1151
- "path": "../../utils/interfaces",
1152
- "id": "src/utils/interfaces.ts::IMapInfo"
1153
- }
1154
- }
1155
- },
1156
- "required": false,
1157
- "optional": false,
1158
- "docs": {
1159
- "tags": [],
1160
- "text": "IMapInfo[]: array of map infos (name and id)"
1161
- },
1162
- "defaultValue": "[]"
1163
- },
1164
1348
  "theme": {
1165
1349
  "type": "string",
1166
1350
  "mutable": false,
@@ -1185,24 +1369,6 @@ export class CrowdsourceReporter {
1185
1369
  "reflect": false,
1186
1370
  "defaultValue": "\"light\""
1187
1371
  },
1188
- "enableZoom": {
1189
- "type": "boolean",
1190
- "mutable": false,
1191
- "complexType": {
1192
- "original": "boolean",
1193
- "resolved": "boolean",
1194
- "references": {}
1195
- },
1196
- "required": false,
1197
- "optional": false,
1198
- "docs": {
1199
- "tags": [],
1200
- "text": "boolean: when true the zoom widget will be available"
1201
- },
1202
- "attribute": "enable-zoom",
1203
- "reflect": false,
1204
- "defaultValue": "true"
1205
- },
1206
1372
  "zoomToScale": {
1207
1373
  "type": "number",
1208
1374
  "mutable": false,
@@ -1219,46 +1385,29 @@ export class CrowdsourceReporter {
1219
1385
  },
1220
1386
  "attribute": "zoom-to-scale",
1221
1387
  "reflect": false
1222
- },
1223
- "layerExpressions": {
1224
- "type": "unknown",
1225
- "mutable": false,
1226
- "complexType": {
1227
- "original": "ILayerExpression[]",
1228
- "resolved": "ILayerExpression[]",
1229
- "references": {
1230
- "ILayerExpression": {
1231
- "location": "import",
1232
- "path": "../../utils/interfaces",
1233
- "id": "src/utils/interfaces.ts::ILayerExpression"
1234
- }
1235
- }
1236
- },
1237
- "required": false,
1238
- "optional": false,
1239
- "docs": {
1240
- "tags": [],
1241
- "text": "ILayerExpression[]: Array of layer expressions for layers (filter configuration)"
1242
- },
1243
- "defaultValue": "[]"
1244
1388
  }
1245
1389
  };
1246
1390
  }
1247
1391
  static get states() {
1248
1392
  return {
1249
- "_mapInfo": {},
1393
+ "_featureCreationFailedErrorMsg": {},
1394
+ "_filterActive": {},
1395
+ "_filterOpen": {},
1250
1396
  "_flowItems": {},
1251
- "_sidePanelCollapsed": {},
1252
- "_translations": {},
1253
1397
  "_hasValidLayers": {},
1254
- "_selectedLayerName": {},
1398
+ "_loadingFeatureDetails": {},
1399
+ "_mapInfo": {},
1255
1400
  "_reportSubmitted": {},
1401
+ "_selectedLayerName": {},
1256
1402
  "_showSubmitCancelButton": {},
1257
- "_loadingFeatureDetails": {},
1258
- "_featureCreationFailedErrorMsg": {},
1403
+ "_showLoadingIndicator": {},
1404
+ "_sidePanelCollapsed": {},
1405
+ "_translations": {},
1259
1406
  "_updatedProgressBarStatus": {},
1260
- "_filterOpen": {},
1261
- "_filterActive": {}
1407
+ "_updatedSorting": {},
1408
+ "_updatedSortOption": {},
1409
+ "_commentSubmitted": {},
1410
+ "_addingCommentFailed": {}
1262
1411
  };
1263
1412
  }
1264
1413
  static get events() {