@esri/solutions-components 0.10.39 → 0.10.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (406) 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-block_5.cjs.entry.js +75 -65
  5. package/dist/cjs/calcite-combobox_3.cjs.entry.js +11 -1
  6. package/dist/cjs/calcite-flow_4.cjs.entry.js +33 -10
  7. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +119 -10
  8. package/dist/cjs/calcite-shell_3.cjs.entry.js +26 -4
  9. package/dist/cjs/card-manager_3.cjs.entry.js +41 -9
  10. package/dist/cjs/consent-manager.cjs.entry.js +12 -0
  11. package/dist/cjs/crowdsource-manager.cjs.entry.js +12 -13
  12. package/dist/cjs/crowdsource-reporter.cjs.entry.js +19 -9
  13. package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
  14. package/dist/cjs/feature-list.cjs.entry.js +13 -3
  15. package/dist/cjs/instant-apps-app-guide.cjs.entry.js +1 -1
  16. package/dist/cjs/instant-apps-export.cjs.entry.js +5 -1
  17. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
  18. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +2 -2
  19. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +6 -6
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/map-select-tools_3.cjs.entry.js +38 -6
  22. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  23. package/dist/cjs/public-notification.cjs.entry.js +11 -2
  24. package/dist/cjs/share-item.cjs.entry.js +1 -1
  25. package/dist/cjs/solution-configuration.cjs.entry.js +20 -5
  26. package/dist/cjs/solution-contents_3.cjs.entry.js +37 -7
  27. package/dist/cjs/solution-item-accordion.cjs.entry.js +11 -1
  28. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  29. package/dist/cjs/solutions-components.cjs.js +1 -1
  30. package/dist/cjs/spatial-ref.cjs.entry.js +16 -1
  31. package/dist/collection/collection-manifest.json +0 -7
  32. package/dist/collection/components/buffer-tools/buffer-tools.js +30 -1
  33. package/dist/collection/components/card-manager/card-manager.js +34 -2
  34. package/dist/collection/components/consent-manager/consent-manager.js +32 -0
  35. package/dist/collection/components/create-feature/create-feature.js +31 -2
  36. package/dist/collection/components/create-related-feature/create-related-feature.js +30 -1
  37. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +20 -22
  38. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +38 -9
  39. package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
  40. package/dist/collection/components/delete-button/delete-button.js +31 -2
  41. package/dist/collection/components/delete-dialog/delete-dialog.js +33 -1
  42. package/dist/collection/components/edit-card/edit-card.js +30 -1
  43. package/dist/collection/components/feature-details/feature-details.js +24 -6
  44. package/dist/collection/components/feature-list/feature-list.js +32 -3
  45. package/dist/collection/components/floor-filter/floor-filter.js +1 -1
  46. package/dist/collection/components/info-card/info-card.js +36 -2
  47. package/dist/collection/components/json-editor/json-editor.js +38 -1
  48. package/dist/collection/components/layer-list/layer-list.js +35 -3
  49. package/dist/collection/components/layer-table/layer-table.js +34 -5
  50. package/dist/collection/components/map-card/map-card.js +31 -2
  51. package/dist/collection/components/map-draw-tools/map-draw-tools.js +30 -1
  52. package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
  53. package/dist/collection/components/map-layer-picker/map-layer-picker.js +30 -1
  54. package/dist/collection/components/map-legend/map-legend.js +1 -1
  55. package/dist/collection/components/map-picker/map-picker.js +30 -1
  56. package/dist/collection/components/map-search/map-search.js +1 -1
  57. package/dist/collection/components/map-select-tools/map-select-tools.js +15 -4
  58. package/dist/collection/components/map-tools/map-tools.js +30 -1
  59. package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
  60. package/dist/collection/components/pdf-download/pdf-download.js +33 -1
  61. package/dist/collection/components/public-notification/public-notification.js +13 -2
  62. package/dist/collection/components/refine-selection/refine-selection.js +15 -1
  63. package/dist/collection/components/share-item/share-item.js +1 -1
  64. package/dist/collection/components/solution-configuration/solution-configuration.js +38 -4
  65. package/dist/collection/components/solution-contents/solution-contents.js +1 -1
  66. package/dist/collection/components/solution-item/solution-item.js +37 -3
  67. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +30 -1
  68. package/dist/collection/components/solution-item-details/solution-item-details.js +38 -1
  69. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  70. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +35 -1
  71. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +35 -1
  72. package/dist/collection/components/solution-resource-item/solution-resource-item.js +35 -1
  73. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +35 -1
  74. package/dist/collection/components/solution-template-data/solution-template-data.js +35 -1
  75. package/dist/collection/components/solution-variables/solution-variables.js +35 -1
  76. package/dist/collection/components/spatial-ref/spatial-ref.js +35 -1
  77. package/dist/collection/demos/crowdsource-manager.html +0 -1
  78. package/dist/collection/demos/crowdsource-reporter.html +2 -2
  79. package/dist/components/buffer-tools2.js +15 -3
  80. package/dist/components/card-manager2.js +18 -3
  81. package/dist/components/consent-manager.js +15 -0
  82. package/dist/components/create-feature2.js +14 -2
  83. package/dist/components/create-related-feature2.js +13 -1
  84. package/dist/components/crowdsource-manager.js +14 -15
  85. package/dist/components/crowdsource-reporter.js +21 -9
  86. package/dist/components/deduct-calculator2.js +1 -1
  87. package/dist/components/delete-button2.js +16 -4
  88. package/dist/components/delete-dialog2.js +16 -1
  89. package/dist/components/edit-card2.js +13 -1
  90. package/dist/components/feature-details2.js +8 -6
  91. package/dist/components/feature-list2.js +15 -3
  92. package/dist/components/floor-filter2.js +1 -1
  93. package/dist/components/info-card2.js +19 -2
  94. package/dist/components/instant-apps-app-guide.js +1 -1
  95. package/dist/components/instant-apps-export.js +5 -1
  96. package/dist/components/instant-apps-filter-list2.js +75 -66
  97. package/dist/components/instant-apps-landing-page.js +1 -1
  98. package/dist/components/instant-apps-sign-in2.js +2 -2
  99. package/dist/components/instant-apps-time-filter.js +6 -6
  100. package/dist/components/json-editor2.js +21 -1
  101. package/dist/components/layer-list2.js +18 -3
  102. package/dist/components/layer-table2.js +17 -5
  103. package/dist/components/map-card2.js +14 -2
  104. package/dist/components/map-draw-tools2.js +13 -1
  105. package/dist/components/map-fullscreen2.js +1 -1
  106. package/dist/components/map-layer-picker2.js +13 -1
  107. package/dist/components/map-legend2.js +1 -1
  108. package/dist/components/map-picker2.js +13 -1
  109. package/dist/components/map-search2.js +1 -1
  110. package/dist/components/map-select-tools2.js +14 -4
  111. package/dist/components/map-tools2.js +13 -1
  112. package/dist/components/pci-calculator.js +1 -1
  113. package/dist/components/pdf-download2.js +16 -1
  114. package/dist/components/public-notification.js +12 -2
  115. package/dist/components/refine-selection2.js +14 -1
  116. package/dist/components/share-item.js +1 -1
  117. package/dist/components/solution-configuration.js +23 -6
  118. package/dist/components/solution-contents2.js +1 -1
  119. package/dist/components/solution-item-accordion.js +13 -1
  120. package/dist/components/solution-item-details2.js +22 -2
  121. package/dist/components/solution-item-icon2.js +1 -1
  122. package/dist/components/solution-item-sharing2.js +20 -3
  123. package/dist/components/solution-item2.js +22 -5
  124. package/dist/components/solution-organization-variables2.js +18 -1
  125. package/dist/components/solution-resource-item2.js +20 -3
  126. package/dist/components/solution-spatial-ref2.js +20 -3
  127. package/dist/components/solution-template-data2.js +20 -3
  128. package/dist/components/solution-variables2.js +18 -1
  129. package/dist/components/spatial-ref.js +18 -1
  130. package/dist/esm/basemap-gallery_7.entry.js +26 -6
  131. package/dist/esm/buffer-tools_3.entry.js +23 -3
  132. package/dist/esm/calcite-alert_5.entry.js +40 -5
  133. package/dist/esm/calcite-block_5.entry.js +75 -65
  134. package/dist/esm/calcite-combobox_3.entry.js +11 -1
  135. package/dist/esm/calcite-flow_4.entry.js +33 -10
  136. package/dist/esm/calcite-shell-panel_14.entry.js +119 -10
  137. package/dist/esm/calcite-shell_3.entry.js +26 -4
  138. package/dist/esm/card-manager_3.entry.js +41 -9
  139. package/dist/esm/consent-manager.entry.js +12 -0
  140. package/dist/esm/crowdsource-manager.entry.js +12 -13
  141. package/dist/esm/crowdsource-reporter.entry.js +19 -9
  142. package/dist/esm/deduct-calculator.entry.js +1 -1
  143. package/dist/esm/feature-list.entry.js +13 -3
  144. package/dist/esm/instant-apps-app-guide.entry.js +1 -1
  145. package/dist/esm/instant-apps-export.entry.js +5 -1
  146. package/dist/esm/instant-apps-landing-page.entry.js +1 -1
  147. package/dist/esm/instant-apps-sign-in.entry.js +2 -2
  148. package/dist/esm/instant-apps-time-filter.entry.js +6 -6
  149. package/dist/esm/loader.js +1 -1
  150. package/dist/esm/map-select-tools_3.entry.js +38 -6
  151. package/dist/esm/pci-calculator.entry.js +1 -1
  152. package/dist/esm/public-notification.entry.js +11 -2
  153. package/dist/esm/share-item.entry.js +1 -1
  154. package/dist/esm/solution-configuration.entry.js +20 -5
  155. package/dist/esm/solution-contents_3.entry.js +37 -7
  156. package/dist/esm/solution-item-accordion.entry.js +11 -1
  157. package/dist/esm/solution-item-icon.entry.js +1 -1
  158. package/dist/esm/solutions-components.js +1 -1
  159. package/dist/esm/spatial-ref.entry.js +16 -1
  160. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-app-guide/instant-apps-app-guide.css +1 -1
  161. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +43 -26
  162. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-sign-in/instant-apps-sign-in.css +6 -0
  163. package/dist/solutions-components/demos/crowdsource-manager.html +0 -1
  164. package/dist/solutions-components/demos/crowdsource-reporter.html +2 -2
  165. package/dist/solutions-components/p-0a2e5861.entry.js +6 -0
  166. package/dist/solutions-components/{p-739ce6f3.entry.js → p-2f784608.entry.js} +1 -1
  167. package/dist/solutions-components/{p-1c2d0e90.entry.js → p-3e44cfab.entry.js} +1 -1
  168. package/dist/solutions-components/{p-841816a1.entry.js → p-41314f33.entry.js} +7 -7
  169. package/dist/solutions-components/{p-18089a0b.entry.js → p-471d5c7f.entry.js} +2 -2
  170. package/dist/solutions-components/p-5001cc41.entry.js +6 -0
  171. package/dist/solutions-components/p-523dcf4b.entry.js +6 -0
  172. package/dist/solutions-components/p-561c0e02.entry.js +6 -0
  173. package/dist/solutions-components/p-56beff4c.entry.js +6 -0
  174. package/dist/solutions-components/p-592f2000.entry.js +6 -0
  175. package/dist/solutions-components/p-5cbf3eed.entry.js +6 -0
  176. package/dist/solutions-components/p-62d8796c.entry.js +17 -0
  177. package/dist/solutions-components/p-6d1922cc.entry.js +6 -0
  178. package/dist/solutions-components/p-80e81af7.entry.js +6 -0
  179. package/dist/solutions-components/{p-82ddf716.entry.js → p-8e2f4995.entry.js} +1 -1
  180. package/dist/solutions-components/p-8f8c7045.entry.js +6 -0
  181. package/dist/solutions-components/p-953afbb3.entry.js +29 -0
  182. package/dist/solutions-components/{p-bb8b1ee2.entry.js → p-a2cf9fdc.entry.js} +1 -1
  183. package/dist/solutions-components/p-a7f56b28.entry.js +6 -0
  184. package/dist/solutions-components/{p-6502d0f8.entry.js → p-b7fbaeb7.entry.js} +1 -1
  185. package/dist/solutions-components/p-cced387c.entry.js +6 -0
  186. package/dist/solutions-components/{p-a5d79c86.entry.js → p-ce53e33d.entry.js} +2 -2
  187. package/dist/solutions-components/{p-59ccd27c.entry.js → p-d51c07d2.entry.js} +1 -1
  188. package/dist/solutions-components/p-d75cf651.entry.js +11 -0
  189. package/dist/solutions-components/p-d7afbe8d.entry.js +11 -0
  190. package/dist/solutions-components/p-e1e21798.entry.js +12 -0
  191. package/dist/solutions-components/p-e4107150.entry.js +6 -0
  192. package/dist/solutions-components/p-e9026f9a.entry.js +6 -0
  193. package/dist/solutions-components/solutions-components.esm.js +1 -1
  194. package/dist/types/components/buffer-tools/buffer-tools.d.ts +8 -0
  195. package/dist/types/components/card-manager/card-manager.d.ts +8 -0
  196. package/dist/types/components/consent-manager/consent-manager.d.ts +8 -0
  197. package/dist/types/components/create-feature/create-feature.d.ts +8 -0
  198. package/dist/types/components/create-related-feature/create-related-feature.d.ts +8 -0
  199. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -4
  200. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +8 -0
  201. package/dist/types/components/deduct-calculator/deduct-calculator.d.ts +1 -1
  202. package/dist/types/components/delete-button/delete-button.d.ts +9 -1
  203. package/dist/types/components/delete-dialog/delete-dialog.d.ts +8 -0
  204. package/dist/types/components/edit-card/edit-card.d.ts +8 -0
  205. package/dist/types/components/feature-details/feature-details.d.ts +4 -0
  206. package/dist/types/components/feature-list/feature-list.d.ts +8 -0
  207. package/dist/types/components/info-card/info-card.d.ts +8 -0
  208. package/dist/types/components/json-editor/json-editor.d.ts +8 -0
  209. package/dist/types/components/layer-list/layer-list.d.ts +8 -0
  210. package/dist/types/components/layer-table/layer-table.d.ts +9 -1
  211. package/dist/types/components/map-card/map-card.d.ts +8 -0
  212. package/dist/types/components/map-draw-tools/map-draw-tools.d.ts +8 -0
  213. package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +8 -0
  214. package/dist/types/components/map-picker/map-picker.d.ts +8 -0
  215. package/dist/types/components/map-select-tools/map-select-tools.d.ts +4 -0
  216. package/dist/types/components/map-tools/map-tools.d.ts +8 -0
  217. package/dist/types/components/pdf-download/pdf-download.d.ts +8 -0
  218. package/dist/types/components/public-notification/public-notification.d.ts +4 -0
  219. package/dist/types/components/refine-selection/refine-selection.d.ts +4 -0
  220. package/dist/types/components/solution-configuration/solution-configuration.d.ts +8 -0
  221. package/dist/types/components/solution-item/solution-item.d.ts +8 -0
  222. package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +8 -0
  223. package/dist/types/components/solution-item-details/solution-item-details.d.ts +8 -0
  224. package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +8 -0
  225. package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +8 -0
  226. package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +8 -0
  227. package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +8 -0
  228. package/dist/types/components/solution-template-data/solution-template-data.d.ts +8 -0
  229. package/dist/types/components/solution-variables/solution-variables.d.ts +8 -0
  230. package/dist/types/components/spatial-ref/spatial-ref.d.ts +8 -0
  231. package/dist/types/components.d.ts +266 -120
  232. package/dist/types/preact.d.ts +0 -16
  233. package/package.json +8 -8
  234. package/dist/cjs/feature-comments.cjs.entry.js +0 -61
  235. package/dist/cjs/feature-form-flow-item.cjs.entry.js +0 -61
  236. package/dist/cjs/features-flow-item.cjs.entry.js +0 -61
  237. package/dist/cjs/layout-manager.cjs.entry.js +0 -114
  238. package/dist/cjs/list-flow-item.cjs.entry.js +0 -61
  239. package/dist/cjs/location-flow-item.cjs.entry.js +0 -61
  240. package/dist/cjs/refine-results-flow-item.cjs.entry.js +0 -61
  241. package/dist/collection/assets/t9n/feature-comments/resources.json +0 -3
  242. package/dist/collection/assets/t9n/feature-comments/resources_en.json +0 -3
  243. package/dist/collection/assets/t9n/feature-form-flow-item/resources.json +0 -3
  244. package/dist/collection/assets/t9n/feature-form-flow-item/resources_en.json +0 -3
  245. package/dist/collection/assets/t9n/layout-manager/resources.json +0 -7
  246. package/dist/collection/assets/t9n/layout-manager/resources_ar.json +0 -7
  247. package/dist/collection/assets/t9n/layout-manager/resources_bg.json +0 -7
  248. package/dist/collection/assets/t9n/layout-manager/resources_bs.json +0 -7
  249. package/dist/collection/assets/t9n/layout-manager/resources_ca.json +0 -7
  250. package/dist/collection/assets/t9n/layout-manager/resources_cs.json +0 -7
  251. package/dist/collection/assets/t9n/layout-manager/resources_da.json +0 -7
  252. package/dist/collection/assets/t9n/layout-manager/resources_de.json +0 -7
  253. package/dist/collection/assets/t9n/layout-manager/resources_el.json +0 -7
  254. package/dist/collection/assets/t9n/layout-manager/resources_en.json +0 -7
  255. package/dist/collection/assets/t9n/layout-manager/resources_es.json +0 -7
  256. package/dist/collection/assets/t9n/layout-manager/resources_et.json +0 -7
  257. package/dist/collection/assets/t9n/layout-manager/resources_fi.json +0 -7
  258. package/dist/collection/assets/t9n/layout-manager/resources_fr.json +0 -7
  259. package/dist/collection/assets/t9n/layout-manager/resources_he.json +0 -7
  260. package/dist/collection/assets/t9n/layout-manager/resources_hr.json +0 -7
  261. package/dist/collection/assets/t9n/layout-manager/resources_hu.json +0 -7
  262. package/dist/collection/assets/t9n/layout-manager/resources_id.json +0 -7
  263. package/dist/collection/assets/t9n/layout-manager/resources_it.json +0 -7
  264. package/dist/collection/assets/t9n/layout-manager/resources_ja.json +0 -7
  265. package/dist/collection/assets/t9n/layout-manager/resources_ko.json +0 -7
  266. package/dist/collection/assets/t9n/layout-manager/resources_lt.json +0 -7
  267. package/dist/collection/assets/t9n/layout-manager/resources_lv.json +0 -7
  268. package/dist/collection/assets/t9n/layout-manager/resources_nb.json +0 -7
  269. package/dist/collection/assets/t9n/layout-manager/resources_nl.json +0 -7
  270. package/dist/collection/assets/t9n/layout-manager/resources_pl.json +0 -7
  271. package/dist/collection/assets/t9n/layout-manager/resources_pt-BR.json +0 -7
  272. package/dist/collection/assets/t9n/layout-manager/resources_pt-PT.json +0 -7
  273. package/dist/collection/assets/t9n/layout-manager/resources_ro.json +0 -7
  274. package/dist/collection/assets/t9n/layout-manager/resources_ru.json +0 -7
  275. package/dist/collection/assets/t9n/layout-manager/resources_sk.json +0 -7
  276. package/dist/collection/assets/t9n/layout-manager/resources_sl.json +0 -7
  277. package/dist/collection/assets/t9n/layout-manager/resources_sr.json +0 -7
  278. package/dist/collection/assets/t9n/layout-manager/resources_sv.json +0 -7
  279. package/dist/collection/assets/t9n/layout-manager/resources_th.json +0 -7
  280. package/dist/collection/assets/t9n/layout-manager/resources_tr.json +0 -7
  281. package/dist/collection/assets/t9n/layout-manager/resources_uk.json +0 -7
  282. package/dist/collection/assets/t9n/layout-manager/resources_vi.json +0 -7
  283. package/dist/collection/assets/t9n/layout-manager/resources_zh-CN.json +0 -7
  284. package/dist/collection/assets/t9n/layout-manager/resources_zh-HK.json +0 -7
  285. package/dist/collection/assets/t9n/layout-manager/resources_zh-TW.json +0 -7
  286. package/dist/collection/assets/t9n/list-flow-item/resources.json +0 -3
  287. package/dist/collection/assets/t9n/list-flow-item/resources_en.json +0 -3
  288. package/dist/collection/assets/t9n/location-flow-item/resources.json +0 -3
  289. package/dist/collection/assets/t9n/location-flow-item/resources_en.json +0 -3
  290. package/dist/collection/components/feature-comments/feature-comments.css +0 -19
  291. package/dist/collection/components/feature-comments/feature-comments.js +0 -80
  292. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.css +0 -19
  293. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +0 -80
  294. package/dist/collection/components/features-flow-item/features-flow-item.css +0 -19
  295. package/dist/collection/components/features-flow-item/features-flow-item.js +0 -80
  296. package/dist/collection/components/layout-manager/layout-manager.css +0 -73
  297. package/dist/collection/components/layout-manager/layout-manager.js +0 -161
  298. package/dist/collection/components/list-flow-item/list-flow-item.css +0 -19
  299. package/dist/collection/components/list-flow-item/list-flow-item.js +0 -80
  300. package/dist/collection/components/location-flow-item/location-flow-item.css +0 -19
  301. package/dist/collection/components/location-flow-item/location-flow-item.js +0 -80
  302. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.css +0 -19
  303. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +0 -80
  304. package/dist/components/feature-comments.d.ts +0 -11
  305. package/dist/components/feature-comments.js +0 -76
  306. package/dist/components/feature-form-flow-item.d.ts +0 -11
  307. package/dist/components/feature-form-flow-item.js +0 -76
  308. package/dist/components/features-flow-item.d.ts +0 -11
  309. package/dist/components/features-flow-item.js +0 -76
  310. package/dist/components/layout-manager.d.ts +0 -11
  311. package/dist/components/layout-manager.js +0 -159
  312. package/dist/components/list-flow-item.d.ts +0 -11
  313. package/dist/components/list-flow-item.js +0 -76
  314. package/dist/components/location-flow-item.d.ts +0 -11
  315. package/dist/components/location-flow-item.js +0 -76
  316. package/dist/components/refine-results-flow-item.d.ts +0 -11
  317. package/dist/components/refine-results-flow-item.js +0 -76
  318. package/dist/esm/feature-comments.entry.js +0 -57
  319. package/dist/esm/feature-form-flow-item.entry.js +0 -57
  320. package/dist/esm/features-flow-item.entry.js +0 -57
  321. package/dist/esm/layout-manager.entry.js +0 -110
  322. package/dist/esm/list-flow-item.entry.js +0 -57
  323. package/dist/esm/location-flow-item.entry.js +0 -57
  324. package/dist/esm/refine-results-flow-item.entry.js +0 -57
  325. package/dist/solutions-components/assets/t9n/feature-comments/resources.json +0 -3
  326. package/dist/solutions-components/assets/t9n/feature-comments/resources_en.json +0 -3
  327. package/dist/solutions-components/assets/t9n/feature-form-flow-item/resources.json +0 -3
  328. package/dist/solutions-components/assets/t9n/feature-form-flow-item/resources_en.json +0 -3
  329. package/dist/solutions-components/assets/t9n/layout-manager/resources.json +0 -7
  330. package/dist/solutions-components/assets/t9n/layout-manager/resources_ar.json +0 -7
  331. package/dist/solutions-components/assets/t9n/layout-manager/resources_bg.json +0 -7
  332. package/dist/solutions-components/assets/t9n/layout-manager/resources_bs.json +0 -7
  333. package/dist/solutions-components/assets/t9n/layout-manager/resources_ca.json +0 -7
  334. package/dist/solutions-components/assets/t9n/layout-manager/resources_cs.json +0 -7
  335. package/dist/solutions-components/assets/t9n/layout-manager/resources_da.json +0 -7
  336. package/dist/solutions-components/assets/t9n/layout-manager/resources_de.json +0 -7
  337. package/dist/solutions-components/assets/t9n/layout-manager/resources_el.json +0 -7
  338. package/dist/solutions-components/assets/t9n/layout-manager/resources_en.json +0 -7
  339. package/dist/solutions-components/assets/t9n/layout-manager/resources_es.json +0 -7
  340. package/dist/solutions-components/assets/t9n/layout-manager/resources_et.json +0 -7
  341. package/dist/solutions-components/assets/t9n/layout-manager/resources_fi.json +0 -7
  342. package/dist/solutions-components/assets/t9n/layout-manager/resources_fr.json +0 -7
  343. package/dist/solutions-components/assets/t9n/layout-manager/resources_he.json +0 -7
  344. package/dist/solutions-components/assets/t9n/layout-manager/resources_hr.json +0 -7
  345. package/dist/solutions-components/assets/t9n/layout-manager/resources_hu.json +0 -7
  346. package/dist/solutions-components/assets/t9n/layout-manager/resources_id.json +0 -7
  347. package/dist/solutions-components/assets/t9n/layout-manager/resources_it.json +0 -7
  348. package/dist/solutions-components/assets/t9n/layout-manager/resources_ja.json +0 -7
  349. package/dist/solutions-components/assets/t9n/layout-manager/resources_ko.json +0 -7
  350. package/dist/solutions-components/assets/t9n/layout-manager/resources_lt.json +0 -7
  351. package/dist/solutions-components/assets/t9n/layout-manager/resources_lv.json +0 -7
  352. package/dist/solutions-components/assets/t9n/layout-manager/resources_nb.json +0 -7
  353. package/dist/solutions-components/assets/t9n/layout-manager/resources_nl.json +0 -7
  354. package/dist/solutions-components/assets/t9n/layout-manager/resources_pl.json +0 -7
  355. package/dist/solutions-components/assets/t9n/layout-manager/resources_pt-BR.json +0 -7
  356. package/dist/solutions-components/assets/t9n/layout-manager/resources_pt-PT.json +0 -7
  357. package/dist/solutions-components/assets/t9n/layout-manager/resources_ro.json +0 -7
  358. package/dist/solutions-components/assets/t9n/layout-manager/resources_ru.json +0 -7
  359. package/dist/solutions-components/assets/t9n/layout-manager/resources_sk.json +0 -7
  360. package/dist/solutions-components/assets/t9n/layout-manager/resources_sl.json +0 -7
  361. package/dist/solutions-components/assets/t9n/layout-manager/resources_sr.json +0 -7
  362. package/dist/solutions-components/assets/t9n/layout-manager/resources_sv.json +0 -7
  363. package/dist/solutions-components/assets/t9n/layout-manager/resources_th.json +0 -7
  364. package/dist/solutions-components/assets/t9n/layout-manager/resources_tr.json +0 -7
  365. package/dist/solutions-components/assets/t9n/layout-manager/resources_uk.json +0 -7
  366. package/dist/solutions-components/assets/t9n/layout-manager/resources_vi.json +0 -7
  367. package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-CN.json +0 -7
  368. package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-HK.json +0 -7
  369. package/dist/solutions-components/assets/t9n/layout-manager/resources_zh-TW.json +0 -7
  370. package/dist/solutions-components/assets/t9n/list-flow-item/resources.json +0 -3
  371. package/dist/solutions-components/assets/t9n/list-flow-item/resources_en.json +0 -3
  372. package/dist/solutions-components/assets/t9n/location-flow-item/resources.json +0 -3
  373. package/dist/solutions-components/assets/t9n/location-flow-item/resources_en.json +0 -3
  374. package/dist/solutions-components/p-04ab956c.entry.js +0 -6
  375. package/dist/solutions-components/p-06364211.entry.js +0 -6
  376. package/dist/solutions-components/p-1700f63a.entry.js +0 -6
  377. package/dist/solutions-components/p-1f07e21a.entry.js +0 -6
  378. package/dist/solutions-components/p-46416e11.entry.js +0 -6
  379. package/dist/solutions-components/p-5b3c0418.entry.js +0 -6
  380. package/dist/solutions-components/p-70c0050c.entry.js +0 -6
  381. package/dist/solutions-components/p-720de4db.entry.js +0 -6
  382. package/dist/solutions-components/p-74bcef23.entry.js +0 -11
  383. package/dist/solutions-components/p-750b3277.entry.js +0 -6
  384. package/dist/solutions-components/p-76154700.entry.js +0 -6
  385. package/dist/solutions-components/p-8779ee41.entry.js +0 -6
  386. package/dist/solutions-components/p-938bc915.entry.js +0 -6
  387. package/dist/solutions-components/p-9c4fef09.entry.js +0 -17
  388. package/dist/solutions-components/p-9d56f4b5.entry.js +0 -6
  389. package/dist/solutions-components/p-9da8a590.entry.js +0 -6
  390. package/dist/solutions-components/p-aac0c89c.entry.js +0 -6
  391. package/dist/solutions-components/p-be4c7ffd.entry.js +0 -6
  392. package/dist/solutions-components/p-ca3cbd29.entry.js +0 -6
  393. package/dist/solutions-components/p-d2612c30.entry.js +0 -6
  394. package/dist/solutions-components/p-df7de4b7.entry.js +0 -12
  395. package/dist/solutions-components/p-e1391389.entry.js +0 -29
  396. package/dist/solutions-components/p-e345f9c4.entry.js +0 -6
  397. package/dist/solutions-components/p-eadff42b.entry.js +0 -11
  398. package/dist/solutions-components/p-fa1c368c.entry.js +0 -6
  399. package/dist/solutions-components/p-ff3858c6.entry.js +0 -6
  400. package/dist/types/components/feature-comments/feature-comments.d.ts +0 -19
  401. package/dist/types/components/feature-form-flow-item/feature-form-flow-item.d.ts +0 -19
  402. package/dist/types/components/features-flow-item/features-flow-item.d.ts +0 -19
  403. package/dist/types/components/layout-manager/layout-manager.d.ts +0 -69
  404. package/dist/types/components/list-flow-item/list-flow-item.d.ts +0 -19
  405. package/dist/types/components/location-flow-item/location-flow-item.d.ts +0 -19
  406. package/dist/types/components/refine-results-flow-item/refine-results-flow-item.d.ts +0 -19
