@esri/solutions-components 0.10.48 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1243) hide show
  1. package/dist/cjs/ExpandToggle-44886935.js +115 -0
  2. package/dist/cjs/FloatingArrow-d7ea2b0f.js +48 -0
  3. package/dist/cjs/Heading-ee0aa171.js +25 -0
  4. package/dist/cjs/IdentityManager-d84c82f1.js +2047 -0
  5. package/dist/cjs/Validation-9515ef0c.js +20 -0
  6. package/dist/cjs/app-globals-03a6ab9b.js +67 -0
  7. package/dist/cjs/ar-180cd9b0.js +106 -0
  8. package/dist/cjs/asyncToGenerator-c7fc3ee4.js +92 -0
  9. package/dist/cjs/basemap-gallery_7.cjs.entry.js +37 -12
  10. package/dist/cjs/bg-fd095c86.js +84 -0
  11. package/dist/cjs/browser-717f77af.js +35 -0
  12. package/dist/cjs/bs-11fa6f0d.js +53 -0
  13. package/dist/cjs/buffer-tools_3.cjs.entry.js +6 -6
  14. package/dist/cjs/ca-0685b1cc.js +73 -0
  15. package/dist/cjs/calcite-accordion_2.cjs.entry.js +5 -5
  16. package/dist/cjs/calcite-action-bar.cjs.entry.js +8 -8
  17. package/dist/cjs/calcite-action-group.cjs.entry.js +7 -7
  18. package/dist/cjs/calcite-action-menu_2.cjs.entry.js +9 -9
  19. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +8 -8
  20. package/dist/cjs/calcite-action_2.cjs.entry.js +13 -13
  21. package/dist/cjs/calcite-alert_2.cjs.entry.js +500 -0
  22. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  23. package/dist/cjs/calcite-block-section.cjs.entry.js +6 -6
  24. package/dist/cjs/calcite-block_5.cjs.entry.js +17 -17
  25. package/dist/cjs/calcite-button-de2c2e75.js +282 -0
  26. package/dist/cjs/calcite-button.cjs.entry.js +8 -8
  27. package/dist/cjs/calcite-card-group.cjs.entry.js +4 -4
  28. package/dist/cjs/calcite-card.cjs.entry.js +7 -7
  29. package/dist/cjs/calcite-carousel_2.cjs.entry.js +7 -7
  30. package/dist/cjs/calcite-checkbox.cjs.entry.js +5 -5
  31. package/dist/cjs/calcite-chip-group.cjs.entry.js +4 -4
  32. package/dist/cjs/calcite-chip_2.cjs.entry.js +9 -9
  33. package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +3 -3
  34. package/dist/cjs/calcite-color-picker.cjs.entry.js +7 -7
  35. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +3 -3
  36. package/dist/cjs/calcite-combobox_3.cjs.entry.js +66 -20
  37. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +8 -8
  38. package/dist/cjs/calcite-dialog-a5c288bb.js +5876 -0
  39. package/dist/cjs/calcite-dialog.cjs.entry.js +9 -9
  40. package/dist/cjs/calcite-dropdown_2.cjs.entry.js +7 -7
  41. package/dist/cjs/calcite-fab.cjs.entry.js +4 -4
  42. package/dist/cjs/calcite-filter_5.cjs.entry.js +7 -7
  43. package/dist/cjs/calcite-flow-item_5.cjs.entry.js +1752 -0
  44. package/dist/cjs/calcite-flow_4.cjs.entry.js +12 -12
  45. package/dist/cjs/calcite-graph_2.cjs.entry.js +7 -7
  46. package/dist/cjs/calcite-icon_2.cjs.entry.js +4 -4
  47. package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
  48. package/dist/cjs/calcite-input-945ec162.js +1001 -0
  49. package/dist/cjs/calcite-input-number.cjs.entry.js +9 -9
  50. package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
  51. package/dist/cjs/calcite-input-time-picker-3aeef2d4.js +1870 -0
  52. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +13 -13
  53. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +8 -8
  54. package/dist/cjs/calcite-input_2.cjs.entry.js +9 -9
  55. package/dist/cjs/calcite-label-e7b67a86.js +111 -0
  56. package/dist/cjs/calcite-label.cjs.entry.js +1 -1
  57. package/dist/cjs/calcite-link.cjs.entry.js +4 -4
  58. package/dist/cjs/calcite-list-item-group.cjs.entry.js +2 -2
  59. package/dist/cjs/calcite-menu-item.cjs.entry.js +6 -6
  60. package/dist/cjs/calcite-menu.cjs.entry.js +6 -6
  61. package/dist/cjs/calcite-meter.cjs.entry.js +6 -6
  62. package/dist/cjs/calcite-modal_4.cjs.entry.js +972 -0
  63. package/dist/cjs/calcite-navigation-logo.cjs.entry.js +4 -4
  64. package/dist/cjs/calcite-navigation-user.cjs.entry.js +3 -3
  65. package/dist/cjs/calcite-navigation.cjs.entry.js +3 -3
  66. package/dist/cjs/calcite-notice-a48cc9e7.js +261 -0
  67. package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
  68. package/dist/cjs/calcite-option-group.cjs.entry.js +1 -1
  69. package/dist/cjs/calcite-option_2.cjs.entry.js +7 -7
  70. package/dist/cjs/calcite-pagination.cjs.entry.js +6 -6
  71. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +7 -7
  72. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +10 -10
  73. package/dist/cjs/calcite-pick-list.cjs.entry.js +8 -8
  74. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +5 -5
  75. package/dist/cjs/calcite-radio-button.cjs.entry.js +5 -5
  76. package/dist/cjs/calcite-rating.cjs.entry.js +8 -8
  77. package/dist/cjs/calcite-scrim.cjs.entry.js +5 -5
  78. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +6 -6
  79. package/dist/cjs/calcite-sheet.cjs.entry.js +7 -7
  80. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +6 -6
  81. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +24 -24
  82. package/dist/cjs/calcite-shell.cjs.entry.js +4 -4
  83. package/dist/cjs/calcite-sortable-list.cjs.entry.js +4 -4
  84. package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
  85. package/dist/cjs/calcite-stepper-item.cjs.entry.js +7 -7
  86. package/dist/cjs/calcite-stepper.cjs.entry.js +5 -5
  87. package/dist/cjs/calcite-switch.cjs.entry.js +5 -5
  88. package/dist/cjs/calcite-table-cell_2.cjs.entry.js +7 -7
  89. package/dist/cjs/calcite-table-row.cjs.entry.js +2 -2
  90. package/dist/cjs/calcite-table.cjs.entry.js +6 -6
  91. package/dist/cjs/calcite-text-area.cjs.entry.js +9 -9
  92. package/dist/cjs/calcite-tile-group.cjs.entry.js +4 -4
  93. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +4 -4
  94. package/dist/cjs/calcite-tile-select.cjs.entry.js +6 -6
  95. package/dist/cjs/calcite-tile.cjs.entry.js +4 -4
  96. package/dist/cjs/calcite-time-picker.cjs.entry.js +7 -7
  97. package/dist/cjs/calcite-tip-group.cjs.entry.js +3 -3
  98. package/dist/cjs/calcite-tip-manager.cjs.entry.js +8 -8
  99. package/dist/cjs/calcite-tip.cjs.entry.js +9 -9
  100. package/dist/cjs/calcite-tooltip.cjs.entry.js +5 -5
  101. package/dist/cjs/calcite-tree_2.cjs.entry.js +5 -5
  102. package/dist/cjs/card-manager_3.cjs.entry.js +194 -51
  103. package/dist/cjs/common-10d11a29.js +37 -0
  104. package/dist/cjs/component-69260f95.js +1073 -0
  105. package/dist/cjs/conditionalSlot-130cce71.js +54 -0
  106. package/dist/cjs/config-c999f8fc.js +40 -0
  107. package/dist/cjs/consent-manager.cjs.entry.js +7914 -45
  108. package/dist/cjs/crowdsource-manager.cjs.entry.js +6 -6
  109. package/dist/cjs/crowdsource-reporter.cjs.entry.js +3 -3
  110. package/dist/cjs/cs-70e8ba01.js +149 -0
  111. package/dist/cjs/da-e8eb9ff4.js +69 -0
  112. package/dist/cjs/date-40a80298.js +264 -0
  113. package/dist/cjs/de-4b8310d2.js +93 -0
  114. package/dist/cjs/de-at-dc8ed8c3.js +92 -0
  115. package/dist/cjs/de-ch-c5971940.js +92 -0
  116. package/dist/cjs/deduct-calculator.cjs.entry.js +2 -2
  117. package/dist/cjs/downloadUtils-b6490537.js +3223 -0
  118. package/dist/cjs/el-a70d9f12.js +68 -0
  119. package/dist/cjs/en-au-88ddb80f.js +68 -0
  120. package/dist/cjs/en-ca-5a29b95b.js +67 -0
  121. package/dist/cjs/en-gb-3c763a84.js +71 -0
  122. package/dist/cjs/es-e83e8ff5.js +68 -0
  123. package/dist/cjs/es-mx-2ea879ef.js +67 -0
  124. package/dist/cjs/et-7b00c80d.js +94 -0
  125. package/dist/cjs/feature-list.cjs.entry.js +12 -10
  126. package/dist/cjs/fi-92ca007b.js +117 -0
  127. package/dist/cjs/floating-ui-7fa9e006.js +2413 -0
  128. package/dist/cjs/focusTrapComponent-a7cfa6da.js +1013 -0
  129. package/dist/cjs/form-dd5380da.js +370 -0
  130. package/dist/cjs/form-f2a43327.js +381 -0
  131. package/dist/cjs/fr-a1f5dfd4.js +70 -0
  132. package/dist/cjs/fr-ch-8a4a9d67.js +68 -0
  133. package/dist/cjs/he-38b2b883.js +107 -0
  134. package/dist/cjs/helpers-47465fc2.js +940 -0
  135. package/dist/cjs/hi-a517b1a8.js +67 -0
  136. package/dist/cjs/hr-c1e34de1.js +82 -0
  137. package/dist/cjs/hu-e46e8ae7.js +90 -0
  138. package/dist/cjs/icon-f45e7fbb.js +979 -0
  139. package/dist/cjs/id-bfc376d8.js +68 -0
  140. package/dist/cjs/index-1ab17699.js +201 -0
  141. package/dist/cjs/index-3bae5121.js +1789 -0
  142. package/dist/cjs/index-5d8d6ae2.js +2157 -0
  143. package/dist/cjs/index.es-5fc7bebc.js +11221 -0
  144. package/dist/cjs/instant-apps-app-guide.cjs.entry.js +2 -2
  145. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
  146. package/dist/cjs/instant-apps-create.cjs.entry.js +2 -2
  147. package/dist/cjs/instant-apps-export-views.cjs.entry.js +2 -2
  148. package/dist/cjs/instant-apps-export.cjs.entry.js +2 -2
  149. package/dist/cjs/instant-apps-header.cjs.entry.js +2 -2
  150. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
  151. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
  152. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
  153. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
  154. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +4 -4
  155. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +2 -2
  156. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
  157. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +16 -20
  158. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +13 -13
  159. package/dist/cjs/instant-apps-measurement.cjs.entry.js +2 -2
  160. package/dist/cjs/instant-apps-popover.cjs.entry.js +2 -2
  161. package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
  162. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +2 -2
  163. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +2 -2
  164. package/dist/cjs/instant-apps-splash.cjs.entry.js +3 -3
  165. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +5 -59
  166. package/dist/cjs/interactive-b59e6294.js +86 -0
  167. package/dist/cjs/interactive-e1c3ccf2.js +85 -0
  168. package/dist/cjs/it-6d8c8360.js +68 -0
  169. package/dist/cjs/it-ch-2b05812c.js +68 -0
  170. package/dist/cjs/ja-eb46f963.js +74 -0
  171. package/dist/cjs/ko-dbe28d19.js +74 -0
  172. package/dist/cjs/label-7f519bd9.js +186 -0
  173. package/dist/cjs/languageSwitcher-bca9ab2c.js +52 -0
  174. package/dist/cjs/loadable-19ab5827.js +98 -0
  175. package/dist/cjs/loader-97bb6b45.js +176 -0
  176. package/dist/cjs/loader.cjs.js +5 -5
  177. package/dist/cjs/locale-3a817e03.js +1488 -0
  178. package/dist/cjs/locale-80aff4b9.js +605 -0
  179. package/dist/cjs/locale-a79da367.js +160 -0
  180. package/dist/cjs/logger-780b61e8.js +61 -0
  181. package/dist/cjs/lt-651bfa9c.js +99 -0
  182. package/dist/cjs/lv-f6fe37a3.js +68 -0
  183. package/dist/cjs/map-select-tools_3.cjs.entry.js +15 -13
  184. package/dist/cjs/mk-1f0ffdf6.js +68 -0
  185. package/dist/cjs/nb-8b7b39ed.js +69 -0
  186. package/dist/cjs/nl-27515721.js +69 -0
  187. package/dist/cjs/observers-902ebe13.js +58 -0
  188. package/dist/cjs/openCloseComponent-039ee139.js +65 -0
  189. package/dist/cjs/openCloseComponent-e8e50700.js +66 -0
  190. package/dist/cjs/pci-calculator.cjs.entry.js +2 -2
  191. package/dist/cjs/pl-d2098514.js +116 -0
  192. package/dist/cjs/popupUtils-72d48968.js +121 -0
  193. package/dist/cjs/pt-a3304010.js +69 -0
  194. package/dist/cjs/pt-br-09d60ba8.js +67 -0
  195. package/dist/cjs/public-notification.cjs.entry.js +12 -10
  196. package/dist/cjs/publicNotificationStore-04b6837d.js +47 -0
  197. package/dist/cjs/request-19fdbaaa.js +21 -0
  198. package/dist/cjs/restHelpersGet-e4639890.js +507 -0
  199. package/dist/cjs/ro-2ea54b1c.js +68 -0
  200. package/dist/cjs/ru-f94ee202.js +128 -0
  201. package/dist/cjs/shared-list-render-fb08b2af.js +361 -0
  202. package/dist/cjs/sk-3cdf67d8.js +150 -0
  203. package/dist/cjs/sl-075daf42.js +170 -0
  204. package/dist/cjs/solution-configuration.cjs.entry.js +53 -53
  205. package/dist/cjs/solution-contents_3.cjs.entry.js +11 -11
  206. package/dist/cjs/solution-item-accordion.cjs.entry.js +3 -3
  207. package/dist/cjs/solution-item-icon.cjs.entry.js +2 -2
  208. package/dist/cjs/solution-resource-d0a2f7fe.js +1845 -0
  209. package/dist/cjs/solution-store-4e602251.js +1105 -0
  210. package/dist/cjs/solutions-components.cjs.js +6 -6
  211. package/dist/cjs/spatial-ref.cjs.entry.js +5 -6
  212. package/dist/cjs/sr-2f08967b.js +103 -0
  213. package/dist/cjs/store-manager.cjs.entry.js +7 -7
  214. package/dist/cjs/sv-65f0e21c.js +73 -0
  215. package/dist/cjs/t9n-0195f685.js +108 -0
  216. package/dist/cjs/templates-1e84847a.js +407 -0
  217. package/dist/cjs/th-db63e592.js +67 -0
  218. package/dist/cjs/time-caa0abbe.js +301 -0
  219. package/dist/cjs/tr-b6401cac.js +68 -0
  220. package/dist/cjs/typeof-2a7e2dec.js +28 -0
  221. package/dist/cjs/uk-d00c351d.js +106 -0
  222. package/dist/cjs/update-243ea407.js +783 -0
  223. package/dist/cjs/utils-7eb34f90.js +153 -0
  224. package/dist/cjs/utils-d2bcba4f.js +79 -0
  225. package/dist/cjs/vi-efe4ad72.js +72 -0
  226. package/dist/cjs/zh-cn-63f07390.js +96 -0
  227. package/dist/cjs/zh-hk-84a86ab9.js +94 -0
  228. package/dist/cjs/zh-tw-894f1adf.js +94 -0
  229. package/dist/collection/assets/t9n/consent-manager/resources.json +3 -10
  230. package/dist/collection/assets/t9n/consent-manager/resources_en.json +3 -10
  231. package/dist/collection/collection-manifest.json +2 -4
  232. package/dist/collection/components/basemap-gallery/basemap-gallery.js +1 -1
  233. package/dist/collection/components/buffer-tools/buffer-tools.js +1 -1
  234. package/dist/collection/components/card-manager/card-manager.js +1 -1
  235. package/dist/collection/components/consent-manager/consent-manager.js +113 -37
  236. package/dist/collection/components/create-feature/create-feature.js +2 -2
  237. package/dist/collection/components/create-related-feature/create-related-feature.js +1 -1
  238. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +4 -0
  239. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +3 -3
  240. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +1 -1
  241. package/dist/collection/components/deduct-calculator/deduct-calculator.js +1 -1
  242. package/dist/collection/components/delete-button/delete-button.js +2 -2
  243. package/dist/collection/components/delete-dialog/delete-dialog.js +1 -1
  244. package/dist/collection/components/edit-card/edit-card.js +26 -2
  245. package/dist/collection/components/feature-details/feature-details.js +6 -6
  246. package/dist/collection/components/feature-list/feature-list.js +3 -3
  247. package/dist/collection/components/floor-filter/floor-filter.js +1 -1
  248. package/dist/collection/components/info-card/info-card.js +2 -2
  249. package/dist/collection/components/json-editor/json-editor.js +1 -1
  250. package/dist/collection/components/layer-table/layer-table.js +224 -47
  251. package/dist/collection/components/map-card/map-card.js +2 -2
  252. package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
  253. package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
  254. package/dist/collection/components/map-layer-picker/map-layer-picker.js +121 -5
  255. package/dist/collection/components/map-legend/map-legend.js +1 -1
  256. package/dist/collection/components/map-picker/map-picker.js +53 -4
  257. package/dist/collection/components/map-search/map-search.js +1 -1
  258. package/dist/collection/components/map-select-tools/map-select-tools.js +3 -3
  259. package/dist/collection/components/map-tools/map-tools.js +2 -2
  260. package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
  261. package/dist/collection/components/pdf-download/pdf-download.js +1 -1
  262. package/dist/collection/components/public-notification/public-notification.js +2 -2
  263. package/dist/collection/components/refine-selection/refine-selection.js +1 -1
  264. package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
  265. package/dist/collection/components/solution-contents/solution-contents.js +1 -1
  266. package/dist/collection/components/solution-item/solution-item.js +1 -1
  267. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +1 -1
  268. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
  269. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  270. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
  271. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
  272. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  273. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
  274. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  275. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  276. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  277. package/dist/collection/demos/consent-manager.html +56 -0
  278. package/dist/collection/utils/interfaces.ts +14 -0
  279. package/dist/components/IdentityManager.js +339 -0
  280. package/dist/components/asyncToGenerator.js +88 -0
  281. package/dist/components/basemap-gallery2.js +1 -1
  282. package/dist/components/buffer-tools2.js +1 -1
  283. package/dist/components/calcite-button2.js +273 -0
  284. package/dist/components/calcite-dialog.js +1 -663
  285. package/dist/components/calcite-dialog2.js +5867 -0
  286. package/dist/components/calcite-input2.js +992 -0
  287. package/dist/components/calcite-label2.js +100 -0
  288. package/dist/components/calcite-notice2.js +251 -0
  289. package/dist/components/card-manager2.js +10 -10
  290. package/dist/components/common.js +0 -1
  291. package/dist/components/component2.js +1048 -0
  292. package/dist/components/consent-manager.js +8053 -203
  293. package/dist/components/create-feature2.js +2 -2
  294. package/dist/components/create-related-feature2.js +1 -1
  295. package/dist/components/crowdsource-manager.js +37 -37
  296. package/dist/components/crowdsource-reporter.js +28 -28
  297. package/dist/components/deduct-calculator2.js +1 -1
  298. package/dist/components/delete-button2.js +29 -11
  299. package/dist/components/delete-dialog2.js +33 -9
  300. package/dist/components/dialog.js +670 -0
  301. package/dist/components/downloadUtils.js +10 -26
  302. package/dist/components/edit-card2.js +7 -2
  303. package/dist/components/feature-details2.js +23 -23
  304. package/dist/components/feature-list2.js +3 -3
  305. package/dist/components/floor-filter2.js +1 -1
  306. package/dist/components/form2.js +362 -0
  307. package/dist/components/icon2.js +960 -0
  308. package/dist/components/index.es.js +25 -104
  309. package/dist/components/index2.js +6 -5
  310. package/dist/components/info-card2.js +9 -9
  311. package/dist/components/instant-apps-language-switcher.js +6 -10
  312. package/dist/components/instant-apps-language-translator2.js +2 -809
  313. package/dist/components/instant-apps-time-filter.js +3 -57
  314. package/dist/components/interactive2.js +83 -0
  315. package/dist/components/json-editor2.js +1 -1
  316. package/dist/components/label3.js +179 -0
  317. package/dist/components/layer-table2.js +212 -69
  318. package/dist/components/loader2.js +173 -0
  319. package/dist/components/locale3.js +1311 -3
  320. package/dist/components/map-card2.js +2 -2
  321. package/dist/components/map-draw-tools2.js +1 -1
  322. package/dist/components/map-fullscreen2.js +1 -1
  323. package/dist/components/map-layer-picker2.js +53 -5
  324. package/dist/components/map-legend2.js +1 -1
  325. package/dist/components/map-picker2.js +28 -3
  326. package/dist/components/map-search2.js +1 -1
  327. package/dist/components/map-select-tools2.js +3 -3
  328. package/dist/components/map-tools2.js +2 -2
  329. package/dist/components/openCloseComponent2.js +64 -0
  330. package/dist/components/pci-calculator.js +1 -1
  331. package/dist/components/pdf-download2.js +1 -1
  332. package/dist/components/public-notification.js +2 -2
  333. package/dist/components/refine-selection2.js +1 -1
  334. package/dist/components/request.js +14 -0
  335. package/dist/components/restHelpersGet.js +74 -557
  336. package/dist/components/solution-configuration.js +27 -28
  337. package/dist/components/solution-contents2.js +1 -1
  338. package/dist/components/solution-item-accordion.js +1 -1
  339. package/dist/components/solution-item-details2.js +1 -1
  340. package/dist/components/solution-item-icon2.js +1 -1
  341. package/dist/components/solution-item-sharing2.js +1 -1
  342. package/dist/components/solution-item2.js +1 -1
  343. package/dist/components/solution-organization-variables2.js +1 -1
  344. package/dist/components/solution-resource-item2.js +1 -2
  345. package/dist/components/solution-resource.js +1701 -1
  346. package/dist/components/solution-spatial-ref2.js +1 -1
  347. package/dist/components/solution-store.js +36 -285
  348. package/dist/components/solution-template-data2.js +1 -1
  349. package/dist/components/solution-variables2.js +1 -1
  350. package/dist/components/spatial-ref.js +1 -1
  351. package/dist/components/templates.js +0 -1
  352. package/dist/components/typeof.js +25 -0
  353. package/dist/components/update.js +773 -0
  354. package/dist/esm/ExpandToggle-324f556e.js +108 -0
  355. package/dist/esm/FloatingArrow-cd37b366.js +46 -0
  356. package/dist/esm/Heading-b6b7a8a6.js +22 -0
  357. package/dist/esm/IdentityManager-6880e890.js +2012 -0
  358. package/dist/esm/Validation-b62abebe.js +18 -0
  359. package/dist/esm/app-globals-b6ef4076.js +65 -0
  360. package/dist/esm/ar-aa347a04.js +104 -0
  361. package/dist/esm/asyncToGenerator-96b2368d.js +88 -0
  362. package/dist/esm/basemap-gallery_7.entry.js +37 -12
  363. package/dist/esm/bg-b56e89f6.js +82 -0
  364. package/dist/esm/browser-e42b9848.js +32 -0
  365. package/dist/esm/bs-62486009.js +51 -0
  366. package/dist/esm/buffer-tools_3.entry.js +7 -7
  367. package/dist/esm/ca-db6a81f3.js +71 -0
  368. package/dist/esm/calcite-accordion_2.entry.js +6 -6
  369. package/dist/esm/calcite-action-bar.entry.js +9 -9
  370. package/dist/esm/calcite-action-group.entry.js +8 -8
  371. package/dist/esm/calcite-action-menu_2.entry.js +10 -10
  372. package/dist/esm/calcite-action-pad_2.entry.js +9 -9
  373. package/dist/esm/calcite-action_2.entry.js +14 -14
  374. package/dist/esm/calcite-alert_2.entry.js +495 -0
  375. package/dist/esm/calcite-avatar.entry.js +2 -2
  376. package/dist/esm/calcite-block-section.entry.js +7 -7
  377. package/dist/esm/calcite-block_5.entry.js +19 -19
  378. package/dist/esm/calcite-button-e86d99b3.js +279 -0
  379. package/dist/esm/calcite-button.entry.js +10 -10
  380. package/dist/esm/calcite-card-group.entry.js +5 -5
  381. package/dist/esm/calcite-card.entry.js +8 -8
  382. package/dist/esm/calcite-carousel_2.entry.js +8 -8
  383. package/dist/esm/calcite-checkbox.entry.js +7 -7
  384. package/dist/esm/calcite-chip-group.entry.js +5 -5
  385. package/dist/esm/calcite-chip_2.entry.js +10 -10
  386. package/dist/esm/calcite-color-picker-hex-input_2.entry.js +4 -4
  387. package/dist/esm/calcite-color-picker.entry.js +8 -8
  388. package/dist/esm/calcite-combobox-item-group.entry.js +4 -4
  389. package/dist/esm/calcite-combobox_3.entry.js +68 -22
  390. package/dist/esm/calcite-date-picker-day_3.entry.js +9 -9
  391. package/dist/esm/calcite-dialog-f5f9cfea.js +5873 -0
  392. package/dist/esm/calcite-dialog.entry.js +10 -10
  393. package/dist/esm/calcite-dropdown_2.entry.js +8 -8
  394. package/dist/esm/calcite-fab.entry.js +5 -5
  395. package/dist/esm/calcite-filter_5.entry.js +8 -8
  396. package/dist/esm/calcite-flow-item_5.entry.js +1744 -0
  397. package/dist/esm/calcite-flow_4.entry.js +12 -12
  398. package/dist/esm/calcite-graph_2.entry.js +9 -9
  399. package/dist/esm/calcite-icon_2.entry.js +5 -5
  400. package/dist/esm/calcite-inline-editable.entry.js +9 -9
  401. package/dist/esm/calcite-input-1f12bce0.js +998 -0
  402. package/dist/esm/calcite-input-number.entry.js +11 -11
  403. package/dist/esm/calcite-input-text.entry.js +11 -11
  404. package/dist/esm/calcite-input-time-picker-07db9ed7.js +1867 -0
  405. package/dist/esm/calcite-input-time-picker.entry.js +15 -15
  406. package/dist/esm/calcite-input-time-zone.entry.js +10 -10
  407. package/dist/esm/calcite-input_2.entry.js +11 -11
  408. package/dist/esm/calcite-label-d80f6f1c.js +108 -0
  409. package/dist/esm/calcite-label.entry.js +3 -3
  410. package/dist/esm/calcite-link.entry.js +5 -5
  411. package/dist/esm/calcite-list-item-group.entry.js +2 -2
  412. package/dist/esm/calcite-menu-item.entry.js +7 -7
  413. package/dist/esm/calcite-menu.entry.js +7 -7
  414. package/dist/esm/calcite-meter.entry.js +7 -7
  415. package/dist/esm/calcite-modal_4.entry.js +965 -0
  416. package/dist/esm/calcite-navigation-logo.entry.js +4 -4
  417. package/dist/esm/calcite-navigation-user.entry.js +3 -3
  418. package/dist/esm/calcite-navigation.entry.js +4 -4
  419. package/dist/esm/calcite-notice-acc12411.js +258 -0
  420. package/dist/esm/calcite-notice.entry.js +9 -9
  421. package/dist/esm/calcite-option-group.entry.js +1 -1
  422. package/dist/esm/calcite-option_2.entry.js +9 -9
  423. package/dist/esm/calcite-pagination.entry.js +7 -7
  424. package/dist/esm/calcite-pick-list-group.entry.js +8 -8
  425. package/dist/esm/calcite-pick-list-item.entry.js +11 -11
  426. package/dist/esm/calcite-pick-list.entry.js +9 -9
  427. package/dist/esm/calcite-radio-button-group.entry.js +6 -6
  428. package/dist/esm/calcite-radio-button.entry.js +7 -7
  429. package/dist/esm/calcite-rating.entry.js +10 -10
  430. package/dist/esm/calcite-scrim.entry.js +6 -6
  431. package/dist/esm/calcite-segmented-control_2.entry.js +8 -8
  432. package/dist/esm/calcite-sheet.entry.js +8 -8
  433. package/dist/esm/calcite-shell-center-row.entry.js +7 -7
  434. package/dist/esm/calcite-shell-panel_14.entry.js +25 -25
  435. package/dist/esm/calcite-shell.entry.js +5 -5
  436. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  437. package/dist/esm/calcite-split-button.entry.js +4 -4
  438. package/dist/esm/calcite-stepper-item.entry.js +8 -8
  439. package/dist/esm/calcite-stepper.entry.js +6 -6
  440. package/dist/esm/calcite-switch.entry.js +7 -7
  441. package/dist/esm/calcite-table-cell_2.entry.js +8 -8
  442. package/dist/esm/calcite-table-row.entry.js +3 -3
  443. package/dist/esm/calcite-table.entry.js +7 -7
  444. package/dist/esm/calcite-text-area.entry.js +11 -11
  445. package/dist/esm/calcite-tile-group.entry.js +5 -5
  446. package/dist/esm/calcite-tile-select-group.entry.js +4 -4
  447. package/dist/esm/calcite-tile-select.entry.js +6 -6
  448. package/dist/esm/calcite-tile.entry.js +5 -5
  449. package/dist/esm/calcite-time-picker.entry.js +8 -8
  450. package/dist/esm/calcite-tip-group.entry.js +3 -3
  451. package/dist/esm/calcite-tip-manager.entry.js +9 -9
  452. package/dist/esm/calcite-tip.entry.js +10 -10
  453. package/dist/esm/calcite-tooltip.entry.js +6 -6
  454. package/dist/esm/calcite-tree_2.entry.js +6 -6
  455. package/dist/esm/card-manager_3.entry.js +194 -51
  456. package/dist/esm/common-c8dc0e85.js +35 -0
  457. package/dist/esm/component-85f22c99.js +1048 -0
  458. package/dist/esm/conditionalSlot-2e16b206.js +51 -0
  459. package/dist/esm/config-e6645458.js +36 -0
  460. package/dist/esm/consent-manager.entry.js +7910 -41
  461. package/dist/esm/crowdsource-manager.entry.js +6 -6
  462. package/dist/esm/crowdsource-reporter.entry.js +3 -3
  463. package/dist/esm/cs-250e21c6.js +147 -0
  464. package/dist/esm/da-bab8eb4e.js +67 -0
  465. package/dist/esm/date-272939fd.js +248 -0
  466. package/dist/esm/de-808a43dc.js +91 -0
  467. package/dist/esm/de-at-9c396c81.js +90 -0
  468. package/dist/esm/de-ch-415303cf.js +90 -0
  469. package/dist/esm/deduct-calculator.entry.js +2 -2
  470. package/dist/esm/dom-66c5cd46.js +1165 -0
  471. package/dist/esm/downloadUtils-8ba094d7.js +3217 -0
  472. package/dist/esm/el-3d1eaeb8.js +66 -0
  473. package/dist/esm/en-au-e6b00a93.js +66 -0
  474. package/dist/esm/en-ca-29b94ea2.js +65 -0
  475. package/dist/esm/en-gb-09267176.js +69 -0
  476. package/dist/esm/es-95fef748.js +66 -0
  477. package/dist/esm/es-mx-9b70cfc9.js +65 -0
  478. package/dist/esm/et-08cbe214.js +92 -0
  479. package/dist/esm/feature-list.entry.js +12 -10
  480. package/dist/esm/fi-e850e58b.js +115 -0
  481. package/dist/esm/floating-ui-1a431a21.js +2404 -0
  482. package/dist/esm/focusTrapComponent-e80b8863.js +1008 -0
  483. package/dist/esm/form-1528db83.js +362 -0
  484. package/dist/esm/form-99398da6.js +372 -0
  485. package/dist/esm/fr-c71b6844.js +68 -0
  486. package/dist/esm/fr-ch-7ac7a7eb.js +66 -0
  487. package/dist/esm/he-311cb5ba.js +105 -0
  488. package/dist/esm/helpers-f52a734a.js +913 -0
  489. package/dist/esm/hi-c41f0938.js +65 -0
  490. package/dist/esm/hr-f42cc721.js +80 -0
  491. package/dist/esm/hu-d1d33b21.js +88 -0
  492. package/dist/esm/icon-18c0eb17.js +959 -0
  493. package/dist/esm/id-1867967d.js +66 -0
  494. package/dist/esm/index-38bde943.js +199 -0
  495. package/dist/esm/index-d233c7a2.js +1753 -0
  496. package/dist/esm/index-d88c3eb6.js +2155 -0
  497. package/dist/esm/index.es-d286eecc.js +11134 -0
  498. package/dist/esm/instant-apps-app-guide.entry.js +2 -2
  499. package/dist/esm/instant-apps-control-panel.entry.js +1 -1
  500. package/dist/esm/instant-apps-create.entry.js +2 -2
  501. package/dist/esm/instant-apps-export-views.entry.js +2 -2
  502. package/dist/esm/instant-apps-export.entry.js +2 -2
  503. package/dist/esm/instant-apps-header.entry.js +2 -2
  504. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
  505. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
  506. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
  507. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
  508. package/dist/esm/instant-apps-interactive-legend.entry.js +4 -4
  509. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +2 -2
  510. package/dist/esm/instant-apps-landing-page.entry.js +1 -1
  511. package/dist/esm/instant-apps-language-switcher.entry.js +9 -13
  512. package/dist/esm/instant-apps-language-translator.entry.js +5 -5
  513. package/dist/esm/instant-apps-measurement.entry.js +2 -2
  514. package/dist/esm/instant-apps-popover.entry.js +2 -2
  515. package/dist/esm/instant-apps-popovers.entry.js +1 -1
  516. package/dist/esm/instant-apps-scoreboard.entry.js +2 -2
  517. package/dist/esm/instant-apps-sign-in.entry.js +2 -2
  518. package/dist/esm/instant-apps-splash.entry.js +3 -3
  519. package/dist/esm/instant-apps-time-filter.entry.js +3 -57
  520. package/dist/esm/interactive-5139f8d7.js +83 -0
  521. package/dist/esm/interactive-cad37709.js +82 -0
  522. package/dist/esm/it-6a7495d8.js +66 -0
  523. package/dist/esm/it-ch-89fa3c82.js +66 -0
  524. package/dist/esm/ja-f87a1f44.js +72 -0
  525. package/dist/esm/ko-0f4c7a11.js +72 -0
  526. package/dist/esm/label-56002f24.js +179 -0
  527. package/dist/esm/label-7f52ca53.js +179 -0
  528. package/dist/esm/languageSwitcher-d0ca5d6f.js +49 -0
  529. package/dist/esm/loadable-dc3f24a8.js +93 -0
  530. package/dist/esm/loader-bae2aa52.js +173 -0
  531. package/dist/esm/loader.js +6 -6
  532. package/dist/esm/locale-586d9375.js +155 -0
  533. package/dist/esm/locale-911eca09.js +591 -0
  534. package/dist/esm/locale-be7fd298.js +1423 -0
  535. package/dist/esm/logger-ff14b12f.js +59 -0
  536. package/dist/esm/lt-a4b14416.js +97 -0
  537. package/dist/esm/lv-3901862d.js +66 -0
  538. package/dist/esm/map-select-tools_3.entry.js +15 -13
  539. package/dist/esm/mk-886d280d.js +66 -0
  540. package/dist/esm/nb-b667a0e1.js +67 -0
  541. package/dist/esm/nl-d357a092.js +67 -0
  542. package/dist/esm/observers-ab3d6528.js +56 -0
  543. package/dist/esm/openCloseComponent-0e1e6768.js +64 -0
  544. package/dist/esm/openCloseComponent-c3f79463.js +63 -0
  545. package/dist/esm/pci-calculator.entry.js +2 -2
  546. package/dist/esm/pl-75d54069.js +114 -0
  547. package/dist/esm/popupUtils-ddb1f6fa.js +119 -0
  548. package/dist/esm/pt-32bd5da2.js +67 -0
  549. package/dist/esm/pt-br-6f32314d.js +65 -0
  550. package/dist/esm/public-notification.entry.js +12 -10
  551. package/dist/esm/publicNotificationStore-8b54bf6f.js +45 -0
  552. package/dist/esm/request-2dbb152a.js +19 -0
  553. package/dist/esm/restHelpersGet-a7fda344.js +493 -0
  554. package/dist/esm/ro-d238055e.js +66 -0
  555. package/dist/esm/ru-ef7165ff.js +126 -0
  556. package/dist/esm/shared-list-render-5f202c55.js +339 -0
  557. package/dist/esm/sk-959dbca1.js +148 -0
  558. package/dist/esm/sl-96436015.js +168 -0
  559. package/dist/esm/solution-configuration.entry.js +34 -34
  560. package/dist/esm/solution-contents_3.entry.js +11 -11
  561. package/dist/esm/solution-item-accordion.entry.js +3 -3
  562. package/dist/esm/solution-item-icon.entry.js +2 -2
  563. package/dist/esm/solution-resource-30a29505.js +1842 -0
  564. package/dist/esm/solution-store-f252cb74.js +1103 -0
  565. package/dist/esm/solutions-components.js +7 -7
  566. package/dist/esm/spatial-ref.entry.js +5 -6
  567. package/dist/esm/sr-73033c89.js +101 -0
  568. package/dist/esm/store-manager.entry.js +7 -7
  569. package/dist/esm/sv-b1153aa8.js +71 -0
  570. package/dist/esm/t9n-1698878e.js +103 -0
  571. package/dist/esm/templates-60f33938.js +401 -0
  572. package/dist/esm/th-e1a074e2.js +65 -0
  573. package/dist/esm/time-bca5f70b.js +286 -0
  574. package/dist/esm/tr-1350f529.js +66 -0
  575. package/dist/esm/typeof-ef2a007d.js +25 -0
  576. package/dist/esm/uk-18ded66c.js +104 -0
  577. package/dist/esm/update-ad0b88fa.js +773 -0
  578. package/dist/esm/utils-0da093e1.js +142 -0
  579. package/dist/esm/utils-30c4c8ca.js +66 -0
  580. package/dist/esm/vi-cee99413.js +70 -0
  581. package/dist/esm/zh-cn-6e204128.js +94 -0
  582. package/dist/esm/zh-hk-ffb02673.js +92 -0
  583. package/dist/esm/zh-tw-0f52dd8c.js +92 -0
  584. package/dist/solutions-components/assets/t9n/consent-manager/resources.json +3 -10
  585. package/dist/solutions-components/assets/t9n/consent-manager/resources_en.json +3 -10
  586. package/dist/solutions-components/demos/consent-manager.html +56 -0
  587. package/dist/solutions-components/p-0094924f.entry.js +6 -0
  588. package/dist/solutions-components/p-00ea0ccc.entry.js +11 -0
  589. package/dist/solutions-components/p-018d1f95.entry.js +6 -0
  590. package/dist/solutions-components/p-025af0b3.entry.js +21 -0
  591. package/dist/solutions-components/p-0549a65c.js +6 -0
  592. package/dist/solutions-components/p-058d0542.js +17 -0
  593. package/dist/solutions-components/p-0668e30d.js +34 -0
  594. package/dist/solutions-components/p-066fc169.js +6 -0
  595. package/dist/solutions-components/p-067e36b2.entry.js +6 -0
  596. package/dist/solutions-components/p-0681b29b.entry.js +11 -0
  597. package/dist/solutions-components/p-0691d1af.entry.js +22 -0
  598. package/dist/solutions-components/p-088a5dca.js +67 -0
  599. package/dist/solutions-components/p-097b80df.js +6 -0
  600. package/dist/solutions-components/p-0a0902c4.entry.js +6 -0
  601. package/dist/solutions-components/p-0a71f549.entry.js +29 -0
  602. package/dist/solutions-components/p-0ac9cc4a.entry.js +21 -0
  603. package/dist/solutions-components/p-0b1fb6ae.js +36 -0
  604. package/dist/solutions-components/p-0d82ed7b.entry.js +11 -0
  605. package/dist/solutions-components/p-0e307601.entry.js +11 -0
  606. package/dist/solutions-components/p-0ece17fc.entry.js +6 -0
  607. package/dist/solutions-components/p-0f58bb3a.entry.js +11 -0
  608. package/dist/solutions-components/p-0f9f7528.entry.js +11 -0
  609. package/dist/solutions-components/p-135b2aba.js +16 -0
  610. package/dist/solutions-components/p-13bdb2c0.js +6 -0
  611. package/dist/solutions-components/p-14519a8a.entry.js +11 -0
  612. package/dist/solutions-components/p-1482f3cf.js +20 -0
  613. package/dist/solutions-components/p-1492bb6d.js +6 -0
  614. package/dist/solutions-components/p-1664573a.entry.js +6 -0
  615. package/dist/solutions-components/p-1900f9b1.js +11 -0
  616. package/dist/solutions-components/p-1984f2c7.entry.js +17 -0
  617. package/dist/solutions-components/p-1c1842b0.entry.js +6 -0
  618. package/dist/solutions-components/p-1f9d927b.entry.js +6 -0
  619. package/dist/solutions-components/p-1fb3756b.js +6 -0
  620. package/dist/solutions-components/p-208b5cc4.entry.js +6 -0
  621. package/dist/solutions-components/p-20cda8ef.entry.js +6 -0
  622. package/dist/solutions-components/p-2130a063.entry.js +17 -0
  623. package/dist/solutions-components/p-21f90019.js +21 -0
  624. package/dist/solutions-components/p-230f7315.entry.js +6 -0
  625. package/dist/solutions-components/p-24b42859.entry.js +47 -0
  626. package/dist/solutions-components/p-26f9f9c8.js +11 -0
  627. package/dist/solutions-components/p-270ca219.entry.js +6 -0
  628. package/dist/solutions-components/p-27a91364.entry.js +17 -0
  629. package/dist/solutions-components/p-28498868.entry.js +11 -0
  630. package/dist/solutions-components/p-2a5a5bfd.entry.js +11 -0
  631. package/dist/solutions-components/p-2ac553f6.js +6 -0
  632. package/dist/solutions-components/p-2b1e6acb.entry.js +6 -0
  633. package/dist/solutions-components/p-2bc98cb0.js +30 -0
  634. package/dist/solutions-components/p-2d96fdb9.js +6 -0
  635. package/dist/solutions-components/p-2dd8e49c.js +11 -0
  636. package/dist/solutions-components/p-30a16b7e.entry.js +11 -0
  637. package/dist/solutions-components/p-3212300b.entry.js +6 -0
  638. package/dist/solutions-components/p-35245316.entry.js +6 -0
  639. package/dist/solutions-components/p-3643a87a.entry.js +6 -0
  640. package/dist/solutions-components/p-3708cbdc.entry.js +6 -0
  641. package/dist/solutions-components/p-3828e77b.js +11 -0
  642. package/dist/solutions-components/p-38e0f88b.js +17 -0
  643. package/dist/solutions-components/p-3b3bfba5.entry.js +6 -0
  644. package/dist/solutions-components/p-3ba80c7c.js +6 -0
  645. package/dist/solutions-components/p-3d1f0434.js +21 -0
  646. package/dist/solutions-components/p-3ffc4738.js +6 -0
  647. package/dist/solutions-components/p-409401ce.js +11 -0
  648. package/dist/solutions-components/p-419df1ac.js +11 -0
  649. package/dist/solutions-components/p-46159285.js +6 -0
  650. package/dist/solutions-components/p-49a67314.entry.js +6 -0
  651. package/dist/solutions-components/p-4cbdea35.js +129 -0
  652. package/dist/solutions-components/p-4dfc2fc4.js +11 -0
  653. package/dist/solutions-components/p-4f236b5d.js +43 -0
  654. package/dist/solutions-components/p-4f50385f.js +16 -0
  655. package/dist/solutions-components/p-4fe489cf.js +6 -0
  656. package/dist/solutions-components/p-50239e15.entry.js +6 -0
  657. package/dist/solutions-components/p-531f66c7.entry.js +6 -0
  658. package/dist/solutions-components/p-570754a4.js +6 -0
  659. package/dist/solutions-components/p-570b13d9.js +67 -0
  660. package/dist/solutions-components/p-58d53a46.entry.js +6 -0
  661. package/dist/solutions-components/p-59970898.js +6 -0
  662. package/dist/solutions-components/p-59d02697.entry.js +11 -0
  663. package/dist/solutions-components/p-5b2ae6c4.js +6 -0
  664. package/dist/solutions-components/p-5b9783e6.entry.js +23 -0
  665. package/dist/solutions-components/p-5c5cbe3c.js +6 -0
  666. package/dist/solutions-components/p-5c692ed6.entry.js +11 -0
  667. package/dist/solutions-components/p-5cfa35f8.js +6 -0
  668. package/dist/solutions-components/p-5d581b7e.entry.js +6 -0
  669. package/dist/solutions-components/p-5df09fe4.js +31 -0
  670. package/dist/solutions-components/p-5ee359f1.entry.js +11 -0
  671. package/dist/solutions-components/p-5f099cd2.js +6 -0
  672. package/dist/solutions-components/p-60123545.js +6 -0
  673. package/dist/solutions-components/p-6148468f.js +11 -0
  674. package/dist/solutions-components/p-617d2160.js +6 -0
  675. package/dist/solutions-components/p-619a1ad0.js +6 -0
  676. package/dist/solutions-components/p-61d2582e.entry.js +6 -0
  677. package/dist/solutions-components/p-662cf7fa.entry.js +11 -0
  678. package/dist/solutions-components/p-6708060e.js +11 -0
  679. package/dist/solutions-components/p-676a2d60.entry.js +6 -0
  680. package/dist/solutions-components/p-68b5ec37.js +11 -0
  681. package/dist/solutions-components/p-68cf5134.entry.js +12 -0
  682. package/dist/solutions-components/p-694cfe4c.js +6 -0
  683. package/dist/solutions-components/p-6bcde3c4.js +6 -0
  684. package/dist/solutions-components/p-6c73f067.js +16 -0
  685. package/dist/solutions-components/p-6d56f75e.js +11 -0
  686. package/dist/solutions-components/p-6db88e16.entry.js +11 -0
  687. package/dist/solutions-components/p-6f93ec3e.entry.js +6 -0
  688. package/dist/solutions-components/p-7053b20e.entry.js +6 -0
  689. package/dist/solutions-components/p-741151d4.js +6 -0
  690. package/dist/solutions-components/p-749fe711.js +6 -0
  691. package/dist/solutions-components/p-7518e92a.js +6 -0
  692. package/dist/solutions-components/p-7802efa1.entry.js +11 -0
  693. package/dist/solutions-components/p-782c71a7.js +6 -0
  694. package/dist/solutions-components/p-78aa10b0.js +6 -0
  695. package/dist/solutions-components/p-7a8edc01.entry.js +11 -0
  696. package/dist/solutions-components/p-7a9e773b.js +6 -0
  697. package/dist/solutions-components/p-7aa5b402.entry.js +11 -0
  698. package/dist/solutions-components/p-7aafba66.js +11 -0
  699. package/dist/solutions-components/p-7d619b04.entry.js +11 -0
  700. package/dist/solutions-components/p-7dc37540.js +11 -0
  701. package/dist/solutions-components/p-7e3a6a0b.entry.js +11 -0
  702. package/dist/solutions-components/p-7fd55161.entry.js +6 -0
  703. package/dist/solutions-components/p-80168ff4.entry.js +11 -0
  704. package/dist/solutions-components/p-823684a3.js +6 -0
  705. package/dist/solutions-components/p-825ef4a7.js +6 -0
  706. package/dist/solutions-components/p-82d93164.js +11 -0
  707. package/dist/solutions-components/p-82f661c7.entry.js +11 -0
  708. package/dist/solutions-components/p-8378852e.js +6 -0
  709. package/dist/solutions-components/p-85bb5908.js +11 -0
  710. package/dist/solutions-components/p-866a2fad.js +11 -0
  711. package/dist/solutions-components/p-8744fe2a.entry.js +6 -0
  712. package/dist/solutions-components/p-8850bd21.js +21 -0
  713. package/dist/solutions-components/p-896a5fce.entry.js +11 -0
  714. package/dist/solutions-components/p-8df5939f.js +6 -0
  715. package/dist/solutions-components/p-8ec56f08.entry.js +11 -0
  716. package/dist/solutions-components/p-8ff2cba2.entry.js +11 -0
  717. package/dist/solutions-components/p-8ff4b2aa.js +488 -0
  718. package/dist/solutions-components/p-926e65eb.js +6 -0
  719. package/dist/solutions-components/p-94ad391c.js +40 -0
  720. package/dist/solutions-components/p-958c68c2.js +61 -0
  721. package/dist/solutions-components/p-95fcb607.js +6 -0
  722. package/dist/solutions-components/p-97df5300.js +27 -0
  723. package/dist/solutions-components/p-98079396.js +21 -0
  724. package/dist/solutions-components/p-98b1c057.entry.js +6 -0
  725. package/dist/solutions-components/p-9d4f62ca.js +6 -0
  726. package/dist/solutions-components/p-9d733373.entry.js +17 -0
  727. package/dist/solutions-components/p-9d9df87f.entry.js +6 -0
  728. package/dist/solutions-components/p-9e5d59aa.entry.js +11 -0
  729. package/dist/solutions-components/p-9f89901b.entry.js +6 -0
  730. package/dist/solutions-components/p-9fa8da35.entry.js +11 -0
  731. package/dist/solutions-components/p-a28502ac.entry.js +6 -0
  732. package/dist/solutions-components/p-a5df8093.entry.js +11 -0
  733. package/dist/solutions-components/p-a757bf75.js +16 -0
  734. package/dist/solutions-components/p-a7eded8f.entry.js +11 -0
  735. package/dist/solutions-components/p-a91fc014.entry.js +6 -0
  736. package/dist/solutions-components/p-aa6656f0.js +6 -0
  737. package/dist/solutions-components/p-abe60b81.entry.js +6 -0
  738. package/dist/solutions-components/p-ad66b010.entry.js +11 -0
  739. package/dist/solutions-components/p-adb57e25.entry.js +6 -0
  740. package/dist/solutions-components/p-add122e7.js +6 -0
  741. package/dist/solutions-components/p-ae357552.entry.js +11 -0
  742. package/dist/solutions-components/p-af4f2d4a.js +11 -0
  743. package/dist/solutions-components/p-b0d0022c.entry.js +11 -0
  744. package/dist/solutions-components/p-b14d2423.entry.js +11 -0
  745. package/dist/solutions-components/p-b1546c15.js +17 -0
  746. package/dist/solutions-components/p-b1c45ef8.entry.js +6 -0
  747. package/dist/solutions-components/p-b1f3c713.js +6 -0
  748. package/dist/solutions-components/p-b22046db.js +11 -0
  749. package/dist/solutions-components/p-b290affa.js +17 -0
  750. package/dist/solutions-components/p-b3b70f6b.entry.js +12 -0
  751. package/dist/solutions-components/p-b4a94ffe.entry.js +6 -0
  752. package/dist/solutions-components/p-b62871c3.entry.js +11 -0
  753. package/dist/solutions-components/p-b6a36bfe.js +6 -0
  754. package/dist/solutions-components/p-b915029b.js +6 -0
  755. package/dist/solutions-components/p-b98e9479.js +11 -0
  756. package/dist/solutions-components/p-b9bc3e7b.entry.js +17 -0
  757. package/dist/solutions-components/p-ba539e5a.entry.js +11 -0
  758. package/dist/solutions-components/p-bad614c0.entry.js +11 -0
  759. package/dist/solutions-components/p-bb158785.entry.js +11 -0
  760. package/dist/solutions-components/p-bc281e3b.js +6 -0
  761. package/dist/solutions-components/p-bc2b747e.js +6 -0
  762. package/dist/solutions-components/p-be78bc15.entry.js +6 -0
  763. package/dist/solutions-components/p-bf154e41.js +6 -0
  764. package/dist/solutions-components/p-c0f30138.entry.js +11 -0
  765. package/dist/solutions-components/p-c109e720.js +6 -0
  766. package/dist/solutions-components/p-c115215d.entry.js +6 -0
  767. package/dist/solutions-components/p-c433cc38.js +6 -0
  768. package/dist/solutions-components/p-c43fdf49.entry.js +16 -0
  769. package/dist/solutions-components/p-c5e0e5ef.js +6 -0
  770. package/dist/solutions-components/p-c766823c.entry.js +11 -0
  771. package/dist/solutions-components/p-c8a2c326.entry.js +29 -0
  772. package/dist/solutions-components/p-c8b26c56.js +6 -0
  773. package/dist/solutions-components/p-c900e9e8.entry.js +17 -0
  774. package/dist/solutions-components/p-c9dae6fb.entry.js +6 -0
  775. package/dist/solutions-components/p-cbf0769a.entry.js +11 -0
  776. package/dist/solutions-components/p-cc7d784e.entry.js +6 -0
  777. package/dist/solutions-components/p-ce8a69ef.entry.js +11 -0
  778. package/dist/solutions-components/p-cea51591.js +16 -0
  779. package/dist/solutions-components/p-d0b1d33f.js +6 -0
  780. package/dist/solutions-components/p-d0b36f2e.entry.js +6 -0
  781. package/dist/solutions-components/p-d2a6e970.js +6 -0
  782. package/dist/solutions-components/p-d2dc7d65.entry.js +11 -0
  783. package/dist/solutions-components/p-d60dc1f1.entry.js +11 -0
  784. package/dist/solutions-components/p-d654b676.entry.js +11 -0
  785. package/dist/solutions-components/p-d65f8b73.js +6 -0
  786. package/dist/solutions-components/p-d82ee2f9.entry.js +6 -0
  787. package/dist/solutions-components/p-d96fe526.entry.js +22 -0
  788. package/dist/solutions-components/p-da0cb140.entry.js +11 -0
  789. package/dist/solutions-components/p-da36faca.entry.js +6 -0
  790. package/dist/solutions-components/p-daf6a012.entry.js +6 -0
  791. package/dist/solutions-components/p-dba4704c.js +11 -0
  792. package/dist/solutions-components/p-dd16d94e.js +6 -0
  793. package/dist/solutions-components/p-dd689226.js +11 -0
  794. package/dist/solutions-components/p-dd6a34c6.entry.js +17 -0
  795. package/dist/solutions-components/p-df4bfe45.js +6 -0
  796. package/dist/solutions-components/p-dfe18931.js +6 -0
  797. package/dist/solutions-components/p-e2570a80.js +11 -0
  798. package/dist/solutions-components/p-ea9e0a79.js +6 -0
  799. package/dist/solutions-components/p-eb88fddc.js +6 -0
  800. package/dist/solutions-components/p-ed4fb4a1.entry.js +6 -0
  801. package/dist/solutions-components/p-ef0c43dc.js +6 -0
  802. package/dist/solutions-components/p-f05bbd82.entry.js +11 -0
  803. package/dist/solutions-components/p-f0ceb675.entry.js +11 -0
  804. package/dist/solutions-components/p-f1f356f0.js +7 -0
  805. package/dist/solutions-components/p-f46f7da7.entry.js +12 -0
  806. package/dist/solutions-components/p-f6e3d19a.entry.js +11 -0
  807. package/dist/solutions-components/p-f6e81cf8.js +22 -0
  808. package/dist/solutions-components/p-f7085e9e.entry.js +17 -0
  809. package/dist/solutions-components/p-f8ea8e73.js +6 -0
  810. package/dist/solutions-components/p-fb6ca6dd.entry.js +11 -0
  811. package/dist/solutions-components/p-fdaf1290.entry.js +11 -0
  812. package/dist/solutions-components/p-fe719f16.entry.js +6 -0
  813. package/dist/solutions-components/p-feebdac9.entry.js +17 -0
  814. package/dist/solutions-components/p-ff15447c.entry.js +6 -0
  815. package/dist/solutions-components/solutions-components.esm.js +1 -1
  816. package/dist/solutions-components/utils/interfaces.ts +14 -0
  817. package/dist/types/components/consent-manager/consent-manager.d.ts +23 -20
  818. package/dist/types/components/delete-button/delete-button.d.ts +1 -1
  819. package/dist/types/components/edit-card/edit-card.d.ts +4 -0
  820. package/dist/types/components/layer-table/layer-table.d.ts +55 -7
  821. package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +18 -2
  822. package/dist/types/components/map-picker/map-picker.d.ts +10 -2
  823. package/dist/types/components.d.ts +67 -34
  824. package/dist/types/preact.d.ts +6 -7
  825. package/dist/types/stencil-public-runtime.d.ts +6 -0
  826. package/dist/types/utils/interfaces.d.ts +12 -0
  827. package/package.json +13 -13
  828. package/dist/cjs/ExpandToggle-c5e409ce.js +0 -115
  829. package/dist/cjs/FloatingArrow-c2b50d47.js +0 -48
  830. package/dist/cjs/Heading-3e2d46fd.js +0 -25
  831. package/dist/cjs/Validation-c065b988.js +0 -20
  832. package/dist/cjs/app-globals-09eb9eb5.js +0 -67
  833. package/dist/cjs/ar-0afb390b.js +0 -106
  834. package/dist/cjs/arcgis-login.cjs.entry.js +0 -61
  835. package/dist/cjs/bg-b1be4ef3.js +0 -84
  836. package/dist/cjs/browser-0bedacf5.js +0 -35
  837. package/dist/cjs/bs-a314390f.js +0 -53
  838. package/dist/cjs/ca-b8e89e47.js +0 -73
  839. package/dist/cjs/calcite-alert_6.cjs.entry.js +0 -2105
  840. package/dist/cjs/calcite-input-time-picker-42ed419f.js +0 -1870
  841. package/dist/cjs/calcite-modal.cjs.entry.js +0 -393
  842. package/dist/cjs/common-eee0c33f.js +0 -38
  843. package/dist/cjs/conditionalSlot-003e6975.js +0 -54
  844. package/dist/cjs/config-2282fdac.js +0 -40
  845. package/dist/cjs/constants-bed33322.js +0 -860
  846. package/dist/cjs/cs-f14626e8.js +0 -149
  847. package/dist/cjs/da-2fce32d4.js +0 -69
  848. package/dist/cjs/date-e763caec.js +0 -264
  849. package/dist/cjs/de-2c1fce6f.js +0 -93
  850. package/dist/cjs/de-at-94de293d.js +0 -92
  851. package/dist/cjs/de-ch-d42f4faf.js +0 -92
  852. package/dist/cjs/delete-dialog.cjs.entry.js +0 -131
  853. package/dist/cjs/downloadUtils-76bc7e30.js +0 -3240
  854. package/dist/cjs/el-8092eeb9.js +0 -68
  855. package/dist/cjs/en-au-9bc4467f.js +0 -68
  856. package/dist/cjs/en-ca-d9140239.js +0 -67
  857. package/dist/cjs/en-gb-f5e2af8e.js +0 -71
  858. package/dist/cjs/es-4b6327d7.js +0 -68
  859. package/dist/cjs/es-mx-f729412a.js +0 -67
  860. package/dist/cjs/et-ec115eb3.js +0 -94
  861. package/dist/cjs/fi-95701850.js +0 -117
  862. package/dist/cjs/floating-ui-a8693586.js +0 -2413
  863. package/dist/cjs/focusTrapComponent-48fdd3f6.js +0 -1013
  864. package/dist/cjs/form-a36bd0e5.js +0 -381
  865. package/dist/cjs/fr-ch-a231f229.js +0 -68
  866. package/dist/cjs/fr-e22a2684.js +0 -70
  867. package/dist/cjs/he-d0070eb9.js +0 -107
  868. package/dist/cjs/helpers-0493759d.js +0 -940
  869. package/dist/cjs/hi-04615e27.js +0 -67
  870. package/dist/cjs/hr-27fefb6d.js +0 -82
  871. package/dist/cjs/hu-63da9819.js +0 -90
  872. package/dist/cjs/id-d4fe65cd.js +0 -68
  873. package/dist/cjs/index-2b13a4d5.js +0 -201
  874. package/dist/cjs/index-4b68e4b4.js +0 -1770
  875. package/dist/cjs/index-f052f656.js +0 -2156
  876. package/dist/cjs/index.es-8336efed.js +0 -11307
  877. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +0 -590
  878. package/dist/cjs/interactive-7ccdd728.js +0 -85
  879. package/dist/cjs/it-418a53bf.js +0 -68
  880. package/dist/cjs/it-ch-7f4632ab.js +0 -68
  881. package/dist/cjs/ja-6c5d5c7d.js +0 -74
  882. package/dist/cjs/ko-e4154b91.js +0 -74
  883. package/dist/cjs/loadable-f3fe73a2.js +0 -98
  884. package/dist/cjs/locale-339b55f0.js +0 -160
  885. package/dist/cjs/locale-4b820602.js +0 -120
  886. package/dist/cjs/locale-7eb2f603.js +0 -605
  887. package/dist/cjs/logger-912d7f26.js +0 -61
  888. package/dist/cjs/lt-d6dae6fd.js +0 -99
  889. package/dist/cjs/lv-bcf9724a.js +0 -68
  890. package/dist/cjs/mk-171505d2.js +0 -68
  891. package/dist/cjs/nb-0dcee19c.js +0 -69
  892. package/dist/cjs/nl-dace5864.js +0 -69
  893. package/dist/cjs/observers-affd684f.js +0 -58
  894. package/dist/cjs/openCloseComponent-044883e4.js +0 -65
  895. package/dist/cjs/pl-7755a609.js +0 -116
  896. package/dist/cjs/popupUtils-bc762034.js +0 -121
  897. package/dist/cjs/pt-3121cc39.js +0 -69
  898. package/dist/cjs/pt-br-67b16e3a.js +0 -67
  899. package/dist/cjs/publicNotificationStore-570204c1.js +0 -47
  900. package/dist/cjs/restHelpersGet-5c2245a3.js +0 -991
  901. package/dist/cjs/ro-7f726306.js +0 -68
  902. package/dist/cjs/ru-fc11963d.js +0 -128
  903. package/dist/cjs/share-item.cjs.entry.js +0 -61
  904. package/dist/cjs/shared-list-render-3d6ec3ca.js +0 -361
  905. package/dist/cjs/sk-e85b9c15.js +0 -150
  906. package/dist/cjs/sl-9eb375c2.js +0 -170
  907. package/dist/cjs/solution-resource-40e70253.js +0 -145
  908. package/dist/cjs/solution-store-4de89072.js +0 -1354
  909. package/dist/cjs/sr-1d2513be.js +0 -103
  910. package/dist/cjs/sv-f7693c9f.js +0 -73
  911. package/dist/cjs/t9n-64df74f3.js +0 -108
  912. package/dist/cjs/templates-0b7f886f.js +0 -408
  913. package/dist/cjs/th-0d2328bb.js +0 -67
  914. package/dist/cjs/time-513586eb.js +0 -301
  915. package/dist/cjs/tr-2c074411.js +0 -68
  916. package/dist/cjs/uk-5e16db67.js +0 -106
  917. package/dist/cjs/utils-3f10ea6b.js +0 -153
  918. package/dist/cjs/utils-d0049d76.js +0 -79
  919. package/dist/cjs/vi-2a4d8334.js +0 -72
  920. package/dist/cjs/zh-cn-126bcbc0.js +0 -96
  921. package/dist/cjs/zh-hk-aeeba861.js +0 -94
  922. package/dist/cjs/zh-tw-0cfb6e20.js +0 -94
  923. package/dist/collection/components/arcgis-login/arcgis-login.css +0 -19
  924. package/dist/collection/components/arcgis-login/arcgis-login.js +0 -80
  925. package/dist/collection/components/share-item/share-item.css +0 -19
  926. package/dist/collection/components/share-item/share-item.js +0 -80
  927. package/dist/components/arcgis-login.d.ts +0 -11
  928. package/dist/components/arcgis-login.js +0 -76
  929. package/dist/components/share-item.d.ts +0 -11
  930. package/dist/components/share-item.js +0 -76
  931. package/dist/esm/ExpandToggle-d2cde0b5.js +0 -108
  932. package/dist/esm/FloatingArrow-1ba04e83.js +0 -46
  933. package/dist/esm/Heading-82d9e017.js +0 -22
  934. package/dist/esm/Validation-594a63f5.js +0 -18
  935. package/dist/esm/app-globals-177bd1cd.js +0 -65
  936. package/dist/esm/ar-a85b5d05.js +0 -104
  937. package/dist/esm/arcgis-login.entry.js +0 -57
  938. package/dist/esm/bg-def28c6d.js +0 -82
  939. package/dist/esm/browser-e3f463e1.js +0 -32
  940. package/dist/esm/bs-86bb2bcb.js +0 -51
  941. package/dist/esm/ca-823e6ba8.js +0 -71
  942. package/dist/esm/calcite-alert_6.entry.js +0 -2096
  943. package/dist/esm/calcite-input-time-picker-c45e1964.js +0 -1867
  944. package/dist/esm/calcite-modal.entry.js +0 -389
  945. package/dist/esm/common-c3bbba83.js +0 -36
  946. package/dist/esm/conditionalSlot-720a3c33.js +0 -51
  947. package/dist/esm/config-3af0e436.js +0 -36
  948. package/dist/esm/constants-637a40f5.js +0 -856
  949. package/dist/esm/cs-87414fd8.js +0 -147
  950. package/dist/esm/da-f7060594.js +0 -67
  951. package/dist/esm/date-8f6c3f50.js +0 -248
  952. package/dist/esm/de-18aa2195.js +0 -91
  953. package/dist/esm/de-at-00f0ce55.js +0 -90
  954. package/dist/esm/de-ch-2bf886c0.js +0 -90
  955. package/dist/esm/delete-dialog.entry.js +0 -127
  956. package/dist/esm/dom-6f6759df.js +0 -1165
  957. package/dist/esm/downloadUtils-bc7a4ba1.js +0 -3233
  958. package/dist/esm/el-0c5df4ce.js +0 -66
  959. package/dist/esm/en-au-947d067e.js +0 -66
  960. package/dist/esm/en-ca-d80eb647.js +0 -65
  961. package/dist/esm/en-gb-78272f13.js +0 -69
  962. package/dist/esm/es-6b8b399b.js +0 -66
  963. package/dist/esm/es-mx-4f12df51.js +0 -65
  964. package/dist/esm/et-11aeba76.js +0 -92
  965. package/dist/esm/fi-c44d11d6.js +0 -115
  966. package/dist/esm/floating-ui-d21020a0.js +0 -2404
  967. package/dist/esm/focusTrapComponent-1ddc67c5.js +0 -1008
  968. package/dist/esm/form-e9b1ad9a.js +0 -372
  969. package/dist/esm/fr-cac28d20.js +0 -68
  970. package/dist/esm/fr-ch-a324bd02.js +0 -66
  971. package/dist/esm/he-eab95e66.js +0 -105
  972. package/dist/esm/helpers-91ca0f44.js +0 -913
  973. package/dist/esm/hi-cefe2a7e.js +0 -65
  974. package/dist/esm/hr-f863024d.js +0 -80
  975. package/dist/esm/hu-2921d1d5.js +0 -88
  976. package/dist/esm/id-4e25c1e7.js +0 -66
  977. package/dist/esm/index-39bc2e6d.js +0 -199
  978. package/dist/esm/index-904bc599.js +0 -1736
  979. package/dist/esm/index-e14fade9.js +0 -2154
  980. package/dist/esm/index.es-0d189a34.js +0 -11220
  981. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +0 -584
  982. package/dist/esm/interactive-949b348f.js +0 -82
  983. package/dist/esm/it-1f2ce2fc.js +0 -66
  984. package/dist/esm/it-ch-fa4f6a28.js +0 -66
  985. package/dist/esm/ja-dd6ac9b5.js +0 -72
  986. package/dist/esm/ko-3c269b4f.js +0 -72
  987. package/dist/esm/label-1ef4763d.js +0 -179
  988. package/dist/esm/loadable-421e634e.js +0 -93
  989. package/dist/esm/locale-0d06fca0.js +0 -155
  990. package/dist/esm/locale-77038bee.js +0 -115
  991. package/dist/esm/locale-a75d14ff.js +0 -591
  992. package/dist/esm/logger-5c7a2fec.js +0 -59
  993. package/dist/esm/lt-8f5fd3eb.js +0 -97
  994. package/dist/esm/lv-d1afc7ed.js +0 -66
  995. package/dist/esm/mk-794650fc.js +0 -66
  996. package/dist/esm/nb-800989aa.js +0 -67
  997. package/dist/esm/nl-634b9b85.js +0 -67
  998. package/dist/esm/observers-2d4fa9e3.js +0 -56
  999. package/dist/esm/openCloseComponent-4621d4ae.js +0 -63
  1000. package/dist/esm/pl-45fb968c.js +0 -114
  1001. package/dist/esm/popupUtils-03dc398a.js +0 -119
  1002. package/dist/esm/pt-bd7887a6.js +0 -67
  1003. package/dist/esm/pt-br-d9181dce.js +0 -65
  1004. package/dist/esm/publicNotificationStore-8f6b0f93.js +0 -45
  1005. package/dist/esm/restHelpersGet-48113381.js +0 -976
  1006. package/dist/esm/ro-31fe0dcc.js +0 -66
  1007. package/dist/esm/ru-e73bc075.js +0 -126
  1008. package/dist/esm/share-item.entry.js +0 -57
  1009. package/dist/esm/shared-list-render-83bb7274.js +0 -339
  1010. package/dist/esm/sk-e7e24146.js +0 -148
  1011. package/dist/esm/sl-ad96d047.js +0 -168
  1012. package/dist/esm/solution-resource-f5809979.js +0 -142
  1013. package/dist/esm/solution-store-ff13861b.js +0 -1352
  1014. package/dist/esm/sr-785166a3.js +0 -101
  1015. package/dist/esm/sv-9f422817.js +0 -71
  1016. package/dist/esm/t9n-23649a4a.js +0 -103
  1017. package/dist/esm/templates-0b442208.js +0 -402
  1018. package/dist/esm/th-7e8b3dad.js +0 -65
  1019. package/dist/esm/time-5ca488ba.js +0 -286
  1020. package/dist/esm/tr-1b1dd6db.js +0 -66
  1021. package/dist/esm/uk-13d0afbf.js +0 -104
  1022. package/dist/esm/utils-0a78d3c9.js +0 -142
  1023. package/dist/esm/utils-a564ca55.js +0 -66
  1024. package/dist/esm/vi-82ec876c.js +0 -70
  1025. package/dist/esm/zh-cn-c4181895.js +0 -94
  1026. package/dist/esm/zh-hk-752cc263.js +0 -92
  1027. package/dist/esm/zh-tw-e653ba6c.js +0 -92
  1028. package/dist/solutions-components/p-053effee.entry.js +0 -6
  1029. package/dist/solutions-components/p-05ae2b11.entry.js +0 -6
  1030. package/dist/solutions-components/p-087c3740.entry.js +0 -6
  1031. package/dist/solutions-components/p-08c18450.js +0 -11
  1032. package/dist/solutions-components/p-09543b4e.js +0 -6
  1033. package/dist/solutions-components/p-09d34b2b.entry.js +0 -11
  1034. package/dist/solutions-components/p-0af967af.js +0 -6
  1035. package/dist/solutions-components/p-0f8241d2.entry.js +0 -6
  1036. package/dist/solutions-components/p-10a158fd.entry.js +0 -11
  1037. package/dist/solutions-components/p-115af8e4.entry.js +0 -11
  1038. package/dist/solutions-components/p-11c2426d.entry.js +0 -20
  1039. package/dist/solutions-components/p-1336a071.entry.js +0 -6
  1040. package/dist/solutions-components/p-1588fad8.entry.js +0 -6
  1041. package/dist/solutions-components/p-177b4cbc.js +0 -16
  1042. package/dist/solutions-components/p-184b270d.entry.js +0 -11
  1043. package/dist/solutions-components/p-191f30e1.entry.js +0 -11
  1044. package/dist/solutions-components/p-19e89591.entry.js +0 -12
  1045. package/dist/solutions-components/p-1afc5947.entry.js +0 -11
  1046. package/dist/solutions-components/p-1b1ff60a.entry.js +0 -6
  1047. package/dist/solutions-components/p-1e8af7ed.js +0 -6
  1048. package/dist/solutions-components/p-1f65aed7.js +0 -6
  1049. package/dist/solutions-components/p-1fafdc23.entry.js +0 -11
  1050. package/dist/solutions-components/p-20ed3f7f.entry.js +0 -11
  1051. package/dist/solutions-components/p-2105e658.entry.js +0 -6
  1052. package/dist/solutions-components/p-25f30972.entry.js +0 -11
  1053. package/dist/solutions-components/p-26ba0cc7.js +0 -17
  1054. package/dist/solutions-components/p-2714a658.entry.js +0 -6
  1055. package/dist/solutions-components/p-2714ede8.entry.js +0 -16
  1056. package/dist/solutions-components/p-274aa753.entry.js +0 -6
  1057. package/dist/solutions-components/p-294cd25c.js +0 -6
  1058. package/dist/solutions-components/p-2b9f9f7d.js +0 -16
  1059. package/dist/solutions-components/p-2d9072d8.entry.js +0 -11
  1060. package/dist/solutions-components/p-2e0aea4e.entry.js +0 -11
  1061. package/dist/solutions-components/p-2e42f34c.js +0 -6
  1062. package/dist/solutions-components/p-2f1ef41d.entry.js +0 -6
  1063. package/dist/solutions-components/p-2f784608.entry.js +0 -6
  1064. package/dist/solutions-components/p-351c7cbf.entry.js +0 -6
  1065. package/dist/solutions-components/p-368902f1.entry.js +0 -6
  1066. package/dist/solutions-components/p-39e21b70.js +0 -6
  1067. package/dist/solutions-components/p-3aee989b.js +0 -11
  1068. package/dist/solutions-components/p-3af39767.entry.js +0 -6
  1069. package/dist/solutions-components/p-3ba388b6.entry.js +0 -17
  1070. package/dist/solutions-components/p-3d999f0f.entry.js +0 -6
  1071. package/dist/solutions-components/p-3e44cfab.entry.js +0 -6
  1072. package/dist/solutions-components/p-3e87c19c.js +0 -6
  1073. package/dist/solutions-components/p-3f9ec755.js +0 -6
  1074. package/dist/solutions-components/p-3fe6c230.entry.js +0 -6
  1075. package/dist/solutions-components/p-41503b16.entry.js +0 -6
  1076. package/dist/solutions-components/p-4416d650.entry.js +0 -17
  1077. package/dist/solutions-components/p-443be7fe.js +0 -6
  1078. package/dist/solutions-components/p-44dc3dec.entry.js +0 -6
  1079. package/dist/solutions-components/p-4695cfab.js +0 -6
  1080. package/dist/solutions-components/p-499489c5.entry.js +0 -6
  1081. package/dist/solutions-components/p-49df6eb3.entry.js +0 -11
  1082. package/dist/solutions-components/p-4a665563.js +0 -6
  1083. package/dist/solutions-components/p-4b15f4a4.entry.js +0 -11
  1084. package/dist/solutions-components/p-4b47caf1.entry.js +0 -11
  1085. package/dist/solutions-components/p-4d6e359e.entry.js +0 -11
  1086. package/dist/solutions-components/p-4e3a18b1.js +0 -6
  1087. package/dist/solutions-components/p-4e6eb06e.js +0 -7
  1088. package/dist/solutions-components/p-4ff35ed4.js +0 -6
  1089. package/dist/solutions-components/p-5104cc98.js +0 -6
  1090. package/dist/solutions-components/p-51c6e6fe.js +0 -21
  1091. package/dist/solutions-components/p-545a48dc.entry.js +0 -11
  1092. package/dist/solutions-components/p-55bbfdbc.entry.js +0 -6
  1093. package/dist/solutions-components/p-5804e6e1.entry.js +0 -22
  1094. package/dist/solutions-components/p-58cff07f.entry.js +0 -11
  1095. package/dist/solutions-components/p-592ab45c.js +0 -6
  1096. package/dist/solutions-components/p-592f2000.entry.js +0 -6
  1097. package/dist/solutions-components/p-5b5b78c0.js +0 -6
  1098. package/dist/solutions-components/p-5e71e72a.js +0 -21
  1099. package/dist/solutions-components/p-614a66c4.entry.js +0 -11
  1100. package/dist/solutions-components/p-6166d8b4.js +0 -16
  1101. package/dist/solutions-components/p-61cc2efe.js +0 -6
  1102. package/dist/solutions-components/p-62c10928.entry.js +0 -6
  1103. package/dist/solutions-components/p-63d334b2.entry.js +0 -6
  1104. package/dist/solutions-components/p-677db47a.js +0 -6
  1105. package/dist/solutions-components/p-68375137.js +0 -6
  1106. package/dist/solutions-components/p-6a3f2249.entry.js +0 -6
  1107. package/dist/solutions-components/p-6acd19c5.entry.js +0 -12
  1108. package/dist/solutions-components/p-6b5b52c1.entry.js +0 -21
  1109. package/dist/solutions-components/p-6cad2a22.js +0 -6
  1110. package/dist/solutions-components/p-6f606cdb.js +0 -61
  1111. package/dist/solutions-components/p-7059fc40.js +0 -6
  1112. package/dist/solutions-components/p-70eba636.entry.js +0 -6
  1113. package/dist/solutions-components/p-71f31d39.js +0 -6
  1114. package/dist/solutions-components/p-74720d2b.js +0 -6
  1115. package/dist/solutions-components/p-7530a02f.js +0 -30
  1116. package/dist/solutions-components/p-764ff506.entry.js +0 -11
  1117. package/dist/solutions-components/p-76a1236d.entry.js +0 -6
  1118. package/dist/solutions-components/p-770a5a64.js +0 -11
  1119. package/dist/solutions-components/p-77865541.entry.js +0 -11
  1120. package/dist/solutions-components/p-78b6d3fe.entry.js +0 -6
  1121. package/dist/solutions-components/p-78df7603.entry.js +0 -11
  1122. package/dist/solutions-components/p-78e09c03.js +0 -6
  1123. package/dist/solutions-components/p-7a7951bd.entry.js +0 -11
  1124. package/dist/solutions-components/p-7bcfe068.entry.js +0 -6
  1125. package/dist/solutions-components/p-7cc8e95a.js +0 -11
  1126. package/dist/solutions-components/p-7d5d1b0a.js +0 -11
  1127. package/dist/solutions-components/p-7eee9aa8.js +0 -11
  1128. package/dist/solutions-components/p-7f68e6a4.js +0 -11
  1129. package/dist/solutions-components/p-7fb51464.entry.js +0 -17
  1130. package/dist/solutions-components/p-80ff858b.js +0 -6
  1131. package/dist/solutions-components/p-8304ce4b.js +0 -17
  1132. package/dist/solutions-components/p-85c068fd.js +0 -6
  1133. package/dist/solutions-components/p-85c3237c.js +0 -11
  1134. package/dist/solutions-components/p-860099d5.js +0 -6
  1135. package/dist/solutions-components/p-86a5caf8.js +0 -6
  1136. package/dist/solutions-components/p-86db882f.js +0 -6
  1137. package/dist/solutions-components/p-872986ce.entry.js +0 -11
  1138. package/dist/solutions-components/p-8a2ccb1e.js +0 -6
  1139. package/dist/solutions-components/p-8cb9ecf6.js +0 -6
  1140. package/dist/solutions-components/p-8d811472.js +0 -6
  1141. package/dist/solutions-components/p-8dc9d5b6.entry.js +0 -6
  1142. package/dist/solutions-components/p-8f8c7045.entry.js +0 -6
  1143. package/dist/solutions-components/p-8ff43000.entry.js +0 -11
  1144. package/dist/solutions-components/p-91a83986.entry.js +0 -47
  1145. package/dist/solutions-components/p-928f0b5e.entry.js +0 -6
  1146. package/dist/solutions-components/p-93d03bf0.js +0 -11
  1147. package/dist/solutions-components/p-94e51621.entry.js +0 -6
  1148. package/dist/solutions-components/p-977c099e.js +0 -11
  1149. package/dist/solutions-components/p-9bb44f57.js +0 -65
  1150. package/dist/solutions-components/p-9c25ee2c.entry.js +0 -6
  1151. package/dist/solutions-components/p-9c5d5171.js +0 -11
  1152. package/dist/solutions-components/p-9ce8e34f.js +0 -11
  1153. package/dist/solutions-components/p-9d86dd68.js +0 -6
  1154. package/dist/solutions-components/p-9d9e0e74.entry.js +0 -6
  1155. package/dist/solutions-components/p-9e8d7c1d.entry.js +0 -17
  1156. package/dist/solutions-components/p-9e996faa.js +0 -6
  1157. package/dist/solutions-components/p-a1473254.entry.js +0 -11
  1158. package/dist/solutions-components/p-a1ed15b8.entry.js +0 -11
  1159. package/dist/solutions-components/p-a329f05c.entry.js +0 -6
  1160. package/dist/solutions-components/p-a52fa87b.entry.js +0 -11
  1161. package/dist/solutions-components/p-a5f6a4b9.entry.js +0 -23
  1162. package/dist/solutions-components/p-a6790373.entry.js +0 -11
  1163. package/dist/solutions-components/p-a693aa25.entry.js +0 -17
  1164. package/dist/solutions-components/p-a7d249d9.js +0 -6
  1165. package/dist/solutions-components/p-a7d4b1a4.js +0 -6
  1166. package/dist/solutions-components/p-ac9c4111.entry.js +0 -12
  1167. package/dist/solutions-components/p-acc4d847.entry.js +0 -11
  1168. package/dist/solutions-components/p-adabe68e.entry.js +0 -6
  1169. package/dist/solutions-components/p-ae5ea416.entry.js +0 -6
  1170. package/dist/solutions-components/p-b138a65e.js +0 -11
  1171. package/dist/solutions-components/p-b49e1a78.js +0 -6
  1172. package/dist/solutions-components/p-b5a5da41.entry.js +0 -17
  1173. package/dist/solutions-components/p-b6d50640.entry.js +0 -6
  1174. package/dist/solutions-components/p-b8d1b57a.entry.js +0 -6
  1175. package/dist/solutions-components/p-b90978d2.js +0 -6
  1176. package/dist/solutions-components/p-b95968fa.entry.js +0 -6
  1177. package/dist/solutions-components/p-bab47a85.entry.js +0 -29
  1178. package/dist/solutions-components/p-bd35725f.js +0 -6
  1179. package/dist/solutions-components/p-be6cd650.entry.js +0 -11
  1180. package/dist/solutions-components/p-c0ceb17a.js +0 -6
  1181. package/dist/solutions-components/p-c2ceb29c.js +0 -6
  1182. package/dist/solutions-components/p-c350eacb.js +0 -143
  1183. package/dist/solutions-components/p-c399f2b8.entry.js +0 -6
  1184. package/dist/solutions-components/p-c604728b.js +0 -6
  1185. package/dist/solutions-components/p-c63451e1.entry.js +0 -11
  1186. package/dist/solutions-components/p-c7f86f73.entry.js +0 -6
  1187. package/dist/solutions-components/p-c8e22575.entry.js +0 -22
  1188. package/dist/solutions-components/p-c9422007.js +0 -6
  1189. package/dist/solutions-components/p-c9715704.entry.js +0 -11
  1190. package/dist/solutions-components/p-cb8d90d1.js +0 -11
  1191. package/dist/solutions-components/p-cc6f6e41.entry.js +0 -17
  1192. package/dist/solutions-components/p-cd482a33.js +0 -21
  1193. package/dist/solutions-components/p-cdc63710.entry.js +0 -11
  1194. package/dist/solutions-components/p-ce7b0b1a.entry.js +0 -11
  1195. package/dist/solutions-components/p-cf2947f6.entry.js +0 -11
  1196. package/dist/solutions-components/p-d02fb95c.entry.js +0 -17
  1197. package/dist/solutions-components/p-d031cf50.entry.js +0 -11
  1198. package/dist/solutions-components/p-d0d020a5.js +0 -37
  1199. package/dist/solutions-components/p-d0ebd10d.js +0 -6
  1200. package/dist/solutions-components/p-d154b5a1.entry.js +0 -11
  1201. package/dist/solutions-components/p-d1b2484b.entry.js +0 -17
  1202. package/dist/solutions-components/p-d2c2a105.entry.js +0 -11
  1203. package/dist/solutions-components/p-d2f8d8a8.entry.js +0 -6
  1204. package/dist/solutions-components/p-d37a68f7.entry.js +0 -6
  1205. package/dist/solutions-components/p-d390df76.entry.js +0 -11
  1206. package/dist/solutions-components/p-d3e1cc81.js +0 -6
  1207. package/dist/solutions-components/p-d851b11e.js +0 -6
  1208. package/dist/solutions-components/p-d9d25da8.entry.js +0 -11
  1209. package/dist/solutions-components/p-d9e9fe80.js +0 -16
  1210. package/dist/solutions-components/p-d9f3778e.js +0 -6
  1211. package/dist/solutions-components/p-daae2ae7.js +0 -6
  1212. package/dist/solutions-components/p-db7d5db8.entry.js +0 -6
  1213. package/dist/solutions-components/p-dc9d4be3.js +0 -6
  1214. package/dist/solutions-components/p-ddb37cba.entry.js +0 -11
  1215. package/dist/solutions-components/p-df062602.entry.js +0 -11
  1216. package/dist/solutions-components/p-e29e57db.entry.js +0 -6
  1217. package/dist/solutions-components/p-e2fd2e29.js +0 -6
  1218. package/dist/solutions-components/p-e3111b70.js +0 -6
  1219. package/dist/solutions-components/p-e37e117f.js +0 -11
  1220. package/dist/solutions-components/p-e4be63b6.entry.js +0 -11
  1221. package/dist/solutions-components/p-e4e7add2.js +0 -11
  1222. package/dist/solutions-components/p-e625aa69.entry.js +0 -6
  1223. package/dist/solutions-components/p-e93a531c.entry.js +0 -11
  1224. package/dist/solutions-components/p-e9a0d2f3.entry.js +0 -6
  1225. package/dist/solutions-components/p-e9d3365f.js +0 -22
  1226. package/dist/solutions-components/p-e9fcc194.entry.js +0 -6
  1227. package/dist/solutions-components/p-ee487e75.entry.js +0 -11
  1228. package/dist/solutions-components/p-ef773a13.js +0 -11
  1229. package/dist/solutions-components/p-f09744aa.entry.js +0 -6
  1230. package/dist/solutions-components/p-f3119757.entry.js +0 -11
  1231. package/dist/solutions-components/p-f4aadb3b.js +0 -36
  1232. package/dist/solutions-components/p-f5789e08.entry.js +0 -29
  1233. package/dist/solutions-components/p-f57978f3.entry.js +0 -6
  1234. package/dist/solutions-components/p-f6cc1cf8.entry.js +0 -17
  1235. package/dist/solutions-components/p-f845da58.js +0 -6
  1236. package/dist/solutions-components/p-fbf63d14.entry.js +0 -6
  1237. package/dist/solutions-components/p-fc7c88c8.js +0 -6
  1238. package/dist/solutions-components/p-fd019d15.js +0 -11
  1239. package/dist/solutions-components/p-fd40d066.js +0 -6
  1240. package/dist/solutions-components/p-febf9f75.entry.js +0 -11
  1241. package/dist/solutions-components/p-ff9e28d1.js +0 -488
  1242. package/dist/types/components/arcgis-login/arcgis-login.d.ts +0 -19
  1243. package/dist/types/components/share-item/share-item.d.ts +0 -19
