@esri/solutions-components 0.8.14 → 0.8.15

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 +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 +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-3750c969.entry.js +6 -0
  342. package/dist/solutions-components/{p-ee457c15.js → p-37fc92db.js} +3 -3
  343. package/dist/solutions-components/{p-59c92ba2.entry.js → p-3a2e0188.entry.js} +1 -1
  344. package/dist/solutions-components/p-3fae9775.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
@@ -6,7 +6,7 @@
6
6
  import { g as getDefaultExportFromCjs } from './esri-loader-2bf735ed.js';
7
7
  import { a as getAssetPath } from './index-ba5da2b0.js';
8
8
  import { l as loadModules } from './locale-a490c4f6.js';
9
- import { q as queryFeaturesByID } from './mapViewUtils-c83c03a4.js';
9
+ import { q as queryFeaturesByID } from './mapViewUtils-4618ddb8.js';
10
10
  import './solution-resource-0d0eb597.js';
11
11
  import './index-a1e91462.js';
12
12
  import { _ as __assign$1, r as request, c as cleanUrl, g as getJson } from './restHelpersGet-1bd54274.js';
@@ -1510,7 +1510,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
1510
1510
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1511
1511
  * ====================================================================
1512
1512
  */
1513
- function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-114545fc.js')).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
1513
+ function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-43ba3006.js')).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
1514
1514
  /** ====================================================================
1515
1515
  * @license
1516
1516
  * jsPDF XMP metadata plugin
@@ -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
 
@@ -48,7 +48,7 @@ const FeatureComments = class {
48
48
  //
49
49
  //--------------------------------------------------------------------------
50
50
  render() {
51
- return (h(Host, { key: '2f5fccede034515212bdcfae66b1a050f63400d0' }, h("slot", { key: '3539f90873c3771e33c8655c12cce9adfbfa772b' })));
51
+ return (h(Host, { key: '388f7097c0cfc5b9c6cc6649ff00e9fd0be1c6aa' }, h("slot", { key: '31a2a3694358fe14a2195da82063f3be0500b3d8' })));
52
52
  }
53
53
  get el() { return getElement(this); }
54
54
  };
@@ -48,7 +48,7 @@ const FeatureFormFlowItem = class {
48
48
  //
49
49
  //--------------------------------------------------------------------------
50
50
  render() {
51
- return (h(Host, { key: 'eafd28a38226545f6e4047bd03fe7eaf0ec20cfa' }, h("slot", { key: '5ad9661525b0126f0848064f5d5bdae69c393d11' })));
51
+ return (h(Host, { key: '2607999cdad5fbe75eac4366256b589eeb33fe36' }, h("slot", { key: 'a9443a71e40b37449d01f4c40ca5f21b83bf005a' })));
52
52
  }
53
53
  get el() { return getElement(this); }
54
54
  };
@@ -0,0 +1,293 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-ba5da2b0.js';
7
+ import { l as loadModules, g as getLocaleComponentStrings } from './locale-a490c4f6.js';
8
+ import { P as PopupUtils } from './popupUtils-2cc3c366.js';
9
+ import { g as getLayerOrTable, c as getFeatureLayerView, h as highlightFeatures } from './mapViewUtils-4618ddb8.js';
10
+ import './esri-loader-2bf735ed.js';
11
+ import './interfaces-586e863c.js';
12
+
13
+ const featureListCss = ":host{display:block}.width-full{width:100%}.pagination{display:flex;justify-content:center}.error-msg{padding:10px;width:calc(100% - 20px)}.feature-list-popup-title{font-weight:500;padding:10px 12px}.feature-list-popup-title-small{font-size:x-small;padding:10px 12px}";
14
+ const FeatureListStyle0 = featureListCss;
15
+
16
+ const FeatureList = class {
17
+ constructor(hostRef) {
18
+ registerInstance(this, hostRef);
19
+ this.featureSelect = createEvent(this, "featureSelect", 7);
20
+ this.selectedLayerId = undefined;
21
+ this.mapView = undefined;
22
+ this.noFeaturesFoundMsg = undefined;
23
+ this.pageSize = 100;
24
+ this.highlightOnMap = false;
25
+ this.highlightOnHover = false;
26
+ this.sortingInfo = undefined;
27
+ this.whereClause = undefined;
28
+ this.textSize = "large";
29
+ this.showInitialLoading = true;
30
+ this._featureItems = [];
31
+ this._featuresCount = 0;
32
+ this._isLoading = false;
33
+ this._translations = undefined;
34
+ }
35
+ //--------------------------------------------------------------------------
36
+ //
37
+ // Watch handlers
38
+ //
39
+ //--------------------------------------------------------------------------
40
+ /**
41
+ * Watch for selectedLayerId change and update layer instance and features list for new layerId
42
+ */
43
+ async selectedLayerWatchHandler() {
44
+ this._selectedLayer = await getLayerOrTable(this.mapView, this.selectedLayerId);
45
+ await this.initializeFeatureItems();
46
+ }
47
+ /**
48
+ * Watch for sorting field or order change and update the features list
49
+ */
50
+ async sortingInfoWatchHandler() {
51
+ await this.initializeFeatureItems();
52
+ }
53
+ /**
54
+ * Watch for whereclause change and update the features list
55
+ */
56
+ async whereClauseHandler() {
57
+ await this.initializeFeatureItems();
58
+ }
59
+ //--------------------------------------------------------------------------
60
+ //
61
+ // Methods (public)
62
+ /**
63
+ * Refresh the feature list which will fetch the latest features and update the features list
64
+ * @returns Promise that resolves when the operation is complete
65
+ */
66
+ async refresh() {
67
+ await this.initializeFeatureItems();
68
+ }
69
+ //--------------------------------------------------------------------------
70
+ //
71
+ // Functions (lifecycle)
72
+ //
73
+ //--------------------------------------------------------------------------
74
+ /**
75
+ * StencilJS: Called once just after the component is first connected to the DOM.
76
+ * @returns Promise when complete
77
+ */
78
+ async componentWillLoad() {
79
+ await this.initModules();
80
+ await this._getTranslations();
81
+ this._isLoading = this.showInitialLoading;
82
+ this._popupUtils = new PopupUtils();
83
+ if (this.mapView && this.selectedLayerId) {
84
+ this._selectedLayer = await getLayerOrTable(this.mapView, this.selectedLayerId);
85
+ }
86
+ }
87
+ /**
88
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
89
+ */
90
+ async componentDidLoad() {
91
+ await this.initializeFeatureItems();
92
+ }
93
+ /**
94
+ * Renders the component.
95
+ */
96
+ render() {
97
+ return (h("calcite-panel", { key: '37f83a9c019e68213493f5e890324470389cd36f', "full-height": true, "full-width": true }, this._isLoading && h("calcite-loader", { key: '671559375bb5fcdc8a01f9f10a82ab71edc0d836', label: "", scale: "m" }), this._featureItems.length === 0 && !this._isLoading &&
98
+ h("calcite-notice", { key: 'f6101de52464f2316bfbb83919036b4cf035f8b9', class: "error-msg", icon: "feature-details", kind: "info", open: true }, h("div", { key: 'e49017399909f1d0b93ec4e24341b9042267977f', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), h("calcite-list", { key: '2e90c0aec739fcce422ff730a39adc85b71a84cb', "selection-appearance": "border", "selection-mode": "none" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
99
+ h("div", { key: '4b59248846c5b433bb88171c322070a13002f23d', class: "width-full", slot: "footer" }, h("calcite-pagination", { key: '1ca5dbccdc59379999a94198d7ac6111e1ef547b', class: "pagination", "full-width": true, onCalcitePaginationChange: this.pageChanged.bind(this), "page-size": this.pageSize, "start-item": "1", "total-items": this._featuresCount }))));
100
+ }
101
+ //--------------------------------------------------------------------------
102
+ //
103
+ // Functions (protected)
104
+ //
105
+ //--------------------------------------------------------------------------
106
+ /**
107
+ * Load esri javascript api modules
108
+ * @returns Promise resolving when function is done
109
+ * @protected
110
+ */
111
+ async initModules() {
112
+ const [Color] = await loadModules([
113
+ "esri/Color"
114
+ ]);
115
+ this.Color = Color;
116
+ }
117
+ /**
118
+ * Return the where condition string considering the defined where clause and layer's definition expression
119
+ * @protected
120
+ */
121
+ getWhereCondition() {
122
+ var _a;
123
+ //By Default load all the features
124
+ let whereClause = '1=1';
125
+ //if where clause is defined use it
126
+ if (this.whereClause) {
127
+ whereClause = this.whereClause;
128
+ }
129
+ //if layer has definitionExpression append it to the where clause
130
+ if ((_a = this._selectedLayer) === null || _a === void 0 ? void 0 : _a.definitionExpression) {
131
+ whereClause = whereClause + ' AND ' + this._selectedLayer.definitionExpression;
132
+ }
133
+ return whereClause;
134
+ }
135
+ /**
136
+ * Initialize the features list using the selected layer
137
+ * @protected
138
+ */
139
+ async initializeFeatureItems() {
140
+ if (this._selectedLayer) {
141
+ this._isLoading = this.showInitialLoading;
142
+ this._featureItems = await this.queryPage(0);
143
+ const query = {
144
+ where: this.getWhereCondition()
145
+ };
146
+ this._featuresCount = await this._selectedLayer.queryFeatureCount(query);
147
+ this._isLoading = false;
148
+ }
149
+ }
150
+ /**
151
+ * On page change get the next updated feature list
152
+ * @param event page change event
153
+ * @protected
154
+ */
155
+ async pageChanged(event) {
156
+ this._isLoading = true;
157
+ if (this._highlightHandle) {
158
+ this._highlightHandle.remove();
159
+ this._highlightHandle = null;
160
+ }
161
+ const page = event.target.startItem - 1;
162
+ this._featureItems = await this.queryPage(page);
163
+ this._isLoading = false;
164
+ }
165
+ /**
166
+ * On feature click in feature list highlight the feature on the map
167
+ * @param event feature clicked event
168
+ * @param selectedFeature selected feature graphic
169
+ * @protected
170
+ */
171
+ async featureClicked(event, selectedFeature) {
172
+ //clear previous highlight and remove the highlightHandle
173
+ this.clearHighlights();
174
+ //highlight on map only if it is selected item
175
+ if (this.highlightOnMap) {
176
+ const selectedFeatureObjectId = Number(event.target.value);
177
+ const selectedLayerView = await getFeatureLayerView(this.mapView, this.selectedLayerId);
178
+ this._highlightHandle = await highlightFeatures([selectedFeatureObjectId], selectedLayerView, this.mapView, true);
179
+ }
180
+ await this.emitSelectedFeature(selectedFeature);
181
+ }
182
+ /**
183
+ * Emit selected feature with its complete graphics and attributes
184
+ * @param graphic selected feature graphic
185
+ * @protected
186
+ */
187
+ async emitSelectedFeature(graphic) {
188
+ const layer = graphic.layer;
189
+ const query = layer.createQuery();
190
+ query.returnGeometry = true;
191
+ query.objectIds = [graphic.getObjectId()];
192
+ const completeGraphic = await layer.queryFeatures(query);
193
+ this.featureSelect.emit(completeGraphic.features[0]);
194
+ }
195
+ /**
196
+ * On feature hover in feature list highlight the feature on the map
197
+ * @param selectedFeature mouse hovered feature graphic
198
+ * @protected
199
+ */
200
+ async onFeatureHover(selectedFeature) {
201
+ //clear previous highlight and remove the highlightHandle
202
+ this.clearHighlights();
203
+ if (this.highlightOnHover) {
204
+ const oId = selectedFeature.getObjectId();
205
+ const selectedLayerView = await getFeatureLayerView(this.mapView, this.selectedLayerId);
206
+ selectedLayerView.highlightOptions = { color: new this.Color("#FFFF00") };
207
+ this._highlightHandle = selectedLayerView.highlight([oId]);
208
+ }
209
+ }
210
+ /**
211
+ * Clears the highlight
212
+ * @protected
213
+ */
214
+ clearHighlights() {
215
+ //if a feature is already highlighted, then remove the highlight
216
+ if (this._highlightHandle) {
217
+ this._highlightHandle.remove();
218
+ }
219
+ }
220
+ /**
221
+ * Query the selected feature layer, in descending order of object id's
222
+ * @param page 0th page number in the pagination item
223
+ * @returns List of features items to be rendered
224
+ * @protected
225
+ */
226
+ async queryPage(page) {
227
+ var _a, _b;
228
+ const featureLayer = this._selectedLayer;
229
+ const sortField = ((_a = this.sortingInfo) === null || _a === void 0 ? void 0 : _a.field) ? this.sortingInfo.field : featureLayer.objectIdField;
230
+ const sortOrder = ((_b = this.sortingInfo) === null || _b === void 0 ? void 0 : _b.order) ? this.sortingInfo.order : 'desc';
231
+ const query = {
232
+ start: page,
233
+ num: this.pageSize,
234
+ outFields: ["*"],
235
+ returnGeometry: true,
236
+ where: this.getWhereCondition(),
237
+ outSpatialReference: this.mapView.spatialReference.toJSON()
238
+ };
239
+ //sort only when sort field and order is valid
240
+ if (sortField && sortOrder) {
241
+ query.orderByFields = [sortField.toString() + " " + sortOrder];
242
+ }
243
+ const featureSet = await featureLayer.queryFeatures(query);
244
+ return await this.createFeatureItem(featureSet);
245
+ }
246
+ /**
247
+ * Creates list of items using the popup titles
248
+ * @param featureSet Queried FeatureSet
249
+ * @returns List of features items to be rendered
250
+ * @protected
251
+ */
252
+ async createFeatureItem(featureSet) {
253
+ const currentFeatures = featureSet === null || featureSet === void 0 ? void 0 : featureSet.features;
254
+ const items = currentFeatures.map(async (feature) => {
255
+ const popupTitle = await this._popupUtils.getPopupTitle(feature, this.mapView.map);
256
+ return this.getFeatureItem(feature, popupTitle);
257
+ });
258
+ return Promise.all(items);
259
+ }
260
+ /**
261
+ * Get each feature item
262
+ * @param selectedFeature Each individual feature instance to be listed
263
+ * @param popupTitle feature popup title
264
+ * @returns individual feature item to be rendered
265
+ * @protected
266
+ */
267
+ getFeatureItem(selectedFeature, popupTitle) {
268
+ //get the object id value of the feature
269
+ const oId = selectedFeature.attributes[this._selectedLayer.objectIdField].toString();
270
+ //use object id if popupTitle is null or undefined
271
+ popupTitle = popupTitle !== null && popupTitle !== void 0 ? popupTitle : oId;
272
+ const popupTitleClass = this.textSize === 'small' ? 'feature-list-popup-title-small' : 'feature-list-popup-title';
273
+ return (h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, h("div", { class: popupTitleClass, slot: "content-start" }, popupTitle), h("calcite-icon", { icon: "chevron-right", scale: "s", slot: "content-end" })));
274
+ }
275
+ /**
276
+ * Fetches the component's translations
277
+ * @returns Promise when complete
278
+ * @protected
279
+ */
280
+ async _getTranslations() {
281
+ const messages = await getLocaleComponentStrings(this.el);
282
+ this._translations = messages[0];
283
+ }
284
+ get el() { return getElement(this); }
285
+ static get watchers() { return {
286
+ "selectedLayerId": ["selectedLayerWatchHandler"],
287
+ "sortingInfo": ["sortingInfoWatchHandler"],
288
+ "whereClause": ["whereClauseHandler"]
289
+ }; }
290
+ };
291
+ FeatureList.style = FeatureListStyle0;
292
+
293
+ export { FeatureList as feature_list };
@@ -48,7 +48,7 @@ const FeaturesFlowItem = class {
48
48
  //
49
49
  //--------------------------------------------------------------------------
50
50
  render() {
51
- return (h(Host, { key: '47fde9252d4b8eff91b413cf22282b8d61d127a7' }, h("slot", { key: '725e3a0a4ad6ef4827a5036187b2f0e59cf34ecd' })));
51
+ return (h(Host, { key: 'e0d4102af27d4ca25cb6257292797c2900337ec7' }, h("slot", { key: 'ea50a07d3d33ee0b67bc5a27a71bc7ea597fb008' })));
52
52
  }
53
53
  get el() { return getElement(this); }
54
54
  };
@@ -4,10 +4,10 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { a as commonjsGlobal, g as getDefaultExportFromCjs } from './esri-loader-2bf735ed.js';
7
- import { _ as _typeof$1 } from './downloadUtils-fa6e5c37.js';
7
+ import { _ as _typeof$1 } from './downloadUtils-aab31bfe.js';
8
8
  import './index-ba5da2b0.js';
9
9
  import './locale-a490c4f6.js';
10
- import './mapViewUtils-c83c03a4.js';
10
+ import './mapViewUtils-4618ddb8.js';
11
11
  import './interfaces-586e863c.js';
12
12
  import './solution-resource-0d0eb597.js';
13
13
  import './index-a1e91462.js';
@@ -43,7 +43,7 @@ const LayoutManager = class {
43
43
  * Renders the component.
44
44
  */
45
45
  render() {
46
- return (h(Host, { key: 'b8c4efb8e0990e7590411a467125edc54f1c9039' }, h("div", { key: 'ac235066e5891e3dd06c55432dd30366e14d702b', class: "display-flex" }, h("div", { key: 'aa743b87f77d2ee066b7594493ca64a0d930fc35', class: "display-flex action-center" }, h("calcite-icon", { key: 'f0b001707fe2b3c6bfb8077ce9f888c7e82fd253', class: "icon icon-color", icon: "information", id: "app-information-icon", scale: "s" }), h("calcite-popover", { key: '010acee7b5301ce85ddb892683efe6635612a64c', closable: true, label: "", referenceElement: "app-information-icon" }, h("span", { key: 'bc2d7c2b4b2b15ef19ea82ed845282c9d0c7e81b', class: "tooltip-message" }, this._translations.appInfo))), h("div", { key: '429386c5b13d349d6a28c5756bc1f0d261259c0e', class: "header-text" }, this._translations.layout), this._getAction("grid-background", ELayoutMode.GRID, this._translations.grid), this._getAction("vertical-background", ELayoutMode.VERTICAL, this._translations.vertical), this._getAction("horizontal-background", ELayoutMode.HORIZONTAL, this._translations.horizontal))));
46
+ return (h(Host, { key: '3e5a7de439b797078a7d58aed615f49c1139ac6f' }, h("div", { key: 'bb4a32b540600d0c46e1cdf2eb6b37a9242f70ee', class: "display-flex" }, h("div", { key: '560014821ef89ac3c0ad916257cf77efea54c752', class: "display-flex action-center" }, h("calcite-icon", { key: 'f8db949f64ddfaa893380b91de757044dc5a127a', class: "icon icon-color", icon: "information", id: "app-information-icon", scale: "s" }), h("calcite-popover", { key: '32d453ff1767573cf8fb0c1c33243ec39a3a82e1', closable: true, label: "", referenceElement: "app-information-icon" }, h("span", { key: '056dde09c448eb2b1e4f3c86b9eef3e836b6bce1', class: "tooltip-message" }, this._translations.appInfo))), h("div", { key: '82ac72ab969f1292f83762d536e10aa4ece255e8', class: "header-text" }, this._translations.layout), this._getAction("grid-background", ELayoutMode.GRID, this._translations.grid), this._getAction("vertical-background", ELayoutMode.VERTICAL, this._translations.vertical), this._getAction("horizontal-background", ELayoutMode.HORIZONTAL, this._translations.horizontal))));
47
47
  }
48
48
  //--------------------------------------------------------------------------
49
49
  //
@@ -48,7 +48,7 @@ const ListFlowItem = class {
48
48
  //
49
49
  //--------------------------------------------------------------------------
50
50
  render() {
51
- return (h(Host, { key: 'b6d40c70e611fdba0e57f85ac707cc852b5a64f1' }, h("slot", { key: '0892b0046607b71954bf4a48496eff72dedf406a' })));
51
+ return (h(Host, { key: '294c2df1aa37bf2276716e93953fb9670d08ed2d' }, h("slot", { key: 'b57b34de225e39fda047027286f8eb8367f335df' })));
52
52
  }
53
53
  get el() { return getElement(this); }
54
54
  };