@esri/solutions-components 0.7.23 → 0.7.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (438) hide show
  1. package/dist/assets/t9n/crowdsource-manager/resources.json +1 -3
  2. package/dist/assets/t9n/crowdsource-manager/resources_en.json +1 -3
  3. package/dist/assets/t9n/crowdsource-reporter/resources.json +18 -1
  4. package/dist/assets/t9n/crowdsource-reporter/resources_en.json +18 -1
  5. package/dist/assets/t9n/delete-button/resources.json +8 -0
  6. package/dist/assets/t9n/delete-button/resources_en.json +8 -0
  7. package/dist/assets/t9n/feature-list/resources.json +4 -0
  8. package/dist/assets/t9n/feature-list/resources_en.json +4 -0
  9. package/dist/assets/t9n/info-card/resources.json +1 -1
  10. package/dist/assets/t9n/info-card/resources_en.json +1 -1
  11. package/dist/assets/t9n/layer-list/resources.json +4 -0
  12. package/dist/assets/t9n/layer-list/resources_en.json +4 -0
  13. package/dist/assets/t9n/layer-table/resources.json +0 -9
  14. package/dist/assets/t9n/layer-table/resources_en.json +0 -9
  15. package/dist/cjs/basemap-gallery_7.cjs.entry.js +7 -8
  16. package/dist/cjs/buffer-tools_3.cjs.entry.js +3 -4
  17. package/dist/cjs/calcite-action-bar.cjs.entry.js +255 -0
  18. package/dist/cjs/{calcite-alert_3.cjs.entry.js → calcite-alert_4.cjs.entry.js} +187 -115
  19. package/dist/cjs/calcite-combobox_6.cjs.entry.js +1 -1
  20. package/dist/cjs/{calcite-action-bar_3.cjs.entry.js → calcite-filter_5.cjs.entry.js} +333 -172
  21. package/dist/cjs/calcite-flow_4.cjs.entry.js +657 -0
  22. package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +22 -11
  23. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +1 -1
  24. package/dist/cjs/card-manager_3.cjs.entry.js +50 -93
  25. package/dist/cjs/crowdsource-manager.cjs.entry.js +17 -3
  26. package/dist/cjs/crowdsource-reporter.cjs.entry.js +156 -35
  27. package/dist/cjs/{downloadUtils-401356b5.js → downloadUtils-83c6d3c3.js} +6 -6
  28. package/dist/cjs/{index.es-a9a4ff08.js → index.es-bd1a93b2.js} +2 -2
  29. package/dist/cjs/instant-apps-export.cjs.entry.js +1 -1
  30. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +41 -1
  31. package/dist/cjs/layout-manager.cjs.entry.js +1 -1
  32. package/dist/cjs/loader.cjs.js +1 -1
  33. package/dist/cjs/{locale-9db09b63.js → locale-a476e15d.js} +40 -1
  34. package/dist/cjs/map-select-tools_3.cjs.entry.js +4 -5
  35. package/dist/cjs/popupUtils-a73902a6.js +99 -0
  36. package/dist/cjs/public-notification.cjs.entry.js +3 -4
  37. package/dist/cjs/solution-configuration.cjs.entry.js +1 -1
  38. package/dist/cjs/solution-contents_3.cjs.entry.js +15 -2
  39. package/dist/cjs/solutions-components.cjs.js +1 -1
  40. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  41. package/dist/collection/collection-manifest.json +3 -0
  42. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +23 -2
  43. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +51 -0
  44. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +302 -35
  45. package/dist/{solutions-components/p-48ff9cea.js → collection/components/delete-button/delete-button.css} +19 -21
  46. package/dist/collection/components/delete-button/delete-button.js +299 -0
  47. package/dist/{cjs/loadModules-46d14e81.js → collection/components/delete-button/test/delete-button.e2e.js} +9 -10
  48. package/dist/{esm/loadModules-cea493da.js → collection/components/delete-button/test/delete-button.spec.js} +17 -8
  49. package/dist/collection/components/feature-list/feature-list.css +38 -0
  50. package/dist/collection/components/feature-list/feature-list.js +303 -0
  51. package/dist/collection/components/info-card/info-card.js +65 -21
  52. package/dist/collection/components/layer-list/layer-list.css +28 -0
  53. package/dist/collection/components/layer-list/layer-list.js +288 -0
  54. package/dist/collection/components/layer-table/layer-table.js +63 -116
  55. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +31 -1
  56. package/dist/collection/demos/crowdsource-reporter.html +61 -38
  57. package/dist/collection/demos/feature-list.html +43 -0
  58. package/dist/collection/demos/layer-list.html +43 -0
  59. package/dist/collection/utils/interfaces.ts +4 -0
  60. package/dist/components/calcite-flow-item.js +1 -261
  61. package/dist/components/calcite-flow.js +1 -165
  62. package/dist/components/card-manager2.js +38 -26
  63. package/dist/components/crowdsource-manager.js +110 -89
  64. package/dist/components/crowdsource-reporter.js +346 -39
  65. package/dist/components/delete-button.d.ts +11 -0
  66. package/dist/components/delete-button.js +11 -0
  67. package/dist/components/delete-button2.js +209 -0
  68. package/dist/components/feature-list.d.ts +11 -0
  69. package/dist/components/feature-list.js +11 -0
  70. package/dist/components/feature-list2.js +281 -0
  71. package/dist/{esm/calcite-flow-item.entry.js → components/flow-item.js} +94 -19
  72. package/dist/{esm/calcite-flow.entry.js → components/flow.js} +33 -10
  73. package/dist/components/info-card2.js +87 -136
  74. package/dist/components/instant-apps-export.js +1 -1
  75. package/dist/components/instant-apps-filter-list2.js +22 -11
  76. package/dist/components/instant-apps-language-translator2.js +48 -4
  77. package/dist/components/layer-list.d.ts +11 -0
  78. package/dist/components/layer-list.js +11 -0
  79. package/dist/components/layer-list2.js +268 -0
  80. package/dist/components/layer-table2.js +126 -165
  81. package/dist/components/locale.js +19 -2
  82. package/dist/components/popupUtils.js +97 -0
  83. package/dist/components/queryUtils.js +1 -1
  84. package/dist/components/solution-spatial-ref2.js +17 -2
  85. package/dist/esm/{ExpandToggle-540998b5.js → ExpandToggle-96688cda.js} +1 -1
  86. package/dist/esm/{ar-35006b74.js → ar-29711364.js} +8 -8
  87. package/dist/esm/basemap-gallery_7.entry.js +1 -2
  88. package/dist/esm/{bg-c289978f.js → bg-c0f5033b.js} +8 -8
  89. package/dist/esm/{bs-6f9fb44a.js → bs-60479ce5.js} +8 -8
  90. package/dist/esm/buffer-tools_3.entry.js +3 -4
  91. package/dist/esm/{ca-7962c8b7.js → ca-4317b986.js} +8 -8
  92. package/dist/esm/calcite-accordion-item.entry.js +1 -1
  93. package/dist/esm/calcite-action-bar.entry.js +251 -0
  94. package/dist/esm/calcite-action-group.entry.js +3 -3
  95. package/dist/esm/calcite-action-menu_2.entry.js +5 -5
  96. package/dist/esm/calcite-action-pad_2.entry.js +4 -4
  97. package/dist/esm/calcite-action_2.entry.js +3 -3
  98. package/dist/esm/{calcite-alert_3.entry.js → calcite-alert_4.entry.js} +189 -118
  99. package/dist/esm/calcite-avatar.entry.js +1 -1
  100. package/dist/esm/calcite-block-section.entry.js +3 -3
  101. package/dist/esm/calcite-block_2.entry.js +5 -5
  102. package/dist/esm/calcite-button.entry.js +5 -5
  103. package/dist/esm/calcite-card.entry.js +3 -3
  104. package/dist/esm/calcite-checkbox.entry.js +3 -3
  105. package/dist/esm/calcite-chip-group.entry.js +1 -1
  106. package/dist/esm/calcite-chip.entry.js +3 -3
  107. package/dist/esm/calcite-color-picker-hex-input_2.entry.js +1 -1
  108. package/dist/esm/calcite-color-picker.entry.js +3 -3
  109. package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
  110. package/dist/esm/calcite-combobox_6.entry.js +10 -10
  111. package/dist/esm/calcite-date-picker-day_3.entry.js +3 -3
  112. package/dist/esm/calcite-fab.entry.js +1 -1
  113. package/dist/esm/{calcite-action-bar_3.entry.js → calcite-filter_5.entry.js} +363 -204
  114. package/dist/esm/calcite-flow_4.entry.js +650 -0
  115. package/dist/esm/calcite-graph_2.entry.js +4 -4
  116. package/dist/esm/calcite-icon.entry.js +1 -1
  117. package/dist/esm/calcite-inline-editable.entry.js +4 -4
  118. package/dist/esm/calcite-input-date-picker_3.entry.js +31 -20
  119. package/dist/esm/calcite-input-number.entry.js +5 -5
  120. package/dist/esm/calcite-input-text.entry.js +5 -5
  121. package/dist/esm/{calcite-input-time-picker-63439178.js → calcite-input-time-picker-2e1b2157.js} +55 -55
  122. package/dist/esm/calcite-input-time-picker.entry.js +8 -8
  123. package/dist/esm/calcite-input-time-zone.entry.js +5 -5
  124. package/dist/esm/calcite-input_2.entry.js +5 -5
  125. package/dist/esm/calcite-label.entry.js +2 -2
  126. package/dist/esm/calcite-link.entry.js +1 -1
  127. package/dist/esm/calcite-menu-item.entry.js +3 -3
  128. package/dist/esm/calcite-menu.entry.js +3 -3
  129. package/dist/esm/calcite-meter.entry.js +3 -3
  130. package/dist/esm/calcite-modal.entry.js +4 -4
  131. package/dist/esm/calcite-navigation.entry.js +1 -1
  132. package/dist/esm/calcite-notice.entry.js +3 -3
  133. package/dist/esm/calcite-option_2.entry.js +3 -3
  134. package/dist/esm/calcite-pagination.entry.js +3 -3
  135. package/dist/esm/calcite-panel_2.entry.js +3 -3
  136. package/dist/esm/calcite-pick-list-group.entry.js +1 -1
  137. package/dist/esm/calcite-pick-list-item.entry.js +3 -3
  138. package/dist/esm/calcite-pick-list.entry.js +2 -2
  139. package/dist/esm/calcite-radio-button.entry.js +3 -3
  140. package/dist/esm/calcite-rating.entry.js +5 -5
  141. package/dist/esm/calcite-scrim.entry.js +3 -3
  142. package/dist/esm/calcite-segmented-control_2.entry.js +3 -3
  143. package/dist/esm/calcite-sheet.entry.js +2 -2
  144. package/dist/esm/calcite-shell-center-row.entry.js +1 -1
  145. package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
  146. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  147. package/dist/esm/calcite-stepper-item.entry.js +3 -3
  148. package/dist/esm/calcite-stepper.entry.js +3 -3
  149. package/dist/esm/calcite-switch.entry.js +3 -3
  150. package/dist/esm/calcite-table-cell_2.entry.js +3 -3
  151. package/dist/esm/calcite-table-row.entry.js +1 -1
  152. package/dist/esm/calcite-table.entry.js +3 -3
  153. package/dist/esm/calcite-text-area.entry.js +5 -5
  154. package/dist/esm/calcite-tile.entry.js +1 -1
  155. package/dist/esm/calcite-time-picker.entry.js +4 -4
  156. package/dist/esm/calcite-tip-manager.entry.js +3 -3
  157. package/dist/esm/calcite-tip.entry.js +3 -3
  158. package/dist/esm/calcite-tooltip.entry.js +2 -2
  159. package/dist/esm/calcite-tree_2.entry.js +1 -1
  160. package/dist/esm/card-manager_3.entry.js +50 -93
  161. package/dist/esm/{common-2cf42ac2.js → common-d04ccc0d.js} +1 -1
  162. package/dist/esm/crowdsource-manager.entry.js +18 -4
  163. package/dist/esm/crowdsource-reporter.entry.js +156 -35
  164. package/dist/esm/{cs-6d13069b.js → cs-da404a04.js} +8 -8
  165. package/dist/esm/{da-14097e6c.js → da-1afac3fa.js} +8 -8
  166. package/dist/esm/{date-1743b515.js → date-8b4a8f33.js} +1 -1
  167. package/dist/esm/{de-dff2571b.js → de-98f3129e.js} +8 -8
  168. package/dist/esm/{de-at-b733db65.js → de-at-ed4817af.js} +8 -8
  169. package/dist/esm/{de-ch-5ad0cb74.js → de-ch-556c82c8.js} +8 -8
  170. package/dist/esm/{dom-492b1b24.js → dom-8f926f33.js} +1 -1
  171. package/dist/esm/{downloadUtils-13579d93.js → downloadUtils-a301c193.js} +3 -3
  172. package/dist/esm/{el-688e05ba.js → el-394dfd74.js} +8 -8
  173. package/dist/esm/{en-au-357e70d8.js → en-au-6dde1e7e.js} +8 -8
  174. package/dist/esm/{en-ca-1e0b6b47.js → en-ca-420be416.js} +8 -8
  175. package/dist/esm/{en-gb-861a17f2.js → en-gb-0a7caa85.js} +8 -8
  176. package/dist/esm/{es-291ab4bd.js → es-2e1beb99.js} +8 -8
  177. package/dist/esm/{es-mx-0a7283a7.js → es-mx-ef132a24.js} +8 -8
  178. package/dist/esm/{et-addd2617.js → et-83d139c1.js} +8 -8
  179. package/dist/esm/{fi-469884d5.js → fi-8b81ed94.js} +8 -8
  180. package/dist/esm/{floating-ui-03eb4c82.js → floating-ui-c397f653.js} +1 -1
  181. package/dist/esm/{focusTrapComponent-2e7de651.js → focusTrapComponent-14368766.js} +1 -1
  182. package/dist/esm/{form-9bccaf85.js → form-133b00c7.js} +1 -1
  183. package/dist/esm/{fr-f5cb34ca.js → fr-c47c114a.js} +8 -8
  184. package/dist/esm/{fr-ch-115d3fda.js → fr-ch-97635343.js} +8 -8
  185. package/dist/esm/{he-6e5f5c56.js → he-ed2a12b9.js} +8 -8
  186. package/dist/esm/{hi-503240c2.js → hi-a05727ac.js} +8 -8
  187. package/dist/esm/{hr-cc08d6fc.js → hr-d01671ca.js} +8 -8
  188. package/dist/esm/{hu-69ac240d.js → hu-16506ca7.js} +8 -8
  189. package/dist/esm/{id-99547746.js → id-e9367e87.js} +8 -8
  190. package/dist/esm/{index.es-04d2e63e.js → index.es-37a9907e.js} +4 -4
  191. package/dist/esm/instant-apps-export.entry.js +1 -1
  192. package/dist/esm/instant-apps-language-translator.entry.js +42 -2
  193. package/dist/esm/{interfaces-341e3ab3.js → interfaces-586e863c.js} +1 -1
  194. package/dist/esm/{it-dbb6ea7d.js → it-14246b4a.js} +8 -8
  195. package/dist/esm/{it-ch-a83801f6.js → it-ch-a877e111.js} +8 -8
  196. package/dist/esm/{ja-79dbb02f.js → ja-67a0cfa0.js} +8 -8
  197. package/dist/esm/{ko-31ebe067.js → ko-35b0b83a.js} +8 -8
  198. package/dist/esm/{label-14301f4d.js → label-cd393c81.js} +1 -1
  199. package/dist/esm/layout-manager.entry.js +2 -2
  200. package/dist/esm/loader.js +1 -1
  201. package/dist/esm/{locale-8cfa3086.js → locale-6107ef11.js} +1 -1
  202. package/dist/esm/{locale-834c52c6.js → locale-731e75a8.js} +39 -2
  203. package/dist/esm/{lt-94d3f4b8.js → lt-71014faf.js} +8 -8
  204. package/dist/esm/{lv-d770ed0d.js → lv-def9df38.js} +8 -8
  205. package/dist/esm/map-select-tools_3.entry.js +4 -5
  206. package/dist/esm/{mapViewUtils-8fe70944.js → mapViewUtils-6daedef8.js} +2 -2
  207. package/dist/esm/{mk-1046d60a.js → mk-bfeac49e.js} +8 -8
  208. package/dist/esm/{nb-dad0b4b9.js → nb-0723b461.js} +8 -8
  209. package/dist/esm/{nl-a968c4b7.js → nl-89663165.js} +8 -8
  210. package/dist/esm/{pl-a0037bd3.js → pl-0157c37c.js} +8 -8
  211. package/dist/esm/popupUtils-a593bd78.js +97 -0
  212. package/dist/esm/{pt-e3d9370c.js → pt-80d1520c.js} +8 -8
  213. package/dist/esm/{pt-br-44c11565.js → pt-br-ee5003c7.js} +8 -8
  214. package/dist/esm/public-notification.entry.js +4 -5
  215. package/dist/esm/{ro-290e025d.js → ro-eff987f8.js} +8 -8
  216. package/dist/esm/{ru-38ff91f1.js → ru-62839398.js} +8 -8
  217. package/dist/esm/{shared-list-render-89e4bcff.js → shared-list-render-a2ab63e8.js} +1 -1
  218. package/dist/esm/{sk-9622a24b.js → sk-c2f4bd58.js} +8 -8
  219. package/dist/esm/{sl-6bc83a24.js → sl-328ff1db.js} +8 -8
  220. package/dist/esm/solution-configuration.entry.js +3 -3
  221. package/dist/esm/solution-contents_3.entry.js +18 -5
  222. package/dist/esm/{solution-store-b08696f7.js → solution-store-19f7825b.js} +1 -1
  223. package/dist/esm/solutions-components.js +1 -1
  224. package/dist/esm/spatial-ref.entry.js +3 -3
  225. package/dist/esm/{sr-35e575d8.js → sr-75a3ad46.js} +8 -8
  226. package/dist/esm/{sv-d80fa359.js → sv-10da5ef2.js} +8 -8
  227. package/dist/esm/{t9n-3c5e55ab.js → t9n-f16911e7.js} +1 -1
  228. package/dist/esm/{th-23e71d40.js → th-aa112042.js} +8 -8
  229. package/dist/esm/{time-d956a7c8.js → time-855b3426.js} +1 -1
  230. package/dist/esm/{tr-961fd2f3.js → tr-5925a2f5.js} +8 -8
  231. package/dist/esm/{uk-4e8a425a.js → uk-c40eeb9f.js} +8 -8
  232. package/dist/esm/{utils-56206ec2.js → utils-93fd55c4.js} +2 -2
  233. package/dist/esm/{utils-8287806a.js → utils-c3509713.js} +1 -1
  234. package/dist/esm/{vi-ad983882.js → vi-27922b93.js} +8 -8
  235. package/dist/esm/{zh-cn-5b6fd039.js → zh-cn-38a2e1d3.js} +8 -8
  236. package/dist/esm/{zh-hk-7439b11d.js → zh-hk-e0217bd1.js} +8 -8
  237. package/dist/esm/{zh-tw-cf384663.js → zh-tw-31f0447c.js} +8 -8
  238. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +0 -1
  239. package/dist/solutions-components/demos/crowdsource-reporter.html +61 -38
  240. package/dist/solutions-components/demos/feature-list.html +43 -0
  241. package/dist/solutions-components/demos/layer-list.html +43 -0
  242. package/dist/solutions-components/{p-e7951fcb.js → p-0392679d.js} +1 -1
  243. package/dist/solutions-components/{p-c68a6d4f.js → p-0587972d.js} +1 -1
  244. package/dist/solutions-components/{p-3022da2d.js → p-05f702ae.js} +1 -1
  245. package/dist/solutions-components/{p-4da72ee8.entry.js → p-068f5a8c.entry.js} +1 -1
  246. package/dist/solutions-components/{p-2ddd9cf8.entry.js → p-0b4f4b0e.entry.js} +1 -1
  247. package/dist/solutions-components/p-0b619197.entry.js +17 -0
  248. package/dist/solutions-components/{p-4f71a1a0.js → p-0d774e41.js} +1 -1
  249. package/dist/solutions-components/{p-0e723ffc.js → p-0f6b58b2.js} +1 -1
  250. package/dist/solutions-components/{p-ec8f042e.entry.js → p-10410f92.entry.js} +1 -1
  251. package/dist/solutions-components/{p-6a4b1e48.entry.js → p-10f2d6b0.entry.js} +2 -2
  252. package/dist/solutions-components/{p-5d2ccc75.entry.js → p-13be5cf5.entry.js} +1 -1
  253. package/dist/solutions-components/{p-58054bc2.js → p-14548a83.js} +1 -1
  254. package/dist/solutions-components/{p-026b1345.js → p-17668cb7.js} +3 -3
  255. package/dist/solutions-components/{p-5e530f8c.js → p-1c75bb3d.js} +1 -1
  256. package/dist/solutions-components/p-1f7046e9.entry.js +6 -0
  257. package/dist/solutions-components/{p-121a5dac.entry.js → p-234a8293.entry.js} +1 -1
  258. package/dist/solutions-components/{p-355249fc.js → p-2447b332.js} +1 -1
  259. package/dist/solutions-components/{p-48828002.entry.js → p-24c699b0.entry.js} +1 -1
  260. package/dist/solutions-components/{p-9bcbc1cc.js → p-2592e0dd.js} +1 -1
  261. package/dist/solutions-components/{p-48a5ae32.entry.js → p-2656c6e4.entry.js} +1 -1
  262. package/dist/solutions-components/p-284cc5cd.entry.js +6 -0
  263. package/dist/solutions-components/{p-b78a1c21.js → p-28b33708.js} +1 -1
  264. package/dist/solutions-components/p-29f661f5.entry.js +11 -0
  265. package/dist/solutions-components/{p-fa6ef970.js → p-2d68a6fd.js} +1 -1
  266. package/dist/solutions-components/{p-6437fee1.entry.js → p-2e2d01de.entry.js} +1 -1
  267. package/dist/solutions-components/{p-5e9b05c0.entry.js → p-2f425700.entry.js} +1 -1
  268. package/dist/solutions-components/{p-6c3cdd09.entry.js → p-364486d1.entry.js} +1 -1
  269. package/dist/solutions-components/{p-85a89f1d.entry.js → p-368cbb2c.entry.js} +1 -1
  270. package/dist/solutions-components/{p-52ad6ff9.entry.js → p-36f247db.entry.js} +1 -1
  271. package/dist/solutions-components/{p-080249de.js → p-38544b17.js} +1 -1
  272. package/dist/solutions-components/{p-a0be72b6.entry.js → p-3a73ee38.entry.js} +1 -1
  273. package/dist/solutions-components/{p-532b7378.entry.js → p-3ad4426b.entry.js} +1 -1
  274. package/dist/solutions-components/{p-5752785e.entry.js → p-3c10901a.entry.js} +1 -1
  275. package/dist/solutions-components/{p-6e406a7b.js → p-3c7d0eb9.js} +1 -1
  276. package/dist/solutions-components/{p-bf23173c.js → p-411b73a7.js} +1 -1
  277. package/dist/solutions-components/{p-76d60881.entry.js → p-429e1284.entry.js} +1 -1
  278. package/dist/solutions-components/{p-f3d277c2.entry.js → p-42f0e1fa.entry.js} +1 -1
  279. package/dist/solutions-components/{p-1fc220c7.js → p-4416d288.js} +1 -1
  280. package/dist/solutions-components/{p-663a433a.entry.js → p-451b16b3.entry.js} +2 -2
  281. package/dist/solutions-components/{p-b5d1b979.js → p-4566438a.js} +3 -3
  282. package/dist/solutions-components/{p-7a06dcdf.js → p-4647b2a6.js} +1 -1
  283. package/dist/solutions-components/{p-75fbe76c.js → p-480d0789.js} +1 -1
  284. package/dist/solutions-components/p-49b02dda.entry.js +6 -0
  285. package/dist/solutions-components/{p-722ae773.js → p-49fb1bfa.js} +2 -2
  286. package/dist/solutions-components/{p-17183100.js → p-4abf1c34.js} +1 -1
  287. package/dist/solutions-components/p-4ae36626.js +6 -0
  288. package/dist/solutions-components/{p-5c3fd315.entry.js → p-4bff69aa.entry.js} +1 -1
  289. package/dist/solutions-components/{p-f8f18a94.entry.js → p-4ccdac24.entry.js} +1 -1
  290. package/dist/solutions-components/{p-a3a64af2.entry.js → p-4d402bcf.entry.js} +1 -1
  291. package/dist/solutions-components/{p-7e82a730.js → p-4d8fc031.js} +1 -1
  292. package/dist/solutions-components/{p-1c720ed5.entry.js → p-4d99cb49.entry.js} +1 -1
  293. package/dist/solutions-components/p-4fbadb84.entry.js +6 -0
  294. package/dist/solutions-components/{p-e0276e26.entry.js → p-5268d845.entry.js} +2 -2
  295. package/dist/solutions-components/p-5af99fd8.entry.js +6 -0
  296. package/dist/solutions-components/{p-f3f09834.js → p-5e12026e.js} +1 -1
  297. package/dist/solutions-components/{p-ffee4847.entry.js → p-5fe99315.entry.js} +1 -1
  298. package/dist/solutions-components/{p-d6208a47.js → p-6105d57c.js} +1 -1
  299. package/dist/solutions-components/{p-f3dfb34f.entry.js → p-613315a7.entry.js} +1 -1
  300. package/dist/solutions-components/{p-0d97c2c5.entry.js → p-62eba559.entry.js} +1 -1
  301. package/dist/solutions-components/{p-40235cb7.entry.js → p-63fa7791.entry.js} +1 -1
  302. package/dist/solutions-components/{p-cfccae7c.js → p-6604ac77.js} +1 -1
  303. package/dist/solutions-components/{p-9b1766ef.entry.js → p-674be06c.entry.js} +1 -1
  304. package/dist/solutions-components/{p-a4aef40c.entry.js → p-67ff8e9a.entry.js} +1 -1
  305. package/dist/solutions-components/{p-4647c429.js → p-68e0adcf.js} +1 -1
  306. package/dist/solutions-components/{p-fc8338c6.entry.js → p-68e84199.entry.js} +1 -1
  307. package/dist/solutions-components/{p-aa3092cf.js → p-69763854.js} +1 -1
  308. package/dist/solutions-components/{p-e31754c8.js → p-6ae45648.js} +1 -1
  309. package/dist/solutions-components/{p-98013072.entry.js → p-6cce7009.entry.js} +1 -1
  310. package/dist/solutions-components/{p-34cacf32.js → p-6d511162.js} +1 -1
  311. package/dist/solutions-components/{p-5953ebe8.entry.js → p-7116f96d.entry.js} +1 -1
  312. package/dist/solutions-components/{p-337acb3c.js → p-727596e6.js} +1 -1
  313. package/dist/solutions-components/{p-b170916e.js → p-73100e79.js} +2 -2
  314. package/dist/solutions-components/{p-23662977.entry.js → p-734bc1b0.entry.js} +2 -2
  315. package/dist/solutions-components/{p-f3626331.entry.js → p-752ece4a.entry.js} +2 -2
  316. package/dist/solutions-components/{p-ecdd587c.entry.js → p-75e2a322.entry.js} +3 -3
  317. package/dist/solutions-components/{p-ca33fa09.entry.js → p-787203af.entry.js} +1 -1
  318. package/dist/solutions-components/{p-a9fc934d.js → p-79110824.js} +1 -1
  319. package/dist/solutions-components/{p-b82179c0.js → p-793cad54.js} +1 -1
  320. package/dist/solutions-components/{p-0250dec5.js → p-797aa505.js} +1 -1
  321. package/dist/solutions-components/{p-166d5bcc.entry.js → p-7c13406e.entry.js} +1 -1
  322. package/dist/solutions-components/{p-16df3a9e.entry.js → p-7dbccc10.entry.js} +1 -1
  323. package/dist/solutions-components/{p-133de052.entry.js → p-7ebd34df.entry.js} +1 -1
  324. package/dist/solutions-components/{p-8934e858.entry.js → p-809b7e47.entry.js} +2 -2
  325. package/dist/solutions-components/p-8308f64c.entry.js +6 -0
  326. package/dist/solutions-components/{p-ca97465b.js → p-83fd31d5.js} +1 -1
  327. package/dist/solutions-components/{p-2e1f7c0e.entry.js → p-84378c8d.entry.js} +2 -2
  328. package/dist/solutions-components/p-864b1d72.entry.js +6 -0
  329. package/dist/solutions-components/{p-d8b3d156.entry.js → p-891682da.entry.js} +1 -1
  330. package/dist/solutions-components/{p-50ea26de.entry.js → p-8b47b607.entry.js} +1 -1
  331. package/dist/solutions-components/{p-f4e91113.js → p-8d49a084.js} +1 -1
  332. package/dist/solutions-components/{p-f84848b0.entry.js → p-8fabb8a4.entry.js} +1 -1
  333. package/dist/solutions-components/{p-29602eff.entry.js → p-96c2ed64.entry.js} +1 -1
  334. package/dist/solutions-components/{p-b42bde59.entry.js → p-978d936a.entry.js} +1 -1
  335. package/dist/solutions-components/{p-79ba73cb.js → p-981e9549.js} +1 -1
  336. package/dist/solutions-components/{p-02714171.entry.js → p-98308b13.entry.js} +2 -2
  337. package/dist/solutions-components/p-99c5701d.entry.js +6 -0
  338. package/dist/solutions-components/{p-fe68d502.js → p-9cbfd8cd.js} +1 -1
  339. package/dist/solutions-components/{p-8f8fe5d0.entry.js → p-a09c8edf.entry.js} +1 -1
  340. package/dist/solutions-components/{p-ac6a3e13.js → p-a5272d7e.js} +1 -1
  341. package/dist/solutions-components/p-a5c5b24d.js +6 -0
  342. package/dist/solutions-components/{p-5d9ad152.entry.js → p-a5e93c7e.entry.js} +1 -1
  343. package/dist/solutions-components/{p-c9f87acb.js → p-a603e673.js} +2 -2
  344. package/dist/solutions-components/{p-07b31dc9.js → p-a6bb4148.js} +1 -1
  345. package/dist/solutions-components/{p-11b59592.entry.js → p-a8c9ac0b.entry.js} +2 -2
  346. package/dist/solutions-components/{p-41f7bc94.entry.js → p-a9bd945b.entry.js} +1 -1
  347. package/dist/solutions-components/{p-634835fe.js → p-abdd289e.js} +1 -1
  348. package/dist/solutions-components/{p-43e67b3c.entry.js → p-aca29f67.entry.js} +2 -2
  349. package/dist/solutions-components/{p-8118146c.entry.js → p-ad96cd8b.entry.js} +1 -1
  350. package/dist/solutions-components/{p-8772a573.js → p-af1bb992.js} +1 -1
  351. package/dist/solutions-components/{p-36eb8399.js → p-b1b768f7.js} +4 -4
  352. package/dist/solutions-components/{p-dd37c504.js → p-b29677ca.js} +1 -1
  353. package/dist/solutions-components/{p-82b4ab94.js → p-b2c5e62b.js} +1 -1
  354. package/dist/solutions-components/{p-db436a77.entry.js → p-b326b592.entry.js} +1 -1
  355. package/dist/solutions-components/p-b37ec1f3.entry.js +6 -0
  356. package/dist/solutions-components/{p-a4772574.js → p-b7285bd5.js} +1 -1
  357. package/dist/solutions-components/{p-8b5b4662.js → p-b8959537.js} +1 -1
  358. package/dist/solutions-components/{p-c21f578f.js → p-baf4cb37.js} +1 -1
  359. package/dist/solutions-components/{p-799c3f19.js → p-bfebff0e.js} +1 -1
  360. package/dist/solutions-components/p-c0f97ed2.entry.js +6 -0
  361. package/dist/solutions-components/{p-4af32c75.js → p-c1cf3ebc.js} +1 -1
  362. package/dist/solutions-components/{p-cfb83693.js → p-c3190f85.js} +1 -1
  363. package/dist/solutions-components/{p-0511c98c.js → p-c4ebb5d1.js} +1 -1
  364. package/dist/solutions-components/p-c56fd16c.entry.js +11 -0
  365. package/dist/solutions-components/{p-2d1b8cfa.js → p-c6b9a129.js} +1 -1
  366. package/dist/solutions-components/{p-1cb4c542.entry.js → p-c7e7da9a.entry.js} +1 -1
  367. package/dist/solutions-components/p-cb1d29d4.entry.js +17 -0
  368. package/dist/solutions-components/{p-034d43fb.js → p-cdee3846.js} +1 -1
  369. package/dist/solutions-components/{p-c5cb8804.js → p-cfb3d66a.js} +1 -1
  370. package/dist/solutions-components/{p-ebbeec9f.entry.js → p-d2d7d6b4.entry.js} +2 -2
  371. package/dist/solutions-components/{p-dd071507.js → p-d44e2fd7.js} +1 -1
  372. package/dist/solutions-components/{p-414240b2.js → p-d9a59fcc.js} +1 -1
  373. package/dist/solutions-components/p-db868283.js +21 -0
  374. package/dist/solutions-components/{p-fdb1ace8.entry.js → p-dded59a7.entry.js} +2 -2
  375. package/dist/solutions-components/{p-ede84883.js → p-de281b08.js} +2 -2
  376. package/dist/solutions-components/{p-a11fca14.js → p-df118036.js} +1 -1
  377. package/dist/solutions-components/p-e274f3b0.entry.js +23 -0
  378. package/dist/solutions-components/{p-4613e205.js → p-e6d4bdce.js} +1 -1
  379. package/dist/solutions-components/{p-3c5d3b4a.js → p-e6dfc80f.js} +1 -1
  380. package/dist/solutions-components/{p-92ea9e81.js → p-e834d132.js} +1 -1
  381. package/dist/solutions-components/p-e88a64be.entry.js +6 -0
  382. package/dist/solutions-components/p-e902ba19.js +36 -0
  383. package/dist/solutions-components/{p-f9eb2f2d.js → p-ee4e5212.js} +1 -1
  384. package/dist/solutions-components/{p-efce2e85.js → p-ef05dea5.js} +1 -1
  385. package/dist/solutions-components/{p-5fd1eb64.js → p-f0d68a3f.js} +2 -2
  386. package/dist/solutions-components/p-f17941f1.entry.js +6 -0
  387. package/dist/solutions-components/{p-9e3b8632.entry.js → p-f1e6ce96.entry.js} +1 -1
  388. package/dist/solutions-components/p-fe295e9d.entry.js +6 -0
  389. package/dist/solutions-components/{p-50764143.entry.js → p-ff460d05.entry.js} +3 -3
  390. package/dist/solutions-components/{p-d1ca57f3.entry.js → p-ff7c9bc3.entry.js} +1 -1
  391. package/dist/solutions-components/{p-0b47b407.js → p-ffa2c430.js} +1 -1
  392. package/dist/solutions-components/{p-89520d31.entry.js → p-ffbed9b2.entry.js} +1 -1
  393. package/dist/solutions-components/solutions-components.esm.js +1 -1
  394. package/dist/solutions-components/utils/interfaces.ts +4 -0
  395. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
  396. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +141 -7
  397. package/dist/types/components/delete-button/delete-button.d.ts +120 -0
  398. package/dist/types/components/feature-list/feature-list.d.ts +128 -0
  399. package/dist/types/components/info-card/info-card.d.ts +19 -0
  400. package/dist/types/components/layer-list/layer-list.d.ts +133 -0
  401. package/dist/types/components/layer-table/layer-table.d.ts +12 -40
  402. package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +5 -1
  403. package/dist/types/components.d.ts +281 -7
  404. package/dist/types/preact.d.ts +15 -1
  405. package/dist/types/utils/interfaces.d.ts +2 -0
  406. package/package.json +2 -2
  407. package/dist/cjs/calcite-filter_2.cjs.entry.js +0 -237
  408. package/dist/cjs/calcite-flow-item.cjs.entry.js +0 -197
  409. package/dist/cjs/calcite-flow.cjs.entry.js +0 -153
  410. package/dist/cjs/calcite-handle.cjs.entry.js +0 -184
  411. package/dist/cjs/resources-55ba2752.js +0 -29
  412. package/dist/esm/calcite-filter_2.entry.js +0 -232
  413. package/dist/esm/calcite-handle.entry.js +0 -180
  414. package/dist/esm/resources-221791b0.js +0 -26
  415. package/dist/solutions-components/p-0200864c.entry.js +0 -11
  416. package/dist/solutions-components/p-02fad071.entry.js +0 -6
  417. package/dist/solutions-components/p-04f05bc5.entry.js +0 -6
  418. package/dist/solutions-components/p-1711c535.entry.js +0 -6
  419. package/dist/solutions-components/p-1f88a556.entry.js +0 -6
  420. package/dist/solutions-components/p-24286e8c.entry.js +0 -6
  421. package/dist/solutions-components/p-3cf20613.entry.js +0 -17
  422. package/dist/solutions-components/p-43546966.entry.js +0 -6
  423. package/dist/solutions-components/p-6b943f52.js +0 -21
  424. package/dist/solutions-components/p-79f95735.entry.js +0 -11
  425. package/dist/solutions-components/p-7f333e23.js +0 -11
  426. package/dist/solutions-components/p-897037f0.entry.js +0 -6
  427. package/dist/solutions-components/p-8c7fc78f.entry.js +0 -11
  428. package/dist/solutions-components/p-941ab8c0.js +0 -6
  429. package/dist/solutions-components/p-96974e5f.js +0 -6
  430. package/dist/solutions-components/p-a32b61ee.entry.js +0 -6
  431. package/dist/solutions-components/p-ad9fbb2a.entry.js +0 -6
  432. package/dist/solutions-components/p-bacc9b0d.entry.js +0 -6
  433. package/dist/solutions-components/p-c252997f.entry.js +0 -17
  434. package/dist/solutions-components/p-c5db42ad.entry.js +0 -6
  435. package/dist/solutions-components/p-c634d047.entry.js +0 -27
  436. package/dist/solutions-components/p-e89c5860.entry.js +0 -6
  437. package/dist/solutions-components/p-eb9b003a.entry.js +0 -11
  438. package/dist/solutions-components/p-eff7f407.entry.js +0 -6
