@esri/solutions-components 0.8.36 → 0.8.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1183) hide show
  1. package/dist/assets/t9n/layer-list/resources_ar.json +1 -1
  2. package/dist/assets/t9n/layer-list/resources_bg.json +1 -1
  3. package/dist/assets/t9n/layer-list/resources_bs.json +1 -1
  4. package/dist/assets/t9n/layer-list/resources_ca.json +1 -1
  5. package/dist/assets/t9n/layer-list/resources_cs.json +1 -1
  6. package/dist/assets/t9n/layer-list/resources_da.json +1 -1
  7. package/dist/assets/t9n/layer-list/resources_de.json +1 -1
  8. package/dist/assets/t9n/layer-list/resources_el.json +1 -1
  9. package/dist/assets/t9n/layer-list/resources_es.json +1 -1
  10. package/dist/assets/t9n/layer-list/resources_et.json +1 -1
  11. package/dist/assets/t9n/layer-list/resources_fi.json +1 -1
  12. package/dist/assets/t9n/layer-list/resources_fr.json +1 -1
  13. package/dist/assets/t9n/layer-list/resources_he.json +1 -1
  14. package/dist/assets/t9n/layer-list/resources_hr.json +1 -1
  15. package/dist/assets/t9n/layer-list/resources_hu.json +1 -1
  16. package/dist/assets/t9n/layer-list/resources_id.json +1 -1
  17. package/dist/assets/t9n/layer-list/resources_it.json +1 -1
  18. package/dist/assets/t9n/layer-list/resources_ja.json +1 -1
  19. package/dist/assets/t9n/layer-list/resources_ko.json +1 -1
  20. package/dist/assets/t9n/layer-list/resources_lt.json +1 -1
  21. package/dist/assets/t9n/layer-list/resources_lv.json +1 -1
  22. package/dist/assets/t9n/layer-list/resources_nb.json +1 -1
  23. package/dist/assets/t9n/layer-list/resources_nl.json +1 -1
  24. package/dist/assets/t9n/layer-list/resources_pl.json +1 -1
  25. package/dist/assets/t9n/layer-list/resources_pt-BR.json +1 -1
  26. package/dist/assets/t9n/layer-list/resources_pt-PT.json +1 -1
  27. package/dist/assets/t9n/layer-list/resources_ro.json +1 -1
  28. package/dist/assets/t9n/layer-list/resources_ru.json +1 -1
  29. package/dist/assets/t9n/layer-list/resources_sk.json +1 -1
  30. package/dist/assets/t9n/layer-list/resources_sl.json +1 -1
  31. package/dist/assets/t9n/layer-list/resources_sr.json +1 -1
  32. package/dist/assets/t9n/layer-list/resources_sv.json +1 -1
  33. package/dist/assets/t9n/layer-list/resources_th.json +1 -1
  34. package/dist/assets/t9n/layer-list/resources_tr.json +1 -1
  35. package/dist/assets/t9n/layer-list/resources_uk.json +1 -1
  36. package/dist/assets/t9n/layer-list/resources_vi.json +1 -1
  37. package/dist/assets/t9n/layer-list/resources_zh-CN.json +1 -1
  38. package/dist/assets/t9n/layer-list/resources_zh-HK.json +1 -1
  39. package/dist/assets/t9n/layer-list/resources_zh-TW.json +1 -1
  40. package/dist/cjs/ExpandToggle-1ff416a1.js +118 -0
  41. package/dist/cjs/FloatingArrow-ba8caba2.js +50 -0
  42. package/dist/cjs/Heading-f1f9e2dd.js +25 -0
  43. package/dist/cjs/Validation-425b2de4.js +20 -0
  44. package/dist/cjs/ar-a2f57db2.js +105 -0
  45. package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
  46. package/dist/cjs/basemap-gallery_7.cjs.entry.js +10 -2
  47. package/dist/cjs/bg-cb903045.js +83 -0
  48. package/dist/cjs/breakpoints-7d21666f.js +17 -0
  49. package/dist/cjs/browser-d12b6cd5.js +25 -0
  50. package/dist/cjs/bs-3690f22d.js +52 -0
  51. package/dist/cjs/buffer-tools_3.cjs.entry.js +4 -4
  52. package/dist/cjs/ca-fec18921.js +72 -0
  53. package/dist/cjs/calcite-accordion-item.cjs.entry.js +4 -4
  54. package/dist/cjs/calcite-accordion.cjs.entry.js +2 -2
  55. package/dist/cjs/calcite-action-bar.cjs.entry.js +7 -7
  56. package/dist/cjs/calcite-action-group.cjs.entry.js +6 -6
  57. package/dist/cjs/calcite-action-menu_3.cjs.entry.js +9 -9
  58. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +10 -10
  59. package/dist/cjs/calcite-action_2.cjs.entry.js +7 -7
  60. package/dist/cjs/calcite-alert_4.cjs.entry.js +12 -12
  61. package/dist/cjs/calcite-avatar_2.cjs.entry.js +2 -2
  62. package/dist/cjs/calcite-block-section.cjs.entry.js +5 -5
  63. package/dist/cjs/calcite-block_5.cjs.entry.js +54 -53
  64. package/dist/cjs/calcite-button.cjs.entry.js +9 -9
  65. package/dist/cjs/calcite-card-group.cjs.entry.js +4 -4
  66. package/dist/cjs/calcite-card.cjs.entry.js +7 -7
  67. package/dist/cjs/calcite-carousel-item.cjs.entry.js +1 -1
  68. package/dist/cjs/calcite-carousel.cjs.entry.js +7 -7
  69. package/dist/cjs/calcite-checkbox.cjs.entry.js +5 -5
  70. package/dist/cjs/calcite-chip-group.cjs.entry.js +4 -4
  71. package/dist/cjs/calcite-chip_2.cjs.entry.js +10 -10
  72. package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +2 -2
  73. package/dist/cjs/calcite-color-picker.cjs.entry.js +7 -7
  74. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +2 -2
  75. package/dist/cjs/calcite-combobox_3.cjs.entry.js +12 -12
  76. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +8 -8
  77. package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +6 -6
  78. package/dist/cjs/calcite-dropdown_2.cjs.entry.js +8 -8
  79. package/dist/cjs/calcite-fab.cjs.entry.js +4 -4
  80. package/dist/cjs/calcite-filter_5.cjs.entry.js +7 -7
  81. package/dist/cjs/calcite-flow_6.cjs.entry.js +19 -24
  82. package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
  83. package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
  84. package/dist/cjs/calcite-input-number.cjs.entry.js +9 -9
  85. package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
  86. package/dist/cjs/calcite-input-time-picker-686f45e7.js +1864 -0
  87. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +12 -12
  88. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +8 -8
  89. package/dist/cjs/calcite-input_2.cjs.entry.js +9 -9
  90. package/dist/cjs/calcite-label.cjs.entry.js +1 -1
  91. package/dist/cjs/calcite-link.cjs.entry.js +4 -4
  92. package/dist/cjs/calcite-list-item-group.cjs.entry.js +3 -3
  93. package/dist/cjs/calcite-menu-item.cjs.entry.js +5 -5
  94. package/dist/cjs/calcite-menu.cjs.entry.js +5 -5
  95. package/dist/cjs/calcite-meter.cjs.entry.js +5 -5
  96. package/dist/cjs/calcite-modal.cjs.entry.js +7 -7
  97. package/dist/cjs/calcite-navigation-logo.cjs.entry.js +4 -4
  98. package/dist/cjs/calcite-navigation.cjs.entry.js +2 -2
  99. package/dist/cjs/calcite-notice.cjs.entry.js +7 -7
  100. package/dist/cjs/calcite-option-group.cjs.entry.js +1 -1
  101. package/dist/cjs/calcite-option_2.cjs.entry.js +7 -7
  102. package/dist/cjs/calcite-pagination.cjs.entry.js +5 -5
  103. package/dist/cjs/calcite-panel_2.cjs.entry.js +9 -9
  104. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +4 -4
  105. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +8 -8
  106. package/dist/cjs/calcite-pick-list.cjs.entry.js +6 -6
  107. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
  108. package/dist/cjs/calcite-radio-button.cjs.entry.js +5 -5
  109. package/dist/cjs/calcite-rating.cjs.entry.js +8 -8
  110. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +7 -7
  111. package/dist/cjs/calcite-sheet.cjs.entry.js +4 -4
  112. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +3 -3
  113. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +15 -15
  114. package/dist/cjs/calcite-sortable-list.cjs.entry.js +4 -4
  115. package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
  116. package/dist/cjs/calcite-stepper-item.cjs.entry.js +8 -8
  117. package/dist/cjs/calcite-stepper.cjs.entry.js +4 -4
  118. package/dist/cjs/calcite-switch.cjs.entry.js +5 -5
  119. package/dist/cjs/calcite-table-cell_2.cjs.entry.js +7 -7
  120. package/dist/cjs/calcite-table-row.cjs.entry.js +3 -3
  121. package/dist/cjs/calcite-table.cjs.entry.js +6 -6
  122. package/dist/cjs/calcite-text-area.cjs.entry.js +9 -9
  123. package/dist/cjs/calcite-tile-group.cjs.entry.js +4 -4
  124. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +3 -3
  125. package/dist/cjs/calcite-tile-select.cjs.entry.js +4 -4
  126. package/dist/cjs/calcite-tile.cjs.entry.js +4 -4
  127. package/dist/cjs/calcite-time-picker.cjs.entry.js +6 -6
  128. package/dist/cjs/calcite-tip-group.cjs.entry.js +1 -1
  129. package/dist/cjs/calcite-tip-manager.cjs.entry.js +5 -5
  130. package/dist/cjs/calcite-tip.cjs.entry.js +6 -6
  131. package/dist/cjs/calcite-tooltip.cjs.entry.js +4 -4
  132. package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -6
  133. package/dist/cjs/card-manager_3.cjs.entry.js +6 -6
  134. package/dist/cjs/common-03600219.js +38 -0
  135. package/dist/cjs/conditionalSlot-349d1b3a.js +54 -0
  136. package/dist/cjs/consent-manager.cjs.entry.js +10 -1031
  137. package/dist/cjs/crowdsource-manager.cjs.entry.js +3 -3
  138. package/dist/cjs/crowdsource-reporter.cjs.entry.js +3 -3
  139. package/dist/cjs/cs-b061b441.js +148 -0
  140. package/dist/cjs/da-e3c379ae.js +67 -0
  141. package/dist/cjs/date-874bf94e.js +261 -0
  142. package/dist/cjs/de-65d2876f.js +92 -0
  143. package/dist/cjs/de-at-16b7b50e.js +91 -0
  144. package/dist/cjs/de-ch-11dcd113.js +91 -0
  145. package/dist/cjs/deduct-calculator.cjs.entry.js +2 -2
  146. package/dist/cjs/downloadUtils-839a1425.js +3165 -0
  147. package/dist/cjs/el-321d43b5.js +67 -0
  148. package/dist/cjs/en-au-c48e6b73.js +67 -0
  149. package/dist/cjs/en-ca-9cc0e8f7.js +66 -0
  150. package/dist/cjs/en-gb-8ced841b.js +70 -0
  151. package/dist/cjs/es-aca5e6b4.js +67 -0
  152. package/dist/cjs/es-mx-b69f0ebb.js +66 -0
  153. package/dist/cjs/et-7e29340d.js +93 -0
  154. package/dist/cjs/feature-comments.cjs.entry.js +1 -1
  155. package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
  156. package/dist/cjs/feature-list.cjs.entry.js +7 -7
  157. package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
  158. package/dist/cjs/fi-f215f4d1.js +116 -0
  159. package/dist/cjs/floating-ui-beb70d3c.js +2295 -0
  160. package/dist/cjs/form-71a108a7.js +381 -0
  161. package/dist/cjs/fr-0daba4be.js +69 -0
  162. package/dist/cjs/fr-ch-76f752e9.js +67 -0
  163. package/dist/cjs/he-32860a76.js +106 -0
  164. package/dist/cjs/helpers-7cee3150.js +940 -0
  165. package/dist/cjs/hi-c5639f76.js +66 -0
  166. package/dist/cjs/hr-eb700fd5.js +81 -0
  167. package/dist/cjs/hu-e30e3d3a.js +89 -0
  168. package/dist/cjs/id-a3e96e5b.js +67 -0
  169. package/dist/cjs/index-97020c9d.js +201 -0
  170. package/dist/cjs/index-ff18be0d.js +1739 -0
  171. package/dist/cjs/index.es-dd4d4842.js +11317 -0
  172. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +8 -8
  173. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +3 -3
  174. package/dist/cjs/instant-apps-create.cjs.entry.js +52 -50
  175. package/dist/cjs/instant-apps-export.cjs.entry.js +6 -6
  176. package/dist/cjs/instant-apps-header.cjs.entry.js +6 -6
  177. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +142 -141
  178. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +6 -6
  179. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +7 -7
  180. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +11 -11
  181. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +6 -6
  182. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +5 -5
  183. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +12 -12
  184. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +8 -8
  185. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +8 -8
  186. package/dist/cjs/instant-apps-measurement.cjs.entry.js +5 -5
  187. package/dist/cjs/instant-apps-popover.cjs.entry.js +5 -5
  188. package/dist/cjs/instant-apps-popovers.cjs.entry.js +2 -2
  189. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +6 -6
  190. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +7 -7
  191. package/dist/cjs/instant-apps-splash.cjs.entry.js +11 -11
  192. package/dist/cjs/interactive-7e5c7df4.js +154 -0
  193. package/dist/cjs/it-acd3cf54.js +67 -0
  194. package/dist/cjs/it-ch-c78435e7.js +67 -0
  195. package/dist/cjs/ja-ede2132a.js +73 -0
  196. package/dist/cjs/ko-fcd96551.js +73 -0
  197. package/dist/cjs/languageSwitcher-1154d55d.js +60 -0
  198. package/dist/cjs/languageUtil-d23251cd.js +69 -0
  199. package/dist/cjs/layout-manager.cjs.entry.js +2 -2
  200. package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
  201. package/dist/cjs/loadModules-4189814e.js +23 -0
  202. package/dist/cjs/loadable-5d538ba2.js +94 -0
  203. package/dist/cjs/loader.cjs.js +2 -2
  204. package/dist/cjs/locale-62f4cef2.js +91 -0
  205. package/dist/cjs/locale-6973733d.js +161 -0
  206. package/dist/cjs/locale-d2a1066a.js +584 -0
  207. package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
  208. package/dist/cjs/lt-a30330ef.js +98 -0
  209. package/dist/cjs/lv-ac3b6560.js +67 -0
  210. package/dist/cjs/map-select-tools_3.cjs.entry.js +14 -12
  211. package/dist/cjs/mapViewUtils-78b14528.js +510 -0
  212. package/dist/cjs/mk-a3053dea.js +67 -0
  213. package/dist/cjs/mode-3478ba36.js +19 -0
  214. package/dist/cjs/nb-7ab0bac1.js +68 -0
  215. package/dist/cjs/nl-7fa437ef.js +68 -0
  216. package/dist/cjs/observers-2a59d471.js +55 -0
  217. package/dist/cjs/openCloseComponent-e752f2a5.js +92 -0
  218. package/dist/cjs/pci-calculator.cjs.entry.js +2 -2
  219. package/dist/cjs/pciUtils-f1adcf64.js +847 -0
  220. package/dist/cjs/pl-ea95b104.js +115 -0
  221. package/dist/cjs/popupUtils-bae7f923.js +111 -0
  222. package/dist/cjs/pt-472083c2.js +68 -0
  223. package/dist/cjs/pt-br-5f18543e.js +66 -0
  224. package/dist/cjs/public-notification.cjs.entry.js +33 -20
  225. package/dist/cjs/publicNotificationStore-691f6f30.js +47 -0
  226. package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
  227. package/dist/cjs/restHelpersGet-afc74285.js +919 -0
  228. package/dist/cjs/ro-e8b3d65c.js +67 -0
  229. package/dist/cjs/ru-becefd01.js +127 -0
  230. package/dist/cjs/share-item.cjs.entry.js +1 -1
  231. package/dist/cjs/shared-list-render-6491aae1.js +365 -0
  232. package/dist/cjs/sk-2f5fd4e0.js +149 -0
  233. package/dist/cjs/sl-3ae17da6.js +169 -0
  234. package/dist/cjs/solution-configuration.cjs.entry.js +6 -6
  235. package/dist/cjs/solution-contents_3.cjs.entry.js +7 -7
  236. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  237. package/dist/cjs/solution-resource-ffe3c333.js +145 -0
  238. package/dist/cjs/solution-store-c8bada29.js +1344 -0
  239. package/dist/cjs/solutions-components.cjs.js +3 -3
  240. package/dist/cjs/spatial-ref.cjs.entry.js +4 -4
  241. package/dist/cjs/sr-7d6b8d1b.js +102 -0
  242. package/dist/cjs/store-manager.cjs.entry.js +1 -1
  243. package/dist/cjs/styles-ef2b1e04.js +13 -0
  244. package/dist/cjs/sv-9c51da5c.js +72 -0
  245. package/dist/cjs/t9n-ef615628.js +100 -0
  246. package/dist/cjs/th-fec0a074.js +66 -0
  247. package/dist/cjs/time-089ab043.js +289 -0
  248. package/dist/cjs/tr-8d7c18a1.js +67 -0
  249. package/dist/cjs/uk-46a61312.js +105 -0
  250. package/dist/cjs/utils-1de4eaa0.js +130 -0
  251. package/dist/cjs/utils-d237cb85.js +65 -0
  252. package/dist/cjs/vi-4114aa90.js +71 -0
  253. package/dist/cjs/zh-cn-30aca6fe.js +95 -0
  254. package/dist/cjs/zh-hk-5971eb67.js +72 -0
  255. package/dist/cjs/zh-tw-5fb5e7a9.js +93 -0
  256. package/dist/collection/collection-manifest.json +1 -1
  257. package/dist/collection/components/consent-manager/consent-manager.js +1 -0
  258. package/dist/collection/components/feature-details/feature-details.js +10 -15
  259. package/dist/collection/components/floor-filter/floor-filter.js +8 -0
  260. package/dist/collection/components/map-select-tools/map-select-tools.js +21 -3
  261. package/dist/collection/components/public-notification/public-notification.js +42 -12
  262. package/dist/collection/components/refine-selection/refine-selection.js +19 -1
  263. package/dist/collection/utils/mapViewUtils.js +2 -0
  264. package/dist/collection/utils/mapViewUtils.ts +2 -0
  265. package/dist/collection/utils/pciUtils.js +1 -1
  266. package/dist/collection/utils/pciUtils.ts +2 -2
  267. package/dist/components/breakpoints.js +5 -5
  268. package/dist/components/button.js +1 -1
  269. package/dist/components/calcite-accordion-item.js +1 -1
  270. package/dist/components/calcite-navigation-logo.js +1 -1
  271. package/dist/components/calcite-stepper-item.js +1 -1
  272. package/dist/components/combobox-item.js +1 -1
  273. package/dist/components/consent-manager.js +7 -1029
  274. package/dist/components/deduct-calculator2.js +1 -1
  275. package/dist/components/dropdown-item.js +1 -1
  276. package/dist/components/feature-details2.js +10 -15
  277. package/dist/components/floor-filter2.js +8 -0
  278. package/dist/components/helpers.js +723 -691
  279. package/dist/components/instant-apps-ckeditor-wrapper2.js +1 -1
  280. package/dist/components/instant-apps-control-panel.js +1 -1
  281. package/dist/components/instant-apps-create.js +47 -45
  282. package/dist/components/instant-apps-export.js +1 -1
  283. package/dist/components/instant-apps-filter-list2.js +24 -24
  284. package/dist/components/instant-apps-header2.js +2 -2
  285. package/dist/components/instant-apps-interactive-legend-classic2.js +139 -138
  286. package/dist/components/instant-apps-interactive-legend-count2.js +1 -1
  287. package/dist/components/instant-apps-interactive-legend-group-legend-element-caption.js +3 -3
  288. package/dist/components/instant-apps-interactive-legend-group-legend-element2.js +2 -2
  289. package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +2 -2
  290. package/dist/components/instant-apps-interactive-legend-layer-element2.js +2 -2
  291. package/dist/components/instant-apps-interactive-legend-legend-element-caption2.js +1 -1
  292. package/dist/components/instant-apps-interactive-legend-legend-element2.js +2 -2
  293. package/dist/components/instant-apps-interactive-legend-relationship2.js +2 -2
  294. package/dist/components/instant-apps-keyboard-shortcuts.js +1 -1
  295. package/dist/components/instant-apps-landing-page.js +10 -10
  296. package/dist/components/instant-apps-language-switcher.js +1 -1
  297. package/dist/components/instant-apps-language-translator-search2.js +1 -1
  298. package/dist/components/instant-apps-language-translator2.js +44 -44
  299. package/dist/components/instant-apps-measurement-tool2.js +2 -2
  300. package/dist/components/instant-apps-measurement.js +1 -1
  301. package/dist/components/instant-apps-popover.js +1 -1
  302. package/dist/components/instant-apps-popovers.js +1 -1
  303. package/dist/components/instant-apps-scoreboard.js +1 -1
  304. package/dist/components/instant-apps-sign-in2.js +3 -3
  305. package/dist/components/instant-apps-social-share2.js +12 -11
  306. package/dist/components/instant-apps-splash.js +7 -7
  307. package/dist/components/languageUtil.js +43 -43
  308. package/dist/components/loadModules2.js +3 -3
  309. package/dist/components/locale3.js +58 -58
  310. package/dist/components/map-select-tools2.js +5 -3
  311. package/dist/components/mapViewUtils.js +2 -0
  312. package/dist/components/mode.js +6 -6
  313. package/dist/components/public-notification.js +26 -12
  314. package/dist/components/refine-selection2.js +3 -1
  315. package/dist/components/restHelpersGet.js +329 -382
  316. package/dist/components/solution-resource.js +107 -107
  317. package/dist/components/solution-store.js +482 -482
  318. package/dist/components/store.js +66 -66
  319. package/dist/components/styles.js +1 -1
  320. package/dist/components/tab-title.js +1 -1
  321. package/dist/components/tree-item.js +1 -1
  322. package/dist/components/utils4.js +80 -80
  323. package/dist/esm/ExpandToggle-12c73c9f.js +110 -0
  324. package/dist/esm/FloatingArrow-5585c8f7.js +48 -0
  325. package/dist/esm/Heading-63031c74.js +22 -0
  326. package/dist/esm/Validation-6712b322.js +18 -0
  327. package/dist/esm/ar-19d4f5c7.js +103 -0
  328. package/dist/esm/arcgis-login.entry.js +1 -1
  329. package/dist/esm/basemap-gallery_7.entry.js +11 -3
  330. package/dist/esm/bg-63235b1a.js +81 -0
  331. package/dist/esm/breakpoints-3afa0fd9.js +15 -0
  332. package/dist/esm/browser-e76c94f7.js +23 -0
  333. package/dist/esm/bs-a1b74ac8.js +50 -0
  334. package/dist/esm/buffer-tools_3.entry.js +5 -5
  335. package/dist/esm/ca-b29c38ed.js +70 -0
  336. package/dist/esm/calcite-accordion-item.entry.js +4 -4
  337. package/dist/esm/calcite-accordion.entry.js +2 -2
  338. package/dist/esm/calcite-action-bar.entry.js +7 -7
  339. package/dist/esm/calcite-action-group.entry.js +6 -6
  340. package/dist/esm/calcite-action-menu_3.entry.js +9 -9
  341. package/dist/esm/calcite-action-pad_2.entry.js +11 -11
  342. package/dist/esm/calcite-action_2.entry.js +7 -7
  343. package/dist/esm/calcite-alert_4.entry.js +13 -13
  344. package/dist/esm/calcite-avatar_2.entry.js +2 -2
  345. package/dist/esm/calcite-block-section.entry.js +5 -5
  346. package/dist/esm/calcite-block_5.entry.js +55 -54
  347. package/dist/esm/calcite-button.entry.js +9 -9
  348. package/dist/esm/calcite-card-group.entry.js +4 -4
  349. package/dist/esm/calcite-card.entry.js +7 -7
  350. package/dist/esm/calcite-carousel-item.entry.js +1 -1
  351. package/dist/esm/calcite-carousel.entry.js +7 -7
  352. package/dist/esm/calcite-checkbox.entry.js +5 -5
  353. package/dist/esm/calcite-chip-group.entry.js +4 -4
  354. package/dist/esm/calcite-chip_2.entry.js +10 -10
  355. package/dist/esm/calcite-color-picker-hex-input_2.entry.js +2 -2
  356. package/dist/esm/calcite-color-picker.entry.js +7 -7
  357. package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
  358. package/dist/esm/calcite-combobox_3.entry.js +12 -12
  359. package/dist/esm/calcite-date-picker-day_3.entry.js +8 -8
  360. package/dist/esm/calcite-dropdown-group_2.entry.js +7 -7
  361. package/dist/esm/calcite-dropdown_2.entry.js +8 -8
  362. package/dist/esm/calcite-fab.entry.js +4 -4
  363. package/dist/esm/calcite-filter_5.entry.js +7 -7
  364. package/dist/esm/calcite-flow_6.entry.js +20 -25
  365. package/dist/esm/calcite-icon.entry.js +2 -2
  366. package/dist/esm/calcite-inline-editable.entry.js +7 -7
  367. package/dist/esm/calcite-input-number.entry.js +9 -9
  368. package/dist/esm/calcite-input-text.entry.js +9 -9
  369. package/dist/esm/calcite-input-time-picker-7d1c6e48.js +1861 -0
  370. package/dist/esm/calcite-input-time-picker.entry.js +12 -12
  371. package/dist/esm/calcite-input-time-zone.entry.js +8 -8
  372. package/dist/esm/calcite-input_2.entry.js +9 -9
  373. package/dist/esm/calcite-label.entry.js +1 -1
  374. package/dist/esm/calcite-link.entry.js +4 -4
  375. package/dist/esm/calcite-list-item-group.entry.js +3 -3
  376. package/dist/esm/calcite-menu-item.entry.js +5 -5
  377. package/dist/esm/calcite-menu.entry.js +5 -5
  378. package/dist/esm/calcite-meter.entry.js +5 -5
  379. package/dist/esm/calcite-modal.entry.js +7 -7
  380. package/dist/esm/calcite-navigation-logo.entry.js +4 -4
  381. package/dist/esm/calcite-navigation.entry.js +2 -2
  382. package/dist/esm/calcite-notice.entry.js +7 -7
  383. package/dist/esm/calcite-option-group.entry.js +1 -1
  384. package/dist/esm/calcite-option_2.entry.js +7 -7
  385. package/dist/esm/calcite-pagination.entry.js +5 -5
  386. package/dist/esm/calcite-panel_2.entry.js +9 -9
  387. package/dist/esm/calcite-pick-list-group.entry.js +4 -4
  388. package/dist/esm/calcite-pick-list-item.entry.js +8 -8
  389. package/dist/esm/calcite-pick-list.entry.js +6 -6
  390. package/dist/esm/calcite-radio-button-group.entry.js +4 -4
  391. package/dist/esm/calcite-radio-button.entry.js +5 -5
  392. package/dist/esm/calcite-rating.entry.js +8 -8
  393. package/dist/esm/calcite-segmented-control_2.entry.js +7 -7
  394. package/dist/esm/calcite-sheet.entry.js +4 -4
  395. package/dist/esm/calcite-shell-center-row.entry.js +3 -3
  396. package/dist/esm/calcite-shell-panel_14.entry.js +16 -16
  397. package/dist/esm/calcite-sortable-list.entry.js +4 -4
  398. package/dist/esm/calcite-split-button.entry.js +4 -4
  399. package/dist/esm/calcite-stepper-item.entry.js +8 -8
  400. package/dist/esm/calcite-stepper.entry.js +4 -4
  401. package/dist/esm/calcite-switch.entry.js +5 -5
  402. package/dist/esm/calcite-table-cell_2.entry.js +7 -7
  403. package/dist/esm/calcite-table-row.entry.js +3 -3
  404. package/dist/esm/calcite-table.entry.js +6 -6
  405. package/dist/esm/calcite-text-area.entry.js +9 -9
  406. package/dist/esm/calcite-tile-group.entry.js +4 -4
  407. package/dist/esm/calcite-tile-select-group.entry.js +3 -3
  408. package/dist/esm/calcite-tile-select.entry.js +4 -4
  409. package/dist/esm/calcite-tile.entry.js +4 -4
  410. package/dist/esm/calcite-time-picker.entry.js +6 -6
  411. package/dist/esm/calcite-tip-group.entry.js +1 -1
  412. package/dist/esm/calcite-tip-manager.entry.js +5 -5
  413. package/dist/esm/calcite-tip.entry.js +6 -6
  414. package/dist/esm/calcite-tooltip.entry.js +4 -4
  415. package/dist/esm/calcite-tree_2.entry.js +6 -6
  416. package/dist/esm/card-manager_3.entry.js +7 -7
  417. package/dist/esm/common-8697fccd.js +36 -0
  418. package/dist/esm/conditionalSlot-56bdb202.js +51 -0
  419. package/dist/esm/consent-manager.entry.js +10 -1031
  420. package/dist/esm/crowdsource-manager.entry.js +4 -4
  421. package/dist/esm/crowdsource-reporter.entry.js +4 -4
  422. package/dist/esm/cs-da7231d6.js +146 -0
  423. package/dist/esm/da-7e105037.js +65 -0
  424. package/dist/esm/date-93ae46b9.js +245 -0
  425. package/dist/esm/de-at-1d9434bb.js +89 -0
  426. package/dist/esm/de-b5646b5d.js +90 -0
  427. package/dist/esm/de-ch-7beada93.js +89 -0
  428. package/dist/esm/deduct-calculator.entry.js +2 -2
  429. package/dist/esm/downloadUtils-97acca92.js +3158 -0
  430. package/dist/esm/el-0f4bf89b.js +65 -0
  431. package/dist/esm/en-au-5c144cef.js +65 -0
  432. package/dist/esm/en-ca-1160089a.js +64 -0
  433. package/dist/esm/en-gb-ae98fc58.js +68 -0
  434. package/dist/esm/es-88e1743a.js +65 -0
  435. package/dist/esm/es-mx-020dfaaa.js +64 -0
  436. package/dist/esm/esri-loader-3080dcc0.js +311 -0
  437. package/dist/esm/et-84f63ef8.js +91 -0
  438. package/dist/esm/feature-comments.entry.js +1 -1
  439. package/dist/esm/feature-form-flow-item.entry.js +1 -1
  440. package/dist/esm/feature-list.entry.js +8 -8
  441. package/dist/esm/features-flow-item.entry.js +1 -1
  442. package/dist/esm/fi-1016ee6e.js +114 -0
  443. package/dist/esm/floating-ui-f086572c.js +2287 -0
  444. package/dist/esm/form-8fd73cbd.js +372 -0
  445. package/dist/esm/fr-0e7ffd73.js +67 -0
  446. package/dist/esm/fr-ch-e18bae2c.js +65 -0
  447. package/dist/esm/he-0cebe004.js +104 -0
  448. package/dist/esm/helpers-7c88b974.js +913 -0
  449. package/dist/esm/hi-cded031d.js +64 -0
  450. package/dist/esm/hr-5643b2ab.js +79 -0
  451. package/dist/esm/html2canvas-fd387d87.js +7845 -0
  452. package/dist/esm/hu-6d605858.js +87 -0
  453. package/dist/esm/id-7d804c46.js +65 -0
  454. package/dist/esm/index-83b693bc.js +1705 -0
  455. package/dist/esm/index-d97f4f15.js +199 -0
  456. package/dist/esm/index.es-ee5497bc.js +11230 -0
  457. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +9 -9
  458. package/dist/esm/instant-apps-control-panel.entry.js +4 -4
  459. package/dist/esm/instant-apps-create.entry.js +53 -51
  460. package/dist/esm/instant-apps-export.entry.js +7 -7
  461. package/dist/esm/instant-apps-header.entry.js +7 -7
  462. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +143 -142
  463. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +7 -7
  464. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +8 -8
  465. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +12 -12
  466. package/dist/esm/instant-apps-interactive-legend.entry.js +7 -7
  467. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +6 -6
  468. package/dist/esm/instant-apps-landing-page.entry.js +12 -12
  469. package/dist/esm/instant-apps-language-switcher.entry.js +9 -9
  470. package/dist/esm/instant-apps-language-translator.entry.js +9 -9
  471. package/dist/esm/instant-apps-measurement.entry.js +6 -6
  472. package/dist/esm/instant-apps-popover.entry.js +6 -6
  473. package/dist/esm/instant-apps-popovers.entry.js +2 -2
  474. package/dist/esm/instant-apps-scoreboard.entry.js +7 -7
  475. package/dist/esm/instant-apps-sign-in.entry.js +8 -8
  476. package/dist/esm/instant-apps-splash.entry.js +12 -12
  477. package/dist/esm/interactive-3b9600a6.js +149 -0
  478. package/dist/esm/it-849be361.js +65 -0
  479. package/dist/esm/it-ch-453fa26d.js +65 -0
  480. package/dist/esm/ja-edff1441.js +71 -0
  481. package/dist/esm/ko-dc103450.js +71 -0
  482. package/dist/esm/languageSwitcher-0f693a04.js +57 -0
  483. package/dist/esm/languageUtil-de206286.js +66 -0
  484. package/dist/esm/layout-manager.entry.js +3 -3
  485. package/dist/esm/list-flow-item.entry.js +1 -1
  486. package/dist/esm/loadModules-43119ac8.js +21 -0
  487. package/dist/esm/loadable-b765a6f6.js +89 -0
  488. package/dist/esm/loader.js +3 -3
  489. package/dist/esm/locale-42369411.js +156 -0
  490. package/dist/esm/locale-70630b7c.js +86 -0
  491. package/dist/esm/locale-a4cbae12.js +571 -0
  492. package/dist/esm/location-flow-item.entry.js +1 -1
  493. package/dist/esm/lt-270cc811.js +96 -0
  494. package/dist/esm/lv-c877043c.js +65 -0
  495. package/dist/esm/map-select-tools_3.entry.js +15 -13
  496. package/dist/esm/mapViewUtils-e3de60cc.js +492 -0
  497. package/dist/esm/mk-a816a702.js +65 -0
  498. package/dist/esm/mode-8c5f5dc9.js +17 -0
  499. package/dist/esm/nb-e9c09b70.js +66 -0
  500. package/dist/esm/nl-56e70f3b.js +66 -0
  501. package/dist/esm/observers-fcb1c07b.js +53 -0
  502. package/dist/esm/openCloseComponent-bbe76c58.js +90 -0
  503. package/dist/esm/pci-calculator.entry.js +2 -2
  504. package/dist/esm/pciUtils-986ddad9.js +844 -0
  505. package/dist/esm/pl-687b559a.js +113 -0
  506. package/dist/esm/popupUtils-98ad70f3.js +109 -0
  507. package/dist/esm/pt-8b05fed2.js +66 -0
  508. package/dist/esm/pt-br-85bdf812.js +64 -0
  509. package/dist/esm/public-notification.entry.js +34 -21
  510. package/dist/esm/publicNotificationStore-08faccff.js +45 -0
  511. package/dist/esm/purify-caded4cd.js +1714 -0
  512. package/dist/esm/refine-results-flow-item.entry.js +1 -1
  513. package/dist/esm/restHelpersGet-dab84057.js +906 -0
  514. package/dist/esm/ro-0975d6bb.js +65 -0
  515. package/dist/esm/ru-24b83704.js +125 -0
  516. package/dist/esm/share-item.entry.js +1 -1
  517. package/dist/esm/shared-list-render-07a20fc5.js +343 -0
  518. package/dist/esm/sk-8179af4d.js +147 -0
  519. package/dist/esm/sl-e6922692.js +167 -0
  520. package/dist/esm/solution-configuration.entry.js +7 -7
  521. package/dist/esm/solution-contents_3.entry.js +8 -8
  522. package/dist/esm/solution-item-icon.entry.js +1 -1
  523. package/dist/esm/solution-resource-a2fff3bf.js +142 -0
  524. package/dist/esm/solution-store-30a19a45.js +1342 -0
  525. package/dist/esm/solutions-components.js +4 -4
  526. package/dist/esm/spatial-ref.entry.js +5 -5
  527. package/dist/esm/sr-1d30e69e.js +100 -0
  528. package/dist/esm/store-manager.entry.js +1 -1
  529. package/dist/esm/styles-b3492d9f.js +11 -0
  530. package/dist/esm/sv-ea3c4b80.js +70 -0
  531. package/dist/esm/t9n-dd2a98fc.js +95 -0
  532. package/dist/esm/th-0f1b35bc.js +64 -0
  533. package/dist/esm/time-bc97792f.js +274 -0
  534. package/dist/esm/tr-eb4e860e.js +65 -0
  535. package/dist/esm/uk-f3ebd952.js +103 -0
  536. package/dist/esm/utils-9bb48951.js +121 -0
  537. package/dist/esm/utils-bf012a3f.js +54 -0
  538. package/dist/esm/vi-872e449d.js +69 -0
  539. package/dist/esm/zh-cn-8c5a3222.js +93 -0
  540. package/dist/esm/zh-hk-247683c2.js +70 -0
  541. package/dist/esm/zh-tw-76a429e9.js +91 -0
  542. package/dist/loader/cdn.js +1 -2
  543. package/dist/loader/index.cjs.js +1 -2
  544. package/dist/loader/index.es2017.js +1 -2
  545. package/dist/loader/index.js +1 -2
  546. package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion-item/accordion-item.css +1 -2
  547. package/dist/node_modules/@esri/calcite-components/dist/collection/components/button/button.css +2 -4
  548. package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item/combobox-item.css +2 -4
  549. package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/dropdown-item.css +4 -8
  550. package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-logo/navigation-logo.css +1 -2
  551. package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.css +1 -2
  552. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-title/tab-title.css +1 -2
  553. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree-item/tree-item.css +1 -4
  554. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +5 -0
  555. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-sign-in/instant-apps-sign-in.css +1 -6
  556. package/dist/solutions-components/p-01ba6099.js +6 -0
  557. package/dist/solutions-components/p-03178c37.js +6 -0
  558. package/dist/solutions-components/p-046acd6b.entry.js +6 -0
  559. package/dist/solutions-components/p-0a053ed7.js +6 -0
  560. package/dist/solutions-components/p-0ab0b1ad.entry.js +11 -0
  561. package/dist/solutions-components/p-0e8ad7d1.entry.js +11 -0
  562. package/dist/solutions-components/p-11094d76.entry.js +29 -0
  563. package/dist/solutions-components/p-11b4cd1a.entry.js +6 -0
  564. package/dist/solutions-components/p-123fcb43.entry.js +6 -0
  565. package/dist/solutions-components/p-12b84e3b.entry.js +36 -0
  566. package/dist/solutions-components/p-132b1138.entry.js +21 -0
  567. package/dist/solutions-components/p-13b513ed.entry.js +11 -0
  568. package/dist/solutions-components/p-15e08453.js +6 -0
  569. package/dist/solutions-components/p-17feaae0.entry.js +17 -0
  570. package/dist/solutions-components/p-1983d6e8.js +6 -0
  571. package/dist/solutions-components/p-1a8f7075.entry.js +6 -0
  572. package/dist/solutions-components/p-1b4149b8.entry.js +11 -0
  573. package/dist/solutions-components/p-1cc7fcd0.entry.js +11 -0
  574. package/dist/solutions-components/p-1ceaab98.entry.js +11 -0
  575. package/dist/solutions-components/p-1d369231.js +21 -0
  576. package/dist/solutions-components/p-1fd9cd5f.entry.js +6 -0
  577. package/dist/solutions-components/p-20a567b0.entry.js +6 -0
  578. package/dist/solutions-components/p-21965dcd.entry.js +11 -0
  579. package/dist/solutions-components/p-2305749d.entry.js +17 -0
  580. package/dist/solutions-components/p-24634430.entry.js +11 -0
  581. package/dist/solutions-components/p-2599399f.entry.js +6 -0
  582. package/dist/solutions-components/p-27c68097.js +11 -0
  583. package/dist/solutions-components/p-27e4dc8a.entry.js +11 -0
  584. package/dist/solutions-components/p-28fd26ed.js +6 -0
  585. package/dist/solutions-components/p-293d376c.js +6 -0
  586. package/dist/solutions-components/p-29c60f3d.entry.js +11 -0
  587. package/dist/solutions-components/p-2a2e4578.entry.js +6 -0
  588. package/dist/solutions-components/p-2a7111ad.entry.js +6 -0
  589. package/dist/solutions-components/p-2a990146.entry.js +6 -0
  590. package/dist/solutions-components/p-2b4e50ed.js +6 -0
  591. package/dist/solutions-components/p-2d99bd61.js +6 -0
  592. package/dist/solutions-components/p-2e401f51.js +6 -0
  593. package/dist/solutions-components/p-2e64dc3b.entry.js +6 -0
  594. package/dist/solutions-components/p-3102119d.entry.js +11 -0
  595. package/dist/solutions-components/p-3137377f.entry.js +11 -0
  596. package/dist/solutions-components/p-34722455.entry.js +6 -0
  597. package/dist/solutions-components/p-36f5dee9.entry.js +6 -0
  598. package/dist/solutions-components/p-37e2754a.js +6 -0
  599. package/dist/solutions-components/p-398ff315.js +11 -0
  600. package/dist/solutions-components/p-3a50fe57.entry.js +17 -0
  601. package/dist/solutions-components/p-3ac77bd5.entry.js +11 -0
  602. package/dist/solutions-components/p-3acc8a71.entry.js +6 -0
  603. package/dist/solutions-components/p-3b1f45b4.entry.js +12 -0
  604. package/dist/solutions-components/p-3b931fc5.entry.js +6 -0
  605. package/dist/solutions-components/p-3eb49703.js +489 -0
  606. package/dist/solutions-components/p-42ea2581.js +6 -0
  607. package/dist/solutions-components/p-44043ef6.entry.js +11 -0
  608. package/dist/solutions-components/p-44bfa87d.js +11 -0
  609. package/dist/solutions-components/p-45db29e2.js +6 -0
  610. package/dist/solutions-components/p-465fbfc2.js +6 -0
  611. package/dist/solutions-components/p-4691b6ad.entry.js +11 -0
  612. package/dist/solutions-components/p-49250010.js +6 -0
  613. package/dist/solutions-components/p-4b80b699.entry.js +6 -0
  614. package/dist/solutions-components/p-4b85c3dc.js +6 -0
  615. package/dist/solutions-components/p-4e92c1ba.entry.js +17 -0
  616. package/dist/solutions-components/p-4fbd1a02.js +6 -0
  617. package/dist/solutions-components/p-50aa0e5a.js +6 -0
  618. package/dist/solutions-components/p-52bcd209.entry.js +6 -0
  619. package/dist/solutions-components/p-52bdaec9.entry.js +6 -0
  620. package/dist/solutions-components/p-5443995c.entry.js +11 -0
  621. package/dist/solutions-components/p-55730588.js +6 -0
  622. package/dist/solutions-components/p-57961ae0.entry.js +6 -0
  623. package/dist/solutions-components/p-57a03a95.js +17 -0
  624. package/dist/solutions-components/p-59f016a1.js +61 -0
  625. package/dist/solutions-components/p-5b2d9899.entry.js +6 -0
  626. package/dist/solutions-components/p-5bd6a732.entry.js +6 -0
  627. package/dist/solutions-components/p-5db64297.entry.js +11 -0
  628. package/dist/solutions-components/p-5eb6219c.js +11 -0
  629. package/dist/solutions-components/p-5ed5626f.entry.js +6 -0
  630. package/dist/solutions-components/p-5ed825c4.js +6 -0
  631. package/dist/solutions-components/p-5f1fdaf9.js +11 -0
  632. package/dist/solutions-components/p-5fb4ddc2.entry.js +6 -0
  633. package/dist/solutions-components/p-61dcdc62.js +6 -0
  634. package/dist/solutions-components/p-622f33ee.entry.js +6 -0
  635. package/dist/solutions-components/p-64ee17c6.entry.js +6 -0
  636. package/dist/solutions-components/p-652140aa.entry.js +6 -0
  637. package/dist/solutions-components/p-6809e050.entry.js +11 -0
  638. package/dist/solutions-components/p-69cfc738.entry.js +6 -0
  639. package/dist/solutions-components/p-69db1e2c.js +6 -0
  640. package/dist/solutions-components/p-6acf6c8f.js +7 -0
  641. package/dist/solutions-components/p-6bf91f6e.js +6 -0
  642. package/dist/solutions-components/p-6c7e34c1.entry.js +47 -0
  643. package/dist/solutions-components/p-6d0404a6.entry.js +6 -0
  644. package/dist/solutions-components/p-6d51c6bf.js +6 -0
  645. package/dist/solutions-components/p-6df9b158.entry.js +11 -0
  646. package/dist/solutions-components/p-716a0878.js +11 -0
  647. package/dist/solutions-components/p-71c212e6.entry.js +12 -0
  648. package/dist/solutions-components/p-71ed8170.entry.js +11 -0
  649. package/dist/solutions-components/p-727b8bf8.entry.js +11 -0
  650. package/dist/solutions-components/p-7388563d.js +6 -0
  651. package/dist/solutions-components/p-747d4b59.js +21 -0
  652. package/dist/solutions-components/p-74dbad36.js +6 -0
  653. package/dist/solutions-components/p-7638ce3d.js +6 -0
  654. package/dist/solutions-components/p-76f51550.entry.js +11 -0
  655. package/dist/solutions-components/p-7773d8ea.js +6 -0
  656. package/dist/solutions-components/p-7822e93b.js +16 -0
  657. package/dist/solutions-components/p-789eb1c2.entry.js +6 -0
  658. package/dist/solutions-components/p-7996f123.js +50 -0
  659. package/dist/solutions-components/p-79c7ff2b.entry.js +24 -0
  660. package/dist/solutions-components/p-7a2f1801.entry.js +6 -0
  661. package/dist/solutions-components/p-7a646a97.js +6 -0
  662. package/dist/solutions-components/p-7afca6b4.js +26 -0
  663. package/dist/solutions-components/p-7dcf6b16.entry.js +6 -0
  664. package/dist/solutions-components/p-7efcfb47.js +6 -0
  665. package/dist/solutions-components/p-7f4bc6d2.entry.js +6 -0
  666. package/dist/solutions-components/p-7fe77355.js +6 -0
  667. package/dist/solutions-components/p-7fea6d8a.js +6 -0
  668. package/dist/solutions-components/p-8008449b.entry.js +16 -0
  669. package/dist/solutions-components/p-813d004f.js +16 -0
  670. package/dist/solutions-components/p-8241b179.entry.js +17 -0
  671. package/dist/solutions-components/p-8413a2ae.entry.js +6 -0
  672. package/dist/solutions-components/p-853d952d.entry.js +6 -0
  673. package/dist/solutions-components/p-89f6ff72.js +6 -0
  674. package/dist/solutions-components/p-8a4f9e8d.entry.js +11 -0
  675. package/dist/solutions-components/p-8babc507.entry.js +6 -0
  676. package/dist/solutions-components/p-8c6d9b5a.js +6 -0
  677. package/dist/solutions-components/p-8dcc5305.entry.js +12 -0
  678. package/dist/solutions-components/p-8ed6ce4d.js +11 -0
  679. package/dist/solutions-components/p-9088fa3a.js +6 -0
  680. package/dist/solutions-components/p-90e3ce7f.js +6 -0
  681. package/dist/solutions-components/p-9271710d.js +6 -0
  682. package/dist/solutions-components/p-9377260c.js +6 -0
  683. package/dist/solutions-components/p-941e55f0.entry.js +6 -0
  684. package/dist/solutions-components/p-946ee345.js +145 -0
  685. package/dist/solutions-components/p-97421bb9.js +6 -0
  686. package/dist/solutions-components/p-9808250d.entry.js +6 -0
  687. package/dist/solutions-components/p-9a7e00b8.js +6 -0
  688. package/dist/solutions-components/p-9b38e6a0.entry.js +6 -0
  689. package/dist/solutions-components/p-9c1fbf73.entry.js +6 -0
  690. package/dist/solutions-components/p-9c6c056a.js +12 -0
  691. package/dist/solutions-components/p-9d82f0e3.entry.js +6 -0
  692. package/dist/solutions-components/p-9dd1049f.entry.js +11 -0
  693. package/dist/solutions-components/p-9e77f5c7.js +11 -0
  694. package/dist/solutions-components/p-9fa1855f.entry.js +6 -0
  695. package/dist/solutions-components/p-a146dcbe.entry.js +6 -0
  696. package/dist/solutions-components/p-a204dcff.entry.js +11 -0
  697. package/dist/solutions-components/p-a2390bee.entry.js +6 -0
  698. package/dist/solutions-components/p-a805c11f.entry.js +6 -0
  699. package/dist/solutions-components/p-a89e61f4.js +11 -0
  700. package/dist/solutions-components/p-aa967a48.entry.js +6 -0
  701. package/dist/solutions-components/p-ab8039f5.js +6 -0
  702. package/dist/solutions-components/p-acef743f.entry.js +11 -0
  703. package/dist/solutions-components/p-ada34f83.js +6 -0
  704. package/dist/solutions-components/p-af1c9389.entry.js +6 -0
  705. package/dist/solutions-components/p-afd2b67b.entry.js +23 -0
  706. package/dist/solutions-components/p-b1a4c444.entry.js +6 -0
  707. package/dist/solutions-components/p-b1abf15c.entry.js +29 -0
  708. package/dist/solutions-components/p-b25e8339.js +6 -0
  709. package/dist/solutions-components/p-b2ba3c28.entry.js +11 -0
  710. package/dist/solutions-components/p-b2f11718.entry.js +11 -0
  711. package/dist/solutions-components/p-b4230022.entry.js +11 -0
  712. package/dist/solutions-components/p-b442aa02.entry.js +17 -0
  713. package/dist/solutions-components/p-b592fbc6.entry.js +11 -0
  714. package/dist/solutions-components/p-b5c88983.js +6 -0
  715. package/dist/solutions-components/p-b64cc55e.js +11 -0
  716. package/dist/solutions-components/p-b77b6c26.js +6 -0
  717. package/dist/solutions-components/p-b7d060b0.entry.js +6 -0
  718. package/dist/solutions-components/p-b8d4452e.entry.js +11 -0
  719. package/dist/solutions-components/p-ba569f8b.js +11 -0
  720. package/dist/solutions-components/p-bac8a4cd.js +6 -0
  721. package/dist/solutions-components/p-bd459df3.entry.js +11 -0
  722. package/dist/solutions-components/p-bf27cd5f.js +6 -0
  723. package/dist/solutions-components/p-c27bb7cf.entry.js +11 -0
  724. package/dist/solutions-components/p-c32d79e2.entry.js +22 -0
  725. package/dist/solutions-components/p-c4160bf7.js +6 -0
  726. package/dist/solutions-components/p-c4ddb206.js +21 -0
  727. package/dist/solutions-components/p-c554abce.entry.js +11 -0
  728. package/dist/solutions-components/p-c63a8225.entry.js +6 -0
  729. package/dist/solutions-components/p-c8935707.entry.js +11 -0
  730. package/dist/solutions-components/p-c96bde1d.js +6 -0
  731. package/dist/solutions-components/p-c9b22653.js +36 -0
  732. package/dist/solutions-components/p-cb6165e9.entry.js +16 -0
  733. package/dist/solutions-components/p-cc07069d.entry.js +11 -0
  734. package/dist/solutions-components/p-cc388a08.js +11 -0
  735. package/dist/solutions-components/p-cc9fdd5f.entry.js +6 -0
  736. package/dist/solutions-components/p-cf0eeb0a.entry.js +6 -0
  737. package/dist/solutions-components/p-d029b513.js +6 -0
  738. package/dist/solutions-components/p-d11d941c.js +6 -0
  739. package/dist/solutions-components/p-d27ab863.js +37 -0
  740. package/dist/solutions-components/p-d31a139f.entry.js +11 -0
  741. package/dist/solutions-components/p-d36fb1b5.entry.js +6 -0
  742. package/dist/solutions-components/p-d6f3fc2c.entry.js +11 -0
  743. package/dist/solutions-components/p-d9e190a4.entry.js +6 -0
  744. package/dist/solutions-components/p-da75df88.entry.js +6 -0
  745. package/dist/solutions-components/p-de279d51.entry.js +6 -0
  746. package/dist/solutions-components/p-de4cf79a.entry.js +11 -0
  747. package/dist/solutions-components/p-df0a1d4b.js +11 -0
  748. package/dist/solutions-components/p-dff78ae3.entry.js +11 -0
  749. package/dist/solutions-components/p-e0277e0b.entry.js +6 -0
  750. package/dist/solutions-components/p-e11a4728.entry.js +6 -0
  751. package/dist/solutions-components/p-e528c321.js +6 -0
  752. package/dist/solutions-components/p-e6c9e6af.js +11 -0
  753. package/dist/solutions-components/p-e6e4071e.entry.js +17 -0
  754. package/dist/solutions-components/p-e7ed87eb.entry.js +11 -0
  755. package/dist/solutions-components/p-e89c05d6.entry.js +6 -0
  756. package/dist/solutions-components/p-ec0c2611.entry.js +11 -0
  757. package/dist/solutions-components/p-ee309d0b.js +6 -0
  758. package/dist/solutions-components/p-ee7f7c24.js +6 -0
  759. package/dist/solutions-components/p-ef54f211.js +6 -0
  760. package/dist/solutions-components/p-ef930f76.entry.js +11 -0
  761. package/dist/solutions-components/p-f163a137.js +6 -0
  762. package/dist/solutions-components/p-f1ae51dc.js +21 -0
  763. package/dist/solutions-components/p-f480b275.js +6 -0
  764. package/dist/solutions-components/p-f539a342.entry.js +11 -0
  765. package/dist/solutions-components/p-f8c45269.entry.js +6 -0
  766. package/dist/solutions-components/p-fa1ceaf9.js +7 -0
  767. package/dist/solutions-components/p-fb7b9bd3.entry.js +6 -0
  768. package/dist/solutions-components/p-fc9a49db.js +6 -0
  769. package/dist/solutions-components/solutions-components.esm.js +1 -1
  770. package/dist/solutions-components/utils/mapViewUtils.ts +2 -0
  771. package/dist/solutions-components/utils/pciUtils.ts +2 -2
  772. package/dist/types/components/floor-filter/floor-filter.d.ts +4 -0
  773. package/dist/types/components/map-select-tools/map-select-tools.d.ts +4 -0
  774. package/dist/types/components/public-notification/public-notification.d.ts +4 -0
  775. package/dist/types/components/refine-selection/refine-selection.d.ts +4 -0
  776. package/dist/types/components.d.ts +24 -0
  777. package/dist/types/stencil-public-runtime.d.ts +3 -8
  778. package/package.json +41 -40
  779. package/dist/cjs/ExpandToggle-249fdc45.js +0 -118
  780. package/dist/cjs/FloatingArrow-28abf7c7.js +0 -50
  781. package/dist/cjs/Heading-1f831135.js +0 -25
  782. package/dist/cjs/Validation-eb9afded.js +0 -20
  783. package/dist/cjs/ar-1013e0a6.js +0 -105
  784. package/dist/cjs/bg-7013971e.js +0 -83
  785. package/dist/cjs/breakpoints-fcd0f2a0.js +0 -17
  786. package/dist/cjs/browser-a96d0614.js +0 -25
  787. package/dist/cjs/bs-97bd61eb.js +0 -52
  788. package/dist/cjs/ca-2a76034c.js +0 -72
  789. package/dist/cjs/calcite-input-time-picker-ebdc5205.js +0 -1864
  790. package/dist/cjs/common-6d2c14c6.js +0 -38
  791. package/dist/cjs/conditionalSlot-93779916.js +0 -54
  792. package/dist/cjs/cs-b189af7b.js +0 -148
  793. package/dist/cjs/da-ebb3b688.js +0 -67
  794. package/dist/cjs/date-456675b2.js +0 -261
  795. package/dist/cjs/de-01ac3f09.js +0 -92
  796. package/dist/cjs/de-at-1437180c.js +0 -91
  797. package/dist/cjs/de-ch-b9a068a3.js +0 -91
  798. package/dist/cjs/downloadUtils-83bf79ba.js +0 -3165
  799. package/dist/cjs/el-7ce5c99d.js +0 -67
  800. package/dist/cjs/en-au-c3ca3a9f.js +0 -67
  801. package/dist/cjs/en-ca-34007cde.js +0 -66
  802. package/dist/cjs/en-gb-2db136a2.js +0 -70
  803. package/dist/cjs/es-f00ce3f0.js +0 -67
  804. package/dist/cjs/es-mx-503b9e1a.js +0 -66
  805. package/dist/cjs/et-556f49fd.js +0 -93
  806. package/dist/cjs/fi-47ef7686.js +0 -116
  807. package/dist/cjs/floating-ui-06d961ad.js +0 -2295
  808. package/dist/cjs/form-a27f759c.js +0 -381
  809. package/dist/cjs/fr-5ba5763a.js +0 -69
  810. package/dist/cjs/fr-ch-9b02cb30.js +0 -67
  811. package/dist/cjs/he-07cce409.js +0 -106
  812. package/dist/cjs/helpers-618a3f7d.js +0 -907
  813. package/dist/cjs/hi-7b691fb6.js +0 -66
  814. package/dist/cjs/hr-ebd3ae66.js +0 -81
  815. package/dist/cjs/hu-b177f75e.js +0 -89
  816. package/dist/cjs/id-ffab63fb.js +0 -67
  817. package/dist/cjs/index-79b35510.js +0 -1682
  818. package/dist/cjs/index-c078ea5f.js +0 -201
  819. package/dist/cjs/index.es-4e523f8b.js +0 -11317
  820. package/dist/cjs/interactive-f08f0369.js +0 -154
  821. package/dist/cjs/it-8646ff2a.js +0 -67
  822. package/dist/cjs/it-ch-6c949267.js +0 -67
  823. package/dist/cjs/ja-cf48eff1.js +0 -73
  824. package/dist/cjs/ko-294e5fae.js +0 -73
  825. package/dist/cjs/languageSwitcher-b9a1485c.js +0 -60
  826. package/dist/cjs/languageUtil-da436671.js +0 -69
  827. package/dist/cjs/loadModules-b28900c2.js +0 -23
  828. package/dist/cjs/loadable-b374ef4b.js +0 -94
  829. package/dist/cjs/locale-3fd260e3.js +0 -91
  830. package/dist/cjs/locale-48d76c59.js +0 -161
  831. package/dist/cjs/locale-5efdf085.js +0 -584
  832. package/dist/cjs/lt-a592829c.js +0 -98
  833. package/dist/cjs/lv-39a6d278.js +0 -67
  834. package/dist/cjs/mapViewUtils-911698e5.js +0 -508
  835. package/dist/cjs/mk-afea13c6.js +0 -67
  836. package/dist/cjs/mode-d6c12b38.js +0 -19
  837. package/dist/cjs/nb-b7cf648c.js +0 -68
  838. package/dist/cjs/nl-72021978.js +0 -68
  839. package/dist/cjs/observers-4fa351d9.js +0 -55
  840. package/dist/cjs/openCloseComponent-6a283ac3.js +0 -92
  841. package/dist/cjs/pciUtils-a238f3a1.js +0 -847
  842. package/dist/cjs/pl-82312f6a.js +0 -115
  843. package/dist/cjs/popupUtils-9ca69f8c.js +0 -111
  844. package/dist/cjs/pt-42d95816.js +0 -68
  845. package/dist/cjs/pt-br-b0b546fc.js +0 -66
  846. package/dist/cjs/publicNotificationStore-3bfbbed3.js +0 -47
  847. package/dist/cjs/restHelpersGet-dbaa28df.js +0 -972
  848. package/dist/cjs/ro-e7948270.js +0 -67
  849. package/dist/cjs/ru-3526e86f.js +0 -127
  850. package/dist/cjs/shared-list-render-b6b23d9e.js +0 -365
  851. package/dist/cjs/sk-0f35900e.js +0 -149
  852. package/dist/cjs/sl-abc6455f.js +0 -169
  853. package/dist/cjs/solution-resource-a577e84f.js +0 -145
  854. package/dist/cjs/solution-store-8ba2ab4b.js +0 -1344
  855. package/dist/cjs/sr-fe2d4b5b.js +0 -102
  856. package/dist/cjs/styles-c9e1375a.js +0 -13
  857. package/dist/cjs/sv-6503d7e1.js +0 -72
  858. package/dist/cjs/t9n-9d199056.js +0 -100
  859. package/dist/cjs/th-9600cb11.js +0 -66
  860. package/dist/cjs/time-d250cbf5.js +0 -289
  861. package/dist/cjs/tr-faae7cc6.js +0 -67
  862. package/dist/cjs/uk-5e626d2b.js +0 -105
  863. package/dist/cjs/utils-e3996e43.js +0 -65
  864. package/dist/cjs/utils-f3710824.js +0 -130
  865. package/dist/cjs/vi-74653398.js +0 -71
  866. package/dist/cjs/zh-cn-b53af030.js +0 -95
  867. package/dist/cjs/zh-hk-96b751d5.js +0 -72
  868. package/dist/cjs/zh-tw-50d1a248.js +0 -93
  869. package/dist/esm/ExpandToggle-73432b0a.js +0 -110
  870. package/dist/esm/FloatingArrow-c3a62ec9.js +0 -48
  871. package/dist/esm/Heading-03b41bf8.js +0 -22
  872. package/dist/esm/Validation-59757032.js +0 -18
  873. package/dist/esm/ar-a0f8473e.js +0 -103
  874. package/dist/esm/bg-4a8059f0.js +0 -81
  875. package/dist/esm/breakpoints-f0f1417d.js +0 -15
  876. package/dist/esm/browser-9897260d.js +0 -23
  877. package/dist/esm/bs-3d9fa4b7.js +0 -50
  878. package/dist/esm/ca-a74ba459.js +0 -70
  879. package/dist/esm/calcite-input-time-picker-2cdb1664.js +0 -1861
  880. package/dist/esm/common-7f72122b.js +0 -36
  881. package/dist/esm/conditionalSlot-16953b0d.js +0 -51
  882. package/dist/esm/cs-cd3323d4.js +0 -146
  883. package/dist/esm/da-eccb7ace.js +0 -65
  884. package/dist/esm/date-562b6fba.js +0 -245
  885. package/dist/esm/de-269c8d62.js +0 -90
  886. package/dist/esm/de-at-742cc453.js +0 -89
  887. package/dist/esm/de-ch-b4ff8ebb.js +0 -89
  888. package/dist/esm/downloadUtils-571a502d.js +0 -3158
  889. package/dist/esm/el-e7e0181b.js +0 -65
  890. package/dist/esm/en-au-0f12d4ae.js +0 -65
  891. package/dist/esm/en-ca-d692f9a4.js +0 -64
  892. package/dist/esm/en-gb-e91744e9.js +0 -68
  893. package/dist/esm/es-867bace7.js +0 -65
  894. package/dist/esm/es-mx-cde6ed6f.js +0 -64
  895. package/dist/esm/esri-loader-2bf735ed.js +0 -311
  896. package/dist/esm/et-a2613f53.js +0 -91
  897. package/dist/esm/fi-07875b7a.js +0 -114
  898. package/dist/esm/floating-ui-9ee6fe17.js +0 -2287
  899. package/dist/esm/form-6d38f4ee.js +0 -372
  900. package/dist/esm/fr-669ba3b9.js +0 -67
  901. package/dist/esm/fr-ch-da569be6.js +0 -65
  902. package/dist/esm/he-6cbfe53b.js +0 -104
  903. package/dist/esm/helpers-61b05164.js +0 -881
  904. package/dist/esm/hi-913d1595.js +0 -64
  905. package/dist/esm/hr-8f581dc9.js +0 -79
  906. package/dist/esm/html2canvas-28c7de60.js +0 -7845
  907. package/dist/esm/hu-02bb4a04.js +0 -87
  908. package/dist/esm/id-306dcc93.js +0 -65
  909. package/dist/esm/index-ba5da2b0.js +0 -1648
  910. package/dist/esm/index-c06194fa.js +0 -199
  911. package/dist/esm/index.es-2f9f04c5.js +0 -11230
  912. package/dist/esm/interactive-52276a00.js +0 -149
  913. package/dist/esm/it-3f0c20a1.js +0 -65
  914. package/dist/esm/it-ch-fe18a6c5.js +0 -65
  915. package/dist/esm/ja-41455a15.js +0 -71
  916. package/dist/esm/ko-88a4fc75.js +0 -71
  917. package/dist/esm/languageSwitcher-d60f03b2.js +0 -57
  918. package/dist/esm/languageUtil-36f8f4ef.js +0 -66
  919. package/dist/esm/loadModules-496086ee.js +0 -21
  920. package/dist/esm/loadable-cca582a3.js +0 -89
  921. package/dist/esm/locale-353c1c36.js +0 -571
  922. package/dist/esm/locale-69333b8e.js +0 -86
  923. package/dist/esm/locale-a490c4f6.js +0 -156
  924. package/dist/esm/lt-5c1c3aa4.js +0 -96
  925. package/dist/esm/lv-acb76551.js +0 -65
  926. package/dist/esm/mapViewUtils-b8deb4ae.js +0 -490
  927. package/dist/esm/mk-b12a886b.js +0 -65
  928. package/dist/esm/mode-66911cb5.js +0 -17
  929. package/dist/esm/nb-50bbf4fa.js +0 -66
  930. package/dist/esm/nl-6dd1488e.js +0 -66
  931. package/dist/esm/observers-19e5cb73.js +0 -53
  932. package/dist/esm/openCloseComponent-04234cea.js +0 -90
  933. package/dist/esm/pciUtils-73d4b6b4.js +0 -844
  934. package/dist/esm/pl-f0ccb3a4.js +0 -113
  935. package/dist/esm/polyfills/core-js.js +0 -11
  936. package/dist/esm/polyfills/dom.js +0 -79
  937. package/dist/esm/polyfills/es5-html-element.js +0 -1
  938. package/dist/esm/polyfills/index.js +0 -34
  939. package/dist/esm/polyfills/system.js +0 -6
  940. package/dist/esm/popupUtils-8efd3cde.js +0 -109
  941. package/dist/esm/pt-3adf4f5e.js +0 -66
  942. package/dist/esm/pt-br-5ad78776.js +0 -64
  943. package/dist/esm/publicNotificationStore-74c7e9f4.js +0 -45
  944. package/dist/esm/purify-dbd0968e.js +0 -1714
  945. package/dist/esm/restHelpersGet-1bd54274.js +0 -959
  946. package/dist/esm/ro-ba24a126.js +0 -65
  947. package/dist/esm/ru-2feffc99.js +0 -125
  948. package/dist/esm/shared-list-render-aaa69039.js +0 -343
  949. package/dist/esm/sk-097e96ba.js +0 -147
  950. package/dist/esm/sl-27721fe2.js +0 -167
  951. package/dist/esm/solution-resource-0d0eb597.js +0 -142
  952. package/dist/esm/solution-store-997e0cb8.js +0 -1342
  953. package/dist/esm/sr-b421770e.js +0 -100
  954. package/dist/esm/styles-367380b5.js +0 -11
  955. package/dist/esm/sv-3bad8e53.js +0 -70
  956. package/dist/esm/t9n-165900a5.js +0 -95
  957. package/dist/esm/th-7cc88e5d.js +0 -64
  958. package/dist/esm/time-d605c462.js +0 -274
  959. package/dist/esm/tr-0a2743e1.js +0 -65
  960. package/dist/esm/uk-6d2572d0.js +0 -103
  961. package/dist/esm/utils-26baa5d3.js +0 -54
  962. package/dist/esm/utils-bd72a603.js +0 -121
  963. package/dist/esm/vi-e8feb97f.js +0 -69
  964. package/dist/esm/zh-cn-fdec5be5.js +0 -93
  965. package/dist/esm/zh-hk-07c60ac2.js +0 -70
  966. package/dist/esm/zh-tw-b1e4174b.js +0 -91
  967. package/dist/solutions-components/p-011892f2.entry.js +0 -11
  968. package/dist/solutions-components/p-022edd7a.entry.js +0 -11
  969. package/dist/solutions-components/p-02651dd3.entry.js +0 -11
  970. package/dist/solutions-components/p-04af53a2.js +0 -6
  971. package/dist/solutions-components/p-053be79f.entry.js +0 -12
  972. package/dist/solutions-components/p-061da95a.entry.js +0 -6
  973. package/dist/solutions-components/p-0669c156.entry.js +0 -17
  974. package/dist/solutions-components/p-06748b7a.entry.js +0 -6
  975. package/dist/solutions-components/p-070b98cd.entry.js +0 -17
  976. package/dist/solutions-components/p-0894d584.js +0 -6
  977. package/dist/solutions-components/p-0971d8ac.entry.js +0 -23
  978. package/dist/solutions-components/p-0a00df9e.entry.js +0 -6
  979. package/dist/solutions-components/p-0bb3b378.entry.js +0 -11
  980. package/dist/solutions-components/p-0c523112.js +0 -6
  981. package/dist/solutions-components/p-0ce36a4a.entry.js +0 -17
  982. package/dist/solutions-components/p-0d17246a.entry.js +0 -6
  983. package/dist/solutions-components/p-0fba267c.entry.js +0 -12
  984. package/dist/solutions-components/p-0fdcc10a.entry.js +0 -6
  985. package/dist/solutions-components/p-105d8256.js +0 -6
  986. package/dist/solutions-components/p-11881a54.js +0 -6
  987. package/dist/solutions-components/p-11e873c7.entry.js +0 -6
  988. package/dist/solutions-components/p-12c80030.js +0 -11
  989. package/dist/solutions-components/p-1506751c.entry.js +0 -11
  990. package/dist/solutions-components/p-17674f66.js +0 -6
  991. package/dist/solutions-components/p-177a139d.entry.js +0 -11
  992. package/dist/solutions-components/p-18b27561.entry.js +0 -11
  993. package/dist/solutions-components/p-19dbfe71.js +0 -6
  994. package/dist/solutions-components/p-1a3f82c5.entry.js +0 -11
  995. package/dist/solutions-components/p-1aa91fbf.entry.js +0 -6
  996. package/dist/solutions-components/p-1ae3b886.entry.js +0 -17
  997. package/dist/solutions-components/p-1e915546.entry.js +0 -47
  998. package/dist/solutions-components/p-229ec6a3.js +0 -11
  999. package/dist/solutions-components/p-238d8710.entry.js +0 -11
  1000. package/dist/solutions-components/p-23d35d76.js +0 -6
  1001. package/dist/solutions-components/p-2445cf51.js +0 -7
  1002. package/dist/solutions-components/p-2455bcb0.js +0 -21
  1003. package/dist/solutions-components/p-246b1648.entry.js +0 -12
  1004. package/dist/solutions-components/p-261880f7.entry.js +0 -11
  1005. package/dist/solutions-components/p-2665663a.entry.js +0 -6
  1006. package/dist/solutions-components/p-26eb1225.entry.js +0 -6
  1007. package/dist/solutions-components/p-2775f82b.js +0 -6
  1008. package/dist/solutions-components/p-27e9ea86.entry.js +0 -6
  1009. package/dist/solutions-components/p-287d2d49.entry.js +0 -11
  1010. package/dist/solutions-components/p-28d2ab1a.js +0 -6
  1011. package/dist/solutions-components/p-28e582b0.entry.js +0 -11
  1012. package/dist/solutions-components/p-2d90ec69.entry.js +0 -11
  1013. package/dist/solutions-components/p-2e625f11.js +0 -11
  1014. package/dist/solutions-components/p-302fccc1.entry.js +0 -6
  1015. package/dist/solutions-components/p-314dc933.entry.js +0 -6
  1016. package/dist/solutions-components/p-31ce0b61.entry.js +0 -11
  1017. package/dist/solutions-components/p-328fbf6d.js +0 -11
  1018. package/dist/solutions-components/p-334e6394.js +0 -37
  1019. package/dist/solutions-components/p-3365a6de.entry.js +0 -11
  1020. package/dist/solutions-components/p-34c5a71c.entry.js +0 -11
  1021. package/dist/solutions-components/p-370283a4.js +0 -6
  1022. package/dist/solutions-components/p-392be4a7.js +0 -6
  1023. package/dist/solutions-components/p-3b7e0d5a.js +0 -26
  1024. package/dist/solutions-components/p-3c24cda7.entry.js +0 -11
  1025. package/dist/solutions-components/p-3ce690d9.js +0 -6
  1026. package/dist/solutions-components/p-3da83eee.entry.js +0 -22
  1027. package/dist/solutions-components/p-3e33078e.entry.js +0 -11
  1028. package/dist/solutions-components/p-400a584e.js +0 -6
  1029. package/dist/solutions-components/p-415d519f.entry.js +0 -6
  1030. package/dist/solutions-components/p-420b8eb1.entry.js +0 -11
  1031. package/dist/solutions-components/p-4370de50.js +0 -6
  1032. package/dist/solutions-components/p-43d1b0bd.js +0 -11
  1033. package/dist/solutions-components/p-4870be89.entry.js +0 -6
  1034. package/dist/solutions-components/p-489be360.entry.js +0 -11
  1035. package/dist/solutions-components/p-490e4875.entry.js +0 -11
  1036. package/dist/solutions-components/p-4ac019d3.js +0 -6
  1037. package/dist/solutions-components/p-4ba6f8f0.js +0 -6
  1038. package/dist/solutions-components/p-4ca83bea.js +0 -6
  1039. package/dist/solutions-components/p-4e07c030.entry.js +0 -11
  1040. package/dist/solutions-components/p-502172da.entry.js +0 -17
  1041. package/dist/solutions-components/p-50741707.entry.js +0 -6
  1042. package/dist/solutions-components/p-51b5ac05.entry.js +0 -6
  1043. package/dist/solutions-components/p-51d5532f.entry.js +0 -6
  1044. package/dist/solutions-components/p-52dba022.js +0 -489
  1045. package/dist/solutions-components/p-530b73ce.js +0 -66
  1046. package/dist/solutions-components/p-533a9cca.entry.js +0 -11
  1047. package/dist/solutions-components/p-570a3777.js +0 -6
  1048. package/dist/solutions-components/p-57eeed77.js +0 -61
  1049. package/dist/solutions-components/p-5862de8d.entry.js +0 -6
  1050. package/dist/solutions-components/p-591175a6.js +0 -6
  1051. package/dist/solutions-components/p-5974ba05.js +0 -16
  1052. package/dist/solutions-components/p-5b654493.entry.js +0 -6
  1053. package/dist/solutions-components/p-5c5e3745.entry.js +0 -6
  1054. package/dist/solutions-components/p-5f873153.js +0 -6
  1055. package/dist/solutions-components/p-6085ab9c.js +0 -11
  1056. package/dist/solutions-components/p-614ebce7.js +0 -6
  1057. package/dist/solutions-components/p-616c3c0c.entry.js +0 -6
  1058. package/dist/solutions-components/p-628874a6.entry.js +0 -6
  1059. package/dist/solutions-components/p-62c34f96.entry.js +0 -11
  1060. package/dist/solutions-components/p-636c0ebf.entry.js +0 -29
  1061. package/dist/solutions-components/p-63e6cab2.entry.js +0 -11
  1062. package/dist/solutions-components/p-680a43bb.entry.js +0 -6
  1063. package/dist/solutions-components/p-6bdafe3f.js +0 -6
  1064. package/dist/solutions-components/p-6d753a3d.js +0 -7
  1065. package/dist/solutions-components/p-6e260ca3.entry.js +0 -6
  1066. package/dist/solutions-components/p-70ec2b39.entry.js +0 -6
  1067. package/dist/solutions-components/p-7348c869.entry.js +0 -6
  1068. package/dist/solutions-components/p-74a283fb.entry.js +0 -11
  1069. package/dist/solutions-components/p-76d70d3e.js +0 -6
  1070. package/dist/solutions-components/p-77cd573b.entry.js +0 -6
  1071. package/dist/solutions-components/p-7883b885.entry.js +0 -17
  1072. package/dist/solutions-components/p-790ab21b.js +0 -6
  1073. package/dist/solutions-components/p-798d20c2.entry.js +0 -11
  1074. package/dist/solutions-components/p-79e2e203.entry.js +0 -6
  1075. package/dist/solutions-components/p-7b13fafe.entry.js +0 -6
  1076. package/dist/solutions-components/p-7b17e929.entry.js +0 -6
  1077. package/dist/solutions-components/p-7fb072e0.entry.js +0 -11
  1078. package/dist/solutions-components/p-80b3eb6b.entry.js +0 -6
  1079. package/dist/solutions-components/p-80e8dac5.entry.js +0 -6
  1080. package/dist/solutions-components/p-814ad17b.js +0 -6
  1081. package/dist/solutions-components/p-820d8935.js +0 -11
  1082. package/dist/solutions-components/p-8294d644.js +0 -21
  1083. package/dist/solutions-components/p-82e085d0.js +0 -6
  1084. package/dist/solutions-components/p-84913712.js +0 -6
  1085. package/dist/solutions-components/p-865a9a2b.js +0 -6
  1086. package/dist/solutions-components/p-8674e740.js +0 -11
  1087. package/dist/solutions-components/p-86a8cf0e.js +0 -11
  1088. package/dist/solutions-components/p-8959c8fb.entry.js +0 -6
  1089. package/dist/solutions-components/p-896c9644.js +0 -36
  1090. package/dist/solutions-components/p-89a0889f.js +0 -21
  1091. package/dist/solutions-components/p-8f760a96.js +0 -11
  1092. package/dist/solutions-components/p-8fd36ce2.js +0 -6
  1093. package/dist/solutions-components/p-92eadd14.entry.js +0 -6
  1094. package/dist/solutions-components/p-937f5a14.js +0 -6
  1095. package/dist/solutions-components/p-96c901b4.entry.js +0 -6
  1096. package/dist/solutions-components/p-96e9c88b.js +0 -6
  1097. package/dist/solutions-components/p-972fd6e2.js +0 -11
  1098. package/dist/solutions-components/p-996a9b86.js +0 -6
  1099. package/dist/solutions-components/p-997ed04c.js +0 -6
  1100. package/dist/solutions-components/p-9cfc59dd.entry.js +0 -6
  1101. package/dist/solutions-components/p-9d495d2d.entry.js +0 -6
  1102. package/dist/solutions-components/p-9db9645e.js +0 -12
  1103. package/dist/solutions-components/p-9f11bcc0.js +0 -6
  1104. package/dist/solutions-components/p-9f27fdfb.js +0 -6
  1105. package/dist/solutions-components/p-9f635891.js +0 -17
  1106. package/dist/solutions-components/p-9fdd8168.entry.js +0 -11
  1107. package/dist/solutions-components/p-a008937e.entry.js +0 -6
  1108. package/dist/solutions-components/p-a24e5541.js +0 -6
  1109. package/dist/solutions-components/p-a25bbcc1.js +0 -11
  1110. package/dist/solutions-components/p-a520fedd.js +0 -6
  1111. package/dist/solutions-components/p-a5f1bbe9.js +0 -6
  1112. package/dist/solutions-components/p-a87405cb.entry.js +0 -11
  1113. package/dist/solutions-components/p-abd5ccf9.entry.js +0 -11
  1114. package/dist/solutions-components/p-ac77e72f.js +0 -6
  1115. package/dist/solutions-components/p-ad5e5e4d.entry.js +0 -11
  1116. package/dist/solutions-components/p-b0a4644b.js +0 -6
  1117. package/dist/solutions-components/p-b5bfe190.js +0 -16
  1118. package/dist/solutions-components/p-b5e4046b.entry.js +0 -6
  1119. package/dist/solutions-components/p-b965c059.entry.js +0 -16
  1120. package/dist/solutions-components/p-bb2e669d.entry.js +0 -6
  1121. package/dist/solutions-components/p-bb53e532.js +0 -6
  1122. package/dist/solutions-components/p-bc82830a.js +0 -6
  1123. package/dist/solutions-components/p-bda54b12.entry.js +0 -6
  1124. package/dist/solutions-components/p-bdcf99c0.js +0 -6
  1125. package/dist/solutions-components/p-bfd3d428.js +0 -11
  1126. package/dist/solutions-components/p-c02351ae.entry.js +0 -11
  1127. package/dist/solutions-components/p-c0c5c7a9.js +0 -6
  1128. package/dist/solutions-components/p-c1222f6b.entry.js +0 -6
  1129. package/dist/solutions-components/p-c151a297.entry.js +0 -6
  1130. package/dist/solutions-components/p-c4a44f66.js +0 -6
  1131. package/dist/solutions-components/p-c512fcfb.entry.js +0 -6
  1132. package/dist/solutions-components/p-c5becad1.entry.js +0 -6
  1133. package/dist/solutions-components/p-c6be0487.entry.js +0 -6
  1134. package/dist/solutions-components/p-c757c37b.js +0 -6
  1135. package/dist/solutions-components/p-c791e836.entry.js +0 -6
  1136. package/dist/solutions-components/p-c7f0e7a8.entry.js +0 -6
  1137. package/dist/solutions-components/p-c8260cf0.js +0 -145
  1138. package/dist/solutions-components/p-c9653aec.js +0 -6
  1139. package/dist/solutions-components/p-ca37a0ef.entry.js +0 -16
  1140. package/dist/solutions-components/p-cb20ba34.entry.js +0 -21
  1141. package/dist/solutions-components/p-cce71e60.entry.js +0 -11
  1142. package/dist/solutions-components/p-cd190ff9.js +0 -6
  1143. package/dist/solutions-components/p-cd91c3e7.entry.js +0 -29
  1144. package/dist/solutions-components/p-ceba37d3.entry.js +0 -11
  1145. package/dist/solutions-components/p-cf5d4ed0.entry.js +0 -11
  1146. package/dist/solutions-components/p-d0e73f95.entry.js +0 -11
  1147. package/dist/solutions-components/p-d0ebefa0.entry.js +0 -11
  1148. package/dist/solutions-components/p-d893cddf.entry.js +0 -11
  1149. package/dist/solutions-components/p-d8a15e32.entry.js +0 -6
  1150. package/dist/solutions-components/p-d8da6406.entry.js +0 -6
  1151. package/dist/solutions-components/p-da6b3c8a.entry.js +0 -6
  1152. package/dist/solutions-components/p-dcc5f283.entry.js +0 -6
  1153. package/dist/solutions-components/p-dd3e8920.entry.js +0 -6
  1154. package/dist/solutions-components/p-deb3adb8.js +0 -6
  1155. package/dist/solutions-components/p-e2400b0d.entry.js +0 -6
  1156. package/dist/solutions-components/p-e2c898f9.entry.js +0 -24
  1157. package/dist/solutions-components/p-e2efd3ac.entry.js +0 -11
  1158. package/dist/solutions-components/p-e64a3cc4.entry.js +0 -11
  1159. package/dist/solutions-components/p-e96d0b39.js +0 -6
  1160. package/dist/solutions-components/p-ead4a5f5.entry.js +0 -6
  1161. package/dist/solutions-components/p-ec843a3e.js +0 -6
  1162. package/dist/solutions-components/p-eda6994e.entry.js +0 -6
  1163. package/dist/solutions-components/p-edb1e0b4.entry.js +0 -17
  1164. package/dist/solutions-components/p-edcc1f23.entry.js +0 -36
  1165. package/dist/solutions-components/p-ee81a7c3.js +0 -6
  1166. package/dist/solutions-components/p-eeaed243.js +0 -11
  1167. package/dist/solutions-components/p-f1822d63.js +0 -6
  1168. package/dist/solutions-components/p-f22a4439.js +0 -21
  1169. package/dist/solutions-components/p-f2e68b62.entry.js +0 -6
  1170. package/dist/solutions-components/p-f4456214.js +0 -6
  1171. package/dist/solutions-components/p-f7b791a8.entry.js +0 -6
  1172. package/dist/solutions-components/p-f9475704.js +0 -6
  1173. package/dist/solutions-components/p-fac36b42.entry.js +0 -6
  1174. package/dist/solutions-components/p-fc6313ba.entry.js +0 -11
  1175. package/dist/solutions-components/p-fc79eaaf.js +0 -6
  1176. package/dist/solutions-components/p-fcb11407.entry.js +0 -11
  1177. package/dist/solutions-components/p-fd28754c.entry.js +0 -6
  1178. package/dist/solutions-components/p-fd6f2ba3.js +0 -6
  1179. package/dist/solutions-components/p-ff8f475a.entry.js +0 -11
  1180. /package/dist/solutions-components/{p-abea8ef5.js → p-04674a1e.js} +0 -0
  1181. /package/dist/solutions-components/{p-5aaa05ef.js → p-996c1ac5.js} +0 -0
  1182. /package/dist/solutions-components/{p-eeee7c7a.js → p-a42ff7fe.js} +0 -0
  1183. /package/dist/solutions-components/{p-c96eb2db.js → p-a9a72626.js} +0 -0
