@esri/solutions-components 0.10.39 → 0.10.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (374) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +26 -6
  2. package/dist/cjs/buffer-tools_3.cjs.entry.js +23 -3
  3. package/dist/cjs/calcite-alert_5.cjs.entry.js +40 -5
  4. package/dist/cjs/calcite-combobox_3.cjs.entry.js +11 -1
  5. package/dist/cjs/calcite-flow_4.cjs.entry.js +33 -10
  6. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +119 -10
  7. package/dist/cjs/calcite-shell_3.cjs.entry.js +26 -4
  8. package/dist/cjs/card-manager_3.cjs.entry.js +41 -9
  9. package/dist/cjs/consent-manager.cjs.entry.js +12 -0
  10. package/dist/cjs/crowdsource-manager.cjs.entry.js +12 -13
  11. package/dist/cjs/crowdsource-reporter.cjs.entry.js +19 -9
  12. package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
  13. package/dist/cjs/feature-list.cjs.entry.js +13 -3
  14. package/dist/cjs/loader.cjs.js +1 -1
  15. package/dist/cjs/map-select-tools_3.cjs.entry.js +38 -6
  16. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  17. package/dist/cjs/public-notification.cjs.entry.js +11 -2
  18. package/dist/cjs/share-item.cjs.entry.js +1 -1
  19. package/dist/cjs/solution-configuration.cjs.entry.js +20 -5
  20. package/dist/cjs/solution-contents_3.cjs.entry.js +37 -7
  21. package/dist/cjs/solution-item-accordion.cjs.entry.js +11 -1
  22. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  23. package/dist/cjs/solutions-components.cjs.js +1 -1
  24. package/dist/cjs/spatial-ref.cjs.entry.js +16 -1
  25. package/dist/collection/collection-manifest.json +0 -7
  26. package/dist/collection/components/buffer-tools/buffer-tools.js +30 -1
  27. package/dist/collection/components/card-manager/card-manager.js +34 -2
  28. package/dist/collection/components/consent-manager/consent-manager.js +32 -0
  29. package/dist/collection/components/create-feature/create-feature.js +31 -2
  30. package/dist/collection/components/create-related-feature/create-related-feature.js +30 -1
  31. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +20 -22
  32. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +38 -9
  33. package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
  34. package/dist/collection/components/delete-button/delete-button.js +31 -2
  35. package/dist/collection/components/delete-dialog/delete-dialog.js +33 -1
  36. package/dist/collection/components/edit-card/edit-card.js +30 -1
  37. package/dist/collection/components/feature-details/feature-details.js +24 -6
  38. package/dist/collection/components/feature-list/feature-list.js +32 -3
  39. package/dist/collection/components/floor-filter/floor-filter.js +1 -1
  40. package/dist/collection/components/info-card/info-card.js +36 -2
  41. package/dist/collection/components/json-editor/json-editor.js +38 -1
  42. package/dist/collection/components/layer-list/layer-list.js +35 -3
  43. package/dist/collection/components/layer-table/layer-table.js +34 -5
  44. package/dist/collection/components/map-card/map-card.js +31 -2
  45. package/dist/collection/components/map-draw-tools/map-draw-tools.js +30 -1
  46. package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
  47. package/dist/collection/components/map-layer-picker/map-layer-picker.js +30 -1
  48. package/dist/collection/components/map-legend/map-legend.js +1 -1
  49. package/dist/collection/components/map-picker/map-picker.js +30 -1
  50. package/dist/collection/components/map-search/map-search.js +1 -1
  51. package/dist/collection/components/map-select-tools/map-select-tools.js +15 -4
  52. package/dist/collection/components/map-tools/map-tools.js +30 -1
  53. package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
  54. package/dist/collection/components/pdf-download/pdf-download.js +33 -1
  55. package/dist/collection/components/public-notification/public-notification.js +13 -2
  56. package/dist/collection/components/refine-selection/refine-selection.js +15 -1
  57. package/dist/collection/components/share-item/share-item.js +1 -1
  58. package/dist/collection/components/solution-configuration/solution-configuration.js +38 -4
  59. package/dist/collection/components/solution-contents/solution-contents.js +1 -1
  60. package/dist/collection/components/solution-item/solution-item.js +37 -3
  61. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +30 -1
  62. package/dist/collection/components/solution-item-details/solution-item-details.js +38 -1
  63. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  64. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +35 -1
  65. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +35 -1
  66. package/dist/collection/components/solution-resource-item/solution-resource-item.js +35 -1
  67. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +35 -1
  68. package/dist/collection/components/solution-template-data/solution-template-data.js +35 -1
  69. package/dist/collection/components/solution-variables/solution-variables.js +35 -1
  70. package/dist/collection/components/spatial-ref/spatial-ref.js +35 -1
  71. package/dist/collection/demos/crowdsource-manager.html +0 -1
  72. package/dist/collection/demos/crowdsource-reporter.html +2 -2
  73. package/dist/components/buffer-tools2.js +15 -3
  74. package/dist/components/card-manager2.js +18 -3
  75. package/dist/components/consent-manager.js +15 -0
  76. package/dist/components/create-feature2.js +14 -2
  77. package/dist/components/create-related-feature2.js +13 -1
  78. package/dist/components/crowdsource-manager.js +14 -15
  79. package/dist/components/crowdsource-reporter.js +21 -9
  80. package/dist/components/deduct-calculator2.js +1 -1
  81. package/dist/components/delete-button2.js +16 -4
  82. package/dist/components/delete-dialog2.js +16 -1
  83. package/dist/components/edit-card2.js +13 -1
  84. package/dist/components/feature-details2.js +8 -6
  85. package/dist/components/feature-list2.js +15 -3
  86. package/dist/components/floor-filter2.js +1 -1
  87. package/dist/components/info-card2.js +19 -2
  88. package/dist/components/json-editor2.js +21 -1
  89. package/dist/components/layer-list2.js +18 -3
  90. package/dist/components/layer-table2.js +17 -5
  91. package/dist/components/map-card2.js +14 -2
  92. package/dist/components/map-draw-tools2.js +13 -1
  93. package/dist/components/map-fullscreen2.js +1 -1
  94. package/dist/components/map-layer-picker2.js +13 -1
  95. package/dist/components/map-legend2.js +1 -1
  96. package/dist/components/map-picker2.js +13 -1
  97. package/dist/components/map-search2.js +1 -1
  98. package/dist/components/map-select-tools2.js +14 -4
  99. package/dist/components/map-tools2.js +13 -1
  100. package/dist/components/pci-calculator.js +1 -1
  101. package/dist/components/pdf-download2.js +16 -1
  102. package/dist/components/public-notification.js +12 -2
  103. package/dist/components/refine-selection2.js +14 -1
  104. package/dist/components/share-item.js +1 -1
  105. package/dist/components/solution-configuration.js +23 -6
  106. package/dist/components/solution-contents2.js +1 -1
  107. package/dist/components/solution-item-accordion.js +13 -1
  108. package/dist/components/solution-item-details2.js +22 -2
  109. package/dist/components/solution-item-icon2.js +1 -1
  110. package/dist/components/solution-item-sharing2.js +20 -3
  111. package/dist/components/solution-item2.js +22 -5
  112. package/dist/components/solution-organization-variables2.js +18 -1
  113. package/dist/components/solution-resource-item2.js +20 -3
  114. package/dist/components/solution-spatial-ref2.js +20 -3
  115. package/dist/components/solution-template-data2.js +20 -3
  116. package/dist/components/solution-variables2.js +18 -1
  117. package/dist/components/spatial-ref.js +18 -1
  118. package/dist/esm/basemap-gallery_7.entry.js +26 -6
  119. package/dist/esm/buffer-tools_3.entry.js +23 -3
  120. package/dist/esm/calcite-alert_5.entry.js +40 -5
  121. package/dist/esm/calcite-combobox_3.entry.js +11 -1
  122. package/dist/esm/calcite-flow_4.entry.js +33 -10
  123. package/dist/esm/calcite-shell-panel_14.entry.js +119 -10
  124. package/dist/esm/calcite-shell_3.entry.js +26 -4
  125. package/dist/esm/card-manager_3.entry.js +41 -9
  126. package/dist/esm/consent-manager.entry.js +12 -0
  127. package/dist/esm/crowdsource-manager.entry.js +12 -13
  128. package/dist/esm/crowdsource-reporter.entry.js +19 -9
  129. package/dist/esm/deduct-calculator.entry.js +1 -1
  130. package/dist/esm/feature-list.entry.js +13 -3
  131. package/dist/esm/loader.js +1 -1
  132. package/dist/esm/map-select-tools_3.entry.js +38 -6
  133. package/dist/esm/pci-calculator.entry.js +1 -1
  134. package/dist/esm/public-notification.entry.js +11 -2
  135. package/dist/esm/share-item.entry.js +1 -1
  136. package/dist/esm/solution-configuration.entry.js +20 -5
  137. package/dist/esm/solution-contents_3.entry.js +37 -7
  138. package/dist/esm/solution-item-accordion.entry.js +11 -1
  139. package/dist/esm/solution-item-icon.entry.js +1 -1
  140. package/dist/esm/solutions-components.js +1 -1
  141. package/dist/esm/spatial-ref.entry.js +16 -1
  142. package/dist/solutions-components/demos/crowdsource-manager.html +0 -1
  143. package/dist/solutions-components/demos/crowdsource-reporter.html +2 -2
  144. package/dist/solutions-components/p-0a2e5861.entry.js +6 -0
  145. package/dist/solutions-components/{p-739ce6f3.entry.js → p-2f784608.entry.js} +1 -1
  146. package/dist/solutions-components/{p-1c2d0e90.entry.js → p-3e44cfab.entry.js} +1 -1
  147. package/dist/solutions-components/{p-841816a1.entry.js → p-41314f33.entry.js} +7 -7
  148. package/dist/solutions-components/{p-18089a0b.entry.js → p-471d5c7f.entry.js} +2 -2
  149. package/dist/solutions-components/p-5001cc41.entry.js +6 -0
  150. package/dist/solutions-components/p-561c0e02.entry.js +6 -0
  151. package/dist/solutions-components/p-56beff4c.entry.js +6 -0
  152. package/dist/solutions-components/p-592f2000.entry.js +6 -0
  153. package/dist/solutions-components/p-5cbf3eed.entry.js +6 -0
  154. package/dist/solutions-components/p-62d8796c.entry.js +17 -0
  155. package/dist/solutions-components/p-6d1922cc.entry.js +6 -0
  156. package/dist/solutions-components/p-80e81af7.entry.js +6 -0
  157. package/dist/solutions-components/{p-82ddf716.entry.js → p-8e2f4995.entry.js} +1 -1
  158. package/dist/solutions-components/{p-6502d0f8.entry.js → p-b7fbaeb7.entry.js} +1 -1
  159. package/dist/solutions-components/p-cced387c.entry.js +6 -0
  160. package/dist/solutions-components/{p-a5d79c86.entry.js → p-ce53e33d.entry.js} +2 -2
  161. package/dist/solutions-components/{p-59ccd27c.entry.js → p-d51c07d2.entry.js} +1 -1
  162. package/dist/solutions-components/p-d75cf651.entry.js +11 -0
  163. package/dist/solutions-components/p-d7afbe8d.entry.js +11 -0
  164. package/dist/solutions-components/p-e1e21798.entry.js +12 -0
  165. package/dist/solutions-components/p-e9026f9a.entry.js +6 -0
  166. package/dist/solutions-components/solutions-components.esm.js +1 -1
  167. package/dist/types/components/buffer-tools/buffer-tools.d.ts +8 -0
  168. package/dist/types/components/card-manager/card-manager.d.ts +8 -0
  169. package/dist/types/components/consent-manager/consent-manager.d.ts +8 -0
  170. package/dist/types/components/create-feature/create-feature.d.ts +8 -0
  171. package/dist/types/components/create-related-feature/create-related-feature.d.ts +8 -0
  172. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -4
  173. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +8 -0
  174. package/dist/types/components/deduct-calculator/deduct-calculator.d.ts +1 -1
  175. package/dist/types/components/delete-button/delete-button.d.ts +9 -1
  176. package/dist/types/components/delete-dialog/delete-dialog.d.ts +8 -0
  177. package/dist/types/components/edit-card/edit-card.d.ts +8 -0
  178. package/dist/types/components/feature-details/feature-details.d.ts +4 -0
  179. package/dist/types/components/feature-list/feature-list.d.ts +8 -0
  180. package/dist/types/components/info-card/info-card.d.ts +8 -0
  181. package/dist/types/components/json-editor/json-editor.d.ts +8 -0
  182. package/dist/types/components/layer-list/layer-list.d.ts +8 -0
  183. package/dist/types/components/layer-table/layer-table.d.ts +9 -1
  184. package/dist/types/components/map-card/map-card.d.ts +8 -0
  185. package/dist/types/components/map-draw-tools/map-draw-tools.d.ts +8 -0
  186. package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +8 -0
  187. package/dist/types/components/map-picker/map-picker.d.ts +8 -0
  188. package/dist/types/components/map-select-tools/map-select-tools.d.ts +4 -0
  189. package/dist/types/components/map-tools/map-tools.d.ts +8 -0
  190. package/dist/types/components/pdf-download/pdf-download.d.ts +8 -0
  191. package/dist/types/components/public-notification/public-notification.d.ts +4 -0
  192. package/dist/types/components/refine-selection/refine-selection.d.ts +4 -0
  193. package/dist/types/components/solution-configuration/solution-configuration.d.ts +8 -0
  194. package/dist/types/components/solution-item/solution-item.d.ts +8 -0
  195. package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +8 -0
  196. package/dist/types/components/solution-item-details/solution-item-details.d.ts +8 -0
  197. package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +8 -0
  198. package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +8 -0
  199. package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +8 -0
  200. package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +8 -0
  201. package/dist/types/components/solution-template-data/solution-template-data.d.ts +8 -0
  202. package/dist/types/components/solution-variables/solution-variables.d.ts +8 -0
  203. package/dist/types/components/spatial-ref/spatial-ref.d.ts +8 -0
  204. package/dist/types/components.d.ts +266 -120
  205. package/dist/types/preact.d.ts +0 -16
  206. package/package.json +5 -5
  207. package/dist/cjs/feature-comments.cjs.entry.js +0 -61
  208. package/dist/cjs/feature-form-flow-item.cjs.entry.js +0 -61
  209. package/dist/cjs/features-flow-item.cjs.entry.js +0 -61
  210. package/dist/cjs/layout-manager.cjs.entry.js +0 -114
  211. package/dist/cjs/list-flow-item.cjs.entry.js +0 -61
  212. package/dist/cjs/location-flow-item.cjs.entry.js +0 -61
  213. package/dist/cjs/refine-results-flow-item.cjs.entry.js +0 -61
  214. package/dist/collection/assets/t9n/feature-comments/resources.json +0 -3
  215. package/dist/collection/assets/t9n/feature-comments/resources_en.json +0 -3
  216. package/dist/collection/assets/t9n/feature-form-flow-item/resources.json +0 -3
  217. package/dist/collection/assets/t9n/feature-form-flow-item/resources_en.json +0 -3
  218. package/dist/collection/assets/t9n/layout-manager/resources.json +0 -7
  219. package/dist/collection/assets/t9n/layout-manager/resources_ar.json +0 -7
  220. package/dist/collection/assets/t9n/layout-manager/resources_bg.json +0 -7
  221. package/dist/collection/assets/t9n/layout-manager/resources_bs.json +0 -7
  222. package/dist/collection/assets/t9n/layout-manager/resources_ca.json +0 -7
  223. package/dist/collection/assets/t9n/layout-manager/resources_cs.json +0 -7
  224. package/dist/collection/assets/t9n/layout-manager/resources_da.json +0 -7
  225. package/dist/collection/assets/t9n/layout-manager/resources_de.json +0 -7
  226. package/dist/collection/assets/t9n/layout-manager/resources_el.json +0 -7
  227. package/dist/collection/assets/t9n/layout-manager/resources_en.json +0 -7
  228. package/dist/collection/assets/t9n/layout-manager/resources_es.json +0 -7
  229. package/dist/collection/assets/t9n/layout-manager/resources_et.json +0 -7
  230. package/dist/collection/assets/t9n/layout-manager/resources_fi.json +0 -7
  231. package/dist/collection/assets/t9n/layout-manager/resources_fr.json +0 -7
  232. package/dist/collection/assets/t9n/layout-manager/resources_he.json +0 -7
  233. package/dist/collection/assets/t9n/layout-manager/resources_hr.json +0 -7
  234. package/dist/collection/assets/t9n/layout-manager/resources_hu.json +0 -7
  235. package/dist/collection/assets/t9n/layout-manager/resources_id.json +0 -7
  236. package/dist/collection/assets/t9n/layout-manager/resources_it.json +0 -7
  237. package/dist/collection/assets/t9n/layout-manager/resources_ja.json +0 -7
  238. package/dist/collection/assets/t9n/layout-manager/resources_ko.json +0 -7
  239. package/dist/collection/assets/t9n/layout-manager/resources_lt.json +0 -7
  240. package/dist/collection/assets/t9n/layout-manager/resources_lv.json +0 -7
  241. package/dist/collection/assets/t9n/layout-manager/resources_nb.json +0 -7
  242. package/dist/collection/assets/t9n/layout-manager/resources_nl.json +0 -7
  243. package/dist/collection/assets/t9n/layout-manager/resources_pl.json +0 -7
  244. package/dist/collection/assets/t9n/layout-manager/resources_pt-BR.json +0 -7
  245. package/dist/collection/assets/t9n/layout-manager/resources_pt-PT.json +0 -7
  246. package/dist/collection/assets/t9n/layout-manager/resources_ro.json +0 -7
  247. package/dist/collection/assets/t9n/layout-manager/resources_ru.json +0 -7
  248. package/dist/collection/assets/t9n/layout-manager/resources_sk.json +0 -7
  249. package/dist/collection/assets/t9n/layout-manager/resources_sl.json +0 -7
  250. package/dist/collection/assets/t9n/layout-manager/resources_sr.json +0 -7
  251. package/dist/collection/assets/t9n/layout-manager/resources_sv.json +0 -7
  252. package/dist/collection/assets/t9n/layout-manager/resources_th.json +0 -7
  253. package/dist/collection/assets/t9n/layout-manager/resources_tr.json +0 -7
  254. package/dist/collection/assets/t9n/layout-manager/resources_uk.json +0 -7
  255. package/dist/collection/assets/t9n/layout-manager/resources_vi.json +0 -7
  256. package/dist/collection/assets/t9n/layout-manager/resources_zh-CN.json +0 -7
  257. package/dist/collection/assets/t9n/layout-manager/resources_zh-HK.json +0 -7
  258. package/dist/collection/assets/t9n/layout-manager/resources_zh-TW.json +0 -7
  259. package/dist/collection/assets/t9n/list-flow-item/resources.json +0 -3
  260. package/dist/collection/assets/t9n/list-flow-item/resources_en.json +0 -3
  261. package/dist/collection/assets/t9n/location-flow-item/resources.json +0 -3
  262. package/dist/collection/assets/t9n/location-flow-item/resources_en.json +0 -3
  263. package/dist/collection/components/feature-comments/feature-comments.css +0 -19
  264. package/dist/collection/components/feature-comments/feature-comments.js +0 -80
  265. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.css +0 -19
  266. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +0 -80
  267. package/dist/collection/components/features-flow-item/features-flow-item.css +0 -19
  268. package/dist/collection/components/features-flow-item/features-flow-item.js +0 -80
  269. package/dist/collection/components/layout-manager/layout-manager.css +0 -73
  270. package/dist/collection/components/layout-manager/layout-manager.js +0 -161
  271. package/dist/collection/components/list-flow-item/list-flow-item.css +0 -19
  272. package/dist/collection/components/list-flow-item/list-flow-item.js +0 -80
  273. package/dist/collection/components/location-flow-item/location-flow-item.css +0 -19
  274. package/dist/collection/components/location-flow-item/location-flow-item.js +0 -80
  275. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.css +0 -19
  276. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +0 -80
  277. package/dist/components/feature-comments.d.ts +0 -11
  278. package/dist/components/feature-comments.js +0 -76
  279. package/dist/components/feature-form-flow-item.d.ts +0 -11
  280. package/dist/components/feature-form-flow-item.js +0 -76
  281. package/dist/components/features-flow-item.d.ts +0 -11
  282. package/dist/components/features-flow-item.js +0 -76
  283. package/dist/components/layout-manager.d.ts +0 -11
  284. package/dist/components/layout-manager.js +0 -159
  285. package/dist/components/list-flow-item.d.ts +0 -11
  286. package/dist/components/list-flow-item.js +0 -76
  287. package/dist/components/location-flow-item.d.ts +0 -11
  288. package/dist/components/location-flow-item.js +0 -76
  289. package/dist/components/refine-results-flow-item.d.ts +0 -11
  290. package/dist/components/refine-results-flow-item.js +0 -76
  291. package/dist/esm/feature-comments.entry.js +0 -57
  292. package/dist/esm/feature-form-flow-item.entry.js +0 -57
  293. package/dist/esm/features-flow-item.entry.js +0 -57
  294. package/dist/esm/layout-manager.entry.js +0 -110
  295. package/dist/esm/list-flow-item.entry.js +0 -57
  296. package/dist/esm/location-flow-item.entry.js +0 -57
  297. package/dist/esm/refine-results-flow-item.entry.js +0 -57
  298. package/dist/solutions-components/assets/t9n/feature-comments/resources.json +0 -3
  299. package/dist/solutions-components/assets/t9n/feature-comments/resources_en.json +0 -3
  300. package/dist/solutions-components/assets/t9n/feature-form-flow-item/resources.json +0 -3
  301. package/dist/solutions-components/assets/t9n/feature-form-flow-item/resources_en.json +0 -3
  302. package/dist/solutions-components/assets/t9n/layout-manager/resources.json +0 -7
  303. package/dist/solutions-components/assets/t9n/layout-manager/resources_ar.json +0 -7
  304. package/dist/solutions-components/assets/t9n/layout-manager/resources_bg.json +0 -7
  305. package/dist/solutions-components/assets/t9n/layout-manager/resources_bs.json +0 -7
  306. package/dist/solutions-components/assets/t9n/layout-manager/resources_ca.json +0 -7
  307. package/dist/solutions-components/assets/t9n/layout-manager/resources_cs.json +0 -7
  308. package/dist/solutions-components/assets/t9n/layout-manager/resources_da.json +0 -7
  309. package/dist/solutions-components/assets/t9n/layout-manager/resources_de.json +0 -7
  310. package/dist/solutions-components/assets/t9n/layout-manager/resources_el.json +0 -7
  311. package/dist/solutions-components/assets/t9n/layout-manager/resources_en.json +0 -7
  312. package/dist/solutions-components/assets/t9n/layout-manager/resources_es.json +0 -7
  313. package/dist/solutions-components/assets/t9n/layout-manager/resources_et.json +0 -7
  314. package/dist/solutions-components/assets/t9n/layout-manager/resources_fi.json +0 -7
  315. package/dist/solutions-components/assets/t9n/layout-manager/resources_fr.json +0 -7
  316. package/dist/solutions-components/assets/t9n/layout-manager/resources_he.json +0 -7
  317. package/dist/solutions-components/assets/t9n/layout-manager/resources_hr.json +0 -7
  318. package/dist/solutions-components/assets/t9n/layout-manager/resources_hu.json +0 -7
  319. package/dist/solutions-components/assets/t9n/layout-manager/resources_id.json +0 -7
  320. package/dist/solutions-components/assets/t9n/layout-manager/resources_it.json +0 -7
  321. package/dist/solutions-components/assets/t9n/layout-manager/resources_ja.json +0 -7
  322. package/dist/solutions-components/assets/t9n/layout-manager/resources_ko.json +0 -7
  323. package/dist/solutions-components/assets/t9n/layout-manager/resources_lt.json +0 -7
  324. package/dist/solutions-components/assets/t9n/layout-manager/resources_lv.json +0 -7
  325. package/dist/solutions-components/assets/t9n/layout-manager/resources_nb.json +0 -7
  326. package/dist/solutions-components/assets/t9n/layout-manager/resources_nl.json +0 -7
  327. package/dist/solutions-components/assets/t9n/layout-manager/resources_pl.json +0 -7
  328. package/dist/solutions-components/assets/t9n/layout-manager/resources_pt-BR.json +0 -7
  329. package/dist/solutions-components/assets/t9n/layout-manager/resources_pt-PT.json +0 -7
  330. package/dist/solutions-components/assets/t9n/layout-manager/resources_ro.json +0 -7
  331. package/dist/solutions-components/assets/t9n/layout-manager/resources_ru.json +0 -7
  332. package/dist/solutions-components/assets/t9n/layout-manager/resources_sk.json +0 -7
  333. package/dist/solutions-components/assets/t9n/layout-manager/resources_sl.json +0 -7
  334. package/dist/solutions-components/assets/t9n/layout-manager/resources_sr.json +0 -7
  335. package/dist/solutions-components/assets/t9n/layout-manager/resources_sv.json +0 -7
  336. package/dist/solutions-components/assets/t9n/layout-manager/resources_th.json +0 -7
  337. package/dist/solutions-components/assets/t9n/layout-manager/resources_tr.json +0 -7
  338. package/dist/solutions-components/assets/t9n/layout-manager/resources_uk.json +0 -7
  339. package/dist/solutions-components/assets/t9n/layout-manager/resources_vi.json +0 -7
  340. package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-CN.json +0 -7
  341. package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-HK.json +0 -7
  342. package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-TW.json +0 -7
  343. package/dist/solutions-components/assets/t9n/list-flow-item/resources.json +0 -3
  344. package/dist/solutions-components/assets/t9n/list-flow-item/resources_en.json +0 -3
  345. package/dist/solutions-components/assets/t9n/location-flow-item/resources.json +0 -3
  346. package/dist/solutions-components/assets/t9n/location-flow-item/resources_en.json +0 -3
  347. package/dist/solutions-components/p-04ab956c.entry.js +0 -6
  348. package/dist/solutions-components/p-06364211.entry.js +0 -6
  349. package/dist/solutions-components/p-1700f63a.entry.js +0 -6
  350. package/dist/solutions-components/p-1f07e21a.entry.js +0 -6
  351. package/dist/solutions-components/p-46416e11.entry.js +0 -6
  352. package/dist/solutions-components/p-70c0050c.entry.js +0 -6
  353. package/dist/solutions-components/p-720de4db.entry.js +0 -6
  354. package/dist/solutions-components/p-74bcef23.entry.js +0 -11
  355. package/dist/solutions-components/p-76154700.entry.js +0 -6
  356. package/dist/solutions-components/p-938bc915.entry.js +0 -6
  357. package/dist/solutions-components/p-9c4fef09.entry.js +0 -17
  358. package/dist/solutions-components/p-9d56f4b5.entry.js +0 -6
  359. package/dist/solutions-components/p-9da8a590.entry.js +0 -6
  360. package/dist/solutions-components/p-aac0c89c.entry.js +0 -6
  361. package/dist/solutions-components/p-be4c7ffd.entry.js +0 -6
  362. package/dist/solutions-components/p-d2612c30.entry.js +0 -6
  363. package/dist/solutions-components/p-df7de4b7.entry.js +0 -12
  364. package/dist/solutions-components/p-e345f9c4.entry.js +0 -6
  365. package/dist/solutions-components/p-eadff42b.entry.js +0 -11
  366. package/dist/solutions-components/p-fa1c368c.entry.js +0 -6
  367. package/dist/solutions-components/p-ff3858c6.entry.js +0 -6
  368. package/dist/types/components/feature-comments/feature-comments.d.ts +0 -19
  369. package/dist/types/components/feature-form-flow-item/feature-form-flow-item.d.ts +0 -19
  370. package/dist/types/components/features-flow-item/features-flow-item.d.ts +0 -19
  371. package/dist/types/components/layout-manager/layout-manager.d.ts +0 -69
  372. package/dist/types/components/list-flow-item/list-flow-item.d.ts +0 -19
  373. package/dist/types/components/location-flow-item/location-flow-item.d.ts +0 -19
  374. package/dist/types/components/refine-results-flow-item/refine-results-flow-item.d.ts +0 -19