@@ -0,0 +1,650 @@
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, h, g as getElement, c as createEvent, H as Host, F as Fragment } from './index-7183ce4a.js';
7
+ import { c as createObserver } from './observers-8ce200f2.js';
8
+ import { c as componentFocusable, s as setUpLoadableComponent, a as setComponentLoaded } from './loadable-c3685e51.js';
9
+ import { a as getElementDir } from './dom-8f926f33.js';
10
+ import { c as connectInteractive, u as updateHostInteraction, d as disconnectInteractive } from './interactive-20bb1dc4.js';
11
+ import { c as connectLocalized, d as disconnectLocalized } from './locale-6107ef11.js';
12
+ import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n-f16911e7.js';
13
+ import { S as SLOTS$1 } from './resources-649a0f91.js';
14
+ import { P as PopupUtils } from './popupUtils-a593bd78.js';
15
+ import { g as getLayerOrTable, b as getFeatureLayerView, h as highlightFeatures, c as getMapLayerHash, d as getAllLayers } from './mapViewUtils-6daedef8.js';
16
+ import { g as getLocaleComponentStrings, f as formatNumber } from './locale-731e75a8.js';
17
+ import './guid-36c6c6a5.js';
18
+ import './resources-cdc36705.js';
19
+ import './browser-b4c16201.js';
20
+ import './key-af303047.js';
21
+ import './interfaces-586e863c.js';
22
+ import './esri-loader-eda07632.js';
23
+ import './_commonjsHelpers-d5f9d613.js';
24
+
25
+ /*!
26
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
27
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
28
+ * v2.0.0
29
+ */
30
+ const CSS$1 = {
31
+ frame: "frame",
32
+ frameAdvancing: "frame--advancing",
33
+ frameRetreating: "frame--retreating",
34
+ };
35
+
36
+ const flowCss = ":host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;align-items:stretch;overflow:hidden;background-color:transparent}:host .frame{position:relative;margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;padding:0px}:host ::slotted(calcite-flow-item),:host ::slotted(calcite-panel){block-size:100%}:host ::slotted(.calcite-match-height:last-child){display:flex;flex:1 1 auto;overflow:hidden}:host .frame--advancing{animation:calcite-frame-advance var(--calcite-animation-timing)}:host .frame--retreating{animation:calcite-frame-retreat var(--calcite-animation-timing)}@keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5;transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5;transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}:host([hidden]){display:none}[hidden]{display:none}";
37
+
38
+ const Flow = class {
39
+ constructor(hostRef) {
40
+ registerInstance(this, hostRef);
41
+ this.itemMutationObserver = createObserver("mutation", () => this.updateFlowProps());
42
+ this.getFlowDirection = (oldFlowItemCount, newFlowItemCount) => {
43
+ const allowRetreatingDirection = oldFlowItemCount > 1;
44
+ const allowAdvancingDirection = oldFlowItemCount && newFlowItemCount > 1;
45
+ if (!allowAdvancingDirection && !allowRetreatingDirection) {
46
+ return null;
47
+ }
48
+ return newFlowItemCount < oldFlowItemCount ? "retreating" : "advancing";
49
+ };
50
+ this.updateFlowProps = () => {
51
+ const { customItemSelectors, el, items } = this;
52
+ const newItems = Array.from(el.querySelectorAll(`calcite-flow-item${customItemSelectors ? `,${customItemSelectors}` : ""}`)).filter((flowItem) => flowItem.closest("calcite-flow") === el);
53
+ const oldItemCount = items.length;
54
+ const newItemCount = newItems.length;
55
+ const activeItem = newItems[newItemCount - 1];
56
+ const previousItem = newItems[newItemCount - 2];
57
+ if (newItemCount && activeItem) {
58
+ newItems.forEach((itemNode) => {
59
+ itemNode.showBackButton = itemNode === activeItem && newItemCount > 1;
60
+ itemNode.hidden = itemNode !== activeItem;
61
+ });
62
+ }
63
+ if (previousItem) {
64
+ previousItem.menuOpen = false;
65
+ }
66
+ this.items = newItems;
67
+ if (oldItemCount !== newItemCount) {
68
+ const flowDirection = this.getFlowDirection(oldItemCount, newItemCount);
69
+ this.itemCount = newItemCount;
70
+ this.flowDirection = flowDirection;
71
+ }
72
+ };
73
+ this.customItemSelectors = undefined;
74
+ this.flowDirection = null;
75
+ this.itemCount = 0;
76
+ this.items = [];
77
+ }
78
+ // --------------------------------------------------------------------------
79
+ //
80
+ // Public Methods
81
+ //
82
+ // --------------------------------------------------------------------------
83
+ /**
84
+ * Removes the currently active `calcite-flow-item`.
85
+ */
86
+ async back() {
87
+ const { items } = this;
88
+ const lastItem = items[items.length - 1];
89
+ if (!lastItem) {
90
+ return;
91
+ }
92
+ const beforeBack = lastItem.beforeBack
93
+ ? lastItem.beforeBack
94
+ : () => Promise.resolve();
95
+ try {
96
+ await beforeBack.call(lastItem);
97
+ }
98
+ catch (_error) {
99
+ // back prevented
100
+ return;
101
+ }
102
+ lastItem.remove();
103
+ return lastItem;
104
+ }
105
+ /**
106
+ * Sets focus on the component.
107
+ */
108
+ async setFocus() {
109
+ await componentFocusable(this);
110
+ const { items } = this;
111
+ const activeItem = items[items.length - 1];
112
+ return activeItem === null || activeItem === void 0 ? void 0 : activeItem.setFocus();
113
+ }
114
+ // --------------------------------------------------------------------------
115
+ //
116
+ // Lifecycle
117
+ //
118
+ // --------------------------------------------------------------------------
119
+ connectedCallback() {
120
+ var _a;
121
+ (_a = this.itemMutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
122
+ this.updateFlowProps();
123
+ }
124
+ async componentWillLoad() {
125
+ setUpLoadableComponent(this);
126
+ }
127
+ componentDidLoad() {
128
+ setComponentLoaded(this);
129
+ }
130
+ disconnectedCallback() {
131
+ var _a;
132
+ (_a = this.itemMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
133
+ }
134
+ // --------------------------------------------------------------------------
135
+ //
136
+ // Private Methods
137
+ //
138
+ // --------------------------------------------------------------------------
139
+ async handleItemBackClick(event) {
140
+ if (event.defaultPrevented) {
141
+ return;
142
+ }
143
+ await this.back();
144
+ return this.setFocus();
145
+ }
146
+ // --------------------------------------------------------------------------
147
+ //
148
+ // Render Methods
149
+ //
150
+ // --------------------------------------------------------------------------
151
+ render() {
152
+ const { flowDirection } = this;
153
+ const frameDirectionClasses = {
154
+ [CSS$1.frame]: true,
155
+ [CSS$1.frameAdvancing]: flowDirection === "advancing",
156
+ [CSS$1.frameRetreating]: flowDirection === "retreating",
157
+ };
158
+ return (h("div", { class: frameDirectionClasses }, h("slot", null)));
159
+ }
160
+ get el() { return getElement(this); }
161
+ };
162
+ Flow.style = flowCss;
163
+
164
+ /*!
165
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
166
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
167
+ * v2.0.0
168
+ */
169
+ const CSS = {
170
+ backButton: "back-button",
171
+ };
172
+ const ICONS = {
173
+ backLeft: "chevron-left",
174
+ backRight: "chevron-right",
175
+ };
176
+ const SLOTS = {
177
+ actionBar: "action-bar",
178
+ headerActionsStart: "header-actions-start",
179
+ headerActionsEnd: "header-actions-end",
180
+ headerMenuActions: "header-menu-actions",
181
+ headerContent: "header-content",
182
+ fab: "fab",
183
+ footer: "footer",
184
+ footerActions: "footer-actions",
185
+ };
186
+
187
+ const flowItemCss = ":host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);border-inline-end-width:1px}calcite-panel{--calcite-panel-footer-padding:var(--calcite-flow-item-footer-padding);--calcite-panel-header-border-block-end:var(--calcite-flow-item-header-border-block-end)}:host([hidden]){display:none}[hidden]{display:none}";
188
+
189
+ const FlowItem = class {
190
+ constructor(hostRef) {
191
+ registerInstance(this, hostRef);
192
+ this.calciteFlowItemBack = createEvent(this, "calciteFlowItemBack", 7);
193
+ this.calciteFlowItemScroll = createEvent(this, "calciteFlowItemScroll", 6);
194
+ this.calciteFlowItemClose = createEvent(this, "calciteFlowItemClose", 6);
195
+ this.calciteFlowItemToggle = createEvent(this, "calciteFlowItemToggle", 6);
196
+ // --------------------------------------------------------------------------
197
+ //
198
+ // Private Methods
199
+ //
200
+ // --------------------------------------------------------------------------
201
+ this.handlePanelScroll = (event) => {
202
+ event.stopPropagation();
203
+ this.calciteFlowItemScroll.emit();
204
+ };
205
+ this.handlePanelClose = (event) => {
206
+ event.stopPropagation();
207
+ this.calciteFlowItemClose.emit();
208
+ };
209
+ this.handlePanelToggle = (event) => {
210
+ event.stopPropagation();
211
+ this.collapsed = event.target.collapsed;
212
+ this.calciteFlowItemToggle.emit();
213
+ };
214
+ this.backButtonClick = () => {
215
+ this.calciteFlowItemBack.emit();
216
+ };
217
+ this.setBackRef = (node) => {
218
+ this.backButtonEl = node;
219
+ };
220
+ this.setContainerRef = (node) => {
221
+ this.containerEl = node;
222
+ };
223
+ this.closable = false;
224
+ this.closed = false;
225
+ this.collapsed = false;
226
+ this.collapseDirection = "down";
227
+ this.collapsible = false;
228
+ this.beforeBack = undefined;
229
+ this.description = undefined;
230
+ this.disabled = false;
231
+ this.heading = undefined;
232
+ this.headingLevel = undefined;
233
+ this.loading = false;
234
+ this.menuOpen = false;
235
+ this.messageOverrides = undefined;
236
+ this.messages = undefined;
237
+ this.showBackButton = false;
238
+ this.defaultMessages = undefined;
239
+ this.effectiveLocale = "";
240
+ }
241
+ onMessagesChange() {
242
+ /* wired up by t9n util */
243
+ }
244
+ //--------------------------------------------------------------------------
245
+ //
246
+ // Lifecycle
247
+ //
248
+ //--------------------------------------------------------------------------
249
+ connectedCallback() {
250
+ connectInteractive(this);
251
+ connectLocalized(this);
252
+ connectMessages(this);
253
+ }
254
+ async componentWillLoad() {
255
+ await setUpMessages(this);
256
+ setUpLoadableComponent(this);
257
+ }
258
+ componentDidRender() {
259
+ updateHostInteraction(this);
260
+ }
261
+ disconnectedCallback() {
262
+ disconnectInteractive(this);
263
+ disconnectLocalized(this);
264
+ disconnectMessages(this);
265
+ }
266
+ componentDidLoad() {
267
+ setComponentLoaded(this);
268
+ }
269
+ effectiveLocaleChange() {
270
+ updateMessages(this, this.effectiveLocale);
271
+ }
272
+ // --------------------------------------------------------------------------
273
+ //
274
+ // Methods
275
+ //
276
+ // --------------------------------------------------------------------------
277
+ /**
278
+ * Sets focus on the component.
279
+ *
280
+ * @returns promise.
281
+ */
282
+ async setFocus() {
283
+ await componentFocusable(this);
284
+ const { backButtonEl, containerEl } = this;
285
+ if (backButtonEl) {
286
+ return backButtonEl.setFocus();
287
+ }
288
+ else if (containerEl) {
289
+ return containerEl.setFocus();
290
+ }
291
+ }
292
+ /**
293
+ * Scrolls the component's content to a specified set of coordinates.
294
+ *
295
+ * @example
296
+ * myCalciteFlowItem.scrollContentTo({
297
+ * left: 0, // Specifies the number of pixels along the X axis to scroll the window or element.
298
+ * top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
299
+ * behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
300
+ * });
301
+ * @param options - allows specific coordinates to be defined.
302
+ * @returns - promise that resolves once the content is scrolled to.
303
+ */
304
+ async scrollContentTo(options) {
305
+ var _a;
306
+ await ((_a = this.containerEl) === null || _a === void 0 ? void 0 : _a.scrollContentTo(options));
307
+ }
308
+ // --------------------------------------------------------------------------
309
+ //
310
+ // Render Methods
311
+ //
312
+ // --------------------------------------------------------------------------
313
+ renderBackButton() {
314
+ const { el } = this;
315
+ const rtl = getElementDir(el) === "rtl";
316
+ const { showBackButton, backButtonClick, messages } = this;
317
+ const label = messages.back;
318
+ const icon = rtl ? ICONS.backRight : ICONS.backLeft;
319
+ return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS.backButton, icon: icon, key: "flow-back-button", onClick: backButtonClick, scale: "s", slot: "header-actions-start", text: label, title: label,
320
+ // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
321
+ ref: this.setBackRef })) : null;
322
+ }
323
+ render() {
324
+ const { collapsed, collapseDirection, collapsible, closable, closed, description, disabled, heading, headingLevel, loading, menuOpen, messages, } = this;
325
+ return (h(Host, null, h("calcite-panel", { closable: closable, closed: closed, collapseDirection: collapseDirection, collapsed: collapsed, collapsible: collapsible, description: description, disabled: disabled, heading: heading, headingLevel: headingLevel, loading: loading, menuOpen: menuOpen, messageOverrides: messages, onCalcitePanelClose: this.handlePanelClose, onCalcitePanelScroll: this.handlePanelScroll, onCalcitePanelToggle: this.handlePanelToggle,
326
+ // eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
327
+ ref: this.setContainerRef }, this.renderBackButton(), h("slot", { name: SLOTS.actionBar, slot: SLOTS$1.actionBar }), h("slot", { name: SLOTS.headerActionsStart, slot: SLOTS$1.headerActionsStart }), h("slot", { name: SLOTS.headerActionsEnd, slot: SLOTS$1.headerActionsEnd }), h("slot", { name: SLOTS.headerContent, slot: SLOTS$1.headerContent }), h("slot", { name: SLOTS.headerMenuActions, slot: SLOTS$1.headerMenuActions }), h("slot", { name: SLOTS.fab, slot: SLOTS$1.fab }), h("slot", { name: SLOTS.footerActions, slot: SLOTS$1.footerActions }), h("slot", { name: SLOTS.footer, slot: SLOTS$1.footer }), h("slot", null))));
328
+ }
329
+ static get assetsDirs() { return ["assets"]; }
330
+ get el() { return getElement(this); }
331
+ static get watchers() { return {
332
+ "messageOverrides": ["onMessagesChange"],
333
+ "effectiveLocale": ["effectiveLocaleChange"]
334
+ }; }
335
+ };
336
+ FlowItem.style = flowItemCss;
337
+
338
+ const featureListCss = ":host{display:block}.width-full{width:100%}.pagination{display:flex;justify-content:center}.error-msg{padding:10px;width:calc(100% - 20px)}.popup-title{font-weight:500;padding:10px 12px}";
339
+
340
+ const FeatureList = class {
341
+ constructor(hostRef) {
342
+ registerInstance(this, hostRef);
343
+ this.featureSelect = createEvent(this, "featureSelect", 7);
344
+ this.selectedLayerId = undefined;
345
+ this.mapView = undefined;
346
+ this.noFeaturesFoundMsg = undefined;
347
+ this.pageSize = 100;
348
+ this.highlightOnMap = false;
349
+ this._featureItems = [];
350
+ this._featuresCount = 0;
351
+ this._isLoading = false;
352
+ this._translations = undefined;
353
+ }
354
+ //--------------------------------------------------------------------------
355
+ //
356
+ // Functions (lifecycle)
357
+ //
358
+ //--------------------------------------------------------------------------
359
+ /**
360
+ * StencilJS: Called once just after the component is first connected to the DOM.
361
+ * @returns Promise when complete
362
+ */
363
+ async componentWillLoad() {
364
+ await this._getTranslations();
365
+ this._isLoading = true;
366
+ this._popupUtils = new PopupUtils();
367
+ this._selectedLayer = await getLayerOrTable(this.mapView, this.selectedLayerId);
368
+ }
369
+ /**
370
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
371
+ */
372
+ async componentDidLoad() {
373
+ if (this._selectedLayer) {
374
+ this._featureItems = await this.queryPage(0);
375
+ this._featuresCount = await this._selectedLayer.queryFeatureCount();
376
+ this._isLoading = false;
377
+ }
378
+ }
379
+ /**
380
+ * Renders the component.
381
+ */
382
+ render() {
383
+ return (h("calcite-panel", { "full-height": true, "full-width": true }, this._isLoading && h("calcite-loader", { scale: "m" }), this._featureItems.length === 0 && !this._isLoading && h("calcite-notice", { class: "error-msg", icon: "feature-details", kind: "info", open: true }, h("div", { slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), h("calcite-list", { "selection-appearance": "border", "selection-mode": "single" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
384
+ h("div", { class: "width-full", slot: "footer" }, h("calcite-pagination", { class: "pagination", "full-width": true, onCalcitePaginationChange: this.pageChanged.bind(this), "page-size": this.pageSize, "start-item": "1", "total-items": this._featuresCount }))));
385
+ }
386
+ //--------------------------------------------------------------------------
387
+ //
388
+ // Functions (protected)
389
+ //
390
+ //--------------------------------------------------------------------------
391
+ /**
392
+ * On page change get the next updated feature list
393
+ * @param event page change event
394
+ * @protected
395
+ */
396
+ async pageChanged(event) {
397
+ this._isLoading = true;
398
+ if (this._highlightHandle) {
399
+ this._highlightHandle.remove();
400
+ this._highlightHandle = null;
401
+ }
402
+ const page = event.target.startItem - 1;
403
+ this._featureItems = await this.queryPage(page);
404
+ this._isLoading = false;
405
+ }
406
+ /**
407
+ * On feature click in feature list highlight the feature on the map
408
+ * @param event feature clicked event
409
+ * @protected
410
+ */
411
+ async featureClicked(event, selectedFeature) {
412
+ //clear previous highlight and remove the highlightHandle
413
+ if (this.highlightOnMap && this._highlightHandle) {
414
+ this._highlightHandle.remove();
415
+ this._highlightHandle = null;
416
+ }
417
+ //highlight on map only if it is selected item
418
+ if (event.target.selected) {
419
+ if (this.highlightOnMap) {
420
+ const selectedFeatureObjectId = Number(event.target.value);
421
+ const selectedLayerView = await getFeatureLayerView(this.mapView, this.selectedLayerId);
422
+ this._highlightHandle = await highlightFeatures([selectedFeatureObjectId], selectedLayerView, this.mapView, true);
423
+ }
424
+ this.featureSelect.emit(selectedFeature);
425
+ }
426
+ }
427
+ /**
428
+ * Query the selected feature layer, in descending order of object id's
429
+ * @param page 0th page number in the pagination item
430
+ * @returns List of features items to be rendered
431
+ * @protected
432
+ */
433
+ async queryPage(page) {
434
+ const featureLayer = this._selectedLayer;
435
+ const query = {
436
+ start: page,
437
+ num: this.pageSize,
438
+ outFields: ["*"],
439
+ orderByFields: [featureLayer.objectIdField + " DESC"],
440
+ returnGeometry: true,
441
+ where: featureLayer.definitionExpression
442
+ };
443
+ const featureSet = await featureLayer.queryFeatures(query);
444
+ return await this.createFeatureItem(featureSet);
445
+ }
446
+ /**
447
+ * Creates list of items using the popup titles
448
+ * @param featureSet Queried FeatureSet
449
+ * @returns List of features items to be rendered
450
+ * @protected
451
+ */
452
+ async createFeatureItem(featureSet) {
453
+ const currentFeatures = featureSet === null || featureSet === void 0 ? void 0 : featureSet.features;
454
+ const items = currentFeatures.map(async (feature) => {
455
+ const popupTitle = await this._popupUtils.getPopupTitle(feature);
456
+ return this.getFeatureItem(feature, popupTitle);
457
+ });
458
+ return Promise.all(items);
459
+ }
460
+ /**
461
+ * Get each feature item
462
+ * @param selectedFeature Each individual feature instance to be listed
463
+ * @param popupTitle feature popup title
464
+ * @returns individual feature item to be rendered
465
+ * @protected
466
+ */
467
+ getFeatureItem(selectedFeature, popupTitle) {
468
+ //get the object id value of the feature
469
+ const oId = selectedFeature.attributes[this._selectedLayer.objectIdField].toString();
470
+ //use object id if popupTitle is null or undefined
471
+ popupTitle = popupTitle !== null && popupTitle !== void 0 ? popupTitle : oId;
472
+ return (h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, value: oId }, h("div", { class: "popup-title", slot: "content-start" }, popupTitle), h("calcite-icon", { icon: "chevron-right", scale: "s", slot: "content-end" })));
473
+ }
474
+ /**
475
+ * Fetches the component's translations
476
+ * @returns Promise when complete
477
+ * @protected
478
+ */
479
+ async _getTranslations() {
480
+ const messages = await getLocaleComponentStrings(this.el);
481
+ this._translations = messages[0];
482
+ }
483
+ get el() { return getElement(this); }
484
+ };
485
+ FeatureList.style = featureListCss;
486
+
487
+ const layerListCss = ":host{display:block}.error-msg{padding:10px}.layer-name{font-weight:500;padding:10px 12px}";
488
+
489
+ const LayerList = class {
490
+ constructor(hostRef) {
491
+ registerInstance(this, hostRef);
492
+ this.layerSelect = createEvent(this, "layerSelect", 7);
493
+ this.layersListLoaded = createEvent(this, "layersListLoaded", 7);
494
+ this.mapView = undefined;
495
+ this.layers = undefined;
496
+ this.noLayerErrorMsg = undefined;
497
+ this._noLayersToDisplay = false;
498
+ this._mapLayerIds = [];
499
+ this._isLoading = false;
500
+ this._translations = undefined;
501
+ }
502
+ //--------------------------------------------------------------------------
503
+ //
504
+ // Functions (lifecycle)
505
+ //
506
+ //--------------------------------------------------------------------------
507
+ /**
508
+ * StencilJS: Called once just after the component is first connected to the DOM.
509
+ * @returns Promise when complete
510
+ */
511
+ async componentWillLoad() {
512
+ await this._getTranslations();
513
+ this._isLoading = true;
514
+ }
515
+ /**
516
+ * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
517
+ */
518
+ async componentDidLoad() {
519
+ await this.setLayers();
520
+ this._isLoading = false;
521
+ }
522
+ /**
523
+ * Renders the component.
524
+ */
525
+ render() {
526
+ return (h(Fragment, null, this._isLoading && h("calcite-loader", { scale: "m" }), !this._isLoading && this.mapView && this._noLayersToDisplay && h("calcite-notice", { class: "error-msg", icon: "layers-reference", kind: "danger", open: true }, h("div", { slot: "title" }, this._translations.error), h("div", { slot: "message" }, this.noLayerErrorMsg ? this.noLayerErrorMsg : this._translations.noLayerToDisplayErrorMsg)), !this._isLoading && this.mapView &&
527
+ h("calcite-list", null, this.renderLayerList())));
528
+ }
529
+ //--------------------------------------------------------------------------
530
+ //
531
+ // Functions (protected)
532
+ //
533
+ //--------------------------------------------------------------------------
534
+ /**
535
+ * Fetch the ids of the layers from the map
536
+ * @returns Promise when the operation has completed
537
+ * @protected
538
+ */
539
+ async setLayers() {
540
+ if (this.mapView) {
541
+ await this.initLayerHash();
542
+ }
543
+ }
544
+ /**
545
+ * Create a layer hash for layer name display
546
+ * @returns Promise when the operation has completed
547
+ * @protected
548
+ */
549
+ async initLayerHash() {
550
+ const def = [];
551
+ this._layerItemsHash = await getMapLayerHash(this.mapView, true);
552
+ const allMapLayers = await getAllLayers(this.mapView);
553
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
554
+ allMapLayers.forEach(async (eachLayer) => {
555
+ var _a, _b;
556
+ //TODO: checking editable condition could be configurable
557
+ if ((eachLayer === null || eachLayer === void 0 ? void 0 : eachLayer.type) === "feature" && (eachLayer === null || eachLayer === void 0 ? void 0 : eachLayer.editingEnabled) && ((_b = (_a = eachLayer === null || eachLayer === void 0 ? void 0 : eachLayer.capabilities) === null || _a === void 0 ? void 0 : _a.operations) === null || _b === void 0 ? void 0 : _b.supportsUpdate)) {
558
+ const q = eachLayer.createQuery();
559
+ const result = eachLayer.queryFeatureCount(q);
560
+ def.push(result);
561
+ void result.then(async (resCount) => {
562
+ const formattedCount = !isNaN(resCount) ? await formatNumber(resCount, {
563
+ places: 0,
564
+ api: 4,
565
+ type: "decimal"
566
+ }) : "";
567
+ this._layerItemsHash[eachLayer.id].formattedFeatureCount = formattedCount;
568
+ });
569
+ }
570
+ });
571
+ await Promise.all(def).then(() => {
572
+ const editableLayerIds = this.getEditableIds(this._layerItemsHash);
573
+ this._mapLayerIds = editableLayerIds.reverse();
574
+ this.handleNoLayersToDisplay();
575
+ }, () => {
576
+ this._mapLayerIds = [];
577
+ this.handleNoLayersToDisplay();
578
+ });
579
+ }
580
+ /**
581
+ * Set no layers to display state and emit event
582
+ */
583
+ handleNoLayersToDisplay() {
584
+ this._noLayersToDisplay = !(this._mapLayerIds.length > 0);
585
+ this.layersListLoaded.emit(this._mapLayerIds);
586
+ }
587
+ /**
588
+ * Returns the ids of all OR configured layers that support edits with the update capability
589
+ * @param hash each layer item details
590
+ * @returns array of layer ids
591
+ */
592
+ getEditableIds(hash) {
593
+ var _a;
594
+ const configuredLayers = ((_a = this.layers) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.layers : [];
595
+ return Object.keys(hash).reduce((prev, cur) => {
596
+ let showLayer = hash[cur].supportsUpdate;
597
+ if ((configuredLayers === null || configuredLayers === void 0 ? void 0 : configuredLayers.length) > 0) {
598
+ showLayer = configuredLayers.indexOf(cur) > -1 ? hash[cur].supportsUpdate : false;
599
+ }
600
+ if (showLayer) {
601
+ prev.push(cur);
602
+ }
603
+ return prev;
604
+ }, []);
605
+ }
606
+ /**
607
+ * Render feature layer list
608
+ * @returns layer list
609
+ * @protected
610
+ */
611
+ renderLayerList() {
612
+ return this._mapLayerIds.length > 0 && this._mapLayerIds.reduce((prev, layerId) => {
613
+ if (this._layerItemsHash[layerId]) {
614
+ prev.push(this.getLayerListItem(layerId));
615
+ }
616
+ return prev;
617
+ }, []);
618
+ }
619
+ /**
620
+ * Get each item
621
+ * @param layerId Layer id
622
+ * @returns individual item
623
+ * @protected
624
+ */
625
+ getLayerListItem(layerId) {
626
+ const layerName = this._layerItemsHash[layerId].name;
627
+ const featureCount = this._layerItemsHash[layerId].formattedFeatureCount;
628
+ return (h("calcite-list-item", { onCalciteListItemSelect: () => { this.showFeaturesList(layerId); } }, h("div", { class: "layer-name", slot: "content-start" }, layerName), featureCount !== "" && h("div", { slot: "content-end" }, "(" + featureCount + ")"), h("calcite-icon", { icon: "chevron-right", scale: "s", slot: "content-end" })));
629
+ }
630
+ /**On click of layer list item show feature list
631
+ * @param layerId Layer id
632
+ * @protected
633
+ */
634
+ showFeaturesList(layerId) {
635
+ this.layerSelect.emit({ layerId, layerName: this._layerItemsHash[layerId].name });
636
+ }
637
+ /**
638
+ * Fetches the component's translations
639
+ * @returns Promise when complete
640
+ * @protected
641
+ */
642
+ async _getTranslations() {
643
+ const messages = await getLocaleComponentStrings(this.el);
644
+ this._translations = messages[0];
645
+ }
646
+ get el() { return getElement(this); }
647
+ };
648
+ LayerList.style = layerListCss;
649
+
650
+ export { Flow as calcite_flow, FlowItem as calcite_flow_item, FeatureList as feature_list, LayerList as layer_list };
@@ -6,13 +6,13 @@
6
6
  import { r as registerInstance, h, g as getElement, f as forceUpdate, c as createEvent, H as Host } from './index-7183ce4a.js';
7
7
  import { g as guid } from './guid-36c6c6a5.js';
8
8
  import { c as createObserver } from './observers-8ce200f2.js';
9
- import { i as isPrimaryPointerButton, r as intersects } from './dom-492b1b24.js';
10
- import { c as connectForm, d as disconnectForm, a as afterConnectDefaultValueSet, H as HiddenFormInputSlot } from './form-9bccaf85.js';
9
+ import { i as isPrimaryPointerButton, r as intersects } from './dom-8f926f33.js';
10
+ import { c as connectForm, d as disconnectForm, a as afterConnectDefaultValueSet, H as HiddenFormInputSlot } from './form-133b00c7.js';
11
11
  import { c as connectInteractive, d as disconnectInteractive, u as updateHostInteraction } from './interactive-20bb1dc4.js';
12
12
  import { i as isActivationKey } from './key-af303047.js';
13
- import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-14301f4d.js';
13
+ import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-cd393c81.js';
14
14
  import { s as setUpLoadableComponent, a as setComponentLoaded, c as componentFocusable } from './loadable-c3685e51.js';
15
- import { n as numberStringFormatter, c as connectLocalized, d as disconnectLocalized } from './locale-8cfa3086.js';
15
+ import { n as numberStringFormatter, c as connectLocalized, d as disconnectLocalized } from './locale-6107ef11.js';
16
16
  import { d as decimalPlaces, c as clamp } from './math-cdaf4dc0.js';
17
17
  import './resources-cdc36705.js';
18
18
  import './browser-b4c16201.js';
@@ -4,7 +4,7 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { a as getAssetPath, r as registerInstance, h, H as Host, g as getElement } from './index-7183ce4a.js';
7
- import { a as getElementDir, t as toAriaBoolean } from './dom-492b1b24.js';
7
+ import { a as getElementDir, t as toAriaBoolean } from './dom-8f926f33.js';
8
8
  import { c as createObserver } from './observers-8ce200f2.js';
9
9
  import './guid-36c6c6a5.js';
10
10
  import './resources-cdc36705.js';