@esri/solutions-components 0.8.13 → 0.8.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (392) 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 +6 -6
  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 +370 -221
  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 +4 -0
  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/demos/crowdsource-manager.html +3 -3
  250. package/dist/collection/utils/downloadUtils.js +0 -1
  251. package/dist/collection/utils/interfaces.ts +5 -0
  252. package/dist/collection/utils/mapViewUtils.js +15 -0
  253. package/dist/collection/utils/mapViewUtils.ts +19 -1
  254. package/dist/collection/utils/pdfUtils.js +29 -34
  255. package/dist/collection/utils/pdfUtils.ts +40 -47
  256. package/dist/components/create-related-feature.d.ts +11 -0
  257. package/dist/components/create-related-feature.js +11 -0
  258. package/dist/components/create-related-feature2.js +274 -0
  259. package/dist/components/crowdsource-manager.js +1 -1
  260. package/dist/components/crowdsource-reporter.js +287 -148
  261. package/dist/components/deduct-calculator2.js +1 -1
  262. package/dist/components/delete-button2.js +1 -1
  263. package/dist/components/downloadUtils.js +29 -33
  264. package/dist/components/edit-card2.js +1 -1
  265. package/dist/components/feature-comments.js +1 -1
  266. package/dist/components/feature-details2.js +163 -40
  267. package/dist/components/feature-form-flow-item.js +1 -1
  268. package/dist/components/feature-list2.js +64 -16
  269. package/dist/components/features-flow-item.js +1 -1
  270. package/dist/components/floor-filter2.js +1 -1
  271. package/dist/components/info-card2.js +9 -5
  272. package/dist/components/json-editor2.js +1 -1
  273. package/dist/components/layer-list2.js +3 -7
  274. package/dist/components/layer-table2.js +3 -3
  275. package/dist/components/layout-manager.js +1 -1
  276. package/dist/components/list-flow-item.js +1 -1
  277. package/dist/components/location-flow-item.js +1 -1
  278. package/dist/components/map-card2.js +1 -1
  279. package/dist/components/map-draw-tools2.js +1 -1
  280. package/dist/components/map-fullscreen2.js +1 -1
  281. package/dist/components/map-layer-picker2.js +1 -1
  282. package/dist/components/map-legend2.js +1 -1
  283. package/dist/components/map-picker2.js +1 -1
  284. package/dist/components/map-search2.js +1 -1
  285. package/dist/components/map-select-tools2.js +1 -1
  286. package/dist/components/map-tools2.js +1 -1
  287. package/dist/components/mapViewUtils.js +16 -1
  288. package/dist/components/pci-calculator.js +1 -1
  289. package/dist/components/pdf-download2.js +1 -1
  290. package/dist/components/public-notification.js +1 -1
  291. package/dist/components/refine-results-flow-item.js +1 -1
  292. package/dist/components/refine-selection2.js +2 -2
  293. package/dist/components/share-item.js +1 -1
  294. package/dist/components/solution-configuration.js +3 -3
  295. package/dist/components/solution-contents2.js +1 -1
  296. package/dist/components/solution-item-details2.js +1 -1
  297. package/dist/components/solution-item-icon2.js +1 -1
  298. package/dist/components/solution-item-sharing2.js +1 -1
  299. package/dist/components/solution-item2.js +1 -1
  300. package/dist/components/solution-organization-variables2.js +1 -1
  301. package/dist/components/solution-resource-item2.js +1 -1
  302. package/dist/components/solution-spatial-ref2.js +1 -1
  303. package/dist/components/solution-template-data2.js +1 -1
  304. package/dist/components/solution-variables2.js +1 -1
  305. package/dist/components/spatial-ref2.js +1 -1
  306. package/dist/esm/basemap-gallery_7.entry.js +6 -6
  307. package/dist/esm/buffer-tools_3.entry.js +1 -1
  308. package/dist/esm/calcite-alert_4.entry.js +12 -8
  309. package/dist/esm/calcite-dropdown_4.entry.js +2 -2
  310. package/dist/esm/calcite-flow_6.entry.js +321 -256
  311. package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
  312. package/dist/esm/card-manager_3.entry.js +6 -6
  313. package/dist/esm/crowdsource-manager.entry.js +2 -2
  314. package/dist/esm/crowdsource-reporter.entry.js +182 -55
  315. package/dist/esm/deduct-calculator.entry.js +1 -1
  316. package/dist/esm/{downloadUtils-fa6e5c37.js → downloadUtils-aab31bfe.js} +31 -35
  317. package/dist/esm/feature-comments.entry.js +1 -1
  318. package/dist/esm/feature-form-flow-item.entry.js +1 -1
  319. package/dist/esm/feature-list.entry.js +293 -0
  320. package/dist/esm/features-flow-item.entry.js +1 -1
  321. package/dist/esm/{index.es-114545fc.js → index.es-43ba3006.js} +2 -2
  322. package/dist/esm/layout-manager.entry.js +1 -1
  323. package/dist/esm/list-flow-item.entry.js +1 -1
  324. package/dist/esm/loader.js +1 -1
  325. package/dist/esm/location-flow-item.entry.js +1 -1
  326. package/dist/esm/map-select-tools_3.entry.js +5 -5
  327. package/dist/esm/{mapViewUtils-c83c03a4.js → mapViewUtils-4618ddb8.js} +16 -1
  328. package/dist/esm/pci-calculator.entry.js +1 -1
  329. package/dist/esm/public-notification.entry.js +3 -3
  330. package/dist/esm/refine-results-flow-item.entry.js +1 -1
  331. package/dist/esm/share-item.entry.js +1 -1
  332. package/dist/esm/solution-configuration.entry.js +3 -3
  333. package/dist/esm/solution-contents_3.entry.js +3 -3
  334. package/dist/esm/solution-item-icon.entry.js +1 -1
  335. package/dist/esm/solutions-components.js +1 -1
  336. package/dist/esm/spatial-ref.entry.js +1 -1
  337. package/dist/solutions-components/demos/crowdsource-manager.html +3 -3
  338. package/dist/solutions-components/{p-afdc6bb2.entry.js → p-102b1f94.entry.js} +1 -1
  339. package/dist/solutions-components/p-22aece81.entry.js +6 -0
  340. package/dist/solutions-components/p-28c6906c.entry.js +6 -0
  341. package/dist/solutions-components/{p-71bdc77f.entry.js → p-33845a79.entry.js} +1 -1
  342. package/dist/solutions-components/{p-16ac309d.entry.js → p-3470c0f7.entry.js} +1 -1
  343. package/dist/solutions-components/p-3750c969.entry.js +6 -0
  344. package/dist/solutions-components/{p-ee457c15.js → p-37fc92db.js} +3 -3
  345. package/dist/solutions-components/{p-59c92ba2.entry.js → p-3a2e0188.entry.js} +1 -1
  346. package/dist/solutions-components/p-3fae9775.entry.js +6 -0
  347. package/dist/solutions-components/{p-0f139e3e.entry.js → p-54324eaa.entry.js} +1 -1
  348. package/dist/solutions-components/{p-d9c89479.js → p-583e5dd0.js} +1 -1
  349. package/dist/solutions-components/{p-69935f68.entry.js → p-667c022f.entry.js} +1 -1
  350. package/dist/solutions-components/{p-247edfb2.js → p-667caa6b.js} +1 -1
  351. package/dist/solutions-components/p-71de367b.entry.js +6 -0
  352. package/dist/solutions-components/{p-32fed174.entry.js → p-84a5d221.entry.js} +1 -1
  353. package/dist/solutions-components/{p-6e8782d1.entry.js → p-88f73319.entry.js} +1 -1
  354. package/dist/solutions-components/p-8a81f3c7.entry.js +6 -0
  355. package/dist/solutions-components/{p-288592d4.entry.js → p-92ed8d5d.entry.js} +1 -1
  356. package/dist/solutions-components/p-aa06f4d1.entry.js +6 -0
  357. package/dist/solutions-components/{p-67ee4afe.entry.js → p-b3160299.entry.js} +4 -4
  358. package/dist/solutions-components/p-b6d47bab.entry.js +17 -0
  359. package/dist/solutions-components/{p-bcf20616.entry.js → p-b76b5310.entry.js} +1 -1
  360. package/dist/solutions-components/{p-62994fb8.entry.js → p-bb0c7be3.entry.js} +3 -3
  361. package/dist/solutions-components/{p-7fdcce90.entry.js → p-bf57dbfd.entry.js} +2 -2
  362. package/dist/solutions-components/p-c047a6fc.entry.js +6 -0
  363. package/dist/solutions-components/{p-83997457.entry.js → p-d84fe0ee.entry.js} +2 -2
  364. package/dist/solutions-components/p-e9176a44.entry.js +6 -0
  365. package/dist/solutions-components/p-e947332f.entry.js +6 -0
  366. package/dist/solutions-components/{p-568c465e.entry.js → p-fc665a1a.entry.js} +1 -1
  367. package/dist/solutions-components/solutions-components.esm.js +1 -1
  368. package/dist/solutions-components/utils/interfaces.ts +5 -0
  369. package/dist/solutions-components/utils/mapViewUtils.ts +19 -1
  370. package/dist/solutions-components/utils/pdfUtils.ts +40 -47
  371. package/dist/types/assets/arcgis-pdf-creator/PDFLabels.d.ts +218 -0
  372. package/dist/types/components/create-related-feature/create-related-feature.d.ts +113 -0
  373. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +197 -99
  374. package/dist/types/components/feature-details/feature-details.d.ts +31 -0
  375. package/dist/types/components/feature-list/feature-list.d.ts +31 -2
  376. package/dist/types/components/info-card/info-card.d.ts +6 -2
  377. package/dist/types/components/layer-list/layer-list.d.ts +0 -5
  378. package/dist/types/components.d.ts +131 -12
  379. package/dist/types/preact.d.ts +8 -1
  380. package/dist/types/utils/interfaces.d.ts +4 -0
  381. package/dist/types/utils/mapViewUtils.d.ts +7 -0
  382. package/package.json +1 -1
  383. package/dist/solutions-components/p-28b4b325.entry.js +0 -6
  384. package/dist/solutions-components/p-36d3476c.entry.js +0 -17
  385. package/dist/solutions-components/p-43d0788d.entry.js +0 -6
  386. package/dist/solutions-components/p-452d2d38.entry.js +0 -6
  387. package/dist/solutions-components/p-48b2469f.entry.js +0 -6
  388. package/dist/solutions-components/p-4f0712e2.entry.js +0 -6
  389. package/dist/solutions-components/p-535c103e.entry.js +0 -6
  390. package/dist/solutions-components/p-7ca416ab.entry.js +0 -6
  391. package/dist/solutions-components/p-8e337f80.entry.js +0 -6
  392. package/dist/solutions-components/p-d62b99ff.entry.js +0 -6