@@ -4,801 +4,833 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { l as loadModules } from './loadModules2.js';
7
- import { g as getMergedEffect, s as store, i as interactiveLegendState } from './store.js';
7
+ import { g as getMergedEffect, i as interactiveLegendState, s as store } from './store.js';
8
8
 
9
9
  // data handling
10
10
  function activeLayerInfoCallback(intLegendDataPromises, legendViewModel, reactiveUtils) {
11
- return (activeLayerInfo) => {
12
- var _a;
13
- const aclType = (_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _a === void 0 ? void 0 : _a.type;
14
- if (aclType === 'feature' || aclType === 'group') {
15
- // Step 3a. Push to promises array since there are promises within function
16
- const intLegendDataPromise = createInteractiveLegendDataForLayer(legendViewModel, activeLayerInfo, reactiveUtils).then(res => res);
17
- if (intLegendDataPromise) {
18
- intLegendDataPromises.push(intLegendDataPromise);
19
- }
20
- const handleALIChild = (aliChild) => {
21
- const intLegendDataPromise = createInteractiveLegendDataForLayer(legendViewModel, aliChild, reactiveUtils).then(res => res);
22
- if (intLegendDataPromise) {
23
- intLegendDataPromises.push(intLegendDataPromise);
24
- }
25
- };
26
- // Take ACLs children into account
27
- activeLayerInfo.children.forEach(child => {
11
+ return (activeLayerInfo) => {
28
12
  var _a;
29
- handleALIChild(child);
30
- if (((_a = child === null || child === void 0 ? void 0 : child.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
31
- child.children.forEach(innerALIChild => {
32
- var _a;
33
- handleALIChild(innerALIChild);
34
- if (((_a = innerALIChild === null || innerALIChild === void 0 ? void 0 : innerALIChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
35
- innerALIChild.children.forEach(innerInnerALIChild => {
36
- handleALIChild(innerInnerALIChild);
37
- });
13
+ const aclType = (_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _a === void 0 ? void 0 : _a.type;
14
+ if (aclType === 'feature' || aclType === 'group') {
15
+ // Step 3a. Push to promises array since there are promises within function
16
+ const intLegendDataPromise = createInteractiveLegendDataForLayer(legendViewModel, activeLayerInfo, reactiveUtils).then(res => res);
17
+ if (intLegendDataPromise) {
18
+ intLegendDataPromises.push(intLegendDataPromise);
38
19
  }
39
- });
20
+ const handleALIChild = (aliChild) => {
21
+ const intLegendDataPromise = createInteractiveLegendDataForLayer(legendViewModel, aliChild, reactiveUtils).then(res => res);
22
+ if (intLegendDataPromise) {
23
+ intLegendDataPromises.push(intLegendDataPromise);
24
+ }
25
+ };
26
+ // Take ACLs children into account
27
+ activeLayerInfo.children.forEach(child => {
28
+ var _a;
29
+ handleALIChild(child);
30
+ if (((_a = child === null || child === void 0 ? void 0 : child.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
31
+ child.children.forEach(innerALIChild => {
32
+ var _a;
33
+ handleALIChild(innerALIChild);
34
+ if (((_a = innerALIChild === null || innerALIChild === void 0 ? void 0 : innerALIChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
35
+ innerALIChild.children.forEach(innerInnerALIChild => {
36
+ handleALIChild(innerInnerALIChild);
37
+ });
38
+ }
39
+ });
40
+ }
41
+ });
40
42
  }
41
- });
42
- }
43
- };
43
+ };
44
44
  }
45
45
  async function createInteractiveLegendDataForLayer(legendViewModel, activeLayerInfo, reactiveUtils) {
46
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
47
- try {
48
- // Get first Legend Element from Active LayerInfo - only first legend element will be interactive
49
- const isGroup = ((_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _a === void 0 ? void 0 : _a.type) === 'group';
50
- const someVisible = (_c = (_b = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _b === void 0 ? void 0 : _b.layers) === null || _c === void 0 ? void 0 : _c.some(layer => layer.visible);
51
- const noLegendEnabled = (_e = (_d = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _d === void 0 ? void 0 : _d.layers) === null || _e === void 0 ? void 0 : _e.every((layer) => !(layer === null || layer === void 0 ? void 0 : layer.legendEnabled));
52
- await reactiveUtils.whenOnce(() => (legendViewModel === null || legendViewModel === void 0 ? void 0 : legendViewModel.state) === 'ready');
53
- if (!isGroup || (isGroup && someVisible)) {
54
- if (isGroup && noLegendEnabled) {
55
- await reactiveUtils.whenOnce(() => { var _a; return (_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _a === void 0 ? void 0 : _a.loaded; });
56
- }
57
- else {
58
- await reactiveUtils.whenOnce(() => activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.ready);
59
- }
60
- }
61
- else {
62
- await reactiveUtils.whenOnce(() => activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements);
63
- }
64
- const legendElement = (_f = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements) === null || _f === void 0 ? void 0 : _f[0];
65
- // Each active layer info will have it's own property in object - we'll use the layer ID to categorize each layer
66
- // Hash map for each layers interactive categories i.e. Global power plants, Hydro, Solar, Wind, etc.
67
- const categories = new Map();
68
- // Layer to access field from it's renderer to be used in expression
69
- const fLayer = activeLayerInfo.layer;
70
- // Get Feature Layer View to query
71
- const fLayerView = await legendViewModel.view.whenLayerView(fLayer);
72
- await reactiveUtils.whenOnce(() => (fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.updating) === false);
73
- const field = (_g = fLayer.renderer) === null || _g === void 0 ? void 0 : _g.field;
74
- if (legendElement !== undefined) {
75
- (_h = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _h === void 0 ? void 0 : _h.forEach(legendElementInfo => {
76
- var _a;
77
- const isNestedUniqueSymbol = legendElementInfo.type === 'symbol-table';
78
- if (isNestedUniqueSymbol) {
79
- const nestedInfos = [];
80
- legendElementInfo.infos.forEach(nestedUniqueSymbolInfo => {
81
- const category = {
82
- count: null,
83
- selected: false,
84
- legendElementInfo: nestedUniqueSymbolInfo,
85
- };
86
- nestedInfos.push(category);
87
- });
88
- const category = {
89
- count: null,
90
- selected: false,
91
- legendElementInfo,
92
- nestedInfos,
93
- };
94
- categories.set(legendElementInfo.title, category);
46
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
47
+ try {
48
+ // Get first Legend Element from Active LayerInfo - only first legend element will be interactive
49
+ const isGroup = ((_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _a === void 0 ? void 0 : _a.type) === 'group';
50
+ const someVisible = (_c = (_b = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _b === void 0 ? void 0 : _b.layers) === null || _c === void 0 ? void 0 : _c.some(layer => layer.visible);
51
+ const noLegendEnabled = (_e = (_d = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _d === void 0 ? void 0 : _d.layers) === null || _e === void 0 ? void 0 : _e.every((layer) => !(layer === null || layer === void 0 ? void 0 : layer.legendEnabled));
52
+ await reactiveUtils.whenOnce(() => (legendViewModel === null || legendViewModel === void 0 ? void 0 : legendViewModel.state) === 'ready');
53
+ if (!isGroup || (isGroup && someVisible)) {
54
+ if (isGroup && noLegendEnabled) {
55
+ await reactiveUtils.whenOnce(() => { var _a; return (_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _a === void 0 ? void 0 : _a.loaded; });
56
+ }
57
+ else {
58
+ await reactiveUtils.whenOnce(() => activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.ready);
59
+ }
95
60
  }
96
61
  else {
97
- const category = {
98
- count: null,
99
- selected: false,
100
- legendElementInfo,
101
- };
102
- categories.set((_a = legendElementInfo.label) !== null && _a !== void 0 ? _a : fLayer.id, category);
62
+ await reactiveUtils.whenOnce(() => activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements);
103
63
  }
104
- });
105
- }
106
- // Generated expression to apply to layer filters
107
- const queryExpressions = [];
108
- // Total feature count
109
- return Promise.resolve({
110
- activeLayerInfo,
111
- title: (_j = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.layer) === null || _j === void 0 ? void 0 : _j.title,
112
- categories,
113
- field,
114
- queryExpressions,
115
- totalCount: null,
116
- fLayerView,
117
- legendElement,
118
- });
119
- }
120
- catch (_k) {
121
- return Promise.resolve(null);
122
- }
64
+ const legendElement = (_f = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements) === null || _f === void 0 ? void 0 : _f[0];
65
+ // Each active layer info will have it's own property in object - we'll use the layer ID to categorize each layer
66
+ // Hash map for each layers interactive categories i.e. Global power plants, Hydro, Solar, Wind, etc.
67
+ const categories = new Map();
68
+ // Layer to access field from it's renderer to be used in expression
69
+ const fLayer = activeLayerInfo.layer;
70
+ // Get Feature Layer View to query
71
+ const fLayerView = await legendViewModel.view.whenLayerView(fLayer);
72
+ await reactiveUtils.whenOnce(() => (fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.updating) === false);
73
+ const field = (_g = fLayer.renderer) === null || _g === void 0 ? void 0 : _g.field;
74
+ if (legendElement !== undefined) {
75
+ (_h = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _h === void 0 ? void 0 : _h.forEach(legendElementInfo => {
76
+ var _a;
77
+ const isNestedUniqueSymbol = legendElementInfo.type === 'symbol-table';
78
+ if (isNestedUniqueSymbol) {
79
+ const nestedInfos = [];
80
+ legendElementInfo.infos.forEach(nestedUniqueSymbolInfo => {
81
+ const category = {
82
+ count: null,
83
+ selected: false,
84
+ legendElementInfo: nestedUniqueSymbolInfo,
85
+ };
86
+ nestedInfos.push(category);
87
+ });
88
+ const category = {
89
+ count: null,
90
+ selected: false,
91
+ legendElementInfo,
92
+ nestedInfos,
93
+ };
94
+ categories.set(legendElementInfo.title, category);
95
+ }
96
+ else {
97
+ const category = {
98
+ count: null,
99
+ selected: false,
100
+ legendElementInfo,
101
+ };
102
+ categories.set((_a = legendElementInfo.label) !== null && _a !== void 0 ? _a : fLayer.id, category);
103
+ }
104
+ });
105
+ }
106
+ // Generated expression to apply to layer filters
107
+ const queryExpressions = [];
108
+ // Total feature count
109
+ return Promise.resolve({
110
+ activeLayerInfo,
111
+ title: (_j = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.layer) === null || _j === void 0 ? void 0 : _j.title,
112
+ categories,
113
+ field,
114
+ queryExpressions,
115
+ totalCount: null,
116
+ fLayerView,
117
+ legendElement,
118
+ });
119
+ }
120
+ catch (_k) {
121
+ return Promise.resolve(null);
122
+ }
123
123
  }
124
124
  async function generateData(legendViewModel, reactiveUtils) {
125
- // Create data object to return
126
- const data = {};
127
- // Set up Interactive Legend Data for each layer using it's corresponding active layer info
128
- // Array of promises - needed due to queryFeatureCount and whenLayerView calls
129
- const intLegendDataPromises = [];
130
- // Iterate through each Active Layer Info and create data bucket for each layer
131
- legendViewModel.activeLayerInfos.forEach(activeLayerInfoCallback(intLegendDataPromises, legendViewModel, reactiveUtils));
132
- // Store resolved data
133
- try {
134
- const intLegendLayerDataObjs = await Promise.all(intLegendDataPromises);
135
- intLegendLayerDataObjs.forEach(intLegendLayerDataObj => { var _a, _b; return (data[(_b = (_a = intLegendLayerDataObj === null || intLegendLayerDataObj === void 0 ? void 0 : intLegendLayerDataObj.activeLayerInfo) === null || _a === void 0 ? void 0 : _a.layer) === null || _b === void 0 ? void 0 : _b.id] = intLegendLayerDataObj); });
136
- return Promise.resolve(data);
137
- }
138
- catch (err) {
139
- return Promise.reject(null);
140
- }
125
+ // Create data object to return
126
+ const data = {};
127
+ // Set up Interactive Legend Data for each layer using it's corresponding active layer info
128
+ // Array of promises - needed due to queryFeatureCount and whenLayerView calls
129
+ const intLegendDataPromises = [];
130
+ // Iterate through each Active Layer Info and create data bucket for each layer
131
+ legendViewModel.activeLayerInfos.forEach(activeLayerInfoCallback(intLegendDataPromises, legendViewModel, reactiveUtils));
132
+ // Store resolved data
133
+ try {
134
+ const intLegendLayerDataObjs = await Promise.all(intLegendDataPromises);
135
+ intLegendLayerDataObjs.forEach(intLegendLayerDataObj => { var _a, _b; return (data[(_b = (_a = intLegendLayerDataObj === null || intLegendLayerDataObj === void 0 ? void 0 : intLegendLayerDataObj.activeLayerInfo) === null || _a === void 0 ? void 0 : _a.layer) === null || _b === void 0 ? void 0 : _b.id] = intLegendLayerDataObj); });
136
+ return Promise.resolve(data);
137
+ }
138
+ catch (err) {
139
+ return Promise.reject(null);
140
+ }
141
141
  }
142
142
  // data getters
143
143
  function getCategoriesArray(categories) {
144
- return Array.from(categories).map((category) => category[1]);
144
+ return Array.from(categories).map((category) => category[1]);
145
145
  }
146
146
  function getCategoryData(data, layer, elementInfo, parentLegendElementInfoData, infoIndex) {
147
- var _a, _b, _c;
148
- return parentLegendElementInfoData ? (_a = parentLegendElementInfoData === null || parentLegendElementInfoData === void 0 ? void 0 : parentLegendElementInfoData.nestedInfos) === null || _a === void 0 ? void 0 : _a[infoIndex] : (_b = data === null || data === void 0 ? void 0 : data.categories) === null || _b === void 0 ? void 0 : _b.get((_c = elementInfo === null || elementInfo === void 0 ? void 0 : elementInfo.label) !== null && _c !== void 0 ? _c : layer === null || layer === void 0 ? void 0 : layer.id);
147
+ var _a, _b, _c;
148
+ return parentLegendElementInfoData ? (_a = parentLegendElementInfoData === null || parentLegendElementInfoData === void 0 ? void 0 : parentLegendElementInfoData.nestedInfos) === null || _a === void 0 ? void 0 : _a[infoIndex] : (_b = data === null || data === void 0 ? void 0 : data.categories) === null || _b === void 0 ? void 0 : _b.get((_c = elementInfo === null || elementInfo === void 0 ? void 0 : elementInfo.label) !== null && _c !== void 0 ? _c : layer === null || layer === void 0 ? void 0 : layer.id);
149
149
  }
150
150
  function getIntLegendLayerData(fLayer) {
151
- var _a;
152
- return (_a = interactiveLegendState === null || interactiveLegendState === void 0 ? void 0 : interactiveLegendState.data) === null || _a === void 0 ? void 0 : _a[fLayer === null || fLayer === void 0 ? void 0 : fLayer.id];
151
+ var _a;
152
+ return (_a = interactiveLegendState === null || interactiveLegendState === void 0 ? void 0 : interactiveLegendState.data) === null || _a === void 0 ? void 0 : _a[fLayer === null || fLayer === void 0 ? void 0 : fLayer.id];
153
153
  }
154
154
  // filtering
155
155
  async function handleFilter(data, info, infoIndex, filterMode, parentLegendElementInfo) {
156
- var _a, _b;
157
- const [FeatureFilter, FeatureEffect] = await loadModules(['esri/layers/support/FeatureFilter', 'esri/layers/support/FeatureEffect']);
158
- const { queryExpressions, fLayerView } = data;
159
- generateQueryExpressions(data, info, infoIndex, parentLegendElementInfo);
160
- const sep = queryExpressions.every(expression => expression && expression.includes('<>')) ? ' AND ' : ' OR ';
161
- const where = queryExpressions.join(sep);
162
- const timeExtent = (_b = (_a = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.filter) === null || _a === void 0 ? void 0 : _a.timeExtent) !== null && _b !== void 0 ? _b : null;
163
- const { type } = filterMode;
164
- if (type === 'filter') {
165
- fLayerView.filter = new FeatureFilter({ where, timeExtent });
166
- }
167
- else {
168
- if (filterMode.effect) {
169
- const { includedEffect, excludedEffect } = filterMode.effect;
170
- const mergedExcludedEffect = await getMergedEffect(excludedEffect, fLayerView, 'excludedEffect');
171
- const mergedIncludedEffect = await getMergedEffect(includedEffect, fLayerView, 'includedEffect');
172
- fLayerView.featureEffect = new FeatureEffect({
173
- filter: new FeatureFilter({ where, timeExtent }),
174
- includedEffect: mergedIncludedEffect,
175
- excludedEffect: mergedExcludedEffect,
176
- });
177
- }
178
- }
179
- return Promise.resolve();
156
+ var _a, _b;
157
+ const [FeatureFilter, FeatureEffect] = await loadModules(['esri/layers/support/FeatureFilter', 'esri/layers/support/FeatureEffect']);
158
+ const { queryExpressions, fLayerView } = data;
159
+ generateQueryExpressions(data, info, infoIndex, parentLegendElementInfo);
160
+ const sep = queryExpressions.every(expression => expression && expression.includes('<>')) ? ' AND ' : ' OR ';
161
+ const where = queryExpressions.join(sep);
162
+ const timeExtent = (_b = (_a = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.filter) === null || _a === void 0 ? void 0 : _a.timeExtent) !== null && _b !== void 0 ? _b : null;
163
+ const { type } = filterMode;
164
+ if (type === 'filter') {
165
+ fLayerView.filter = new FeatureFilter({ where, timeExtent });
166
+ }
167
+ else {
168
+ if (filterMode.effect) {
169
+ const { includedEffect, excludedEffect } = filterMode.effect;
170
+ const mergedExcludedEffect = await getMergedEffect(excludedEffect, fLayerView, 'excludedEffect');
171
+ const mergedIncludedEffect = await getMergedEffect(includedEffect, fLayerView, 'includedEffect');
172
+ fLayerView.featureEffect = new FeatureEffect({
173
+ filter: new FeatureFilter({ where, timeExtent }),
174
+ includedEffect: mergedIncludedEffect,
175
+ excludedEffect: mergedExcludedEffect,
176
+ });
177
+ }
178
+ }
179
+ return Promise.resolve();
180
180
  }
181
181
  function handlePredominanceExpression(elementInfo, featureLayerView) {
182
- const authoringInfo = featureLayerView ? featureLayerView.layer.renderer.authoringInfo : null;
183
- const fields = authoringInfo ? authoringInfo.fields : null;
184
- const expressionArr = [];
185
- if (!fields) {
186
- return '';
187
- }
188
- if (elementInfo.hasOwnProperty('value')) {
189
- fields.forEach(field => {
190
- if (elementInfo.value === field) {
191
- return;
192
- }
193
- const sqlQuery = `(${elementInfo.value} > ${field} OR (${field} IS NULL AND ${elementInfo.value} <> 0 AND ${elementInfo.value} IS NOT NULL))`;
194
- expressionArr.push(sqlQuery);
195
- });
196
- return expressionArr.join(' AND ');
197
- }
198
- else {
199
- const queryForZeroes = [];
200
- fields.forEach(field => {
201
- queryForZeroes.push(`${field} = 0`);
202
- });
203
- const otherExpression = [];
204
- if (fields.length > 2) {
205
- fields.forEach(field1 => {
206
- fields.forEach(field2 => {
207
- if (field1 === field2) {
208
- return;
209
- }
210
- const queryForMultiplePredominance = [];
211
- fields.forEach(field3 => {
212
- if (field1 === field3 || field2 === field3) {
213
- return;
182
+ const authoringInfo = featureLayerView ? featureLayerView.layer.renderer.authoringInfo : null;
183
+ const fields = authoringInfo ? authoringInfo.fields : null;
184
+ const expressionArr = [];
185
+ if (!fields) {
186
+ return '';
187
+ }
188
+ if (elementInfo.hasOwnProperty('value')) {
189
+ fields.forEach(field => {
190
+ if (elementInfo.value === field) {
191
+ return;
214
192
  }
215
- queryForMultiplePredominance.push(`${field1} = ${field2} AND (${field1} > ${field3} OR ${field1} >= ${field3})`);
216
- });
217
- otherExpression.push(`(${queryForMultiplePredominance.join(' AND ')})`);
193
+ const sqlQuery = `(${elementInfo.value} > ${field} OR (${field} IS NULL AND ${elementInfo.value} <> 0 AND ${elementInfo.value} IS NOT NULL))`;
194
+ expressionArr.push(sqlQuery);
218
195
  });
219
- });
220
- const isNull = [];
221
- fields.forEach(field => {
222
- isNull.push(`${field} IS NULL`);
223
- });
224
- const generatedOtherExpression = `(${queryForZeroes.join(' AND ')}) OR (${otherExpression.join(' OR ')}) OR (${isNull.join(' AND ')})`;
225
- return generatedOtherExpression;
196
+ return expressionArr.join(' AND ');
226
197
  }
227
198
  else {
228
- const expressions = [];
229
- fields.forEach(field1 => {
230
- fields.forEach(field2 => {
231
- if (field1 === field2) {
232
- return;
233
- }
234
- expressions.push(`${field1} = ${field2}`);
235
- expressions.push(`(${queryForZeroes.join(' AND ')})`);
236
- });
237
- });
238
- const zeroAndNull = [];
239
- fields.forEach(field1 => {
240
- fields.forEach(field2 => {
241
- if (field1 === field2) {
242
- return;
243
- }
244
- zeroAndNull.push(`(${field1} = 0 AND ${field2} IS NULL) OR (${field1} IS NULL AND ${field2} IS NULL)`);
199
+ const queryForZeroes = [];
200
+ fields.forEach(field => {
201
+ queryForZeroes.push(`${field} = 0`);
245
202
  });
246
- });
247
- return `(${expressions.join(' OR ')}) OR (${zeroAndNull.join(' OR ')})`;
203
+ const otherExpression = [];
204
+ if (fields.length > 2) {
205
+ fields.forEach(field1 => {
206
+ fields.forEach(field2 => {
207
+ if (field1 === field2) {
208
+ return;
209
+ }
210
+ const queryForMultiplePredominance = [];
211
+ fields.forEach(field3 => {
212
+ if (field1 === field3 || field2 === field3) {
213
+ return;
214
+ }
215
+ queryForMultiplePredominance.push(`${field1} = ${field2} AND (${field1} > ${field3} OR ${field1} >= ${field3})`);
216
+ });
217
+ otherExpression.push(`(${queryForMultiplePredominance.join(' AND ')})`);
218
+ });
219
+ });
220
+ const isNull = [];
221
+ fields.forEach(field => {
222
+ isNull.push(`${field} IS NULL`);
223
+ });
224
+ const generatedOtherExpression = `(${queryForZeroes.join(' AND ')}) OR (${otherExpression.join(' OR ')}) OR (${isNull.join(' AND ')})`;
225
+ return generatedOtherExpression;
226
+ }
227
+ else {
228
+ const expressions = [];
229
+ fields.forEach(field1 => {
230
+ fields.forEach(field2 => {
231
+ if (field1 === field2) {
232
+ return;
233
+ }
234
+ expressions.push(`${field1} = ${field2}`);
235
+ expressions.push(`(${queryForZeroes.join(' AND ')})`);
236
+ });
237
+ });
238
+ const zeroAndNull = [];
239
+ fields.forEach(field1 => {
240
+ fields.forEach(field2 => {
241
+ if (field1 === field2) {
242
+ return;
243
+ }
244
+ zeroAndNull.push(`(${field1} = 0 AND ${field2} IS NULL) OR (${field1} IS NULL AND ${field2} IS NULL)`);
245
+ });
246
+ });
247
+ return `(${expressions.join(' OR ')}) OR (${zeroAndNull.join(' OR ')})`;
248
+ }
248
249
  }
249
- }
250
250
  }
251
251
  function generateQueryExpressions(data, info, infoIndex, parentLegendElementInfo) {
252
- var _a, _b, _c, _d;
253
- const { field, legendElement, categories, fLayerView } = data;
254
- const queryExpressions = data === null || data === void 0 ? void 0 : data.queryExpressions;
255
- if (parentLegendElementInfo) {
256
- const nestedCategories = Array.from(data.categories).map(entry => entry[1]);
257
- nestedCategories.forEach(nestedCategory => {
258
- var _a, _b;
259
- const untouched = (_a = nestedCategory.nestedInfos) === null || _a === void 0 ? void 0 : _a.every(nestedInfo => !nestedInfo.selected);
260
- if (untouched) {
261
- (_b = nestedCategory.nestedInfos) === null || _b === void 0 ? void 0 : _b.forEach(nestedInfo => {
262
- const expression = field ? `${field} = '${nestedInfo.legendElementInfo.value}'` : null;
263
- const expressionIndex = expression ? queryExpressions.indexOf(expression) : -1;
264
- if (expression && expressionIndex !== -1) {
265
- queryExpressions.splice(expressionIndex, 1);
266
- }
252
+ var _a, _b, _c, _d;
253
+ const { field, legendElement, categories, fLayerView } = data;
254
+ const queryExpressions = data === null || data === void 0 ? void 0 : data.queryExpressions;
255
+ if (parentLegendElementInfo) {
256
+ const nestedCategories = Array.from(data.categories).map(entry => entry[1]);
257
+ nestedCategories.forEach(nestedCategory => {
258
+ var _a, _b;
259
+ const untouched = (_a = nestedCategory.nestedInfos) === null || _a === void 0 ? void 0 : _a.every(nestedInfo => !nestedInfo.selected);
260
+ if (untouched) {
261
+ (_b = nestedCategory.nestedInfos) === null || _b === void 0 ? void 0 : _b.forEach(nestedInfo => {
262
+ const expression = field ? `${field} = '${nestedInfo.legendElementInfo.value}'` : null;
263
+ const expressionIndex = expression ? queryExpressions.indexOf(expression) : -1;
264
+ if (expression && expressionIndex !== -1) {
265
+ queryExpressions.splice(expressionIndex, 1);
266
+ }
267
+ });
268
+ }
267
269
  });
268
- }
269
- });
270
- }
271
- const legendElementInfos = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos;
272
- const isPredominance = checkPredominance(fLayerView);
273
- let queryExpression = isPredominance
274
- ? handlePredominanceExpression(info, fLayerView)
275
- : generateQueryExpression(info, field, infoIndex, legendElement, legendElementInfos, '');
276
- const category = categories
277
- ? parentLegendElementInfo
278
- ? (_b = (_a = categories.get(parentLegendElementInfo.title)) === null || _a === void 0 ? void 0 : _a.nestedInfos) === null || _b === void 0 ? void 0 : _b[infoIndex]
279
- : categories.get((_c = info.label) !== null && _c !== void 0 ? _c : (_d = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.layer) === null || _d === void 0 ? void 0 : _d.id)
280
- : null;
281
- if (category)
282
- category.selected = !(category === null || category === void 0 ? void 0 : category.selected);
283
- const hasOneValue = legendElementInfos && legendElementInfos.length === 1;
284
- const expressionIndex = queryExpressions.indexOf(queryExpression);
285
- if (isPredominance) {
270
+ }
271
+ const legendElementInfos = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos;
272
+ const isPredominance = checkPredominance(fLayerView);
273
+ let queryExpression = isPredominance
274
+ ? handlePredominanceExpression(info, fLayerView)
275
+ : generateQueryExpression(info, field, infoIndex, legendElement, legendElementInfos, '');
276
+ const category = categories
277
+ ? parentLegendElementInfo
278
+ ? (_b = (_a = categories.get(parentLegendElementInfo.title)) === null || _a === void 0 ? void 0 : _a.nestedInfos) === null || _b === void 0 ? void 0 : _b[infoIndex]
279
+ : categories.get((_c = info.label) !== null && _c !== void 0 ? _c : (_d = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.layer) === null || _d === void 0 ? void 0 : _d.id)
280
+ : null;
281
+ if (category)
282
+ category.selected = !(category === null || category === void 0 ? void 0 : category.selected);
283
+ const hasOneValue = legendElementInfos && legendElementInfos.length === 1;
286
284
  const expressionIndex = queryExpressions.indexOf(queryExpression);
287
- if (queryExpressions.length === 0 || expressionIndex === -1) {
288
- if (queryExpressions && queryExpressions[0] === '1=0') {
289
- queryExpressions.splice(0, 1);
290
- }
291
- queryExpressions.push(queryExpression);
285
+ if (isPredominance) {
286
+ const expressionIndex = queryExpressions.indexOf(queryExpression);
287
+ if (queryExpressions.length === 0 || expressionIndex === -1) {
288
+ if (queryExpressions && queryExpressions[0] === '1=0') {
289
+ queryExpressions.splice(0, 1);
290
+ }
291
+ queryExpressions.push(queryExpression);
292
+ }
293
+ else if (queryExpressions && queryExpressions.length === 1 && queryExpression === queryExpressions[0]) {
294
+ queryExpressions[0] = '1=0';
295
+ }
296
+ else if (queryExpressions && queryExpressions.length === 1) {
297
+ queryExpressions[0] = queryExpression;
298
+ }
299
+ else if (queryExpressions && queryExpressions.length === 1 && queryExpression !== queryExpressions[0] && queryExpressions[0] === '1=0') {
300
+ queryExpressions[0] = queryExpression;
301
+ }
302
+ else if (queryExpressions && queryExpressions.length === 1 && queryExpression === queryExpressions[0] && queryExpressions[0] === '1=0') {
303
+ queryExpressions[0] = null;
304
+ }
305
+ else {
306
+ queryExpressions.splice(expressionIndex, 1);
307
+ }
308
+ queryExpressions.join(' OR ');
309
+ }
310
+ else if (queryExpressions.length === 0 || expressionIndex === -1) {
311
+ if (queryExpressions && queryExpressions[0] === '1=0') {
312
+ queryExpressions.splice(0, 1);
313
+ }
314
+ queryExpressions.push(queryExpression);
292
315
  }
293
- else if (queryExpressions && queryExpressions.length === 1 && queryExpression === queryExpressions[0]) {
294
- queryExpressions[0] = '1=0';
316
+ else if (queryExpressions && queryExpressions.length === 1 && queryExpression === queryExpressions[0] && !hasOneValue) {
317
+ queryExpressions[0] = '1=0';
295
318
  }
296
- else if (queryExpressions && queryExpressions.length === 1) {
297
- queryExpressions[0] = queryExpression;
319
+ else if (queryExpressions && queryExpressions.length === 1 && !hasOneValue) {
320
+ queryExpressions[0] = queryExpression;
298
321
  }
299
- else if (queryExpressions && queryExpressions.length === 1 && queryExpression !== queryExpressions[0] && queryExpressions[0] === '1=0') {
300
- queryExpressions[0] = queryExpression;
322
+ else if (queryExpressions && queryExpressions.length === 1 && queryExpression !== queryExpressions[0] && queryExpressions[0] === '1=0' && !hasOneValue) {
323
+ queryExpressions[0] = queryExpression;
301
324
  }
302
- else if (queryExpressions && queryExpressions.length === 1 && queryExpression === queryExpressions[0] && queryExpressions[0] === '1=0') {
303
- queryExpressions[0] = null;
325
+ else if (queryExpressions && queryExpressions.length === 1 && queryExpression === queryExpressions[0] && queryExpressions[0] === '1=0' && !hasOneValue) {
326
+ queryExpressions[0] = null;
304
327
  }
305
328
  else {
306
- queryExpressions.splice(expressionIndex, 1);
307
- }
308
- queryExpressions.join(' OR ');
309
- }
310
- else if (queryExpressions.length === 0 || expressionIndex === -1) {
311
- if (queryExpressions && queryExpressions[0] === '1=0') {
312
- queryExpressions.splice(0, 1);
313
- }
314
- queryExpressions.push(queryExpression);
315
- }
316
- else if (queryExpressions && queryExpressions.length === 1 && queryExpression === queryExpressions[0] && !hasOneValue) {
317
- queryExpressions[0] = '1=0';
318
- }
319
- else if (queryExpressions && queryExpressions.length === 1 && !hasOneValue) {
320
- queryExpressions[0] = queryExpression;
321
- }
322
- else if (queryExpressions && queryExpressions.length === 1 && queryExpression !== queryExpressions[0] && queryExpressions[0] === '1=0' && !hasOneValue) {
323
- queryExpressions[0] = queryExpression;
324
- }
325
- else if (queryExpressions && queryExpressions.length === 1 && queryExpression === queryExpressions[0] && queryExpressions[0] === '1=0' && !hasOneValue) {
326
- queryExpressions[0] = null;
327
- }
328
- else {
329
- queryExpressions.splice(expressionIndex, 1);
330
- }
331
- if (parentLegendElementInfo) {
332
- const expressionList = [];
333
- const nestedCategories = Array.from(data.categories).map(entry => entry[1]);
334
- nestedCategories.forEach(nestedCategory => {
335
- var _a, _b;
336
- const untouched = (_a = nestedCategory.nestedInfos) === null || _a === void 0 ? void 0 : _a.every(nestedInfo => !nestedInfo.selected);
337
- if (untouched) {
338
- (_b = nestedCategory.nestedInfos) === null || _b === void 0 ? void 0 : _b.forEach(nestedInfo => {
339
- const expression = field ? `${field} = '${nestedInfo.legendElementInfo.value}'` : null;
340
- if (expression)
341
- expressionList.push(`${field} = '${nestedInfo.legendElementInfo.value}'`);
329
+ queryExpressions.splice(expressionIndex, 1);
330
+ }
331
+ if (parentLegendElementInfo) {
332
+ const expressionList = [];
333
+ const nestedCategories = Array.from(data.categories).map(entry => entry[1]);
334
+ nestedCategories.forEach(nestedCategory => {
335
+ var _a, _b;
336
+ const untouched = (_a = nestedCategory.nestedInfos) === null || _a === void 0 ? void 0 : _a.every(nestedInfo => !nestedInfo.selected);
337
+ if (untouched) {
338
+ (_b = nestedCategory.nestedInfos) === null || _b === void 0 ? void 0 : _b.forEach(nestedInfo => {
339
+ const expression = field ? `${field} = '${nestedInfo.legendElementInfo.value}'` : null;
340
+ if (expression)
341
+ expressionList.push(`${field} = '${nestedInfo.legendElementInfo.value}'`);
342
+ });
343
+ }
342
344
  });
343
- }
344
- });
345
- expressionList.forEach(expression => {
346
- if (queryExpressions.indexOf(expression) === -1) {
347
- queryExpressions.push(expression);
348
- }
349
- });
350
- }
345
+ expressionList.forEach(expression => {
346
+ if (queryExpressions.indexOf(expression) === -1) {
347
+ queryExpressions.push(expression);
348
+ }
349
+ });
350
+ }
351
351
  }
352
352
  function generateQueryExpression(info, field, infoIndex, legendElement, legendElementInfos, normalizationField) {
353
- const { value } = info;
354
- if ((legendElement === null || legendElement === void 0 ? void 0 : legendElement.type) === 'symbol-table') {
355
- // Classify data size/color ramp
356
- if (!info.hasOwnProperty('value') || (Array.isArray(info.value) && (legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) === 1)) {
357
- // Classify data size/color ramp - 'Other' category
358
- if ((legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[0].hasOwnProperty('value')) &&
359
- Array.isArray(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[0].value) &&
360
- (legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 2]) &&
361
- (legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 2].hasOwnProperty('value')) &&
362
- Array.isArray(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 2].value)) {
363
- const expression = normalizationField
364
- ? `((${field}/${normalizationField}) > ${legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[0].value[1]}) OR ((${field}/${normalizationField}) < ${legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 2].value[0]}) OR ${normalizationField} = 0 OR ${normalizationField} IS NULL`
365
- : `${field} > ${legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[0].value[1]} OR ${field} < ${legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 2].value[0]} OR ${field} IS NULL`;
366
- return expression;
367
- }
368
- else if ((legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) === 1) {
369
- return '1=0';
370
- }
371
- else {
372
- // Types unique symbols - 'Other' category
373
- const expressionList = [];
374
- legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.forEach(legendElementInfo => {
375
- if (legendElementInfo === null || legendElementInfo === void 0 ? void 0 : legendElementInfo.value) {
376
- const { value } = legendElementInfo;
353
+ const { value } = info;
354
+ if ((legendElement === null || legendElement === void 0 ? void 0 : legendElement.type) === 'symbol-table') {
355
+ // Classify data size/color ramp
356
+ if (!info.hasOwnProperty('value') || (Array.isArray(info.value) && (legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) === 1)) {
357
+ // Classify data size/color ramp - 'Other' category
358
+ if ((legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[0].hasOwnProperty('value')) &&
359
+ Array.isArray(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[0].value) &&
360
+ (legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 2]) &&
361
+ (legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 2].hasOwnProperty('value')) &&
362
+ Array.isArray(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 2].value)) {
363
+ const expression = normalizationField
364
+ ? `((${field}/${normalizationField}) > ${legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[0].value[1]}) OR ((${field}/${normalizationField}) < ${legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 2].value[0]}) OR ${normalizationField} = 0 OR ${normalizationField} IS NULL`
365
+ : `${field} > ${legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[0].value[1]} OR ${field} < ${legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 2].value[0]} OR ${field} IS NULL`;
366
+ return expression;
367
+ }
368
+ else if ((legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) === 1) {
369
+ return '1=0';
370
+ }
371
+ else {
372
+ // Types unique symbols - 'Other' category
373
+ const expressionList = [];
374
+ legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.forEach(legendElementInfo => {
375
+ if (legendElementInfo === null || legendElementInfo === void 0 ? void 0 : legendElementInfo.value) {
376
+ const { value } = legendElementInfo;
377
+ const singleQuote = value.indexOf("'") !== -1 ? value.split("'").join("''") : null;
378
+ const expression = singleQuote
379
+ ? `${field} <> '${singleQuote}'`
380
+ : isNaN(value) || (typeof value === 'string' && !value.trim())
381
+ ? `${field} <> '${value}'`
382
+ : `${field} <> ${value} AND ${field} <> '${value}'`;
383
+ expressionList.push(expression);
384
+ }
385
+ });
386
+ const noExpression = expressionList.join(' AND ');
387
+ return field && noExpression ? `${noExpression} OR ${field} IS NULL` : '';
388
+ }
389
+ }
390
+ else {
377
391
  const singleQuote = value.indexOf("'") !== -1 ? value.split("'").join("''") : null;
378
- const expression = singleQuote
379
- ? `${field} <> '${singleQuote}'`
380
- : isNaN(value) || (typeof value === 'string' && !value.trim())
381
- ? `${field} <> '${value}'`
382
- : `${field} <> ${value} AND ${field} <> '${value}'`;
383
- expressionList.push(expression);
384
- }
385
- });
386
- const noExpression = expressionList.join(' AND ');
387
- return field && noExpression ? `${noExpression} OR ${field} IS NULL` : '';
388
- }
392
+ const isArray = Array.isArray(info.value);
393
+ const isLastElement = (legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 1 === infoIndex;
394
+ const lastElementAndNoValue = !(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 1].hasOwnProperty('value'));
395
+ const secondToLastElement = infoIndex === (legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 2;
396
+ const expression = isArray
397
+ ? normalizationField
398
+ ? isLastElement || (lastElementAndNoValue && secondToLastElement)
399
+ ? `(${field}/${normalizationField}) >= ${value[0]} AND (${field}/${normalizationField}) <= ${info.value[1]}`
400
+ : `(${field}/${normalizationField}) > ${value[0]} AND (${field}/${normalizationField}) <= ${info.value[1]}`
401
+ : isLastElement || (lastElementAndNoValue && secondToLastElement)
402
+ ? `${field} >= ${value[0]} AND ${field} <= ${value[1]}`
403
+ : `${field} > ${value[0]} AND ${field} <= ${value[1]}`
404
+ : (legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) === 1 && field
405
+ ? isNaN(value) || !value.trim().length
406
+ ? `${field} <> '${value}'`
407
+ : `${field} <> ${value} OR ${field} <> '${value}'`
408
+ : singleQuote
409
+ ? `${field} = '${singleQuote}'`
410
+ : isNaN(value) || !value.trim().length
411
+ ? `${field} = '${value}'`
412
+ : `${field} = ${value} OR ${field} = '${value}'`;
413
+ return expression;
414
+ }
389
415
  }
390
416
  else {
391
- const singleQuote = value.indexOf("'") !== -1 ? value.split("'").join("''") : null;
392
- const isArray = Array.isArray(info.value);
393
- const isLastElement = (legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 1 === infoIndex;
394
- const lastElementAndNoValue = !(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos[(legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 1].hasOwnProperty('value'));
395
- const secondToLastElement = infoIndex === (legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) - 2;
396
- const expression = isArray
397
- ? normalizationField
398
- ? isLastElement || (lastElementAndNoValue && secondToLastElement)
399
- ? `(${field}/${normalizationField}) >= ${value[0]} AND (${field}/${normalizationField}) <= ${info.value[1]}`
400
- : `(${field}/${normalizationField}) > ${value[0]} AND (${field}/${normalizationField}) <= ${info.value[1]}`
401
- : isLastElement || (lastElementAndNoValue && secondToLastElement)
402
- ? `${field} >= ${value[0]} AND ${field} <= ${value[1]}`
403
- : `${field} > ${value[0]} AND ${field} <= ${value[1]}`
404
- : (legendElementInfos === null || legendElementInfos === void 0 ? void 0 : legendElementInfos.length) === 1 && field
405
- ? isNaN(value) || !value.trim().length
406
- ? `${field} <> '${value}'`
407
- : `${field} <> ${value} OR ${field} <> '${value}'`
408
- : singleQuote
409
- ? `${field} = '${singleQuote}'`
410
- : isNaN(value) || !value.trim().length
411
- ? `${field} = '${value}'`
412
- : `${field} = ${value} OR ${field} = '${value}'`;
413
- return expression;
414
- }
415
- }
416
- else {
417
- return '';
418
- }
417
+ return '';
418
+ }
419
419
  }
420
420
  function checkNoneSelected(data) {
421
- if (Array.isArray(data)) {
422
- return data.every(entry => !entry.selected);
423
- }
424
- else {
425
- return data && Array.from(data.categories.entries()).every(entry => !entry[1].selected) && data.queryExpressions[0] !== '1=0';
426
- }
421
+ if (Array.isArray(data)) {
422
+ return data.every(entry => !entry.selected);
423
+ }
424
+ else {
425
+ return data && Array.from(data.categories.entries()).every(entry => !entry[1].selected) && data.queryExpressions[0] !== '1=0';
426
+ }
427
427
  }
428
428
  function checkPredominance(fLayerView) {
429
- var _a, _b, _c;
430
- const authoringInfoType = (_c = (_b = (_a = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.layer) === null || _a === void 0 ? void 0 : _a.renderer) === null || _b === void 0 ? void 0 : _b.authoringInfo) === null || _c === void 0 ? void 0 : _c.type;
431
- return authoringInfoType === 'predominance';
429
+ var _a, _b, _c;
430
+ const authoringInfoType = (_c = (_b = (_a = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.layer) === null || _a === void 0 ? void 0 : _a.renderer) === null || _b === void 0 ? void 0 : _b.authoringInfo) === null || _c === void 0 ? void 0 : _c.type;
431
+ return authoringInfoType === 'predominance';
432
432
  }
433
433
  function checkRelationshipRamp(activeLayerInfo) {
434
- var _a;
435
- return ((_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements[1]) === null || _a === void 0 ? void 0 : _a.type) === 'relationship-ramp';
434
+ var _a;
435
+ return ((_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements[1]) === null || _a === void 0 ? void 0 : _a.type) === 'relationship-ramp';
436
436
  }
437
437
  function validateInteractivity(activeLayerInfo, legendElement, legendElementIndex) {
438
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
439
- const fLayer = activeLayerInfo.layer;
440
- const field = (_a = fLayer === null || fLayer === void 0 ? void 0 : fLayer.renderer) === null || _a === void 0 ? void 0 : _a.field;
441
- const type = legendElement === null || legendElement === void 0 ? void 0 : legendElement.type;
442
- const layerView = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layerView;
443
- const classBreakInfos = (_c = (_b = layerView === null || layerView === void 0 ? void 0 : layerView.layer) === null || _b === void 0 ? void 0 : _b.renderer) === null || _c === void 0 ? void 0 : _c.classBreakInfos;
444
- const uniqueValueInfos = ((_e = (_d = layerView === null || layerView === void 0 ? void 0 : layerView.layer) === null || _d === void 0 ? void 0 : _d.renderer) === null || _e === void 0 ? void 0 : _e.uniqueValueInfos) && field;
445
- const isSizeRamp = type === 'size-ramp';
446
- const isColorRamp = type === 'color-ramp';
447
- const opacityRamp = type === 'opacity-ramp';
448
- const heatmapRamp = type === 'heatmap-ramp';
449
- const hasMoreThanOneClassBreak = layerView && classBreakInfos && classBreakInfos.length > 1;
450
- const authoringInfoType = (_h = (_g = (_f = layerView === null || layerView === void 0 ? void 0 : layerView.layer) === null || _f === void 0 ? void 0 : _f.renderer) === null || _g === void 0 ? void 0 : _g.authoringInfo) === null || _h === void 0 ? void 0 : _h.type;
451
- const classifyDataCheckedColorRamp = authoringInfoType === 'class-breaks-color';
452
- const classifyDataCheckedSizeRamp = authoringInfoType === 'class-breaks-size';
453
- const singleSymbol = ((_j = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _j === void 0 ? void 0 : _j.length) === 1 && !field;
454
- const isRelationshipRamp = authoringInfoType === 'relationship' && (legendElement === null || legendElement === void 0 ? void 0 : legendElement.type) !== 'size-ramp' && (legendElement === null || legendElement === void 0 ? void 0 : legendElement.type) !== 'symbol-table';
455
- const isFeatureLayer = ((_k = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _k === void 0 ? void 0 : _k.type) === 'feature';
456
- const moreThanOneClassBreak = isFeatureLayer && field && !isColorRamp && !isSizeRamp && hasMoreThanOneClassBreak;
457
- const oneClassBreak = isFeatureLayer && field && !isColorRamp && !isSizeRamp && !hasMoreThanOneClassBreak ? true : false;
458
- const validate = oneClassBreak ||
459
- (checkPredominance(layerView) && !isSizeRamp) ||
460
- (classifyDataCheckedColorRamp && field) ||
461
- (classifyDataCheckedSizeRamp && field) ||
462
- (singleSymbol && !field && field !== null) ||
463
- isRelationshipRamp ||
464
- uniqueValueInfos
465
- ? true
466
- : false;
467
- const hasClustering = ((_l = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _l === void 0 ? void 0 : _l.featureReduction) && ((_o = (_m = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements) === null || _m === void 0 ? void 0 : _m[legendElementIndex]) === null || _o === void 0 ? void 0 : _o.type) === 'size-ramp';
468
- const isSingleSymbol = (legendElement === null || legendElement === void 0 ? void 0 : legendElement.type) === 'symbol-table' && ((_p = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _p === void 0 ? void 0 : _p.length) === 1;
469
- const hasColorRamp = !(activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements.every(legendElement => legendElement.type !== 'color-ramp'));
470
- const hasSizeRamp = !(activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements.every(legendElement => legendElement.type !== 'size-ramp'));
471
- const singleSymbolColor = isSingleSymbol && hasColorRamp;
472
- const singleSymbolSize = isSingleSymbol && hasSizeRamp;
473
- const isUnclassifiedSizeRamp = (_q = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _q === void 0 ? void 0 : _q.every(info => typeof info.value === 'number');
474
- const isBinning = ((_s = (_r = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements) === null || _r === void 0 ? void 0 : _r[0]) === null || _s === void 0 ? void 0 : _s.type) === 'symbol-table' && ((_u = (_t = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements) === null || _t === void 0 ? void 0 : _t[1]) === null || _u === void 0 ? void 0 : _u.type) === 'color-ramp';
475
- const isDotDensity = authoringInfoType === 'dot-density';
476
- const isValidated = isFeatureLayer && !hasClustering && !opacityRamp && !heatmapRamp && !singleSymbolColor && !singleSymbolSize && !isUnclassifiedSizeRamp && !isBinning && !isDotDensity
477
- ? classBreakInfos
478
- ? moreThanOneClassBreak || validate
479
- : oneClassBreak || validate
480
- : false;
481
- return isValidated;
438
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
439
+ const fLayer = activeLayerInfo.layer;
440
+ const field = (_a = fLayer === null || fLayer === void 0 ? void 0 : fLayer.renderer) === null || _a === void 0 ? void 0 : _a.field;
441
+ const type = legendElement === null || legendElement === void 0 ? void 0 : legendElement.type;
442
+ const layerView = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layerView;
443
+ const classBreakInfos = (_c = (_b = layerView === null || layerView === void 0 ? void 0 : layerView.layer) === null || _b === void 0 ? void 0 : _b.renderer) === null || _c === void 0 ? void 0 : _c.classBreakInfos;
444
+ const uniqueValueInfos = ((_e = (_d = layerView === null || layerView === void 0 ? void 0 : layerView.layer) === null || _d === void 0 ? void 0 : _d.renderer) === null || _e === void 0 ? void 0 : _e.uniqueValueInfos) && field;
445
+ const isSizeRamp = type === 'size-ramp';
446
+ const isColorRamp = type === 'color-ramp';
447
+ const opacityRamp = type === 'opacity-ramp';
448
+ const heatmapRamp = type === 'heatmap-ramp';
449
+ const hasMoreThanOneClassBreak = layerView && classBreakInfos && classBreakInfos.length > 1;
450
+ const authoringInfoType = (_h = (_g = (_f = layerView === null || layerView === void 0 ? void 0 : layerView.layer) === null || _f === void 0 ? void 0 : _f.renderer) === null || _g === void 0 ? void 0 : _g.authoringInfo) === null || _h === void 0 ? void 0 : _h.type;
451
+ const classifyDataCheckedColorRamp = authoringInfoType === 'class-breaks-color';
452
+ const classifyDataCheckedSizeRamp = authoringInfoType === 'class-breaks-size';
453
+ const singleSymbol = ((_j = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _j === void 0 ? void 0 : _j.length) === 1 && !field;
454
+ const isRelationshipRamp = authoringInfoType === 'relationship' && (legendElement === null || legendElement === void 0 ? void 0 : legendElement.type) !== 'size-ramp' && (legendElement === null || legendElement === void 0 ? void 0 : legendElement.type) !== 'symbol-table';
455
+ const isFeatureLayer = ((_k = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _k === void 0 ? void 0 : _k.type) === 'feature';
456
+ const moreThanOneClassBreak = isFeatureLayer && field && !isColorRamp && !isSizeRamp && hasMoreThanOneClassBreak;
457
+ const oneClassBreak = isFeatureLayer && field && !isColorRamp && !isSizeRamp && !hasMoreThanOneClassBreak ? true : false;
458
+ const validate = oneClassBreak ||
459
+ (checkPredominance(layerView) && !isSizeRamp) ||
460
+ (classifyDataCheckedColorRamp && field) ||
461
+ (classifyDataCheckedSizeRamp && field) ||
462
+ (singleSymbol && !field && field !== null) ||
463
+ isRelationshipRamp ||
464
+ uniqueValueInfos
465
+ ? true
466
+ : false;
467
+ const hasClustering = ((_l = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _l === void 0 ? void 0 : _l.featureReduction) && ((_o = (_m = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements) === null || _m === void 0 ? void 0 : _m[legendElementIndex]) === null || _o === void 0 ? void 0 : _o.type) === 'size-ramp';
468
+ const isSingleSymbol = (legendElement === null || legendElement === void 0 ? void 0 : legendElement.type) === 'symbol-table' && ((_p = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _p === void 0 ? void 0 : _p.length) === 1;
469
+ const hasColorRamp = !(activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements.every(legendElement => legendElement.type !== 'color-ramp'));
470
+ const hasSizeRamp = !(activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements.every(legendElement => legendElement.type !== 'size-ramp'));
471
+ const singleSymbolColor = isSingleSymbol && hasColorRamp;
472
+ const singleSymbolSize = isSingleSymbol && hasSizeRamp;
473
+ const isUnclassifiedSizeRamp = (_q = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _q === void 0 ? void 0 : _q.every(info => typeof info.value === 'number');
474
+ const isBinning = ((_s = (_r = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements) === null || _r === void 0 ? void 0 : _r[0]) === null || _s === void 0 ? void 0 : _s.type) === 'symbol-table' && ((_u = (_t = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements) === null || _t === void 0 ? void 0 : _t[1]) === null || _u === void 0 ? void 0 : _u.type) === 'color-ramp';
475
+ const isDotDensity = authoringInfoType === 'dot-density';
476
+ const fieldExists = checkIfFieldExists(activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer, field);
477
+ const isValidated = isFeatureLayer &&
478
+ !hasClustering &&
479
+ !opacityRamp &&
480
+ !heatmapRamp &&
481
+ !singleSymbolColor &&
482
+ !singleSymbolSize &&
483
+ !isUnclassifiedSizeRamp &&
484
+ !isBinning &&
485
+ !isDotDensity &&
486
+ fieldExists
487
+ ? classBreakInfos
488
+ ? moreThanOneClassBreak || validate
489
+ : oneClassBreak || validate
490
+ : false;
491
+ return isValidated;
482
492
  }
483
493
  // ui interactions
484
494
  function showAll(data) {
485
- var _a, _b, _c, _d, _e;
486
- data.queryExpressions = [];
487
- if ((_b = (_a = data === null || data === void 0 ? void 0 : data.fLayerView) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.where)
488
- data.fLayerView.filter.where = '';
489
- if ((_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.fLayerView) === null || _c === void 0 ? void 0 : _c.featureEffect) === null || _d === void 0 ? void 0 : _d.filter) === null || _e === void 0 ? void 0 : _e.where)
490
- data.fLayerView.featureEffect = null;
491
- data.categories.forEach(category => {
492
- category.selected = false;
493
- });
494
- return data;
495
+ var _a, _b, _c, _d, _e;
496
+ data.queryExpressions = [];
497
+ if ((_b = (_a = data === null || data === void 0 ? void 0 : data.fLayerView) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.where)
498
+ data.fLayerView.filter.where = '';
499
+ if ((_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.fLayerView) === null || _c === void 0 ? void 0 : _c.featureEffect) === null || _d === void 0 ? void 0 : _d.filter) === null || _e === void 0 ? void 0 : _e.where)
500
+ data.fLayerView.featureEffect = null;
501
+ data.categories.forEach(category => {
502
+ category.selected = false;
503
+ });
504
+ return data;
495
505
  }
496
506
  function showAllNestedUniqueSymbol(data, nestedUniqueSymbolCategoryId) {
497
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
498
- const nestedUniqueInfoCategory = data.categories.get(nestedUniqueSymbolCategoryId);
499
- (_a = nestedUniqueInfoCategory === null || nestedUniqueInfoCategory === void 0 ? void 0 : nestedUniqueInfoCategory.nestedInfos) === null || _a === void 0 ? void 0 : _a.forEach(nestedInfo => {
500
- const expression = `${data.field} = '${nestedInfo.legendElementInfo.value}'`;
501
- const existingIndex = data.queryExpressions.indexOf(expression);
502
- if (existingIndex !== -1) {
503
- data.queryExpressions.splice(existingIndex, 1);
504
- }
505
- nestedInfo.selected = false;
506
- });
507
- const expressionList = [];
508
- const nestedCategories = Array.from(data.categories).map(entry => entry[1]);
509
- nestedCategories.forEach(nestedCategory => {
510
- var _a, _b;
511
- const untouched = (_a = nestedCategory.nestedInfos) === null || _a === void 0 ? void 0 : _a.every(nestedInfo => !nestedInfo.selected);
512
- if (untouched) {
513
- (_b = nestedCategory.nestedInfos) === null || _b === void 0 ? void 0 : _b.forEach(nestedInfo => {
514
- expressionList.push(`${data.field} = '${nestedInfo.legendElementInfo.value}'`);
515
- });
516
- }
517
- });
518
- expressionList.forEach(expression => {
519
- if (data.queryExpressions.indexOf(expression) === -1) {
520
- data.queryExpressions.push(expression);
521
- }
522
- });
523
- let where = data.queryExpressions.join(' OR ');
524
- const allUntouched = nestedCategories.every(nestedCategory => { var _a; return (_a = nestedCategory.nestedInfos) === null || _a === void 0 ? void 0 : _a.every(nestedInfo => !nestedInfo.selected); });
525
- if (allUntouched) {
526
- if ((_c = (_b = data === null || data === void 0 ? void 0 : data.fLayerView) === null || _b === void 0 ? void 0 : _b.filter) === null || _c === void 0 ? void 0 : _c.where)
527
- data.fLayerView.filter.where = '';
528
- if ((_f = (_e = (_d = data === null || data === void 0 ? void 0 : data.fLayerView) === null || _d === void 0 ? void 0 : _d.featureEffect) === null || _e === void 0 ? void 0 : _e.filter) === null || _f === void 0 ? void 0 : _f.where)
529
- data.fLayerView.featureEffect = null;
530
- data.queryExpressions = [];
531
- }
532
- else {
533
- if ((_h = (_g = data === null || data === void 0 ? void 0 : data.fLayerView) === null || _g === void 0 ? void 0 : _g.filter) === null || _h === void 0 ? void 0 : _h.where)
534
- data.fLayerView.filter.where = where;
535
- if ((_l = (_k = (_j = data === null || data === void 0 ? void 0 : data.fLayerView) === null || _j === void 0 ? void 0 : _j.featureEffect) === null || _k === void 0 ? void 0 : _k.filter) === null || _l === void 0 ? void 0 : _l.where)
536
- data.fLayerView.featureEffect.filter.where = where;
537
- }
538
- return data;
507
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
508
+ const nestedUniqueInfoCategory = data.categories.get(nestedUniqueSymbolCategoryId);
509
+ (_a = nestedUniqueInfoCategory === null || nestedUniqueInfoCategory === void 0 ? void 0 : nestedUniqueInfoCategory.nestedInfos) === null || _a === void 0 ? void 0 : _a.forEach(nestedInfo => {
510
+ const expression = `${data.field} = '${nestedInfo.legendElementInfo.value}'`;
511
+ const existingIndex = data.queryExpressions.indexOf(expression);
512
+ if (existingIndex !== -1) {
513
+ data.queryExpressions.splice(existingIndex, 1);
514
+ }
515
+ nestedInfo.selected = false;
516
+ });
517
+ const expressionList = [];
518
+ const nestedCategories = Array.from(data.categories).map(entry => entry[1]);
519
+ nestedCategories.forEach(nestedCategory => {
520
+ var _a, _b;
521
+ const untouched = (_a = nestedCategory.nestedInfos) === null || _a === void 0 ? void 0 : _a.every(nestedInfo => !nestedInfo.selected);
522
+ if (untouched) {
523
+ (_b = nestedCategory.nestedInfos) === null || _b === void 0 ? void 0 : _b.forEach(nestedInfo => {
524
+ expressionList.push(`${data.field} = '${nestedInfo.legendElementInfo.value}'`);
525
+ });
526
+ }
527
+ });
528
+ expressionList.forEach(expression => {
529
+ if (data.queryExpressions.indexOf(expression) === -1) {
530
+ data.queryExpressions.push(expression);
531
+ }
532
+ });
533
+ let where = data.queryExpressions.join(' OR ');
534
+ const allUntouched = nestedCategories.every(nestedCategory => { var _a; return (_a = nestedCategory.nestedInfos) === null || _a === void 0 ? void 0 : _a.every(nestedInfo => !nestedInfo.selected); });
535
+ if (allUntouched) {
536
+ if ((_c = (_b = data === null || data === void 0 ? void 0 : data.fLayerView) === null || _b === void 0 ? void 0 : _b.filter) === null || _c === void 0 ? void 0 : _c.where)
537
+ data.fLayerView.filter.where = '';
538
+ if ((_f = (_e = (_d = data === null || data === void 0 ? void 0 : data.fLayerView) === null || _d === void 0 ? void 0 : _d.featureEffect) === null || _e === void 0 ? void 0 : _e.filter) === null || _f === void 0 ? void 0 : _f.where)
539
+ data.fLayerView.featureEffect = null;
540
+ data.queryExpressions = [];
541
+ }
542
+ else {
543
+ if ((_h = (_g = data === null || data === void 0 ? void 0 : data.fLayerView) === null || _g === void 0 ? void 0 : _g.filter) === null || _h === void 0 ? void 0 : _h.where)
544
+ data.fLayerView.filter.where = where;
545
+ if ((_l = (_k = (_j = data === null || data === void 0 ? void 0 : data.fLayerView) === null || _j === void 0 ? void 0 : _j.featureEffect) === null || _k === void 0 ? void 0 : _k.filter) === null || _l === void 0 ? void 0 : _l.where)
546
+ data.fLayerView.featureEffect.filter.where = where;
547
+ }
548
+ return data;
539
549
  }
540
550
  async function zoomTo(data, view, nestedCategory) {
541
- var _a, _b;
542
- const query = data.fLayerView.createQuery();
543
- if (nestedCategory) {
544
- const noneSelected = nestedCategory.nestedInfos.every((nestedInfo) => !nestedInfo.selected);
545
- if (noneSelected) {
546
- const expression = nestedCategory.nestedInfos.map(nestedInfo => `${data.field} = '${nestedInfo.legendElementInfo.value}'`).join(' OR ');
547
- query.where = expression;
551
+ var _a, _b;
552
+ const query = data.fLayerView.createQuery();
553
+ if (nestedCategory) {
554
+ const noneSelected = nestedCategory.nestedInfos.every((nestedInfo) => !nestedInfo.selected);
555
+ if (noneSelected) {
556
+ const expression = nestedCategory.nestedInfos.map(nestedInfo => `${data.field} = '${nestedInfo.legendElementInfo.value}'`).join(' OR ');
557
+ query.where = expression;
558
+ }
559
+ else {
560
+ const expression = nestedCategory.nestedInfos
561
+ .filter(nestedInfo => nestedInfo.selected)
562
+ .map(nestedInfo => `${data.field} = '${nestedInfo.legendElementInfo.value}'`)
563
+ .join(' OR ');
564
+ query.where = expression;
565
+ }
548
566
  }
549
567
  else {
550
- const expression = nestedCategory.nestedInfos
551
- .filter(nestedInfo => nestedInfo.selected)
552
- .map(nestedInfo => `${data.field} = '${nestedInfo.legendElementInfo.value}'`)
553
- .join(' OR ');
554
- query.where = expression;
555
- }
556
- }
557
- else {
558
- const where = data.queryExpressions.join(' OR ');
559
- query.where = where;
560
- }
561
- try {
562
- const geometry = await ((_b = (_a = data === null || data === void 0 ? void 0 : data.fLayerView) === null || _a === void 0 ? void 0 : _a.layer) === null || _b === void 0 ? void 0 : _b.queryExtent(query));
563
- await view.goTo(geometry);
564
- }
565
- catch (_c) { }
568
+ const where = data.queryExpressions.join(' OR ');
569
+ query.where = where;
570
+ }
571
+ try {
572
+ const { extent } = await ((_b = (_a = data === null || data === void 0 ? void 0 : data.fLayerView) === null || _a === void 0 ? void 0 : _a.layer) === null || _b === void 0 ? void 0 : _b.queryExtent(query));
573
+ await view.goTo(extent);
574
+ }
575
+ catch (_c) { }
566
576
  }
567
577
  // count
568
578
  function calculateTotalCount(categoriesArr) {
569
- const totalCount = categoriesArr.map((category) => category === null || category === void 0 ? void 0 : category.count).reduce((acc, curr) => acc + curr);
570
- return totalCount;
579
+ const totalCount = categoriesArr.map((category) => category === null || category === void 0 ? void 0 : category.count).reduce((acc, curr) => acc + curr);
580
+ return totalCount;
571
581
  }
572
582
  function calculateTotalFeatureCountForNestedSymbols(categoriesArr) {
573
- return categoriesArr
574
- .map(category => { var _a; return (_a = category === null || category === void 0 ? void 0 : category.nestedInfos) === null || _a === void 0 ? void 0 : _a.map(nestedInfo => nestedInfo.count).reduce((acc, curr) => acc + curr); })
575
- .reduce((acc, curr) => acc + curr);
583
+ return categoriesArr
584
+ .map(category => { var _a; return (_a = category === null || category === void 0 ? void 0 : category.nestedInfos) === null || _a === void 0 ? void 0 : _a.map(nestedInfo => nestedInfo.count).reduce((acc, curr) => acc + curr); })
585
+ .reduce((acc, curr) => acc + curr);
576
586
  }
577
587
  async function getInfoCount(extent, fLayerView, field, info, infoIndex, legendElement, nestedUniqueSymbolInfo, nestedUniqueSymbolInfoIndex) {
578
- var _a, _b, _c;
579
- if (!fLayerView)
580
- return;
581
- const query = ((_a = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.layer) === null || _a === void 0 ? void 0 : _a.type) === 'feature' ? fLayerView.createQuery() : null;
582
- const where = checkPredominance(fLayerView)
583
- ? handlePredominanceExpression(info, fLayerView)
584
- : info.type
585
- ? generateQueryExpression(nestedUniqueSymbolInfo, field, nestedUniqueSymbolInfoIndex, info, info.infos)
586
- : generateQueryExpression(info, field, infoIndex, legendElement, legendElement.infos);
587
- if (query && where) {
588
- query.where = where === '1=0' ? '1=1' : where;
589
- query.geometry = extent;
590
- }
591
- try {
592
- const featureCount = query ? await fLayerView.queryFeatureCount(query) : null;
593
- return Promise.resolve({ [(_b = info.label) !== null && _b !== void 0 ? _b : (_c = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.layer) === null || _c === void 0 ? void 0 : _c.id]: featureCount });
594
- }
595
- catch (err) {
596
- console.error("FAILURE AT 'getInfoCount': ", err);
597
- }
598
- return Promise.resolve(null);
588
+ var _a, _b, _c;
589
+ if (!fLayerView)
590
+ return;
591
+ const fieldExists = checkIfFieldExists(fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.layer, field);
592
+ if (!fieldExists)
593
+ return;
594
+ const query = ((_a = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.layer) === null || _a === void 0 ? void 0 : _a.type) === 'feature' ? fLayerView.createQuery() : null;
595
+ const where = checkPredominance(fLayerView)
596
+ ? handlePredominanceExpression(info, fLayerView)
597
+ : info.type
598
+ ? generateQueryExpression(nestedUniqueSymbolInfo, field, nestedUniqueSymbolInfoIndex, info, info.infos)
599
+ : generateQueryExpression(info, field, infoIndex, legendElement, legendElement.infos);
600
+ if (query && where) {
601
+ query.where = where === '1=0' ? '1=1' : where;
602
+ query.geometry = extent;
603
+ }
604
+ try {
605
+ const featureCount = query ? await fLayerView.queryFeatureCount(query) : null;
606
+ return Promise.resolve({ [(_b = info.label) !== null && _b !== void 0 ? _b : (_c = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.layer) === null || _c === void 0 ? void 0 : _c.id]: featureCount });
607
+ }
608
+ catch (err) {
609
+ console.error("FAILURE AT 'getInfoCount': ", err);
610
+ }
611
+ return Promise.resolve(null);
599
612
  }
600
613
  async function handleFeatureCount(legendViewModel, data) {
601
- let updatedData = Object.assign({}, data);
602
- const { activeLayerInfos } = legendViewModel;
603
- let dataCount = {};
604
- const countPromises = {};
605
- activeLayerInfos.forEach(async (activeLayerInfo) => {
606
- var _a, _b, _c, _d;
607
- const legendElement = activeLayerInfo.legendElements[0];
608
- const fLayer = activeLayerInfo.layer;
609
- const fLayerView = (_b = data[(_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _a === void 0 ? void 0 : _a.id]) === null || _b === void 0 ? void 0 : _b.fLayerView;
610
- const field = (_c = fLayer.renderer) === null || _c === void 0 ? void 0 : _c.field;
611
- const counts = [];
612
- countPromises[activeLayerInfo.layer.id] = [];
613
- (_d = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _d === void 0 ? void 0 : _d.forEach((info, infoIndex) => {
614
- var _a;
615
- const isNestedUniqueSymbol = (_a = legendElement.infos) === null || _a === void 0 ? void 0 : _a.every(info => info.type === 'symbol-table');
616
- if (isNestedUniqueSymbol) {
617
- const nestedInfoCounts = [];
618
- info.infos.forEach((nestedUniqueSymbolInfo, nestedUniqueSymbolInfoIndex) => {
619
- const infoCount = getInfoCount(legendViewModel.view.extent, fLayerView, field, info, infoIndex, legendElement, nestedUniqueSymbolInfo, nestedUniqueSymbolInfoIndex);
620
- nestedInfoCounts.push(infoCount);
614
+ let updatedData = Object.assign({}, data);
615
+ const { activeLayerInfos } = legendViewModel;
616
+ let dataCount = {};
617
+ const countPromises = {};
618
+ activeLayerInfos.forEach(async (activeLayerInfo) => {
619
+ var _a, _b, _c, _d;
620
+ const legendElement = activeLayerInfo.legendElements[0];
621
+ const fLayer = activeLayerInfo.layer;
622
+ const fLayerView = (_b = data[(_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _a === void 0 ? void 0 : _a.id]) === null || _b === void 0 ? void 0 : _b.fLayerView;
623
+ const field = (_c = fLayer.renderer) === null || _c === void 0 ? void 0 : _c.field;
624
+ const counts = [];
625
+ countPromises[activeLayerInfo.layer.id] = [];
626
+ (_d = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _d === void 0 ? void 0 : _d.forEach((info, infoIndex) => {
627
+ var _a;
628
+ const isNestedUniqueSymbol = (_a = legendElement.infos) === null || _a === void 0 ? void 0 : _a.every(info => info.type === 'symbol-table');
629
+ if (isNestedUniqueSymbol) {
630
+ const nestedInfoCounts = [];
631
+ info.infos.forEach((nestedUniqueSymbolInfo, nestedUniqueSymbolInfoIndex) => {
632
+ const infoCount = getInfoCount(legendViewModel.view.extent, fLayerView, field, info, infoIndex, legendElement, nestedUniqueSymbolInfo, nestedUniqueSymbolInfoIndex);
633
+ nestedInfoCounts.push(infoCount);
634
+ });
635
+ countPromises[activeLayerInfo.layer.id].push(nestedInfoCounts);
636
+ }
637
+ else {
638
+ counts.push(getInfoCount(legendViewModel.view.extent, fLayerView, field, info, infoIndex, legendElement));
639
+ countPromises[activeLayerInfo.layer.id] = counts;
640
+ }
621
641
  });
622
- countPromises[activeLayerInfo.layer.id].push(nestedInfoCounts);
623
- }
624
- else {
625
- counts.push(getInfoCount(legendViewModel.view.extent, fLayerView, field, info, infoIndex, legendElement));
626
- countPromises[activeLayerInfo.layer.id] = counts;
627
- }
628
- });
629
- const handleALIChild = (aliChild) => {
630
- var _a, _b, _c, _d;
631
- const childCounts = [];
632
- const legendElement = aliChild.legendElements[0];
633
- const fLayer = aliChild.layer;
634
- const fLayerView = (_b = data[(_a = aliChild === null || aliChild === void 0 ? void 0 : aliChild.layer) === null || _a === void 0 ? void 0 : _a.id]) === null || _b === void 0 ? void 0 : _b.fLayerView;
635
- const field = (_c = fLayer.renderer) === null || _c === void 0 ? void 0 : _c.field;
636
- (_d = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _d === void 0 ? void 0 : _d.forEach((info, infoIndex) => childCounts.push(getInfoCount(legendViewModel.view.extent, fLayerView, field, info, infoIndex, legendElement)));
637
- countPromises[aliChild.layer.id] = childCounts;
638
- };
639
- activeLayerInfo.children.forEach(async (aliChild) => {
640
- var _a;
641
- handleALIChild(aliChild);
642
- if (((_a = aliChild === null || aliChild === void 0 ? void 0 : aliChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
643
- aliChild.children.forEach(innerALIChild => {
644
- var _a;
645
- handleALIChild(innerALIChild);
646
- if (((_a = innerALIChild === null || innerALIChild === void 0 ? void 0 : innerALIChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
647
- innerALIChild.children.forEach(innerInnerALIChild => {
648
- handleALIChild(innerInnerALIChild);
649
- });
650
- }
642
+ const handleALIChild = (aliChild) => {
643
+ var _a, _b, _c, _d;
644
+ const childCounts = [];
645
+ const legendElement = aliChild.legendElements[0];
646
+ const fLayer = aliChild.layer;
647
+ const fLayerView = (_b = data[(_a = aliChild === null || aliChild === void 0 ? void 0 : aliChild.layer) === null || _a === void 0 ? void 0 : _a.id]) === null || _b === void 0 ? void 0 : _b.fLayerView;
648
+ const field = (_c = fLayer.renderer) === null || _c === void 0 ? void 0 : _c.field;
649
+ (_d = legendElement === null || legendElement === void 0 ? void 0 : legendElement.infos) === null || _d === void 0 ? void 0 : _d.forEach((info, infoIndex) => childCounts.push(getInfoCount(legendViewModel.view.extent, fLayerView, field, info, infoIndex, legendElement)));
650
+ countPromises[aliChild.layer.id] = childCounts;
651
+ };
652
+ activeLayerInfo.children.forEach(async (aliChild) => {
653
+ var _a;
654
+ handleALIChild(aliChild);
655
+ if (((_a = aliChild === null || aliChild === void 0 ? void 0 : aliChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
656
+ aliChild.children.forEach(innerALIChild => {
657
+ var _a;
658
+ handleALIChild(innerALIChild);
659
+ if (((_a = innerALIChild === null || innerALIChild === void 0 ? void 0 : innerALIChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
660
+ innerALIChild.children.forEach(innerInnerALIChild => {
661
+ handleALIChild(innerInnerALIChild);
662
+ });
663
+ }
664
+ });
665
+ }
651
666
  });
652
- }
653
667
  });
654
- });
655
- for (const countPromise in countPromises) {
656
- let countObj = dataCount[countPromise];
657
- if (!countObj)
658
- countObj = dataCount[countPromise] = {};
659
- const countRes = await Promise.all(countPromises[countPromise]);
660
- if (countRes.every(countResItem => Array.isArray(countResItem))) {
661
- const countArr2d = await Promise.all(countRes.map(async (countResItem) => {
662
- const promise = await Promise.all(countResItem);
663
- const count = promise.map(promiseItem => promiseItem && Object.values(promiseItem)[0]);
664
- return count;
665
- }));
666
- countObj[countPromise] = countArr2d;
667
- dataCount[countPromise] = Object.assign({}, countObj[countPromise]);
668
+ for (const countPromise in countPromises) {
669
+ let countObj = dataCount[countPromise];
670
+ if (!countObj)
671
+ countObj = dataCount[countPromise] = {};
672
+ const countRes = await Promise.all(countPromises[countPromise]);
673
+ if (countRes.every(countResItem => Array.isArray(countResItem))) {
674
+ const countArr2d = await Promise.all(countRes.map(async (countResItem) => {
675
+ const promise = await Promise.all(countResItem);
676
+ const count = promise.map(promiseItem => promiseItem && Object.values(promiseItem)[0]);
677
+ return count;
678
+ }));
679
+ countObj[countPromise] = countArr2d;
680
+ dataCount[countPromise] = Object.assign({}, countObj[countPromise]);
681
+ }
682
+ else {
683
+ const layerCountObj = {};
684
+ countRes.forEach(countResItem => {
685
+ if (!countResItem)
686
+ return;
687
+ const id = Object.keys(countResItem)[0];
688
+ layerCountObj[id] = countResItem[id];
689
+ });
690
+ if (countPromise)
691
+ countObj[countPromise] = layerCountObj;
692
+ dataCount[countPromise] = Object.assign({}, countObj[countPromise]);
693
+ }
668
694
  }
669
- else {
670
- const layerCountObj = {};
671
- countRes.forEach(countResItem => {
672
- if (!countResItem)
673
- return;
674
- const id = Object.keys(countResItem)[0];
675
- layerCountObj[id] = countResItem[id];
676
- });
677
- if (countPromise)
678
- countObj[countPromise] = layerCountObj;
679
- dataCount[countPromise] = Object.assign({}, countObj[countPromise]);
680
- }
681
- }
682
- activeLayerInfos.forEach(activeLayerInfo => {
683
- var _a;
684
- const dataFromActiveLayerInfo = data[activeLayerInfo.layer.id];
685
- const layerId = activeLayerInfo.layer.id;
686
- (_a = dataFromActiveLayerInfo === null || dataFromActiveLayerInfo === void 0 ? void 0 : dataFromActiveLayerInfo.categories) === null || _a === void 0 ? void 0 : _a.forEach((category, key) => {
687
- var _a;
688
- const categoriesArr = Array.from(dataFromActiveLayerInfo === null || dataFromActiveLayerInfo === void 0 ? void 0 : dataFromActiveLayerInfo.categories);
689
- const categoryIndex = categoriesArr.findIndex((categoryArrItem) => categoryArrItem[0] === key);
690
- if (category === null || category === void 0 ? void 0 : category.nestedInfos) {
691
- category === null || category === void 0 ? void 0 : category.nestedInfos.forEach((nestedInfo, nestedInfoIndex) => {
692
- var _a, _b, _c;
693
- const count = (_c = (_b = dataCount === null || dataCount === void 0 ? void 0 : dataCount[(_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _a === void 0 ? void 0 : _a.id]) === null || _b === void 0 ? void 0 : _b[categoryIndex]) === null || _c === void 0 ? void 0 : _c[nestedInfoIndex];
694
- nestedInfo.count = !isNaN(count) ? count : null;
695
- });
696
- }
697
- else {
698
- const count = (_a = dataCount === null || dataCount === void 0 ? void 0 : dataCount[layerId]) === null || _a === void 0 ? void 0 : _a[key];
699
- category.count = !isNaN(count) ? count : null;
700
- }
701
- });
702
- const handleALIChild = (aliChild) => {
703
- var _a;
704
- const childLayerId = aliChild.layer.id;
705
- const dataFromActiveLayerInfo = data[childLayerId];
706
- (_a = dataFromActiveLayerInfo === null || dataFromActiveLayerInfo === void 0 ? void 0 : dataFromActiveLayerInfo.categories) === null || _a === void 0 ? void 0 : _a.forEach((category, key) => {
695
+ activeLayerInfos.forEach(activeLayerInfo => {
707
696
  var _a;
708
- const count = (_a = dataCount === null || dataCount === void 0 ? void 0 : dataCount[childLayerId]) === null || _a === void 0 ? void 0 : _a[key];
709
- category.count = count;
710
- });
711
- };
712
- activeLayerInfo.children.forEach(aliChild => {
713
- var _a;
714
- handleALIChild(aliChild);
715
- if (((_a = aliChild === null || aliChild === void 0 ? void 0 : aliChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
716
- aliChild.children.forEach(innerALIChild => {
717
- var _a;
718
- handleALIChild(innerALIChild);
719
- if (((_a = innerALIChild === null || innerALIChild === void 0 ? void 0 : innerALIChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
720
- innerALIChild.children.forEach(innerInnerALIChild => {
721
- handleALIChild(innerInnerALIChild);
697
+ const dataFromActiveLayerInfo = data[activeLayerInfo.layer.id];
698
+ const layerId = activeLayerInfo.layer.id;
699
+ (_a = dataFromActiveLayerInfo === null || dataFromActiveLayerInfo === void 0 ? void 0 : dataFromActiveLayerInfo.categories) === null || _a === void 0 ? void 0 : _a.forEach((category, key) => {
700
+ var _a;
701
+ const categoriesArr = Array.from(dataFromActiveLayerInfo === null || dataFromActiveLayerInfo === void 0 ? void 0 : dataFromActiveLayerInfo.categories);
702
+ const categoryIndex = categoriesArr.findIndex((categoryArrItem) => categoryArrItem[0] === key);
703
+ if (category === null || category === void 0 ? void 0 : category.nestedInfos) {
704
+ category === null || category === void 0 ? void 0 : category.nestedInfos.forEach((nestedInfo, nestedInfoIndex) => {
705
+ var _a, _b, _c;
706
+ const count = (_c = (_b = dataCount === null || dataCount === void 0 ? void 0 : dataCount[(_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.layer) === null || _a === void 0 ? void 0 : _a.id]) === null || _b === void 0 ? void 0 : _b[categoryIndex]) === null || _c === void 0 ? void 0 : _c[nestedInfoIndex];
707
+ nestedInfo.count = !isNaN(count) ? count : null;
708
+ });
709
+ }
710
+ else {
711
+ const count = (_a = dataCount === null || dataCount === void 0 ? void 0 : dataCount[layerId]) === null || _a === void 0 ? void 0 : _a[key];
712
+ category.count = !isNaN(count) ? count : null;
713
+ }
714
+ });
715
+ const handleALIChild = (aliChild) => {
716
+ var _a;
717
+ const childLayerId = aliChild.layer.id;
718
+ const dataFromActiveLayerInfo = data[childLayerId];
719
+ (_a = dataFromActiveLayerInfo === null || dataFromActiveLayerInfo === void 0 ? void 0 : dataFromActiveLayerInfo.categories) === null || _a === void 0 ? void 0 : _a.forEach((category, key) => {
720
+ var _a;
721
+ const count = (_a = dataCount === null || dataCount === void 0 ? void 0 : dataCount[childLayerId]) === null || _a === void 0 ? void 0 : _a[key];
722
+ category.count = count;
722
723
  });
723
- }
724
+ };
725
+ activeLayerInfo.children.forEach(aliChild => {
726
+ var _a;
727
+ handleALIChild(aliChild);
728
+ if (((_a = aliChild === null || aliChild === void 0 ? void 0 : aliChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
729
+ aliChild.children.forEach(innerALIChild => {
730
+ var _a;
731
+ handleALIChild(innerALIChild);
732
+ if (((_a = innerALIChild === null || innerALIChild === void 0 ? void 0 : innerALIChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
733
+ innerALIChild.children.forEach(innerInnerALIChild => {
734
+ handleALIChild(innerInnerALIChild);
735
+ });
736
+ }
737
+ });
738
+ }
724
739
  });
725
- }
726
740
  });
727
- });
728
- return Promise.resolve(updatedData);
741
+ return Promise.resolve(updatedData);
729
742
  }
730
743
  // nested
731
744
  function getNestedInfoData(category, infoIndex) {
732
- var _a;
733
- return (_a = category === null || category === void 0 ? void 0 : category.nestedInfos) === null || _a === void 0 ? void 0 : _a[infoIndex];
745
+ var _a;
746
+ return (_a = category === null || category === void 0 ? void 0 : category.nestedInfos) === null || _a === void 0 ? void 0 : _a[infoIndex];
734
747
  }
735
748
  function checkNestedUniqueSymbol(categories) {
736
- const categoriesArr = Array.from(categories).map((category) => category[1]);
737
- return categoriesArr.every((category) => !!(category === null || category === void 0 ? void 0 : category.nestedInfos));
749
+ const categoriesArr = Array.from(categories).map((category) => category[1]);
750
+ return categoriesArr.every((category) => !!(category === null || category === void 0 ? void 0 : category.nestedInfos));
738
751
  }
739
752
  function checkNestedUniqueSymbolLegendElement(activeLayerInfo) {
740
- var _a, _b, _c, _d;
741
- return !!((_d = (_c = (_b = (_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.infos) === null || _c === void 0 ? void 0 : _c.every) === null || _d === void 0 ? void 0 : _d.call(_c, info => (info === null || info === void 0 ? void 0 : info.type) === 'symbol-table'));
753
+ var _a, _b, _c, _d;
754
+ return !!((_d = (_c = (_b = (_a = activeLayerInfo === null || activeLayerInfo === void 0 ? void 0 : activeLayerInfo.legendElements) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.infos) === null || _c === void 0 ? void 0 : _c.every) === null || _d === void 0 ? void 0 : _d.call(_c, info => (info === null || info === void 0 ? void 0 : info.type) === 'symbol-table'));
742
755
  }
743
756
  function getParentLegendElementInfoData(data, parentLegendElementInfo) {
744
- var _a;
745
- return (_a = data === null || data === void 0 ? void 0 : data.categories) === null || _a === void 0 ? void 0 : _a.get(parentLegendElementInfo === null || parentLegendElementInfo === void 0 ? void 0 : parentLegendElementInfo.title);
757
+ var _a;
758
+ return (_a = data === null || data === void 0 ? void 0 : data.categories) === null || _a === void 0 ? void 0 : _a.get(parentLegendElementInfo === null || parentLegendElementInfo === void 0 ? void 0 : parentLegendElementInfo.title);
746
759
  }
747
760
  // theme
748
761
  function getTheme(el) {
749
- const calciteMode = `calcite-mode-`;
750
- const light = `${calciteMode}light`;
751
- const dark = `${calciteMode}dark`;
752
- const isDarkTheme = el.classList.contains(dark);
753
- return isDarkTheme ? dark : light;
762
+ const calciteMode = `calcite-mode-`;
763
+ const light = `${calciteMode}light`;
764
+ const dark = `${calciteMode}dark`;
765
+ const isDarkTheme = el.classList.contains(dark);
766
+ return isDarkTheme ? dark : light;
754
767
  }
755
768
  // store
756
769
  function updateStore(layerData) {
757
- if (layerData.layerId && layerData.intLegendLayerData) {
758
- const layerId = layerData.layerId;
759
- const layerDataToSet = layerData.intLegendLayerData;
760
- store.set('data', Object.assign(Object.assign({}, interactiveLegendState.data), { [layerId]: layerDataToSet }));
761
- }
770
+ if (layerData.layerId && layerData.intLegendLayerData) {
771
+ const layerId = layerData.layerId;
772
+ const layerDataToSet = layerData.intLegendLayerData;
773
+ const data = Object.assign(Object.assign({}, interactiveLegendState.data), { [layerId]: layerDataToSet });
774
+ store.set('data', data);
775
+ }
762
776
  }
763
777
  // handleFilterChange - Configuration experience
764
778
  function handleFilterChange(filterMode, view) {
765
- const { type } = filterMode;
766
- if (type === 'filter') {
767
- updateExistingFilterToFeatureFilter(view);
768
- }
769
- else if (type === 'effect') {
770
- updateExistingFilterToFeatureEffect(filterMode, view);
771
- }
779
+ const { type } = filterMode;
780
+ if (type === 'filter') {
781
+ updateExistingFilterToFeatureFilter(view);
782
+ }
783
+ else if (type === 'effect') {
784
+ updateExistingFilterToFeatureEffect(filterMode, view);
785
+ }
772
786
  }
773
787
  function updateExistingFilterToFeatureFilter(view) {
774
- var _a, _b;
775
- (_b = (_a = view === null || view === void 0 ? void 0 : view.allLayerViews) === null || _a === void 0 ? void 0 : _a.filter((layerView) => { var _a; return ((_a = layerView === null || layerView === void 0 ? void 0 : layerView.layer) === null || _a === void 0 ? void 0 : _a.type) === 'feature'; })) === null || _b === void 0 ? void 0 : _b.forEach((fLayerView) => {
776
- const existingFilter = getExistingFilter(fLayerView);
777
- fLayerView.filter = existingFilter;
778
- fLayerView.set('featureEffect', null);
779
- });
788
+ var _a, _b;
789
+ (_b = (_a = view === null || view === void 0 ? void 0 : view.allLayerViews) === null || _a === void 0 ? void 0 : _a.filter((layerView) => { var _a; return ((_a = layerView === null || layerView === void 0 ? void 0 : layerView.layer) === null || _a === void 0 ? void 0 : _a.type) === 'feature'; })) === null || _b === void 0 ? void 0 : _b.forEach((fLayerView) => {
790
+ const existingFilter = getExistingFilter(fLayerView);
791
+ fLayerView.filter = existingFilter;
792
+ fLayerView.set('featureEffect', null);
793
+ });
780
794
  }
781
795
  function updateExistingFilterToFeatureEffect(filterMode, view) {
782
- var _a;
783
- (_a = view === null || view === void 0 ? void 0 : view.allLayerViews) === null || _a === void 0 ? void 0 : _a.filter((layerView) => { var _a; return ((_a = layerView === null || layerView === void 0 ? void 0 : layerView.layer) === null || _a === void 0 ? void 0 : _a.type) === 'feature'; }).forEach(async (fLayerView) => {
784
- if ((filterMode === null || filterMode === void 0 ? void 0 : filterMode.effect) && fLayerView) {
785
- const [FeatureEffect] = await loadModules(['esri/layers/support/FeatureEffect']);
786
- const { includedEffect, excludedEffect } = filterMode.effect;
787
- const mergedExcludedEffect = await getMergedEffect(excludedEffect, fLayerView, 'excludedEffect');
788
- const mergedIncludedEffect = await getMergedEffect(includedEffect, fLayerView, 'includedEffect');
789
- const existingFilter = getExistingFilter(fLayerView);
790
- fLayerView.featureEffect = new FeatureEffect({
791
- filter: existingFilter,
792
- includedEffect: mergedIncludedEffect,
793
- excludedEffect: mergedExcludedEffect,
794
- });
795
- fLayerView.set('filter', null);
796
- }
797
- });
796
+ var _a;
797
+ (_a = view === null || view === void 0 ? void 0 : view.allLayerViews) === null || _a === void 0 ? void 0 : _a.filter((layerView) => { var _a; return ((_a = layerView === null || layerView === void 0 ? void 0 : layerView.layer) === null || _a === void 0 ? void 0 : _a.type) === 'feature'; }).forEach(async (fLayerView) => {
798
+ if ((filterMode === null || filterMode === void 0 ? void 0 : filterMode.effect) && fLayerView) {
799
+ const [FeatureEffect] = await loadModules(['esri/layers/support/FeatureEffect']);
800
+ const { includedEffect, excludedEffect } = filterMode.effect;
801
+ const mergedExcludedEffect = await getMergedEffect(excludedEffect, fLayerView, 'excludedEffect');
802
+ const mergedIncludedEffect = await getMergedEffect(includedEffect, fLayerView, 'includedEffect');
803
+ const existingFilter = getExistingFilter(fLayerView);
804
+ fLayerView.featureEffect = new FeatureEffect({
805
+ filter: existingFilter,
806
+ includedEffect: mergedIncludedEffect,
807
+ excludedEffect: mergedExcludedEffect,
808
+ });
809
+ fLayerView.set('filter', null);
810
+ }
811
+ });
798
812
  }
799
813
  function getExistingFilter(fLayerView) {
800
- var _a;
801
- return (fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.filter) || ((_a = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.featureEffect) === null || _a === void 0 ? void 0 : _a.filter);
814
+ var _a;
815
+ return (fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.filter) || ((_a = fLayerView === null || fLayerView === void 0 ? void 0 : fLayerView.featureEffect) === null || _a === void 0 ? void 0 : _a.filter);
816
+ }
817
+ function checkIfFieldExists(fLayer, field) {
818
+ const fields = fLayer === null || fLayer === void 0 ? void 0 : fLayer.fields;
819
+ const fieldNames = fields && fields.map(field => field.name);
820
+ return field ? fieldNames && fieldNames.includes(field) : true;
821
+ }
822
+ function getAllActiveLayerInfos(activeLayerInfos) {
823
+ const arr = [];
824
+ activeLayerInfos.forEach(acl => flattenActiveLayerInfos(acl, arr));
825
+ return arr;
826
+ }
827
+ function flattenActiveLayerInfos(activeLayerInfo, arr) {
828
+ arr.push(activeLayerInfo);
829
+ if (activeLayerInfo.children && activeLayerInfo.children.length > 0) {
830
+ activeLayerInfo.children.forEach(child => {
831
+ flattenActiveLayerInfos(child, arr);
832
+ });
833
+ }
802
834
  }
803
835
 
804
- export { getParentLegendElementInfoData as a, getCategoryData as b, checkNoneSelected as c, handleFeatureCount as d, generateData as e, createInteractiveLegendDataForLayer as f, getTheme as g, handleFilterChange as h, handleFilter as i, getIntLegendLayerData as j, getCategoriesArray as k, checkNestedUniqueSymbol as l, calculateTotalFeatureCountForNestedSymbols as m, checkRelationshipRamp as n, calculateTotalCount as o, getNestedInfoData as p, checkNestedUniqueSymbolLegendElement as q, showAll as r, showAllNestedUniqueSymbol as s, updateStore as u, validateInteractivity as v, zoomTo as z };
836
+ export { getParentLegendElementInfoData as a, getCategoryData as b, checkNoneSelected as c, handleFeatureCount as d, generateData as e, getAllActiveLayerInfos as f, getTheme as g, handleFilterChange as h, createInteractiveLegendDataForLayer as i, handleFilter as j, getIntLegendLayerData as k, getCategoriesArray as l, checkNestedUniqueSymbol as m, calculateTotalFeatureCountForNestedSymbols as n, checkRelationshipRamp as o, calculateTotalCount as p, getNestedInfoData as q, checkNestedUniqueSymbolLegendElement as r, showAllNestedUniqueSymbol as s, showAll as t, updateStore as u, validateInteractivity as v, zoomTo as z };