@@ -1,2413 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- 'use strict';
7
-
8
- const resources = require('./resources-6c04ccee.js');
9
- const dom = require('./dom-e11b7daf.js');
10
- const browser = require('./browser-0bedacf5.js');
11
- const debounce = require('./debounce-7f1e04d6.js');
12
-
13
- /**
14
- * Custom positioning reference element.
15
- * @see https://floating-ui.com/docs/virtual-elements
16
- */
17
-
18
- const sides = ['top', 'right', 'bottom', 'left'];
19
- const alignments = ['start', 'end'];
20
- const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
21
- const min = Math.min;
22
- const max = Math.max;
23
- const round = Math.round;
24
- const floor = Math.floor;
25
- const createCoords = v => ({
26
- x: v,
27
- y: v
28
- });
29
- const oppositeSideMap = {
30
- left: 'right',
31
- right: 'left',
32
- bottom: 'top',
33
- top: 'bottom'
34
- };
35
- const oppositeAlignmentMap = {
36
- start: 'end',
37
- end: 'start'
38
- };
39
- function clamp(start, value, end) {
40
- return max(start, min(value, end));
41
- }
42
- function evaluate(value, param) {
43
- return typeof value === 'function' ? value(param) : value;
44
- }
45
- function getSide(placement) {
46
- return placement.split('-')[0];
47
- }
48
- function getAlignment(placement) {
49
- return placement.split('-')[1];
50
- }
51
- function getOppositeAxis(axis) {
52
- return axis === 'x' ? 'y' : 'x';
53
- }
54
- function getAxisLength(axis) {
55
- return axis === 'y' ? 'height' : 'width';
56
- }
57
- function getSideAxis(placement) {
58
- return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
59
- }
60
- function getAlignmentAxis(placement) {
61
- return getOppositeAxis(getSideAxis(placement));
62
- }
63
- function getAlignmentSides(placement, rects, rtl) {
64
- if (rtl === void 0) {
65
- rtl = false;
66
- }
67
- const alignment = getAlignment(placement);
68
- const alignmentAxis = getAlignmentAxis(placement);
69
- const length = getAxisLength(alignmentAxis);
70
- let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
71
- if (rects.reference[length] > rects.floating[length]) {
72
- mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
73
- }
74
- return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
75
- }
76
- function getExpandedPlacements(placement) {
77
- const oppositePlacement = getOppositePlacement(placement);
78
- return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
79
- }
80
- function getOppositeAlignmentPlacement(placement) {
81
- return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
82
- }
83
- function getSideList(side, isStart, rtl) {
84
- const lr = ['left', 'right'];
85
- const rl = ['right', 'left'];
86
- const tb = ['top', 'bottom'];
87
- const bt = ['bottom', 'top'];
88
- switch (side) {
89
- case 'top':
90
- case 'bottom':
91
- if (rtl) return isStart ? rl : lr;
92
- return isStart ? lr : rl;
93
- case 'left':
94
- case 'right':
95
- return isStart ? tb : bt;
96
- default:
97
- return [];
98
- }
99
- }
100
- function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
101
- const alignment = getAlignment(placement);
102
- let list = getSideList(getSide(placement), direction === 'start', rtl);
103
- if (alignment) {
104
- list = list.map(side => side + "-" + alignment);
105
- if (flipAlignment) {
106
- list = list.concat(list.map(getOppositeAlignmentPlacement));
107
- }
108
- }
109
- return list;
110
- }
111
- function getOppositePlacement(placement) {
112
- return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
113
- }
114
- function expandPaddingObject(padding) {
115
- return {
116
- top: 0,
117
- right: 0,
118
- bottom: 0,
119
- left: 0,
120
- ...padding
121
- };
122
- }
123
- function getPaddingObject(padding) {
124
- return typeof padding !== 'number' ? expandPaddingObject(padding) : {
125
- top: padding,
126
- right: padding,
127
- bottom: padding,
128
- left: padding
129
- };
130
- }
131
- function rectToClientRect(rect) {
132
- const {
133
- x,
134
- y,
135
- width,
136
- height
137
- } = rect;
138
- return {
139
- width,
140
- height,
141
- top: y,
142
- left: x,
143
- right: x + width,
144
- bottom: y + height,
145
- x,
146
- y
147
- };
148
- }
149
-
150
- function computeCoordsFromPlacement(_ref, placement, rtl) {
151
- let {
152
- reference,
153
- floating
154
- } = _ref;
155
- const sideAxis = getSideAxis(placement);
156
- const alignmentAxis = getAlignmentAxis(placement);
157
- const alignLength = getAxisLength(alignmentAxis);
158
- const side = getSide(placement);
159
- const isVertical = sideAxis === 'y';
160
- const commonX = reference.x + reference.width / 2 - floating.width / 2;
161
- const commonY = reference.y + reference.height / 2 - floating.height / 2;
162
- const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
163
- let coords;
164
- switch (side) {
165
- case 'top':
166
- coords = {
167
- x: commonX,
168
- y: reference.y - floating.height
169
- };
170
- break;
171
- case 'bottom':
172
- coords = {
173
- x: commonX,
174
- y: reference.y + reference.height
175
- };
176
- break;
177
- case 'right':
178
- coords = {
179
- x: reference.x + reference.width,
180
- y: commonY
181
- };
182
- break;
183
- case 'left':
184
- coords = {
185
- x: reference.x - floating.width,
186
- y: commonY
187
- };
188
- break;
189
- default:
190
- coords = {
191
- x: reference.x,
192
- y: reference.y
193
- };
194
- }
195
- switch (getAlignment(placement)) {
196
- case 'start':
197
- coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
198
- break;
199
- case 'end':
200
- coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
201
- break;
202
- }
203
- return coords;
204
- }
205
-
206
- /**
207
- * Computes the `x` and `y` coordinates that will place the floating element
208
- * next to a given reference element.
209
- *
210
- * This export does not have any `platform` interface logic. You will need to
211
- * write one for the platform you are using Floating UI with.
212
- */
213
- const computePosition$1 = async (reference, floating, config) => {
214
- const {
215
- placement = 'bottom',
216
- strategy = 'absolute',
217
- middleware = [],
218
- platform
219
- } = config;
220
- const validMiddleware = middleware.filter(Boolean);
221
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
222
- let rects = await platform.getElementRects({
223
- reference,
224
- floating,
225
- strategy
226
- });
227
- let {
228
- x,
229
- y
230
- } = computeCoordsFromPlacement(rects, placement, rtl);
231
- let statefulPlacement = placement;
232
- let middlewareData = {};
233
- let resetCount = 0;
234
- for (let i = 0; i < validMiddleware.length; i++) {
235
- const {
236
- name,
237
- fn
238
- } = validMiddleware[i];
239
- const {
240
- x: nextX,
241
- y: nextY,
242
- data,
243
- reset
244
- } = await fn({
245
- x,
246
- y,
247
- initialPlacement: placement,
248
- placement: statefulPlacement,
249
- strategy,
250
- middlewareData,
251
- rects,
252
- platform,
253
- elements: {
254
- reference,
255
- floating
256
- }
257
- });
258
- x = nextX != null ? nextX : x;
259
- y = nextY != null ? nextY : y;
260
- middlewareData = {
261
- ...middlewareData,
262
- [name]: {
263
- ...middlewareData[name],
264
- ...data
265
- }
266
- };
267
- if (reset && resetCount <= 50) {
268
- resetCount++;
269
- if (typeof reset === 'object') {
270
- if (reset.placement) {
271
- statefulPlacement = reset.placement;
272
- }
273
- if (reset.rects) {
274
- rects = reset.rects === true ? await platform.getElementRects({
275
- reference,
276
- floating,
277
- strategy
278
- }) : reset.rects;
279
- }
280
- ({
281
- x,
282
- y
283
- } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
284
- }
285
- i = -1;
286
- }
287
- }
288
- return {
289
- x,
290
- y,
291
- placement: statefulPlacement,
292
- strategy,
293
- middlewareData
294
- };
295
- };
296
-
297
- /**
298
- * Resolves with an object of overflow side offsets that determine how much the
299
- * element is overflowing a given clipping boundary on each side.
300
- * - positive = overflowing the boundary by that number of pixels
301
- * - negative = how many pixels left before it will overflow
302
- * - 0 = lies flush with the boundary
303
- * @see https://floating-ui.com/docs/detectOverflow
304
- */
305
- async function detectOverflow(state, options) {
306
- var _await$platform$isEle;
307
- if (options === void 0) {
308
- options = {};
309
- }
310
- const {
311
- x,
312
- y,
313
- platform,
314
- rects,
315
- elements,
316
- strategy
317
- } = state;
318
- const {
319
- boundary = 'clippingAncestors',
320
- rootBoundary = 'viewport',
321
- elementContext = 'floating',
322
- altBoundary = false,
323
- padding = 0
324
- } = evaluate(options, state);
325
- const paddingObject = getPaddingObject(padding);
326
- const altContext = elementContext === 'floating' ? 'reference' : 'floating';
327
- const element = elements[altBoundary ? altContext : elementContext];
328
- const clippingClientRect = rectToClientRect(await platform.getClippingRect({
329
- element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
330
- boundary,
331
- rootBoundary,
332
- strategy
333
- }));
334
- const rect = elementContext === 'floating' ? {
335
- x,
336
- y,
337
- width: rects.floating.width,
338
- height: rects.floating.height
339
- } : rects.reference;
340
- const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
341
- const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
342
- x: 1,
343
- y: 1
344
- } : {
345
- x: 1,
346
- y: 1
347
- };
348
- const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
349
- elements,
350
- rect,
351
- offsetParent,
352
- strategy
353
- }) : rect);
354
- return {
355
- top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
356
- bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
357
- left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
358
- right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
359
- };
360
- }
361
-
362
- /**
363
- * Provides data to position an inner element of the floating element so that it
364
- * appears centered to the reference element.
365
- * @see https://floating-ui.com/docs/arrow
366
- */
367
- const arrow$1 = options => ({
368
- name: 'arrow',
369
- options,
370
- async fn(state) {
371
- const {
372
- x,
373
- y,
374
- placement,
375
- rects,
376
- platform,
377
- elements,
378
- middlewareData
379
- } = state;
380
- // Since `element` is required, we don't Partial<> the type.
381
- const {
382
- element,
383
- padding = 0
384
- } = evaluate(options, state) || {};
385
- if (element == null) {
386
- return {};
387
- }
388
- const paddingObject = getPaddingObject(padding);
389
- const coords = {
390
- x,
391
- y
392
- };
393
- const axis = getAlignmentAxis(placement);
394
- const length = getAxisLength(axis);
395
- const arrowDimensions = await platform.getDimensions(element);
396
- const isYAxis = axis === 'y';
397
- const minProp = isYAxis ? 'top' : 'left';
398
- const maxProp = isYAxis ? 'bottom' : 'right';
399
- const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
400
- const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
401
- const startDiff = coords[axis] - rects.reference[axis];
402
- const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
403
- let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
404
-
405
- // DOM platform can return `window` as the `offsetParent`.
406
- if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
407
- clientSize = elements.floating[clientProp] || rects.floating[length];
408
- }
409
- const centerToReference = endDiff / 2 - startDiff / 2;
410
-
411
- // If the padding is large enough that it causes the arrow to no longer be
412
- // centered, modify the padding so that it is centered.
413
- const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
414
- const minPadding = min(paddingObject[minProp], largestPossiblePadding);
415
- const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
416
-
417
- // Make sure the arrow doesn't overflow the floating element if the center
418
- // point is outside the floating element's bounds.
419
- const min$1 = minPadding;
420
- const max = clientSize - arrowDimensions[length] - maxPadding;
421
- const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
422
- const offset = clamp(min$1, center, max);
423
-
424
- // If the reference is small enough that the arrow's padding causes it to
425
- // to point to nothing for an aligned placement, adjust the offset of the
426
- // floating element itself. To ensure `shift()` continues to take action,
427
- // a single reset is performed when this is true.
428
- const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
429
- const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
430
- return {
431
- [axis]: coords[axis] + alignmentOffset,
432
- data: {
433
- [axis]: offset,
434
- centerOffset: center - offset - alignmentOffset,
435
- ...(shouldAddOffset && {
436
- alignmentOffset
437
- })
438
- },
439
- reset: shouldAddOffset
440
- };
441
- }
442
- });
443
-
444
- function getPlacementList(alignment, autoAlignment, allowedPlacements) {
445
- const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
446
- return allowedPlacementsSortedByAlignment.filter(placement => {
447
- if (alignment) {
448
- return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
449
- }
450
- return true;
451
- });
452
- }
453
- /**
454
- * Optimizes the visibility of the floating element by choosing the placement
455
- * that has the most space available automatically, without needing to specify a
456
- * preferred placement. Alternative to `flip`.
457
- * @see https://floating-ui.com/docs/autoPlacement
458
- */
459
- const autoPlacement$1 = function (options) {
460
- if (options === void 0) {
461
- options = {};
462
- }
463
- return {
464
- name: 'autoPlacement',
465
- options,
466
- async fn(state) {
467
- var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
468
- const {
469
- rects,
470
- middlewareData,
471
- placement,
472
- platform,
473
- elements
474
- } = state;
475
- const {
476
- crossAxis = false,
477
- alignment,
478
- allowedPlacements = placements,
479
- autoAlignment = true,
480
- ...detectOverflowOptions
481
- } = evaluate(options, state);
482
- const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
483
- const overflow = await detectOverflow(state, detectOverflowOptions);
484
- const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
485
- const currentPlacement = placements$1[currentIndex];
486
- if (currentPlacement == null) {
487
- return {};
488
- }
489
- const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
490
-
491
- // Make `computeCoords` start from the right place.
492
- if (placement !== currentPlacement) {
493
- return {
494
- reset: {
495
- placement: placements$1[0]
496
- }
497
- };
498
- }
499
- const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
500
- const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
501
- placement: currentPlacement,
502
- overflows: currentOverflows
503
- }];
504
- const nextPlacement = placements$1[currentIndex + 1];
505
-
506
- // There are more placements to check.
507
- if (nextPlacement) {
508
- return {
509
- data: {
510
- index: currentIndex + 1,
511
- overflows: allOverflows
512
- },
513
- reset: {
514
- placement: nextPlacement
515
- }
516
- };
517
- }
518
- const placementsSortedByMostSpace = allOverflows.map(d => {
519
- const alignment = getAlignment(d.placement);
520
- return [d.placement, alignment && crossAxis ?
521
- // Check along the mainAxis and main crossAxis side.
522
- d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
523
- // Check only the mainAxis.
524
- d.overflows[0], d.overflows];
525
- }).sort((a, b) => a[1] - b[1]);
526
- const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
527
- // Aligned placements should not check their opposite crossAxis
528
- // side.
529
- getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
530
- const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
531
- if (resetPlacement !== placement) {
532
- return {
533
- data: {
534
- index: currentIndex + 1,
535
- overflows: allOverflows
536
- },
537
- reset: {
538
- placement: resetPlacement
539
- }
540
- };
541
- }
542
- return {};
543
- }
544
- };
545
- };
546
-
547
- /**
548
- * Optimizes the visibility of the floating element by flipping the `placement`
549
- * in order to keep it in view when the preferred placement(s) will overflow the
550
- * clipping boundary. Alternative to `autoPlacement`.
551
- * @see https://floating-ui.com/docs/flip
552
- */
553
- const flip$1 = function (options) {
554
- if (options === void 0) {
555
- options = {};
556
- }
557
- return {
558
- name: 'flip',
559
- options,
560
- async fn(state) {
561
- var _middlewareData$arrow, _middlewareData$flip;
562
- const {
563
- placement,
564
- middlewareData,
565
- rects,
566
- initialPlacement,
567
- platform,
568
- elements
569
- } = state;
570
- const {
571
- mainAxis: checkMainAxis = true,
572
- crossAxis: checkCrossAxis = true,
573
- fallbackPlacements: specifiedFallbackPlacements,
574
- fallbackStrategy = 'bestFit',
575
- fallbackAxisSideDirection = 'none',
576
- flipAlignment = true,
577
- ...detectOverflowOptions
578
- } = evaluate(options, state);
579
-
580
- // If a reset by the arrow was caused due to an alignment offset being
581
- // added, we should skip any logic now since `flip()` has already done its
582
- // work.
583
- // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
584
- if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
585
- return {};
586
- }
587
- const side = getSide(placement);
588
- const initialSideAxis = getSideAxis(initialPlacement);
589
- const isBasePlacement = getSide(initialPlacement) === initialPlacement;
590
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
591
- const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
592
- const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
593
- if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
594
- fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
595
- }
596
- const placements = [initialPlacement, ...fallbackPlacements];
597
- const overflow = await detectOverflow(state, detectOverflowOptions);
598
- const overflows = [];
599
- let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
600
- if (checkMainAxis) {
601
- overflows.push(overflow[side]);
602
- }
603
- if (checkCrossAxis) {
604
- const sides = getAlignmentSides(placement, rects, rtl);
605
- overflows.push(overflow[sides[0]], overflow[sides[1]]);
606
- }
607
- overflowsData = [...overflowsData, {
608
- placement,
609
- overflows
610
- }];
611
-
612
- // One or more sides is overflowing.
613
- if (!overflows.every(side => side <= 0)) {
614
- var _middlewareData$flip2, _overflowsData$filter;
615
- const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
616
- const nextPlacement = placements[nextIndex];
617
- if (nextPlacement) {
618
- // Try next placement and re-run the lifecycle.
619
- return {
620
- data: {
621
- index: nextIndex,
622
- overflows: overflowsData
623
- },
624
- reset: {
625
- placement: nextPlacement
626
- }
627
- };
628
- }
629
-
630
- // First, find the candidates that fit on the mainAxis side of overflow,
631
- // then find the placement that fits the best on the main crossAxis side.
632
- let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
633
-
634
- // Otherwise fallback.
635
- if (!resetPlacement) {
636
- switch (fallbackStrategy) {
637
- case 'bestFit':
638
- {
639
- var _overflowsData$filter2;
640
- const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
641
- if (hasFallbackAxisSideDirection) {
642
- const currentSideAxis = getSideAxis(d.placement);
643
- return currentSideAxis === initialSideAxis ||
644
- // Create a bias to the `y` side axis due to horizontal
645
- // reading directions favoring greater width.
646
- currentSideAxis === 'y';
647
- }
648
- return true;
649
- }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
650
- if (placement) {
651
- resetPlacement = placement;
652
- }
653
- break;
654
- }
655
- case 'initialPlacement':
656
- resetPlacement = initialPlacement;
657
- break;
658
- }
659
- }
660
- if (placement !== resetPlacement) {
661
- return {
662
- reset: {
663
- placement: resetPlacement
664
- }
665
- };
666
- }
667
- }
668
- return {};
669
- }
670
- };
671
- };
672
-
673
- function getSideOffsets(overflow, rect) {
674
- return {
675
- top: overflow.top - rect.height,
676
- right: overflow.right - rect.width,
677
- bottom: overflow.bottom - rect.height,
678
- left: overflow.left - rect.width
679
- };
680
- }
681
- function isAnySideFullyClipped(overflow) {
682
- return sides.some(side => overflow[side] >= 0);
683
- }
684
- /**
685
- * Provides data to hide the floating element in applicable situations, such as
686
- * when it is not in the same clipping context as the reference element.
687
- * @see https://floating-ui.com/docs/hide
688
- */
689
- const hide$1 = function (options) {
690
- if (options === void 0) {
691
- options = {};
692
- }
693
- return {
694
- name: 'hide',
695
- options,
696
- async fn(state) {
697
- const {
698
- rects
699
- } = state;
700
- const {
701
- strategy = 'referenceHidden',
702
- ...detectOverflowOptions
703
- } = evaluate(options, state);
704
- switch (strategy) {
705
- case 'referenceHidden':
706
- {
707
- const overflow = await detectOverflow(state, {
708
- ...detectOverflowOptions,
709
- elementContext: 'reference'
710
- });
711
- const offsets = getSideOffsets(overflow, rects.reference);
712
- return {
713
- data: {
714
- referenceHiddenOffsets: offsets,
715
- referenceHidden: isAnySideFullyClipped(offsets)
716
- }
717
- };
718
- }
719
- case 'escaped':
720
- {
721
- const overflow = await detectOverflow(state, {
722
- ...detectOverflowOptions,
723
- altBoundary: true
724
- });
725
- const offsets = getSideOffsets(overflow, rects.floating);
726
- return {
727
- data: {
728
- escapedOffsets: offsets,
729
- escaped: isAnySideFullyClipped(offsets)
730
- }
731
- };
732
- }
733
- default:
734
- {
735
- return {};
736
- }
737
- }
738
- }
739
- };
740
- };
741
-
742
- function getBoundingRect(rects) {
743
- const minX = min(...rects.map(rect => rect.left));
744
- const minY = min(...rects.map(rect => rect.top));
745
- const maxX = max(...rects.map(rect => rect.right));
746
- const maxY = max(...rects.map(rect => rect.bottom));
747
- return {
748
- x: minX,
749
- y: minY,
750
- width: maxX - minX,
751
- height: maxY - minY
752
- };
753
- }
754
- function getRectsByLine(rects) {
755
- const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
756
- const groups = [];
757
- let prevRect = null;
758
- for (let i = 0; i < sortedRects.length; i++) {
759
- const rect = sortedRects[i];
760
- if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
761
- groups.push([rect]);
762
- } else {
763
- groups[groups.length - 1].push(rect);
764
- }
765
- prevRect = rect;
766
- }
767
- return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
768
- }
769
- /**
770
- * Provides improved positioning for inline reference elements that can span
771
- * over multiple lines, such as hyperlinks or range selections.
772
- * @see https://floating-ui.com/docs/inline
773
- */
774
- const inline = function (options) {
775
- if (options === void 0) {
776
- options = {};
777
- }
778
- return {
779
- name: 'inline',
780
- options,
781
- async fn(state) {
782
- const {
783
- placement,
784
- elements,
785
- rects,
786
- platform,
787
- strategy
788
- } = state;
789
- // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
790
- // ClientRect's bounds, despite the event listener being triggered. A
791
- // padding of 2 seems to handle this issue.
792
- const {
793
- padding = 2,
794
- x,
795
- y
796
- } = evaluate(options, state);
797
- const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
798
- const clientRects = getRectsByLine(nativeClientRects);
799
- const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
800
- const paddingObject = getPaddingObject(padding);
801
- function getBoundingClientRect() {
802
- // There are two rects and they are disjoined.
803
- if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
804
- // Find the first rect in which the point is fully inside.
805
- return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
806
- }
807
-
808
- // There are 2 or more connected rects.
809
- if (clientRects.length >= 2) {
810
- if (getSideAxis(placement) === 'y') {
811
- const firstRect = clientRects[0];
812
- const lastRect = clientRects[clientRects.length - 1];
813
- const isTop = getSide(placement) === 'top';
814
- const top = firstRect.top;
815
- const bottom = lastRect.bottom;
816
- const left = isTop ? firstRect.left : lastRect.left;
817
- const right = isTop ? firstRect.right : lastRect.right;
818
- const width = right - left;
819
- const height = bottom - top;
820
- return {
821
- top,
822
- bottom,
823
- left,
824
- right,
825
- width,
826
- height,
827
- x: left,
828
- y: top
829
- };
830
- }
831
- const isLeftSide = getSide(placement) === 'left';
832
- const maxRight = max(...clientRects.map(rect => rect.right));
833
- const minLeft = min(...clientRects.map(rect => rect.left));
834
- const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
835
- const top = measureRects[0].top;
836
- const bottom = measureRects[measureRects.length - 1].bottom;
837
- const left = minLeft;
838
- const right = maxRight;
839
- const width = right - left;
840
- const height = bottom - top;
841
- return {
842
- top,
843
- bottom,
844
- left,
845
- right,
846
- width,
847
- height,
848
- x: left,
849
- y: top
850
- };
851
- }
852
- return fallback;
853
- }
854
- const resetRects = await platform.getElementRects({
855
- reference: {
856
- getBoundingClientRect
857
- },
858
- floating: elements.floating,
859
- strategy
860
- });
861
- if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
862
- return {
863
- reset: {
864
- rects: resetRects
865
- }
866
- };
867
- }
868
- return {};
869
- }
870
- };
871
- };
872
-
873
- // For type backwards-compatibility, the `OffsetOptions` type was also
874
- // Derivable.
875
-
876
- async function convertValueToCoords(state, options) {
877
- const {
878
- placement,
879
- platform,
880
- elements
881
- } = state;
882
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
883
- const side = getSide(placement);
884
- const alignment = getAlignment(placement);
885
- const isVertical = getSideAxis(placement) === 'y';
886
- const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
887
- const crossAxisMulti = rtl && isVertical ? -1 : 1;
888
- const rawValue = evaluate(options, state);
889
-
890
- // eslint-disable-next-line prefer-const
891
- let {
892
- mainAxis,
893
- crossAxis,
894
- alignmentAxis
895
- } = typeof rawValue === 'number' ? {
896
- mainAxis: rawValue,
897
- crossAxis: 0,
898
- alignmentAxis: null
899
- } : {
900
- mainAxis: 0,
901
- crossAxis: 0,
902
- alignmentAxis: null,
903
- ...rawValue
904
- };
905
- if (alignment && typeof alignmentAxis === 'number') {
906
- crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
907
- }
908
- return isVertical ? {
909
- x: crossAxis * crossAxisMulti,
910
- y: mainAxis * mainAxisMulti
911
- } : {
912
- x: mainAxis * mainAxisMulti,
913
- y: crossAxis * crossAxisMulti
914
- };
915
- }
916
-
917
- /**
918
- * Modifies the placement by translating the floating element along the
919
- * specified axes.
920
- * A number (shorthand for `mainAxis` or distance), or an axes configuration
921
- * object may be passed.
922
- * @see https://floating-ui.com/docs/offset
923
- */
924
- const offset$1 = function (options) {
925
- if (options === void 0) {
926
- options = 0;
927
- }
928
- return {
929
- name: 'offset',
930
- options,
931
- async fn(state) {
932
- var _middlewareData$offse, _middlewareData$arrow;
933
- const {
934
- x,
935
- y,
936
- placement,
937
- middlewareData
938
- } = state;
939
- const diffCoords = await convertValueToCoords(state, options);
940
-
941
- // If the placement is the same and the arrow caused an alignment offset
942
- // then we don't need to change the positioning coordinates.
943
- if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
944
- return {};
945
- }
946
- return {
947
- x: x + diffCoords.x,
948
- y: y + diffCoords.y,
949
- data: {
950
- ...diffCoords,
951
- placement
952
- }
953
- };
954
- }
955
- };
956
- };
957
-
958
- /**
959
- * Optimizes the visibility of the floating element by shifting it in order to
960
- * keep it in view when it will overflow the clipping boundary.
961
- * @see https://floating-ui.com/docs/shift
962
- */
963
- const shift$1 = function (options) {
964
- if (options === void 0) {
965
- options = {};
966
- }
967
- return {
968
- name: 'shift',
969
- options,
970
- async fn(state) {
971
- const {
972
- x,
973
- y,
974
- placement
975
- } = state;
976
- const {
977
- mainAxis: checkMainAxis = true,
978
- crossAxis: checkCrossAxis = false,
979
- limiter = {
980
- fn: _ref => {
981
- let {
982
- x,
983
- y
984
- } = _ref;
985
- return {
986
- x,
987
- y
988
- };
989
- }
990
- },
991
- ...detectOverflowOptions
992
- } = evaluate(options, state);
993
- const coords = {
994
- x,
995
- y
996
- };
997
- const overflow = await detectOverflow(state, detectOverflowOptions);
998
- const crossAxis = getSideAxis(getSide(placement));
999
- const mainAxis = getOppositeAxis(crossAxis);
1000
- let mainAxisCoord = coords[mainAxis];
1001
- let crossAxisCoord = coords[crossAxis];
1002
- if (checkMainAxis) {
1003
- const minSide = mainAxis === 'y' ? 'top' : 'left';
1004
- const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
1005
- const min = mainAxisCoord + overflow[minSide];
1006
- const max = mainAxisCoord - overflow[maxSide];
1007
- mainAxisCoord = clamp(min, mainAxisCoord, max);
1008
- }
1009
- if (checkCrossAxis) {
1010
- const minSide = crossAxis === 'y' ? 'top' : 'left';
1011
- const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
1012
- const min = crossAxisCoord + overflow[minSide];
1013
- const max = crossAxisCoord - overflow[maxSide];
1014
- crossAxisCoord = clamp(min, crossAxisCoord, max);
1015
- }
1016
- const limitedCoords = limiter.fn({
1017
- ...state,
1018
- [mainAxis]: mainAxisCoord,
1019
- [crossAxis]: crossAxisCoord
1020
- });
1021
- return {
1022
- ...limitedCoords,
1023
- data: {
1024
- x: limitedCoords.x - x,
1025
- y: limitedCoords.y - y
1026
- }
1027
- };
1028
- }
1029
- };
1030
- };
1031
- /**
1032
- * Built-in `limiter` that will stop `shift()` at a certain point.
1033
- */
1034
- const limitShift = function (options) {
1035
- if (options === void 0) {
1036
- options = {};
1037
- }
1038
- return {
1039
- options,
1040
- fn(state) {
1041
- const {
1042
- x,
1043
- y,
1044
- placement,
1045
- rects,
1046
- middlewareData
1047
- } = state;
1048
- const {
1049
- offset = 0,
1050
- mainAxis: checkMainAxis = true,
1051
- crossAxis: checkCrossAxis = true
1052
- } = evaluate(options, state);
1053
- const coords = {
1054
- x,
1055
- y
1056
- };
1057
- const crossAxis = getSideAxis(placement);
1058
- const mainAxis = getOppositeAxis(crossAxis);
1059
- let mainAxisCoord = coords[mainAxis];
1060
- let crossAxisCoord = coords[crossAxis];
1061
- const rawOffset = evaluate(offset, state);
1062
- const computedOffset = typeof rawOffset === 'number' ? {
1063
- mainAxis: rawOffset,
1064
- crossAxis: 0
1065
- } : {
1066
- mainAxis: 0,
1067
- crossAxis: 0,
1068
- ...rawOffset
1069
- };
1070
- if (checkMainAxis) {
1071
- const len = mainAxis === 'y' ? 'height' : 'width';
1072
- const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
1073
- const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
1074
- if (mainAxisCoord < limitMin) {
1075
- mainAxisCoord = limitMin;
1076
- } else if (mainAxisCoord > limitMax) {
1077
- mainAxisCoord = limitMax;
1078
- }
1079
- }
1080
- if (checkCrossAxis) {
1081
- var _middlewareData$offse, _middlewareData$offse2;
1082
- const len = mainAxis === 'y' ? 'width' : 'height';
1083
- const isOriginSide = ['top', 'left'].includes(getSide(placement));
1084
- const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
1085
- const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
1086
- if (crossAxisCoord < limitMin) {
1087
- crossAxisCoord = limitMin;
1088
- } else if (crossAxisCoord > limitMax) {
1089
- crossAxisCoord = limitMax;
1090
- }
1091
- }
1092
- return {
1093
- [mainAxis]: mainAxisCoord,
1094
- [crossAxis]: crossAxisCoord
1095
- };
1096
- }
1097
- };
1098
- };
1099
-
1100
- /**
1101
- * Provides data that allows you to change the size of the floating element —
1102
- * for instance, prevent it from overflowing the clipping boundary or match the
1103
- * width of the reference element.
1104
- * @see https://floating-ui.com/docs/size
1105
- */
1106
- const size = function (options) {
1107
- if (options === void 0) {
1108
- options = {};
1109
- }
1110
- return {
1111
- name: 'size',
1112
- options,
1113
- async fn(state) {
1114
- const {
1115
- placement,
1116
- rects,
1117
- platform,
1118
- elements
1119
- } = state;
1120
- const {
1121
- apply = () => {},
1122
- ...detectOverflowOptions
1123
- } = evaluate(options, state);
1124
- const overflow = await detectOverflow(state, detectOverflowOptions);
1125
- const side = getSide(placement);
1126
- const alignment = getAlignment(placement);
1127
- const isYAxis = getSideAxis(placement) === 'y';
1128
- const {
1129
- width,
1130
- height
1131
- } = rects.floating;
1132
- let heightSide;
1133
- let widthSide;
1134
- if (side === 'top' || side === 'bottom') {
1135
- heightSide = side;
1136
- widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
1137
- } else {
1138
- widthSide = side;
1139
- heightSide = alignment === 'end' ? 'top' : 'bottom';
1140
- }
1141
- const maximumClippingHeight = height - overflow.top - overflow.bottom;
1142
- const maximumClippingWidth = width - overflow.left - overflow.right;
1143
- const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
1144
- const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
1145
- const noShift = !state.middlewareData.shift;
1146
- let availableHeight = overflowAvailableHeight;
1147
- let availableWidth = overflowAvailableWidth;
1148
- if (isYAxis) {
1149
- availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
1150
- } else {
1151
- availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
1152
- }
1153
- if (noShift && !alignment) {
1154
- const xMin = max(overflow.left, 0);
1155
- const xMax = max(overflow.right, 0);
1156
- const yMin = max(overflow.top, 0);
1157
- const yMax = max(overflow.bottom, 0);
1158
- if (isYAxis) {
1159
- availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
1160
- } else {
1161
- availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
1162
- }
1163
- }
1164
- await apply({
1165
- ...state,
1166
- availableWidth,
1167
- availableHeight
1168
- });
1169
- const nextDimensions = await platform.getDimensions(elements.floating);
1170
- if (width !== nextDimensions.width || height !== nextDimensions.height) {
1171
- return {
1172
- reset: {
1173
- rects: true
1174
- }
1175
- };
1176
- }
1177
- return {};
1178
- }
1179
- };
1180
- };
1181
-
1182
- function hasWindow() {
1183
- return typeof window !== 'undefined';
1184
- }
1185
- function getNodeName(node) {
1186
- if (isNode(node)) {
1187
- return (node.nodeName || '').toLowerCase();
1188
- }
1189
- // Mocked nodes in testing environments may not be instances of Node. By
1190
- // returning `#document` an infinite loop won't occur.
1191
- // https://github.com/floating-ui/floating-ui/issues/2317
1192
- return '#document';
1193
- }
1194
- function getWindow(node) {
1195
- var _node$ownerDocument;
1196
- return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
1197
- }
1198
- function getDocumentElement(node) {
1199
- var _ref;
1200
- return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
1201
- }
1202
- function isNode(value) {
1203
- if (!hasWindow()) {
1204
- return false;
1205
- }
1206
- return value instanceof Node || value instanceof getWindow(value).Node;
1207
- }
1208
- function isElement(value) {
1209
- if (!hasWindow()) {
1210
- return false;
1211
- }
1212
- return value instanceof Element || value instanceof getWindow(value).Element;
1213
- }
1214
- function isHTMLElement(value) {
1215
- if (!hasWindow()) {
1216
- return false;
1217
- }
1218
- return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
1219
- }
1220
- function isShadowRoot(value) {
1221
- if (!hasWindow() || typeof ShadowRoot === 'undefined') {
1222
- return false;
1223
- }
1224
- return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
1225
- }
1226
- function isOverflowElement(element) {
1227
- const {
1228
- overflow,
1229
- overflowX,
1230
- overflowY,
1231
- display
1232
- } = getComputedStyle$1(element);
1233
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
1234
- }
1235
- function isTableElement(element) {
1236
- return ['table', 'td', 'th'].includes(getNodeName(element));
1237
- }
1238
- function isTopLayer(element) {
1239
- return [':popover-open', ':modal'].some(selector => {
1240
- try {
1241
- return element.matches(selector);
1242
- } catch (e) {
1243
- return false;
1244
- }
1245
- });
1246
- }
1247
- function isContainingBlock(elementOrCss) {
1248
- const webkit = isWebKit();
1249
- const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
1250
-
1251
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1252
- return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
1253
- }
1254
- function getContainingBlock(element) {
1255
- let currentNode = getParentNode(element);
1256
- while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1257
- if (isContainingBlock(currentNode)) {
1258
- return currentNode;
1259
- } else if (isTopLayer(currentNode)) {
1260
- return null;
1261
- }
1262
- currentNode = getParentNode(currentNode);
1263
- }
1264
- return null;
1265
- }
1266
- function isWebKit() {
1267
- if (typeof CSS === 'undefined' || !CSS.supports) return false;
1268
- return CSS.supports('-webkit-backdrop-filter', 'none');
1269
- }
1270
- function isLastTraversableNode(node) {
1271
- return ['html', 'body', '#document'].includes(getNodeName(node));
1272
- }
1273
- function getComputedStyle$1(element) {
1274
- return getWindow(element).getComputedStyle(element);
1275
- }
1276
- function getNodeScroll(element) {
1277
- if (isElement(element)) {
1278
- return {
1279
- scrollLeft: element.scrollLeft,
1280
- scrollTop: element.scrollTop
1281
- };
1282
- }
1283
- return {
1284
- scrollLeft: element.scrollX,
1285
- scrollTop: element.scrollY
1286
- };
1287
- }
1288
- function getParentNode(node) {
1289
- if (getNodeName(node) === 'html') {
1290
- return node;
1291
- }
1292
- const result =
1293
- // Step into the shadow DOM of the parent of a slotted node.
1294
- node.assignedSlot ||
1295
- // DOM Element detected.
1296
- node.parentNode ||
1297
- // ShadowRoot detected.
1298
- isShadowRoot(node) && node.host ||
1299
- // Fallback.
1300
- getDocumentElement(node);
1301
- return isShadowRoot(result) ? result.host : result;
1302
- }
1303
- function getNearestOverflowAncestor(node) {
1304
- const parentNode = getParentNode(node);
1305
- if (isLastTraversableNode(parentNode)) {
1306
- return node.ownerDocument ? node.ownerDocument.body : node.body;
1307
- }
1308
- if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
1309
- return parentNode;
1310
- }
1311
- return getNearestOverflowAncestor(parentNode);
1312
- }
1313
- function getOverflowAncestors(node, list, traverseIframes) {
1314
- var _node$ownerDocument2;
1315
- if (list === void 0) {
1316
- list = [];
1317
- }
1318
- if (traverseIframes === void 0) {
1319
- traverseIframes = true;
1320
- }
1321
- const scrollableAncestor = getNearestOverflowAncestor(node);
1322
- const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
1323
- const win = getWindow(scrollableAncestor);
1324
- if (isBody) {
1325
- const frameElement = getFrameElement(win);
1326
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
1327
- }
1328
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
1329
- }
1330
- function getFrameElement(win) {
1331
- return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
1332
- }
1333
-
1334
- function getCssDimensions(element) {
1335
- const css = getComputedStyle$1(element);
1336
- // In testing environments, the `width` and `height` properties are empty
1337
- // strings for SVG elements, returning NaN. Fallback to `0` in this case.
1338
- let width = parseFloat(css.width) || 0;
1339
- let height = parseFloat(css.height) || 0;
1340
- const hasOffset = isHTMLElement(element);
1341
- const offsetWidth = hasOffset ? element.offsetWidth : width;
1342
- const offsetHeight = hasOffset ? element.offsetHeight : height;
1343
- const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
1344
- if (shouldFallback) {
1345
- width = offsetWidth;
1346
- height = offsetHeight;
1347
- }
1348
- return {
1349
- width,
1350
- height,
1351
- $: shouldFallback
1352
- };
1353
- }
1354
-
1355
- function unwrapElement(element) {
1356
- return !isElement(element) ? element.contextElement : element;
1357
- }
1358
-
1359
- function getScale(element) {
1360
- const domElement = unwrapElement(element);
1361
- if (!isHTMLElement(domElement)) {
1362
- return createCoords(1);
1363
- }
1364
- const rect = domElement.getBoundingClientRect();
1365
- const {
1366
- width,
1367
- height,
1368
- $
1369
- } = getCssDimensions(domElement);
1370
- let x = ($ ? round(rect.width) : rect.width) / width;
1371
- let y = ($ ? round(rect.height) : rect.height) / height;
1372
-
1373
- // 0, NaN, or Infinity should always fallback to 1.
1374
-
1375
- if (!x || !Number.isFinite(x)) {
1376
- x = 1;
1377
- }
1378
- if (!y || !Number.isFinite(y)) {
1379
- y = 1;
1380
- }
1381
- return {
1382
- x,
1383
- y
1384
- };
1385
- }
1386
-
1387
- const noOffsets = /*#__PURE__*/createCoords(0);
1388
- function getVisualOffsets(element) {
1389
- const win = getWindow(element);
1390
- if (!isWebKit() || !win.visualViewport) {
1391
- return noOffsets;
1392
- }
1393
- return {
1394
- x: win.visualViewport.offsetLeft,
1395
- y: win.visualViewport.offsetTop
1396
- };
1397
- }
1398
- function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
1399
- if (isFixed === void 0) {
1400
- isFixed = false;
1401
- }
1402
- if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
1403
- return false;
1404
- }
1405
- return isFixed;
1406
- }
1407
-
1408
- function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
1409
- if (includeScale === void 0) {
1410
- includeScale = false;
1411
- }
1412
- if (isFixedStrategy === void 0) {
1413
- isFixedStrategy = false;
1414
- }
1415
- const clientRect = element.getBoundingClientRect();
1416
- const domElement = unwrapElement(element);
1417
- let scale = createCoords(1);
1418
- if (includeScale) {
1419
- if (offsetParent) {
1420
- if (isElement(offsetParent)) {
1421
- scale = getScale(offsetParent);
1422
- }
1423
- } else {
1424
- scale = getScale(element);
1425
- }
1426
- }
1427
- const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
1428
- let x = (clientRect.left + visualOffsets.x) / scale.x;
1429
- let y = (clientRect.top + visualOffsets.y) / scale.y;
1430
- let width = clientRect.width / scale.x;
1431
- let height = clientRect.height / scale.y;
1432
- if (domElement) {
1433
- const win = getWindow(domElement);
1434
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
1435
- let currentWin = win;
1436
- let currentIFrame = getFrameElement(currentWin);
1437
- while (currentIFrame && offsetParent && offsetWin !== currentWin) {
1438
- const iframeScale = getScale(currentIFrame);
1439
- const iframeRect = currentIFrame.getBoundingClientRect();
1440
- const css = getComputedStyle$1(currentIFrame);
1441
- const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
1442
- const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
1443
- x *= iframeScale.x;
1444
- y *= iframeScale.y;
1445
- width *= iframeScale.x;
1446
- height *= iframeScale.y;
1447
- x += left;
1448
- y += top;
1449
- currentWin = getWindow(currentIFrame);
1450
- currentIFrame = getFrameElement(currentWin);
1451
- }
1452
- }
1453
- return rectToClientRect({
1454
- width,
1455
- height,
1456
- x,
1457
- y
1458
- });
1459
- }
1460
-
1461
- function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
1462
- let {
1463
- elements,
1464
- rect,
1465
- offsetParent,
1466
- strategy
1467
- } = _ref;
1468
- const isFixed = strategy === 'fixed';
1469
- const documentElement = getDocumentElement(offsetParent);
1470
- const topLayer = elements ? isTopLayer(elements.floating) : false;
1471
- if (offsetParent === documentElement || topLayer && isFixed) {
1472
- return rect;
1473
- }
1474
- let scroll = {
1475
- scrollLeft: 0,
1476
- scrollTop: 0
1477
- };
1478
- let scale = createCoords(1);
1479
- const offsets = createCoords(0);
1480
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
1481
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1482
- if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1483
- scroll = getNodeScroll(offsetParent);
1484
- }
1485
- if (isHTMLElement(offsetParent)) {
1486
- const offsetRect = getBoundingClientRect(offsetParent);
1487
- scale = getScale(offsetParent);
1488
- offsets.x = offsetRect.x + offsetParent.clientLeft;
1489
- offsets.y = offsetRect.y + offsetParent.clientTop;
1490
- }
1491
- }
1492
- return {
1493
- width: rect.width * scale.x,
1494
- height: rect.height * scale.y,
1495
- x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
1496
- y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
1497
- };
1498
- }
1499
-
1500
- function getClientRects(element) {
1501
- return Array.from(element.getClientRects());
1502
- }
1503
-
1504
- // If <html> has a CSS width greater than the viewport, then this will be
1505
- // incorrect for RTL.
1506
- function getWindowScrollBarX(element, rect) {
1507
- const leftScroll = getNodeScroll(element).scrollLeft;
1508
- if (!rect) {
1509
- return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
1510
- }
1511
- return rect.left + leftScroll;
1512
- }
1513
-
1514
- // Gets the entire size of the scrollable document area, even extending outside
1515
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
1516
- function getDocumentRect(element) {
1517
- const html = getDocumentElement(element);
1518
- const scroll = getNodeScroll(element);
1519
- const body = element.ownerDocument.body;
1520
- const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
1521
- const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
1522
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
1523
- const y = -scroll.scrollTop;
1524
- if (getComputedStyle$1(body).direction === 'rtl') {
1525
- x += max(html.clientWidth, body.clientWidth) - width;
1526
- }
1527
- return {
1528
- width,
1529
- height,
1530
- x,
1531
- y
1532
- };
1533
- }
1534
-
1535
- function getViewportRect(element, strategy) {
1536
- const win = getWindow(element);
1537
- const html = getDocumentElement(element);
1538
- const visualViewport = win.visualViewport;
1539
- let width = html.clientWidth;
1540
- let height = html.clientHeight;
1541
- let x = 0;
1542
- let y = 0;
1543
- if (visualViewport) {
1544
- width = visualViewport.width;
1545
- height = visualViewport.height;
1546
- const visualViewportBased = isWebKit();
1547
- if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
1548
- x = visualViewport.offsetLeft;
1549
- y = visualViewport.offsetTop;
1550
- }
1551
- }
1552
- return {
1553
- width,
1554
- height,
1555
- x,
1556
- y
1557
- };
1558
- }
1559
-
1560
- // Returns the inner client rect, subtracting scrollbars if present.
1561
- function getInnerBoundingClientRect(element, strategy) {
1562
- const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
1563
- const top = clientRect.top + element.clientTop;
1564
- const left = clientRect.left + element.clientLeft;
1565
- const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
1566
- const width = element.clientWidth * scale.x;
1567
- const height = element.clientHeight * scale.y;
1568
- const x = left * scale.x;
1569
- const y = top * scale.y;
1570
- return {
1571
- width,
1572
- height,
1573
- x,
1574
- y
1575
- };
1576
- }
1577
- function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
1578
- let rect;
1579
- if (clippingAncestor === 'viewport') {
1580
- rect = getViewportRect(element, strategy);
1581
- } else if (clippingAncestor === 'document') {
1582
- rect = getDocumentRect(getDocumentElement(element));
1583
- } else if (isElement(clippingAncestor)) {
1584
- rect = getInnerBoundingClientRect(clippingAncestor, strategy);
1585
- } else {
1586
- const visualOffsets = getVisualOffsets(element);
1587
- rect = {
1588
- ...clippingAncestor,
1589
- x: clippingAncestor.x - visualOffsets.x,
1590
- y: clippingAncestor.y - visualOffsets.y
1591
- };
1592
- }
1593
- return rectToClientRect(rect);
1594
- }
1595
- function hasFixedPositionAncestor(element, stopNode) {
1596
- const parentNode = getParentNode(element);
1597
- if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
1598
- return false;
1599
- }
1600
- return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
1601
- }
1602
-
1603
- // A "clipping ancestor" is an `overflow` element with the characteristic of
1604
- // clipping (or hiding) child elements. This returns all clipping ancestors
1605
- // of the given element up the tree.
1606
- function getClippingElementAncestors(element, cache) {
1607
- const cachedResult = cache.get(element);
1608
- if (cachedResult) {
1609
- return cachedResult;
1610
- }
1611
- let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
1612
- let currentContainingBlockComputedStyle = null;
1613
- const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
1614
- let currentNode = elementIsFixed ? getParentNode(element) : element;
1615
-
1616
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1617
- while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1618
- const computedStyle = getComputedStyle$1(currentNode);
1619
- const currentNodeIsContaining = isContainingBlock(currentNode);
1620
- if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
1621
- currentContainingBlockComputedStyle = null;
1622
- }
1623
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
1624
- if (shouldDropCurrentNode) {
1625
- // Drop non-containing blocks.
1626
- result = result.filter(ancestor => ancestor !== currentNode);
1627
- } else {
1628
- // Record last containing block for next iteration.
1629
- currentContainingBlockComputedStyle = computedStyle;
1630
- }
1631
- currentNode = getParentNode(currentNode);
1632
- }
1633
- cache.set(element, result);
1634
- return result;
1635
- }
1636
-
1637
- // Gets the maximum area that the element is visible in due to any number of
1638
- // clipping ancestors.
1639
- function getClippingRect(_ref) {
1640
- let {
1641
- element,
1642
- boundary,
1643
- rootBoundary,
1644
- strategy
1645
- } = _ref;
1646
- const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
1647
- const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1648
- const firstClippingAncestor = clippingAncestors[0];
1649
- const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
1650
- const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
1651
- accRect.top = max(rect.top, accRect.top);
1652
- accRect.right = min(rect.right, accRect.right);
1653
- accRect.bottom = min(rect.bottom, accRect.bottom);
1654
- accRect.left = max(rect.left, accRect.left);
1655
- return accRect;
1656
- }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
1657
- return {
1658
- width: clippingRect.right - clippingRect.left,
1659
- height: clippingRect.bottom - clippingRect.top,
1660
- x: clippingRect.left,
1661
- y: clippingRect.top
1662
- };
1663
- }
1664
-
1665
- function getDimensions(element) {
1666
- const {
1667
- width,
1668
- height
1669
- } = getCssDimensions(element);
1670
- return {
1671
- width,
1672
- height
1673
- };
1674
- }
1675
-
1676
- function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1677
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
1678
- const documentElement = getDocumentElement(offsetParent);
1679
- const isFixed = strategy === 'fixed';
1680
- const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1681
- let scroll = {
1682
- scrollLeft: 0,
1683
- scrollTop: 0
1684
- };
1685
- const offsets = createCoords(0);
1686
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1687
- if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1688
- scroll = getNodeScroll(offsetParent);
1689
- }
1690
- if (isOffsetParentAnElement) {
1691
- const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1692
- offsets.x = offsetRect.x + offsetParent.clientLeft;
1693
- offsets.y = offsetRect.y + offsetParent.clientTop;
1694
- } else if (documentElement) {
1695
- // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
1696
- // Firefox with layout.scrollbar.side = 3 in about:config to test this.
1697
- offsets.x = getWindowScrollBarX(documentElement);
1698
- }
1699
- }
1700
- let htmlX = 0;
1701
- let htmlY = 0;
1702
- if (documentElement && !isOffsetParentAnElement && !isFixed) {
1703
- const htmlRect = documentElement.getBoundingClientRect();
1704
- htmlY = htmlRect.top + scroll.scrollTop;
1705
- htmlX = htmlRect.left + scroll.scrollLeft -
1706
- // RTL <body> scrollbar.
1707
- getWindowScrollBarX(documentElement, htmlRect);
1708
- }
1709
- const x = rect.left + scroll.scrollLeft - offsets.x - htmlX;
1710
- const y = rect.top + scroll.scrollTop - offsets.y - htmlY;
1711
- return {
1712
- x,
1713
- y,
1714
- width: rect.width,
1715
- height: rect.height
1716
- };
1717
- }
1718
-
1719
- function isStaticPositioned(element) {
1720
- return getComputedStyle$1(element).position === 'static';
1721
- }
1722
-
1723
- function getTrueOffsetParent(element, polyfill) {
1724
- if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
1725
- return null;
1726
- }
1727
- if (polyfill) {
1728
- return polyfill(element);
1729
- }
1730
- let rawOffsetParent = element.offsetParent;
1731
-
1732
- // Firefox returns the <html> element as the offsetParent if it's non-static,
1733
- // while Chrome and Safari return the <body> element. The <body> element must
1734
- // be used to perform the correct calculations even if the <html> element is
1735
- // non-static.
1736
- if (getDocumentElement(element) === rawOffsetParent) {
1737
- rawOffsetParent = rawOffsetParent.ownerDocument.body;
1738
- }
1739
- return rawOffsetParent;
1740
- }
1741
-
1742
- // Gets the closest ancestor positioned element. Handles some edge cases,
1743
- // such as table ancestors and cross browser bugs.
1744
- function getOffsetParent(element, polyfill) {
1745
- const win = getWindow(element);
1746
- if (isTopLayer(element)) {
1747
- return win;
1748
- }
1749
- if (!isHTMLElement(element)) {
1750
- let svgOffsetParent = getParentNode(element);
1751
- while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
1752
- if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
1753
- return svgOffsetParent;
1754
- }
1755
- svgOffsetParent = getParentNode(svgOffsetParent);
1756
- }
1757
- return win;
1758
- }
1759
- let offsetParent = getTrueOffsetParent(element, polyfill);
1760
- while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
1761
- offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1762
- }
1763
- if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
1764
- return win;
1765
- }
1766
- return offsetParent || getContainingBlock(element) || win;
1767
- }
1768
-
1769
- const getElementRects = async function (data) {
1770
- const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1771
- const getDimensionsFn = this.getDimensions;
1772
- const floatingDimensions = await getDimensionsFn(data.floating);
1773
- return {
1774
- reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
1775
- floating: {
1776
- x: 0,
1777
- y: 0,
1778
- width: floatingDimensions.width,
1779
- height: floatingDimensions.height
1780
- }
1781
- };
1782
- };
1783
-
1784
- function isRTL(element) {
1785
- return getComputedStyle$1(element).direction === 'rtl';
1786
- }
1787
-
1788
- const platform = {
1789
- convertOffsetParentRelativeRectToViewportRelativeRect,
1790
- getDocumentElement,
1791
- getClippingRect,
1792
- getOffsetParent,
1793
- getElementRects,
1794
- getClientRects,
1795
- getDimensions,
1796
- getScale,
1797
- isElement,
1798
- isRTL
1799
- };
1800
-
1801
- // https://samthor.au/2021/observing-dom/
1802
- function observeMove(element, onMove) {
1803
- let io = null;
1804
- let timeoutId;
1805
- const root = getDocumentElement(element);
1806
- function cleanup() {
1807
- var _io;
1808
- clearTimeout(timeoutId);
1809
- (_io = io) == null || _io.disconnect();
1810
- io = null;
1811
- }
1812
- function refresh(skip, threshold) {
1813
- if (skip === void 0) {
1814
- skip = false;
1815
- }
1816
- if (threshold === void 0) {
1817
- threshold = 1;
1818
- }
1819
- cleanup();
1820
- const {
1821
- left,
1822
- top,
1823
- width,
1824
- height
1825
- } = element.getBoundingClientRect();
1826
- if (!skip) {
1827
- onMove();
1828
- }
1829
- if (!width || !height) {
1830
- return;
1831
- }
1832
- const insetTop = floor(top);
1833
- const insetRight = floor(root.clientWidth - (left + width));
1834
- const insetBottom = floor(root.clientHeight - (top + height));
1835
- const insetLeft = floor(left);
1836
- const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
1837
- const options = {
1838
- rootMargin,
1839
- threshold: max(0, min(1, threshold)) || 1
1840
- };
1841
- let isFirstUpdate = true;
1842
- function handleObserve(entries) {
1843
- const ratio = entries[0].intersectionRatio;
1844
- if (ratio !== threshold) {
1845
- if (!isFirstUpdate) {
1846
- return refresh();
1847
- }
1848
- if (!ratio) {
1849
- // If the reference is clipped, the ratio is 0. Throttle the refresh
1850
- // to prevent an infinite loop of updates.
1851
- timeoutId = setTimeout(() => {
1852
- refresh(false, 1e-7);
1853
- }, 1000);
1854
- } else {
1855
- refresh(false, ratio);
1856
- }
1857
- }
1858
- isFirstUpdate = false;
1859
- }
1860
-
1861
- // Older browsers don't support a `document` as the root and will throw an
1862
- // error.
1863
- try {
1864
- io = new IntersectionObserver(handleObserve, {
1865
- ...options,
1866
- // Handle <iframe>s
1867
- root: root.ownerDocument
1868
- });
1869
- } catch (e) {
1870
- io = new IntersectionObserver(handleObserve, options);
1871
- }
1872
- io.observe(element);
1873
- }
1874
- refresh(true);
1875
- return cleanup;
1876
- }
1877
-
1878
- /**
1879
- * Automatically updates the position of the floating element when necessary.
1880
- * Should only be called when the floating element is mounted on the DOM or
1881
- * visible on the screen.
1882
- * @returns cleanup function that should be invoked when the floating element is
1883
- * removed from the DOM or hidden from the screen.
1884
- * @see https://floating-ui.com/docs/autoUpdate
1885
- */
1886
- function autoUpdate(reference, floating, update, options) {
1887
- if (options === void 0) {
1888
- options = {};
1889
- }
1890
- const {
1891
- ancestorScroll = true,
1892
- ancestorResize = true,
1893
- elementResize = typeof ResizeObserver === 'function',
1894
- layoutShift = typeof IntersectionObserver === 'function',
1895
- animationFrame = false
1896
- } = options;
1897
- const referenceEl = unwrapElement(reference);
1898
- const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
1899
- ancestors.forEach(ancestor => {
1900
- ancestorScroll && ancestor.addEventListener('scroll', update, {
1901
- passive: true
1902
- });
1903
- ancestorResize && ancestor.addEventListener('resize', update);
1904
- });
1905
- const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
1906
- let reobserveFrame = -1;
1907
- let resizeObserver = null;
1908
- if (elementResize) {
1909
- resizeObserver = new ResizeObserver(_ref => {
1910
- let [firstEntry] = _ref;
1911
- if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
1912
- // Prevent update loops when using the `size` middleware.
1913
- // https://github.com/floating-ui/floating-ui/issues/1740
1914
- resizeObserver.unobserve(floating);
1915
- cancelAnimationFrame(reobserveFrame);
1916
- reobserveFrame = requestAnimationFrame(() => {
1917
- var _resizeObserver;
1918
- (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
1919
- });
1920
- }
1921
- update();
1922
- });
1923
- if (referenceEl && !animationFrame) {
1924
- resizeObserver.observe(referenceEl);
1925
- }
1926
- resizeObserver.observe(floating);
1927
- }
1928
- let frameId;
1929
- let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
1930
- if (animationFrame) {
1931
- frameLoop();
1932
- }
1933
- function frameLoop() {
1934
- const nextRefRect = getBoundingClientRect(reference);
1935
- if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
1936
- update();
1937
- }
1938
- prevRefRect = nextRefRect;
1939
- frameId = requestAnimationFrame(frameLoop);
1940
- }
1941
- update();
1942
- return () => {
1943
- var _resizeObserver2;
1944
- ancestors.forEach(ancestor => {
1945
- ancestorScroll && ancestor.removeEventListener('scroll', update);
1946
- ancestorResize && ancestor.removeEventListener('resize', update);
1947
- });
1948
- cleanupIo == null || cleanupIo();
1949
- (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
1950
- resizeObserver = null;
1951
- if (animationFrame) {
1952
- cancelAnimationFrame(frameId);
1953
- }
1954
- };
1955
- }
1956
-
1957
- /**
1958
- * Modifies the placement by translating the floating element along the
1959
- * specified axes.
1960
- * A number (shorthand for `mainAxis` or distance), or an axes configuration
1961
- * object may be passed.
1962
- * @see https://floating-ui.com/docs/offset
1963
- */
1964
- const offset = offset$1;
1965
-
1966
- /**
1967
- * Optimizes the visibility of the floating element by choosing the placement
1968
- * that has the most space available automatically, without needing to specify a
1969
- * preferred placement. Alternative to `flip`.
1970
- * @see https://floating-ui.com/docs/autoPlacement
1971
- */
1972
- const autoPlacement = autoPlacement$1;
1973
-
1974
- /**
1975
- * Optimizes the visibility of the floating element by shifting it in order to
1976
- * keep it in view when it will overflow the clipping boundary.
1977
- * @see https://floating-ui.com/docs/shift
1978
- */
1979
- const shift = shift$1;
1980
-
1981
- /**
1982
- * Optimizes the visibility of the floating element by flipping the `placement`
1983
- * in order to keep it in view when the preferred placement(s) will overflow the
1984
- * clipping boundary. Alternative to `autoPlacement`.
1985
- * @see https://floating-ui.com/docs/flip
1986
- */
1987
- const flip = flip$1;
1988
-
1989
- /**
1990
- * Provides data that allows you to change the size of the floating element —
1991
- * for instance, prevent it from overflowing the clipping boundary or match the
1992
- * width of the reference element.
1993
- * @see https://floating-ui.com/docs/size
1994
- */
1995
- size;
1996
-
1997
- /**
1998
- * Provides data to hide the floating element in applicable situations, such as
1999
- * when it is not in the same clipping context as the reference element.
2000
- * @see https://floating-ui.com/docs/hide
2001
- */
2002
- const hide = hide$1;
2003
-
2004
- /**
2005
- * Provides data to position an inner element of the floating element so that it
2006
- * appears centered to the reference element.
2007
- * @see https://floating-ui.com/docs/arrow
2008
- */
2009
- const arrow = arrow$1;
2010
-
2011
- /**
2012
- * Provides improved positioning for inline reference elements that can span
2013
- * over multiple lines, such as hyperlinks or range selections.
2014
- * @see https://floating-ui.com/docs/inline
2015
- */
2016
- inline;
2017
-
2018
- /**
2019
- * Built-in `limiter` that will stop `shift()` at a certain point.
2020
- */
2021
- limitShift;
2022
-
2023
- /**
2024
- * Computes the `x` and `y` coordinates that will place the floating element
2025
- * next to a given reference element.
2026
- */
2027
- const computePosition = (reference, floating, options) => {
2028
- // This caches the expensive `getClippingElementAncestors` function so that
2029
- // multiple lifecycle resets re-use the same result. It only lives for a
2030
- // single call. If other functions become expensive, we can add them as well.
2031
- const cache = new Map();
2032
- const mergedOptions = {
2033
- platform,
2034
- ...options
2035
- };
2036
- const platformWithCache = {
2037
- ...mergedOptions.platform,
2038
- _c: cache
2039
- };
2040
- return computePosition$1(reference, floating, {
2041
- ...mergedOptions,
2042
- platform: platformWithCache
2043
- });
2044
- };
2045
-
2046
- function offsetParent(element) {
2047
- return offsetParentPolyfill(element);
2048
- }
2049
- function flatTreeParent(element) {
2050
- if (element.assignedSlot) {
2051
- return element.assignedSlot;
2052
- }
2053
- if (element.parentNode instanceof ShadowRoot) {
2054
- return element.parentNode.host;
2055
- }
2056
- return element.parentNode;
2057
- }
2058
- function offsetParentPolyfill(element) {
2059
- // Do an initial walk to check for display:none ancestors.
2060
- for (let ancestor = element; ancestor; ancestor = flatTreeParent(ancestor)) {
2061
- if (!(ancestor instanceof Element)) {
2062
- continue;
2063
- }
2064
- if (getComputedStyle(ancestor).display === 'none') {
2065
- return null;
2066
- }
2067
- }
2068
- for (let ancestor = flatTreeParent(element); ancestor; ancestor = flatTreeParent(ancestor)) {
2069
- if (!(ancestor instanceof Element)) {
2070
- continue;
2071
- }
2072
- const style = getComputedStyle(ancestor);
2073
- // Display:contents nodes aren't in the layout tree, so they should be skipped.
2074
- if (style.display === 'contents') {
2075
- continue;
2076
- }
2077
- if (style.position !== 'static' || isContainingBlock(style)) {
2078
- return ancestor;
2079
- }
2080
- if (ancestor.tagName === 'BODY') {
2081
- return ancestor;
2082
- }
2083
- }
2084
- return null;
2085
- }
2086
-
2087
- /*!
2088
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2089
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
2090
- * v2.13.2
2091
- */
2092
- (function setUpFloatingUiForShadowDomPositioning() {
2093
- if (browser.isBrowser()) {
2094
- const originalGetOffsetParent = platform.getOffsetParent;
2095
- platform.getOffsetParent = (element) => originalGetOffsetParent(element, offsetParent);
2096
- }
2097
- })();
2098
- function roundByDPR(value) {
2099
- const dpr = window.devicePixelRatio || 1;
2100
- return Math.round(value * dpr) / dpr;
2101
- }
2102
- /**
2103
- * Positions the floating element relative to the reference element.
2104
- *
2105
- * **Note:** exported for testing purposes only
2106
- *
2107
- * @param root0
2108
- * @param root0.referenceEl
2109
- * @param root0.floatingEl
2110
- * @param root0.overlayPositioning
2111
- * @param root0.placement
2112
- * @param root0.flipDisabled
2113
- * @param root0.flipPlacements
2114
- * @param root0.offsetDistance
2115
- * @param root0.offsetSkidding
2116
- * @param root0.arrowEl
2117
- * @param root0.type
2118
- * @param component
2119
- * @param root0.referenceEl.referenceEl
2120
- * @param root0.referenceEl.floatingEl
2121
- * @param root0.referenceEl.overlayPositioning
2122
- * @param root0.referenceEl.placement
2123
- * @param root0.referenceEl.flipDisabled
2124
- * @param root0.referenceEl.flipPlacements
2125
- * @param root0.referenceEl.offsetDistance
2126
- * @param root0.referenceEl.offsetSkidding
2127
- * @param root0.referenceEl.arrowEl
2128
- * @param root0.referenceEl.type
2129
- * @param component.referenceEl
2130
- * @param component.floatingEl
2131
- * @param component.overlayPositioning
2132
- * @param component.placement
2133
- * @param component.flipDisabled
2134
- * @param component.flipPlacements
2135
- * @param component.offsetDistance
2136
- * @param component.offsetSkidding
2137
- * @param component.arrowEl
2138
- * @param component.type
2139
- */
2140
- const positionFloatingUI =
2141
- /* we export arrow function to allow us to spy on it during testing */
2142
- async (component, { referenceEl, floatingEl, overlayPositioning = "absolute", placement, flipDisabled, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type, }) => {
2143
- if (!referenceEl || !floatingEl) {
2144
- return null;
2145
- }
2146
- const isRTL = dom.getElementDir(floatingEl) === "rtl";
2147
- const { x, y, placement: effectivePlacement, strategy: position, middlewareData, } = await computePosition(referenceEl, floatingEl, {
2148
- strategy: overlayPositioning,
2149
- placement: placement === "auto" || placement === "auto-start" || placement === "auto-end"
2150
- ? undefined
2151
- : getEffectivePlacement(placement, isRTL),
2152
- middleware: getMiddleware({
2153
- placement,
2154
- flipDisabled,
2155
- flipPlacements: flipPlacements?.map((placement) => getEffectivePlacement(placement, isRTL)),
2156
- offsetDistance,
2157
- offsetSkidding,
2158
- arrowEl,
2159
- type,
2160
- }),
2161
- });
2162
- if (arrowEl && middlewareData.arrow) {
2163
- const { x, y } = middlewareData.arrow;
2164
- const side = effectivePlacement.split("-")[0];
2165
- const alignment = x != null ? "left" : "top";
2166
- const transform = ARROW_CSS_TRANSFORM[side];
2167
- const reset = { left: "", top: "", bottom: "", right: "" };
2168
- if ("floatingLayout" in component) {
2169
- component.floatingLayout = side === "left" || side === "right" ? "horizontal" : "vertical";
2170
- }
2171
- Object.assign(arrowEl.style, {
2172
- ...reset,
2173
- [alignment]: `${alignment == "left" ? x : y}px`,
2174
- [side]: "100%",
2175
- transform,
2176
- });
2177
- }
2178
- const referenceHidden = middlewareData.hide?.referenceHidden;
2179
- const visibility = referenceHidden ? "hidden" : null;
2180
- const pointerEvents = visibility ? "none" : null;
2181
- floatingEl.setAttribute(placementDataAttribute, effectivePlacement);
2182
- const { open } = component;
2183
- Object.assign(floatingEl.style, {
2184
- visibility,
2185
- pointerEvents,
2186
- position,
2187
- transform: open ? `translate(${roundByDPR(x)}px,${roundByDPR(y)}px)` : "",
2188
- top: 0,
2189
- left: 0,
2190
- });
2191
- };
2192
- /**
2193
- * Exported for testing purposes only
2194
- */
2195
- const placementDataAttribute = "data-placement";
2196
- const flipPlacements = [
2197
- "top",
2198
- "bottom",
2199
- "right",
2200
- "left",
2201
- "top-start",
2202
- "top-end",
2203
- "bottom-start",
2204
- "bottom-end",
2205
- "right-start",
2206
- "right-end",
2207
- "left-start",
2208
- "left-end",
2209
- "leading",
2210
- "trailing",
2211
- "leading-start",
2212
- "leading-end",
2213
- "trailing-start",
2214
- "trailing-end",
2215
- ];
2216
- const defaultMenuPlacement = "bottom-start";
2217
- const defaultEndMenuPlacement = "bottom-end";
2218
- const FloatingCSS = {
2219
- animation: "calcite-floating-ui-anim",
2220
- animationActive: "calcite-floating-ui-anim--active",
2221
- arrow: "calcite-floating-ui-arrow",
2222
- arrowStroke: "calcite-floating-ui-arrow__stroke",
2223
- };
2224
- function getMiddleware({ placement, flipDisabled, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type, }) {
2225
- const defaultMiddleware = [shift(), hide()];
2226
- if (type === "menu") {
2227
- return [
2228
- ...defaultMiddleware,
2229
- flip({
2230
- fallbackPlacements: flipPlacements || ["top-start", "top", "top-end", "bottom-start", "bottom", "bottom-end"],
2231
- }),
2232
- ];
2233
- }
2234
- if (type === "popover" || type === "tooltip") {
2235
- const middleware = [
2236
- ...defaultMiddleware,
2237
- offset({
2238
- mainAxis: typeof offsetDistance === "number" ? offsetDistance : 0,
2239
- crossAxis: typeof offsetSkidding === "number" ? offsetSkidding : 0,
2240
- }),
2241
- ];
2242
- if (placement === "auto" || placement === "auto-start" || placement === "auto-end") {
2243
- middleware.push(autoPlacement({ alignment: placement === "auto-start" ? "start" : placement === "auto-end" ? "end" : null }));
2244
- }
2245
- else if (!flipDisabled) {
2246
- middleware.push(flip(flipPlacements ? { fallbackPlacements: flipPlacements } : {}));
2247
- }
2248
- if (arrowEl) {
2249
- middleware.push(arrow({
2250
- element: arrowEl,
2251
- }));
2252
- }
2253
- return middleware;
2254
- }
2255
- return [];
2256
- }
2257
- function filterValidFlipPlacements(placements, el) {
2258
- const filteredPlacements = placements.filter((placement) => flipPlacements.includes(placement));
2259
- if (filteredPlacements.length !== placements.length) {
2260
- console.warn(`${el.tagName}: Invalid value found in: flipPlacements. Try any of these: ${flipPlacements
2261
- .map((placement) => `"${placement}"`)
2262
- .join(", ")
2263
- .trim()}`, { el });
2264
- }
2265
- return filteredPlacements;
2266
- }
2267
- function getEffectivePlacement(placement, isRTL = false) {
2268
- const placements = ["left", "right"];
2269
- if (isRTL) {
2270
- placements.reverse();
2271
- }
2272
- return placement.replace(/leading/gi, placements[0]).replace(/trailing/gi, placements[1]);
2273
- }
2274
- /**
2275
- * Convenience function to manage `reposition` calls for FloatingUIComponents that use `positionFloatingUI.
2276
- *
2277
- * Note: this is not needed for components that use `calcite-popover`.
2278
- *
2279
- * @param component - A floating-ui component.
2280
- * @param options - Reposition parameters.
2281
- * @param options.referenceEl - The `referenceElement` used to position the component according to its `placement` value.
2282
- * @param options.floatingEl - The `floatingElement` containing the floating ui.
2283
- * @param options.overlayPositioning - type of positioning to use for the overlaid content.
2284
- * @param options.placement - Determines where the component will be positioned relative to the `referenceElement`.
2285
- * @param options.flipDisabled - Prevents flipping the component's placement when overlapping its `referenceElement`.
2286
- * @param options.flipPlacements - Defines the available placements that can be used when a flip occurs.
2287
- * @param options.offsetDistance - Offsets the position of the popover away from the `referenceElement`.
2288
- * @param options.offsetSkidding - Offsets the position of the component along the `referenceElement`.
2289
- * @param options.arrowEl - A customizable arrow element.
2290
- * @param options.type - The type of floating UI.
2291
- * @param delayed - Reposition the component after a delay.
2292
- * @returns {Promise<void>}
2293
- */
2294
- async function reposition(component, options, delayed = false) {
2295
- if (!component.open || !options.floatingEl || !options.referenceEl) {
2296
- return;
2297
- }
2298
- const trackedState = autoUpdatingComponentMap.get(component);
2299
- if (!trackedState) {
2300
- return runAutoUpdate(component, options.referenceEl, options.floatingEl);
2301
- }
2302
- const positionFunction = delayed ? getDebouncedReposition(component) : positionFloatingUI;
2303
- await positionFunction(component, options);
2304
- }
2305
- function getDebouncedReposition(component) {
2306
- let debounced = componentToDebouncedRepositionMap.get(component);
2307
- if (debounced) {
2308
- return debounced;
2309
- }
2310
- debounced = debounce.debounce(positionFloatingUI, resources.DEBOUNCE.reposition, {
2311
- leading: true,
2312
- maxWait: resources.DEBOUNCE.reposition,
2313
- });
2314
- componentToDebouncedRepositionMap.set(component, debounced);
2315
- return debounced;
2316
- }
2317
- const ARROW_CSS_TRANSFORM = {
2318
- top: "",
2319
- left: "rotate(-90deg)",
2320
- bottom: "rotate(180deg)",
2321
- right: "rotate(90deg)",
2322
- };
2323
- /**
2324
- * Exported for testing purposes only
2325
- *
2326
- * @internal
2327
- */
2328
- const autoUpdatingComponentMap = new WeakMap();
2329
- const componentToDebouncedRepositionMap = new WeakMap();
2330
- async function runAutoUpdate(component, referenceEl, floatingEl) {
2331
- if (!floatingEl.isConnected) {
2332
- return;
2333
- }
2334
- const effectiveAutoUpdate = browser.isBrowser()
2335
- ? autoUpdate
2336
- : (_refEl, _floatingEl, updateCallback) => {
2337
- updateCallback();
2338
- return () => {
2339
- /* noop */
2340
- };
2341
- };
2342
- // we set initial state here to make it available for `reposition` calls
2343
- autoUpdatingComponentMap.set(component, { state: "pending" });
2344
- let repositionPromise;
2345
- const cleanUp = effectiveAutoUpdate(referenceEl, floatingEl,
2346
- // callback is invoked immediately
2347
- () => {
2348
- const promise = component.reposition();
2349
- if (!repositionPromise) {
2350
- repositionPromise = promise;
2351
- }
2352
- });
2353
- autoUpdatingComponentMap.set(component, { state: "active", cleanUp });
2354
- return repositionPromise;
2355
- }
2356
- /**
2357
- * Helper to set up floating element interactions on connectedCallback.
2358
- *
2359
- * @param component - A floating-ui component.
2360
- * @param referenceEl - The `referenceElement` used to position the component according to its `placement` value.
2361
- * @param floatingEl - The `floatingElement` containing the floating ui.
2362
- */
2363
- async function connectFloatingUI(component, referenceEl, floatingEl) {
2364
- if (!floatingEl || !referenceEl) {
2365
- return;
2366
- }
2367
- disconnectFloatingUI(component, referenceEl, floatingEl);
2368
- Object.assign(floatingEl.style, {
2369
- visibility: "hidden",
2370
- pointerEvents: "none",
2371
- // initial positioning based on https://floating-ui.com/docs/computePosition#initial-layout
2372
- position: component.overlayPositioning,
2373
- });
2374
- if (!component.open) {
2375
- return;
2376
- }
2377
- return runAutoUpdate(component, referenceEl, floatingEl);
2378
- }
2379
- /**
2380
- * Helper to tear down floating element interactions on disconnectedCallback.
2381
- *
2382
- * @param component - A floating-ui component.
2383
- * @param referenceEl - The `referenceElement` used to position the component according to its `placement` value.
2384
- * @param floatingEl - The `floatingElement` containing the floating ui.
2385
- */
2386
- function disconnectFloatingUI(component, referenceEl, floatingEl) {
2387
- if (!floatingEl || !referenceEl) {
2388
- return;
2389
- }
2390
- const trackedState = autoUpdatingComponentMap.get(component);
2391
- if (trackedState?.state === "active") {
2392
- trackedState.cleanUp();
2393
- }
2394
- autoUpdatingComponentMap.delete(component);
2395
- componentToDebouncedRepositionMap.get(component)?.cancel();
2396
- componentToDebouncedRepositionMap.delete(component);
2397
- }
2398
- const visiblePointerSize = 4;
2399
- /**
2400
- * Default offset the position of the floating element away from the reference element.
2401
- *
2402
- * @default 6
2403
- */
2404
- const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePointerSize));
2405
-
2406
- exports.FloatingCSS = FloatingCSS;
2407
- exports.connectFloatingUI = connectFloatingUI;
2408
- exports.defaultEndMenuPlacement = defaultEndMenuPlacement;
2409
- exports.defaultMenuPlacement = defaultMenuPlacement;
2410
- exports.defaultOffsetDistance = defaultOffsetDistance;
2411
- exports.disconnectFloatingUI = disconnectFloatingUI;
2412
- exports.filterValidFlipPlacements = filterValidFlipPlacements;
2413
- exports.reposition = reposition;