@@ -874,7 +874,7 @@ const DeductCalculator = /*@__PURE__*/ proxyCustomElement(class DeductCalculator
874
874
  * Renders the component.
875
875
  */
876
876
  render() {
877
- return (h(Host, { key: '4fde9075cfece4eb107c303c5425501663902e66' }, h("div", { key: '5c2d7e3116f87eb19d55cb4c207bfb658bcc9376', class: "label-display" }, h("calcite-label", { key: '924692372a5294dc8ab4cd8f5d83e879b48d33e7', class: "label-display" }, "Density %", this._getDensityInput()), h("calcite-label", { key: '6afaa68fef4a16718159a297ca421a11b0bd5f6b', class: "label-display" }, "Type", this._getTypeInput()), h("calcite-label", { key: 'e147fa289c58bad96e7affde75a5cc6a62739d70', class: "label-display" }, "Severity", this._getSeverityInput())), h("div", { key: 'd3562ae77e679866031fd1fb0f13c954591d5081' }, this._getCalculateInput())));
877
+ return (h(Host, { key: '68401afdbb18147910d55f13cae4c019bda9f020' }, h("div", { key: '88b89c1a9b260024f28315574539f47bd0bd0a3a', class: "label-display" }, h("calcite-label", { key: '8e81c5e65fe272c547addd3915ccc6a7da48a5b8', class: "label-display" }, "Density %", this._getDensityInput()), h("calcite-label", { key: 'f549369baa3b681922c07b2c91a626664e98309f', class: "label-display" }, "Type", this._getTypeInput()), h("calcite-label", { key: 'e850fbf5d9728f969c289946c3518a30316e88b9', class: "label-display" }, "Severity", this._getSeverityInput())), h("div", { key: '2485c0b0f0c2681b1af7cf55478ec34efb734a46' }, this._getCalculateInput())));
878
878
  }
879
879
  //--------------------------------------------------------------------------
880
880
  //
@@ -71,7 +71,7 @@ const DeleteButton = /*@__PURE__*/ proxyCustomElement(class DeleteButton extends
71
71
  * Renders the component.
72
72
  */
73
73
  render() {
74
- return (h(Host, { key: '885179064344fde1e5387efcf7fe2807bd2786c9' }, this.buttonType === "button" ? (h("calcite-button", { appearance: "outline", disabled: !this._deleteEndabled, id: "solutions-delete", kind: "danger", onClick: () => this._delete(), width: "full" }, this._translations.deleteCount.replace("{{n}}", this.ids.length.toString()))) : (h("calcite-action", { appearance: "solid", compact: true, disabled: !this._deleteEndabled, id: this.icon, onClick: () => this._delete(), scale: "s", text: this._translations.delete }, h("calcite-button", { appearance: "transparent", iconStart: this.icon, kind: "danger" }, this._translations.delete))), this._deleteMessage()));
74
+ return (h(Host, { key: '09821225eb29ad6eef021f81977cabc3b7852167' }, this.buttonType === "button" ? (h("calcite-button", { appearance: "outline", disabled: !this._deleteEndabled, id: "solutions-delete", kind: "danger", onClick: () => this._delete(), width: "full" }, this._translations.deleteCount.replace("{{n}}", this.ids.length.toString()))) : (h("calcite-action", { appearance: "solid", compact: true, disabled: !this._deleteEndabled, id: this.icon, onClick: () => this._delete(), scale: "s", text: this._translations.delete }, h("calcite-button", { appearance: "transparent", iconStart: this.icon, kind: "danger" }, this._translations.delete))), this._deleteMessage()));
75
75
  }
76
76
  /**
77
77
  * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
@@ -2195,7 +2195,7 @@ class PDFLabels {
2195
2195
  * @param initialImageDataUrl Data URL of image for first page
2196
2196
  */
2197
2197
  function exportPDF(filename, labels, labelPageDescription, title = "", initialImageDataUrl = "") {
2198
- downloadPDFFile(filename, labels, labelPageDescription, title, initialImageDataUrl);
2198
+ void downloadPDFFile(filename, labels, labelPageDescription, title, initialImageDataUrl);
2199
2199
  }
2200
2200
  //#endregion
2201
2201
  //#region Private functions
@@ -2208,42 +2208,38 @@ function exportPDF(filename, labels, labelPageDescription, title = "", initialIm
2208
2208
  * @param title Title for each page
2209
2209
  * @param initialImageDataUrl Data URL of image for first page
2210
2210
  */
2211
- function downloadPDFFile(filename, labels, labelPageDescription, title = "", initialImageDataUrl = "") {
2211
+ async function downloadPDFFile(filename, labels, labelPageDescription, title = "", initialImageDataUrl = "") {
2212
2212
  const pdfLib = new PDFCreator_jsPDF();
2213
- pdfLib.initialize({
2213
+ await pdfLib.initialize({
2214
2214
  pageType: "ANSI_A"
2215
2215
  }, getAssetPath(`../assets/arcgis-pdf-creator/`), "en", filename // filename without ".pdf"
2216
- )
2217
- .then(() => {
2218
- const labeller = new PDFLabels();
2219
- labeller.initialize(pdfLib)
2220
- .then(async () => {
2221
- const labelSpec = labelPageDescription.labelSpec;
2222
- let startingPageNum = 1;
2223
- // Add the screenshot to the PDF
2224
- if (initialImageDataUrl) {
2225
- const pageProperties = labelSpec.pageProperties;
2226
- const pageSize = PDFCreator.getPageSize(pageProperties.pageType);
2227
- pdfLib.drawImage(initialImageDataUrl, {
2228
- x: pageProperties.leftMargin,
2229
- y: pageProperties.topMargin,
2230
- width: pageSize.width - pageProperties.leftMargin - pageProperties.rightMargin,
2231
- height: pageSize.height - pageProperties.topMargin - pageProperties.bottomMargin
2232
- });
2233
- if (title) {
2234
- labeller.drawSupplementalText(title, 0, -0.1);
2235
- }
2236
- if (labels.length > 0) {
2237
- pdfLib.addPage();
2238
- ++startingPageNum;
2239
- }
2240
- }
2241
- // Add the labels to the PDF
2242
- await labeller.addLabelsToDoc(labels, labelSpec, startingPageNum, title // heading
2243
- );
2244
- pdfLib.save();
2216
+ );
2217
+ const labeller = new PDFLabels();
2218
+ await labeller.initialize(pdfLib);
2219
+ const labelSpec = labelPageDescription.labelSpec;
2220
+ let startingPageNum = 1;
2221
+ // Add the screenshot to the PDF
2222
+ if (initialImageDataUrl) {
2223
+ const pageProperties = labelSpec.pageProperties;
2224
+ const pageSize = PDFCreator.getPageSize(pageProperties.pageType);
2225
+ pdfLib.drawImage(initialImageDataUrl, {
2226
+ x: pageProperties.leftMargin,
2227
+ y: pageProperties.topMargin,
2228
+ width: pageSize.width - pageProperties.leftMargin - pageProperties.rightMargin,
2229
+ height: pageSize.height - pageProperties.topMargin - pageProperties.bottomMargin
2245
2230
  });
2246
- });
2231
+ if (title) {
2232
+ labeller.drawSupplementalText(title, 0, -0.1);
2233
+ }
2234
+ if (labels.length > 0) {
2235
+ pdfLib.addPage();
2236
+ ++startingPageNum;
2237
+ }
2238
+ }
2239
+ // Add the labels to the PDF
2240
+ await labeller.addLabelsToDoc(labels, labelSpec, startingPageNum, title // heading
2241
+ );
2242
+ pdfLib.save();
2247
2243
  }
2248
2244
  //#endregion
2249
2245
 
@@ -108,7 +108,7 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
108
108
  !this.graphics[0].layer.editingEnabled : true;
109
109
  const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
110
110
  const loadingClass = this._editorLoading ? "" : "display-none";
111
- return (h(Host, { key: 'b806acb1c7ec5a72ce3eecf2260343a099d2afa2' }, h("div", { key: 'c4d10fd157da5b0974b240d37245eb67bca9cce9', class: "position-absolute" }, editDisabled ? (h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, h("div", { key: 'c1c66ecdb69497d9a376799f579fff913ac7bd52', class: "position-absolute" }, h("div", { key: 'a9aec76ba816e85ca50ce68beb355426da3bd16f', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: '2a745303bea886b223bc47aa06950d1ca8e39c1a', class: loadingClass, label: "", scale: "s" })))));
111
+ return (h(Host, { key: 'fbb55e4f99e4fde338fb1ca9debc6cd4eeb46787' }, h("div", { key: '10f7468920f81c1b97a2b23c8069e5b821683788', class: "position-absolute" }, editDisabled ? (h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, h("div", { key: '4badfa94e30d2a8108812c780ea6e636ca4e6e00', class: "position-absolute" }, h("div", { key: '7ce280938b7ae435fbffd358969a23577a0a8ce8', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), h("calcite-loader", { key: '13e23afb8e6d012f6abebad43b24485ac0e72805', class: loadingClass, label: "", scale: "s" })))));
112
112
  }
113
113
  //--------------------------------------------------------------------------
114
114
  //
@@ -50,7 +50,7 @@ const FeatureComments$1 = /*@__PURE__*/ proxyCustomElement(class FeatureComments
50
50
  //
51
51
  //--------------------------------------------------------------------------
52
52
  render() {
53
- return (h(Host, { key: '2f5fccede034515212bdcfae66b1a050f63400d0' }, h("slot", { key: '3539f90873c3771e33c8655c12cce9adfbfa772b' })));
53
+ return (h(Host, { key: '388f7097c0cfc5b9c6cc6649ff00e9fd0be1c6aa' }, h("slot", { key: '31a2a3694358fe14a2195da82063f3be0500b3d8' })));
54
54
  }
55
55
  get el() { return this; }
56
56
  static get style() { return FeatureCommentsStyle0; }
@@ -5,25 +5,35 @@
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
7
7
  import { l as loadModules } from './loadModules.js';
8
- import { d as defineCustomElement$h } from './action.js';
9
- import { d as defineCustomElement$g } from './action-menu.js';
10
- import { d as defineCustomElement$f } from './alert.js';
11
- import { d as defineCustomElement$e } from './button.js';
12
- import { d as defineCustomElement$d } from './chip.js';
13
- import { d as defineCustomElement$c } from './icon.js';
14
- import { d as defineCustomElement$b } from './loader.js';
15
- import { d as defineCustomElement$a } from './modal.js';
16
- import { d as defineCustomElement$9 } from './notice.js';
17
- import { d as defineCustomElement$8 } from './panel.js';
18
- import { d as defineCustomElement$7 } from './popover.js';
19
- import { d as defineCustomElement$6 } from './scrim.js';
20
- import { d as defineCustomElement$5 } from './shell.js';
21
- import { d as defineCustomElement$4 } from './tooltip.js';
22
- import { d as defineCustomElement$3 } from './delete-button2.js';
23
- import { d as defineCustomElement$2 } from './edit-card2.js';
8
+ import { f as getAllTables } from './mapViewUtils.js';
9
+ import { d as defineCustomElement$q } from './action.js';
10
+ import { d as defineCustomElement$p } from './action-menu.js';
11
+ import { d as defineCustomElement$o } from './alert.js';
12
+ import { d as defineCustomElement$n } from './button.js';
13
+ import { d as defineCustomElement$m } from './chip.js';
14
+ import { d as defineCustomElement$l } from './filter2.js';
15
+ import { d as defineCustomElement$k } from './handle.js';
16
+ import { d as defineCustomElement$j } from './icon.js';
17
+ import { d as defineCustomElement$i } from './input.js';
18
+ import { d as defineCustomElement$h } from './list.js';
19
+ import { d as defineCustomElement$g } from './list-item.js';
20
+ import { d as defineCustomElement$f } from './loader.js';
21
+ import { d as defineCustomElement$e } from './modal.js';
22
+ import { d as defineCustomElement$d } from './notice.js';
23
+ import { d as defineCustomElement$c } from './pagination.js';
24
+ import { d as defineCustomElement$b } from './panel.js';
25
+ import { d as defineCustomElement$a } from './popover.js';
26
+ import { d as defineCustomElement$9 } from './progress.js';
27
+ import { d as defineCustomElement$8 } from './scrim.js';
28
+ import { d as defineCustomElement$7 } from './shell.js';
29
+ import { d as defineCustomElement$6 } from './stack.js';
30
+ import { d as defineCustomElement$5 } from './tooltip.js';
31
+ import { d as defineCustomElement$4 } from './delete-button2.js';
32
+ import { d as defineCustomElement$3 } from './edit-card2.js';
33
+ import { d as defineCustomElement$2 } from './feature-list2.js';
24
34
  import { d as defineCustomElement$1 } from './info-card2.js';
25
35
 
26
- const featureDetailsCss = ":host{display:block}.buttons{align-items:center;background-color:white;display:flex;padding:10px 0 10px 15px;border-block-start:1px solid var(--calcite-color-border-3);border-block-end:1px solid var(--calcite-color-border-3)}.comment-btn{display:flex;gap:5px;width:35px}";
36
+ const featureDetailsCss = ":host{display:block}.buttons-container{align-items:center;display:flex;padding:10px 0 10px 15px;color:var(--calcite-color-text-1) !important;background-color:var(--calcite-color-foreground-1) !important;border-block-start:1px solid var(--calcite-color-border-3);border-block-end:1px solid var(--calcite-color-border-3)}.comment-btn{display:flex;gap:5px;width:37px;font-size:var(--calcite-font-size--2);align-items:center}";
27
37
  const FeatureDetailsStyle0 = featureDetailsCss;
28
38
 
29
39
  const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails extends HTMLElement {
@@ -31,6 +41,7 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
31
41
  super();
32
42
  this.__registerHost();
33
43
  this.loadingStatus = createEvent(this, "loadingStatus", 7);
44
+ this.featureSelect = createEvent(this, "featureSelect", 7);
34
45
  /**
35
46
  * string[]: Valid field types for like and dislike
36
47
  */
@@ -42,8 +53,10 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
42
53
  this._likeCount = 0;
43
54
  this._disLikeCount = 0;
44
55
  this._dislikeFieldAvailable = false;
56
+ this._commentsAvailable = false;
45
57
  this._isLikeBtnClicked = false;
46
58
  this._isDislikeBtnClicked = false;
59
+ this._relatedFeaturesOIDs = undefined;
47
60
  }
48
61
  //--------------------------------------------------------------------------
49
62
  //
@@ -56,19 +69,23 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
56
69
  async graphicsWatchHandler() {
57
70
  await this.getCompleteGraphic(this.graphics[0]);
58
71
  this.checkLikeDislikeFields();
72
+ await this.processComments();
59
73
  }
60
74
  //--------------------------------------------------------------------------
61
75
  //
62
76
  // Methods (public)
77
+ //
78
+ //--------------------------------------------------------------------------
63
79
  /**
64
80
  * Refresh the features comments which will fetch like, dislike and update the component
65
81
  * @returns Promise that resolves when the operation is complete
66
82
  */
67
83
  async refresh(graphic) {
84
+ await this.getCompleteGraphic(graphic);
85
+ await this.processComments();
68
86
  if (this.isLikeDislikeConfigured(graphic.layer)) {
69
87
  // in case of multiple features selected fetch complete feature and update like dislike for current feature
70
88
  if (graphic && this.graphics.length > 1) {
71
- await this.getCompleteGraphic(graphic);
72
89
  this.checkLikeDislikeFields();
73
90
  }
74
91
  }
@@ -102,15 +119,21 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
102
119
  */
103
120
  async componentWillLoad() {
104
121
  await this._initModules();
122
+ //Apply query to get complete graphic with complete attributes
105
123
  await this.getCompleteGraphic(this.graphics[0]);
106
124
  this.checkLikeDislikeFields();
125
+ await this.processComments();
107
126
  }
108
127
  render() {
109
- var _a, _b, _c, _d;
110
- return (h("calcite-panel", { key: 'c37e61727e2d94fb11c1c82b68de90b63a68385c', "full-height": true }, h("info-card", { key: 'b8ee6ec6705ec1903800f42f9009d92e0ff41fcc', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el, zoomAndScrollToSelected: true }), (this._likeFieldAvailable || this._dislikeFieldAvailable) &&
111
- h("div", { key: '3a48acd141dbdcb921b2b24296587b130c4e0fcb', class: 'buttons' }, this._likeFieldAvailable &&
112
- h("calcite-button", { key: 'cfde8c0825109ec48beb61348c1846596994f6d2', appearance: "transparent", iconEnd: "thumbs-up", kind: this._isLikeBtnClicked ? "brand" : "neutral", onClick: this.onLikeButtonClick.bind(this), scale: 's' }, (_b = (_a = this._likeCount) !== null && _a !== void 0 ? _a : this._selectedGraphic.attributes[this._likeField]) !== null && _b !== void 0 ? _b : 0), this._dislikeFieldAvailable &&
113
- h("calcite-button", { key: 'e5e69fefa92a0189b955c4869b7755d0e68436c9', appearance: "transparent", iconEnd: "thumbs-down", kind: this._isDislikeBtnClicked ? "brand" : "neutral", onClick: this.onDislikeButtonClick.bind(this), scale: 's' }, (_d = (_c = this._disLikeCount) !== null && _c !== void 0 ? _c : this._selectedGraphic.attributes[this._dislikeField]) !== null && _d !== void 0 ? _d : 0))));
128
+ var _a, _b, _c, _d, _e;
129
+ //When related features found show comments list of only those features else comments list will be empty
130
+ const commentsListWhereClause = ((_a = this._relatedFeaturesOIDs) === null || _a === void 0 ? void 0 : _a.length) > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
131
+ return (h("calcite-panel", { key: 'c39c0eec021627b920972f7d4bce0d45bfe0a9c2', "full-height": true }, h("info-card", { key: 'e90cb427a1f874216afcfdf0a33804bf14fb6a2c', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el, zoomAndScrollToSelected: true }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
132
+ h("div", { key: 'ecfdf111612c92eacfd97dae7bb3080b7ad50e96', class: "buttons-container" }, this._commentsAvailable &&
133
+ h("div", { key: '07a8213e11585041fb1c5f56254447a720033f04', class: "comment-btn" }, h("span", { key: 'f4071fbd03372a0e88857962e9c31530e2dc693a' }, this._relatedFeaturesOIDs.length), h("calcite-icon", { key: '30258e1daae5f1e00d18dd4ec052861de46b45bf', icon: "speech-bubble", scale: 's' })), this._likeFieldAvailable &&
134
+ h("calcite-button", { key: 'fa76245789a29e49be06482fd8cd0244f44d19ab', appearance: "transparent", iconEnd: "thumbs-up", kind: this._isLikeBtnClicked ? "brand" : "neutral", onClick: this.onLikeButtonClick.bind(this), scale: 's' }, (_c = (_b = this._likeCount) !== null && _b !== void 0 ? _b : this._selectedGraphic.attributes[this._likeField]) !== null && _c !== void 0 ? _c : 0), this._dislikeFieldAvailable &&
135
+ h("calcite-button", { key: 'ac9adc799a93f08319b2f0b797cd5d4773b1a6cb', appearance: "transparent", iconEnd: "thumbs-down", kind: this._isDislikeBtnClicked ? "brand" : "neutral", onClick: this.onDislikeButtonClick.bind(this), scale: 's' }, (_e = (_d = this._disLikeCount) !== null && _d !== void 0 ? _d : this._selectedGraphic.attributes[this._dislikeField]) !== null && _e !== void 0 ? _e : 0)), this.relatedTableId && this._commentsAvailable &&
136
+ h("feature-list", { key: '165b2ac0af65cbbab945a0dfd4ac878cc41af56c', class: "height-full", mapView: this.mapView, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showInitialLoading: false, textSize: "small", whereClause: commentsListWhereClause })));
114
137
  }
115
138
  /**
116
139
  * Load esri javascript api modules
@@ -120,9 +143,11 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
120
143
  * @protected
121
144
  */
122
145
  async _initModules() {
123
- const [Graphic] = await loadModules([
146
+ const [RelationshipQuery, Graphic] = await loadModules([
147
+ "esri/rest/support/RelationshipQuery",
124
148
  "esri/Graphic"
125
149
  ]);
150
+ this.RelationshipQuery = RelationshipQuery;
126
151
  this.Graphic = Graphic;
127
152
  }
128
153
  /**
@@ -137,6 +162,56 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
137
162
  const completeGraphic = await layer.queryFeatures(query);
138
163
  this._selectedGraphic = completeGraphic.features[0];
139
164
  }
165
+ /**
166
+ * Process the comments functionality.
167
+ * If comments are configured, fetches the related comments ans creates the input for comments list
168
+ * @protected
169
+ */
170
+ async processComments() {
171
+ var _a;
172
+ const selectedLayer = this._selectedGraphic.layer;
173
+ const commentsConfigured = this.reportingOptions[selectedLayer.id].comment && ((_a = selectedLayer.relationships) === null || _a === void 0 ? void 0 : _a.length) > 0;
174
+ if (commentsConfigured) {
175
+ //Get comments table id from map
176
+ const relatedTableIdFromRelnship = selectedLayer.relationships[0].relatedTableId;
177
+ const allTables = await getAllTables(this.mapView);
178
+ const relatedTable = allTables.filter((table) => relatedTableIdFromRelnship === table.layerId);
179
+ this.relatedTableId = (relatedTable === null || relatedTable === void 0 ? void 0 : relatedTable.length) > 0 ? relatedTable[0].id : '';
180
+ //**Get the related records for the current selected feature**
181
+ if (this.relatedTableId) {
182
+ //current selected feature's objectId
183
+ const objectId = this._selectedGraphic.attributes[selectedLayer.objectIdField];
184
+ //create relationship query to get all the related records with the current selected feature
185
+ const relationshipQuery = new this.RelationshipQuery({
186
+ objectIds: [objectId],
187
+ outFields: ['*'],
188
+ relationshipId: selectedLayer.relationships[0].id
189
+ });
190
+ const result = await selectedLayer.queryRelatedFeatures(relationshipQuery).catch((e) => {
191
+ console.error(e);
192
+ });
193
+ const relatedOIDs = [];
194
+ if (result[objectId]) {
195
+ result[objectId].features.forEach((feature) => {
196
+ relatedOIDs.push(feature.attributes.OBJECTID);
197
+ });
198
+ }
199
+ // Store the objectid's of the related features, this will be used to show the comments and its count
200
+ this._relatedFeaturesOIDs = relatedOIDs;
201
+ //Set comments available or not
202
+ this._commentsAvailable = true;
203
+ }
204
+ else {
205
+ this._relatedFeaturesOIDs = [];
206
+ this._commentsAvailable = false;
207
+ }
208
+ }
209
+ else {
210
+ this._relatedFeaturesOIDs = [];
211
+ this._commentsAvailable = false;
212
+ this.relatedTableId = '';
213
+ }
214
+ }
140
215
  /**
141
216
  * Checks if the layers is configured for like dislike or not
142
217
  * @param selectedLayer Feature layer
@@ -158,6 +233,7 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
158
233
  if (!likeField && !dislikeField) {
159
234
  return false;
160
235
  }
236
+ //Check if selected layer have the configured like and dislike field and it is of integer types
161
237
  selectedLayer.fields.forEach((eachField) => {
162
238
  if (this._validFieldTypes.indexOf(eachField.type) > -1) {
163
239
  if (eachField.name === likeField && this.reportingOptions[selectedLayer.id].like) {
@@ -338,8 +414,10 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
338
414
  "_likeCount": [32],
339
415
  "_disLikeCount": [32],
340
416
  "_dislikeFieldAvailable": [32],
417
+ "_commentsAvailable": [32],
341
418
  "_isLikeBtnClicked": [32],
342
419
  "_isDislikeBtnClicked": [32],
420
+ "_relatedFeaturesOIDs": [32],
343
421
  "refresh": [64],
344
422
  "back": [64],
345
423
  "next": [64],
@@ -351,7 +429,7 @@ function defineCustomElement() {
351
429
  if (typeof customElements === "undefined") {
352
430
  return;
353
431
  }
354
- const components = ["feature-details", "calcite-action", "calcite-action-menu", "calcite-alert", "calcite-button", "calcite-chip", "calcite-icon", "calcite-loader", "calcite-modal", "calcite-notice", "calcite-panel", "calcite-popover", "calcite-scrim", "calcite-shell", "calcite-tooltip", "delete-button", "edit-card", "info-card"];
432
+ const components = ["feature-details", "calcite-action", "calcite-action-menu", "calcite-alert", "calcite-button", "calcite-chip", "calcite-filter", "calcite-handle", "calcite-icon", "calcite-input", "calcite-list", "calcite-list-item", "calcite-loader", "calcite-modal", "calcite-notice", "calcite-pagination", "calcite-panel", "calcite-popover", "calcite-progress", "calcite-scrim", "calcite-shell", "calcite-stack", "calcite-tooltip", "delete-button", "edit-card", "feature-list", "info-card"];
355
433
  components.forEach(tagName => { switch (tagName) {
356
434
  case "feature-details":
357
435
  if (!customElements.get(tagName)) {
@@ -360,80 +438,125 @@ function defineCustomElement() {
360
438
  break;
361
439
  case "calcite-action":
362
440
  if (!customElements.get(tagName)) {
363
- defineCustomElement$h();
441
+ defineCustomElement$q();
364
442
  }
365
443
  break;
366
444
  case "calcite-action-menu":
367
445
  if (!customElements.get(tagName)) {
368
- defineCustomElement$g();
446
+ defineCustomElement$p();
369
447
  }
370
448
  break;
371
449
  case "calcite-alert":
372
450
  if (!customElements.get(tagName)) {
373
- defineCustomElement$f();
451
+ defineCustomElement$o();
374
452
  }
375
453
  break;
376
454
  case "calcite-button":
377
455
  if (!customElements.get(tagName)) {
378
- defineCustomElement$e();
456
+ defineCustomElement$n();
379
457
  }
380
458
  break;
381
459
  case "calcite-chip":
382
460
  if (!customElements.get(tagName)) {
383
- defineCustomElement$d();
461
+ defineCustomElement$m();
462
+ }
463
+ break;
464
+ case "calcite-filter":
465
+ if (!customElements.get(tagName)) {
466
+ defineCustomElement$l();
467
+ }
468
+ break;
469
+ case "calcite-handle":
470
+ if (!customElements.get(tagName)) {
471
+ defineCustomElement$k();
384
472
  }
385
473
  break;
386
474
  case "calcite-icon":
387
475
  if (!customElements.get(tagName)) {
388
- defineCustomElement$c();
476
+ defineCustomElement$j();
477
+ }
478
+ break;
479
+ case "calcite-input":
480
+ if (!customElements.get(tagName)) {
481
+ defineCustomElement$i();
482
+ }
483
+ break;
484
+ case "calcite-list":
485
+ if (!customElements.get(tagName)) {
486
+ defineCustomElement$h();
487
+ }
488
+ break;
489
+ case "calcite-list-item":
490
+ if (!customElements.get(tagName)) {
491
+ defineCustomElement$g();
389
492
  }
390
493
  break;
391
494
  case "calcite-loader":
392
495
  if (!customElements.get(tagName)) {
393
- defineCustomElement$b();
496
+ defineCustomElement$f();
394
497
  }
395
498
  break;
396
499
  case "calcite-modal":
397
500
  if (!customElements.get(tagName)) {
398
- defineCustomElement$a();
501
+ defineCustomElement$e();
399
502
  }
400
503
  break;
401
504
  case "calcite-notice":
402
505
  if (!customElements.get(tagName)) {
403
- defineCustomElement$9();
506
+ defineCustomElement$d();
507
+ }
508
+ break;
509
+ case "calcite-pagination":
510
+ if (!customElements.get(tagName)) {
511
+ defineCustomElement$c();
404
512
  }
405
513
  break;
406
514
  case "calcite-panel":
407
515
  if (!customElements.get(tagName)) {
408
- defineCustomElement$8();
516
+ defineCustomElement$b();
409
517
  }
410
518
  break;
411
519
  case "calcite-popover":
412
520
  if (!customElements.get(tagName)) {
413
- defineCustomElement$7();
521
+ defineCustomElement$a();
522
+ }
523
+ break;
524
+ case "calcite-progress":
525
+ if (!customElements.get(tagName)) {
526
+ defineCustomElement$9();
414
527
  }
415
528
  break;
416
529
  case "calcite-scrim":
417
530
  if (!customElements.get(tagName)) {
418
- defineCustomElement$6();
531
+ defineCustomElement$8();
419
532
  }
420
533
  break;
421
534
  case "calcite-shell":
422
535
  if (!customElements.get(tagName)) {
423
- defineCustomElement$5();
536
+ defineCustomElement$7();
537
+ }
538
+ break;
539
+ case "calcite-stack":
540
+ if (!customElements.get(tagName)) {
541
+ defineCustomElement$6();
424
542
  }
425
543
  break;
426
544
  case "calcite-tooltip":
427
545
  if (!customElements.get(tagName)) {
428
- defineCustomElement$4();
546
+ defineCustomElement$5();
429
547
  }
430
548
  break;
431
549
  case "delete-button":
432
550
  if (!customElements.get(tagName)) {
433
- defineCustomElement$3();
551
+ defineCustomElement$4();
434
552
  }
435
553
  break;
436
554
  case "edit-card":
555
+ if (!customElements.get(tagName)) {
556
+ defineCustomElement$3();
557
+ }
558
+ break;
559
+ case "feature-list":
437
560
  if (!customElements.get(tagName)) {
438
561
  defineCustomElement$2();
439
562
  }
@@ -50,7 +50,7 @@ const FeatureFormFlowItem$1 = /*@__PURE__*/ proxyCustomElement(class FeatureForm
50
50
  //
51
51
  //--------------------------------------------------------------------------
52
52
  render() {
53
- return (h(Host, { key: 'eafd28a38226545f6e4047bd03fe7eaf0ec20cfa' }, h("slot", { key: '5ad9661525b0126f0848064f5d5bdae69c393d11' })));
53
+ return (h(Host, { key: '2607999cdad5fbe75eac4366256b589eeb33fe36' }, h("slot", { key: 'a9443a71e40b37449d01f4c40ca5f21b83bf005a' })));
54
54
  }
55
55
  get el() { return this; }
56
56
  static get style() { return FeatureFormFlowItemStyle0; }