@@ -261,7 +261,7 @@ const FloorFilter = class {
261
261
  * Renders the component.
262
262
  */
263
263
  render() {
264
- return (index.h(index.Host, { key: '7890927db517fe8e1133fce3e0fe977a441f2abf' }, index.h("div", { key: '34ad695eb04dd20a0b9893817a33df5020de7da1', ref: (el) => { this._floorFilterElement = el; } })));
264
+ return (index.h(index.Host, { key: '51da7a656e7f56ecc8cc4093d3dab856f77b5c7a' }, index.h("div", { key: 'd2fda7047f09a673216484f5c202f039fca20108', ref: (el) => { this._floorFilterElement = el; } })));
265
265
  }
266
266
  /**
267
267
  * StencilJS: Called once just after the component is first loaded.
@@ -428,7 +428,7 @@ const MapFullscreen = class {
428
428
  * Renders the component.
429
429
  */
430
430
  render() {
431
- return (index.h(index.Host, { key: '350ebb01c52631c9441b6554f5b8e26f8ca1418e' }, index.h("div", { key: 'b09344b721da2cc18b74fb21f8017446ba5baa03', class: "fullscreen-widget", ref: (el) => { this._fullscreenElement = el; } })));
431
+ return (index.h(index.Host, { key: '28d49dabefbb64024028bd6d7b7a104fafd81eae' }, index.h("div", { key: '443af45e3ce2c83a797ebfaac9e442d57d05c34c', class: "fullscreen-widget", ref: (el) => { this._fullscreenElement = el; } })));
432
432
  }
433
433
  /**
434
434
  * StencilJS: Called just after the component updates.
@@ -555,7 +555,7 @@ const MapLegend = class {
555
555
  * StencilJS: Renders the component.
556
556
  */
557
557
  render() {
558
- return (index.h(index.Host, { key: '2c5cfbfd4048347ace5ff3cf17d411e85454be7a' }, index.h("div", { key: '3927ef8af3a4a93fbd558480a96f982ca5b477a2', ref: (el) => { this._legendElement = el; } })));
558
+ return (index.h(index.Host, { key: '6b8c415650cb42727d7f09d3d4d92f8aebc7526b' }, index.h("div", { key: '36fd4c49d4ab19411fe309822e5b87104736282a', ref: (el) => { this._legendElement = el; } })));
559
559
  }
560
560
  /**
561
561
  * StencilJS: Called once just after the component is fully loaded and the first render() occurs.
@@ -613,6 +613,7 @@ const MapPicker = class {
613
613
  constructor(hostRef) {
614
614
  index.registerInstance(this, hostRef);
615
615
  this.mapInfoChange = index.createEvent(this, "mapInfoChange", 7);
616
+ this.locale = undefined;
616
617
  this.mapInfos = [];
617
618
  this.isMapLayout = undefined;
618
619
  this._mapListExpanded = false;
@@ -647,6 +648,14 @@ const MapPicker = class {
647
648
  this.mapInfoChange.emit(v);
648
649
  }
649
650
  }
651
+ /**
652
+ * Fetch translations when the locale is updated
653
+ */
654
+ async localeWatchHandler() {
655
+ // to support url param and language switcher
656
+ this.el.lang = this.locale;
657
+ await this._getTranslations();
658
+ }
650
659
  /**
651
660
  * Called each time the mapInfos prop is changed.
652
661
  */
@@ -706,7 +715,7 @@ const MapPicker = class {
706
715
  * Renders the component.
707
716
  */
708
717
  render() {
709
- return (index.h(index.Host, { key: '84cc43e195045e28fe01e35fe2f6f06cbe28fefd' }, this._getToolbar(), this._getMapNameList(this._mapListExpanded)));
718
+ return (index.h(index.Host, { key: 'c6f59dfac8acfc06775a3a38cefa1fd2c2708722' }, this._getToolbar(), this._getMapNameList(this._mapListExpanded)));
710
719
  }
711
720
  /**
712
721
  * Called once after the component has loaded
@@ -792,6 +801,7 @@ const MapPicker = class {
792
801
  }
793
802
  static get watchers() { return {
794
803
  "_webMapInfo": ["_webMapInfoWatchHandler"],
804
+ "locale": ["localeWatchHandler"],
795
805
  "mapInfos": ["mapInfosWatchHandler"]
796
806
  }; }
797
807
  };
@@ -890,7 +900,7 @@ const MapSearch = class {
890
900
  * Renders the component.
891
901
  */
892
902
  render() {
893
- return (index.h(index.Host, { key: '482d8d891f8c6905eefee8b26f0837a4c7c2e525' }, index.h("div", { key: '9a3993ab8a7506299cf2bdbfab23b47ac7fe3037', class: "search-widget", ref: (el) => { this._searchElement = el; } })));
903
+ return (index.h(index.Host, { key: '3464734a35e8cf89f033d508d21831eef665c9b2' }, index.h("div", { key: 'bf79025ba97e9f26681a6c6200dcdbc2ea227ce8', class: "search-widget", ref: (el) => { this._searchElement = el; } })));
894
904
  }
895
905
  //--------------------------------------------------------------------------
896
906
  //
@@ -1013,6 +1023,7 @@ const MapTools = class {
1013
1023
  this.enableSingleExpand = undefined;
1014
1024
  this.homeZoomToolsSize = "m";
1015
1025
  this.layout = "vertical";
1026
+ this.locale = undefined;
1016
1027
  this.mapView = undefined;
1017
1028
  this.mapWidgetsSize = "m";
1018
1029
  this.position = "top-right";
@@ -1068,6 +1079,14 @@ const MapTools = class {
1068
1079
  // Watch handlers
1069
1080
  //
1070
1081
  //--------------------------------------------------------------------------
1082
+ /**
1083
+ * Fetch translations when the locale is updated
1084
+ */
1085
+ async localeWatchHandler() {
1086
+ // to support url param and language switcher
1087
+ this.el.lang = this.locale;
1088
+ await this._getTranslations();
1089
+ }
1071
1090
  /**
1072
1091
  * When the mapView loads check if it supports floor awareness
1073
1092
  */
@@ -1188,7 +1207,7 @@ const MapTools = class {
1188
1207
  const toolMarginClass = this.enableSingleExpand ? "margin-top-1-2" : "";
1189
1208
  const toolOrder = this.toolOrder ? this.toolOrder : ["legend", "search", "fullscreen", "floorfilter"];
1190
1209
  const shadowClass = this.stackTools ? "box-shadow" : "";
1191
- return (index.h(index.Host, { key: '224b99c53e7f8ac9c072efbd2c2093c6c9684a9a' }, index.h("div", { key: 'ead56063c6aa28146d4c50044b6e7c98fd2ed1ab', class: containerClass }, this.enableSingleExpand ? (index.h("div", { class: "box-shadow" }, this._getActionGroup(toggleIcon, false, expandTip, () => this._toggleTools()))) : undefined, index.h("div", { key: '3fd7a2bd6225c10b89e282d4521486ad7eb5802a', class: `${toolMarginClass} ${shadowClass} ${toolsClass}` }, this._getMapWidgets(toolOrder))), index.h("basemap-gallery", { key: '43063099ee4b3a72d96b2ae6e4ca750dff109ae2', basemapConfig: this.basemapConfig, class: basemapClass, mapView: this.mapView, ref: (el) => { this._basemapElement = el; } }), index.h("map-search", { key: '5c149ea67f2a2450864e968a50acce565d95e0b6', class: searchClass, mapView: this.mapView, ref: (el) => { this._searchElement = el; }, resultGraphicEnabled: true, searchConfiguration: this.searchConfiguration }), index.h("map-legend", { key: 'd3add3a5f820c5d654fec793d3e6e46b6a8919a3', class: legendClass, mapView: this.mapView, ref: (el) => { this._legendElement = el; } }), index.h("map-fullscreen", { key: 'e18a3a5d021d76e7c8fa9ecf3903105d5a43bed2', class: fullscreenClass, mapView: this.mapView, onFullscreenStateChange: (evt) => this._fullscreenStateChange(evt.detail), ref: (el) => { this._fullscreenElement = el; } }), index.h("floor-filter", { key: 'cb5d92e503248818e9627ba4ee8d70c81495599d', class: floorFilterClass, enabled: this.enableFloorFilter, mapView: this.mapView, ref: (el) => { this._floorFilterElement = el; } })));
1210
+ return (index.h(index.Host, { key: '6287cfedcd109c621812cc823ee75487a166f7c0' }, index.h("div", { key: '6f3f1a8ff1fb9c1d671be044143eec4ca6708062', class: containerClass }, this.enableSingleExpand ? (index.h("div", { class: "box-shadow" }, this._getActionGroup(toggleIcon, false, expandTip, () => this._toggleTools()))) : undefined, index.h("div", { key: '156511461a6b6c4a98b47c62460754405f101574', class: `${toolMarginClass} ${shadowClass} ${toolsClass}` }, this._getMapWidgets(toolOrder))), index.h("basemap-gallery", { key: '7975fa8c2db0c3fc10534d538bc593f8543b330e', basemapConfig: this.basemapConfig, class: basemapClass, mapView: this.mapView, ref: (el) => { this._basemapElement = el; } }), index.h("map-search", { key: 'd7df2b0010bc62b9d2a9601018a962d3e8df2561', class: searchClass, mapView: this.mapView, ref: (el) => { this._searchElement = el; }, resultGraphicEnabled: true, searchConfiguration: this.searchConfiguration }), index.h("map-legend", { key: '1bd19b87e9def0b81251aa422ef0024a938bd93d', class: legendClass, mapView: this.mapView, ref: (el) => { this._legendElement = el; } }), index.h("map-fullscreen", { key: 'c5a68a86acc284af7659f467f2fe98c6168b619e', class: fullscreenClass, mapView: this.mapView, onFullscreenStateChange: (evt) => this._fullscreenStateChange(evt.detail), ref: (el) => { this._fullscreenElement = el; } }), index.h("floor-filter", { key: '8d596ddeb353ac85635aa3ef550708e4ec4d5706', class: floorFilterClass, enabled: this.enableFloorFilter, mapView: this.mapView, ref: (el) => { this._floorFilterElement = el; } })));
1192
1211
  }
1193
1212
  //--------------------------------------------------------------------------
1194
1213
  //
@@ -1371,6 +1390,7 @@ const MapTools = class {
1371
1390
  this._translations = messages[0];
1372
1391
  }
1373
1392
  static get watchers() { return {
1393
+ "locale": ["localeWatchHandler"],
1374
1394
  "mapView": ["mapViewWatchHandler"],
1375
1395
  "_showBasemapWidget": ["_showBasemapWidgetWatchHandler"],
1376
1396
  "_showFloorFilter": ["_showFloorFilterWatchHandler"],
@@ -30,6 +30,7 @@ const BufferTools = class {
30
30
  this.appearance = "text";
31
31
  this.distance = 0;
32
32
  this.geometries = [];
33
+ this.locale = undefined;
33
34
  this.max = undefined;
34
35
  this.min = 0;
35
36
  this.sliderTicks = 10;
@@ -76,6 +77,14 @@ const BufferTools = class {
76
77
  disabledWatchHandler() {
77
78
  this._buffer();
78
79
  }
80
+ /**
81
+ * Fetch translations when the locale is updated
82
+ */
83
+ async localeWatchHandler() {
84
+ // to support url param and language switcher
85
+ this.el.lang = this.locale;
86
+ await this._getTranslations();
87
+ }
79
88
  //--------------------------------------------------------------------------
80
89
  //
81
90
  // Methods (public)
@@ -127,7 +136,7 @@ const BufferTools = class {
127
136
  * Renders the component.
128
137
  */
129
138
  render() {
130
- return (index.h(index.Host, { key: 'fe60961aabf178fd32c4c85e8d52b9bc61a349d0' }, this.appearance === "text" ? this._getTextBoxDisplay() : this._getSliderDisplay()));
139
+ return (index.h(index.Host, { key: '4fbfb01938d285a2b022834f712013cea10945f9' }, this.appearance === "text" ? this._getTextBoxDisplay() : this._getSliderDisplay()));
131
140
  }
132
141
  //--------------------------------------------------------------------------
133
142
  //
@@ -292,7 +301,8 @@ const BufferTools = class {
292
301
  }
293
302
  static get watchers() { return {
294
303
  "geometries": ["geometriesWatchHandler"],
295
- "disabled": ["disabledWatchHandler"]
304
+ "disabled": ["disabledWatchHandler"],
305
+ "locale": ["localeWatchHandler"]
296
306
  }; }
297
307
  };
298
308
  BufferTools.style = BufferToolsStyle0;
@@ -366,6 +376,7 @@ const MapDrawTools = class {
366
376
  this.drawMode = interfaces.EDrawMode.SKETCH;
367
377
  this.editGraphicsEnabled = true;
368
378
  this.graphics = undefined;
379
+ this.locale = undefined;
369
380
  this.mapView = undefined;
370
381
  this.pointSymbol = undefined;
371
382
  this.polylineSymbol = undefined;
@@ -426,6 +437,14 @@ const MapDrawTools = class {
426
437
  this._sketchGraphicsLayer.addMany(v);
427
438
  }
428
439
  }
440
+ /**
441
+ * Fetch translations when the locale is updated
442
+ */
443
+ async localeWatchHandler() {
444
+ // to support url param and language switcher
445
+ this.el.lang = this.locale;
446
+ await this._getTranslations();
447
+ }
429
448
  /**
430
449
  * Called each time the mapView prop is changed.
431
450
  */
@@ -515,7 +534,7 @@ const MapDrawTools = class {
515
534
  "border" : "border esri-widget esri-sketch__panel";
516
535
  const undoRedoClass = this.drawMode === interfaces.EDrawMode.SKETCH ?
517
536
  "display-none" : "esri-widget esri-sketch__panel border-left esri-sketch__section";
518
- return (index.h(index.Host, { key: 'c6717ea80242f622168f49efeaf2cebf497ca09e' }, index.h("div", { key: '2dd805c704381cb411d69b757072371d91fb243d', class: containerClass }, index.h("div", { key: '28b81cb37f3e11f66656195fc10b4c170f8d8fe9', ref: (el) => { this._sketchElement = el; } }), index.h("div", { key: 'a6de7ee6dbf4f02eb355c032c7bd9bf4ec4426e9', class: undoRedoClass }, index.h("calcite-action", { key: '2efeab5db057e1657c3639a39ae4d4150d331776', disabled: !this.undoEnabled, icon: "undo", onClick: () => this._undo(), scale: "s", text: this._translations.undo }), index.h("calcite-action", { key: '770693e30a6cfb58f593bb471342ea34556fc8d4', disabled: !this.redoEnabled, icon: "redo", onClick: () => this._redo(), scale: "s", text: this._translations.redo })))));
537
+ return (index.h(index.Host, { key: 'c94ac0dde3ba21569ef86cb3ba5e92a427acd10f' }, index.h("div", { key: 'c699bf597d5a28d62dbba20fa6ddca38f406294f', class: containerClass }, index.h("div", { key: '78058d9155a650bb59e59ab9064a0286b7479759', ref: (el) => { this._sketchElement = el; } }), index.h("div", { key: '8cfc53dda2d1b272841acf40bd70b951111c359e', class: undoRedoClass }, index.h("calcite-action", { key: '5a8f0d0429f7d3df587957ae77ed935b0f99a5a0', disabled: !this.undoEnabled, icon: "undo", onClick: () => this._undo(), scale: "s", text: this._translations.undo }), index.h("calcite-action", { key: '163067cba4a163dc32d23c2d96cb2d9d967d287e', disabled: !this.redoEnabled, icon: "redo", onClick: () => this._redo(), scale: "s", text: this._translations.redo })))));
519
538
  }
520
539
  //--------------------------------------------------------------------------
521
540
  //
@@ -748,6 +767,7 @@ const MapDrawTools = class {
748
767
  }
749
768
  static get watchers() { return {
750
769
  "graphics": ["graphicsWatchHandler"],
770
+ "locale": ["localeWatchHandler"],
751
771
  "mapView": ["mapViewWatchHandler"]
752
772
  }; }
753
773
  };
@@ -590,6 +590,7 @@ const CreateFeature = class {
590
590
  this.mapView = undefined;
591
591
  this.selectedLayerId = undefined;
592
592
  this.customizeSubmit = false;
593
+ this.locale = undefined;
593
594
  this.searchConfiguration = undefined;
594
595
  this.isMobile = undefined;
595
596
  this.floorLevel = undefined;
@@ -693,6 +694,14 @@ const CreateFeature = class {
693
694
  // Watch handlers
694
695
  //
695
696
  //--------------------------------------------------------------------------
697
+ /**
698
+ * Fetch translations when the locale is updated
699
+ */
700
+ async localeWatchHandler() {
701
+ // to support url param and language switcher
702
+ this.el.lang = this.locale;
703
+ await this._getTranslations();
704
+ }
696
705
  /**
697
706
  * Called each time the mapView prop is changed.
698
707
  */
@@ -839,8 +848,8 @@ const CreateFeature = class {
839
848
  else if (this._currentPage === 'featureForm') {
840
849
  guidingMsg = this._translations.provideDetailsMsg;
841
850
  }
842
- return (index.h(index.Fragment, { key: '89634bf5707ea8390416d3087bfbe4e747bafcd7' }, showGuidingMsg && index.h("calcite-notice", { key: '4269224c2904f29060081f6cb8f383f1cf8d741d', class: "notice-msg", icon: "lightbulb", kind: "success", open: true, ref: el => this._calciteNotice = el }, index.h("div", { key: 'ecc3cca85c81d1cb7ab7cdc89b99e31afcb55f76', slot: "message" }, guidingMsg)), index.h("calcite-loader", { key: '34e492c0c469b39d4cfbcda17c4ba196ccb39eb8', class: loaderClass, label: "", scale: "s" }), index.h("div", { key: 'b2073ef4b6124b54038de34798cdf83337626023', class: featureFormClass, id: "feature-form" }), this.enableSearch &&
843
- index.h("div", { key: 'cd13e98b6a40d5d89d271b5785f797e9bfc19900', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref", ref: el => this._searchDiv = el }), index.h("div", { key: '2575b2d20f7713b05a2024e77452af93eb64e147', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
851
+ return (index.h(index.Fragment, { key: '788b2ebb85b603452d4b4de05711510f7480c895' }, showGuidingMsg && index.h("calcite-notice", { key: 'cf41e701f5a7605531fa6351acf13ea20e219f7a', class: "notice-msg", icon: "lightbulb", kind: "success", open: true, ref: el => this._calciteNotice = el }, index.h("div", { key: '1bb493a8e5a962c8a8c75ac37156edbf866c3916', slot: "message" }, guidingMsg)), index.h("calcite-loader", { key: '5d2e9a465cb7c6dbde8d941497fda87b4fc7c258', class: loaderClass, label: "", scale: "s" }), index.h("div", { key: '23b8651f4040443ba731173d1818b515b718b754', class: featureFormClass, id: "feature-form" }), this.enableSearch &&
852
+ index.h("div", { key: '7f628d09111295d46fbf7b9605999c2ef88c258d', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref", ref: el => this._searchDiv = el }), index.h("div", { key: '3def9aaab0a2f03076a6c4c645cf5a080bbb9e75', class: `${mobileMapClass}`, ref: (el) => { this._mapViewContainer = el; } })));
844
853
  }
845
854
  //--------------------------------------------------------------------------
846
855
  //
@@ -1245,6 +1254,7 @@ const CreateFeature = class {
1245
1254
  this._translations = messages[0];
1246
1255
  }
1247
1256
  static get watchers() { return {
1257
+ "locale": ["localeWatchHandler"],
1248
1258
  "mapView": ["mapViewWatchHandler"],
1249
1259
  "isMobile": ["isMobileHandler"],
1250
1260
  "_editorLoading": ["_editorLoadingWatchHandler"]
@@ -1263,6 +1273,7 @@ const EditCard = class {
1263
1273
  this.refreshGraphics = index.createEvent(this, "refreshGraphics", 7);
1264
1274
  this.enableEditGeometry = false;
1265
1275
  this.graphics = undefined;
1276
+ this.locale = undefined;
1266
1277
  this.mapView = undefined;
1267
1278
  this.open = false;
1268
1279
  this.graphicIndex = 0;
@@ -1346,6 +1357,14 @@ const EditCard = class {
1346
1357
  await this._closeEdit(true);
1347
1358
  }
1348
1359
  }
1360
+ /**
1361
+ * Fetch translations when the locale is updated
1362
+ */
1363
+ async localeWatchHandler() {
1364
+ // to support url param and language switcher
1365
+ this.el.lang = this.locale;
1366
+ await this._getTranslations();
1367
+ }
1349
1368
  async openWatchHandler(v) {
1350
1369
  if (v && this.graphics?.length > 0 && this.graphicIndex > -1) {
1351
1370
  this._editorLoading = true;
@@ -1430,7 +1449,7 @@ const EditCard = class {
1430
1449
  !this.graphics[0].layer.editingEnabled : true;
1431
1450
  const tableNodeClass = this._editorLoading ? "display-none" : "position-absolute";
1432
1451
  const loadingClass = this._editorLoading ? "" : "display-none";
1433
- return (index.h(index.Host, { key: 'ff6d1819cfd084e9f11a1c87d89c49d13035b289' }, index.h("div", { key: '797882acbcc26283719be4c08936e93b93931bcd', class: "position-absolute" }, editDisabled ? (index.h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, index.h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, index.h("div", { key: '34ce92da0b7c452f0fbae98d9f557543da59f5b8', class: "position-absolute" }, index.h("div", { key: '81af3854249e193d0d508c022cb4075be63f052d', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), index.h("calcite-loader", { key: 'd7aa82424f87c47039a8a8f8c61240da7a5ca971', class: loadingClass, label: "", scale: "s" })))));
1452
+ return (index.h(index.Host, { key: '15ae3de9c8ab0a66a0185ffaafc27f03e19c77b7' }, index.h("div", { key: 'bbaa7dbc405259b64dfceca89e45abf6372c76c3', class: "position-absolute" }, editDisabled ? (index.h("calcite-notice", { kind: "warning", open: true, slot: "content-top", width: "full" }, index.h("div", { slot: "message" }, this._translations.enableEditing))) : undefined, index.h("div", { key: 'eb8b08fa0b08cf93581fb8e76d59bd8b5446770f', class: "position-absolute" }, index.h("div", { key: '03e525373c09fbcd4dad213738d97b99f1549975', class: tableNodeClass, id: "feature-form", ref: (el) => this._editContainer = el }), index.h("calcite-loader", { key: '1cc46d8f6499a90736e05c2eed9bff71aff35d12', class: loadingClass, label: "", scale: "s" })))));
1434
1453
  }
1435
1454
  //--------------------------------------------------------------------------
1436
1455
  //
@@ -1536,6 +1555,7 @@ const EditCard = class {
1536
1555
  }
1537
1556
  static get watchers() { return {
1538
1557
  "graphics": ["graphicsWatchHandler"],
1558
+ "locale": ["localeWatchHandler"],
1539
1559
  "open": ["openWatchHandler"]
1540
1560
  }; }
1541
1561
  };
@@ -1556,6 +1576,7 @@ const InfoCard = class {
1556
1576
  this.mapView = undefined;
1557
1577
  this.allowEditing = true;
1558
1578
  this.highlightEnabled = true;
1579
+ this.locale = undefined;
1559
1580
  this.paginationEnabled = true;
1560
1581
  this.position = 'absolute';
1561
1582
  this._alertOpen = false;
@@ -1620,6 +1641,19 @@ const InfoCard = class {
1620
1641
  async isMobileWatchHandler() {
1621
1642
  await this._initFeaturesWidget();
1622
1643
  }
1644
+ /**
1645
+ * Fetch translations when the locale is updated
1646
+ */
1647
+ async localeWatchHandler() {
1648
+ // to support url param and language switcher
1649
+ this.el.lang = this.locale;
1650
+ await this._getTranslations();
1651
+ if (this._features) {
1652
+ const graphics = [...this.graphics];
1653
+ this.graphics = [];
1654
+ this.graphics = graphics;
1655
+ }
1656
+ }
1623
1657
  /**
1624
1658
  * Watch for changes to the mapView and re-init the Feature widget
1625
1659
  */
@@ -1752,8 +1786,8 @@ const InfoCard = class {
1752
1786
  const id = this._features?.selectedFeature?.getObjectId();
1753
1787
  const ids = parseInt(id?.toString(), 10) > -1 ? [id] : [];
1754
1788
  const deleteEnabled = this._layer?.editingEnabled && this._layer?.capabilities?.operations?.supportsDelete;
1755
- return (index.h(index.Host, { key: 'e200fd8d903d1c3295247a45f352ae62394501d5' }, index.h("calcite-shell", { key: '0b467ed0b480944660ef2194b302070d56cb70e4', style: { position: this.position } }, this._getHeader(), index.h("calcite-loader", { key: 'cf6172f533f67274b04ac61af75f44ffe62cbc9e', class: loadingClass, label: this._translations.fetchingData }), index.h("div", { key: '06f3e0c61e14fe73c0fadd58c3cf2c7c03efff6d', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), index.h("div", { key: '0f964afa075abbd27db827f90d189b9bc2a7c9d4', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
1756
- index.h("div", { key: 'd518934d172425ecb46e6b28ea683427d8982382', class: "display-flex top-border padding-1-2" }, index.h("calcite-button", { key: '4d4f3583b6448e33e3d3ad1aba8c9178f71d75b8', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (index.h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, onEditsComplete: () => this._closePopup() })) : undefined, index.h("calcite-tooltip", { key: '5358ba4079f1906d23b6df5b1facb84eec9692d3', placement: "bottom", "reference-element": "solutions-edit" }, index.h("span", { key: '8466cfb97ce12e46a06ed665afe974377911e101' }, this._translations.edit)), this.isMobile ? (index.h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, index.h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && index.h("div", { key: '61c551cc2b0c0a2981daa9bf67c7e13318508ca6', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, index.h("div", { key: '379dc6697743caedf8fdbea16423b83e9e823a5b' }, index.h("calcite-button", { key: '616a52367d2f56db0104ce279951a81fcf60a376', appearance: 'transparent', disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), index.h("calcite-tooltip", { key: 'f7f83e145c25591de025650fd358ca6200c4b6c5', placement: "top", "reference-element": "solutions-back" }, index.h("span", { key: '8afbde57b91ee8597de237db87efda7eabc10d69' }, this._translations.back))), index.h("calcite-action", { key: '23344d4abac515d089b8770d63181a989971aa33', class: 'pagination-action', iconFlipRtl: true, onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, index.h("span", { key: 'a4c784c5a2c7dfeb9442a58f86961a3242f55055', class: "pagination-count" }, this._count)), index.h("div", { key: '75e33452a93e9a77f30505957e87b8758ab8d2dd' }, index.h("calcite-button", { key: '0283a96c401e1929588e28d6ec014eb28b93d1f1', appearance: "transparent", disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), index.h("calcite-tooltip", { key: '658a26b1bca471b96799cb81ee941f0556619dc9', placement: "top", "reference-element": "solutions-next" }, index.h("span", { key: '9892d4ee61a1b5656711bb0a188282d9b46bd3f9' }, this._translations.next))))), index.h("edit-card", { key: '541268c24631ab526bf1b65313d39f3ca606cb6d', class: editClass, enableEditGeometry: this.enableEditGeometry, graphicIndex: this._features?.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), index.h("calcite-alert", { key: '1cdff00f5d7e72b5db220750d290593a1baf68c4', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, index.h("div", { key: 'bb250c5906f0e998a794b5c02c22f9643fab16a9', slot: "title" }, this._translations.editDisabled), index.h("div", { key: 'd330d1ce74473fc76630d2607ab3ca2584aabbd7', slot: "message" }, this._translations.enableEditing)))));
1789
+ return (index.h(index.Host, { key: '54e47d0ec2be9149c3e667c9e940842804d96964' }, index.h("calcite-shell", { key: '14bb280d394ceaa74463979886ab09cdf393b26e', style: { position: this.position } }, this._getHeader(), index.h("calcite-loader", { key: '3226709e73de16c795c348513183b26b88b7a726', class: loadingClass, label: this._translations.fetchingData }), index.h("div", { key: 'ba4b0c34620c60e849bdf0ada785b9976156dd1c', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), index.h("div", { key: '440a4d3c0530f97031df2e2ab9511ef6035fb5da', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
1790
+ index.h("div", { key: '172b2e2cc10bdfb104057376ceba5d7f5f19ad61', class: "display-flex top-border padding-1-2" }, index.h("calcite-button", { key: '242daf0ec6c3fe4fcc11be4bbc19f810836714ec', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (index.h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, locale: this.locale, onEditsComplete: () => this._closePopup() })) : undefined, index.h("calcite-tooltip", { key: '760f8fcd1bcff2060e0a98e84a222107e55fef22', placement: "bottom", "reference-element": "solutions-edit" }, index.h("span", { key: '30656b92e9bdbf3a9548586d91fc23bce2da9db3' }, this._translations.edit)), this.isMobile ? (index.h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, index.h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && index.h("div", { key: '161902561c9686d74a511338dfc02efce0095af7', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, index.h("div", { key: 'afd1459e3f69f60d96103854fe3dae71f18fc41e' }, index.h("calcite-button", { key: '59063d7fa2cf886afca66857cb1f74e42789e59f', appearance: 'transparent', disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), index.h("calcite-tooltip", { key: '412e00bc323494bb1e3a7dbeef59ab9bcd6ff8e0', placement: "top", "reference-element": "solutions-back" }, index.h("span", { key: '7c1512be35f16b4441c2a364e1b7a87e3c7caf97' }, this._translations.back))), index.h("calcite-action", { key: 'd4790efec0d13e6726ffe9d438683db6887d00b8', class: 'pagination-action', iconFlipRtl: true, onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, index.h("span", { key: '98663d5c3b2f445db4e38cba98b8149c53cbc474', class: "pagination-count" }, this._count)), index.h("div", { key: '6ca88610950cf2852e2dc67588c77fd464ece3c5' }, index.h("calcite-button", { key: '577739ef819676dfd9cdee560a8cd22edcd9c6b7', appearance: "transparent", disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), index.h("calcite-tooltip", { key: '73a4f907d1a2f46a980c451572f1ba1e1b0b0596', placement: "top", "reference-element": "solutions-next" }, index.h("span", { key: 'd5f67497df866592b30d6c328f9f45716eb16153' }, this._translations.next))))), index.h("edit-card", { key: 'c8094993be5203f464cea4f632c14dbefa263a73', class: editClass, enableEditGeometry: this.enableEditGeometry, graphicIndex: this._features?.selectedFeatureIndex, graphics: this.graphics, locale: this.locale, mapView: this.mapView, open: this._editRecordOpen }), index.h("calcite-alert", { key: '0b9fd2109d7c6b51b91088ecbec50956a2d8d3d8', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, index.h("div", { key: 'c8b7b452430d6fedda5288fd58efae5526adeda7', slot: "title" }, this._translations.editDisabled), index.h("div", { key: 'b2dc954d43bb08908723f70796df5c77108d92d8', slot: "message" }, this._translations.enableEditing)))));
1757
1791
  }
1758
1792
  //--------------------------------------------------------------------------
1759
1793
  //
@@ -1922,6 +1956,7 @@ const InfoCard = class {
1922
1956
  static get watchers() { return {
1923
1957
  "graphics": ["graphicsWatchHandler"],
1924
1958
  "isMobile": ["isMobileWatchHandler"],
1959
+ "locale": ["localeWatchHandler"],
1925
1960
  "mapView": ["mapViewWatchHandler"]
1926
1961
  }; }
1927
1962
  };
@@ -1518,6 +1518,7 @@ const InstantAppsFilterList = class {
1518
1518
  index.registerInstance(this, hostRef);
1519
1519
  this.filterListReset = index.createEvent(this, "filterListReset", 7);
1520
1520
  this.filterUpdate = index.createEvent(this, "filterUpdate", 7);
1521
+ this.isLayerExpUpdated = false;
1521
1522
  this.layerExpressions = undefined;
1522
1523
  this.autoUpdateUrl = false;
1523
1524
  this.closeBtn = false;
@@ -1538,7 +1539,6 @@ const InstantAppsFilterList = class {
1538
1539
  this.messages = undefined;
1539
1540
  this.baseClass = baseClassLight;
1540
1541
  this.disabled = true;
1541
- this.hasLayerExpression = false;
1542
1542
  this.initDefExpressions = undefined;
1543
1543
  this.initMapImageExpressions = undefined;
1544
1544
  this.initPointCloudFilters = undefined;
@@ -1547,11 +1547,9 @@ const InstantAppsFilterList = class {
1547
1547
  this.handleWhenView();
1548
1548
  }
1549
1549
  watchLayerExpressions() {
1550
- if (!this.hasLayerExpression) {
1551
- this.filterLayerExpressions = structuredClone(this.layerExpressions);
1552
- this.handleLayerExpressionsUpdate();
1553
- this.hasLayerExpression = true;
1554
- }
1550
+ this.resetAllFilters();
1551
+ this.filterLayerExpressions = structuredClone(this.layerExpressions);
1552
+ this.handleLayerExpressionsUpdate();
1555
1553
  }
1556
1554
  getFilterInitState() {
1557
1555
  return Promise.resolve({
@@ -1561,7 +1559,6 @@ const InstantAppsFilterList = class {
1561
1559
  });
1562
1560
  }
1563
1561
  forceReset() {
1564
- this.filterLayerExpressions = structuredClone(this.layerExpressions);
1565
1562
  this.handleResetFilter();
1566
1563
  return this.initExpressions();
1567
1564
  }
@@ -1576,28 +1573,28 @@ const InstantAppsFilterList = class {
1576
1573
  }
1577
1574
  return this.initExpressions();
1578
1575
  }
1576
+ connectedCallback() {
1577
+ var _a;
1578
+ if (this.layerExpressions == null && this.view == null)
1579
+ return;
1580
+ this.isLayerExpUpdated = true;
1581
+ this.filterLayerExpressions = structuredClone(this.layerExpressions);
1582
+ this.disabled = ((_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.length) ? undefined : true;
1583
+ this.handleLayerExpressionsUpdate();
1584
+ }
1579
1585
  async componentWillLoad() {
1580
1586
  var _a;
1581
1587
  this.baseClass = mode.getMode(this.el) === 'dark' ? baseClassDark : baseClassLight;
1582
1588
  await this.initializeModules();
1583
1589
  locale$1.getMessages(this);
1584
- this.hasLayerExpression = this.layerExpressions != null;
1590
+ if (this.isLayerExpUpdated)
1591
+ return;
1592
+ this.isLayerExpUpdated = true;
1585
1593
  this.filterLayerExpressions = this.layerExpressions != null ? structuredClone(this.layerExpressions) : [];
1586
1594
  this.disabled = ((_a = this.filterLayerExpressions) === null || _a === void 0 ? void 0 : _a.length) ? undefined : true;
1587
- this.reactiveUtils.whenOnce(() => this.view).then(() => this.handleLayerExpressionsUpdate());
1588
- }
1589
- componentShouldUpdate(newValue, _oldValue, name) {
1590
- if (name === 'view' && newValue != null) {
1591
- this.handleWhenView();
1592
- }
1593
- else if (name === 'layerExpressions') {
1594
- if (this.hasLayerExpression) {
1595
- this.resetAllFilters();
1596
- }
1597
- this.filterLayerExpressions = structuredClone(this.layerExpressions);
1598
- this.handleLayerExpressionsUpdate();
1599
- this.hasLayerExpression = true;
1600
- }
1595
+ if (this.view == null)
1596
+ return;
1597
+ this.handleLayerExpressionsUpdate();
1601
1598
  }
1602
1599
  componentWillRender() {
1603
1600
  var _a;
@@ -1605,21 +1602,21 @@ const InstantAppsFilterList = class {
1605
1602
  }
1606
1603
  disconnectedCallback() {
1607
1604
  if (this.resetFiltersOnDisconnect) {
1605
+ this.isLayerExpUpdated = false;
1608
1606
  this.filterLayerExpressions = structuredClone(this.layerExpressions);
1609
1607
  this.resetAllFilters();
1610
1608
  }
1611
1609
  }
1612
1610
  async initializeModules() {
1613
- const [intl, geometryJsonUtils, reactiveUtils] = await loadModules.loadModules(['esri/intl', 'esri/geometry/support/jsonUtils', 'esri/core/reactiveUtils']);
1611
+ const [intl, geometryJsonUtils] = await loadModules.loadModules(['esri/intl', 'esri/geometry/support/jsonUtils']);
1614
1612
  this.geometryJsonUtils = geometryJsonUtils;
1615
- this.reactiveUtils = reactiveUtils;
1616
1613
  this.locale = intl.getLocale();
1617
1614
  this.intl = intl;
1618
1615
  }
1619
1616
  render() {
1620
1617
  const filterConfig = this.loading ? this.renderLoading() : this.initFilterConfig();
1621
- const footer = this.renderFooter(this.closeBtn, this.resetBtn);
1622
- return (index.h(index.Host, { key: '80c4918bd3bdf65d541ed6cf4cf4843ab0f0df01' }, index.h("calcite-panel", { key: 'f1da101b071420df42da5eb8f5478d0719b40cec', class: this.baseClass, ref: el => (this.panelEl = el) }, index.h("slot", { key: '8ebdbf20767027459470fa85fe4238e69bc47ab8', slot: "header-content", name: "filter-header-content" }), index.h("slot", { key: '177f8db80aa842eeb200344cd7b398cd51ca23f3', slot: "header-actions-end", name: "filter-header-actions-end" }), index.h("div", { key: "filter-container", class: CSS$1.filterContainer }, filterConfig, footer))));
1618
+ const footer = this.renderFooter();
1619
+ return (index.h(index.Host, { key: '055d2a02c5118e59462af8759c6bf2f39304fd75' }, index.h("calcite-panel", { key: '0335c9b28101257551902737ef373543aebee1f6', class: this.baseClass, ref: el => (this.panelEl = el) }, index.h("slot", { key: '4b471e66583b3f2fd733688d65ce8d3b2acbeb66', slot: "header-content", name: "filter-header-content" }), index.h("slot", { key: 'f5832075687a6812b902643fd057587b438b38cf', slot: "header-actions-end", name: "filter-header-actions-end" }), index.h("div", { key: "filter-container", class: CSS$1.filterContainer }, filterConfig, footer))));
1623
1620
  }
1624
1621
  renderLoading() {
1625
1622
  return index.h("calcite-loader", { label: "Loading filters..." });
@@ -1688,10 +1685,11 @@ const InstantAppsFilterList = class {
1688
1685
  const check = min != null && max != null;
1689
1686
  return check ? (index.h("label", { class: CSS$1.filterUIItemContainer }, index.h("span", null, expression === null || expression === void 0 ? void 0 : expression.name), index.h("div", { class: CSS$1.dateInputContainer }, index.h("calcite-input-date-picker", { id: expression === null || expression === void 0 ? void 0 : expression.id.toString(), onCalciteInputDatePickerChange: this.handleDatePickerRangeChange.bind(this, expression, layerExpression), min: min, max: max, "overlay-positioning": "fixed", lang: (_c = this.locale) !== null && _c !== void 0 ? _c : 'en', layout: "vertical", value: value, range: true }), index.h("calcite-action", { onClick: this.handleResetDatePicker.bind(this, expression, layerExpression), icon: "reset", text: (_d = this.messages) === null || _d === void 0 ? void 0 : _d.resetDatePicker, scale: "s" })))) : null;
1690
1687
  }
1691
- renderFooter(closeBtn, resetBtn) {
1688
+ renderFooter() {
1692
1689
  var _a, _b, _c;
1693
1690
  const closeText = this.closeBtnText != null ? this.closeBtnText : (_a = this.messages) === null || _a === void 0 ? void 0 : _a.close;
1694
- return (index.h("div", { class: CSS$1.footer, slot: "footer" }, resetBtn ? (index.h("calcite-button", { appearance: "outline", width: "half", disabled: this.disabled, onClick: this.handleResetFilter.bind(this) }, (_b = this.messages) === null || _b === void 0 ? void 0 : _b.resetFilter)) : undefined, closeBtn ? (index.h("calcite-button", { appearance: "solid", width: "half", kind: "brand", onClick: (_c = this.closeBtnOnClick) === null || _c === void 0 ? void 0 : _c.bind(this) }, closeText)) : undefined));
1691
+ const btnWidth = this.closeBtn && this.resetBtn ? 'half' : 'full';
1692
+ return (index.h("div", { class: CSS$1.footer, slot: "footer" }, this.resetBtn ? (index.h("calcite-button", { appearance: "outline", width: btnWidth, disabled: this.disabled, onClick: this.handleResetFilter.bind(this) }, (_b = this.messages) === null || _b === void 0 ? void 0 : _b.resetFilter)) : undefined, this.closeBtn ? (index.h("calcite-button", { appearance: "solid", width: btnWidth, kind: "brand", onClick: (_c = this.closeBtnOnClick) === null || _c === void 0 ? void 0 : _c.bind(this) }, closeText)) : undefined));
1695
1693
  }
1696
1694
  renderZoomTo(layerExpression) {
1697
1695
  var _a;
@@ -1722,23 +1720,21 @@ const InstantAppsFilterList = class {
1722
1720
  }
1723
1721
  async initExpressions() {
1724
1722
  this.loading = true;
1725
- if (this.filterLayerExpressions == null)
1723
+ if (this.filterLayerExpressions == null || this.view == null)
1726
1724
  return;
1727
- const tmpLE = await this.processExpressions();
1725
+ await this.processExpressions();
1728
1726
  this.loading = false;
1729
- this.filterLayerExpressions = [...tmpLE];
1730
1727
  }
1731
1728
  async processExpressions() {
1732
1729
  var _a;
1733
1730
  if (!this.filterLayerExpressions)
1734
- return [];
1731
+ return;
1735
1732
  for (const layerExpression of this.filterLayerExpressions) {
1736
1733
  for (const expression of layerExpression.expressions || []) {
1737
1734
  expression.active = (_a = expression.active) !== null && _a !== void 0 ? _a : expression.definitionExpression != null;
1738
1735
  await this.setInitExpression(layerExpression, expression);
1739
1736
  }
1740
1737
  }
1741
- return this.filterLayerExpressions;
1742
1738
  }
1743
1739
  handleResetFilter() {
1744
1740
  var _a;
@@ -1808,6 +1804,8 @@ const InstantAppsFilterList = class {
1808
1804
  }
1809
1805
  resetAllFilters() {
1810
1806
  var _a, _b, _c, _d, _e;
1807
+ if (this.initDefExpressions == null)
1808
+ return;
1811
1809
  const allLayersAndTables = (_c = (_b = (_a = this.view) === null || _a === void 0 ? void 0 : _a.map) === null || _b === void 0 ? void 0 : _b.allLayers) === null || _c === void 0 ? void 0 : _c.concat((_e = (_d = this.view) === null || _d === void 0 ? void 0 : _d.map) === null || _e === void 0 ? void 0 : _e.allTables);
1812
1810
  allLayersAndTables === null || allLayersAndTables === void 0 ? void 0 : allLayersAndTables.forEach(layer => {
1813
1811
  var _a, _b;
@@ -1909,18 +1907,19 @@ const InstantAppsFilterList = class {
1909
1907
  }
1910
1908
  return false;
1911
1909
  }
1912
- updateCodedValueExpression(expression, layerField) {
1910
+ async updateCodedValueExpression(layerExpression, expression, layerField) {
1913
1911
  var _a, _b;
1914
1912
  if (!(layerField === null || layerField === void 0 ? void 0 : layerField.domain) || ((_a = layerField === null || layerField === void 0 ? void 0 : layerField.domain) === null || _a === void 0 ? void 0 : _a.type) !== 'coded-value') {
1915
1913
  return false;
1916
1914
  }
1915
+ const layer = this.findFilterLayer(layerExpression);
1916
+ await this.getFeatureAttributes(layer, expression);
1917
1917
  const domain = layerField.domain;
1918
1918
  const codedValuesMap = domain.codedValues.reduce((acc, { code, name }) => {
1919
1919
  acc[code] = name;
1920
1920
  return acc;
1921
1921
  }, {});
1922
1922
  expression.codedValues = codedValuesMap;
1923
- expression.fields = Object.keys(codedValuesMap);
1924
1923
  if ((_b = expression.selectedFields) === null || _b === void 0 ? void 0 : _b.length) {
1925
1924
  const selectedFieldsExpression = expression.selectedFields.map((field) => (typeof field === 'number' ? field : `'${handleSingleQuote(field)}'`)).join(',');
1926
1925
  expression.definitionExpression = `${expression.field} IN (${selectedFieldsExpression})`;
@@ -1989,7 +1988,7 @@ const InstantAppsFilterList = class {
1989
1988
  if (features === null || features === void 0 ? void 0 : features.length) {
1990
1989
  expression.fields = [...new Set(features)];
1991
1990
  if (expression.type === 'string') {
1992
- expression.fields = expression.fields.sort();
1991
+ expression.fields = expression.fields.sort((a, b) => a.localeCompare(b));
1993
1992
  }
1994
1993
  else if (expression.type === 'number') {
1995
1994
  expression.fields = expression.fields.sort((a, b) => a - b);
@@ -2018,8 +2017,15 @@ const InstantAppsFilterList = class {
2018
2017
  expression.fields.push(...features);
2019
2018
  }
2020
2019
  });
2021
- expression.fields = [...new Set(expression.fields)].sort();
2022
- this.filterLayerExpressions = [...this.filterLayerExpressions];
2020
+ if (expression.type === 'string') {
2021
+ expression.fields = [...new Set(expression.fields)].sort((a, b) => a.localeCompare(b));
2022
+ }
2023
+ else if (expression.type === 'number') {
2024
+ expression.fields = [...new Set(expression.fields)].sort((a, b) => a - b);
2025
+ }
2026
+ else {
2027
+ expression.fields = [...new Set(expression.fields)].sort();
2028
+ }
2023
2029
  });
2024
2030
  }
2025
2031
  async queryForFeatures(layer, query, field) {
@@ -2102,13 +2108,14 @@ const InstantAppsFilterList = class {
2102
2108
  case 'number':
2103
2109
  return await this.updateNumberExpression(layerExpression, expression);
2104
2110
  case 'date':
2105
- return this.updateDateExpressionBasedOnDisplayOption(layerExpression, expression);
2111
+ return await this.updateDateExpressionBasedOnDisplayOption(layerExpression, expression);
2106
2112
  case 'coded-value':
2107
- return this.updateCodedValueExpression(expression, layerField);
2113
+ return await this.updateCodedValueExpression(layerExpression, expression, layerField);
2108
2114
  case 'range':
2109
- return this.updateRangeExpressionBasedOnDisplayOption(layerExpression, expression, layerField);
2115
+ return await this.updateRangeExpressionBasedOnDisplayOption(layerExpression, expression, layerField);
2110
2116
  case 'checkbox':
2111
2117
  case null:
2118
+ case undefined:
2112
2119
  return (_a = expression.active) !== null && _a !== void 0 ? _a : false;
2113
2120
  default:
2114
2121
  return false;
@@ -2308,31 +2315,9 @@ const InstantAppsFilterList = class {
2308
2315
  this.handleLayerExpressionsUpdate();
2309
2316
  }
2310
2317
  async handleLayerExpressionsUpdate() {
2311
- if (this.view == null)
2312
- return;
2313
- const map = this.view.map;
2314
- this.initDefExpressions = {};
2315
- this.initPointCloudFilters = {};
2316
- this.initMapImageExpressions = {};
2317
- map.allLayers.concat(map.allTables).forEach(layer => {
2318
- if (!supportedTypes.includes(layer.type))
2319
- return;
2320
- const fl = layer;
2321
- if (fl.type === 'point-cloud') {
2322
- this.initPointCloudFilters[fl.id] = fl.filters;
2323
- }
2324
- else if (fl.type === 'map-image') {
2325
- this.initMapImageExpressions[fl.id] = fl.allSublayers.reduce((acc, sublayer) => {
2326
- acc[sublayer.id] = sublayer.definitionExpression;
2327
- return acc;
2328
- }, {});
2329
- }
2330
- else {
2331
- this.initDefExpressions[fl.id] = fl.definitionExpression;
2332
- }
2333
- });
2334
- this.initExpressions();
2318
+ this.updateInitExpressions();
2335
2319
  this.handleURLParams();
2320
+ this.initExpressions();
2336
2321
  }
2337
2322
  async handleZoomTo(layerExpression) {
2338
2323
  const zoomId = (layerExpression === null || layerExpression === void 0 ? void 0 : layerExpression.sublayerId) ? `#zoom-to-${layerExpression.id}-${layerExpression.sublayerId}` : `#zoom-to-${layerExpression.id}`;
@@ -2503,6 +2488,31 @@ const InstantAppsFilterList = class {
2503
2488
  query.geometry = geometry;
2504
2489
  query.spatialRelationship = 'intersects';
2505
2490
  }
2491
+ updateInitExpressions() {
2492
+ if (this.view == null)
2493
+ return;
2494
+ const map = this.view.map;
2495
+ this.initDefExpressions = {};
2496
+ this.initPointCloudFilters = {};
2497
+ this.initMapImageExpressions = {};
2498
+ map.allLayers.concat(map.allTables).forEach(layer => {
2499
+ if (!supportedTypes.includes(layer.type))
2500
+ return;
2501
+ const fl = layer;
2502
+ if (fl.type === 'point-cloud') {
2503
+ this.initPointCloudFilters[fl.id] = fl.filters;
2504
+ }
2505
+ else if (fl.type === 'map-image') {
2506
+ this.initMapImageExpressions[fl.id] = fl.allSublayers.reduce((acc, sublayer) => {
2507
+ acc[sublayer.id] = sublayer.definitionExpression;
2508
+ return acc;
2509
+ }, {});
2510
+ }
2511
+ else {
2512
+ this.initDefExpressions[fl.id] = fl.definitionExpression;
2513
+ }
2514
+ });
2515
+ }
2506
2516
  get el() { return index.getElement(this); }
2507
2517
  static get watchers() { return {
2508
2518
  "view": ["watchViewHandler"],