@@ -0,0 +1,17 @@
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 a,F as o}from"./p-4e6eb06e.js";import{s as n,t as c,o as l,z as r,g as h}from"./p-621ad249.js";import{g as d}from"./p-4a291f79.js";import{s as p,a as f,c as b}from"./p-ad9d1221.js";import{N as m,c as u,d as g}from"./p-895e7b9c.js";import{o as y}from"./p-c7f8b7f0.js";import{c as v,s as w,d as k,u as x}from"./p-efaa77a0.js";import{K as _}from"./p-876c3f5f.js";import{u as C,I as z}from"./p-d6902512.js";import{S as E}from"./p-3776809a.js";import{l as W,g as F}from"./p-f4aadb3b.js";import{a as j,g as H}from"./p-d572627c.js";import{P as L}from"./p-cd482a33.js";import"./p-7d542581.js";import"./p-91371f97.js";import"./p-4f82eb55.js";import"./p-233f219c.js";import"./p-ff336351.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";import"./p-ff9e28d1.js";import"./p-7530a02f.js";import"./p-d0d020a5.js";import"./p-9bb44f57.js";
7
+ /*!
8
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
10
+ * v2.13.0
11
+ */const S={slow:14e3,medium:1e4,fast:6e3},D="container",M="container--active",A="container--embedded",I="queue-count",P="queue-count--active",B="focused",T=new class{constructor(){this.registeredElements=[],this.queueTimeoutId=null}registerElement(t){const{registeredElements:e}=this;if(!e.includes(t)){switch(t.queue){case"immediate":e.unshift(t);break;case"next":e.splice(1,0,t);break;case"last":e.push(t)}this.updateAlerts()}}unregisterElement(t){const{registeredElements:e}=this,i=e.indexOf(t);-1!==i&&e.splice(i,1),t.active=!1,this.updateAlerts()}updateAlerts(){window.clearTimeout(this.queueTimeoutId),this.queueTimeoutId=null,this.registeredElements.forEach(((t,e)=>{t.openAlertCount=this.registeredElements.length,0===e?this.queueTimeoutId=window.setTimeout((()=>t.active=!0),300):t.active=!1}))}},V=class{constructor(i){t(this,i),this.calciteAlertBeforeClose=e(this,"calciteAlertBeforeClose",6),this.calciteAlertClose=e(this,"calciteAlertClose",6),this.calciteAlertBeforeOpen=e(this,"calciteAlertBeforeOpen",6),this.calciteAlertOpen=e(this,"calciteAlertOpen",6),this.handleKeyBoardFocus=()=>{this.isFocused=!0,this.handleFocus()},this.handleKeyBoardBlur=()=>{this.isFocused=!1,this.isHovered||this.handleBlur()},this.autoCloseTimeoutId=null,this.totalOpenTime=0,this.totalHoverTime=0,this.openTransitionProp="opacity",this.setTransitionEl=t=>{this.transitionEl=t},this.closeAlert=()=>{this.open=!1,this.clearAutoCloseTimeout()},this.actionsEndSlotChangeHandler=t=>{this.hasEndActions=n(t)},this.handleMouseOver=()=>{this.isHovered=!0,this.handleFocus()},this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.handleBlur()},this.handleFocus=()=>{this.clearAutoCloseTimeout(),this.totalOpenTime=Date.now()-this.initialOpenTime,this.lastMouseOverBegin=Date.now()},this.handleBlur=()=>{const t=Date.now()-this.lastMouseOverBegin,e=S[this.autoCloseDuration]-this.totalOpenTime+this.totalHoverTime;this.totalHoverTime=this.totalHoverTime?t+this.totalHoverTime:t,this.autoCloseTimeoutId=window.setTimeout((()=>this.closeAlert()),e)},this.active=!1,this.openAlertCount=0,this.open=!1,this.autoClose=!1,this.autoCloseDuration="medium",this.embedded=!1,this.kind="brand",this.icon=void 0,this.iconFlipRtl=!1,this.label=void 0,this.numberingSystem=void 0,this.placement="bottom",this.scale="m",this.messages=void 0,this.messageOverrides=void 0,this.queue="last",this.defaultMessages=void 0,this.effectiveLocale="",this.numberStringFormatter=new m,this.hasEndActions=!1,this.isFocused=!1}handleActiveChange(){this.clearAutoCloseTimeout(),this.active&&this.autoClose&&!this.autoCloseTimeoutId&&(this.initialOpenTime=Date.now(),this.autoCloseTimeoutId=window.setTimeout((()=>this.closeAlert()),S[this.autoCloseDuration]))}openHandler(){y(this),this.open?T.registerElement(this.el):T.unregisterElement(this.el)}updateDuration(){this.autoClose&&this.autoCloseTimeoutId&&(this.clearAutoCloseTimeout(),this.autoCloseTimeoutId=window.setTimeout((()=>this.closeAlert()),S[this.autoCloseDuration]))}onMessagesChange(){}handleQueueChange(){this.open&&(T.unregisterElement(this.el),T.registerElement(this.el))}connectedCallback(){u(this),v(this),this.open&&T.registerElement(this.el),this.numberStringFormatter.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,signDisplay:"always"}}async componentWillLoad(){p(this),await w(this),this.open&&y(this)}componentDidLoad(){f(this)}disconnectedCallback(){T.unregisterElement(this.el),this.clearAutoCloseTimeout(),g(this),k(this),this.embedded=!1}render(){const{open:t,autoClose:e,label:a,placement:o,active:n,openAlertCount:l}=this,h=e?"alert":"alertdialog",d=!t,p=r(_,this.icon,this.kind),f=l>1;return i(s,{key:"cecedeaa678e4f6e22fd2aabc4d29bc8589430f6","aria-hidden":c(d),"aria-label":a,"calcite-hydrated-hidden":d,role:h},i("div",{key:"ca85d5f5ec313f3a305e01dcc8cbbad9647dd516",class:{[D]:!0,[M]:n,[`${D}--${o}`]:!0,[A]:this.embedded,[B]:this.isFocused},onPointerEnter:this.autoClose&&this.autoCloseTimeoutId?this.handleMouseOver:null,onPointerLeave:this.autoClose?this.handleMouseLeave:null,ref:this.setTransitionEl},p&&this.renderIcon(p),i("div",{key:"1f72f255c3e0630eed63bb62d3d50f4a2ba6a528",class:"text-container",onFocusin:this.autoClose&&this.autoCloseTimeoutId?this.handleKeyBoardFocus:null,onFocusout:this.autoClose?this.handleKeyBoardBlur:null},i("slot",{key:"aade607960adea0a10f5eac85b119444085c9cf9",name:"title"}),i("slot",{key:"1f47158cfbf8c0626cd49246142fb750311b1d4a",name:"message"}),i("slot",{key:"5ba06e024b517f23168311828cc8ce41c21926a6",name:"link"})),this.renderActionsEnd(),f?this.renderQueueCount():null,this.renderCloseButton(),t&&n&&e?i("div",{class:"dismiss-progress"}):null))}renderCloseButton(){return i("button",{"aria-label":this.messages.close,class:"close",key:"close",onClick:this.closeAlert,onFocusin:this.autoClose?this.handleKeyBoardFocus:null,onFocusout:this.autoClose?this.handleKeyBoardBlur:null,ref:t=>this.closeButton=t,type:"button"},i("calcite-icon",{icon:"x",scale:d(this.scale)}))}renderQueueCount(){const{openAlertCount:t}=this,e=this.numberStringFormatter.numberFormatter.format(t>2?t-1:1);return i("div",{class:{[I]:!0,[P]:t>1},key:"queue-count"},i("calcite-chip",{scale:this.scale,value:e},e))}renderActionsEnd(){return i("div",{class:"actions-end"},i("slot",{name:"actions-end",onSlotchange:this.actionsEndSlotChangeHandler}))}renderIcon(t){return i("div",{class:"icon"},i("calcite-icon",{flipRtl:this.iconFlipRtl,icon:t,scale:d(this.scale)}))}async setFocus(){await b(this);const t=l(this.el,{selector:"calcite-link"});if(this.closeButton||t)return t?t.setFocus():void(this.closeButton&&this.closeButton.focus())}effectiveLocaleChange(){x(this,this.effectiveLocale),this.numberStringFormatter.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,signDisplay:"always"}}numberingSystemChange(){this.numberStringFormatter.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,signDisplay:"always"}}clearAutoCloseTimeout(){window.clearTimeout(this.autoCloseTimeoutId),this.autoCloseTimeoutId=null}onBeforeOpen(){this.calciteAlertBeforeOpen.emit()}onOpen(){this.calciteAlertOpen.emit()}onBeforeClose(){this.calciteAlertBeforeClose.emit()}onClose(){this.calciteAlertClose.emit()}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{active:["handleActiveChange"],open:["openHandler"],autoCloseDuration:["updateDuration"],messageOverrides:["onMessagesChange"],queue:["handleQueueChange"],effectiveLocale:["effectiveLocaleChange"],numberingSystem:["numberingSystemChange"]}}};V.style=':host{--calcite-internal-alert-edge-distance:2rem;display:block;inline-size:var(--calcite-alert-width)}.container{pointer-events:none;position:fixed;z-index:var(--calcite-z-index-toast);margin-inline:auto;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;min-inline-size:-moz-min-content;min-inline-size:min-content;align-items:center;justify-content:center;text-align:start;opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--calcite-alert-shadow, var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow));background-color:var(--calcite-alert-background-color, var(--calcite-color-foreground-1));border-radius:var(--calcite-alert-corner-radius, var(--calcite-border-radius));border-block-start:0 solid transparent;border-inline:1px solid var(--calcite-color-border-3);border-block-end:1px solid var(--calcite-color-border-3);max-inline-size:calc(100% - var(--calcite-internal-alert-edge-distance) * 2);transition:opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}.container--bottom,.container--top{inset-inline-end:0;inset-inline-start:0}.container[class*=bottom]{transform:translate3d(0, var(--calcite-internal-alert-edge-distance), 0);inset-block-end:var(--calcite-internal-alert-edge-distance)}.container[class*=top]{transform:translate3d(0, calc(-1 * var(--calcite-internal-alert-edge-distance)), 0);inset-block-start:var(--calcite-internal-alert-edge-distance)}.container[class*=start]{inset-inline-start:var(--calcite-internal-alert-edge-distance);inset-inline-end:auto}.container[class*=end]{inset-inline-end:var(--calcite-internal-alert-edge-distance);inset-inline-start:auto}.icon{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0px;margin-block:auto;margin-inline-end:auto}.close{display:flex;cursor:pointer;align-items:center;justify-content:flex-end;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline:2px solid transparent;outline-offset:2px;-webkit-appearance:none;border-start-end-radius:var(--calcite-alert-corner-radius, var(--calcite-border-radius));border-end-end-radius:var(--calcite-alert-corner-radius, var(--calcite-border-radius));outline-color:transparent}.close:focus{outline:2px solid var(--calcite-ui-focus-color, 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 )}.close:hover,.close:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-2)}.close:active{background-color:var(--calcite-color-foreground-3)}.queue-count{visibility:hidden;display:flex;min-inline-size:-moz-min-content;min-inline-size:min-content;cursor:default;align-items:center;justify-content:space-around;align-self:stretch;overflow:hidden;text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-2);opacity:0;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline:0 solid transparent;border-start-end-radius:0}.queue-count--active{visibility:visible;opacity:1}.dismiss-progress{position:absolute;display:block;inline-size:100%;overflow:hidden;inset-inline:0;inset-block-start:-2px;block-size:2px;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}.dismiss-progress::after{position:absolute;inset-block-start:0px;display:block;block-size:2px;content:"";background-color:var(--calcite-color-transparent-tint);inset-inline-end:0}.actions-end{display:flex;align-self:stretch}.text-container{box-sizing:border-box;display:flex;min-inline-size:0px;flex:1 1 auto;flex-direction:column;overflow-wrap:break-word}.footer{position:relative;display:flex;inline-size:auto;justify-content:flex-end;align-self:stretch;padding-block-start:1px;block-size:inherit}:host([scale=s]) slot[name=title]::slotted(*),:host([scale=s]) *::slotted([slot=title]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) slot[name=message]::slotted(*),:host([scale=s]) *::slotted([slot=message]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) slot[name=link]::slotted(*),:host([scale=s]) *::slotted([slot=link]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .queue-count{margin-inline:0.5rem}:host([scale=s]) .container{--calcite-internal-alert-min-height:3.5rem;inline-size:var(--calcite-alert-width, 40em)}:host([scale=s]) .close{padding:0.75rem}:host([scale=s]) .icon{padding-inline-start:0.75rem}:host([scale=s]) .text-container{padding-block:0.5rem;padding-inline:0.75rem 0.5rem}:host([scale=m]) slot[name=title]::slotted(*),:host([scale=m]) *::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) slot[name=message]::slotted(*),:host([scale=m]) *::slotted([slot=message]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) slot[name=link]::slotted(*),:host([scale=m]) *::slotted([slot=link]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .queue-count{margin-inline:0.75rem}:host([scale=m]) .container{--calcite-internal-alert-min-height:4.1875rem;inline-size:var(--calcite-alert-width, 50em)}:host([scale=m]) .close{padding:1rem}:host([scale=m]) .icon{padding-inline-start:1rem}:host([scale=m]) .text-container{padding-block:0.75rem;padding-inline:1rem 0.75rem}:host([scale=l]) slot[name=title]::slotted(*),:host([scale=l]) *::slotted([slot=title]){margin-block-end:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) slot[name=message]::slotted(*),:host([scale=l]) *::slotted([slot=message]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) slot[name=link]::slotted(*),:host([scale=l]) *::slotted([slot=link]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .queue-count{margin-inline:1rem}:host([scale=l]) .container{--calcite-internal-alert-min-height:5.625rem;inline-size:var(--calcite-alert-width, 60em)}:host([scale=l]) .close{padding:1.25rem}:host([scale=l]) .icon{padding-inline-start:1.25rem}:host([scale=l]) .text-container{padding-block:1rem;padding-inline:1.25rem 1rem}:host([open]) .container--active{border-block-start-width:2px;opacity:1;pointer-events:initial}:host([open]) .container--active[class*=bottom]{transform:translate3d(0, calc(-1 * var(--calcite-internal-alert-edge-distance)), inherit)}:host([open]) .container--active[class*=top]{transform:translate3d(0, var(--calcite-internal-alert-edge-distance), inherit)}:host([auto-close])>.queue-count{border-inline-end:0 solid transparent}slot[name=title]::slotted(*),*::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}slot[name=message]::slotted(*),*::slotted([slot=message]){margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);margin-inline-end:0.5rem;color:var(--calcite-color-text-2)}slot[name=link]::slotted(*),*::slotted([slot=link]){display:inline-flex;color:var(--calcite-color-text-link)}:host([kind=brand]) .container{border-block-start-color:var(--calcite-color-brand)}:host([kind=brand]) .container .icon{color:var(--calcite-color-brand)}:host([kind=info]) .container{border-block-start-color:var(--calcite-color-status-info)}:host([kind=info]) .container .icon{color:var(--calcite-color-status-info)}:host([kind=danger]) .container{border-block-start-color:var(--calcite-color-status-danger)}:host([kind=danger]) .container .icon{color:var(--calcite-color-status-danger)}:host([kind=success]) .container{border-block-start-color:var(--calcite-color-status-success)}:host([kind=success]) .container .icon{color:var(--calcite-color-status-success)}:host([kind=warning]) .container{border-block-start-color:var(--calcite-color-status-warning)}:host([kind=warning]) .container .icon{color:var(--calcite-color-status-warning)}:host([auto-close-duration=fast]) .dismiss-progress:after{animation:dismissProgress 6000ms ease-out}:host(:hover[auto-close-duration=fast]) .dismiss-progress:after,:host(:focus[auto-close-duration=fast]) .dismiss-progress:after{animation-play-state:paused}:host([auto-close-duration=medium]) .dismiss-progress:after{animation:dismissProgress 10000ms ease-out}:host(:hover[auto-close-duration=medium]) .dismiss-progress:after,:host(:focus[auto-close-duration=medium]) .dismiss-progress:after{animation-play-state:paused}:host([auto-close-duration=slow]) .dismiss-progress:after{animation:dismissProgress 14000ms ease-out}:host(:hover[auto-close-duration=slow]) .dismiss-progress:after,:host(:focus[auto-close-duration=slow]) .dismiss-progress:after{animation-play-state:paused}.container.focused .dismiss-progress::after{animation-play-state:paused}@keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}.container--embedded{position:absolute}:host([hidden]){display:none}[hidden]{display:none}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}';
12
+ /*!
13
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
14
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
15
+ * v2.13.0
16
+ */
17
+ const O=class{constructor(i){t(this,i),this.calciteFlowItemBack=e(this,"calciteFlowItemBack",7),this.calciteFlowItemScroll=e(this,"calciteFlowItemScroll",6),this.calciteFlowItemClose=e(this,"calciteFlowItemClose",6),this.calciteFlowItemToggle=e(this,"calciteFlowItemToggle",6),this.handleInternalPanelScroll=t=>{t.target===this.containerEl&&(t.stopPropagation(),this.calciteFlowItemScroll.emit())},this.handleInternalPanelClose=t=>{t.target===this.containerEl&&(t.stopPropagation(),this.closed=!0,this.calciteFlowItemClose.emit())},this.handleInternalPanelToggle=t=>{t.target===this.containerEl&&(t.stopPropagation(),this.collapsed=t.target.collapsed,this.calciteFlowItemToggle.emit())},this.backButtonClick=()=>{this.calciteFlowItemBack.emit()},this.setBackRef=t=>{this.backButtonEl=t},this.setContainerRef=t=>{this.containerEl=t},this.closable=!1,this.closed=!1,this.collapsed=!1,this.collapseDirection="down",this.collapsible=!1,this.beforeBack=void 0,this.beforeClose=void 0,this.description=void 0,this.disabled=!1,this.heading=void 0,this.headingLevel=void 0,this.loading=!1,this.menuOpen=!1,this.messageOverrides=void 0,this.messages=void 0,this.overlayPositioning="absolute",this.scale="m",this.showBackButton=!1,this.defaultMessages=void 0,this.effectiveLocale=""}onMessagesChange(){}connectedCallback(){u(this),v(this)}async componentWillLoad(){await w(this),p(this)}componentDidRender(){C(this)}disconnectedCallback(){g(this),k(this)}componentDidLoad(){f(this)}effectiveLocaleChange(){x(this,this.effectiveLocale)}async setFocus(){await b(this);const{backButtonEl:t,containerEl:e}=this;return t?t.setFocus():e?e.setFocus():void 0}async scrollContentTo(t){await(this.containerEl?.scrollContentTo(t))}renderBackButton(){const{el:t}=this,e="rtl"===h(t),{showBackButton:s,backButtonClick:a,messages:o}=this,n=o.back;return s?i("calcite-action",{"aria-label":n,class:"back-button",icon:e?"chevron-right":"chevron-left",key:"flow-back-button",onClick:a,ref:this.setBackRef,scale:"s",slot:"header-actions-start",text:n,title:n}):null}render(){const{collapsed:t,collapseDirection:e,collapsible:a,closable:o,closed:n,description:c,disabled:l,heading:r,headingLevel:h,loading:d,menuOpen:p,messages:f,overlayPositioning:b,beforeClose:m}=this;return i(s,{key:"2e7872bb2687db0b67ddbf375f8ec0beaabbda36"},i(z,{key:"a9418954405a2cec2092bae3be5d77f02306e3c9",disabled:l},i("calcite-panel",{key:"d563c751421bf2d66c03286deaa613e09f585546",beforeClose:m,closable:o,closed:n,collapseDirection:e,collapsed:t,collapsible:a,description:c,disabled:l,heading:r,headingLevel:h,loading:d,menuOpen:p,messageOverrides:f,onCalcitePanelClose:this.handleInternalPanelClose,onCalcitePanelScroll:this.handleInternalPanelScroll,onCalcitePanelToggle:this.handleInternalPanelToggle,overlayPositioning:b,ref:this.setContainerRef,scale:this.scale},this.renderBackButton(),i("slot",{key:"c506ec8bb4debbd6a9da6c7941878de49776f614",name:"action-bar",slot:E.actionBar}),i("slot",{key:"e76e55e654ff878acff734bdf387402a9e262159",name:"alerts",slot:E.alerts}),i("slot",{key:"f7ab8839d7b101e31087130ebf3e36af1ec7da24",name:"header-actions-start",slot:E.headerActionsStart}),i("slot",{key:"2932c4c15b168732356b8e55fcc3064f5b3f4cf5",name:"header-actions-end",slot:E.headerActionsEnd}),i("slot",{key:"1ef8a9050683022733695445092f8c626487d87b",name:"header-content",slot:E.headerContent}),i("slot",{key:"24c0ab570a601a6c0edfb0c820e580fd24b158ce",name:"header-menu-actions",slot:E.headerMenuActions}),i("slot",{key:"ec55bbe7ba939a6efb35225850c37a1aadb97275",name:"fab",slot:E.fab}),i("slot",{key:"aa0bfec47656ef9f7f575cd933897a7909e5badc",name:"content-top",slot:E.contentTop}),i("slot",{key:"e23532d080e2df529c2aeb6af043c6efe7a0ab6d",name:"content-bottom",slot:E.contentBottom}),i("slot",{key:"db6ffc0d9300c77067a4c88ab277de685c7713af",name:"footer-start",slot:E.footerStart}),i("slot",{key:"5f249356da9292f34c4036d0d0741f048fe999e9",name:"footer",slot:E.footer}),i("slot",{key:"7476137bacc0f3be5c97682c5027f74d73254765",name:"footer-end",slot:E.footerEnd}),i("slot",{key:"58f60a46c42a05abe9b100a57d478d991e4f25bc",name:"footer-actions",slot:E.footerActions}),i("slot",{key:"926a8d94b76b6fcdef6dfd219ba8180c44f81c35"}))))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};O.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{position:relative;display:flex;inline-size:100%;flex:1 1 auto;overflow:hidden}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);border-inline-end-width:1px}calcite-panel{--calcite-panel-footer-padding:var(--calcite-flow-item-footer-padding);--calcite-panel-header-border-block-end:var(--calcite-flow-item-header-border-block-end)}:host([hidden]){display:none}[hidden]{display:none}";const R=class{constructor(i){t(this,i),this.success=e(this,"success",7),this.fail=e(this,"fail",7),this.drawComplete=e(this,"drawComplete",7),this.editingAttachment=e(this,"editingAttachment",7),this.progressStatus=e(this,"progressStatus",7),this.modeChanged=e(this,"modeChanged",7),this.mapView=void 0,this.selectedLayerId=void 0,this.customizeSubmit=!1,this.locale=void 0,this.searchConfiguration=void 0,this.isMobile=void 0,this.floorLevel=void 0,this.formElements=void 0,this.enableSearch=!1,this.showGuidingMsg=!0,this.showGuidingMsgWhileDrawing=!0,this._editorLoading=!1,this._currentPage="templatePicker",this._translations=void 0}get el(){return a(this)}Editor;ExpressionInfo;FieldElement;FormTemplate;_editor;FeatureLayer;MapView;_updatedMapView;Search;_search;reactiveUtils;_addingAttachment;_container;_mapViewContainer;_isSubmitBtnClicked=!1;_selectedLayer;_searchDiv;_calciteNotice;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((async()=>{await this.init()}))}async isMobileHandler(){this.modeChanged.emit()}async _editorLoadingWatchHandler(t){if(t){if(this._container?.classList.add("display-none"),this._selectedLayer?.isTable){const t={layer:this._selectedLayer,template:this._selectedLayer.templates[0]};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(t),await this.hideEditorsElements()}else await this.startCreate();this._container?.classList.remove("display-none"),this._editorLoading=!1}}async submit(){this._editor&&(this._isSubmitBtnClicked=!0,this._editor.viewModel.featureFormViewModel.submit())}async refresh(t){this._editor&&this._setFloorLevel(t)}success;fail;drawComplete;editingAttachment;progressStatus;modeChanged;async componentWillLoad(){await this._getTranslations(),await this.initModules()}async componentDidLoad(){await this.init()}componentDidRender(){this.isMobile&&(this._mapViewContainer.style.top=`${this._calciteNotice.offsetHeight+this._searchDiv.offsetHeight+80}px`)}disconnectedCallback(){this._editor&&this._editor.destroy()}render(){const t="drawing"===this._currentPage?"":"display-none",e=this._editorLoading?"":"display-none",s=this._editorLoading?"display-none":"",a=this.isMobile?"show-map":"display-none";let n=this._translations.chooseCategoryMsg;return"drawing"===this._currentPage?n=this._translations.provideLocationMsg:"featureForm"===this._currentPage&&(n=this._translations.provideDetailsMsg),i(o,{key:"788b2ebb85b603452d4b4de05711510f7480c895"},this.showGuidingMsg&&(this.showGuidingMsgWhileDrawing||"drawing"!==this._currentPage)&&i("calcite-notice",{key:"cf41e701f5a7605531fa6351acf13ea20e219f7a",class:"notice-msg",icon:"lightbulb",kind:"success",open:!0,ref:t=>this._calciteNotice=t},i("div",{key:"1bb493a8e5a962c8a8c75ac37156edbf866c3916",slot:"message"},n)),i("calcite-loader",{key:"5d2e9a465cb7c6dbde8d941497fda87b4fc7c258",class:e,label:"",scale:"s"}),i("div",{key:"23b8651f4040443ba731173d1818b515b718b754",class:s,id:"feature-form"}),this.enableSearch&&i("div",{key:"7f628d09111295d46fbf7b9605999c2ef88c258d",class:`search-widget ${t} ${s}`,id:"search-widget-ref",ref:t=>this._searchDiv=t}),i("div",{key:"3def9aaab0a2f03076a6c4c645cf5a080bbb9e75",class:`${a}`,ref:t=>{this._mapViewContainer=t}}))}async init(){this.mapView&&this.selectedLayerId&&(this._updatedMapView=this.mapView,await(this.isMobile?this.createMobileMapView():this._loadWidgets()))}async initModules(){const[t,e,i,s,a,o,n]=await W(["esri/widgets/Editor","esri/core/reactiveUtils","esri/widgets/Search","esri/form/ExpressionInfo","esri/form/elements/FieldElement","esri/form/FormTemplate","esri/views/MapView"]);this.Editor=t,this.reactiveUtils=e,this.Search=i,this.ExpressionInfo=s,this.FieldElement=a,this.FormTemplate=o,this.MapView=n}async createMobileMapView(){this._mapViewContainer.classList.add("hide-map"),await new this.MapView({map:this.mapView.map,container:this._mapViewContainer,zoom:this.mapView.zoom}).when((t=>{this._updatedMapView=t,this._loadWidgets()}),(t=>{console.log(t)}))}async _loadWidgets(){await this.createEditorWidget(),this.enableSearch&&await this.createSearchWidget()}async createEditorWidget(){this._editor&&this._editor.destroy();const t=[];this._container=document.createElement("div"),this._container?.classList.add("display-none");const e=await j(this._updatedMapView);this._selectedLayer=await H(this.mapView,this.selectedLayerId),this._selectedLayer?.isTable||e.forEach((async e=>{t.push({layer:e,enabled:"feature"===e?.type&&e?.id===this.selectedLayerId,addEnabled:!0,updateEnabled:!1,deleteEnabled:!1})})),this._editor=new this.Editor({view:this._updatedMapView,layerInfos:t,visibleElements:{snappingControls:!1,createFeaturesSection:!0,editFeaturesSection:!1},container:this._container}),this._mapViewContainer?this.el.insertBefore(this._container,this._mapViewContainer):this.el.appendChild(this._container);const i=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"adding-attachment"===t||"editing-attachment"===t?(this._addingAttachment=!0,this.editingAttachment.emit(!0)):this._addingAttachment&&(this.editingAttachment.emit(!1),this._addingAttachment=!1)}));this._editor.viewModel.addHandles(i);const s=this.reactiveUtils.watch((()=>this._editor.viewModel.featureTemplatesViewModel.state),(t=>{"ready"===t&&"create-features"!==this._editor.viewModel?.activeWorkflow?.type&&(this.progressStatus.emit(.5),this._editorLoading=!0)}));this._editor.viewModel.addHandles(s);const a=this.reactiveUtils.watch((()=>this._editor.viewModel.featureFormViewModel?.state),(t=>{"ready"===t&&(this._mapViewContainer?.classList?.replace("show-map","hide-map"),this._editor.viewModel.featureFormViewModel.on("submit",this.submitted.bind(this)),setTimeout((()=>{this._setFloorLevel(this.floorLevel)}),50),this._currentPage="featureForm",this.progressStatus.emit(1),this.drawComplete.emit())}));this._editor.viewModel.addHandles(a);const o=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"creating-features"===t&&"disabled"===this._editor.viewModel.featureFormViewModel.state&&(this._mapViewContainer?.classList?.replace("hide-map","show-map"),this._selectedLayer&&!this._selectedLayer.isTable&&(this._currentPage="drawing"))}));this._editor.viewModel.addHandles(o)}async startCreate(){return await this.hideEditorsElements(),new Promise(((t,e)=>{if(this._editor.viewModel.featureTemplatesViewModel.items?.length){const i=this._editor.viewModel.featureTemplatesViewModel.items[0].get("items");this._editor.viewModel.featureTemplatesViewModel.on("select",(()=>{this.progressStatus.emit(.75),setTimeout((()=>{this.hideEditorsElements().then((()=>{t({})}),(t=>e(t)))}),700)})),1===i.length&&this._editor.viewModel.featureTemplatesViewModel.select(i[0]);const s=i.length>1;this.hideEditorsElements().then((()=>{s&&t({})}),(t=>s&&e(t)))}}))}async createSearchWidget(){let t={view:this._updatedMapView};this.searchConfiguration&&(t={...this._getSearchConfig(this.searchConfiguration,this._updatedMapView)}),this._search=new this.Search(t),this._search.container="search-widget-ref",this._search.popupEnabled=!1,this._search.resultGraphicEnabled=!1;let e=null;this._search.on("search-complete",(t=>{this._updatedMapView.goTo(t.results[0].results[0].extent),"point"===this._selectedLayer.geometryType&&(e=t.results[0].results[0]?.feature.geometry)}));const i=this.reactiveUtils.watch((()=>this._search.viewModel.state),(t=>{"ready"===t&&setTimeout((()=>{this._editor.viewModel.sketchViewModel.createGraphic&&e&&(this._editor.viewModel.sketchViewModel.createGraphic.set("geometry",e),this._editor.viewModel.sketchViewModel.complete(),this.hideEditorsElements())}),100)}));this._search.viewModel.addHandles(i)}_getSearchConfig(t,e){const i=t.sources;return i?.length>0?(t.includeDefaultSources=!1,i.forEach((t=>{if(t.hasOwnProperty("layer")){const i=t,s=i.layer?.id,a=s?e.map.findLayerById(s):null,o=i?.layer?.url;a?i.layer=a:o&&(i.layer=new this.FeatureLayer(o))}})),i?.forEach((t=>{if(t.hasOwnProperty("locator")){const e=t;"ArcGIS World Geocoding Service"===e?.name&&(e.outFields=e.outFields||["Addr_type","Match_addr","StAddr","City"],e.singleLineFieldName="SingleLine"),e.url=e.url,delete e.url}}))):t={...t,includeDefaultSources:!0},t}async _setFloorLevel(t){if(!t)return;const e=this._selectedLayer;if(e?.floorInfo?.floorField){const i=e.fields.find((t=>t.name===e.floorInfo.floorField));if(i&&!e?.formTemplate)this._editor.viewModel.featureFormViewModel.setValue(i.name,t),i.editable=!1;else if(e.formTemplate&&this.formElements){const i=new this.ExpressionInfo({expression:`"${t}"`,name:"floor-info-test",title:"Floor Info",returnType:"string"}),s=new this.FieldElement({label:e.floorInfo.floorField,editableExpression:"false",fieldName:e.floorInfo.floorField,input:{type:"text-box",maxLength:50,minLength:0},valueExpression:i.name});this._updatedMapView.map.editableLayers.forEach((t=>{const e=this.formElements.orgExpressionInfos,a=[...this.formElements.orgElements];a.push(s);const o=new this.FormTemplate({title:t.formTemplate.title,description:t.formTemplate.description,elements:a,expressionInfos:[i].concat(e)});t.formTemplate=o}))}}}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector(".esri-editor")?.querySelectorAll("calcite-flow-item")?.forEach((t=>{const e=t.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");e?.querySelector("header")?.setAttribute("style","display: none"),e?.querySelector("footer")?.setAttribute("style","display: none")})))}async submitted(t){if(t.invalid.length)this._isSubmitBtnClicked=!1;else if(t.valid.length&&this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{await this._editor.activeWorkflow.commit(),this._editor.viewModel.failures?.length&&this._editor.viewModel.failures.some((t=>{if(t.error)throw t.error}))}catch(t){return void this.fail.emit(t)}this.success.emit()}}timeout(t){return new Promise((e=>setTimeout(e,t)))}async _getTranslations(){const t=await F(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],isMobile:["isMobileHandler"],_editorLoading:["_editorLoadingWatchHandler"]}}};R.style=":host{display:block}.esri-editor__panel-toolbar{display:none !important}.esri-editor__panel-content{padding-block:0px !important}.esri-editor .esri-item-list__group__header{display:none !important}.esri-editor__panel-content__section .esri-widget__heading{display:none !important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px !important;padding-inline:10px !important}.search-widget{width:92% !important;margin:5px 14px 20px 14px}.display-none{display:none !important}.hide-map{height:1%;visibility:hidden}.show-map{padding:10px !important;position:absolute !important;bottom:0;height:auto !important;width:calc(100% - 22px)}.notice-msg{padding:10px;width:calc(100% - 20px)}.esri-editor__panel-content{padding-block:10px !important}@media only screen and (max-width: 600px){.esri-editor__panel-content{padding-block:0 !important;min-height:0 !important}}";const q=class{constructor(i){t(this,i),this.closeEdit=e(this,"closeEdit",7),this.editsComplete=e(this,"editsComplete",7),this.refreshGraphics=e(this,"refreshGraphics",7),this.enableEditGeometry=!1,this.graphics=void 0,this.locale=void 0,this.mapView=void 0,this.open=!1,this.graphicIndex=0,this._editorLoading=!1,this._translations=void 0}get el(){return a(this)}_activeWorkflowHandle;_addRelatedRecordHandle;_attachmentHandle;_editHandle;_layerEditHandle;Editor;_editor;_layer;_editContainer;_editControlElements;_editingDisabled;_shouldClose=!1;reactiveUtils;async graphicsWatchHandler(){0===this.graphics.length&&this.open&&await this._closeEdit(!0)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async openWatchHandler(t){t&&this.graphics?.length>0&&this.graphicIndex>-1&&(this._editorLoading=!0,await this._initEditorWidget(),this.graphicIndex>-1&&this.graphics.length>0&&this.open&&!this._shouldClose&&await this._startUpdate(),this._editorLoading=!1),t||await this._closeEdit(!0)}closeEdit;editsComplete;refreshGraphics;async featureSelectionChange(){this.open&&await this._closeEdit(!1)}async componentWillLoad(){await this._initModules(),await this._getTranslations()}async componentWillRender(){this.graphics?.length>0&&this.graphics[0]?.layer&&(this._layer=this.graphics[0].layer,this._layerEditHandle&&this._layerEditHandle.remove(),this._layerEditHandle=("subtype-sublayer"===this._layer.type?this._layer.parent:this._layer).on("edits",(()=>{this.editsComplete.emit()})))}render(){const t=this._editorLoading?"display-none":"position-absolute",e=this._editorLoading?"":"display-none";return i(s,{key:"15ae3de9c8ab0a66a0185ffaafc27f03e19c77b7"},i("div",{key:"bbaa7dbc405259b64dfceca89e45abf6372c76c3",class:"position-absolute"},this.graphics?.length>0&&this.graphics[0]&&this.graphics[0].layer.editingEnabled?void 0:i("calcite-notice",{kind:"warning",open:!0,slot:"content-top",width:"full"},i("div",{slot:"message"},this._translations.enableEditing)),i("div",{key:"eb8b08fa0b08cf93581fb8e76d59bd8b5446770f",class:"position-absolute"},i("div",{key:"03e525373c09fbcd4dad213738d97b99f1549975",class:t,id:"feature-form",ref:t=>this._editContainer=t}),i("calcite-loader",{key:"1cc46d8f6499a90736e05c2eed9bff71aff35d12",class:e,label:"",scale:"s"}))))}async _initModules(){const[t,e]=await W(["esri/widgets/Editor","esri/core/reactiveUtils"]);this.Editor=t,this.reactiveUtils=e}async _initEditorWidget(){if(this.mapView&&this.graphics&&this.graphics.length>0&&this.graphics[0]){this._editor&&this._editor.destroy();const t=document.createElement("div"),e=(await j(this.mapView)).map((t=>({layer:t,geometryUpdatesEnabled:this.enableEditGeometry})));this._editor=new this.Editor({allowedWorkflows:"update",view:this.mapView,layerInfos:e,visibleElements:{snappingControls:!1},container:t}),this._attachmentHandle&&this._activeWorkflowHandle&&(this._attachmentHandle.remove(),this._activeWorkflowHandle.remove()),this._attachmentHandle=this.reactiveUtils.when((()=>"adding-attachment"===this._editor.viewModel.state||"editing-attachment"===this._editor.viewModel.state||"creating-features"===this._editor.viewModel.state),(()=>{this._shouldClose=!1})),this._activeWorkflowHandle=this.reactiveUtils.watch((()=>this._editor.viewModel.activeWorkflow?.activeWorkflow),(t=>{"update-table-record"!==t?.type&&"create-features"!==t?.type||(this._shouldClose=!1),(t?.type||t?.hasPendingEdits||this._editor.activeWorkflow)&&this._editor?.activeWorkflow?.started||(this.open=!1)})),this._editContainer.appendChild(t)}}async _closeEdit(t){this._shouldClose=!0,t&&this._editor?.activeWorkflow?(this._editor.activeWorkflow?.activeWorkflow?.hasPendingEdits&&(await this._editor.activeWorkflow.reset(),await this._editor.cancelWorkflow()),this._editor.destroy()):this.graphicIndex>-1&&this.graphics?.length>0&&this.refreshGraphics.emit(this.graphics),this._shouldClose=!1,this.closeEdit.emit()}async _startUpdate(){await this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]),this._shouldClose=!0}async _getTranslations(){const t=await F(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],locale:["localeWatchHandler"],open:["openWatchHandler"]}}};q.style=":host{display:block}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-500{font-weight:var(--calcite-font-weight-medium)}.font-italic{font-style:italic}#feature-form{padding-top:0px}.padding-sides-bottom-1{padding:0 1rem 1rem 1rem}.position-relative{position:relative}.esri-editor__prompt--danger{position:relative !important;width:100% !important;background-color:var(--calcite-color-foreground-1) !important}.esri-feature__content-node{background-color:var(--calcite-color-foreground-1) !important}.esri-editor__panel-toolbar{display:none !important}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.esri-editor__panel-content{padding-block:10px !important}";const U=class{constructor(i){t(this,i),this.popupClosed=e(this,"popupClosed",7),this.selectionChanged=e(this,"selectionChanged",7),this.enableEditGeometry=!1,this.graphics=void 0,this.isLoading=!1,this.isMobile=void 0,this.mapView=void 0,this.allowEditing=!0,this.highlightEnabled=!0,this.locale=void 0,this.paginationEnabled=!0,this.position="absolute",this._alertOpen=!1,this._count="",this._editRecordOpen=!1,this._mobileTitle="",this._showListView=!1,this._translations=void 0}get el(){return a(this)}Features;_editEnabled;_features;_layer;_popupUtils;_featuresNodeId="features-node"+(new Date).getMilliseconds().toString();reactiveUtils;async graphicsWatchHandler(){await this.setGraphics()}async isMobileWatchHandler(){await this._initFeaturesWidget()}async localeWatchHandler(){if(this.el.lang=this.locale,await this._getTranslations(),this._features){const t=[...this.graphics];this.graphics=[],this.graphics=t}}async mapViewWatchHandler(){return await this._initFeaturesWidget()}async getSelectedFeature(){return this._features.selectedFeature}async refresh(){await this.setGraphics()}async back(){this._features.previous(),this._count=this._getCount()}async next(){this._features.next(),this._count=this._getCount()}async toggleListView(){this._showListView=!this._showListView;const t=this._features.selectedFeatureIndex;this._features.open({features:this.graphics,featureMenuOpen:this._showListView}),this._features.selectedFeatureIndex=t}async updateCurrentGraphic(t){this._features.selectedFeatureWidget.graphic=t}popupClosed;selectionChanged;async closeEdit(){this._editRecordOpen=!1}async layerSelectionChange(){this._showListView=!1,this._features?.viewModel&&(this._features.viewModel.featureMenuOpen=!1,this._features.close())}async refreshGraphics(t){this.graphics=[...t.detail]}async componentWillLoad(){await this._initModules(),await this._getTranslations(),this._popupUtils=new L}async componentDidLoad(){this.graphics?.length>0&&await this.setGraphics()}render(){const t=this.isLoading?"":"display-none",e=this.isLoading||this._editRecordOpen?"visibility-hidden":"position-absolute",a=!this.isLoading&&this._editRecordOpen?"position-absolute":"display-none",o=!this.isLoading&&this._editRecordOpen||this._showListView?"display-none":"",n=this._features?.features?.length<2,c=this.isMobile?"display-none":"",l=this._features?.selectedFeature?.getObjectId(),r=parseInt(l?.toString(),10)>-1?[l]:[],h=this._layer?.editingEnabled&&this._layer?.capabilities?.operations?.supportsDelete;return i(s,{key:"54e47d0ec2be9149c3e667c9e940842804d96964"},i("calcite-shell",{key:"14bb280d394ceaa74463979886ab09cdf393b26e",style:{position:this.position}},this._getHeader(),i("calcite-loader",{key:"3226709e73de16c795c348513183b26b88b7a726",class:t,label:this._translations.fetchingData}),i("div",{key:"ba4b0c34620c60e849bdf0ada785b9976156dd1c",class:"esri-widget feature-node "+e,id:this._featuresNodeId}),i("div",{key:"440a4d3c0530f97031df2e2ab9511ef6035fb5da",class:`${o} width-100`,slot:"footer"},this.allowEditing&&i("div",{key:"172b2e2cc10bdfb104057376ceba5d7f5f19ad61",class:"display-flex top-border padding-1-2"},i("calcite-button",{key:"242daf0ec6c3fe4fcc11be4bbc19f810836714ec",appearance:"solid",id:"solutions-edit",onClick:()=>this._openEditRecord(),width:"full"},this._translations.edit),this.isMobile&&h?i("delete-button",{class:"padding-inline-start-1 width-100",id:"solutions-delete",ids:r,layer:this._layer,locale:this.locale,onEditsComplete:()=>this._closePopup()}):void 0,i("calcite-tooltip",{key:"760f8fcd1bcff2060e0a98e84a222107e55fef22",placement:"bottom","reference-element":"solutions-edit"},i("span",{key:"30656b92e9bdbf3a9548586d91fc23bce2da9db3"},this._translations.edit)),this.isMobile?i("calcite-tooltip",{placement:"bottom","reference-element":"solutions-delete"},i("span",null,this._translations.delete)):void 0),this.paginationEnabled&&!n&&i("div",{key:"161902561c9686d74a511338dfc02efce0095af7",class:`display-flex padding-1-2 button-container top-border ${c}`},i("div",{key:"afd1459e3f69f60d96103854fe3dae71f18fc41e"},i("calcite-button",{key:"59063d7fa2cf886afca66857cb1f74e42789e59f",appearance:"transparent",disabled:n,iconFlipRtl:"both",iconStart:"chevron-left",id:"solutions-back",onClick:()=>this._back(),width:"full"}),i("calcite-tooltip",{key:"412e00bc323494bb1e3a7dbeef59ab9bcd6ff8e0",placement:"top","reference-element":"solutions-back"},i("span",{key:"7c1512be35f16b4441c2a364e1b7a87e3c7caf97"},this._translations.back))),i("calcite-action",{key:"d4790efec0d13e6726ffe9d438683db6887d00b8",class:"pagination-action",iconFlipRtl:!0,onClick:()=>this._toggleListView(),scale:"s",text:"",textEnabled:!0},i("span",{key:"98663d5c3b2f445db4e38cba98b8149c53cbc474",class:"pagination-count"},this._count)),i("div",{key:"6ca88610950cf2852e2dc67588c77fd464ece3c5"},i("calcite-button",{key:"577739ef819676dfd9cdee560a8cd22edcd9c6b7",appearance:"transparent",disabled:n,iconFlipRtl:"both",iconStart:"chevron-right",id:"solutions-next",onClick:()=>this._next(),width:"full"}),i("calcite-tooltip",{key:"73a4f907d1a2f46a980c451572f1ba1e1b0b0596",placement:"top","reference-element":"solutions-next"},i("span",{key:"d5f67497df866592b30d6c328f9f45716eb16153"},this._translations.next))))),i("edit-card",{key:"c8094993be5203f464cea4f632c14dbefa263a73",class:a,enableEditGeometry:this.enableEditGeometry,graphicIndex:this._features?.selectedFeatureIndex,graphics:this.graphics,locale:this.locale,mapView:this.mapView,open:this._editRecordOpen}),i("calcite-alert",{key:"0b9fd2109d7c6b51b91088ecbec50956a2d8d3d8",icon:"layer-broken",kind:"warning",label:"",onCalciteAlertClose:()=>this._alertClosed(),open:this._alertOpen,placement:"top"},i("div",{key:"c8b7b452430d6fedda5288fd58efae5526adeda7",slot:"title"},this._translations.editDisabled),i("div",{key:"b2dc954d43bb08908723f70796df5c77108d92d8",slot:"message"},this._translations.enableEditing))))}async _initModules(){const[t,e]=await W(["esri/widgets/Features","esri/core/reactiveUtils"]);this.Features=t,this.reactiveUtils=e}async setGraphics(){this._features||await this._initFeaturesWidget(),this.graphics.length>0?(this._layer=this.graphics[0]?.layer,this._editEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsUpdate,this._mobileTitle=await this._popupUtils.getPopupTitle(this.graphics[0],this.mapView.map),this._features.open({features:this.graphics})):(this._features.clear(),this._features.close()),this._count=this._getCount()}async _initFeaturesWidget(){return void 0!==this.isMobile?await(this.mapView?.when((()=>{this._features?(this._features.view=this.mapView,this._features.visibleElements.actionBar=!1,this._features.visibleElements.closeButton=!1,this._features.visibleElements.heading=!this.isMobile):(this._features=new this.Features({view:this.mapView,container:this._featuresNodeId,visibleElements:{actionBar:!1,closeButton:!1,heading:!this.isMobile}}),this._features.viewModel.highlightEnabled=this.highlightEnabled,this.reactiveUtils.watch((()=>this._features.viewModel.featureMenuOpen),(t=>{this._count=this._getCount(),t||(this._showListView=t)})),this.reactiveUtils.watch((()=>this._features.selectedFeatureIndex),(t=>{t>-1&&this.selectionChanged.emit({selectedFeature:[this._features.selectedFeature],selectedFeatureIndex:this._features.selectedFeatureIndex})})))}))):Promise.resolve()}_getHeader(){return this.isMobile&&!this._editRecordOpen?i("calcite-panel",{class:"border-width-0",slot:"header"},i("calcite-action",{class:"end-border",icon:"chevron-left",iconFlipRtl:!0,onClick:()=>this._closePopup(),scale:"s",slot:"header-actions-start",text:""}),i("span",{class:"font-bold",slot:"header-content"},this._mobileTitle)):void 0}_closePopup(){this.popupClosed.emit()}_alertClosed(){this._alertOpen=!1}_openEditRecord(){this._editEnabled?this._editRecordOpen=!0:this._alertOpen=!0}_back(){this._features.previous(),this._count=this._getCount()}_next(){this._features.next(),this._count=this._getCount()}_getCount(){const t=(this._features?.viewModel.selectedFeatureIndex+1).toString(),e=this._features?.features?.length.toString();return this._translations.indexOfTotal.replace("{{index}}",t).replace("{{total}}",e)}_toggleListView(){this._showListView=!this._showListView;const t=this._features.selectedFeatureIndex;this._features.open({features:this.graphics,featureMenuOpen:this._showListView}),this._features.selectedFeatureIndex=t}async _getTranslations(){const t=await F(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],isMobile:["isMobileWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"]}}};U.style=":host{display:block;--calcite-label-margin-bottom:0}.padding-1-2{padding:0.5rem}.display-none{display:none !important}.display-flex{display:flex}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.feature-node{position:relative !important}.feature-node .esri-features__footer{display:none !important}.button-container{justify-content:center;align-items:center}.top-border{border-top:1px solid var(--calcite-color-border-1)}.width-100{width:100%}.esri-features__container{padding:0.5rem !important;background-color:var(--calcite-color-foreground-1) !important;height:100% !important}.overflow-hidden{overflow:hidden}.height-40{height:40px}.end-border{border-inline-end:1px solid var(--calcite-color-border-1)}.font-bold{font-weight:bold}.visibility-hidden{visibility:hidden;height:0px}.padding-inline-start-1{padding-inline-start:1rem}.border-width-0{border-width:0px}.pagination-action{position:relative;left:3px}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}";export{V as calcite_alert,O as calcite_flow_item,R as create_feature,q as edit_card,U as info_card}
@@ -0,0 +1,6 @@
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,g as e,h as s,H as o,F as h}from"./p-4e6eb06e.js";import{g as a}from"./p-f4aadb3b.js";import{E as l}from"./p-80cb7c73.js";import{g as n}from"./p-d572627c.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const d=class{constructor(e){t(this,e),this.showIntroductionWindow=i(this,"showIntroductionWindow",7),this.showCoverPage=i(this,"showCoverPage",7),this.appLayout=void 0,this.appProxies=void 0,this.basemapConfig=void 0,this.coverPageEnabled=void 0,this.customInfoText=void 0,this.defaultAppLayout=void 0,this.defaultCenter="",this.defaultGlobalId="",this.defaultLayer="",this.defaultLevel="",this.defaultOid="",this.defaultWebmap="",this.introductionWindowEnabled=!1,this.enableAutoRefresh=!1,this.enableBasemap=!0,this.enableColumnReorder=!0,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableHome=!0,this.enableLegend=!0,this.enableSearch=!0,this.enableShare=!1,this.enableZoom=!0,this.locale=void 0,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.popupHeaderColor=void 0,this.popupHeaderHoverColor=void 0,this.popupHeaderHoverTextColor=void 0,this.popupHeaderTextColor=void 0,this.searchConfiguration=void 0,this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.showNewestFirst=!0,this.theme="light",this.zoomAndScrollToSelected=!1,this.zoomToScale=void 0,this._enableCreateFeatures=!0,this._hideFooter=!1,this._hideTable=!1,this._isMobile=!1,this._isPortraitMobile=!1,this._translations=void 0,this._layer=void 0,this._layoutMode=l.GRID,this._mapInfo=void 0,this._mapView=void 0,this._panelOpen=!0,this._numSelected=0,this._filterOpen=!1,this._showInformationHeader=!0,this._layerIds=void 0,this._isLoading=!0}get el(){return e(this)}_defaultAppLayoutHonored=!1;_defaultCenterHonored=!1;_defaultLevelHonored=!1;_layerTable;_mapChange;_resizeObserver;_shouldSetMapView=!1;_layerExpressions;_filterList;_mapCard;_isMapViewOnLoad=!1;appLayoutWatchHandler(t,i){t!==i&&(this._setActiveLayout(t),"mapView"===this.appLayout&&this._layer?.isTable&&this._mapCard.updateLayer(),this._isMapViewOnLoad&&(this._layerTable.refresh(),this._isMapViewOnLoad=!1))}enableZoomWatchHandler(){this._initMapZoom()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}showIntroductionWindow;showCoverPage;async featureSelectionChange(t){this._numSelected=t.detail?.length}async popupClosed(){this._isPortraitMobile&&this.showHideMapPopupAndTable(!1)}async layoutChanged(t){this._layoutMode=t.detail}async mapChanged(t){this._mapChange=t.detail,await this._mapChange.mapView.when((async()=>{await this._setMapView()}))}async layerSelectionChange(t){const i=t.detail[0],e=await n(this._mapView,i);e&&await e.when((()=>{0===this._layerIds.length&&"mapView"===this.appLayout&&e.isTable&&(this.appLayout="splitView"),this._layer=e,this._initLayerExpressions(),this._isLoading=!1}))}async idsFound(t){this._layerIds=t.detail.layerIds}async componentWillLoad(){await this._getTranslations(),this._resizeObserver=new ResizeObserver((()=>this._onResize()))}render(){return s(o,{key:"8fd887051b4437477f1413843dfc6d938304364a"},s("calcite-shell",{key:"a9989a1698b268db75cdbcadcd3956d944daa25c",class:"position-relative"},s("calcite-panel",{key:"88c5631e21b5ccb6a958e016c274e3aa746a6af1",class:"width-full height-full "+(this.popupHeaderColor&&"#FFFFFF"!==this.popupHeaderColor?"border-width-0":""),loading:this._isLoading},this._getBody(this._layoutMode,this._panelOpen,this._hideTable)),this._getFooter()),this._filterModal())}async componentDidRender(){this._shouldSetMapView&&(this._shouldSetMapView=!1,this._mapChange&&await this._setMapView())}async componentDidLoad(){this._resizeObserver.observe(this.el),!this._defaultAppLayoutHonored&&this.defaultAppLayout?(this._defaultAppLayoutHonored=!0,this.appLayout=this.defaultAppLayout):this.appLayout||(this.appLayout="splitView"),this._isMapViewOnLoad="mapView"===this.appLayout,this._setActiveLayout(this.appLayout)}_getFooter(){const t=this._numSelected>0,i=this._layer?.editingEnabled&&this._layer?.capabilities?.operations?.supportsDelete;return this._isPortraitMobile&&t&&!this._hideFooter?s("div",{class:"width-100",slot:"footer"},s("div",{class:"display-flex padding-1-2"},s("calcite-button",{appearance:"solid",id:"solutions-show",onClick:()=>this.showHideMapPopupAndTable(!0),width:"full"},this._translations.view.replace("{{n}}",this._numSelected.toString())),i?s("delete-button",{class:"padding-inline-start-1 width-full",id:"solutions-delete",ids:this._layerTable.selectedIds,layer:this._layer,locale:this.locale}):void 0)):void 0}_setActiveLayout(t){"splitView"!==t||this._panelOpen||this._toggleLayout(),"mapView"===t?this._showMapInFullView():this._showMapInCardView()}_getDividerIcon(t,i){let e="";switch(t){case l.HORIZONTAL:e=i?"chevrons-up":"chevrons-down";break;case l.VERTICAL:case l.GRID:e=i?"chevrons-left":"chevrons-right"}return e}_getMapSizeClass(t,i,e){let s="";switch(t){case l.HORIZONTAL:s=(i&&!e?"height-1-2 display-grid":i&&e?"height-full":"height-0")+" width-full position-relative";break;case l.GRID:s="height-full position-relative "+(i?"width-1-3":"width-0");break;case l.VERTICAL:s="height-full position-relative "+(i?"width-1-2":"width-0")}return s}_getTableSizeClass(t,i){let e="";switch(t){case l.HORIZONTAL:e=(i?"height-1-2":"height-full")+" width-full display-flex flex-column";break;case l.GRID:e=(i?"width-2-3":"width-full")+" height-full display-flex";break;case l.VERTICAL:e=(i?"width-1-2":"width-full")+" height-full display-flex"}return e}_getBody(t,i,e){const o="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return s("calcite-panel",{class:"width-full height-full position-absolute"},s("div",{class:"width-full height-full overflow-hidden "+(t===l.HORIZONTAL?"":"display-flex")},this._getMapAndCard(t,i,e),this._getTable(t,i,e)),this.coverPageEnabled&&s("div",{class:"floating-container",onClick:this.coverPageButtonClick.bind(this)},s("calcite-button",{appearance:"solid",class:`floating-button ${o}`,"icon-start":"content-minimal",kind:"neutral",label:"",round:!0,scale:"l","split-child":"primary",width:"auto"})),this.introductionWindowEnabled&&s("div",{class:"floating-container",onClick:this.infoButtonClick.bind(this)},s("calcite-button",{appearance:"solid",class:`floating-button ${o}`,"icon-start":"information-letter",kind:"neutral",label:"",round:!0,scale:"l","split-child":"primary",width:"auto"})))}infoButtonClick(){this.showIntroductionWindow.emit()}coverPageButtonClick(){this.showCoverPage.emit()}_getMapAndCard(t,i,e){const o=this._getMapSizeClass(t,i,e);return s("div",{class:`${o} overflow-hidden ${!this._isPortraitMobile&&this._isMobile?"border-right":""}`},this._getMapNode(i),this._getPopupExpandNode())}_getMapNode(t){const i="mapView"===this.appLayout,e="tableView"===this.appLayout;return s("div",{class:(i||e?"position-absolute-0":this._layoutMode!==l.HORIZONTAL||this._isPortraitMobile&&!t?"adjusted-height-50":"")+" overflow-hidden",id:"card-mapView"},s("map-card",{appLayout:this.appLayout,appProxies:this.appProxies,basemapConfig:this.basemapConfig,class:"width-full",defaultLayerId:this.defaultWebmap&&this.defaultLayer?this.defaultLayer:"",defaultWebmapId:this.defaultWebmap,enableBasemap:this.enableBasemap,enableFloorFilter:this.enableFloorFilter,enableFullscreen:this.enableFullscreen,enableHome:this.enableHome,enableLegend:this.enableLegend,enableSearch:this.enableSearch,enableShare:this.enableShare,enableSingleExpand:!0,hidden:!this._isPortraitMobile&&e,homeZoomIndex:3,homeZoomPosition:"top-left",homeZoomToolsSize:"s",isMapLayout:i,isMobile:this._isMobile,locale:this.locale,mapInfo:this._mapInfo,mapInfos:this.mapInfos?.filter((t=>!1!==t.visible)),mapWidgetsIndex:0,mapWidgetsPosition:"top-right",mapWidgetsSize:"m",onToggleFilter:this._toggleFilter.bind(this),onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,ref:t=>this._mapCard=t,selectedFeaturesIds:this._layerTable?.selectedIds,selectedLayer:this._layer,shareIncludeEmbed:this.shareIncludeEmbed,shareIncludeSocial:this.shareIncludeSocial,stackTools:!0,theme:this.theme,toolOrder:["legend","search","fullscreen","basemap","floorfilter"],zoomToScale:this.zoomToScale}))}_getPopupExpandNode(){const t=this._isPortraitMobile&&this._showInformationHeader?"display-none height-0":"";return s("div",{class:`${this.popupHeaderColor?"":this._isPortraitMobile?"calcite-mode-light":"calcite-mode-dark"} ${this._isMobile?"height-full":"height-full position-relative z-index-0"} ${this._isPortraitMobile&&this._hideTable?"position-absolute-0 width-full height-full":this._isPortraitMobile?"display-none height-0":""} ${this.mapInfos?.length>1&&"tableView"===this.appLayout?"position-relative top-51":""} position-sticky`,style:{"--calcite-color-foreground-1":this.popupHeaderColor,"--calcite-color-foreground-2":this.popupHeaderHoverColor,"--calcite-color-text-3":this.popupHeaderTextColor,"--calcite-color-text-2":this.popupHeaderTextColor}},s("calcite-panel",null,!this._isPortraitMobile&&this._showInformationHeader||this._numSelected>0&&!this._isPortraitMobile?s("div",{class:`display-flex align-items-center ${t}`,slot:"header-content"},s("calcite-icon",{icon:"information",scale:"s"}),s("div",{class:"padding-inline-start-75"},this._translations.information)):s("div",null),this._getCardNode()))}_getCardNode(){const t="mapView"===this.appLayout,i="tableView"===this.appLayout;return s("div",{class:"width-50 height-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},s("card-manager",{class:(i&&this.mapInfos?.length>1?"adjusted-height-100-51":t||i?"height-full":this._numSelected>0&&!this._isMobile?"height-50":this._showInformationHeader?this._isPortraitMobile?"height-full":"height-50":"adjusted-height-50_25")+" width-full",customInfoText:this.customInfoText,enableCreateFeatures:this._enableCreateFeatures&&!this._isMobile,enableEditGeometry:this?._mapInfo?.enableEditGeometry,isMobile:this._isPortraitMobile,layer:this._layer,locale:this.locale,mapView:this?._mapView,onBackFromCreateWorkFlow:()=>{this._showInformationHeader=!0},onCreateWorkFlowStarted:()=>{this.appLayout=this._layer.isTable?"tableView":"mapView",this._showInformationHeader=!1},onFeatureOrRecordSubmitted:()=>{this._layerTable.refresh()},selectedFeaturesIds:this._layerTable?.selectedIds,selectingFeatureFromMap:"mapView"===this.appLayout,zoomAndScrollToSelected:this.zoomAndScrollToSelected}))}_getTable(t,i,e){const o="mapView"===this.appLayout,h="tableView"===this.appLayout,a=e&&this._isPortraitMobile?"visibility-hidden":o?"display-none":"",n=o?"height-full width-full z-index-0":"display-none",d=this._getTableSizeClass(t,i),r=t===l.HORIZONTAL?"horizontal":"vertical",c=t===l.HORIZONTAL?"header":"panel-start",p=this.defaultWebmap&&this.defaultLayer,u=this.defaultGlobalId?this.defaultGlobalId?.indexOf(",")>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,g=this.defaultOid?this.defaultOid?.indexOf(",")>-1?this.defaultOid.split(",").map((t=>parseInt(t,10))):[parseInt(this.defaultOid,10)]:void 0;return s("calcite-shell",{class:`${d} border-bottom`},this._isMobile?void 0:s("calcite-action-bar",{class:"border-sides",expandDisabled:!0,layout:r,slot:c},this.getActions(t,i)),s("div",{class:`width-full height-full position-relative z-index-0 ${a}`},s("layer-table",{appLayout:this.appLayout,createFilterModal:!1,defaultGlobalId:p?u:void 0,defaultLayerId:p?this.defaultLayer:"",defaultOid:p&&!u?g:void 0,enableAutoRefresh:this.enableAutoRefresh,enableCSV:this.enableCSV,enableColumnReorder:this.enableColumnReorder,enableInlineEdit:this?._mapInfo?.enableInlineEdit,enableShare:this.enableShare,isMobile:this._isPortraitMobile,locale:this.locale,mapHidden:h,mapInfo:this._mapInfo,mapView:this?._mapView,onToggleFilter:this._toggleFilter.bind(this),onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,ref:t=>this._layerTable=t,shareIncludeEmbed:this.shareIncludeEmbed,shareIncludeSocial:this.shareIncludeSocial,showNewestFirst:this.showNewestFirst,zoomAndScrollToSelected:this.zoomAndScrollToSelected,zoomToScale:this.zoomToScale})),s("div",{class:n,id:"full-map-view"}))}getActions(t,i){const e=this._getDividerIcon(t,i),o=i?this._translations.close:this._translations.open,a="toggle-layout";return s(h,null,s("calcite-action",{active:"splitView"===this.appLayout,class:"toggle-node",icon:"browser",id:"browser-action",onClick:()=>{this.appLayout="splitView"},text:""}),s("calcite-tooltip",{placement:"right","reference-element":"browser-action"},s("span",null,this._translations.splitView)),s("calcite-action",{active:"tableView"===this.appLayout,class:"toggle-node",icon:"dock-left",id:"dock-left-action",onClick:()=>{this.appLayout="tableView"},text:""}),s("calcite-tooltip",{placement:"right","reference-element":"dock-left-action"},s("span",null,this._translations.tableView)),s("calcite-action",{active:"mapView"===this.appLayout,class:"toggle-node",disabled:0===this._layerIds?.length,icon:"browser-map",id:"browser-map-action",onClick:()=>{this.appLayout="mapView"},text:""}),s("calcite-tooltip",{placement:"right","reference-element":"browser-map-action"},s("span",null,this._translations.mapView)),s("calcite-action",{class:"toggle-node",icon:e,id:a,onClick:()=>this._toggleLayout(),slot:"actions-end",text:""}),s("calcite-tooltip",{placement:"bottom","reference-element":a},s("span",null,o)))}_filterModal(){return s("calcite-modal",{"aria-labelledby":"modal-title",class:"modal",kind:"brand",onCalciteModalClose:()=>{this._closeFilter()},open:this._filterOpen,widthScale:"s"},s("div",{class:"display-flex align-center",id:"modal-title",slot:"header"},this._translations?.filter?.replace("{{title}}",this._layer?.title)),s("div",{slot:"content"},s("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:async()=>this._closeFilter(),comboboxOverlayPositioning:"fixed",layerExpressions:this._layerExpressions,onFilterListReset:()=>{this._handleFilterListReset(),this._mapCard.resetFilter()},onFilterUpdate:()=>{this._layerTable?.filterUpdate(),this._mapCard.updateFilterState()},ref:t=>this._filterList=t,view:this._mapView,zoomBtn:!1})))}_initLayerExpressions(){const t=this._mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=t?t.filter((t=>t.id===this._layer?.id)):[],this._filterList.layerExpressions=this._layerExpressions,this._layerExpressions.filter((t=>t.expressions.filter((t=>t.active)).length>0))}_toggleFilter(){this._filterOpen=!this._filterOpen}_handleFilterListReset(){this._layerTable.filterReset()}async _closeFilter(){this._filterOpen&&(this._filterOpen=!1,this._layerTable.closeFilter())}_onResize(){const t=this.el.offsetWidth<1024,i=!this._isMobile&&t;this._isMobile=t,i&&(this._panelOpen=!0),this._isMobile?(this.showHideMapPopupAndTable(!this._isMobile),this._isPortraitMobile=!!window.matchMedia("(orientation: portrait)").matches,this.appLayout="splitView"):this._isPortraitMobile=!1,this._layoutMode=this._isPortraitMobile?l.HORIZONTAL:l.GRID}_toggleLayout(){this._panelOpen=!this._panelOpen}_showMapInCardView(){if("mapView"!==this.appLayout){const t=document.getElementById("full-map-view")?.childNodes[0],i=document.getElementById("card-mapView");t&&i.appendChild(t)}}_showMapInFullView(){const t=document.getElementById("card-mapView")?.childNodes[0],i=document.getElementById("full-map-view");t&&i.appendChild(t)}showHideMapPopupAndTable(t){this._hideTable=t,this._hideFooter=t}_getMapInfo(t){let i;return this.mapInfos.some((e=>{if(e.id===t)return i=e,!0})),{...i}}async _setMapView(){this._mapInfo=this._getMapInfo(this._mapChange.id),this._enableCreateFeatures=this._mapInfo.enableCreateFeatures,this._mapView=this._mapChange.mapView,this._initMapZoom(),this._mapView.popupEnabled=!1;const t=!this.defaultCenter||this._defaultCenterHonored?void 0:this.defaultCenter?.split(";").map((t=>parseFloat(t))),i=!this.defaultLevel||this._defaultLevelHonored?void 0:parseInt(this.defaultLevel,10);t&&i&&(await this._mapView.goTo({center:t,zoom:i}),this._defaultCenterHonored=!0,this._defaultLevelHonored=!0)}_initMapZoom(){this.enableZoom?this.enableZoom&&this._mapView.ui.add({component:"zoom",position:"top-left",index:0}):this._mapView.ui.remove("zoom")}async _getTranslations(){const t=await a(this.el);this._translations=t[0]}static get watchers(){return{appLayout:["appLayoutWatchHandler"],enableZoom:["enableZoomWatchHandler"],locale:["localeWatchHandler"]}}};d.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-right{border-right:2px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.position-absolute{position:absolute}.position-sticky{position:sticky}.height-50{height:50%}.top-51{top:51px}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-51{height:calc(100% - 51px)}.display-none{display:none !important}.adjusted-height-50_25{height:calc(50% + 25px)}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button{width:40px !important;height:40px !important}.esri-floor-filter__level-button{width:40px !important;height:40px !important}.esri-floor-filter__browse-button{width:40px !important;height:40px !important}.position-absolute-50{position:absolute;top:50px;bottom:0px;left:0px;right:0px}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0px}.floating-container .floating-button{box-shadow:0 10px 25px rgb(92 93 94 / 60%);transform:translatey(5px);transition:all 0.3s}.z-index-0{z-index:0 !important}";export{d as crowdsource_manager}
@@ -0,0 +1,6 @@
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 e,g as a,h as i,H as t}from"./p-4e6eb06e.js";import{c as l}from"./p-747d4b59.js";const s=class{constructor(a){e(this,a),this.showAddDeduct=!1}get el(){return a(this)}_deductValuesElement;render(){const e=this.showAddDeduct?"position-relative":"display-none";return i(t,{key:"0a27b15813b9f82035a8c7b4c080f5ec77379959"},i("div",{key:"88ce37117354223c9264678a3928485dc8e1d890",class:this.showAddDeduct?"display-none":"display-grid"},i("div",{key:"e0c9f6402c74c7e28749717ab78ac542dc2476f7",class:"label-display"},i("calcite-label",{key:"5bad9788cbd44419f051e3108d18e530a5819267",class:"label-display"},"Enter comma delimited deduct values",this._getDeductValuesInput())),i("div",{key:"bca334a6b4dc0920b880210c03e6d57dcdcae4e2"},this._getCalculateButton())),i("div",{key:"a401fa9e71ee5ed376445829d83528fd9e02ed2c",class:e},i("div",{key:"c5d16b77848e0b024022cad7b10d75ac9acf53b7",class:"position-right"},i("calcite-action",{key:"479efde007ee63b86c2e4cb2243afd0d1ee5fc4d",appearance:"transparent",class:"float-end",icon:"x",onClick:()=>this._toggleShowAddDeduct(),scale:"s",text:""})),i("deduct-calculator",{key:"40c6f7839584f0edcfe77f08d5e895ece6ba7119",class:"display-grid padding-top-1",onDeductValueComplete:e=>this._addDeductValue(e)})))}_getDeductValuesInput(){return i("div",{class:"display-flex"},i("calcite-input",{class:"main-input",ref:e=>{this._deductValuesElement=e}}),i("calcite-action",{appearance:"transparent",icon:"plus-circle",onClick:()=>this._toggleShowAddDeduct(),scale:"s",text:""}))}_getCalculateButton(){return i("calcite-button",{onClick:()=>this._calculatePCI(this._deductValuesElement.value)},"Calculate PCI")}_toggleShowAddDeduct(){this.showAddDeduct=!this.showAddDeduct}_addDeductValue(e){this._toggleShowAddDeduct(),this._deductValuesElement.value+=Math.abs(parseFloat(this._deductValuesElement.value))>0?`,${e.detail}`:e.detail}_calculatePCI(e){const a=l(e,!0),i=a<=10?"Failed":a<=25?"Serious":a<=40?"Very Poor":a<=55?"Poor":a<=70?"Fair":a<=85?"Satisfactory":"Good";console.log(`PCI: ${a}`),console.log(`Rating: ${i}`),alert("See debug console for results")}};s.style=":host{display:block;--calcite-label-margin-bottom:0}.label-display{display:block;padding-bottom:1rem}.display-flex{display:flex}.display-grid{display:grid}.display-table{display:table}.display-inline-table{display:inline-table}.display-none{display:none}.display-inherit{display:inherit}.padding-top-1{padding-top:1rem}.main-input{width:300px;padding-inline-end:1rem}.float-end{float:inline-end}.position-relative{position:relative}.position-right{position:absolute;right:0px}";export{s as pci_calculator}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as e,g as s,h as r,H as t}from"./p-4e6eb06e.js";const a=class{constructor(s){e(this,s)}get el(){return s(this)}render(){return r(t,{key:"f75bf37744be419135dc159befbf2abed84855dc"},r("slot",{key:"7607ea33ff10e828c2f2f7e2d3d360491ca2e482"}))}};a.style=":host{display:block}";export{a as share_item}
6
+ import{r as e,g as s,h as r,H as t}from"./p-4e6eb06e.js";const a=class{constructor(s){e(this,s)}get el(){return s(this)}render(){return r(t,{key:"a8d200d4f119571b482fa8c9f87d759458157fe3"},r("slot",{key:"fcac9d578b04a4330016dfbb09c0a38735d7f2e7"}))}};a.style=":host{display:block}";export{a as share_item}