@esri/solutions-components 0.7.22 → 0.7.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (451) 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/assets/t9n/public-notification/resources.json +2 -3
  16. package/dist/assets/t9n/public-notification/resources_en.json +2 -3
  17. package/dist/cjs/basemap-gallery_5.cjs.entry.js +573 -0
  18. package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
  19. package/dist/cjs/calcite-action-bar.cjs.entry.js +255 -0
  20. package/dist/cjs/calcite-alert_3.cjs.entry.js +159 -370
  21. package/dist/cjs/calcite-combobox_6.cjs.entry.js +2 -1
  22. package/dist/cjs/{calcite-action-bar_3.cjs.entry.js → calcite-filter_5.cjs.entry.js} +333 -172
  23. package/dist/cjs/calcite-flow_4.cjs.entry.js +658 -0
  24. package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +22 -11
  25. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2 -1
  26. package/dist/cjs/{card-manager_3.cjs.entry.js → card-manager_2.cjs.entry.js} +69 -271
  27. package/dist/cjs/crowdsource-manager.cjs.entry.js +18 -3
  28. package/dist/cjs/crowdsource-reporter.cjs.entry.js +215 -36
  29. package/dist/cjs/{basemap-gallery_7.cjs.entry.js → info-card_4.cjs.entry.js} +325 -413
  30. package/dist/cjs/instant-apps-export.cjs.entry.js +1 -1
  31. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +41 -1
  32. package/dist/cjs/layout-manager.cjs.entry.js +2 -1
  33. package/dist/cjs/loader.cjs.js +1 -1
  34. package/dist/cjs/{locale-9db09b63.js → locale-1ff119f5.js} +19 -1
  35. package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
  36. package/dist/cjs/popupUtils-8d5b6e94.js +99 -0
  37. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  38. package/dist/cjs/solution-configuration.cjs.entry.js +2 -1
  39. package/dist/cjs/solution-contents_3.cjs.entry.js +16 -2
  40. package/dist/cjs/solutions-components.cjs.js +1 -1
  41. package/dist/cjs/spatial-ref.cjs.entry.js +2 -1
  42. package/dist/collection/collection-manifest.json +3 -0
  43. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +23 -2
  44. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +73 -0
  45. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +349 -56
  46. package/dist/collection/components/delete-button/delete-button.css +19 -0
  47. package/dist/collection/components/delete-button/delete-button.js +299 -0
  48. package/dist/collection/components/delete-button/test/delete-button.e2e.js +29 -0
  49. package/dist/collection/components/delete-button/test/delete-button.spec.js +37 -0
  50. package/dist/collection/components/edit-card/edit-card.js +23 -13
  51. package/dist/collection/components/feature-list/feature-list.css +38 -0
  52. package/dist/collection/components/feature-list/feature-list.js +303 -0
  53. package/dist/collection/components/floor-filter/floor-filter.js +28 -12
  54. package/dist/collection/components/info-card/info-card.js +65 -21
  55. package/dist/collection/components/layer-list/layer-list.css +28 -0
  56. package/dist/collection/components/layer-list/layer-list.js +288 -0
  57. package/dist/collection/components/layer-table/layer-table.js +90 -119
  58. package/dist/collection/components/public-notification/public-notification.js +1 -1
  59. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +31 -1
  60. package/dist/collection/demos/crowdsource-manager.html +13 -0
  61. package/dist/collection/demos/crowdsource-reporter.html +42 -70
  62. package/dist/collection/demos/feature-list.html +43 -0
  63. package/dist/collection/demos/layer-list.html +43 -0
  64. package/dist/collection/utils/interfaces.ts +4 -0
  65. package/dist/components/calcite-flow-item.js +1 -261
  66. package/dist/components/calcite-flow.js +1 -165
  67. package/dist/components/card-manager2.js +38 -26
  68. package/dist/components/crowdsource-manager.js +110 -89
  69. package/dist/components/crowdsource-reporter.js +463 -42
  70. package/dist/components/delete-button.d.ts +11 -0
  71. package/dist/components/delete-button.js +11 -0
  72. package/dist/components/delete-button2.js +209 -0
  73. package/dist/components/edit-card2.js +23 -13
  74. package/dist/components/feature-list.d.ts +11 -0
  75. package/dist/components/feature-list.js +11 -0
  76. package/dist/components/feature-list2.js +281 -0
  77. package/dist/components/floor-filter2.js +12 -13
  78. package/dist/{esm/calcite-flow-item.entry.js → components/flow-item.js} +94 -19
  79. package/dist/{esm/calcite-flow.entry.js → components/flow.js} +33 -10
  80. package/dist/components/info-card2.js +87 -136
  81. package/dist/components/instant-apps-export.js +1 -1
  82. package/dist/components/instant-apps-filter-list2.js +22 -11
  83. package/dist/components/instant-apps-language-translator2.js +48 -4
  84. package/dist/components/layer-list.d.ts +11 -0
  85. package/dist/components/layer-list.js +11 -0
  86. package/dist/components/layer-list2.js +268 -0
  87. package/dist/components/layer-table2.js +148 -169
  88. package/dist/components/locale.js +19 -2
  89. package/dist/components/popupUtils.js +97 -0
  90. package/dist/components/public-notification.js +1 -1
  91. package/dist/components/queryUtils.js +1 -1
  92. package/dist/components/solution-spatial-ref2.js +17 -2
  93. package/dist/esm/{ExpandToggle-540998b5.js → ExpandToggle-96688cda.js} +1 -1
  94. package/dist/esm/{ar-35006b74.js → ar-29711364.js} +8 -8
  95. package/dist/esm/basemap-gallery_5.entry.js +565 -0
  96. package/dist/esm/{bg-c289978f.js → bg-c0f5033b.js} +8 -8
  97. package/dist/esm/{bs-6f9fb44a.js → bs-60479ce5.js} +8 -8
  98. package/dist/esm/buffer-tools_3.entry.js +3 -3
  99. package/dist/esm/{ca-7962c8b7.js → ca-4317b986.js} +8 -8
  100. package/dist/esm/calcite-accordion-item.entry.js +1 -1
  101. package/dist/esm/calcite-action-bar.entry.js +251 -0
  102. package/dist/esm/calcite-action-group.entry.js +3 -3
  103. package/dist/esm/calcite-action-menu_2.entry.js +5 -5
  104. package/dist/esm/calcite-action-pad_2.entry.js +4 -4
  105. package/dist/esm/calcite-action_2.entry.js +3 -3
  106. package/dist/esm/calcite-alert_3.entry.js +164 -375
  107. package/dist/esm/calcite-avatar.entry.js +1 -1
  108. package/dist/esm/calcite-block-section.entry.js +3 -3
  109. package/dist/esm/calcite-block_2.entry.js +5 -5
  110. package/dist/esm/calcite-button.entry.js +5 -5
  111. package/dist/esm/calcite-card.entry.js +3 -3
  112. package/dist/esm/calcite-checkbox.entry.js +3 -3
  113. package/dist/esm/calcite-chip-group.entry.js +1 -1
  114. package/dist/esm/calcite-chip.entry.js +3 -3
  115. package/dist/esm/calcite-color-picker-hex-input_2.entry.js +1 -1
  116. package/dist/esm/calcite-color-picker.entry.js +3 -3
  117. package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
  118. package/dist/esm/calcite-combobox_6.entry.js +11 -10
  119. package/dist/esm/calcite-date-picker-day_3.entry.js +3 -3
  120. package/dist/esm/calcite-fab.entry.js +1 -1
  121. package/dist/esm/{calcite-action-bar_3.entry.js → calcite-filter_5.entry.js} +363 -204
  122. package/dist/esm/calcite-flow_4.entry.js +651 -0
  123. package/dist/esm/calcite-graph_2.entry.js +4 -4
  124. package/dist/esm/calcite-icon.entry.js +1 -1
  125. package/dist/esm/calcite-inline-editable.entry.js +4 -4
  126. package/dist/esm/calcite-input-date-picker_3.entry.js +31 -20
  127. package/dist/esm/calcite-input-number.entry.js +5 -5
  128. package/dist/esm/calcite-input-text.entry.js +5 -5
  129. package/dist/esm/{calcite-input-time-picker-63439178.js → calcite-input-time-picker-2e1b2157.js} +55 -55
  130. package/dist/esm/calcite-input-time-picker.entry.js +8 -8
  131. package/dist/esm/calcite-input-time-zone.entry.js +5 -5
  132. package/dist/esm/calcite-input_2.entry.js +5 -5
  133. package/dist/esm/calcite-label.entry.js +2 -2
  134. package/dist/esm/calcite-link.entry.js +1 -1
  135. package/dist/esm/calcite-menu-item.entry.js +3 -3
  136. package/dist/esm/calcite-menu.entry.js +3 -3
  137. package/dist/esm/calcite-meter.entry.js +3 -3
  138. package/dist/esm/calcite-modal.entry.js +4 -4
  139. package/dist/esm/calcite-navigation.entry.js +1 -1
  140. package/dist/esm/calcite-notice.entry.js +3 -3
  141. package/dist/esm/calcite-option_2.entry.js +3 -3
  142. package/dist/esm/calcite-pagination.entry.js +3 -3
  143. package/dist/esm/calcite-panel_2.entry.js +3 -3
  144. package/dist/esm/calcite-pick-list-group.entry.js +1 -1
  145. package/dist/esm/calcite-pick-list-item.entry.js +3 -3
  146. package/dist/esm/calcite-pick-list.entry.js +2 -2
  147. package/dist/esm/calcite-radio-button.entry.js +3 -3
  148. package/dist/esm/calcite-rating.entry.js +5 -5
  149. package/dist/esm/calcite-scrim.entry.js +3 -3
  150. package/dist/esm/calcite-segmented-control_2.entry.js +3 -3
  151. package/dist/esm/calcite-sheet.entry.js +2 -2
  152. package/dist/esm/calcite-shell-center-row.entry.js +1 -1
  153. package/dist/esm/calcite-shell-panel_14.entry.js +8 -7
  154. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  155. package/dist/esm/calcite-stepper-item.entry.js +3 -3
  156. package/dist/esm/calcite-stepper.entry.js +3 -3
  157. package/dist/esm/calcite-switch.entry.js +3 -3
  158. package/dist/esm/calcite-table-cell_2.entry.js +3 -3
  159. package/dist/esm/calcite-table-row.entry.js +1 -1
  160. package/dist/esm/calcite-table.entry.js +3 -3
  161. package/dist/esm/calcite-text-area.entry.js +5 -5
  162. package/dist/esm/calcite-tile.entry.js +1 -1
  163. package/dist/esm/calcite-time-picker.entry.js +4 -4
  164. package/dist/esm/calcite-tip-manager.entry.js +3 -3
  165. package/dist/esm/calcite-tip.entry.js +3 -3
  166. package/dist/esm/calcite-tooltip.entry.js +2 -2
  167. package/dist/esm/calcite-tree_2.entry.js +1 -1
  168. package/dist/esm/{card-manager_3.entry.js → card-manager_2.entry.js} +72 -273
  169. package/dist/esm/{common-2cf42ac2.js → common-d04ccc0d.js} +1 -1
  170. package/dist/esm/crowdsource-manager.entry.js +19 -4
  171. package/dist/esm/crowdsource-reporter.entry.js +215 -36
  172. package/dist/esm/{cs-6d13069b.js → cs-da404a04.js} +8 -8
  173. package/dist/esm/{da-14097e6c.js → da-1afac3fa.js} +8 -8
  174. package/dist/esm/{date-1743b515.js → date-8b4a8f33.js} +1 -1
  175. package/dist/esm/{de-dff2571b.js → de-98f3129e.js} +8 -8
  176. package/dist/esm/{de-at-b733db65.js → de-at-ed4817af.js} +8 -8
  177. package/dist/esm/{de-ch-5ad0cb74.js → de-ch-556c82c8.js} +8 -8
  178. package/dist/esm/{dom-492b1b24.js → dom-8f926f33.js} +1 -1
  179. package/dist/esm/{downloadUtils-13579d93.js → downloadUtils-067dc2ff.js} +2 -2
  180. package/dist/esm/{el-688e05ba.js → el-394dfd74.js} +8 -8
  181. package/dist/esm/{en-au-357e70d8.js → en-au-6dde1e7e.js} +8 -8
  182. package/dist/esm/{en-ca-1e0b6b47.js → en-ca-420be416.js} +8 -8
  183. package/dist/esm/{en-gb-861a17f2.js → en-gb-0a7caa85.js} +8 -8
  184. package/dist/esm/{es-291ab4bd.js → es-2e1beb99.js} +8 -8
  185. package/dist/esm/{es-mx-0a7283a7.js → es-mx-ef132a24.js} +8 -8
  186. package/dist/esm/{et-addd2617.js → et-83d139c1.js} +8 -8
  187. package/dist/esm/{fi-469884d5.js → fi-8b81ed94.js} +8 -8
  188. package/dist/esm/{floating-ui-03eb4c82.js → floating-ui-c397f653.js} +1 -1
  189. package/dist/esm/{focusTrapComponent-2e7de651.js → focusTrapComponent-14368766.js} +1 -1
  190. package/dist/esm/{form-9bccaf85.js → form-133b00c7.js} +1 -1
  191. package/dist/esm/{fr-f5cb34ca.js → fr-c47c114a.js} +8 -8
  192. package/dist/esm/{fr-ch-115d3fda.js → fr-ch-97635343.js} +8 -8
  193. package/dist/esm/{he-6e5f5c56.js → he-ed2a12b9.js} +8 -8
  194. package/dist/esm/{hi-503240c2.js → hi-a05727ac.js} +8 -8
  195. package/dist/esm/{hr-cc08d6fc.js → hr-d01671ca.js} +8 -8
  196. package/dist/esm/{hu-69ac240d.js → hu-16506ca7.js} +8 -8
  197. package/dist/esm/{id-99547746.js → id-e9367e87.js} +8 -8
  198. package/dist/esm/{index.es-04d2e63e.js → index.es-92e46d8b.js} +3 -3
  199. package/dist/esm/{basemap-gallery_7.entry.js → info-card_4.entry.js} +325 -410
  200. package/dist/esm/instant-apps-export.entry.js +1 -1
  201. package/dist/esm/instant-apps-language-translator.entry.js +42 -2
  202. package/dist/esm/{interfaces-341e3ab3.js → interfaces-586e863c.js} +1 -1
  203. package/dist/esm/{it-dbb6ea7d.js → it-14246b4a.js} +8 -8
  204. package/dist/esm/{it-ch-a83801f6.js → it-ch-a877e111.js} +8 -8
  205. package/dist/esm/{ja-79dbb02f.js → ja-67a0cfa0.js} +8 -8
  206. package/dist/esm/{ko-31ebe067.js → ko-35b0b83a.js} +8 -8
  207. package/dist/esm/{label-14301f4d.js → label-cd393c81.js} +1 -1
  208. package/dist/esm/layout-manager.entry.js +3 -2
  209. package/dist/esm/loader.js +1 -1
  210. package/dist/esm/{locale-834c52c6.js → locale-13e3c96c.js} +19 -2
  211. package/dist/esm/{locale-8cfa3086.js → locale-6107ef11.js} +1 -1
  212. package/dist/esm/{lt-94d3f4b8.js → lt-71014faf.js} +8 -8
  213. package/dist/esm/{lv-d770ed0d.js → lv-def9df38.js} +8 -8
  214. package/dist/esm/map-select-tools_3.entry.js +4 -4
  215. package/dist/esm/{mapViewUtils-8fe70944.js → mapViewUtils-6daedef8.js} +2 -2
  216. package/dist/esm/{mk-1046d60a.js → mk-bfeac49e.js} +8 -8
  217. package/dist/esm/{nb-dad0b4b9.js → nb-0723b461.js} +8 -8
  218. package/dist/esm/{nl-a968c4b7.js → nl-89663165.js} +8 -8
  219. package/dist/esm/{pl-a0037bd3.js → pl-0157c37c.js} +8 -8
  220. package/dist/esm/popupUtils-b71f30fc.js +97 -0
  221. package/dist/esm/{pt-e3d9370c.js → pt-80d1520c.js} +8 -8
  222. package/dist/esm/{pt-br-44c11565.js → pt-br-ee5003c7.js} +8 -8
  223. package/dist/esm/public-notification.entry.js +5 -5
  224. package/dist/esm/{ro-290e025d.js → ro-eff987f8.js} +8 -8
  225. package/dist/esm/{ru-38ff91f1.js → ru-62839398.js} +8 -8
  226. package/dist/esm/{shared-list-render-89e4bcff.js → shared-list-render-a2ab63e8.js} +1 -1
  227. package/dist/esm/{sk-9622a24b.js → sk-c2f4bd58.js} +8 -8
  228. package/dist/esm/{sl-6bc83a24.js → sl-328ff1db.js} +8 -8
  229. package/dist/esm/solution-configuration.entry.js +4 -3
  230. package/dist/esm/solution-contents_3.entry.js +19 -5
  231. package/dist/esm/{solution-store-b08696f7.js → solution-store-19f7825b.js} +1 -1
  232. package/dist/esm/solutions-components.js +1 -1
  233. package/dist/esm/spatial-ref.entry.js +4 -3
  234. package/dist/esm/{sr-35e575d8.js → sr-75a3ad46.js} +8 -8
  235. package/dist/esm/{sv-d80fa359.js → sv-10da5ef2.js} +8 -8
  236. package/dist/esm/{t9n-3c5e55ab.js → t9n-f16911e7.js} +1 -1
  237. package/dist/esm/{th-23e71d40.js → th-aa112042.js} +8 -8
  238. package/dist/esm/{time-d956a7c8.js → time-855b3426.js} +1 -1
  239. package/dist/esm/{tr-961fd2f3.js → tr-5925a2f5.js} +8 -8
  240. package/dist/esm/{uk-4e8a425a.js → uk-c40eeb9f.js} +8 -8
  241. package/dist/esm/{utils-56206ec2.js → utils-93fd55c4.js} +2 -2
  242. package/dist/esm/{utils-8287806a.js → utils-c3509713.js} +1 -1
  243. package/dist/esm/{vi-ad983882.js → vi-27922b93.js} +8 -8
  244. package/dist/esm/{zh-cn-5b6fd039.js → zh-cn-38a2e1d3.js} +8 -8
  245. package/dist/esm/{zh-hk-7439b11d.js → zh-hk-e0217bd1.js} +8 -8
  246. package/dist/esm/{zh-tw-cf384663.js → zh-tw-31f0447c.js} +8 -8
  247. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +0 -1
  248. package/dist/solutions-components/demos/crowdsource-manager.html +13 -0
  249. package/dist/solutions-components/demos/crowdsource-reporter.html +42 -70
  250. package/dist/solutions-components/demos/feature-list.html +43 -0
  251. package/dist/solutions-components/demos/layer-list.html +43 -0
  252. package/dist/solutions-components/{p-a40a1eab.entry.js → p-01032eec.entry.js} +2 -18
  253. package/dist/solutions-components/{p-e7951fcb.js → p-0392679d.js} +1 -1
  254. package/dist/solutions-components/{p-3022da2d.js → p-05f702ae.js} +1 -1
  255. package/dist/solutions-components/{p-4da72ee8.entry.js → p-068f5a8c.entry.js} +1 -1
  256. package/dist/solutions-components/{p-4f71a1a0.js → p-0d774e41.js} +1 -1
  257. package/dist/solutions-components/{p-0e723ffc.js → p-0f6b58b2.js} +1 -1
  258. package/dist/solutions-components/{p-ec8f042e.entry.js → p-10410f92.entry.js} +1 -1
  259. package/dist/solutions-components/{p-6a4b1e48.entry.js → p-10f2d6b0.entry.js} +2 -2
  260. package/dist/solutions-components/{p-5d2ccc75.entry.js → p-13be5cf5.entry.js} +1 -1
  261. package/dist/solutions-components/{p-58054bc2.js → p-14548a83.js} +1 -1
  262. package/dist/solutions-components/{p-c9f87acb.js → p-14ff1465.js} +2 -2
  263. package/dist/solutions-components/{p-026b1345.js → p-17668cb7.js} +3 -3
  264. package/dist/solutions-components/{p-5e530f8c.js → p-1c75bb3d.js} +1 -1
  265. package/dist/solutions-components/p-1f7046e9.entry.js +6 -0
  266. package/dist/solutions-components/{p-121a5dac.entry.js → p-234a8293.entry.js} +1 -1
  267. package/dist/solutions-components/{p-355249fc.js → p-2447b332.js} +1 -1
  268. package/dist/solutions-components/{p-48828002.entry.js → p-24c699b0.entry.js} +1 -1
  269. package/dist/solutions-components/{p-9bcbc1cc.js → p-2592e0dd.js} +1 -1
  270. package/dist/solutions-components/{p-b78a1c21.js → p-28b33708.js} +1 -1
  271. package/dist/solutions-components/{p-fa6ef970.js → p-2d68a6fd.js} +1 -1
  272. package/dist/solutions-components/{p-6437fee1.entry.js → p-2e2d01de.entry.js} +1 -1
  273. package/dist/solutions-components/{p-5e9b05c0.entry.js → p-2f425700.entry.js} +1 -1
  274. package/dist/solutions-components/p-3606c4b8.entry.js +6 -0
  275. package/dist/solutions-components/{p-6c3cdd09.entry.js → p-364486d1.entry.js} +1 -1
  276. package/dist/solutions-components/{p-85a89f1d.entry.js → p-368cbb2c.entry.js} +1 -1
  277. package/dist/solutions-components/{p-c68a6d4f.js → p-36cbf14f.js} +1 -1
  278. package/dist/solutions-components/{p-52ad6ff9.entry.js → p-36f247db.entry.js} +1 -1
  279. package/dist/solutions-components/{p-080249de.js → p-38544b17.js} +1 -1
  280. package/dist/solutions-components/{p-a0be72b6.entry.js → p-3a73ee38.entry.js} +1 -1
  281. package/dist/solutions-components/{p-532b7378.entry.js → p-3ad4426b.entry.js} +1 -1
  282. package/dist/solutions-components/{p-5752785e.entry.js → p-3c10901a.entry.js} +1 -1
  283. package/dist/solutions-components/{p-6e406a7b.js → p-3c7d0eb9.js} +1 -1
  284. package/dist/solutions-components/{p-bf23173c.js → p-411b73a7.js} +1 -1
  285. package/dist/solutions-components/{p-76d60881.entry.js → p-429e1284.entry.js} +1 -1
  286. package/dist/solutions-components/{p-f3d277c2.entry.js → p-42f0e1fa.entry.js} +1 -1
  287. package/dist/solutions-components/{p-1fc220c7.js → p-4416d288.js} +1 -1
  288. package/dist/solutions-components/{p-663a433a.entry.js → p-451b16b3.entry.js} +2 -2
  289. package/dist/solutions-components/{p-b5d1b979.js → p-4566438a.js} +3 -3
  290. package/dist/solutions-components/{p-7a06dcdf.js → p-4647b2a6.js} +1 -1
  291. package/dist/solutions-components/{p-75fbe76c.js → p-480d0789.js} +1 -1
  292. package/dist/solutions-components/p-49b02dda.entry.js +6 -0
  293. package/dist/solutions-components/{p-722ae773.js → p-49fb1bfa.js} +2 -2
  294. package/dist/solutions-components/{p-17183100.js → p-4abf1c34.js} +1 -1
  295. package/dist/solutions-components/p-4ae36626.js +6 -0
  296. package/dist/solutions-components/{p-5c3fd315.entry.js → p-4bff69aa.entry.js} +1 -1
  297. package/dist/solutions-components/{p-f8f18a94.entry.js → p-4ccdac24.entry.js} +1 -1
  298. package/dist/solutions-components/{p-a3a64af2.entry.js → p-4d402bcf.entry.js} +1 -1
  299. package/dist/solutions-components/{p-7e82a730.js → p-4d8fc031.js} +1 -1
  300. package/dist/solutions-components/{p-1c720ed5.entry.js → p-4d99cb49.entry.js} +1 -1
  301. package/dist/solutions-components/p-4fbadb84.entry.js +6 -0
  302. package/dist/solutions-components/{p-e0276e26.entry.js → p-5268d845.entry.js} +2 -2
  303. package/dist/solutions-components/{p-f3f09834.js → p-5e12026e.js} +1 -1
  304. package/dist/solutions-components/p-5e832d65.entry.js +6 -0
  305. package/dist/solutions-components/{p-ffee4847.entry.js → p-5fe99315.entry.js} +1 -1
  306. package/dist/solutions-components/{p-d6208a47.js → p-6105d57c.js} +1 -1
  307. package/dist/solutions-components/{p-f3dfb34f.entry.js → p-613315a7.entry.js} +1 -1
  308. package/dist/solutions-components/{p-0d97c2c5.entry.js → p-62eba559.entry.js} +1 -1
  309. package/dist/solutions-components/{p-40235cb7.entry.js → p-63fa7791.entry.js} +1 -1
  310. package/dist/solutions-components/{p-cfccae7c.js → p-6604ac77.js} +1 -1
  311. package/dist/solutions-components/{p-9b1766ef.entry.js → p-674be06c.entry.js} +1 -1
  312. package/dist/solutions-components/{p-a4aef40c.entry.js → p-67ff8e9a.entry.js} +1 -1
  313. package/dist/solutions-components/{p-16df3a9e.entry.js → p-685257d1.entry.js} +1 -1
  314. package/dist/solutions-components/{p-4647c429.js → p-68e0adcf.js} +1 -1
  315. package/dist/solutions-components/{p-fc8338c6.entry.js → p-68e84199.entry.js} +1 -1
  316. package/dist/solutions-components/{p-aa3092cf.js → p-69763854.js} +1 -1
  317. package/dist/solutions-components/{p-e31754c8.js → p-6ae45648.js} +1 -1
  318. package/dist/solutions-components/{p-98013072.entry.js → p-6cce7009.entry.js} +1 -1
  319. package/dist/solutions-components/{p-34cacf32.js → p-6d511162.js} +1 -1
  320. package/dist/solutions-components/{p-337acb3c.js → p-727596e6.js} +1 -1
  321. package/dist/solutions-components/{p-b170916e.js → p-73100e79.js} +2 -2
  322. package/dist/solutions-components/{p-23662977.entry.js → p-734bc1b0.entry.js} +2 -2
  323. package/dist/solutions-components/{p-f3626331.entry.js → p-752ece4a.entry.js} +2 -2
  324. package/dist/solutions-components/{p-ecdd587c.entry.js → p-75e2a322.entry.js} +3 -3
  325. package/dist/solutions-components/{p-ca33fa09.entry.js → p-787203af.entry.js} +1 -1
  326. package/dist/solutions-components/{p-a9fc934d.js → p-79110824.js} +1 -1
  327. package/dist/solutions-components/{p-b82179c0.js → p-793cad54.js} +1 -1
  328. package/dist/solutions-components/{p-0250dec5.js → p-797aa505.js} +1 -1
  329. package/dist/solutions-components/{p-133de052.entry.js → p-7ebd34df.entry.js} +1 -1
  330. package/dist/solutions-components/{p-8934e858.entry.js → p-809b7e47.entry.js} +2 -2
  331. package/dist/solutions-components/{p-ca97465b.js → p-83fd31d5.js} +1 -1
  332. package/dist/solutions-components/{p-2e1f7c0e.entry.js → p-84378c8d.entry.js} +2 -2
  333. package/dist/solutions-components/p-864b1d72.entry.js +6 -0
  334. package/dist/solutions-components/{p-50ea26de.entry.js → p-8b47b607.entry.js} +1 -1
  335. package/dist/solutions-components/{p-f4e91113.js → p-8d49a084.js} +1 -1
  336. package/dist/solutions-components/{p-f84848b0.entry.js → p-8fabb8a4.entry.js} +1 -1
  337. package/dist/solutions-components/p-8fc072ca.entry.js +6 -0
  338. package/dist/solutions-components/{p-29602eff.entry.js → p-96c2ed64.entry.js} +1 -1
  339. package/dist/solutions-components/{p-b42bde59.entry.js → p-978d936a.entry.js} +1 -1
  340. package/dist/solutions-components/{p-79ba73cb.js → p-981e9549.js} +1 -1
  341. package/dist/solutions-components/{p-02714171.entry.js → p-98308b13.entry.js} +2 -2
  342. package/dist/solutions-components/p-99c5701d.entry.js +6 -0
  343. package/dist/solutions-components/{p-fe68d502.js → p-9cbfd8cd.js} +1 -1
  344. package/dist/solutions-components/{p-8f8fe5d0.entry.js → p-a09c8edf.entry.js} +1 -1
  345. package/dist/solutions-components/p-a2d3df14.entry.js +6 -0
  346. package/dist/solutions-components/{p-ac6a3e13.js → p-a5272d7e.js} +1 -1
  347. package/dist/solutions-components/p-a5c5b24d.js +6 -0
  348. package/dist/solutions-components/{p-5d9ad152.entry.js → p-a5e93c7e.entry.js} +1 -1
  349. package/dist/solutions-components/{p-07b31dc9.js → p-a6bb4148.js} +1 -1
  350. package/dist/solutions-components/{p-11b59592.entry.js → p-a8c9ac0b.entry.js} +2 -2
  351. package/dist/solutions-components/{p-41f7bc94.entry.js → p-a9bd945b.entry.js} +1 -1
  352. package/dist/solutions-components/p-ab006ace.js +21 -0
  353. package/dist/solutions-components/{p-634835fe.js → p-abdd289e.js} +1 -1
  354. package/dist/solutions-components/{p-43e67b3c.entry.js → p-aca29f67.entry.js} +2 -2
  355. package/dist/solutions-components/{p-8118146c.entry.js → p-ad96cd8b.entry.js} +1 -1
  356. package/dist/solutions-components/{p-8772a573.js → p-af1bb992.js} +1 -1
  357. package/dist/solutions-components/{p-36eb8399.js → p-b1b768f7.js} +4 -4
  358. package/dist/solutions-components/{p-dd37c504.js → p-b29677ca.js} +1 -1
  359. package/dist/solutions-components/{p-82b4ab94.js → p-b2c5e62b.js} +1 -1
  360. package/dist/solutions-components/{p-db436a77.entry.js → p-b326b592.entry.js} +1 -1
  361. package/dist/solutions-components/{p-a4772574.js → p-b7285bd5.js} +1 -1
  362. package/dist/solutions-components/{p-8b5b4662.js → p-b8959537.js} +1 -1
  363. package/dist/solutions-components/p-ba56035f.entry.js +6 -0
  364. package/dist/solutions-components/{p-c21f578f.js → p-baf4cb37.js} +1 -1
  365. package/dist/solutions-components/{p-799c3f19.js → p-bfebff0e.js} +1 -1
  366. package/dist/solutions-components/p-c0ed2b83.entry.js +6 -0
  367. package/dist/solutions-components/p-c0f97ed2.entry.js +6 -0
  368. package/dist/solutions-components/{p-4af32c75.js → p-c1cf3ebc.js} +1 -1
  369. package/dist/solutions-components/{p-cfb83693.js → p-c3190f85.js} +1 -1
  370. package/dist/solutions-components/{p-0511c98c.js → p-c4ebb5d1.js} +1 -1
  371. package/dist/solutions-components/p-c56fd16c.entry.js +11 -0
  372. package/dist/solutions-components/{p-2d1b8cfa.js → p-c6b9a129.js} +1 -1
  373. package/dist/solutions-components/{p-1cb4c542.entry.js → p-c7e7da9a.entry.js} +1 -1
  374. package/dist/solutions-components/{p-d8b3d156.entry.js → p-ca4023f4.entry.js} +1 -1
  375. package/dist/solutions-components/p-cb1d29d4.entry.js +17 -0
  376. package/dist/solutions-components/p-cc88bb42.entry.js +6 -0
  377. package/dist/solutions-components/{p-034d43fb.js → p-cdee3846.js} +1 -1
  378. package/dist/solutions-components/{p-c5cb8804.js → p-cfb3d66a.js} +1 -1
  379. package/dist/solutions-components/{p-ebbeec9f.entry.js → p-d2d7d6b4.entry.js} +2 -2
  380. package/dist/solutions-components/{p-dd071507.js → p-d44e2fd7.js} +1 -1
  381. package/dist/solutions-components/{p-48a5ae32.entry.js → p-d50f34c4.entry.js} +1 -1
  382. package/dist/solutions-components/{p-5953ebe8.entry.js → p-d9061e5d.entry.js} +1 -1
  383. package/dist/solutions-components/{p-414240b2.js → p-d9a59fcc.js} +1 -1
  384. package/dist/solutions-components/{p-24286e8c.entry.js → p-db69f4ba.entry.js} +1 -1
  385. package/dist/solutions-components/{p-ede84883.js → p-de281b08.js} +2 -2
  386. package/dist/solutions-components/{p-a11fca14.js → p-df118036.js} +1 -1
  387. package/dist/solutions-components/p-e274f3b0.entry.js +23 -0
  388. package/dist/solutions-components/p-e3061220.entry.js +6 -0
  389. package/dist/solutions-components/{p-4613e205.js → p-e6d4bdce.js} +1 -1
  390. package/dist/solutions-components/{p-3c5d3b4a.js → p-e6dfc80f.js} +1 -1
  391. package/dist/solutions-components/{p-92ea9e81.js → p-e834d132.js} +1 -1
  392. package/dist/solutions-components/{p-f9eb2f2d.js → p-ee4e5212.js} +1 -1
  393. package/dist/solutions-components/{p-efce2e85.js → p-ef05dea5.js} +1 -1
  394. package/dist/solutions-components/{p-5fd1eb64.js → p-f0d68a3f.js} +2 -2
  395. package/dist/solutions-components/p-f17941f1.entry.js +6 -0
  396. package/dist/solutions-components/{p-9e3b8632.entry.js → p-f1e6ce96.entry.js} +1 -1
  397. package/dist/solutions-components/p-f54f3719.entry.js +17 -0
  398. package/dist/solutions-components/{p-fdb1ace8.entry.js → p-fb1c6811.entry.js} +2 -2
  399. package/dist/solutions-components/p-fec77450.js +21 -0
  400. package/dist/solutions-components/{p-50764143.entry.js → p-ff460d05.entry.js} +3 -3
  401. package/dist/solutions-components/{p-d1ca57f3.entry.js → p-ff7c9bc3.entry.js} +1 -1
  402. package/dist/solutions-components/{p-0b47b407.js → p-ffa2c430.js} +1 -1
  403. package/dist/solutions-components/{p-89520d31.entry.js → p-ffbed9b2.entry.js} +1 -1
  404. package/dist/solutions-components/solutions-components.esm.js +1 -1
  405. package/dist/solutions-components/utils/interfaces.ts +4 -0
  406. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
  407. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +159 -11
  408. package/dist/types/components/delete-button/delete-button.d.ts +120 -0
  409. package/dist/types/components/edit-card/edit-card.d.ts +2 -1
  410. package/dist/types/components/feature-list/feature-list.d.ts +128 -0
  411. package/dist/types/components/floor-filter/floor-filter.d.ts +13 -0
  412. package/dist/types/components/info-card/info-card.d.ts +19 -0
  413. package/dist/types/components/layer-list/layer-list.d.ts +133 -0
  414. package/dist/types/components/layer-table/layer-table.d.ts +31 -43
  415. package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +5 -1
  416. package/dist/types/components.d.ts +288 -11
  417. package/dist/types/preact.d.ts +18 -2
  418. package/dist/types/utils/interfaces.d.ts +2 -0
  419. package/package.json +3 -3
  420. package/dist/cjs/calcite-filter_2.cjs.entry.js +0 -237
  421. package/dist/cjs/calcite-flow-item.cjs.entry.js +0 -197
  422. package/dist/cjs/calcite-flow.cjs.entry.js +0 -153
  423. package/dist/cjs/calcite-handle.cjs.entry.js +0 -184
  424. package/dist/cjs/resources-55ba2752.js +0 -29
  425. package/dist/esm/calcite-filter_2.entry.js +0 -232
  426. package/dist/esm/calcite-handle.entry.js +0 -180
  427. package/dist/esm/resources-221791b0.js +0 -26
  428. package/dist/solutions-components/p-0200864c.entry.js +0 -11
  429. package/dist/solutions-components/p-02fad071.entry.js +0 -6
  430. package/dist/solutions-components/p-166d5bcc.entry.js +0 -6
  431. package/dist/solutions-components/p-1711c535.entry.js +0 -6
  432. package/dist/solutions-components/p-1f88a556.entry.js +0 -6
  433. package/dist/solutions-components/p-2ddd9cf8.entry.js +0 -6
  434. package/dist/solutions-components/p-3cf20613.entry.js +0 -17
  435. package/dist/solutions-components/p-43546966.entry.js +0 -6
  436. package/dist/solutions-components/p-630e274b.entry.js +0 -6
  437. package/dist/solutions-components/p-6b943f52.js +0 -21
  438. package/dist/solutions-components/p-704da348.entry.js +0 -6
  439. package/dist/solutions-components/p-79f95735.entry.js +0 -11
  440. package/dist/solutions-components/p-7f333e23.js +0 -11
  441. package/dist/solutions-components/p-897037f0.entry.js +0 -6
  442. package/dist/solutions-components/p-8c7fc78f.entry.js +0 -11
  443. package/dist/solutions-components/p-941ab8c0.js +0 -6
  444. package/dist/solutions-components/p-96974e5f.js +0 -6
  445. package/dist/solutions-components/p-a32b61ee.entry.js +0 -6
  446. package/dist/solutions-components/p-ad9fbb2a.entry.js +0 -6
  447. package/dist/solutions-components/p-c252997f.entry.js +0 -17
  448. package/dist/solutions-components/p-c5db42ad.entry.js +0 -6
  449. package/dist/solutions-components/p-d3085b7a.entry.js +0 -6
  450. package/dist/solutions-components/p-e89c5860.entry.js +0 -6
  451. package/dist/solutions-components/p-eb9b003a.entry.js +0 -11
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,h as i,g as a}from"./p-78780f63.js";import{c as e}from"./p-5b566d55.js";import{c as s,s as o,a as n}from"./p-f10944e6.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
10
- * v2.0.0
11
- */const r=class{constructor(i){t(this,i),this.itemMutationObserver=e("mutation",(()=>this.updateFlowProps())),this.getFlowDirection=(t,i)=>t&&i>1||t>1?i<t?"retreating":"advancing":null,this.updateFlowProps=()=>{const{customItemSelectors:t,el:i,items:a}=this,e=Array.from(i.querySelectorAll("calcite-flow-item"+(t?`,${t}`:""))).filter((t=>t.closest("calcite-flow")===i)),s=a.length,o=e.length,n=e[o-1],r=e[o-2];if(o&&n&&e.forEach((t=>{t.showBackButton=t===n&&o>1,t.hidden=t!==n})),r&&(r.menuOpen=!1),this.items=e,s!==o){const t=this.getFlowDirection(s,o);this.itemCount=o,this.flowDirection=t}},this.customItemSelectors=void 0,this.flowDirection=null,this.itemCount=0,this.items=[]}async back(){const{items:t}=this,i=t[t.length-1];if(!i)return;const a=i.beforeBack?i.beforeBack:()=>Promise.resolve();try{await a.call(i)}catch(t){return}return i.remove(),i}async setFocus(){await s(this);const{items:t}=this,i=t[t.length-1];return null==i?void 0:i.setFocus()}connectedCallback(){var t;null===(t=this.itemMutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0}),this.updateFlowProps()}async componentWillLoad(){o(this)}componentDidLoad(){n(this)}disconnectedCallback(){var t;null===(t=this.itemMutationObserver)||void 0===t||t.disconnect()}async handleItemBackClick(t){if(!t.defaultPrevented)return await this.back(),this.setFocus()}render(){const{flowDirection:t}=this;return i("div",{class:{frame:!0,"frame--advancing":"advancing"===t,"frame--retreating":"retreating"===t}},i("slot",null))}get el(){return a(this)}};r.style=":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}";export{r as calcite_flow}
@@ -1,6 +0,0 @@
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{d as e}from"./p-5fd1eb64.js";import"./p-78780f63.js";import"./p-cfccae7c.js";import"./p-ca97465b.js";import"./p-fcefdfff.js";import"./p-29d68474.js";import"./p-0c97de08.js";import"./p-c92fff33.js";import"./p-1e2ffee3.js";import"./p-722ae773.js";import"./p-0c07ad8a.js";import"./p-f10944e6.js";import"./p-ede84883.js";import"./p-5b566d55.js";import"./p-414240b2.js";import"./p-2d1b8cfa.js";import"./p-475ad635.js";import"./p-79ba73cb.js";import"./p-653af7e0.js";function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function r(e,r,t){var a=e+" ";switch(t){case"m":return r?"minuta":"minutę";case"mm":return a+(i(e)?"minuty":"minut");case"h":return r?"godzina":"godzinę";case"hh":return a+(i(e)?"godziny":"godzin");case"MM":return a+(i(e)?"miesiące":"miesięcy");case"yy":return a+(i(e)?"lata":"lat")}}var t="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),a="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),_=/D MMMM/,p=function(e,i){return _.test(i)?t[e.month()]:a[e.month()]};p.s=a,p.f=t;var s={name:"pl",weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),months:p,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:r,y:"rok",yy:r},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};e.locale(s,null,!0);export default s;
@@ -1,6 +0,0 @@
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{d as e}from"./p-5fd1eb64.js";import"./p-78780f63.js";import"./p-cfccae7c.js";import"./p-ca97465b.js";import"./p-fcefdfff.js";import"./p-29d68474.js";import"./p-0c97de08.js";import"./p-c92fff33.js";import"./p-1e2ffee3.js";import"./p-722ae773.js";import"./p-0c07ad8a.js";import"./p-f10944e6.js";import"./p-ede84883.js";import"./p-5b566d55.js";import"./p-414240b2.js";import"./p-2d1b8cfa.js";import"./p-475ad635.js";import"./p-79ba73cb.js";import"./p-653af7e0.js";function r(e){return e>1&&e<5&&1!=~~(e/10)}function t(e,t,m,o){var s=e+" ";switch(m){case"s":return t||o?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?s+(r(e)?"minúty":"minút"):s+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?s+(r(e)?"hodiny":"hodín"):s+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?s+(r(e)?"dni":"dní"):s+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?s+(r(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?s+(r(e)?"roky":"rokov"):s+"rokmi"}}var m={name:"sk",weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),months:"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),monthsShort:"jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"pred %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t}};e.locale(m,null,!0);export default m;
@@ -1,6 +0,0 @@
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 i,c as t,h as s,g as e}from"./p-78780f63.js";import{d as o,t as a}from"./p-ca97465b.js";import{c as l,d as n,u as c}from"./p-0c97de08.js";import{c as h}from"./p-5b566d55.js";import{a as r,s as d,c as p}from"./p-f10944e6.js";import"./p-fcefdfff.js";import"./p-29d68474.js";import"./p-c92fff33.js";const u=class{constructor(s){i(this,s),this.calciteChipGroupSelect=t(this,"calciteChipGroupSelect",6),this.mutationObserver=h("mutation",(()=>this.updateItems())),this.items=[],this.updateItems=i=>{var t;const s=i?i.target:this.slotRefEl;this.items=null==s?void 0:s.assignedElements({flatten:!0}).filter((i=>null==i?void 0:i.matches("calcite-chip"))),null===(t=this.items)||void 0===t||t.forEach((i=>{i.interactive=!0,i.scale=this.scale,i.selectionMode=this.selectionMode})),this.setSelectedItems(!1)},this.setSelectedItems=(i,t)=>{var s,e;t&&(null===(s=this.items)||void 0===s||s.forEach((i=>{const s=t===i;switch(this.selectionMode){case"multiple":s&&(i.selected=!i.selected);break;case"single":i.selected=!!s&&!i.selected;break;case"single-persist":i.selected=!!s}}))),this.selectedItems=null===(e=this.items)||void 0===e?void 0:e.filter((i=>i.selected)),i&&this.calciteChipGroupSelect.emit()},this.disabled=!1,this.label=void 0,this.scale="m",this.selectionMode="none",this.selectedItems=[]}onSelectionModeChange(){this.updateItems()}connectedCallback(){var i;l(this),null===(i=this.mutationObserver)||void 0===i||i.observe(this.el,{childList:!0,subtree:!0})}componentDidRender(){n(this),c(this)}componentDidLoad(){r(this)}disconnectedCallback(){var i;null===(i=this.mutationObserver)||void 0===i||i.disconnect()}async componentWillLoad(){d(this)}calciteInternalChipKeyEventListener(i){var t;if(i.composedPath().includes(this.el)){const s=null===(t=this.items)||void 0===t?void 0:t.filter((i=>!i.disabled));switch(i.detail.key){case"ArrowRight":o(s,i.detail.target,"next");break;case"ArrowLeft":o(s,i.detail.target,"previous");break;case"Home":o(s,i.detail.target,"first");break;case"End":o(s,i.detail.target,"last")}}}calciteChipCloseListener(i){var t,s,e,a;const l=i.target;(null===(t=this.items)||void 0===t?void 0:t.includes(l))&&((null===(s=this.items)||void 0===s?void 0:s.indexOf(l))>0?o(this.items,l,"previous"):0===(null===(e=this.items)||void 0===e?void 0:e.indexOf(l))?o(this.items,l,"next"):o(this.items,l,"first")),this.items=null===(a=this.items)||void 0===a?void 0:a.filter((i=>i!==l))}calciteChipSelectListener(i){i.composedPath().includes(this.el)&&this.setSelectedItems(!0,i.target)}async setFocus(){var i;if(await p(this),!this.disabled)return null===(i=this.selectedItems[0]||this.items[0])||void 0===i?void 0:i.setFocus()}render(){const i="none"===this.selectionMode||"multiple"===this.selectionMode?"group":"radiogroup";return s("div",{"aria-disabled":a(this.disabled),"aria-label":this.label,class:"container",role:i},s("slot",{onSlotchange:this.updateItems,ref:i=>this.slotRefEl=i}))}get el(){return e(this)}static get watchers(){return{selectionMode:["onSelectionModeChange"]}}};u.style=":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{display:flex}.container{display:flex;inline-size:100%;flex-wrap:wrap;gap:0.5rem}::slotted(calcite-chip){flex:none}:host([scale=s]) .container{gap:0.25rem}:host([scale=l]) .container{gap:0.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hidden]){display:none}[hidden]{display:none}";export{u as calcite_chip_group}
@@ -1,6 +0,0 @@
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 a,c as t,h as n,H as s,g as e}from"./p-78780f63.js";import{g as i,a as r,s as l,E as o,b as c,l as p,c as g}from"./p-c9bd3666.js";import{l as d}from"./p-a8a0187d.js";import{c as u}from"./p-86b21da1.js";import{g as h,f as v}from"./p-00f9774c.js";import"./p-225c4ca4.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-14a48b14.js";const m="instant-apps-language-translator",_={BASE:m,header:`${m}__header`,headerText:`${m}__header-text`,savingIndicator:`${m}__saving-indicator`,closeButton:`${m}__close-button`,headerTip:`${m}__header-tip`,topBar:`${m}__top-bar`,topBarSection:`${m}__top-bar-section`,collapseSearchContainer:`${m}__collapse-search-container`,userLangText:`${m}__user-lang-text`,lastItem:`${m}--last-item`,writingIcon:`${m}__writing-icon`},b=class{constructor(n){a(this,n),this.translatorDataUpdated=t(this,"translatorDataUpdated",7),this.portalItem=void 0,this.appSettings=void 0,this.locales=void 0,this.open=!1,this.userLocaleInputOnChangeCallback=void 0,this.translatedLocaleInputOnChangeCallback=void 0,this.saving=!1,this.messages=void 0,this.isCollapse=!0}handleT9nItemUpdate(){this.translatorDataUpdated.emit()}handleLocaleChange(){this.initUIData(),this.initSelectLanguage()}handleAppSettings(){this.initUIData(),this.initSelectLanguage()}async componentDidLoad(){this.initialize()}async initialize(){const[a,t]=await d(["esri/intl","esri/request"]);this.intl=a,this.request=t,await this.initMessages(),this.initUIData(),this.initPortalItemResourceT9nData(),this.initSelectLanguage()}async initMessages(){try{const{el:a}=this,t=await i(a);return this.messages=t,Promise.resolve()}catch(a){return Promise.reject()}}initUIData(){const{appSettings:a,locales:t}=this,n=r(a,t);l.set("uiData",n)}initSelectLanguage(){var a,t;if(!this.intl)return;const{locales:n}=this,s=null!==(t=null===(a=null==n?void 0:n[0])||void 0===a?void 0:a.locale)&&void 0!==t?t:this.intl.getLocale(),e=l.get("currentLanguage");0===this.locales.filter((a=>a.locale===e)).length&&l.set("currentLanguage",s)}async initPortalItemResourceT9nData(){try{const a=await h(this.portalItem);l.set("portalItemResource",a);const t=await v(this.request,a);l.set("portalItemResourceT9n",null!=t?t:{})}catch(a){}}render(){return n(s,null,this.renderModal(),this.renderPopoverTip())}renderModal(){return n("calcite-modal",{open:this.open,scale:"l",fullscreen:!0,onCalciteModalClose:this.close.bind(this)},this.renderHeader(),this.renderContent(),this.renderPrimaryButton())}renderPopoverTip(){var a;return n("calcite-popover",{label:"",referenceElement:"headerTip",placement:"trailing","auto-close":!0,closable:!0},n("div",{class:_.headerTip},null===(a=this.messages)||void 0===a?void 0:a.headerTip))}renderHeader(){const a=l.get("saving");return n("header",{class:_.header,slot:"header"},this.renderHeaderText(),a?this.renderSavingIndicator():null)}renderHeaderText(){const{messages:a}=this;return n("div",{class:_.headerText},n("span",null,null==a?void 0:a.header),n("calcite-button",{id:"headerTip",appearance:"transparent"},n("calcite-icon",{icon:o.Popover,scale:"s"})))}renderSavingIndicator(){var a;const t=l.get("saving"),s=null===(a=this.messages)||void 0===a?void 0:a.saving;return n("div",{class:_.savingIndicator},t?n("calcite-loader",{label:s,inline:!0}):null,n("span",null,s))}renderContent(){const a=c(this.locales);return n("div",{slot:"content"},this.renderTopBar(),(null==a?void 0:a.length)>0?this.renderUIData():this.renderNotice())}renderTopBar(){return n("div",{class:_.topBar},this.renderLeadingTopBarSection(),this.renderTrailingTopBarSection())}renderLeadingTopBarSection(){return n("div",{class:_.topBarSection},this.renderUserLocale(),this.renderCollapseSearchContainer())}renderUserLocale(){var a;const t=null===(a=this.messages)||void 0===a?void 0:a.languages,s=u(this.el);return n("div",{class:_.userLangText},null==t?void 0:t[s])}renderCollapseSearchContainer(){return n("div",{class:_.collapseSearchContainer},this.renderExpandCollapseButton(),this.renderSearch())}renderExpandCollapseButton(){const{isCollapse:a,messages:t}=this,s=a?null==t?void 0:t.collapseAll:null==t?void 0:t.expandAll;return n("calcite-button",{onClick:this.handleExpandCollapseAll.bind(this),appearance:"transparent","icon-start":o.ExpandCollapse},s)}renderSearch(){var a;return n("instant-apps-language-translator-search",{onSuggestionSelected:this.onSuggestionSelect.bind(this),t9nPlaceholder:null===(a=this.messages)||void 0===a?void 0:a.searchPlaceholder})}renderTrailingTopBarSection(){return n("div",{class:_.topBarSection},this.renderLanguageSelection())}renderLanguageSelection(){var a;return n("calcite-label",{layout:"inline"},null===(a=this.messages)||void 0===a?void 0:a.translatedLanguage,n("calcite-select",{label:"",onCalciteSelectChange:this.handleLanguageSelection.bind(this)},this.renderTranslatedLangOptions()))}renderTranslatedLangOptions(){const a=l.get("uiData"),t=null==a?void 0:a.get("locales"),s=c(t);return null==s?void 0:s.map((a=>{const{messages:t}=this,s=null==t?void 0:t.translatedLanguageNames,e=null==t?void 0:t.languages;return n("calcite-option",{key:`translated-lang-option-${a}`,value:a},`${null==s?void 0:s[a]} - ${null==e?void 0:e[a]}`)}))}renderUIData(){if(!(null==p?void 0:p.uiData))return;const a=g();return n("div",null,null==a?void 0:a.map(((t,n)=>this.renderUIDataItem(t,n,a.length))))}renderNotice(){var a;const t=null===(a=this.messages)||void 0===a?void 0:a.noLanguage;return n("calcite-notice",{open:!0,icon:"exclamation-mark-triangle",kind:"warning"},n("div",{slot:"title"},null==t?void 0:t.title),n("div",{slot:"message"},null==t?void 0:t.message))}renderUIDataItem(a,t,s){var e,i;const r=null===(i=null===(e=this.appSettings)||void 0===e?void 0:e.translatedLanguageLabels)||void 0===i?void 0:i[p.currentLanguage],l=`${t===s-1?_.lastItem:""}`,o=this.appSettings.content.filter((t=>t.id===a))[0];return n("instant-apps-language-translator-item",{key:`${a}-${t}`,class:l,fieldName:a,translatedLanguageLabels:r,setting:o,userLocaleInputOnChangeCallback:this.userLocaleInputOnChangeCallback,translatedLocaleInputOnChangeCallback:this.translatedLocaleInputOnChangeCallback})}renderPrimaryButton(){var a;return n("calcite-button",{onClick:()=>this.open=!1,slot:"primary",class:_.closeButton},null===(a=this.messages)||void 0===a?void 0:a.close)}handleExpandCollapseAll(){this.isCollapse=!this.isCollapse;const a=new Map(p.uiData);g().forEach((t=>a.get(t).expanded=this.isCollapse)),l.set("uiData",a)}onSuggestionSelect(a){const t=a.detail,n=new Map(p.uiData);g().forEach((a=>{n.get(a).selected=a===t})),l.set("uiData",n)}close(){this.open=!1}handleLanguageSelection(a){l.set("currentLanguage",a.target.value)}get el(){return e(this)}static get watchers(){return{locales:["handleLocaleChange"],appSettings:["handleAppSettings"]}}};b.style=".sc-instant-apps-language-translator-h{display:block}.sc-instant-apps-language-translator-h calcite-modal.sc-instant-apps-language-translator{--calcite-modal-content-padding:0}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header.sc-instant-apps-language-translator{display:flex;justify-content:space-between;width:100%}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header-text.sc-instant-apps-language-translator{font-size:18px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__saving-indicator.sc-instant-apps-language-translator{display:flex;align-items:center;font-size:14.5px;color:var(--calcite-color-brand)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__writing-icon.sc-instant-apps-language-translator{display:flex;justify-content:center;align-items:center;margin-right:5px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__close-button.sc-instant-apps-language-translator{width:175px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header-tip.sc-instant-apps-language-translator{padding:20px;max-width:45vw}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar.sc-instant-apps-language-translator{display:flex;width:100%;position:sticky;top:0;background:var(--calcite-color-foreground-1);z-index:1}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar.sc-instant-apps-language-translator calcite-label.sc-instant-apps-language-translator{--calcite-label-margin-bottom:0;font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator{box-sizing:border-box;display:flex;align-items:center;width:50%;padding:0.5%}.sc-instant-apps-language-translator-h .instant-apps-language-translator__user-lang-text.sc-instant-apps-language-translator{font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator:first-child{display:flex;justify-content:space-between}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator:nth-child(2) calcite-select.sc-instant-apps-language-translator{width:255px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__collapse-search-container.sc-instant-apps-language-translator{display:flex;justify-content:space-between}.sc-instant-apps-language-translator-h .instant-apps-language-translator__collapse-search-container.sc-instant-apps-language-translator calcite-input.sc-instant-apps-language-translator{width:300px;margin-left:30px}.ck.ck-reset.ck-editor.ck-rounded-corners.sc-instant-apps-language-translator{margin-top:10px !important;margin-left:55px !important}.ck-editor__editable.sc-instant-apps-language-translator{height:70px !important;font-size:0.875rem !important;line-height:1.375 !important}.ck.ck-editor__editable_inline.sc-instant-apps-language-translator>.sc-instant-apps-language-translator:first-child,.ck.ck-editor__editable_inline.sc-instant-apps-language-translator>.sc-instant-apps-language-translator:last-child{--ck-spacing-large:0.5rem !important}";export{b as instant_apps_language_translator}
@@ -1,17 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as e,h as i,H as s,g as n}from"./p-78780f63.js";import{c as a,d as o}from"./p-1be63b50.js";import{s as l,u as c,f as r,t as h,z as d,a as p}from"./p-ca97465b.js";import{a as u,s as f,c as g}from"./p-f10944e6.js";import{c as b,d as m,n as v}from"./p-ede84883.js";import{c as x}from"./p-5b566d55.js";import{u as y,c as w,s as C,d as k}from"./p-79ba73cb.js";import{t as L,o as I,q as E,g as S,a as z,E as D,b as A}from"./p-b170916e.js";import{d as j}from"./p-a82f35c9.js";import{c as M,u as H,d as F}from"./p-0c97de08.js";import{u as T,a as P,M as O,g as G,I as W,C as _,S as B,b as N}from"./p-dbacb910.js";import{d as R,a as K,c as U}from"./p-3f279568.js";import{S as $}from"./p-7f333e23.js";import"./p-fcefdfff.js";import"./p-29d68474.js";import"./p-1e2ffee3.js";import"./p-428554b4.js";import"./p-ea83d12d.js";import"./p-c92fff33.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
10
- * v2.0.0
11
- */const q=class{constructor(i){t(this,i),this.calciteActionBarToggle=e(this,"calciteActionBarToggle",6),this.mutationObserver=x("mutation",(()=>{const{el:t,expanded:e}=this;L({el:t,expanded:e}),this.overflowActions()})),this.resizeObserver=x("resize",(t=>this.resizeHandlerEntries(t))),this.actionMenuOpenHandler=t=>{if(t.target.menuOpen){const e=t.composedPath();Array.from(this.el.querySelectorAll("calcite-action-group")).forEach((t=>{e.includes(t)||(t.menuOpen=!1)}))}},this.resizeHandlerEntries=t=>{t.forEach(this.resizeHandler)},this.resizeHandler=t=>{const{width:e,height:i}=t.contentRect;this.resize({width:e,height:i})},this.resize=j((({width:t,height:e})=>{const{el:i,expanded:s,expandDisabled:n,layout:a,overflowActionsDisabled:o}=this;if(o||"vertical"===a&&!e||"horizontal"===a&&!t)return;const l=E(i),c=n?l.length:l.length+1,r=Array.from(i.querySelectorAll("calcite-action-group"));this.setGroupLayout(r);const h=this.hasActionsEnd||this.hasBottomActions||!n?r.length+1:r.length,{actionHeight:d,actionWidth:p}=S(l),u=A({layout:a,actionCount:c,actionHeight:d,actionWidth:p,height:e,width:t,groupCount:h});z({actionGroups:r,expanded:s,overflowCount:u})}),I),this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionBarToggle.emit()},this.setExpandToggleRef=t=>{this.expandToggleEl=t},this.handleDefaultSlotChange=t=>{const e=l(t).filter((t=>t.matches("calcite-action-group")));this.setGroupLayout(e)},this.handleActionsEndSlotChange=t=>{this.hasActionsEnd=c(t)},this.handleBottomActionsSlotChange=t=>{this.hasBottomActions=c(t)},this.handleTooltipSlotChange=t=>{const e=l(t).filter((t=>null==t?void 0:t.matches("calcite-tooltip")));this.expandTooltip=e[0]},this.actionsEndGroupLabel=void 0,this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.overflowActionsDisabled=!1,this.position=void 0,this.scale=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.hasActionsEnd=!1,this.hasBottomActions=!1,this.expandTooltip=void 0,this.defaultMessages=void 0}expandHandler(){this.overflowActions()}expandedHandler(){const{el:t,expanded:e}=this;L({el:t,expanded:e}),this.overflowActions()}layoutHandler(){this.updateGroups()}overflowDisabledHandler(t){var e,i;t?null===(e=this.resizeObserver)||void 0===e||e.disconnect():(null===(i=this.resizeObserver)||void 0===i||i.observe(this.el),this.overflowActions())}onMessagesChange(){}effectiveLocaleChange(){y(this,this.effectiveLocale)}componentDidLoad(){const{el:t,expanded:e}=this;u(this),L({el:t,expanded:e}),this.overflowActions()}connectedCallback(){var t,e;const{el:i,expanded:s}=this;b(this),w(this),L({el:i,expanded:s}),null===(t=this.mutationObserver)||void 0===t||t.observe(i,{childList:!0,subtree:!0}),this.overflowActionsDisabled||null===(e=this.resizeObserver)||void 0===e||e.observe(i),this.overflowActions(),a(this)}async componentWillLoad(){f(this),await C(this)}disconnectedCallback(){var t,e;null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),o(this),m(this),k(this)}async overflowActions(){this.resize({width:this.el.clientWidth,height:this.el.clientHeight})}async setFocus(){await g(this),r(this.el)}updateGroups(){this.setGroupLayout(Array.from(this.el.querySelectorAll("calcite-action-group")))}setGroupLayout(t){t.forEach((t=>t.layout=this.layout))}renderBottomActionGroup(){const{expanded:t,expandDisabled:e,el:s,position:n,toggleExpand:a,scale:o,layout:l,messages:c,actionsEndGroupLabel:r}=this,h=e?null:i(D,{collapseText:c.collapse,el:s,expandText:c.expand,expanded:t,position:n,scale:o,toggle:a,tooltip:this.expandTooltip,ref:this.setExpandToggleRef});return i("calcite-action-group",{class:"action-group--end",hidden:this.expandDisabled&&!(this.hasActionsEnd||this.hasBottomActions),label:r,layout:l,scale:o},i("slot",{name:"actions-end",onSlotchange:this.handleActionsEndSlotChange}),i("slot",{name:"bottom-actions",onSlotchange:this.handleBottomActionsSlotChange}),i("slot",{name:"expand-tooltip",onSlotchange:this.handleTooltipSlotChange}),h)}render(){return i(s,{onCalciteActionMenuOpen:this.actionMenuOpenHandler},i("slot",{onSlotchange:this.handleDefaultSlotChange}),this.renderBottomActionGroup())}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{expandDisabled:["expandHandler"],expanded:["expandedHandler"],layout:["layoutHandler"],overflowActionsDisabled:["overflowDisabledHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};q.style=":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{pointer-events:auto;display:inline-flex;align-self:stretch;--calcite-action-bar-expanded-max-width:auto}:host([layout=vertical]){flex-direction:column}:host([layout=vertical]) .action-group--end{margin-block-start:auto}:host([layout=horizontal]){flex-direction:row}:host([layout=horizontal]) .action-group--end{margin-inline-start:auto}:host([layout=vertical][overflow-actions-disabled]){overflow-y:auto}:host([layout=horizontal][overflow-actions-disabled]){overflow-x:auto}:host([layout=vertical][expanded]){max-inline-size:var(--calcite-action-bar-expanded-max-width)}::slotted(calcite-action-group){border-block-end:1px solid var(--calcite-color-border-3)}:host([layout=horizontal]) ::slotted(calcite-action-group){border-block-end:0;border-inline-end:1px solid var(--calcite-color-border-3)}:host([layout=horizontal][expand-disabled]) ::slotted(calcite-action-group:last-of-type){border-inline-end:0}::slotted(calcite-action-group:last-child){border-block-end:0;border-inline-end:0}.action-group--end{justify-content:flex-end}:host([hidden]){display:none}[hidden]{display:none}";
12
- /*!
13
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
14
- * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
15
- * v2.0.0
16
- */
17
- const J="assistive-text",Q="calcite-list-item",V=class{constructor(i){t(this,i),this.calciteListChange=e(this,"calciteListChange",6),this.calciteListFilter=e(this,"calciteListFilter",6),this.calciteListOrderChange=e(this,"calciteListOrderChange",6),this.calciteInternalListDefaultSlotChange=e(this,"calciteInternalListDefaultSlotChange",6),this.dragSelector="calcite-list-item",this.enabledListItems=[],this.handleSelector="calcite-handle",this.listItems=[],this.mutationObserver=x("mutation",(()=>this.updateListItems())),this.handleDefaultSlotChange=t=>{T(P(t.target)),this.parentListEl&&this.calciteInternalListDefaultSlotChange.emit()},this.handleFilterActionsStartSlotChange=t=>{this.hasFilterActionsStart=c(t)},this.handleFilterActionsEndSlotChange=t=>{this.hasFilterActionsEnd=c(t)},this.setActiveListItem=()=>{const{enabledListItems:t}=this;t.some((t=>t.active))||t[0]&&(t[0].active=!0)},this.updateSelectedItems=(t=!1)=>{this.selectedItems=this.enabledListItems.filter((t=>t.selected)),t&&this.calciteListChange.emit()},this.updateFilteredItems=(t=!1)=>{const{listItems:e,filteredData:i,filterText:s}=this,n=i.map((t=>t.value)),a=null==e?void 0:e.filter((t=>e.every((e=>e===t||!t.contains(e))))),o=e.filter((t=>!s||n.includes(t.value)))||[],l=new WeakSet;a.forEach((t=>this.filterElements({el:t,filteredItems:o,visibleParents:l}))),o.length>0&&this.findAncestorOfFirstFilteredItem(o),this.filteredItems=o,t&&this.calciteListFilter.emit()},this.setFilterEl=t=>{this.filterEl=t,this.performFilter()},this.handleFilterChange=t=>{t.stopPropagation();const{value:e}=t.currentTarget;this.filterText=e,this.updateFilteredData(!0)},this.getItemData=()=>this.listItems.map((t=>({label:t.label,description:t.description,metadata:t.metadata,value:t.value}))),this.updateListItems=j(((t=!1)=>{const{selectionAppearance:e,selectionMode:i,dragEnabled:s}=this;if(this.parentListEl)return this.queryListItems(!0).forEach((t=>{t.dragHandle=s})),void this.setUpSorting();const n=this.queryListItems();n.forEach((t=>{t.selectionAppearance=e,t.selectionMode=i})),this.queryListItems(!0).forEach((t=>{t.dragHandle=s})),this.listItems=n,this.filterEnabled&&(this.dataForFilter=this.getItemData(),this.filterEl&&(this.filterEl.items=this.dataForFilter)),this.updateFilteredItems(t),this.enabledListItems=this.filteredItems.filter((t=>!t.disabled&&!t.closed)),this.setActiveListItem(),this.updateSelectedItems(t),this.setUpSorting()}),0),this.queryListItems=(t=!1)=>Array.from(this.el.querySelectorAll(t?":scope > calcite-list-item":Q)),this.focusRow=t=>{const{enabledListItems:e}=this;t&&(e.forEach((e=>e.active=e===t)),t.setFocus())},this.isNavigable=t=>{var e;const i=null===(e=t.parentElement)||void 0===e?void 0:e.closest(Q);return!i||i.open&&this.isNavigable(i)},this.handleListKeydown=t=>{var e;if(t.defaultPrevented||this.parentListEl)return;const{key:i}=t,s=this.enabledListItems.filter((t=>this.isNavigable(t))),n=s.findIndex((t=>t.active));if("ArrowDown"===i){t.preventDefault();const e=t.target===this.filterEl?0:n+1;s[e]&&this.focusRow(s[e])}else if("ArrowUp"===i){if(t.preventDefault(),0===n&&this.filterEnabled)return void(null===(e=this.filterEl)||void 0===e||e.setFocus());const i=n-1;s[i]&&this.focusRow(s[i])}else if("Home"===i){t.preventDefault();const e=s[0];e&&this.focusRow(e)}else if("End"===i){t.preventDefault();const e=s[s.length-1];e&&this.focusRow(e)}},this.findAncestorOfFirstFilteredItem=t=>{var e,i;null===(e=this.ancestorOfFirstFilteredItem)||void 0===e||e.removeAttribute("data-filter"),t.forEach((t=>{t.removeAttribute("data-filter")})),this.ancestorOfFirstFilteredItem=this.getTopLevelAncestorItemElement(t[0]),t[0].setAttribute("data-filter","0"),null===(i=this.ancestorOfFirstFilteredItem)||void 0===i||i.setAttribute("data-filter","0")},this.getTopLevelAncestorItemElement=t=>{let e=t.parentElement.closest("calcite-list-item");for(;e;){const t=e.parentElement.closest("calcite-list-item");if(!t)return e;e=t}return null},this.disabled=!1,this.canPull=void 0,this.canPut=void 0,this.dragEnabled=!1,this.group=void 0,this.filterEnabled=!1,this.filteredItems=[],this.filteredData=[],this.filterPlaceholder=void 0,this.filterText=void 0,this.label=void 0,this.loading=!1,this.messageOverrides=void 0,this.messages=void 0,this.numberingSystem=void 0,this.openable=!1,this.selectedItems=[],this.selectionMode="none",this.selectionAppearance="icon",this.effectiveLocale="",this.defaultMessages=void 0,this.assistiveText=void 0,this.dataForFilter=[],this.hasFilterActionsEnd=!1,this.hasFilterActionsStart=!1}async handleFilterTextChange(){this.performFilter()}onMessagesChange(){}handleListItemChange(){this.updateListItems()}handleCalciteInternalFocusPreviousItem(t){if(this.parentListEl)return;t.stopPropagation();const{enabledListItems:e}=this,i=e.findIndex((t=>t.active))-1;e[i]&&this.focusRow(e[i])}handleCalciteInternalListItemActive(t){if(this.parentListEl)return;t.stopPropagation();const e=t.target,{listItems:i}=this;i.forEach((t=>{t.active=t===e}))}handleCalciteListItemSelect(){this.parentListEl||this.updateSelectedItems(!0)}handleCalciteInternalHandleChange(t){this.assistiveText=t.detail.message,t.stopPropagation()}handleCalciteHandleNudge(t){this.parentListEl||this.handleNudgeEvent(t)}handleCalciteInternalListItemSelect(t){if(this.parentListEl)return;t.stopPropagation();const e=t.target,{listItems:i,selectionMode:s}=this;!e.selected||"single"!==s&&"single-persist"!==s||i.forEach((t=>t.selected=t===e)),this.updateSelectedItems()}handleCalciteInternalListItemSelectMultiple(t){if(this.parentListEl)return;t.stopPropagation();const{target:e,detail:i}=t,{enabledListItems:s,lastSelectedInfo:n}=this,a=e;if(i.selectMultiple&&n){const t=s.indexOf(a),e=s.indexOf(n.selectedItem),i=Math.min(e,t),o=Math.max(e,t);s.slice(i,o+1).forEach((t=>t.selected=n.selected))}else this.lastSelectedInfo={selectedItem:a,selected:a.selected}}handleCalciteInternalListItemChange(t){this.parentListEl||(t.stopPropagation(),this.updateListItems())}handleCalciteInternalListItemGroupDefaultSlotChange(t){t.stopPropagation()}connectedCallback(){R(this)||(w(this),this.connectObserver(),this.updateListItems(),this.setUpSorting(),M(this),this.setParentList())}async componentWillLoad(){f(this),await C(this)}componentDidRender(){H(this)}componentDidLoad(){u(this)}disconnectedCallback(){R(this)||(this.disconnectObserver(),K(this),F(this),k(this))}effectiveLocaleChange(){y(this,this.effectiveLocale)}async setFocus(){var t,e;return await g(this),this.filterEnabled?null===(t=this.filterEl)||void 0===t?void 0:t.setFocus():null===(e=this.enabledListItems.find((t=>t.active)))||void 0===e?void 0:e.setFocus()}render(){const{loading:t,label:e,disabled:s,dataForFilter:n,filterEnabled:a,filterPlaceholder:o,filterText:l,hasFilterActionsStart:c,hasFilterActionsEnd:r}=this;return i("div",{class:"container"},this.dragEnabled?i("span",{"aria-live":"assertive",class:J},this.assistiveText):null,this.renderItemAriaLive(),t?i("calcite-scrim",{class:"scrim",loading:t}):null,i("table",{"aria-busy":h(t),"aria-label":e||"",class:"table",onKeyDown:this.handleListKeydown,role:"treegrid"},a||c||r?i("thead",null,i("tr",{class:{"sticky-pos":!0}},i("th",{colSpan:O},i("calcite-stack",{class:"stack"},i("slot",{name:"filter-actions-start",onSlotchange:this.handleFilterActionsStartSlotChange,slot:$.actionsStart}),i("calcite-filter",{"aria-label":o,disabled:s,items:n,onCalciteFilterChange:this.handleFilterChange,placeholder:o,value:l,ref:this.setFilterEl}),i("slot",{name:"filter-actions-end",onSlotchange:this.handleFilterActionsEndSlotChange,slot:$.actionsEnd}))))):null,i("tbody",{class:"table-container"},i("slot",{onSlotchange:this.handleDefaultSlotChange}))))}renderItemAriaLive(){const{messages:t,enabledListItems:e,parentListEl:s,effectiveLocale:n,numberingSystem:a,filterEnabled:o,filterText:l,filteredData:c}=this;return v.numberFormatOptions={locale:n,numberingSystem:a},s?null:i("div",{"aria-live":"polite",class:J},o&&l&&(null==c?void 0:c.length)?i("div",{key:"aria-filter-enabled"},t.filterEnabled):null,i("div",{key:"aria-item-count"},t.total.replace("{count}",v.localize(e.length.toString()))),e.length?i("ol",{key:"aria-item-list"},e.map((t=>i("li",null,t.label)))):null)}connectObserver(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0})}disconnectObserver(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect()}setUpSorting(){const{dragEnabled:t}=this;t&&U(this)}onDragStart(){this.disconnectObserver()}onDragEnd(){this.connectObserver()}onDragSort(t){this.setParentList(),this.updateListItems(),this.calciteListOrderChange.emit(t)}setParentList(){var t;this.parentListEl=null===(t=this.el.parentElement)||void 0===t?void 0:t.closest("calcite-list")}filterElements({el:t,filteredItems:e,visibleParents:i}){const s=!i.has(t)&&!e.includes(t);t.hidden=s;const n=t.parentElement.closest("calcite-list-item-group, calcite-list-item");n&&(s||i.add(n),this.filterElements({el:n,filteredItems:e,visibleParents:i}))}updateFilteredData(t=!1){const{filterEl:e}=this;e&&(e.filteredItems&&(this.filteredData=e.filteredItems),this.updateListItems(t))}async performFilter(){const{filterEl:t,filterText:e}=this;t&&(t.value=e,await t.filter(e),this.updateFilteredData())}handleNudgeEvent(t){const{direction:e}=t.detail,i=t.composedPath(),s=i.find((t=>"CALCITE-HANDLE"===t.tagName)),n=i.find((t=>"CALCITE-LIST-ITEM"===t.tagName)),a=null==n?void 0:n.parentElement;if(!a)return;const{enabledListItems:o}=this,l=o.filter((t=>t.parentElement===a)),c=l.length-1,r=l.indexOf(n);let h,d=!1;"up"===e?0===r?(d=!0,h=c):h=r-1:r===c?h=0:r===c-1?(d=!0,h=c):h=r+2,this.disconnectObserver(),d?a.appendChild(n):a.insertBefore(n,l[h]),this.updateListItems(),this.connectObserver(),this.calciteListOrderChange.emit({dragEl:n,fromEl:a,toEl:a,newIndex:h,oldIndex:r}),s.setFocus().then((()=>{s.activated=!0}))}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{filterText:["handleFilterTextChange"],messageOverrides:["onMessagesChange"],filterEnabled:["handleListItemChange"],group:["handleListItemChange"],dragEnabled:["handleListItemChange"],selectionMode:["handleListItemChange"],selectionAppearance:["handleListItemChange"],effectiveLocale:["effectiveLocaleChange"]}}};V.style=":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{display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{position:relative}.table-container{box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}.table-container *{box-sizing:border-box}.table{inline-size:100%;border-collapse:collapse}.stack{--calcite-stack-padding-inline:0;--calcite-stack-padding-block:0}::slotted(calcite-list-item){--tw-shadow:0 -1px 0 var(--calcite-color-border-3);--tw-shadow-colored:0 -1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);margin-block-start:1px}::slotted(calcite-list-item:first-of-type){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}::slotted(calcite-list-item[data-filter]){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);margin-block-start:0px}.sticky-pos{position:sticky;inset-block-start:0px;z-index:var(--calcite-z-index-sticky);background-color:var(--calcite-color-foreground-1)}.sticky-pos th{padding:0px}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}";const X=new Map,Y=class{constructor(i){t(this,i),this.calciteListItemSelect=e(this,"calciteListItemSelect",6),this.calciteListItemClose=e(this,"calciteListItemClose",6),this.calciteInternalListItemSelect=e(this,"calciteInternalListItemSelect",6),this.calciteInternalListItemSelectMultiple=e(this,"calciteInternalListItemSelectMultiple",6),this.calciteInternalListItemActive=e(this,"calciteInternalListItemActive",6),this.calciteInternalFocusPreviousItem=e(this,"calciteInternalFocusPreviousItem",6),this.calciteInternalListItemChange=e(this,"calciteInternalListItemChange",6),this.closeClickHandler=()=>{this.closed=!0,this.calciteListItemClose.emit()},this.handleContentSlotChange=t=>{this.hasCustomContent=c(t)},this.handleActionsStartSlotChange=t=>{this.hasActionsStart=c(t)},this.handleActionsEndSlotChange=t=>{this.hasActionsEnd=c(t)},this.handleContentStartSlotChange=t=>{this.hasContentStart=c(t)},this.handleContentEndSlotChange=t=>{this.hasContentEnd=c(t)},this.handleContentBottomSlotChange=t=>{this.hasContentBottom=c(t)},this.handleDefaultSlotChange=t=>{this.handleOpenableChange(t.target)},this.toggleOpen=()=>{this.open=!this.open},this.itemClicked=t=>{t.defaultPrevented||(this.toggleSelected(t.shiftKey),this.calciteInternalListItemActive.emit())},this.toggleSelected=t=>{const{selectionMode:e,selected:i}=this;this.disabled||("multiple"===e||"single"===e?this.selected=!i:"single-persist"===e&&(this.selected=!0),this.calciteInternalListItemSelectMultiple.emit({selectMultiple:t&&"multiple"===e}),this.calciteListItemSelect.emit())},this.handleItemKeyDown=t=>{if(t.defaultPrevented)return;const{key:e}=t,i=t.composedPath(),{containerEl:s,contentEl:n,actionsStartEl:a,actionsEndEl:o,open:l,openable:c}=this,r=[a,n,o].filter((t=>t&&!t.hidden)),h=r.findIndex((t=>i.includes(t)));if("Enter"!==e||i.includes(a)||i.includes(o)){if("ArrowRight"===e){t.preventDefault();const e=h+1;-1===h?!l&&c?(this.open=!0,this.focusCell(null)):r[0]&&this.focusCell(r[0]):r[h]&&r[e]&&this.focusCell(r[e])}else if("ArrowLeft"===e){t.preventDefault();const e=h-1;-1===h?(this.focusCell(null),l&&c?this.open=!1:this.calciteInternalFocusPreviousItem.emit()):0===h?(this.focusCell(null),s.focus()):r[h]&&r[e]&&this.focusCell(r[e])}}else t.preventDefault(),this.toggleSelected(t.shiftKey)},this.focusCellNull=()=>{this.focusCell(null)},this.focusCell=(t,e=!0)=>{const{contentEl:i,actionsStartEl:s,actionsEndEl:n,parentListEl:a}=this;e&&X.set(a,null);const o=d(t);[s,i,n].filter((t=>t&&!t.hidden)).forEach(((i,s)=>{const n="tabindex";i===t?(t===o&&i.setAttribute(n,"0"),e&&X.set(a,s)):i.removeAttribute(n)})),null==o||o.focus()},this.active=!1,this.closable=!1,this.closed=!1,this.description=void 0,this.disabled=!1,this.dragDisabled=!1,this.dragHandle=!1,this.label=void 0,this.metadata=void 0,this.open=!1,this.setSize=null,this.setPosition=null,this.selected=!1,this.value=void 0,this.selectionMode=null,this.selectionAppearance=null,this.messageOverrides=void 0,this.messages=void 0,this.effectiveLocale="",this.defaultMessages=void 0,this.level=null,this.visualLevel=null,this.parentListEl=void 0,this.openable=!1,this.hasActionsStart=!1,this.hasActionsEnd=!1,this.hasCustomContent=!1,this.hasContentStart=!1,this.hasContentEnd=!1,this.hasContentBottom=!1}activeHandler(t){t||this.focusCell(null,!1)}handleClosedChange(){this.emitCalciteInternalListItemChange()}handleDisabledChange(){this.emitCalciteInternalListItemChange()}handleSelectedChange(){this.calciteInternalListItemSelect.emit()}onMessagesChange(){}handleCalciteInternalListDefaultSlotChanges(t){t.stopPropagation(),this.handleOpenableChange(this.defaultSlotEl)}effectiveLocaleChange(){y(this,this.effectiveLocale)}connectedCallback(){M(this),b(this),w(this);const{el:t}=this;this.parentListEl=t.closest("calcite-list"),this.level=G(t)+1,this.visualLevel=G(t,!0),this.setSelectionDefaults()}async componentWillLoad(){f(this),await C(this)}componentDidLoad(){u(this)}componentDidRender(){H(this)}disconnectedCallback(){F(this),m(this),k(this)}async setFocus(){await g(this);const{containerEl:t,contentEl:e,actionsStartEl:i,actionsEndEl:s,parentListEl:n}=this,a=X.get(n);if("number"!=typeof a)null==t||t.focus();else{const n=[i,e,s].filter((t=>t&&!t.hidden));n[a]?this.focusCell(n[a]):null==t||t.focus()}}renderSelected(){const{selected:t,selectionMode:e,selectionAppearance:s}=this;return"none"===e||"border"===s?null:i("td",{class:_.selectionContainer,key:"selection-container",onClick:this.itemClicked},i("calcite-icon",{icon:t?"multiple"===e?W.selectedMultiple:W.selectedSingle:W.unselected,scale:"s"}))}renderDragHandle(){return this.dragHandle?i("td",{class:_.dragContainer,key:"drag-handle-container"},i("calcite-handle",{disabled:this.dragDisabled,label:this.label,setPosition:this.setPosition,setSize:this.setSize})):null}renderOpen(){const{el:t,open:e,openable:s,parentListEl:n}=this,a=p(t),o=s?e?W.open:"rtl"===a?W.closedRTL:W.closedLTR:W.blank;return s||(null==n?void 0:n.openable)?i("td",{class:_.openContainer,key:"open-container",onClick:s?this.toggleOpen:this.itemClicked},i("calcite-icon",{icon:o,key:o,scale:"s"})):null}renderActionsStart(){const{label:t,hasActionsStart:e}=this;return i("td",{"aria-label":t,class:_.actionsStart,hidden:!e,key:"actions-start-container",role:"gridcell",ref:t=>this.actionsStartEl=t},i("slot",{name:B.actionsStart,onSlotchange:this.handleActionsStartSlotChange}))}renderActionsEnd(){const{label:t,hasActionsEnd:e,closable:s,messages:n}=this;return i("td",{"aria-label":t,class:_.actionsEnd,hidden:!(e||s),key:"actions-end-container",role:"gridcell",ref:t=>this.actionsEndEl=t},i("slot",{name:B.actionsEnd,onSlotchange:this.handleActionsEndSlotChange}),s?i("calcite-action",{appearance:"transparent",icon:W.close,key:"close-action",label:n.close,onClick:this.closeClickHandler,text:n.close}):null)}renderContentStart(){const{hasContentStart:t}=this;return i("div",{class:_.contentStart,hidden:!t},i("slot",{name:B.contentStart,onSlotchange:this.handleContentStartSlotChange}))}renderCustomContent(){const{hasCustomContent:t}=this;return i("div",{class:_.customContent,hidden:!t},i("slot",{name:B.content,onSlotchange:this.handleContentSlotChange}))}renderContentEnd(){const{hasContentEnd:t}=this;return i("div",{class:_.contentEnd,hidden:!t},i("slot",{name:B.contentEnd,onSlotchange:this.handleContentEndSlotChange}))}renderContentBottom(){const{hasContentBottom:t,visualLevel:e}=this;return i("div",{class:_.contentBottom,hidden:!t,style:{"--calcite-list-item-spacing-indent-multiplier":`${e}`}},i("slot",{name:B.contentBottom,onSlotchange:this.handleContentBottomSlotChange}))}renderDefaultContainer(){return i("div",{class:{[_.nestedContainer]:!0,[_.nestedContainerHidden]:this.openable&&!this.open}},i("slot",{onSlotchange:this.handleDefaultSlotChange,ref:t=>this.defaultSlotEl=t}))}renderContentProperties(){const{label:t,description:e,hasCustomContent:s}=this;return s||!t&&!e?null:i("div",{class:_.content,key:"content"},t?i("div",{class:_.label,key:"label"},t):null,e?i("div",{class:_.description,key:"description"},e):null)}renderContentContainer(){const{description:t,label:e,selectionMode:s,hasCustomContent:n}=this,a=n||!!e||!!t,o=[this.renderContentStart(),this.renderCustomContent(),this.renderContentProperties(),this.renderContentEnd()];return i("td",{"aria-label":e,class:{[_.contentContainer]:!0,[_.contentContainerSelectable]:"none"!==s,[_.contentContainerHasCenterContent]:a},key:"content-container",onClick:this.itemClicked,role:"gridcell",ref:t=>this.contentEl=t},o)}render(){const{openable:t,open:e,level:n,setPosition:a,setSize:o,active:l,label:c,selected:r,selectionAppearance:d,selectionMode:p,closed:u,visualLevel:f}=this,g="none"!==p&&"border"===d,b=g&&r,m=g&&!r;return i(s,null,i("tr",{"aria-expanded":t?h(e):null,"aria-label":c,"aria-level":n,"aria-posinset":a,"aria-selected":h(r),"aria-setsize":o,class:{[_.container]:!0,[_.containerBorderSelected]:b,[_.containerBorderUnselected]:m},hidden:u,onFocus:this.focusCellNull,onKeyDown:this.handleItemKeyDown,role:"row",style:{"--calcite-list-item-spacing-indent-multiplier":`${f}`},tabIndex:l?0:-1,ref:t=>this.containerEl=t},this.renderDragHandle(),this.renderSelected(),this.renderOpen(),this.renderActionsStart(),this.renderContentContainer(),this.renderActionsEnd()),this.renderContentBottom(),this.renderDefaultContainer())}emitCalciteInternalListItemChange(){this.calciteInternalListItemChange.emit()}setSelectionDefaults(){const{parentListEl:t,selectionMode:e,selectionAppearance:i}=this;t&&(e||(this.selectionMode=t.selectionMode),i||(this.selectionAppearance=t.selectionAppearance))}handleOpenableChange(t){if(!t)return;const{parentListEl:e}=this,i=P(t),s=N(t);T(i);const n=!!i.length||!!s.length;n&&e&&!e.openable&&(e.openable=!0),this.openable=n,n||(this.open=!1)}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{active:["activeHandler"],closed:["handleClosedChange"],disabled:["handleDisabledChange"],selected:["handleSelectedChange"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};Y.style=":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{display:flex;flex-direction:column;--calcite-list-item-icon-color:var(--calcite-color-brand);--calcite-list-item-spacing-indent:1rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{box-sizing:border-box;display:flex;flex:1 1 0%;background-color:var(--calcite-color-foreground-1);font-family:var(--calcite-sans-family);padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}.container *{box-sizing:border-box}.container:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}.container:active{background-color:var(--calcite-color-foreground-1)}.container--border-selected{border-inline-start:4px solid var(--calcite-color-brand)}.container--border-unselected{border-inline-start:4px solid transparent}.nested-container{display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1)}.nested-container--hidden{display:none}.content-container{display:flex;flex:1 1 auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:stretch;padding:0px;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}tr,td{outline-color:transparent}tr:focus,td:focus{outline:2px solid var(--calcite-color-brand);outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.content,.custom-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}.label,.description,.content-bottom{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}.label:only-child,.description:only-child,.content-bottom:only-child{margin:0px;padding-block:0.25rem}.label{color:var(--calcite-color-text-1)}.description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:1 1 auto}.content-bottom{display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1);padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}.content-container--has-center-content .content-start,.content-container--has-center-content .content-end{flex:0 1 auto}.selection-container{display:flex;padding-inline:0.75rem;color:var(--calcite-list-item-icon-color)}.actions-start,.actions-end,.content-start,.content-end,.selection-container,.drag-container,.open-container{display:flex;align-items:center}.open-container,.selection-container{cursor:pointer}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){margin-inline:0.75rem;align-self:center}.actions-start ::slotted(calcite-action),.actions-start ::slotted(calcite-action-menu),.actions-start ::slotted(calcite-handle),.actions-start ::slotted(calcite-dropdown),.actions-end ::slotted(calcite-action),.actions-end ::slotted(calcite-action-menu),.actions-end ::slotted(calcite-handle),.actions-end ::slotted(calcite-dropdown){align-self:stretch;color:inherit}::slotted(calcite-list-item){border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}::slotted(calcite-list:empty){padding-block:0.75rem}:host([hidden]){display:none}[hidden]{display:none}";export{q as calcite_action_bar,V as calcite_list,Y as calcite_list_item}
@@ -1,6 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as n,h as i,H as s,g as e}from"./p-78780f63.js";import{g as o}from"./p-86b21da1.js";import{l as a}from"./p-a8a0187d.js";import{g as r}from"./p-c96eb2db.js";import"./p-14a48b14.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";const p="instant-apps-export calcite-mode-light",l="instant-apps-export-print",h="instant-apps-export-print__content-container",c="instant-apps-export-print__extra-container",d="instant-apps-export-print__legend-container",u="instant-apps-export-print__compass-container",v="instant-apps-export-print__scale-bar-container",x="instant-apps-export-print__popup-container",b="instant-apps-export-print__popup-content",_="instant-apps-export-print__popup-title",g="instant-apps-export-print__view",m="instant-apps-export-print__view-container",f="instant-apps-export-print__view-wrapper",w="instant-app-export-drag",k=class{constructor(i){t(this,i),this.exportOutputUpdated=n(this,"exportOutputUpdated",7),this.output=void 0,this.beforeExport=()=>Promise.resolve(),this.popoverIcon="export",this.extraContent=void 0,this.extraContentLabel=void 0,this.headerTitle="",this.includeExtraContent=!0,this.includeLegend=!0,this.includeMap=!0,this.includePopup=!1,this.mode="popover",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.scale="m",this.showHeaderTitle=!0,this.showIncludeLegend=!0,this.showIncludeMap=!1,this.showIncludePopup=!0,this.showScaleBar=!0,this.view=void 0,this.maskBackground="rgba(255, 51, 0, 0.1)",this.maskBorder="2px dashed rgb(255, 51, 0)",this.baseClass=p,this.exportIsLoading=void 0,this.messages=void 0}watchIncludeMap(t){t&&this.updateLegend()}componentWillLoad(){this.baseClass="dark"===r(this.el)?"instant-apps-export calcite-mode-dark":p,o(this),this.initializeModules()}componentDidLoad(){this.printContainerEl.prepend(this.printEl)}disconnectedCallback(){var t,n;null===(t=this.handles)||void 0===t||t.removeAll(),null===(n=this.handles)||void 0===n||n.destroy(),this.handles=null}async initializeModules(){const[t]=await a(["esri/core/Handles"]);return this.handles=new t,Promise.resolve()}render(){const t="popover"===this.mode?this.renderPopover():this.renderPanel(),n=this.renderCompass();return i(s,null,i("div",{class:this.baseClass,onMouseEnter:this.handleWidgetCreation.bind(this),onFocusin:this.handleWidgetCreation.bind(this)},t,i("div",{class:"instant-apps-export__visually-hidden"},n)))}renderPopover(){var t,n,s;const e=this.renderPanel();return[i("calcite-popover",{referenceElement:"export-popover-btn",label:null===(t=this.messages)||void 0===t?void 0:t.exportPopover,overlayPositioning:this.popoverPositioning,placement:this.popoverPlacement,autoClose:!0,ref:t=>this.popoverEl=t},e),i("calcite-action",{id:"export-popover-btn",alignment:"center",icon:this.popoverIcon,scale:this.scale,title:null===(n=this.messages)||void 0===n?void 0:n.exportBtn,text:null===(s=this.messages)||void 0===s?void 0:s.exportBtn})]}renderPanel(){var t,n;const s=this.showHeaderTitle?this.renderTitle():null,e=null!=this.extraContent?this.renderSwitch("includeExtraContent",this.extraContentLabel):null,o=this.showIncludeMap?this.renderSwitch("includeMap"):null,a=this.includeMap?this.renderMapOptions():null,r=this.renderPrint();return i("div",{class:"inline"===this.mode?"instant-apps-export__inline-container":"instant-apps-export__popover-container"},s,e,o,a,this.includeMap?i("calcite-button",{appearance:"transparent",width:"full",onClick:this.setMapAreaOnClick.bind(this),disabled:this.exportIsLoading},null===(t=this.messages)||void 0===t?void 0:t.setMapArea):null,i("calcite-button",{width:"full",onClick:this.exportOnClick.bind(this),loading:this.exportIsLoading,disabled:this.exportIsLoading},null===(n=this.messages)||void 0===n?void 0:n.export),r)}renderTitle(){var t;return i("calcite-label",null,null===(t=this.messages)||void 0===t?void 0:t.title,i("calcite-input",{value:this.headerTitle,onCalciteInputInput:this.updateHeaderTitle.bind(this)}))}renderSwitch(t,n){var s;const e=null!=n?n:null===(s=this.messages)||void 0===s?void 0:s[t];return i("calcite-label",{layout:"inline-space-between"},e,i("calcite-switch",{checked:this[t],value:t,onCalciteSwitchChange:this.optionOnChange.bind(this)}))}renderMapOptions(){const t=this.showIncludeLegend?this.renderSwitch("includeLegend"):null,n=this.showIncludePopup?this.renderSwitch("includePopup"):null;return i("div",null,t,n)}renderPrint(){const t=this.includeMap?this.renderPrintMap():null,n=this.renderExtraContent(),s=this.includeMap&&this.showIncludeLegend?this.renderLegend():null,e=this.includeMap&&this.showIncludePopup?this.renderPopup():null;return i("div",{ref:t=>this.printContainerEl=t},i("div",{class:l,ref:t=>this.printEl=t},t,s,i("div",{class:h},e,n)))}renderPrintMap(){const t=this.renderScaleBar();return i("div",{class:m,ref:t=>this.viewContainerEl=t},i("div",{class:f,ref:t=>this.viewWrapperEl=t},this.headerTitle?i("instant-apps-header",{titleText:this.headerTitle,backgroundColor:"#fff",textColor:"#323232"}):null,i("img",{class:g,ref:t=>this.viewEl=t}),t))}renderLegend(){return i("div",{class:d,ref:t=>this.legendContainerEl=t})}renderCompass(){return i("div",{class:u,ref:t=>this.compassContainerEl=t})}renderScaleBar(){return i("div",{class:v,ref:t=>this.scaleBarContainerEl=t})}renderPopup(){return i("div",{class:x,ref:t=>this.popupContainerEl=t},i("div",{ref:t=>this.popupTitleEl=t,class:_}),i("div",{ref:t=>this.popupContentEl=t,class:b}))}renderExtraContent(){return i("div",{class:c,id:"export-content",ref:t=>this.extraContainerEl=t})}optionOnChange(t){const{checked:n,value:i}=t.target;this[i]=n,this.updateExportOutput()}updateHeaderTitle(t){this.headerTitle=t.target.value,this.updateExportOutput()}async exportOnClick(){this.removeScreenshotElements(),await this.beforeExport(),null==this.viewWrapperEl||this.viewWrapperEl.contains(this.compassContainerEl)||this.viewWrapperEl.append(this.compassContainerEl),this.handleViewExportOnClick(),null!=this.popoverEl&&(this.popoverEl.open=!1)}async handleViewExportOnClick(){null!=this.view?(this.addPrintStyling(),document.body.prepend(this.printEl),this.handleExtraContent(),this.includeMap?(this.updatePopupToPrint(),this.viewScreenshot(),this.handleImgLoaded()):this.handleImgLoaded()):null!=this.popoverEl&&(this.popoverEl.open=!1)}addPrintStyling(){null==this.printStyleEl&&(this.printStyleEl=document.createElement("style"),this.printStyleEl.innerHTML='\n @media print {\n @page {\n size: Portrait;\n margin: .25in;\n }\n\n html, body {\n padding: 0;\n margin: 0;\n height: 100%;\n width: 100%;\n }\n\n body > *:not(.instant-apps-export-print) { display: none; }\n }\n\n * {\n -webkit-print-color-adjust: exact;\n color-adjust: exact;\n }\n\n\n .instant-apps-export-print {\n height: 100%;\n width: 100%;\n position: absolute;\n z-index: -999;\n color: #323232 !important;\n display: grid;\n gap: 24px;\n grid-auto-flow: row;\n --esri-calcite-mode-name: "light";\n }\n\n .instant-apps-export-print, .instant-apps-export-print * {\n box-sizing: border-box;\n }\n\n .instant-apps-export-print__view-section {\n height: 100%;\n }\n\n .instant-apps-export-print__view-container {\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n }\n\n .instant-apps-export-print__view-wrapper {\n height: fit-content;\n width: fit-content;\n position: relative;\n display: flex;\n flex-direction: column;\n border: 2pt solid #323232;\n overflow: hidden;\n }\n\n .instant-apps-export-print__view {\n object-fit: contain;\n }\n\n .instant-apps-export-print__popup-container {\n height: min-content;\n max-width: 350px;\n display: none;\n color: #323232;\n background: #fff;\n border: 1pt solid #323232;\n break-inside: avoid;\n }\n\n .instant-apps-export-print__popup-title {\n border-bottom: 1pt solid #323232;\n }\n\n .instant-apps-export-print__popup-content {\n background: #fff;\n padding-top: 8pt;\n }\n\n .instant-apps-export-print__popup-content .esri-feature-media__chart {\n background: #fff;\n }\n\n .instant-apps-export-print__legend-container {\n height: min-content;\n background: #fff;\n overflow: unset;\n }\n\n .esri-legend--card, .esri-legend--card__service-content {\n flex-flow: row wrap;\n }\n\n .instant-apps-export-print .esri-widget > *:not(.instant-apps-export-print__scale-bar-container > *) {\n background: #fff;\n color: #323232;\n }\n\n .instant-apps-export-print__popup-content * {\n color: #323232;\n }\n\n .instant-apps-export-print .esri-widget__heading {\n margin: 2pt 7pt;\n padding: 0;\n color: #323232;\n }\n\n .instant-apps-export-print .esri-legend__ramp-label:before {\n border-color: rgba(0,0,0,0) rgba(50,50,50,.8) rgba(0,0,0,0) rgba(0,0,0,0);\n }\n\n .instant-apps-export-print .esri-legend--card__section {\n padding: 4pt 0 4pt;\n min-width: unset;\n border-left: none;\n }\n\n .instant-apps-export-print .esri-legend--card__section:first-child {\n border-left: none;\n }\n\n .instant-apps-export-print .esri-legend--card__service {\n border: none;\n flex: 0 1 auto;\n break-inside: avoid;\n }\n\n .instant-apps-export-print .esri-legend--card {\n border: none;\n gap: 6pt 12pt;\n }\n\n .instant-apps-export-print .esri-legend--card:not(:first-child),\n .instant-apps-export-print .esri-compass.esri-widget:not(:first-child) {\n display: none;\n }\n\n .instant-apps-export-print .esri-legend--card__service-caption-container {\n height: unset;\n padding: 0;\n border-bottom: none;\n }\n\n .instant-apps-export-print .esri-legend--card__service-caption-text {\n padding-bottom: 0;\n }\n\n .instant-apps-export-print__compass-container {\n position: absolute;\n top: 65px;\n left: 15px;\n background: #fff;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n --calcite-ui-icon-color: #000;\n border-radius: 50%;\n height: fit-content;\n }\n\n .instant-apps-export-print__compass-container .esri-compass {\n background: #fff;\n }\n\n .instant-apps-export-print__compass-container .esri-compass__icon.esri-icon-compass {\n color: #000;\n }\n\n .instant-apps-export-print__compass-container.esri-compass.esri-widget--button {\n background: #fff;\n }\n\n .instant-apps-export-print__scale-bar-container {\n width: 100%;\n position: absolute;\n bottom: 15px;\n left: 15px;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__bar-container:nth-child(1n+3) {\n display: none;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line {\n background-color: rgba(255, 255, 255, 0.66);\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top {\n width: var(--instant-apps-scale-bar-top) !important;\n border-bottom: 2px solid #323232;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom {\n width: var(--instant-apps-scale-bar-bottom) !important;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__label {\n color: #323232;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top:before,\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top:after,\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom:before,\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom:after {\n background-color: #323232;\n border-right: 2px solid #323232;\n }\n\n .instant-apps-export-print__popup-container .esri-feature-media__item-navigation {\n display: none;\n }\n\n .instant-apps-export-print__popup-container .esri-feature-media__chart.esri-feature-media__chart--rendered * {\n width: 100%!important;\n }\n\n .instant-apps-export-print__popup-content .esri-popup__content {\n margin: 0;\n }\n\n .instant-apps-export-print__content-container {\n display: flex;\n gap: 24px;\n break-inside: avoid;\n break-before: auto;\n }',document.body.prepend(this.printStyleEl))}handleImgLoaded(){this.exportIsLoading=!0,setTimeout((()=>{this.exportIsLoading=void 0,this.setupViewPrintElements()}),1500)}handleExtraContent(){const t=this.printEl.querySelector("#export-content");null!=t&&(t.innerHTML="",null!=this.extraContent&&this.includeExtraContent?(t.style.display="block",t.append(this.extraContent.cloneNode(!0))):t.style.display="none")}resetPrintContent(){var t,n;if(null!=this.view){this.screenshot=null,null===(t=this.printContainerEl)||void 0===t||t.prepend(this.printEl),null===(n=this.printStyleEl)||void 0===n||n.remove(),this.printStyleEl=void 0;const i=this.printEl.querySelector("#export-content");i&&(i.innerHTML="")}}async updatePopupToPrint(){var t,n;if(null!=this.view&&(null!=this.popupContainerEl&&(this.popupContainerEl.style.display=this.includePopup&&this.view.popup.visible?"block":"none",this.checkPopupOpen()),this.view.popup.visible&&null!=this.view.popup.selectedFeature)){const i=document.createElement(`h${null!==(t=this.view.popup.headingLevel)&&void 0!==t?t:2}`);i.innerHTML=null!==(n=this.view.popup.title)&&void 0!==n?n:"",i.className="esri-widget__heading esri-popup__header-title",null!=this.popupTitleEl&&(this.popupTitleEl.style.display=this.view.popup.title?"block":"none",this.popupTitleEl.innerHTML="",this.popupTitleEl.prepend(i))}}updateExportOutput(){this.output={},this.showHeaderTitle&&(this.output.headerTitle=this.headerTitle),this.showIncludeLegend&&(this.output.includeLegend=this.includeLegend),this.showIncludeMap&&(this.output.includeMap=this.includeMap),this.showIncludePopup&&(this.output.includePopup=this.includePopup),this.exportOutputUpdated.emit()}setupViewPrintElements(){if(null!=this.view){this.handleLegendSetup();const t=document.title;this.showHeaderTitle&&this.headerTitle&&(document.title=this.headerTitle),window.print(),document.title=t,setTimeout((()=>{this.resetPrintContent()}),1e3)}}handleLegendSetup(){this.showIncludeLegend&&null!=this.view&&this.includeMap&&null!=this.legendContainerEl&&(this.legendContainerEl.style.display=this.includeLegend?"block":"none")}handleWidgetCreation(){this.handleLegendCreation(),this.handleCompassCreation(),this.handleScaleBarCreation()}handleLegendCreation(){var t,n;if(this.includeMap&&null!=this.view&&this.showIncludeLegend&&null!=this.legendContainerEl){const i=this.view.map,s=null===(n=null===(t=this.legend)||void 0===t?void 0:t.view)||void 0===n?void 0:n.map;(null==i?void 0:i.portalItem.id)===(null==s?void 0:s.portalItem.id)||this.updateLegend()}}updateLegend(){var t;null===(t=this.view)||void 0===t||t.when((async t=>{var n;if(null===(n=this.legend)||void 0===n||n.destroy(),null!=this.legendContainerEl){this.legendContainerEl.innerHTML="";const[n]=await a(["esri/widgets/Legend"]);this.legend=new n({container:this.legendContainerEl,view:t,style:{type:"card",layout:"side-by-side"}})}}))}handleCompassCreation(){var t,n;if(this.includeMap&&null!=this.view&&null!=this.compassContainerEl){const i=this.view.map,s=null===(n=null===(t=this.compass)||void 0===t?void 0:t.view)||void 0===n?void 0:n.map;(null==i?void 0:i.portalItem.id)===(null==s?void 0:s.portalItem.id)||this.updateCompass()}}updateCompass(){var t;null===(t=this.view)||void 0===t||t.when((async t=>{var n;null===(n=this.compass)||void 0===n||n.destroy(),this.compass=null;const i=document.createElement("div");this.compassContainerEl.append(i);const[s]=await a(["esri/widgets/Compass"]);this.compass=new s({container:i,view:t})}))}handleScaleBarCreation(){var t,n;if(this.showScaleBar&&this.includeMap&&null!=this.view&&"2d"===this.view.type&&null!=this.scaleBarContainerEl){const i=this.view.map,s=null===(n=null===(t=this.scaleBar)||void 0===t?void 0:t.view)||void 0===n?void 0:n.map;(null==i?void 0:i.portalItem.id)===(null==s?void 0:s.portalItem.id)&&this.scaleBarContainerEl.innerHTML||this.updateScaleBar()}}updateScaleBar(){var t;null===(t=this.view)||void 0===t||t.when((async t=>{var n;null===(n=this.scaleBar)||void 0===n||n.destroy(),this.scaleBar=null,this.scaleBarContainerEl.innerHTML="";const[i]=await a(["esri/widgets/ScaleBar"]);this.scaleBar=new i({container:this.scaleBarContainerEl,unit:"dual",view:t})}))}async viewScreenshot(){if(null!=this.view&&this.includeMap&&(null==this.screenshot&&(this.screenshot=await this.view.takeScreenshot({width:2*this.view.width,height:2*this.view.height})),this.handleScaleBarSize(),null!=this.viewEl&&null!=this.viewWrapperEl)){const{height:t,width:n}=this.screenshot.data;t>n?this.setMaxRowHeightOnViewContainer():this.setMaxWidthOnViewContainer(),this.viewEl.src=this.screenshot.dataUrl}}setMaxRowHeightOnViewContainer(){this.printEl.style.gridTemplateRows="minmax(auto, 70%)",this.viewEl.style.height="100%",this.viewEl.style.width="",this.viewWrapperEl.style.height="100%",this.viewWrapperEl.style.width="fit-content"}setMaxWidthOnViewContainer(){this.printEl.style.gridTemplateRows="",this.viewEl.style.width="100%",this.viewEl.style.height="",this.viewWrapperEl.style.height="fit-content",this.viewWrapperEl.style.width="100%"}checkPopupOpen(){if(null!=this.view){const t=this.view.popup.container,n=null==t?void 0:t.querySelector(".esri-popup .esri-feature__main-container");if(null!=n){const t=n.querySelectorAll("canvas");this.popupContentEl.innerHTML="",this.popupContentEl.append(n.cloneNode(!0));const i=this.popupContentEl.querySelectorAll("canvas");t.forEach(((t,n)=>{var s;const e=t.toDataURL(),o=document.createElement("img");o.src=e;const a=t.getAttribute("style");a&&o.setAttribute("style",a);const r=i[n];null!=r&&(r.replaceWith(o),document.querySelector("link[href*='esri/themes/dark/main.css']")&&null!=(null===(s=o.parentElement)||void 0===s?void 0:s.parentElement)&&(o.parentElement.style.background="#242424",o.parentElement.parentElement.style.background="#242424"))}))}}}createScreenshot(){var t,n;if(null!=this.view){this.screenshotPreview=document.createElement("div"),this.screenshotPreview.className="screenshot-preview hide",this.screenshotImgContainer=document.createElement("div"),this.screenshotImgContainer.className="screenshot-img-container",this.screenshotImg=document.createElement("img");const i=document.createElement("div"),s=document.createElement("calcite-button"),e=document.createElement("calcite-button");s.innerHTML=null===(t=this.messages)||void 0===t?void 0:t.export,e.innerHTML=null===(n=this.messages)||void 0===n?void 0:n.returnToMap,e.appearance="outline-fill",s.onclick=this.exportOnClick.bind(this),e.onclick=this.screenshotReturn.bind(this),i.append(e,s),this.screenshotImgContainer.append(this.screenshotImg,i),this.screenshotPreview.append(this.screenshotImgContainer),this.view.container.append(this.screenshotPreview)}}createMaskDiv(){null!=this.view&&(this.maskDivEl=document.createElement("div"),this.maskDivEl.id="screenshot-mask",this.maskDivEl.className="hide screenshot-cursor",this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-background",this.maskBackground),this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-border",this.maskBorder),this.screenshotStyle=document.createElement("style"),this.screenshotStyle.innerHTML="\n.screenshot-preview.hide, .hide {\n display: none;\n}\n\n.screenshot-cursor {\n cursor: crosshair;\n}\n\n.relative {\n position: relative;\n}\n\n#screenshot-mask {\n position: absolute;\n background: var(--instant-apps-screenshot-mask-background);\n border: var(--instant-apps-screenshot-mask-border);\n}\n\n.screenshot-preview {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n text-align: center;\n background-color: rgba(0, 0, 0, 0.75);\n}\n\n.screenshot-preview * {\n box-sizing: border-box;\n}\n\n.screenshot-img-container img {\n max-height: 75%;\n max-width: 75%;\n object-fit: contain;\n border: 10px solid white;\n box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.5);\n margin-bottom: 0.5em;\n}\n\n.screenshot-img-container {\n height: 100%;\n width: 100%;\n overflow-y: auto;\n margin-bottom: 8px;\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n}\n\n.screenshot-img-container calcite-button {\n margin: 5px;\n}\n",this.view.container.append(this.screenshotStyle),this.view.container.append(this.maskDivEl))}screenshotReturn(){this.removeScreenshotElements(),this.exportIsLoading=!1,this.screenshot=null}setMapAreaOnClick(){null!=this.view&&(this.exportIsLoading=!0,this.createMaskDiv(),this.createScreenshot(),this.view.container.classList.add("screenshot-cursor","relative"),this.view.addHandles(this.view.on("drag",(async t=>{null!=this.view&&(t.stopPropagation(),"end"!==t.action?this.updateMaskSize(t):this.maskScreenshot())})),w))}updateMaskSize(t){if(null!=this.view){const n=this.clamp(Math.min(t.origin.x,t.x),0,this.view.width),i=this.clamp(Math.max(t.origin.x,t.x),0,this.view.width),s=this.clamp(Math.min(t.origin.y,t.y),0,this.view.height),e=this.clamp(Math.max(t.origin.y,t.y),0,this.view.height);this.area={x:n,y:s,width:i-n,height:e-s},this.setMaskPosition(this.area)}}maskScreenshot(){null!=this.view&&null!=this.area&&(this.view.removeHandles(w),this.view.takeScreenshot({area:this.area,width:2*this.area.width,height:2*this.area.height,format:"jpg"}).then((t=>{var n;this.screenshot=t,this.showPreview(),null===(n=this.view)||void 0===n||n.container.classList.remove("screenshot-cursor"),this.setMaskPosition(null)})))}setMaskPosition(t){null!=t?(this.maskDivEl.classList.remove("hide"),this.maskDivEl.style.left=`${t.x}px`,this.maskDivEl.style.top=`${t.y}px`,this.maskDivEl.style.width=`${t.width}px`,this.maskDivEl.style.height=`${t.height}px`):this.maskDivEl.remove()}clamp(t,n,i){return t<n?n:t>i?i:t}showPreview(){this.screenshotPreview.classList.remove("hide"),null!=this.screenshotImg&&null!=this.screenshot&&(this.screenshotImg.src=this.screenshot.dataUrl)}handleScaleBarSize(){var t;if("2d"===(null===(t=this.view)||void 0===t?void 0:t.type)&&null!=this.scaleBarContainerEl){const t=this.scaleBarContainerEl.querySelector(".esri-scale-bar__line--top"),n=this.scaleBarContainerEl.querySelector(".esri-scale-bar__line--bottom");this.setScalebarWidth(t,"top"),this.setScalebarWidth(n,"bottom")}}setScalebarWidth(t,n){if(null!=this.view&&null!=t&&null!=this.screenshot){const i=this.screenshot.data.width/2,s=Number(t.style.width.replace("px",""));t.style.setProperty(`--instant-apps-scale-bar-${n}`,s/i*100+"%")}}removeScreenshotElements(){var t,n;null===(t=this.screenshotPreview)||void 0===t||t.remove(),null===(n=this.screenshotStyle)||void 0===n||n.remove()}get el(){return e(this)}static get watchers(){return{includeMap:["watchIncludeMap"]}}};k.style=":host{display:block;--instant-apps-export-action-background:var(--calcite-color-foreground-1);--instant-apps-export-action-background-hover:var(--calcite-color-foreground-2);--instant-apps-export-action-background-press:var(--calcite-color-foreground-3);--instant-apps-export-action-height:100%;--instant-apps-export-action-width:fit-content;--instant-apps-export-action-icon-color:var(--calcite-color-text-3);--instant-apps-export-action-icon-hover-color:var(--calcite-color-text-1);--instant-apps-export-background:var(--calcite-color-foreground-1);--instant-apps-export-text-color:var(--calcite-color-text-1);--instant-apps-export-popover-width:250px}.instant-apps-export{height:100%}.instant-apps-export *{box-sizing:border-box}.instant-apps-export__popover-container,.instant-apps-export__inline-container{padding:12px;background:var(--instant-apps-export-background);--calcite-color-text-1:var(--instant-apps-export-text-color)}.instant-apps-export__popover-container{width:var(--instant-apps-export-popover-width)}.instant-apps-export calcite-action{height:var(--instant-apps-export-action-height);width:var(--instant-apps-export-action-width);--calcite-color-foreground-1:var(--instant-apps-export-action-background);--calcite-color-foreground-2:var(--instant-apps-export-action-background-hover);--calcite-color-foreground-3:var(--instant-apps-export-action-background-press);--calcite-color-text-3:var(--instant-apps-export-action-icon-color);--calcite-color-text-1:var(--instant-apps-export-action-icon-hover-color)}.instant-apps-export .instant-apps-export-print{display:none}.instant-apps-export__visually-hidden{position:absolute;top:0;z-index:-1;visibility:hidden}.instant-apps-export calcite-input{--calcite-color-foreground-1:var(--instant-apps-export-background);--calcite-color-text-1:var(--instant-apps-export-text-color)}.instant-apps-export calcite-popover{--calcite-color-foreground-1:var(--instant-apps-export-background)}.instant-apps-export calcite-switch{--calcite-color-foreground-1:#fff;--calcite-color-foreground-2:#f3f3f3}.instant-apps-export calcite-button:last-of-type{margin-top:0.5rem}.instant-apps-export .calcite-mode-dark calcite-switch{--calcite-color-foreground-1:#2b2b2b;--calcite-color-foreground-2:#202020}.instant-apps-export__compass-container.esri-widget{background:#fff;box-shadow:0 1px 2px rgba(0, 0, 0, 0.3)}.instant-apps-export__compass-container.esri-widget .esri-compass__icon.esri-icon-compass{color:#6e6e6e}.hide{display:none}.screenshotCursor{cursor:crosshair}";export{k as instant_apps_export}
@@ -1,6 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as i,a as s,h as e,H as a,g as l}from"./p-78780f63.js";import{a as o,b as n,c}from"./p-4af32c75.js";import{l as h}from"./p-48ff9cea.js";import{g as d,h as r}from"./p-b5d1b979.js";import{s as p}from"./p-8684a905.js";import{g}from"./p-6b943f52.js";import{c as b,r as m}from"./p-c9f87acb.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-225c4ca4.js";import"./p-d89fff3a.js";import"./p-a230b270.js";import"./p-220ec0d1.js";const u=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this._onboardingImageUrl="",this._titleValue=void 0,this._numSelected=0,this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=o.PDF,this._fetchingData=!1,this._isMobile=void 0,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}async mapViewWatchHandler(t){(null==t?void 0:t.popup)&&(this._popupsEnabled=null==t?void 0:t.popup.autoOpenEnabled)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);s!==JSON.stringify(i)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){var s;if(this._checkPopups(),(null===(s=this.mapView)||void 0===s?void 0:s.popup)&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),t!==n.SELECT)return this._highlightFeatures()}selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=s("../assets/data/images/onboarding.png")}render(){return e(a,null,e("calcite-shell",null,e("calcite-action-bar",{class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i]=await h(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils"]);this._geometryEngine=t,this._jsonUtils=i}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,s){return e("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},e("div",{class:"background-override"},e("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",compact:!1,icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),e("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},e("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(t?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),e("div",{class:"display-flex padding-1"},e("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},e("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return e("div",{class:"display-flex padding-sides-1"},e("img",{class:"img-container",src:this._onboardingImageUrl}))}_getSelectionSetList(){return e("div",{class:"padding-top-1-2 padding-bottom-1-2"},e("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((t,i,s)=>{var a;const l=this._getSelectionSetIds(i);let o=!0;return i.workflowType===c.REFINE&&(o=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),o&&t.push(e("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},e("div",{slot:"content"},e("div",{class:"list-label"},i.label),e("div",{class:"list-description"},null===(a=null==i?void 0:i.layerView)||void 0===a?void 0:a.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",l.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==c.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===c.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==c.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return e("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),e("div",null,e("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return e("calcite-panel",null,e("div",null,this._getLabel(this._translations.export,!1),t?e("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),e("div",{class:"padding-sides-1 "+i},e("div",{class:"display-flex"},e("calcite-label",{layout:"inline"},e("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),e("div",{class:"display-flex"},this._translations.removeDuplicate,e("div",{class:"info-message padding-start-1-2"},e("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),e("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"remove-duplicates-icon",scale:"s"})),e("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},e("span",{class:"tooltip-message"},this._translations.duplicatesTip))),e("div",{class:"border-bottom"}),e("div",{class:"padding-top-sides-1"},e("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t)},e("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},e("span",{class:"font-weight-500"},this._translations.pdf)),e("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},e("span",{class:"font-weight-500"},this._translations.csv)))),e("div",{class:"padding-bottom-1"},this._getExportOptions()),e("div",{class:"padding-1 display-flex"},e("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},e("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",s=this._addResults?"":"display-none";return e("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),e("div",{class:`padding-top-sides-1 ${s}`},e("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),e("div",{class:`padding-sides-1 ${s}`},e("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,ref:t=>{this._downloadTools=t}})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.addTitle)),e("div",{class:t},this._getLabel(this._translations.title,!0,""),e("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:i})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._addMap=!this._addMap}),this._translations.includeMap)))}_getRefinePage(){const t=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?e("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),e("refine-selection",{enabledLayerIds:this.selectionLayerIds,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,a,l,o){return e("div",{class:"padding-bottom-1"},e("div",{class:"display-flex padding-top-sides-1"},e("calcite-button",{disabled:i,onClick:s,width:"full"},e("span",{class:"font-weight-500"},t))),e("div",{class:"display-flex padding-top-1-2 padding-sides-1"},e("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},e("span",{class:"font-weight-500"},a))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",s=""){return e("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},e("div",{class:s,slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{var s;const a=this._getSelectionSetIds(i),l=i.workflowType!==c.REFINE||a.length>0;return!this._downloadActive&&i.download&&l&&(this._downloadActive=!0),l&&t.push(e("div",{class:"display-flex padding-sides-1 padding-bottom-1"},e("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),e("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},e("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},e("div",{slot:"content"},e("div",{class:"list-label"},i.label),e("div",{class:"list-description"},null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",a.length.toString()))))))),t}),[])||e("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=null==t?void 0:t.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{var s;if(i.workflowType===c.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const e=null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.id;t=this._updateExportInfos(t,e,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,a,l=!1,o=""){return e("calcite-action",{disabled:!t,icon:i,indicator:l,onClick:a,slot:o,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){var t,i;const s=await(null===(t=this._selectTools)||void 0===t?void 0:t.getSelection()),e=null===(i=this._selectTools)||void 0===i?void 0:i.isUpdate;return this._selectionSets=e?this._selectionSets.map((t=>t.id===s.id?s:t)):[...this._selectionSets,s],this._home()}async _clearSelection(){var t;await(null===(t=this._selectTools)||void 0===t?void 0:t.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){d(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===c.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];p.highlightHandles.push(await r(e.ids,e.layerView,this.mapView))}}_checkPopups(){var t;"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=null===(t=this.mapView)||void 0===t?void 0:t.popupEnabled)}_clearHighlight(){p&&p.highlightHandles&&p.removeHandles()}async _getTranslations(){const t=await g(this.el);this._translations=t[0]}get el(){return l(this)}static get watchers(){return{mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}';export{u as public_notification}
@@ -1,6 +0,0 @@
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 s,h as t,H as e,g as i}from"./p-78780f63.js";import{s as a,d as o,e as n}from"./p-ca97465b.js";import{s as h,a as r,c as l}from"./p-f10944e6.js";import{c,d as p}from"./p-ede84883.js";import{u as d,c as m,s as u,d as f}from"./p-79ba73cb.js";import{w as g,u as v}from"./p-b21a9b47.js";import"./p-fcefdfff.js";import"./p-29d68474.js";import"./p-1e2ffee3.js";import"./p-5b566d55.js";const b=class{constructor(t){s(this,t),this.menuItems=[],this.handleMenuSlotChange=s=>{this.menuItems=a(s),this.setMenuItemLayout(this.menuItems,this.layout)},this.label=void 0,this.layout="horizontal",this.messageOverrides=void 0,this.messages=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.globalAttributes={role:"menubar"}}handleLayoutChange(s){this.setMenuItemLayout(this.menuItems,s)}onMessagesChange(){}effectiveLocaleChange(){d(this,this.effectiveLocale)}connectedCallback(){c(this),m(this),g(this,["role"])}async componentWillLoad(){h(this),await u(this)}componentDidLoad(){r(this)}disconnectedCallback(){p(this),f(this),v(this)}async setFocus(){await l(this),this.el.focus()}calciteInternalNavMenuItemKeyEvent(s){const t=s.target,e=s.detail.children,i=s.detail.event.key;s.stopPropagation(),"ArrowDown"===i?"vertical"===t.layout?o(this.menuItems,t,"next",!1):s.detail.isSubmenuOpen&&e[0].setFocus():"ArrowUp"===i?"vertical"===this.layout?o(this.menuItems,t,"previous",!1):s.detail.isSubmenuOpen&&e[e.length-1].setFocus():"ArrowRight"===i?"horizontal"===this.layout?o(this.menuItems,t,"next",!1):s.detail.isSubmenuOpen&&e[0].setFocus():"ArrowLeft"===i?"horizontal"===this.layout?o(this.menuItems,t,"previous",!1):s.detail.isSubmenuOpen&&this.focusParentElement(s.target):"Escape"===i&&this.focusParentElement(s.target),s.preventDefault()}focusParentElement(s){const t=s.parentElement;t&&(n(t),t.open=!1)}setMenuItemLayout(s,t){s.forEach((s=>{s.layout=t,"menubar"===this.globalAttributes.role&&(s.isTopLevelItem=!0,s.topLevelMenuLayout=this.layout)}))}render(){return t(e,null,t("ul",Object.assign({"aria-label":this.label},this.globalAttributes),t("slot",{onSlotchange:this.handleMenuSlotChange})))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return i(this)}static get watchers(){return{layout:["handleLayoutChange"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};b.style=":host{display:flex}ul{margin:0px;display:inline-flex;block-size:100%;align-items:center;padding:0px}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}";export{b as calcite_menu}
@@ -1,11 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as e,h as i,F as s,g as n,H as a}from"./p-78780f63.js";import{f as o}from"./p-25dd768d.js";import{c,u as l,d as r}from"./p-0c97de08.js";import{s as d,a as h,c as p}from"./p-f10944e6.js";import{c as f,d as m}from"./p-ede84883.js";import{u,s as g,c as v,d as b}from"./p-79ba73cb.js";import{d as y}from"./p-a82f35c9.js";import{u as x}from"./p-ca97465b.js";import{S as j,C as k}from"./p-7f333e23.js";import"./p-c92fff33.js";import"./p-1e2ffee3.js";import"./p-5b566d55.js";import"./p-fcefdfff.js";import"./p-29d68474.js";
7
- /*!
8
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
- * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
10
- * v2.0.0
11
- */const w=class{constructor(i){t(this,i),this.calciteFilterChange=e(this,"calciteFilterChange",6),this.filterDebounced=y(((t,e=!1,i)=>this.updateFiltered(o(this.items,t),e,i)),250),this.inputHandler=t=>{const e=t.target;this.value=e.value,this.filterDebounced(e.value,!0)},this.keyDownHandler=t=>{"Escape"===t.key&&(this.clear(),t.preventDefault()),"Enter"===t.key&&t.preventDefault()},this.clear=()=>{this.value="",this.filterDebounced("",!0),this.setFocus()},this.items=[],this.disabled=!1,this.filteredItems=[],this.placeholder=void 0,this.scale="m",this.value="",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}watchItemsHandler(){this.filterDebounced(this.value)}onMessagesChange(){}valueHandler(t){this.filterDebounced(t)}effectiveLocaleChange(){u(this,this.effectiveLocale)}async componentWillLoad(){d(this),this.updateFiltered(o(this.items,this.value)),await g(this)}connectedCallback(){c(this),f(this),v(this)}componentDidRender(){l(this)}disconnectedCallback(){r(this),m(this),b(this),this.filterDebounced.cancel()}componentDidLoad(){h(this)}async filter(t=this.value){return new Promise((e=>{this.value=t,this.filterDebounced(t,!1,e)}))}async setFocus(){var t;await p(this),null===(t=this.el)||void 0===t||t.focus()}updateFiltered(t,e=!1,i){this.filteredItems=t,e&&this.calciteFilterChange.emit(),null==i||i()}render(){const{disabled:t,scale:e}=this;return i(s,null,i("div",{class:"container"},i("label",null,i("calcite-input",{clearable:!0,disabled:t,icon:"search",label:this.messages.label,messageOverrides:{clear:this.messages.clear},onCalciteInputInput:this.inputHandler,onKeyDown:this.keyDownHandler,placeholder:this.placeholder,scale:e,type:"text",value:this.value,ref:t=>{this.textInput=t}}))))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{items:["watchItemsHandler"],messageOverrides:["onMessagesChange"],value:["valueHandler"],effectiveLocale:["effectiveLocaleChange"]}}};w.style=":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{display:flex;inline-size:100%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{display:flex;inline-size:100%;padding:0.5rem}label{position:relative;margin-inline:0.25rem;margin-block:0px;display:flex;inline-size:100%;align-items:center;overflow:hidden}input[type=text]{margin-block-end:0.25rem;inline-size:100%;border-style:none;background-color:transparent;padding-block:0.25rem;font-family:inherit;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-color-text-1);padding-inline-end:0.25rem;padding-inline-start:1.5rem;transition:padding var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}input[type=text]::-ms-clear{display:none}calcite-input{inline-size:100%}.search-icon{position:absolute;display:flex;color:var(--calcite-color-text-2);inset-inline-start:0;transition:inset-inline-start var(--calcite-animation-timing), inset-inline-end var(--calcite-animation-timing), opacity var(--calcite-animation-timing)}input[type=text]:focus{border-color:var(--calcite-color-brand);outline:2px solid transparent;outline-offset:2px;padding-inline:0.25rem}input[type=text]:focus~.search-icon{inset-inline-start:calc(1rem * -1);opacity:0}.clear-button{display:flex;cursor:pointer;align-items:center;border-width:0px;background-color:transparent;color:var(--calcite-color-text-2)}.clear-button:hover,.clear-button:focus{color:var(--calcite-color-text-1)}:host([hidden]){display:none}[hidden]{display:none}";const z=class{constructor(e){t(this,e),this.handleActionsStartSlotChange=t=>{this.hasActionsStart=x(t)},this.handleActionsEndSlotChange=t=>{this.hasActionsEnd=x(t)},this.handleContentStartSlotChange=t=>{this.hasContentStart=x(t)},this.handleContentEndSlotChange=t=>{this.hasContentEnd=x(t)},this.disabled=!1,this.hasActionsStart=!1,this.hasActionsEnd=!1,this.hasContentStart=!1,this.hasContentEnd=!1}renderActionsStart(){const{hasActionsStart:t}=this;return i("div",{class:k.actionsStart,hidden:!t,key:"actions-start-container"},i("slot",{name:j.actionsStart,onSlotchange:this.handleActionsStartSlotChange}))}renderActionsEnd(){const{hasActionsEnd:t}=this;return i("div",{class:k.actionsEnd,hidden:!t,key:"actions-end-container"},i("slot",{name:j.actionsEnd,onSlotchange:this.handleActionsEndSlotChange}))}renderContentStart(){const{hasContentStart:t}=this;return i("div",{class:k.contentStart,hidden:!t},i("slot",{name:j.contentStart,onSlotchange:this.handleContentStartSlotChange}))}renderDefaultContent(){return i("div",{class:k.content},i("slot",null))}renderContentEnd(){const{hasContentEnd:t}=this;return i("div",{class:k.contentEnd,hidden:!t},i("slot",{name:j.contentEnd,onSlotchange:this.handleContentEndSlotChange}))}render(){return i(a,null,i("div",{class:k.container},this.renderActionsStart(),this.renderContentStart(),this.renderDefaultContent(),this.renderContentEnd(),this.renderActionsEnd()))}};z.style=":host([disabled]) .content{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) .content *,:host([disabled]) .content ::slotted(*){pointer-events:none}:host{display:flex;flex:1 1 0%;flex-direction:column}.container{display:flex;flex:1 1 auto;align-items:stretch;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}.content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;font-size:var(--calcite-font-size--2);line-height:1.375;padding-inline:var(--calcite-stack-padding-inline, 0.75rem);padding-block:var(--calcite-stack-padding-block, 0.5rem)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:0 1 auto}.actions-start,.actions-end,.content-start,.content-end{display:flex;align-items:center}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){margin-inline:0.75rem;align-self:center}.actions-start ::slotted(calcite-action),.actions-start ::slotted(calcite-action-menu),.actions-start ::slotted(calcite-handle),.actions-start ::slotted(calcite-dropdown),.actions-end ::slotted(calcite-action),.actions-end ::slotted(calcite-action-menu),.actions-end ::slotted(calcite-handle),.actions-end ::slotted(calcite-dropdown){align-self:stretch;color:inherit}:host([hidden]){display:none}[hidden]{display:none}";export{w as calcite_filter,z as calcite_stack}