@esri/calcite-components 1.0.0-beta.84 → 1.0.0-beta.87

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 (1074) hide show
  1. package/dist/calcite/calcite.css +1 -1
  2. package/dist/calcite/calcite.esm.js +2 -2
  3. package/dist/calcite/calcite.js +1 -1
  4. package/dist/calcite/index.esm.js +1 -1
  5. package/dist/calcite/p-00b8ff95.system.entry.js +6 -0
  6. package/dist/calcite/p-01225516.entry.js +6 -0
  7. package/dist/calcite/p-017caeef.entry.js +6 -0
  8. package/dist/calcite/{p-2bf5b9b6.js → p-0296d6e5.js} +2 -2
  9. package/dist/calcite/{p-82e24e64.system.js → p-031fe642.system.js} +1 -1
  10. package/dist/calcite/p-09d4e789.system.js +7 -0
  11. package/dist/calcite/p-0b966e54.entry.js +6 -0
  12. package/dist/calcite/p-0d4fb8ca.entry.js +6 -0
  13. package/dist/calcite/{p-cc041a12.system.js → p-1087f996.system.js} +1 -1
  14. package/dist/calcite/p-12f67a05.entry.js +6 -0
  15. package/dist/calcite/p-140247a4.entry.js +6 -0
  16. package/dist/calcite/p-14368daa.entry.js +6 -0
  17. package/dist/calcite/p-149f567e.entry.js +6 -0
  18. package/dist/calcite/{p-549e267e.system.js → p-151ef522.system.js} +1 -1
  19. package/dist/calcite/{p-aaba2ea0.system.js → p-1534218b.system.js} +1 -1
  20. package/dist/calcite/{p-74153f82.js → p-1647d422.js} +2 -2
  21. package/dist/calcite/{p-9eaf38bc.js → p-1774ae47.js} +2 -2
  22. package/dist/calcite/{p-c2ed5f67.js → p-18679417.js} +1 -1
  23. package/dist/calcite/{p-3d8ab9d5.entry.js → p-1d97eff4.entry.js} +2 -2
  24. package/dist/calcite/p-204cda47.entry.js +6 -0
  25. package/dist/calcite/p-20bd3399.system.entry.js +6 -0
  26. package/dist/calcite/p-221e3f32.system.entry.js +6 -0
  27. package/dist/calcite/{p-3aefc333.entry.js → p-23a52c67.entry.js} +2 -2
  28. package/dist/calcite/p-23f02457.system.js +6 -0
  29. package/dist/calcite/p-24daa1f0.entry.js +6 -0
  30. package/dist/calcite/p-25116f74.system.entry.js +6 -0
  31. package/dist/calcite/{p-0bfe5ca7.entry.js → p-26803235.entry.js} +2 -2
  32. package/dist/calcite/{p-ec8d9088.system.entry.js → p-271b3555.system.entry.js} +2 -2
  33. package/dist/calcite/{p-74b7ff1f.entry.js → p-27db08bc.entry.js} +2 -2
  34. package/dist/calcite/p-27dd1893.entry.js +6 -0
  35. package/dist/calcite/p-288354f0.system.js +6 -0
  36. package/dist/calcite/{p-df26aab6.js → p-292b7dab.js} +1 -1
  37. package/dist/calcite/{p-f8695531.entry.js → p-29610c9f.entry.js} +2 -2
  38. package/dist/calcite/{p-07c6e102.system.js → p-2a7e2957.system.js} +2 -2
  39. package/dist/calcite/p-2b1db9be.js +6 -0
  40. package/dist/calcite/p-2d6b5124.system.entry.js +6 -0
  41. package/dist/calcite/{p-a92ac42d.system.js → p-2ed8b011.system.js} +1 -1
  42. package/dist/calcite/p-325c25e7.entry.js +6 -0
  43. package/dist/calcite/{p-fdc7032c.system.js → p-34ff2c2f.system.js} +1 -1
  44. package/dist/calcite/{p-9e8d6e02.js → p-389bfb3f.js} +2 -2
  45. package/dist/calcite/{p-6eadd519.entry.js → p-39c28eb7.entry.js} +2 -2
  46. package/dist/calcite/{p-fbbfde67.system.js → p-3a1beee3.system.js} +2 -2
  47. package/dist/calcite/{p-21a1034c.entry.js → p-3b02f6a7.entry.js} +2 -2
  48. package/dist/calcite/{p-8ae680a2.system.entry.js → p-3b28ce55.system.entry.js} +2 -2
  49. package/dist/calcite/p-3c9f7afb.entry.js +6 -0
  50. package/dist/calcite/{p-d96573eb.system.entry.js → p-3daaf28f.system.entry.js} +2 -2
  51. package/dist/calcite/{p-6309de22.entry.js → p-3fc47895.entry.js} +2 -2
  52. package/dist/calcite/p-42a122ab.entry.js +6 -0
  53. package/dist/calcite/p-489e9825.system.entry.js +6 -0
  54. package/dist/calcite/p-49d40985.system.entry.js +6 -0
  55. package/dist/calcite/{p-7ec42769.js → p-4a0d41e4.js} +1 -1
  56. package/dist/calcite/{p-8202ad8a.system.entry.js → p-4db1c603.system.entry.js} +2 -2
  57. package/dist/calcite/{p-dd5e585b.entry.js → p-50513c03.entry.js} +2 -2
  58. package/dist/calcite/p-516a5c68.system.entry.js +6 -0
  59. package/dist/calcite/p-53a423d9.system.entry.js +6 -0
  60. package/dist/calcite/p-5544e264.entry.js +6 -0
  61. package/dist/calcite/p-57b6f7fb.system.entry.js +6 -0
  62. package/dist/calcite/{p-4d9c7cc9.system.js → p-584cb04b.system.js} +1 -1
  63. package/dist/calcite/p-58c76aff.entry.js +6 -0
  64. package/dist/calcite/{p-9d158b37.system.js → p-59574854.system.js} +2 -2
  65. package/dist/calcite/p-5b1c8598.system.entry.js +6 -0
  66. package/dist/calcite/{p-4f9ce175.js → p-5e5bb0fe.js} +2 -2
  67. package/dist/calcite/{p-dca64e20.js → p-61379359.js} +2 -2
  68. package/dist/calcite/p-61653e5f.entry.js +6 -0
  69. package/dist/calcite/p-62e5d329.entry.js +6 -0
  70. package/dist/calcite/{p-39bb68b3.system.js → p-635720f4.system.js} +2 -2
  71. package/dist/calcite/{p-20d610fc.entry.js → p-6ab55ea8.entry.js} +2 -2
  72. package/dist/calcite/{p-6a8f1936.system.js → p-6b815a3f.system.js} +2 -2
  73. package/dist/calcite/p-6d315566.system.entry.js +6 -0
  74. package/dist/calcite/p-70df22f8.system.entry.js +6 -0
  75. package/dist/calcite/p-70f9bfcf.system.entry.js +6 -0
  76. package/dist/calcite/p-76d5c5ab.entry.js +6 -0
  77. package/dist/calcite/p-80362407.entry.js +6 -0
  78. package/dist/calcite/{p-4cfef590.system.js → p-8270f683.system.js} +3 -3
  79. package/dist/calcite/{p-fb0e5ae3.js → p-84f563f6.js} +1 -1
  80. package/dist/calcite/p-8666e681.system.entry.js +6 -0
  81. package/dist/calcite/p-874248a5.entry.js +6 -0
  82. package/dist/calcite/{p-e2ccf473.entry.js → p-878cfb6b.entry.js} +2 -2
  83. package/dist/calcite/{p-ca1b7a2e.js → p-87b06a4a.js} +1 -1
  84. package/dist/calcite/p-88633a5f.system.entry.js +6 -0
  85. package/dist/calcite/p-89151794.system.entry.js +6 -0
  86. package/dist/calcite/p-8a4187a1.system.entry.js +6 -0
  87. package/dist/calcite/p-8c18de14.system.entry.js +6 -0
  88. package/dist/calcite/{p-f8cb1eeb.js → p-8fed02c7.js} +1 -1
  89. package/dist/calcite/p-90bb8af7.system.entry.js +6 -0
  90. package/dist/calcite/p-9267c232.system.entry.js +6 -0
  91. package/dist/calcite/{p-a89fc6a1.system.entry.js → p-938ee739.system.entry.js} +2 -2
  92. package/dist/calcite/p-9416a65c.entry.js +6 -0
  93. package/dist/calcite/p-95d58e86.system.entry.js +6 -0
  94. package/dist/calcite/p-95e23b85.entry.js +6 -0
  95. package/dist/calcite/{p-2e3ffd32.system.js → p-98f5945a.system.js} +2 -2
  96. package/dist/calcite/{p-6d1c91ee.entry.js → p-996d8919.entry.js} +2 -2
  97. package/dist/calcite/{p-e45d0fed.system.js → p-99834ee5.system.js} +1 -1
  98. package/dist/calcite/p-9a6b21d8.entry.js +6 -0
  99. package/dist/calcite/p-9a7290b9.system.entry.js +6 -0
  100. package/dist/calcite/p-9ac11a5a.system.entry.js +6 -0
  101. package/dist/calcite/p-9ac7eaf9.entry.js +6 -0
  102. package/dist/calcite/{p-ce28c259.js → p-9c216ae7.js} +2 -2
  103. package/dist/calcite/p-9d161fd1.system.entry.js +6 -0
  104. package/dist/calcite/p-9e8a8543.entry.js +6 -0
  105. package/dist/calcite/{p-d6d814a6.system.js → p-a2fb1d9c.system.js} +1 -1
  106. package/dist/calcite/p-a64c38ea.system.entry.js +6 -0
  107. package/dist/calcite/{p-2ce10f9a.system.js → p-a65a2b93.system.js} +1 -1
  108. package/dist/calcite/p-a6c2e6e3.entry.js +6 -0
  109. package/dist/calcite/{p-9c4aa033.entry.js → p-a7798679.entry.js} +2 -2
  110. package/dist/calcite/{p-5d7f4169.js → p-abb072bc.js} +1 -1
  111. package/dist/calcite/p-ad9ce24b.system.entry.js +6 -0
  112. package/dist/calcite/p-add9d199.system.entry.js +6 -0
  113. package/dist/calcite/p-afaa2b92.entry.js +6 -0
  114. package/dist/calcite/{p-aa9ce421.js → p-afd70310.js} +1 -1
  115. package/dist/calcite/p-b2fd8207.system.js +6 -0
  116. package/dist/calcite/p-b330e520.system.entry.js +6 -0
  117. package/dist/calcite/p-b451a135.entry.js +6 -0
  118. package/dist/calcite/p-b4ed3310.system.entry.js +6 -0
  119. package/dist/calcite/{p-e69d3ca4.system.js → p-b65a82b9.system.js} +1 -1
  120. package/dist/calcite/{p-5bd80046.entry.js → p-b7181609.entry.js} +2 -2
  121. package/dist/calcite/p-b9a92e2a.system.entry.js +6 -0
  122. package/dist/calcite/p-bd8dabb4.system.entry.js +6 -0
  123. package/dist/calcite/{p-e345449f.entry.js → p-be70e32c.entry.js} +2 -2
  124. package/dist/calcite/{p-14f0920e.system.entry.js → p-c11c8810.system.entry.js} +2 -2
  125. package/dist/calcite/p-c44fe786.js +7 -0
  126. package/dist/calcite/p-c49a8303.system.entry.js +6 -0
  127. package/dist/calcite/{p-ce654c2c.system.entry.js → p-c6c191a4.system.entry.js} +2 -2
  128. package/dist/calcite/p-c82c15ee.system.entry.js +6 -0
  129. package/dist/calcite/{p-dd5185d6.entry.js → p-c8a4f49a.entry.js} +2 -2
  130. package/dist/calcite/p-c8e7775c.system.entry.js +6 -0
  131. package/dist/calcite/p-cd41f4a3.entry.js +6 -0
  132. package/dist/calcite/{p-f07627e7.system.entry.js → p-ced28d9d.system.entry.js} +3 -3
  133. package/dist/calcite/p-cf2ff728.system.entry.js +6 -0
  134. package/dist/calcite/{p-51491e10.system.js → p-d0043d6d.system.js} +1 -1
  135. package/dist/calcite/p-d522d0d3.entry.js +6 -0
  136. package/dist/calcite/p-d913deb7.system.entry.js +6 -0
  137. package/dist/calcite/p-d91d56df.entry.js +6 -0
  138. package/dist/calcite/p-d9b2646c.system.entry.js +6 -0
  139. package/dist/calcite/p-d9cf3438.system.entry.js +6 -0
  140. package/dist/calcite/{p-ecd12a92.js → p-db7068cb.js} +1 -1
  141. package/dist/calcite/p-db98f211.system.entry.js +6 -0
  142. package/dist/calcite/p-dca64758.system.entry.js +6 -0
  143. package/dist/calcite/{p-4908e3a5.system.js → p-deefbe33.system.js} +1 -1
  144. package/dist/calcite/p-dfce3d62.system.entry.js +6 -0
  145. package/dist/calcite/p-e0ab7e38.entry.js +6 -0
  146. package/dist/calcite/{p-26757de8.entry.js → p-e0f3d151.entry.js} +2 -2
  147. package/dist/calcite/p-e2087090.js +6 -0
  148. package/dist/calcite/{p-8133b2a5.entry.js → p-e64aaaff.entry.js} +2 -2
  149. package/dist/calcite/p-e85df792.system.entry.js +6 -0
  150. package/dist/calcite/{p-bbd8269c.js → p-e8b42645.js} +1 -1
  151. package/dist/calcite/p-eb133e45.entry.js +6 -0
  152. package/dist/calcite/p-eb357ea6.entry.js +6 -0
  153. package/dist/calcite/{p-f6760679.js → p-ec6c73c0.js} +2 -2
  154. package/dist/calcite/p-ed90ef39.entry.js +6 -0
  155. package/dist/calcite/p-efd107ed.entry.js +6 -0
  156. package/dist/calcite/p-f1e819d0.js +6 -0
  157. package/dist/calcite/p-f200ceb7.system.entry.js +6 -0
  158. package/dist/calcite/{p-bb1711f3.js → p-f4b01f6e.js} +1 -1
  159. package/dist/calcite/p-f5ef4bdb.system.js +6 -0
  160. package/dist/calcite/p-f7481a5b.system.entry.js +6 -0
  161. package/dist/calcite/p-f934284b.system.entry.js +6 -0
  162. package/dist/calcite/p-f935181a.entry.js +6 -0
  163. package/dist/calcite/p-fb374b42.entry.js +6 -0
  164. package/dist/calcite/p-fb5b969f.system.entry.js +6 -0
  165. package/dist/calcite/p-fbc834e7.system.entry.js +6 -0
  166. package/dist/calcite/p-fc321a74.system.entry.js +6 -0
  167. package/dist/calcite/p-fc45579a.entry.js +6 -0
  168. package/dist/calcite/{p-1157ae2f.js → p-fcb2ff51.js} +1 -1
  169. package/dist/calcite/p-fe2ddf18.system.entry.js +6 -0
  170. package/dist/calcite/{p-d05f35e8.system.js → p-fe8a9479.system.js} +2 -2
  171. package/dist/cjs/{ExpandToggle-894fe6d0.js → ExpandToggle-34dbe39b.js} +5 -5
  172. package/dist/cjs/{Heading-9546b15c.js → Heading-12d798ce.js} +2 -2
  173. package/dist/cjs/{array-1c85be7d.js → array-e582a132.js} +1 -1
  174. package/dist/cjs/calcite-accordion_2.cjs.entry.js +83 -44
  175. package/dist/cjs/calcite-action-bar.cjs.entry.js +11 -11
  176. package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
  177. package/dist/cjs/calcite-action-menu.cjs.entry.js +15 -32
  178. package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -10
  179. package/dist/cjs/calcite-action.cjs.entry.js +7 -7
  180. package/dist/cjs/calcite-alert.cjs.entry.js +31 -38
  181. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  182. package/dist/cjs/calcite-block_2.cjs.entry.js +15 -11
  183. package/dist/cjs/calcite-button.cjs.entry.js +9 -9
  184. package/dist/cjs/calcite-card.cjs.entry.js +10 -10
  185. package/dist/cjs/calcite-checkbox.cjs.entry.js +8 -8
  186. package/dist/cjs/calcite-chip.cjs.entry.js +15 -9
  187. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +11 -11
  188. package/dist/cjs/calcite-combobox_3.cjs.entry.js +58 -83
  189. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +65 -67
  190. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +80 -114
  191. package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
  192. package/dist/cjs/calcite-filter.cjs.entry.js +8 -8
  193. package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
  194. package/dist/cjs/calcite-graph_2.cjs.entry.js +11 -11
  195. package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
  196. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  197. package/dist/cjs/calcite-inline-editable.cjs.entry.js +24 -24
  198. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +121 -100
  199. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  200. package/dist/cjs/calcite-input-number.cjs.entry.js +525 -0
  201. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +36 -27
  202. package/dist/cjs/calcite-input.cjs.entry.js +14 -20
  203. package/dist/cjs/calcite-label.cjs.entry.js +6 -6
  204. package/dist/cjs/calcite-link.cjs.entry.js +6 -6
  205. package/dist/cjs/calcite-list_3.cjs.entry.js +11 -11
  206. package/dist/cjs/calcite-loader.cjs.entry.js +9 -5
  207. package/dist/cjs/calcite-modal.cjs.entry.js +44 -16
  208. package/dist/cjs/calcite-notice.cjs.entry.js +37 -12
  209. package/dist/cjs/calcite-option_3.cjs.entry.js +11 -11
  210. package/dist/cjs/calcite-pagination.cjs.entry.js +6 -6
  211. package/dist/cjs/calcite-panel.cjs.entry.js +54 -23
  212. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +14 -14
  213. package/dist/cjs/calcite-popover_2.cjs.entry.js +72 -82
  214. package/dist/cjs/calcite-progress.cjs.entry.js +3 -3
  215. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
  216. package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
  217. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +9 -9
  218. package/dist/cjs/calcite-rating.cjs.entry.js +9 -9
  219. package/dist/cjs/calcite-scrim.cjs.entry.js +3 -3
  220. package/dist/cjs/calcite-shell_3.cjs.entry.js +10 -10
  221. package/dist/cjs/calcite-sortable-list.cjs.entry.js +6 -6
  222. package/dist/cjs/calcite-split-button.cjs.entry.js +7 -7
  223. package/dist/cjs/calcite-stepper_2.cjs.entry.js +51 -84
  224. package/dist/cjs/calcite-switch.cjs.entry.js +11 -13
  225. package/dist/cjs/calcite-tab_4.cjs.entry.js +61 -61
  226. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -6
  227. package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
  228. package/dist/cjs/calcite-tip_3.cjs.entry.js +12 -12
  229. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +31 -64
  230. package/dist/cjs/calcite-tree_2.cjs.entry.js +28 -28
  231. package/dist/cjs/calcite-value-list_2.cjs.entry.js +89 -24
  232. package/dist/cjs/calcite.cjs.js +4 -4
  233. package/dist/cjs/{conditionalSlot-ecb74d9a.js → conditionalSlot-352bec3d.js} +3 -3
  234. package/dist/cjs/{debounce-a74a2080.js → debounce-6cd1535e.js} +1 -1
  235. package/dist/cjs/{dom-69c7e941.js → dom-ed822c13.js} +2 -2
  236. package/dist/cjs/floating-ui-ddaf1746.js +1620 -0
  237. package/dist/cjs/{forIn-efe39801.js → forIn-9c2acd4a.js} +2 -2
  238. package/dist/cjs/{form-901b31de.js → form-e3be7149.js} +3 -3
  239. package/dist/cjs/{guid-263ed05b.js → guid-c86839da.js} +1 -1
  240. package/dist/cjs/{index-8fbe74dd.js → index-33f65b26.js} +12 -1
  241. package/dist/cjs/index.cjs.js +1 -1
  242. package/dist/cjs/{interactive-b2df5d51.js → interactive-a3821d41.js} +1 -1
  243. package/dist/cjs/{interfaces-a8a9ed80.js → interfaces-0d6f4796.js} +1 -1
  244. package/dist/cjs/{key-0fe936c7.js → key-a2e96b2d.js} +1 -1
  245. package/dist/cjs/{label-f1317d82.js → label-bd9a47bd.js} +2 -2
  246. package/dist/cjs/loader.cjs.js +4 -4
  247. package/dist/cjs/{locale-0becaa93.js → locale-48e984a4.js} +2 -2
  248. package/dist/cjs/{math-0877dd01.js → math-b4d12de8.js} +1 -1
  249. package/dist/cjs/{observers-8169781c.js → observers-11defbec.js} +1 -1
  250. package/dist/cjs/{resources-93a62cd3.js → resources-0b605ada.js} +1 -1
  251. package/dist/cjs/{resources-80d6cd05.js → resources-1388772a.js} +1 -1
  252. package/dist/cjs/{resources-6ac223e5.js → resources-826e04f0.js} +3 -3
  253. package/dist/cjs/{resources-192c00c3.js → resources-ca50aa50.js} +12 -6
  254. package/dist/cjs/{sortable.esm-b7091c1d.js → sortable.esm-67fdfa55.js} +1 -1
  255. package/dist/cjs/{utils-b1d11545.js → utils-1a470335.js} +1 -1
  256. package/dist/collection/collection-manifest.json +7 -1
  257. package/dist/collection/components/accordion/accordion.css +3 -3
  258. package/dist/collection/components/accordion/accordion.js +25 -20
  259. package/dist/collection/components/accordion/interfaces.js +1 -1
  260. package/dist/collection/components/accordion-item/accordion-item.css +81 -63
  261. package/dist/collection/components/accordion-item/accordion-item.js +92 -48
  262. package/dist/collection/components/accordion-item/interfaces.js +6 -0
  263. package/dist/collection/components/accordion-item/resources.js +21 -0
  264. package/dist/collection/components/action/action.css +24 -22
  265. package/dist/collection/components/action/action.js +3 -3
  266. package/dist/collection/components/action/resources.js +1 -1
  267. package/dist/collection/components/action-bar/action-bar.css +7 -6
  268. package/dist/collection/components/action-bar/action-bar.js +3 -3
  269. package/dist/collection/components/action-bar/resources.js +1 -1
  270. package/dist/collection/components/action-bar/utils.js +1 -1
  271. package/dist/collection/components/action-group/action-group.css +2 -2
  272. package/dist/collection/components/action-group/action-group.js +3 -3
  273. package/dist/collection/components/action-group/resources.js +1 -1
  274. package/dist/collection/components/action-menu/action-menu.css +3 -3
  275. package/dist/collection/components/action-menu/action-menu.js +25 -37
  276. package/dist/collection/components/action-menu/resources.js +1 -1
  277. package/dist/collection/components/action-pad/action-pad.css +9 -9
  278. package/dist/collection/components/action-pad/action-pad.js +3 -3
  279. package/dist/collection/components/action-pad/resources.js +1 -1
  280. package/dist/collection/components/alert/alert.css +41 -49
  281. package/dist/collection/components/alert/alert.js +52 -70
  282. package/dist/collection/components/alert/interfaces.js +1 -1
  283. package/dist/collection/components/alert/resources.js +1 -1
  284. package/dist/collection/components/avatar/avatar.css +11 -11
  285. package/dist/collection/components/avatar/avatar.js +1 -1
  286. package/dist/collection/components/avatar/utils.js +1 -1
  287. package/dist/collection/components/block/block.css +15 -18
  288. package/dist/collection/components/block/block.js +12 -5
  289. package/dist/collection/components/block/resources.js +1 -1
  290. package/dist/collection/components/block-section/block-section.css +11 -17
  291. package/dist/collection/components/block-section/block-section.js +3 -3
  292. package/dist/collection/components/block-section/interfaces.js +1 -1
  293. package/dist/collection/components/block-section/resources.js +1 -1
  294. package/dist/collection/components/button/button.css +37 -37
  295. package/dist/collection/components/button/button.js +1 -1
  296. package/dist/collection/components/button/interfaces.js +1 -1
  297. package/dist/collection/components/button/resources.js +1 -1
  298. package/dist/collection/components/card/card.css +23 -23
  299. package/dist/collection/components/card/card.js +6 -6
  300. package/dist/collection/components/card/resources.js +1 -1
  301. package/dist/collection/components/checkbox/checkbox.css +12 -14
  302. package/dist/collection/components/checkbox/checkbox.js +7 -7
  303. package/dist/collection/components/chip/chip.css +27 -23
  304. package/dist/collection/components/chip/chip.js +39 -7
  305. package/dist/collection/components/chip/interfaces.js +1 -1
  306. package/dist/collection/components/chip/resources.js +1 -1
  307. package/dist/collection/components/color-picker/color-picker.css +32 -29
  308. package/dist/collection/components/color-picker/color-picker.js +5 -5
  309. package/dist/collection/components/color-picker/interfaces.js +1 -1
  310. package/dist/collection/components/color-picker/resources.js +1 -1
  311. package/dist/collection/components/color-picker/utils.js +1 -1
  312. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +5 -7
  313. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +3 -3
  314. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  315. package/dist/collection/components/color-picker-swatch/color-picker-swatch.css +12 -15
  316. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  317. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  318. package/dist/collection/components/combobox/combobox.css +49 -45
  319. package/dist/collection/components/combobox/combobox.js +77 -111
  320. package/dist/collection/components/combobox/interfaces.js +1 -1
  321. package/dist/collection/components/combobox/resources.js +1 -1
  322. package/dist/collection/components/combobox/utils.js +1 -1
  323. package/dist/collection/components/combobox-item/combobox-item.css +21 -14
  324. package/dist/collection/components/combobox-item/combobox-item.js +9 -4
  325. package/dist/collection/components/combobox-item/resources.js +1 -1
  326. package/dist/collection/components/combobox-item-group/combobox-item-group.css +13 -9
  327. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  328. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  329. package/dist/collection/components/date-picker/date-picker.css +5 -5
  330. package/dist/collection/components/date-picker/date-picker.js +14 -14
  331. package/dist/collection/components/date-picker/interfaces.js +1 -1
  332. package/dist/collection/components/date-picker/resources.js +1 -1
  333. package/dist/collection/components/date-picker/utils.js +1 -1
  334. package/dist/collection/components/date-picker-day/date-picker-day.css +23 -28
  335. package/dist/collection/components/date-picker-day/date-picker-day.js +8 -10
  336. package/dist/collection/components/date-picker-month/date-picker-month.css +14 -24
  337. package/dist/collection/components/date-picker-month/date-picker-month.js +41 -29
  338. package/dist/collection/components/date-picker-month-header/date-picker-month-header.css +23 -33
  339. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +20 -20
  340. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  341. package/dist/collection/components/dropdown/dropdown.css +26 -18
  342. package/dist/collection/components/dropdown/dropdown.js +95 -143
  343. package/dist/collection/components/dropdown/interfaces.js +1 -1
  344. package/dist/collection/components/dropdown/resources.js +1 -1
  345. package/dist/collection/components/dropdown-group/dropdown-group.css +4 -4
  346. package/dist/collection/components/dropdown-group/dropdown-group.js +9 -4
  347. package/dist/collection/components/dropdown-group/interfaces.js +1 -1
  348. package/dist/collection/components/dropdown-group/resources.js +1 -1
  349. package/dist/collection/components/dropdown-item/dropdown-item.css +8 -17
  350. package/dist/collection/components/dropdown-item/dropdown-item.js +18 -13
  351. package/dist/collection/components/dropdown-item/resources.js +1 -1
  352. package/dist/collection/components/fab/fab.css +7 -6
  353. package/dist/collection/components/fab/fab.js +1 -1
  354. package/dist/collection/components/fab/resources.js +1 -1
  355. package/dist/collection/components/filter/filter.css +16 -18
  356. package/dist/collection/components/filter/filter.js +1 -1
  357. package/dist/collection/components/filter/resources.js +1 -1
  358. package/dist/collection/components/flow/flow.css +4 -4
  359. package/dist/collection/components/flow/flow.js +1 -1
  360. package/dist/collection/components/flow/interfaces.js +1 -1
  361. package/dist/collection/components/flow/resources.js +1 -1
  362. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  363. package/dist/collection/components/functional/Heading.js +1 -1
  364. package/dist/collection/components/graph/graph.css +4 -4
  365. package/dist/collection/components/graph/graph.js +1 -1
  366. package/dist/collection/components/graph/interfaces.js +1 -1
  367. package/dist/collection/components/graph/util.js +1 -1
  368. package/dist/collection/components/handle/handle.css +3 -2
  369. package/dist/collection/components/handle/handle.js +9 -4
  370. package/dist/collection/components/handle/resources.js +1 -1
  371. package/dist/collection/components/icon/icon.css +13 -13
  372. package/dist/collection/components/icon/icon.js +1 -1
  373. package/dist/collection/components/icon/resources.js +1 -1
  374. package/dist/collection/components/icon/utils.js +1 -1
  375. package/dist/collection/components/inline-editable/inline-editable.css +12 -11
  376. package/dist/collection/components/inline-editable/inline-editable.js +19 -19
  377. package/dist/collection/components/inline-editable/resources.js +1 -1
  378. package/dist/collection/components/input/input.css +74 -96
  379. package/dist/collection/components/input/input.js +15 -16
  380. package/dist/collection/components/input/interfaces.js +1 -1
  381. package/dist/collection/components/input/resources.js +1 -1
  382. package/dist/collection/components/input-date-picker/input-date-picker.css +70 -73
  383. package/dist/collection/components/input-date-picker/input-date-picker.js +203 -116
  384. package/dist/collection/components/input-date-picker/resources.js +9 -0
  385. package/dist/collection/components/input-message/input-message.css +7 -7
  386. package/dist/collection/components/input-message/input-message.js +1 -1
  387. package/dist/collection/components/input-message/interfaces.js +1 -1
  388. package/dist/collection/components/input-number/input-number.css +501 -0
  389. package/dist/collection/components/input-number/input-number.js +1250 -0
  390. package/dist/collection/components/input-number/interfaces.js +5 -0
  391. package/dist/collection/components/input-number/resources.js +27 -0
  392. package/dist/collection/components/input-time-picker/input-time-picker.css +9 -11
  393. package/dist/collection/components/input-time-picker/input-time-picker.js +54 -28
  394. package/dist/collection/components/interfaces.js +1 -1
  395. package/dist/collection/components/label/label.css +15 -15
  396. package/dist/collection/components/label/label.js +1 -1
  397. package/dist/collection/components/label/resources.js +1 -1
  398. package/dist/collection/components/link/link.css +14 -13
  399. package/dist/collection/components/link/link.js +1 -1
  400. package/dist/collection/components/list/list.css +8 -7
  401. package/dist/collection/components/list/list.js +1 -1
  402. package/dist/collection/components/list/resources.js +1 -1
  403. package/dist/collection/components/list-item/list-item.css +12 -15
  404. package/dist/collection/components/list-item/list-item.js +1 -1
  405. package/dist/collection/components/list-item/resources.js +1 -1
  406. package/dist/collection/components/list-item-group/list-item-group.css +2 -2
  407. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  408. package/dist/collection/components/list-item-group/resources.js +1 -1
  409. package/dist/collection/components/loader/loader.css +27 -31
  410. package/dist/collection/components/loader/loader.js +10 -3
  411. package/dist/collection/components/modal/interfaces.js +1 -1
  412. package/dist/collection/components/modal/modal.css +77 -70
  413. package/dist/collection/components/modal/modal.js +78 -19
  414. package/dist/collection/components/modal/resources.js +1 -1
  415. package/dist/collection/components/notice/notice.css +26 -34
  416. package/dist/collection/components/notice/notice.js +83 -12
  417. package/dist/collection/components/notice/resources.js +1 -1
  418. package/dist/collection/components/option/option.css +1 -1
  419. package/dist/collection/components/option/option.js +3 -3
  420. package/dist/collection/components/option-group/option-group.css +1 -1
  421. package/dist/collection/components/option-group/option-group.js +3 -3
  422. package/dist/collection/components/pagination/pagination.css +10 -14
  423. package/dist/collection/components/pagination/pagination.js +1 -1
  424. package/dist/collection/components/pagination/resources.js +1 -1
  425. package/dist/collection/components/panel/panel.css +39 -45
  426. package/dist/collection/components/panel/panel.js +105 -26
  427. package/dist/collection/components/panel/resources.js +1 -1
  428. package/dist/collection/components/pick-list/pick-list.css +13 -12
  429. package/dist/collection/components/pick-list/pick-list.js +1 -1
  430. package/dist/collection/components/pick-list/resources.js +1 -1
  431. package/dist/collection/components/pick-list/shared-list-logic.js +5 -1
  432. package/dist/collection/components/pick-list/shared-list-render.js +3 -2
  433. package/dist/collection/components/pick-list-group/pick-list-group.css +5 -7
  434. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  435. package/dist/collection/components/pick-list-group/resources.js +1 -1
  436. package/dist/collection/components/pick-list-item/pick-list-item.css +15 -17
  437. package/dist/collection/components/pick-list-item/pick-list-item.js +2 -2
  438. package/dist/collection/components/pick-list-item/resources.js +1 -1
  439. package/dist/collection/components/popover/PopoverManager.js +1 -1
  440. package/dist/collection/components/popover/popover.css +29 -34
  441. package/dist/collection/components/popover/popover.js +132 -91
  442. package/dist/collection/components/popover/resources.js +1 -1
  443. package/dist/collection/components/popover-manager/popover-manager.css +1 -1
  444. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  445. package/dist/collection/components/progress/progress.css +9 -11
  446. package/dist/collection/components/progress/progress.js +1 -1
  447. package/dist/collection/components/radio-button/radio-button.css +15 -17
  448. package/dist/collection/components/radio-button/radio-button.js +10 -10
  449. package/dist/collection/components/radio-button/resources.js +1 -1
  450. package/dist/collection/components/radio-button-group/radio-button-group.css +2 -2
  451. package/dist/collection/components/radio-button-group/radio-button-group.js +3 -3
  452. package/dist/collection/components/radio-group/interfaces.js +1 -1
  453. package/dist/collection/components/radio-group/radio-group.css +15 -17
  454. package/dist/collection/components/radio-group/radio-group.js +1 -1
  455. package/dist/collection/components/radio-group-item/radio-group-item.css +7 -13
  456. package/dist/collection/components/radio-group-item/radio-group-item.js +3 -3
  457. package/dist/collection/components/radio-group-item/resources.js +1 -1
  458. package/dist/collection/components/rating/rating.css +18 -20
  459. package/dist/collection/components/rating/rating.js +1 -1
  460. package/dist/collection/components/rating/resources.js +1 -1
  461. package/dist/collection/components/scrim/resources.js +1 -1
  462. package/dist/collection/components/scrim/scrim.css +5 -11
  463. package/dist/collection/components/scrim/scrim.js +1 -1
  464. package/dist/collection/components/select/resources.js +1 -1
  465. package/dist/collection/components/select/select.css +22 -28
  466. package/dist/collection/components/select/select.js +1 -1
  467. package/dist/collection/components/shell/resources.js +1 -1
  468. package/dist/collection/components/shell/shell.css +17 -24
  469. package/dist/collection/components/shell/shell.js +1 -1
  470. package/dist/collection/components/shell-center-row/resources.js +1 -1
  471. package/dist/collection/components/shell-center-row/shell-center-row.css +11 -13
  472. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  473. package/dist/collection/components/shell-panel/resources.js +1 -1
  474. package/dist/collection/components/shell-panel/shell-panel.css +17 -20
  475. package/dist/collection/components/shell-panel/shell-panel.js +3 -3
  476. package/dist/collection/components/slider/slider.css +43 -44
  477. package/dist/collection/components/slider/slider.js +7 -7
  478. package/dist/collection/components/sortable-list/resources.js +1 -1
  479. package/dist/collection/components/sortable-list/sortable-list.css +6 -5
  480. package/dist/collection/components/sortable-list/sortable-list.js +3 -3
  481. package/dist/collection/components/split-button/resources.js +1 -1
  482. package/dist/collection/components/split-button/split-button.css +17 -18
  483. package/dist/collection/components/split-button/split-button.js +21 -11
  484. package/dist/collection/components/stepper/interfaces.js +1 -1
  485. package/dist/collection/components/stepper/stepper.css +6 -9
  486. package/dist/collection/components/stepper/stepper.js +26 -84
  487. package/dist/collection/components/stepper-item/stepper-item.css +103 -35
  488. package/dist/collection/components/stepper-item/stepper-item.js +41 -20
  489. package/dist/collection/components/switch/switch.css +28 -30
  490. package/dist/collection/components/switch/switch.js +12 -9
  491. package/dist/collection/components/tab/interfaces.js +1 -1
  492. package/dist/collection/components/tab/tab.css +10 -13
  493. package/dist/collection/components/tab/tab.js +4 -4
  494. package/dist/collection/components/tab-nav/tab-nav.css +24 -25
  495. package/dist/collection/components/tab-nav/tab-nav.js +29 -29
  496. package/dist/collection/components/tab-title/tab-title.css +41 -50
  497. package/dist/collection/components/tab-title/tab-title.js +8 -8
  498. package/dist/collection/components/tabs/interfaces.js +1 -1
  499. package/dist/collection/components/tabs/resources.js +1 -1
  500. package/dist/collection/components/tabs/tabs.css +21 -21
  501. package/dist/collection/components/tabs/tabs.js +20 -20
  502. package/dist/collection/components/tile/resources.js +1 -1
  503. package/dist/collection/components/tile/tile.css +12 -11
  504. package/dist/collection/components/tile/tile.js +1 -1
  505. package/dist/collection/components/tile-select/interfaces.js +1 -1
  506. package/dist/collection/components/tile-select/resources.js +1 -1
  507. package/dist/collection/components/tile-select/tile-select.css +14 -13
  508. package/dist/collection/components/tile-select/tile-select.js +3 -3
  509. package/dist/collection/components/tile-select-group/interfaces.js +1 -1
  510. package/dist/collection/components/tile-select-group/tile-select-group.css +10 -9
  511. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  512. package/dist/collection/components/time-picker/resources.js +1 -1
  513. package/dist/collection/components/time-picker/time-picker.css +11 -17
  514. package/dist/collection/components/time-picker/time-picker.js +1 -1
  515. package/dist/collection/components/tip/resources.js +1 -1
  516. package/dist/collection/components/tip/tip.css +12 -15
  517. package/dist/collection/components/tip/tip.js +3 -3
  518. package/dist/collection/components/tip-group/tip-group.css +2 -3
  519. package/dist/collection/components/tip-group/tip-group.js +1 -1
  520. package/dist/collection/components/tip-manager/resources.js +1 -1
  521. package/dist/collection/components/tip-manager/tip-manager.css +11 -16
  522. package/dist/collection/components/tip-manager/tip-manager.js +7 -7
  523. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  524. package/dist/collection/components/tooltip/resources.js +1 -1
  525. package/dist/collection/components/tooltip/tooltip.css +25 -30
  526. package/dist/collection/components/tooltip/tooltip.js +35 -66
  527. package/dist/collection/components/tooltip-manager/tooltip-manager.css +1 -1
  528. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  529. package/dist/collection/components/tree/interfaces.js +1 -1
  530. package/dist/collection/components/tree/tree.css +4 -1
  531. package/dist/collection/components/tree/tree.js +12 -12
  532. package/dist/collection/components/tree-item/interfaces.js +1 -1
  533. package/dist/collection/components/tree-item/resources.js +1 -1
  534. package/dist/collection/components/tree-item/tree-item.css +18 -15
  535. package/dist/collection/components/tree-item/tree-item.js +10 -10
  536. package/dist/collection/components/value-list/interfaces.js +6 -0
  537. package/dist/collection/components/value-list/resources.js +1 -1
  538. package/dist/collection/components/value-list/utils.js +49 -0
  539. package/dist/collection/components/value-list/value-list.css +12 -11
  540. package/dist/collection/components/value-list/value-list.js +101 -11
  541. package/dist/collection/components/value-list-item/resources.js +1 -1
  542. package/dist/collection/components/value-list-item/value-list-item.css +12 -13
  543. package/dist/collection/components/value-list-item/value-list-item.js +3 -3
  544. package/dist/collection/utils/array.js +1 -1
  545. package/dist/collection/utils/conditionalSlot.js +1 -1
  546. package/dist/collection/utils/date.js +1 -1
  547. package/dist/collection/utils/dom.js +1 -1
  548. package/dist/collection/utils/filter.js +1 -1
  549. package/dist/collection/utils/floating-ui.js +229 -0
  550. package/dist/collection/utils/form.js +1 -1
  551. package/dist/collection/utils/globalAttributes.js +1 -1
  552. package/dist/collection/utils/guid.js +1 -1
  553. package/dist/collection/utils/interactive.js +1 -1
  554. package/dist/collection/utils/key.js +1 -1
  555. package/dist/collection/utils/label.js +1 -1
  556. package/dist/collection/utils/locale.js +1 -1
  557. package/dist/collection/utils/math.js +1 -1
  558. package/dist/collection/utils/number.js +1 -1
  559. package/dist/collection/utils/observers.js +1 -1
  560. package/dist/collection/utils/openCloseComponent.js +1 -1
  561. package/dist/collection/utils/resources.js +1 -1
  562. package/dist/collection/utils/time.js +2 -2
  563. package/dist/components/ExpandToggle.js +2 -2
  564. package/dist/components/Heading.js +1 -1
  565. package/dist/components/action-group.js +3 -3
  566. package/dist/components/action-menu.js +9 -26
  567. package/dist/components/action.js +2 -2
  568. package/dist/components/array.js +1 -1
  569. package/dist/components/button.js +4 -4
  570. package/dist/components/calcite-accordion-item.js +63 -26
  571. package/dist/components/calcite-accordion.js +18 -18
  572. package/dist/components/calcite-action-bar.js +3 -3
  573. package/dist/components/calcite-action-group.js +1 -1
  574. package/dist/components/calcite-action-menu.js +1 -1
  575. package/dist/components/calcite-action-pad.js +3 -3
  576. package/dist/components/calcite-action.js +1 -1
  577. package/dist/components/calcite-alert.js +28 -35
  578. package/dist/components/calcite-avatar.js +2 -2
  579. package/dist/components/calcite-block-section.js +3 -3
  580. package/dist/components/calcite-block.js +8 -4
  581. package/dist/components/calcite-button.js +1 -1
  582. package/dist/components/calcite-card.js +7 -7
  583. package/dist/components/calcite-checkbox.js +1 -1
  584. package/dist/components/calcite-chip.js +1 -1
  585. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  586. package/dist/components/calcite-color-picker-swatch.js +1 -1
  587. package/dist/components/calcite-color-picker.js +3 -3
  588. package/dist/components/calcite-combobox-item-group.js +2 -2
  589. package/dist/components/calcite-combobox-item.js +3 -3
  590. package/dist/components/calcite-combobox.js +46 -71
  591. package/dist/components/calcite-date-picker-day.js +1 -1
  592. package/dist/components/calcite-date-picker-month-header.js +1 -1
  593. package/dist/components/calcite-date-picker-month.js +1 -1
  594. package/dist/components/calcite-date-picker.js +1 -1
  595. package/dist/components/calcite-dropdown-group.js +2 -2
  596. package/dist/components/calcite-dropdown-item.js +9 -9
  597. package/dist/components/calcite-dropdown.js +1 -1
  598. package/dist/components/calcite-fab.js +2 -2
  599. package/dist/components/calcite-filter.js +1 -1
  600. package/dist/components/calcite-flow.js +2 -2
  601. package/dist/components/calcite-graph.js +1 -1
  602. package/dist/components/calcite-handle.js +1 -1
  603. package/dist/components/calcite-icon.js +1 -1
  604. package/dist/components/calcite-inline-editable.js +20 -20
  605. package/dist/components/calcite-input-date-picker.js +114 -91
  606. package/dist/components/calcite-input-message.js +2 -2
  607. package/dist/components/calcite-input-number.d.ts +11 -0
  608. package/dist/components/calcite-input-number.js +586 -0
  609. package/dist/components/calcite-input-time-picker.js +29 -19
  610. package/dist/components/calcite-input.js +1 -1
  611. package/dist/components/calcite-label.js +2 -2
  612. package/dist/components/calcite-link.js +1 -1
  613. package/dist/components/calcite-list-item-group.js +2 -2
  614. package/dist/components/calcite-list-item.js +3 -3
  615. package/dist/components/calcite-list.js +2 -2
  616. package/dist/components/calcite-loader.js +1 -1
  617. package/dist/components/calcite-modal.js +41 -13
  618. package/dist/components/calcite-notice.js +34 -7
  619. package/dist/components/calcite-option-group.js +2 -2
  620. package/dist/components/calcite-option.js +2 -2
  621. package/dist/components/calcite-pagination.js +2 -2
  622. package/dist/components/calcite-panel.js +50 -17
  623. package/dist/components/calcite-pick-list-group.js +3 -3
  624. package/dist/components/calcite-pick-list-item.js +1 -1
  625. package/dist/components/calcite-pick-list.js +2 -2
  626. package/dist/components/calcite-popover-manager.js +2 -2
  627. package/dist/components/calcite-popover.js +1 -1
  628. package/dist/components/calcite-progress.js +1 -1
  629. package/dist/components/calcite-radio-button-group.js +2 -2
  630. package/dist/components/calcite-radio-button.js +5 -5
  631. package/dist/components/calcite-radio-group-item.js +2 -2
  632. package/dist/components/calcite-radio-group.js +4 -4
  633. package/dist/components/calcite-rating.js +3 -3
  634. package/dist/components/calcite-scrim.js +1 -1
  635. package/dist/components/calcite-select.js +3 -3
  636. package/dist/components/calcite-shell-center-row.js +3 -3
  637. package/dist/components/calcite-shell-panel.js +3 -3
  638. package/dist/components/calcite-shell.js +3 -3
  639. package/dist/components/calcite-slider.js +4 -4
  640. package/dist/components/calcite-sortable-list.js +2 -2
  641. package/dist/components/calcite-split-button.js +5 -5
  642. package/dist/components/calcite-stepper-item.js +25 -21
  643. package/dist/components/calcite-stepper.js +26 -62
  644. package/dist/components/calcite-switch.js +1 -1
  645. package/dist/components/calcite-tab-nav.js +1 -1
  646. package/dist/components/calcite-tab-title.js +1 -1
  647. package/dist/components/calcite-tab.js +1 -1
  648. package/dist/components/calcite-tabs.js +1 -1
  649. package/dist/components/calcite-tile-select-group.js +2 -2
  650. package/dist/components/calcite-tile-select.js +2 -2
  651. package/dist/components/calcite-tile.js +1 -1
  652. package/dist/components/calcite-time-picker.js +1 -1
  653. package/dist/components/calcite-tip-group.js +2 -2
  654. package/dist/components/calcite-tip-manager.js +5 -5
  655. package/dist/components/calcite-tip.js +3 -3
  656. package/dist/components/calcite-tooltip-manager.js +2 -2
  657. package/dist/components/calcite-tooltip.js +26 -59
  658. package/dist/components/calcite-tree-item.js +12 -12
  659. package/dist/components/calcite-tree.js +13 -13
  660. package/dist/components/calcite-value-list-item.js +4 -4
  661. package/dist/components/calcite-value-list.js +82 -13
  662. package/dist/components/checkbox.js +3 -3
  663. package/dist/components/chip.js +12 -5
  664. package/dist/components/color-picker-hex-input.js +2 -2
  665. package/dist/components/color-picker-swatch.js +2 -2
  666. package/dist/components/conditionalSlot.js +1 -1
  667. package/dist/components/date-picker-day.js +6 -8
  668. package/dist/components/date-picker-month-header.js +22 -22
  669. package/dist/components/date-picker-month.js +19 -19
  670. package/dist/components/date-picker.js +15 -15
  671. package/dist/components/date.js +2 -2
  672. package/dist/components/debounce.js +1 -1
  673. package/dist/components/dom.js +2 -2
  674. package/dist/components/dropdown.js +64 -98
  675. package/dist/components/filter.js +2 -2
  676. package/dist/components/floating-ui.js +1612 -0
  677. package/dist/components/forIn.js +1 -1
  678. package/dist/components/form.js +2 -2
  679. package/dist/components/graph.js +2 -2
  680. package/dist/components/guid.js +1 -1
  681. package/dist/components/handle.js +2 -2
  682. package/dist/components/icon.js +3 -3
  683. package/dist/components/index.d.ts +5 -90
  684. package/dist/components/index.js +1 -91
  685. package/dist/components/input.js +6 -12
  686. package/dist/components/interactive.js +1 -1
  687. package/dist/components/interfaces.js +1 -1
  688. package/dist/components/interfaces2.js +1 -1
  689. package/dist/components/key.js +1 -1
  690. package/dist/components/label.js +112 -87
  691. package/dist/components/label2.js +87 -112
  692. package/dist/components/link.js +3 -3
  693. package/dist/components/loader.js +7 -3
  694. package/dist/components/locale.js +1 -1
  695. package/dist/components/math.js +1 -1
  696. package/dist/components/observers.js +1 -1
  697. package/dist/components/pick-list-item.js +3 -3
  698. package/dist/components/popover.js +64 -73
  699. package/dist/components/progress.js +2 -2
  700. package/dist/components/resources.js +1 -1
  701. package/dist/components/resources2.js +1 -1
  702. package/dist/components/resources3.js +1 -1
  703. package/dist/components/scrim.js +2 -2
  704. package/dist/components/shared-list-render.js +9 -4
  705. package/dist/components/sortable.esm.js +1 -1
  706. package/dist/components/switch.js +6 -8
  707. package/dist/components/tab-nav.js +31 -31
  708. package/dist/components/tab-title.js +6 -6
  709. package/dist/components/tab.js +3 -3
  710. package/dist/components/tabs.js +21 -21
  711. package/dist/components/tile.js +3 -3
  712. package/dist/components/time-picker.js +3 -3
  713. package/dist/components/utils.js +1 -1
  714. package/dist/components/utils2.js +1 -1
  715. package/dist/custom-elements/index.d.ts +6 -0
  716. package/dist/custom-elements/index.js +3134 -2816
  717. package/dist/esm/{ExpandToggle-baf2c551.js → ExpandToggle-8ad8aac0.js} +5 -5
  718. package/dist/esm/{Heading-1183c4d7.js → Heading-4d9f4f89.js} +2 -2
  719. package/dist/esm/{array-d7b2d2da.js → array-c38e9698.js} +1 -1
  720. package/dist/esm/calcite-accordion_2.entry.js +83 -44
  721. package/dist/esm/calcite-action-bar.entry.js +11 -11
  722. package/dist/esm/calcite-action-group.entry.js +9 -9
  723. package/dist/esm/calcite-action-menu.entry.js +15 -32
  724. package/dist/esm/calcite-action-pad.entry.js +10 -10
  725. package/dist/esm/calcite-action.entry.js +7 -7
  726. package/dist/esm/calcite-alert.entry.js +31 -38
  727. package/dist/esm/calcite-avatar.entry.js +6 -6
  728. package/dist/esm/calcite-block_2.entry.js +15 -11
  729. package/dist/esm/calcite-button.entry.js +9 -9
  730. package/dist/esm/calcite-card.entry.js +10 -10
  731. package/dist/esm/calcite-checkbox.entry.js +8 -8
  732. package/dist/esm/calcite-chip.entry.js +15 -9
  733. package/dist/esm/calcite-color-picker_3.entry.js +11 -11
  734. package/dist/esm/calcite-combobox_3.entry.js +57 -82
  735. package/dist/esm/calcite-date-picker_4.entry.js +65 -67
  736. package/dist/esm/calcite-dropdown_3.entry.js +78 -112
  737. package/dist/esm/calcite-fab.entry.js +6 -6
  738. package/dist/esm/calcite-filter.entry.js +8 -8
  739. package/dist/esm/calcite-flow.entry.js +4 -4
  740. package/dist/esm/calcite-graph_2.entry.js +11 -11
  741. package/dist/esm/calcite-handle.entry.js +5 -5
  742. package/dist/esm/calcite-icon.entry.js +6 -6
  743. package/dist/esm/calcite-inline-editable.entry.js +24 -24
  744. package/dist/esm/calcite-input-date-picker.entry.js +119 -98
  745. package/dist/esm/calcite-input-message.entry.js +5 -5
  746. package/dist/esm/calcite-input-number.entry.js +521 -0
  747. package/dist/esm/calcite-input-time-picker_2.entry.js +36 -27
  748. package/dist/esm/calcite-input.entry.js +14 -20
  749. package/dist/esm/calcite-label.entry.js +6 -6
  750. package/dist/esm/calcite-link.entry.js +6 -6
  751. package/dist/esm/calcite-list_3.entry.js +11 -11
  752. package/dist/esm/calcite-loader.entry.js +9 -5
  753. package/dist/esm/calcite-modal.entry.js +44 -16
  754. package/dist/esm/calcite-notice.entry.js +37 -12
  755. package/dist/esm/calcite-option_3.entry.js +11 -11
  756. package/dist/esm/calcite-pagination.entry.js +6 -6
  757. package/dist/esm/calcite-panel.entry.js +54 -23
  758. package/dist/esm/calcite-pick-list_3.entry.js +14 -14
  759. package/dist/esm/calcite-popover_2.entry.js +70 -80
  760. package/dist/esm/calcite-progress.entry.js +3 -3
  761. package/dist/esm/calcite-radio-button-group.entry.js +4 -4
  762. package/dist/esm/calcite-radio-button.entry.js +10 -10
  763. package/dist/esm/calcite-radio-group_2.entry.js +9 -9
  764. package/dist/esm/calcite-rating.entry.js +9 -9
  765. package/dist/esm/calcite-scrim.entry.js +3 -3
  766. package/dist/esm/calcite-shell_3.entry.js +10 -10
  767. package/dist/esm/calcite-sortable-list.entry.js +6 -6
  768. package/dist/esm/calcite-split-button.entry.js +7 -7
  769. package/dist/esm/calcite-stepper_2.entry.js +51 -84
  770. package/dist/esm/calcite-switch.entry.js +11 -13
  771. package/dist/esm/calcite-tab_4.entry.js +61 -61
  772. package/dist/esm/calcite-tile-select_2.entry.js +6 -6
  773. package/dist/esm/calcite-tile.entry.js +8 -8
  774. package/dist/esm/calcite-tip_3.entry.js +12 -12
  775. package/dist/esm/calcite-tooltip_2.entry.js +30 -63
  776. package/dist/esm/calcite-tree_2.entry.js +28 -28
  777. package/dist/esm/calcite-value-list_2.entry.js +89 -24
  778. package/dist/esm/calcite.js +4 -4
  779. package/dist/esm/{conditionalSlot-91141c10.js → conditionalSlot-e49df07c.js} +3 -3
  780. package/dist/esm/{debounce-8620d992.js → debounce-76a1065a.js} +1 -1
  781. package/dist/esm/{dom-0e5130f0.js → dom-19ab3d2f.js} +2 -2
  782. package/dist/esm/floating-ui-4afc064e.js +1612 -0
  783. package/dist/esm/{forIn-908ce382.js → forIn-1c3a0d8e.js} +2 -2
  784. package/dist/esm/{form-44145a77.js → form-ecbc6fec.js} +3 -3
  785. package/dist/esm/{guid-035850cf.js → guid-ba74e5d4.js} +1 -1
  786. package/dist/esm/{index-7daa7f57.js → index-5048a317.js} +12 -1
  787. package/dist/esm/index.js +1 -1
  788. package/dist/esm/{interactive-26697f71.js → interactive-71744e3e.js} +1 -1
  789. package/dist/esm/{interfaces-666dcdb6.js → interfaces-e771f6c8.js} +1 -1
  790. package/dist/esm/{key-5106532f.js → key-af81a004.js} +1 -1
  791. package/dist/esm/{label-e58bd849.js → label-dfcfa9e0.js} +2 -2
  792. package/dist/esm/loader.js +4 -4
  793. package/dist/esm/{locale-bd54ff3b.js → locale-ab6b5afc.js} +2 -2
  794. package/dist/esm/{math-28a370c3.js → math-a5e24a73.js} +1 -1
  795. package/dist/esm/{observers-5cd6c82a.js → observers-61a2bb4f.js} +1 -1
  796. package/dist/esm/{resources-d196b6c1.js → resources-566ead7b.js} +12 -7
  797. package/dist/esm/{resources-b9270cdb.js → resources-9348154b.js} +1 -1
  798. package/dist/esm/{resources-3498bd44.js → resources-c995bb5e.js} +3 -3
  799. package/dist/esm/{resources-daaebdea.js → resources-e1d5ca1c.js} +1 -1
  800. package/dist/esm/{sortable.esm-ef18907c.js → sortable.esm-d0f38173.js} +1 -1
  801. package/dist/esm/{utils-cf3669f8.js → utils-531de8fa.js} +1 -1
  802. package/dist/esm-es5/{ExpandToggle-baf2c551.js → ExpandToggle-8ad8aac0.js} +2 -2
  803. package/dist/esm-es5/{Heading-1183c4d7.js → Heading-4d9f4f89.js} +2 -2
  804. package/dist/esm-es5/{array-d7b2d2da.js → array-c38e9698.js} +1 -1
  805. package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
  806. package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
  807. package/dist/esm-es5/calcite-action-group.entry.js +2 -2
  808. package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
  809. package/dist/esm-es5/calcite-action-pad.entry.js +3 -3
  810. package/dist/esm-es5/calcite-action.entry.js +2 -2
  811. package/dist/esm-es5/calcite-alert.entry.js +3 -3
  812. package/dist/esm-es5/calcite-avatar.entry.js +2 -2
  813. package/dist/esm-es5/calcite-block_2.entry.js +2 -2
  814. package/dist/esm-es5/calcite-button.entry.js +2 -2
  815. package/dist/esm-es5/calcite-card.entry.js +2 -2
  816. package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
  817. package/dist/esm-es5/calcite-chip.entry.js +3 -3
  818. package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
  819. package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
  820. package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
  821. package/dist/esm-es5/calcite-dropdown_3.entry.js +3 -3
  822. package/dist/esm-es5/calcite-fab.entry.js +3 -3
  823. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  824. package/dist/esm-es5/calcite-flow.entry.js +3 -3
  825. package/dist/esm-es5/calcite-graph_2.entry.js +3 -3
  826. package/dist/esm-es5/calcite-handle.entry.js +2 -2
  827. package/dist/esm-es5/calcite-icon.entry.js +2 -2
  828. package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
  829. package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
  830. package/dist/esm-es5/calcite-input-message.entry.js +2 -2
  831. package/dist/esm-es5/calcite-input-number.entry.js +6 -0
  832. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
  833. package/dist/esm-es5/calcite-input.entry.js +2 -2
  834. package/dist/esm-es5/calcite-label.entry.js +2 -2
  835. package/dist/esm-es5/calcite-link.entry.js +2 -2
  836. package/dist/esm-es5/calcite-list_3.entry.js +2 -2
  837. package/dist/esm-es5/calcite-loader.entry.js +3 -3
  838. package/dist/esm-es5/calcite-modal.entry.js +3 -3
  839. package/dist/esm-es5/calcite-notice.entry.js +3 -3
  840. package/dist/esm-es5/calcite-option_3.entry.js +3 -3
  841. package/dist/esm-es5/calcite-pagination.entry.js +2 -2
  842. package/dist/esm-es5/calcite-panel.entry.js +3 -3
  843. package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
  844. package/dist/esm-es5/calcite-popover_2.entry.js +3 -3
  845. package/dist/esm-es5/calcite-progress.entry.js +2 -2
  846. package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
  847. package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
  848. package/dist/esm-es5/calcite-radio-group_2.entry.js +3 -3
  849. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  850. package/dist/esm-es5/calcite-scrim.entry.js +2 -2
  851. package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
  852. package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
  853. package/dist/esm-es5/calcite-split-button.entry.js +2 -2
  854. package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
  855. package/dist/esm-es5/calcite-switch.entry.js +3 -3
  856. package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
  857. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  858. package/dist/esm-es5/calcite-tile.entry.js +2 -2
  859. package/dist/esm-es5/calcite-tip_3.entry.js +3 -3
  860. package/dist/esm-es5/calcite-tooltip_2.entry.js +3 -3
  861. package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
  862. package/dist/esm-es5/calcite-value-list_2.entry.js +3 -3
  863. package/dist/esm-es5/calcite.js +2 -2
  864. package/dist/esm-es5/{conditionalSlot-91141c10.js → conditionalSlot-e49df07c.js} +2 -2
  865. package/dist/esm-es5/{debounce-8620d992.js → debounce-76a1065a.js} +1 -1
  866. package/dist/esm-es5/{dom-0e5130f0.js → dom-19ab3d2f.js} +2 -2
  867. package/dist/esm-es5/floating-ui-4afc064e.js +6 -0
  868. package/dist/esm-es5/{forIn-908ce382.js → forIn-1c3a0d8e.js} +2 -2
  869. package/dist/esm-es5/{form-44145a77.js → form-ecbc6fec.js} +2 -2
  870. package/dist/esm-es5/{guid-035850cf.js → guid-ba74e5d4.js} +1 -1
  871. package/dist/esm-es5/index-5048a317.js +7 -0
  872. package/dist/esm-es5/index.js +1 -1
  873. package/dist/esm-es5/{interactive-26697f71.js → interactive-71744e3e.js} +1 -1
  874. package/dist/esm-es5/{interfaces-666dcdb6.js → interfaces-e771f6c8.js} +1 -1
  875. package/dist/esm-es5/{key-5106532f.js → key-af81a004.js} +1 -1
  876. package/dist/esm-es5/{label-e58bd849.js → label-dfcfa9e0.js} +2 -2
  877. package/dist/esm-es5/loader.js +2 -2
  878. package/dist/esm-es5/{locale-bd54ff3b.js → locale-ab6b5afc.js} +2 -2
  879. package/dist/esm-es5/{math-28a370c3.js → math-a5e24a73.js} +1 -1
  880. package/dist/esm-es5/{observers-5cd6c82a.js → observers-61a2bb4f.js} +1 -1
  881. package/dist/esm-es5/resources-566ead7b.js +6 -0
  882. package/dist/esm-es5/{resources-b9270cdb.js → resources-9348154b.js} +1 -1
  883. package/dist/esm-es5/{resources-3498bd44.js → resources-c995bb5e.js} +2 -2
  884. package/dist/esm-es5/{resources-daaebdea.js → resources-e1d5ca1c.js} +1 -1
  885. package/dist/esm-es5/{sortable.esm-ef18907c.js → sortable.esm-d0f38173.js} +1 -1
  886. package/dist/esm-es5/{utils-cf3669f8.js → utils-531de8fa.js} +1 -1
  887. package/dist/extras/docs-json.json +1221 -209
  888. package/dist/loader/cdn.js +1 -1
  889. package/dist/loader/index.cjs.js +1 -1
  890. package/dist/loader/index.es2017.js +1 -1
  891. package/dist/loader/index.js +1 -1
  892. package/dist/types/components/accordion/accordion.d.ts +4 -4
  893. package/dist/types/components/accordion/interfaces.d.ts +3 -0
  894. package/dist/types/components/accordion-item/accordion-item.d.ts +13 -7
  895. package/dist/types/components/accordion-item/interfaces.d.ts +11 -0
  896. package/dist/types/components/accordion-item/resources.d.ts +16 -0
  897. package/dist/types/components/action/action.d.ts +1 -1
  898. package/dist/types/components/action-bar/action-bar.d.ts +1 -1
  899. package/dist/types/components/action-group/action-group.d.ts +2 -1
  900. package/dist/types/components/action-menu/action-menu.d.ts +8 -8
  901. package/dist/types/components/action-pad/action-pad.d.ts +1 -1
  902. package/dist/types/components/alert/alert.d.ts +20 -24
  903. package/dist/types/components/alert/interfaces.d.ts +3 -0
  904. package/dist/types/components/block/block.d.ts +6 -2
  905. package/dist/types/components/block-section/block-section.d.ts +1 -1
  906. package/dist/types/components/card/card.d.ts +1 -1
  907. package/dist/types/components/checkbox/checkbox.d.ts +3 -3
  908. package/dist/types/components/chip/chip.d.ts +14 -4
  909. package/dist/types/components/color-picker/color-picker.d.ts +2 -2
  910. package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +1 -1
  911. package/dist/types/components/combobox/combobox.d.ts +25 -28
  912. package/dist/types/components/combobox-item/combobox-item.d.ts +4 -2
  913. package/dist/types/components/date-picker/date-picker.d.ts +5 -5
  914. package/dist/types/components/date-picker-day/date-picker-day.d.ts +3 -3
  915. package/dist/types/components/date-picker-month/date-picker-month.d.ts +7 -7
  916. package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +1 -1
  917. package/dist/types/components/dropdown/dropdown.d.ts +27 -31
  918. package/dist/types/components/dropdown-group/dropdown-group.d.ts +2 -2
  919. package/dist/types/components/dropdown-group/interfaces.d.ts +4 -0
  920. package/dist/types/components/dropdown-item/dropdown-item.d.ts +4 -3
  921. package/dist/types/components/handle/handle.d.ts +4 -1
  922. package/dist/types/components/inline-editable/inline-editable.d.ts +1 -1
  923. package/dist/types/components/input/input.d.ts +6 -4
  924. package/dist/types/components/input-date-picker/input-date-picker.d.ts +44 -27
  925. package/dist/types/components/input-date-picker/resources.d.ts +4 -0
  926. package/dist/types/components/input-number/input-number.d.ts +218 -0
  927. package/dist/types/components/input-number/interfaces.d.ts +1 -0
  928. package/dist/types/components/input-number/resources.d.ts +22 -0
  929. package/dist/types/components/input-time-picker/input-time-picker.d.ts +11 -6
  930. package/dist/types/components/interfaces.d.ts +1 -0
  931. package/dist/types/components/loader/loader.d.ts +5 -1
  932. package/dist/types/components/modal/modal.d.ts +23 -7
  933. package/dist/types/components/notice/notice.d.ts +22 -5
  934. package/dist/types/components/panel/panel.d.ts +20 -9
  935. package/dist/types/components/pick-list/shared-list-logic.d.ts +1 -0
  936. package/dist/types/components/pick-list/shared-list-render.d.ts +2 -0
  937. package/dist/types/components/popover/PopoverManager.d.ts +1 -1
  938. package/dist/types/components/popover/popover.d.ts +28 -15
  939. package/dist/types/components/radio-button/radio-button.d.ts +4 -4
  940. package/dist/types/components/radio-button-group/radio-button-group.d.ts +1 -1
  941. package/dist/types/components/radio-group-item/radio-group-item.d.ts +1 -1
  942. package/dist/types/components/shell-panel/shell-panel.d.ts +1 -1
  943. package/dist/types/components/slider/slider.d.ts +3 -3
  944. package/dist/types/components/sortable-list/sortable-list.d.ts +1 -1
  945. package/dist/types/components/split-button/split-button.d.ts +14 -6
  946. package/dist/types/components/stepper/interfaces.d.ts +0 -1
  947. package/dist/types/components/stepper/stepper.d.ts +4 -13
  948. package/dist/types/components/stepper-item/stepper-item.d.ts +2 -2
  949. package/dist/types/components/switch/switch.d.ts +5 -3
  950. package/dist/types/components/tab/tab.d.ts +1 -1
  951. package/dist/types/components/tab-nav/tab-nav.d.ts +7 -7
  952. package/dist/types/components/tab-title/tab-title.d.ts +3 -3
  953. package/dist/types/components/tabs/tabs.d.ts +8 -8
  954. package/dist/types/components/tile-select/tile-select.d.ts +1 -1
  955. package/dist/types/components/tip/tip.d.ts +1 -1
  956. package/dist/types/components/tip-manager/tip-manager.d.ts +3 -3
  957. package/dist/types/components/tooltip/TooltipManager.d.ts +1 -1
  958. package/dist/types/components/tooltip/tooltip.d.ts +6 -9
  959. package/dist/types/components/tree/tree.d.ts +2 -2
  960. package/dist/types/components/tree-item/tree-item.d.ts +2 -2
  961. package/dist/types/components/value-list/interfaces.d.ts +1 -0
  962. package/dist/types/components/value-list/utils.d.ts +8 -0
  963. package/dist/types/components/value-list/value-list.d.ts +30 -0
  964. package/dist/types/components.d.ts +602 -120
  965. package/dist/types/preact.d.ts +22 -9
  966. package/dist/types/utils/floating-ui.d.ts +109 -0
  967. package/hydrate/index.js +3144 -2905
  968. package/package.json +37 -33
  969. package/readme.md +2 -2
  970. package/dist/calcite/p-00247a8d.system.js +0 -7
  971. package/dist/calcite/p-02bb8194.entry.js +0 -6
  972. package/dist/calcite/p-061aea88.entry.js +0 -6
  973. package/dist/calcite/p-114d44c3.entry.js +0 -6
  974. package/dist/calcite/p-1363adcd.entry.js +0 -6
  975. package/dist/calcite/p-13d66ebf.entry.js +0 -6
  976. package/dist/calcite/p-14a22bfc.system.entry.js +0 -6
  977. package/dist/calcite/p-16888553.system.entry.js +0 -6
  978. package/dist/calcite/p-16dbdef2.system.entry.js +0 -6
  979. package/dist/calcite/p-1adea169.system.entry.js +0 -6
  980. package/dist/calcite/p-1db25c99.system.entry.js +0 -6
  981. package/dist/calcite/p-204443b0.system.entry.js +0 -6
  982. package/dist/calcite/p-236f1255.system.entry.js +0 -6
  983. package/dist/calcite/p-24d52a72.entry.js +0 -6
  984. package/dist/calcite/p-25349c89.system.entry.js +0 -6
  985. package/dist/calcite/p-278c8372.entry.js +0 -6
  986. package/dist/calcite/p-282106cb.system.js +0 -6
  987. package/dist/calcite/p-2b531882.entry.js +0 -6
  988. package/dist/calcite/p-30256458.entry.js +0 -6
  989. package/dist/calcite/p-34e0b58b.js +0 -6
  990. package/dist/calcite/p-352b94a1.system.entry.js +0 -6
  991. package/dist/calcite/p-3d2eebab.system.entry.js +0 -6
  992. package/dist/calcite/p-4185af29.entry.js +0 -6
  993. package/dist/calcite/p-4196e498.system.js +0 -6
  994. package/dist/calcite/p-41cbf505.system.entry.js +0 -6
  995. package/dist/calcite/p-438d87b0.entry.js +0 -6
  996. package/dist/calcite/p-448b3393.system.entry.js +0 -6
  997. package/dist/calcite/p-45588eee.system.entry.js +0 -6
  998. package/dist/calcite/p-49488c34.entry.js +0 -6
  999. package/dist/calcite/p-4b414b81.entry.js +0 -6
  1000. package/dist/calcite/p-4eb531c4.js +0 -7
  1001. package/dist/calcite/p-4f1dbd36.system.entry.js +0 -6
  1002. package/dist/calcite/p-51ffb552.system.entry.js +0 -6
  1003. package/dist/calcite/p-56f93049.js +0 -6
  1004. package/dist/calcite/p-57b60838.entry.js +0 -6
  1005. package/dist/calcite/p-594f52ca.system.entry.js +0 -6
  1006. package/dist/calcite/p-67a0e692.system.entry.js +0 -6
  1007. package/dist/calcite/p-6a554714.entry.js +0 -6
  1008. package/dist/calcite/p-6cff0a2a.entry.js +0 -6
  1009. package/dist/calcite/p-6d96d61f.system.js +0 -6
  1010. package/dist/calcite/p-6e366971.system.entry.js +0 -6
  1011. package/dist/calcite/p-70e1d287.system.entry.js +0 -6
  1012. package/dist/calcite/p-7168da40.entry.js +0 -6
  1013. package/dist/calcite/p-77bc0e49.entry.js +0 -6
  1014. package/dist/calcite/p-7c7ad2d6.entry.js +0 -6
  1015. package/dist/calcite/p-7cc3d924.system.entry.js +0 -6
  1016. package/dist/calcite/p-7ede3d65.system.entry.js +0 -6
  1017. package/dist/calcite/p-8018d689.system.entry.js +0 -6
  1018. package/dist/calcite/p-8137bc05.entry.js +0 -6
  1019. package/dist/calcite/p-82dec536.system.entry.js +0 -6
  1020. package/dist/calcite/p-88d2d38a.entry.js +0 -6
  1021. package/dist/calcite/p-890cc5a8.system.entry.js +0 -6
  1022. package/dist/calcite/p-891e53dd.system.entry.js +0 -6
  1023. package/dist/calcite/p-8c25b934.entry.js +0 -6
  1024. package/dist/calcite/p-8c9e453c.js +0 -6
  1025. package/dist/calcite/p-90608473.entry.js +0 -6
  1026. package/dist/calcite/p-974b7008.system.entry.js +0 -6
  1027. package/dist/calcite/p-98a2aa34.entry.js +0 -6
  1028. package/dist/calcite/p-98dfd14b.system.entry.js +0 -6
  1029. package/dist/calcite/p-99551007.system.entry.js +0 -6
  1030. package/dist/calcite/p-9c5c3cb3.system.entry.js +0 -6
  1031. package/dist/calcite/p-9c80707e.system.js +0 -6
  1032. package/dist/calcite/p-9f13e930.entry.js +0 -6
  1033. package/dist/calcite/p-a0971f99.entry.js +0 -6
  1034. package/dist/calcite/p-a1208386.entry.js +0 -6
  1035. package/dist/calcite/p-a1cc6421.entry.js +0 -6
  1036. package/dist/calcite/p-a6e1e1e4.entry.js +0 -6
  1037. package/dist/calcite/p-b2f27af5.entry.js +0 -6
  1038. package/dist/calcite/p-b31d3dad.system.entry.js +0 -6
  1039. package/dist/calcite/p-b3a4497d.entry.js +0 -6
  1040. package/dist/calcite/p-b48feb98.system.entry.js +0 -6
  1041. package/dist/calcite/p-bc5a7fee.system.entry.js +0 -6
  1042. package/dist/calcite/p-bce5ab4f.system.entry.js +0 -6
  1043. package/dist/calcite/p-c78d1678.system.entry.js +0 -6
  1044. package/dist/calcite/p-c9d73fce.system.entry.js +0 -6
  1045. package/dist/calcite/p-ccf1e5d8.entry.js +0 -6
  1046. package/dist/calcite/p-ce34288b.entry.js +0 -6
  1047. package/dist/calcite/p-d48cc6d2.entry.js +0 -6
  1048. package/dist/calcite/p-d4f596f2.entry.js +0 -6
  1049. package/dist/calcite/p-dd1e12e4.system.entry.js +0 -6
  1050. package/dist/calcite/p-e5381e40.system.entry.js +0 -6
  1051. package/dist/calcite/p-e6578cf2.system.entry.js +0 -6
  1052. package/dist/calcite/p-e78d93ed.entry.js +0 -6
  1053. package/dist/calcite/p-e7b4e5b8.system.entry.js +0 -6
  1054. package/dist/calcite/p-e956598c.system.entry.js +0 -6
  1055. package/dist/calcite/p-e9c9fb33.system.entry.js +0 -6
  1056. package/dist/calcite/p-ebb71e37.system.entry.js +0 -6
  1057. package/dist/calcite/p-ebeb09f0.system.entry.js +0 -6
  1058. package/dist/calcite/p-eccc820a.entry.js +0 -6
  1059. package/dist/calcite/p-eceb3f95.system.entry.js +0 -6
  1060. package/dist/calcite/p-ee60b60f.system.entry.js +0 -6
  1061. package/dist/calcite/p-f14e0497.system.entry.js +0 -6
  1062. package/dist/calcite/p-f2384caf.entry.js +0 -6
  1063. package/dist/calcite/p-f537a6a5.entry.js +0 -6
  1064. package/dist/calcite/p-fb97a373.system.entry.js +0 -6
  1065. package/dist/calcite/p-fc6a158c.system.entry.js +0 -6
  1066. package/dist/calcite/p-fca56e68.system.entry.js +0 -6
  1067. package/dist/cjs/popper-46476990.js +0 -1876
  1068. package/dist/collection/utils/popper.js +0 -126
  1069. package/dist/components/popper.js +0 -1868
  1070. package/dist/esm/popper-1df5bd76.js +0 -1868
  1071. package/dist/esm-es5/index-7daa7f57.js +0 -7
  1072. package/dist/esm-es5/popper-1df5bd76.js +0 -6
  1073. package/dist/esm-es5/resources-d196b6c1.js +0 -6
  1074. package/dist/types/utils/popper.d.ts +0 -35
@@ -0,0 +1,1612 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ * v1.0.0-beta.87
5
+ */
6
+ import { a as getElementDir } from './dom-19ab3d2f.js';
7
+
8
+ function getSide(placement) {
9
+ return placement.split('-')[0];
10
+ }
11
+
12
+ function getAlignment(placement) {
13
+ return placement.split('-')[1];
14
+ }
15
+
16
+ function getMainAxisFromPlacement(placement) {
17
+ return ['top', 'bottom'].includes(getSide(placement)) ? 'x' : 'y';
18
+ }
19
+
20
+ function getLengthFromAxis(axis) {
21
+ return axis === 'y' ? 'height' : 'width';
22
+ }
23
+
24
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
25
+ let {
26
+ reference,
27
+ floating
28
+ } = _ref;
29
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
30
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
31
+ const mainAxis = getMainAxisFromPlacement(placement);
32
+ const length = getLengthFromAxis(mainAxis);
33
+ const commonAlign = reference[length] / 2 - floating[length] / 2;
34
+ const side = getSide(placement);
35
+ const isVertical = mainAxis === 'x';
36
+ let coords;
37
+
38
+ switch (side) {
39
+ case 'top':
40
+ coords = {
41
+ x: commonX,
42
+ y: reference.y - floating.height
43
+ };
44
+ break;
45
+
46
+ case 'bottom':
47
+ coords = {
48
+ x: commonX,
49
+ y: reference.y + reference.height
50
+ };
51
+ break;
52
+
53
+ case 'right':
54
+ coords = {
55
+ x: reference.x + reference.width,
56
+ y: commonY
57
+ };
58
+ break;
59
+
60
+ case 'left':
61
+ coords = {
62
+ x: reference.x - floating.width,
63
+ y: commonY
64
+ };
65
+ break;
66
+
67
+ default:
68
+ coords = {
69
+ x: reference.x,
70
+ y: reference.y
71
+ };
72
+ }
73
+
74
+ switch (getAlignment(placement)) {
75
+ case 'start':
76
+ coords[mainAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
77
+ break;
78
+
79
+ case 'end':
80
+ coords[mainAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
81
+ break;
82
+ }
83
+
84
+ return coords;
85
+ }
86
+
87
+ /**
88
+ * Computes the `x` and `y` coordinates that will place the floating element
89
+ * next to a reference element when it is given a certain positioning strategy.
90
+ *
91
+ * This export does not have any `platform` interface logic. You will need to
92
+ * write one for the platform you are using Floating UI with.
93
+ */
94
+
95
+ const computePosition$1 = async (reference, floating, config) => {
96
+ const {
97
+ placement = 'bottom',
98
+ strategy = 'absolute',
99
+ middleware = [],
100
+ platform
101
+ } = config;
102
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
103
+
104
+ let rects = await platform.getElementRects({
105
+ reference,
106
+ floating,
107
+ strategy
108
+ });
109
+ let {
110
+ x,
111
+ y
112
+ } = computeCoordsFromPlacement(rects, placement, rtl);
113
+ let statefulPlacement = placement;
114
+ let middlewareData = {};
115
+ let resetCount = 0;
116
+
117
+ for (let i = 0; i < middleware.length; i++) {
118
+ const {
119
+ name,
120
+ fn
121
+ } = middleware[i];
122
+ const {
123
+ x: nextX,
124
+ y: nextY,
125
+ data,
126
+ reset
127
+ } = await fn({
128
+ x,
129
+ y,
130
+ initialPlacement: placement,
131
+ placement: statefulPlacement,
132
+ strategy,
133
+ middlewareData,
134
+ rects,
135
+ platform,
136
+ elements: {
137
+ reference,
138
+ floating
139
+ }
140
+ });
141
+ x = nextX != null ? nextX : x;
142
+ y = nextY != null ? nextY : y;
143
+ middlewareData = { ...middlewareData,
144
+ [name]: { ...middlewareData[name],
145
+ ...data
146
+ }
147
+ };
148
+
149
+ if (reset && resetCount <= 50) {
150
+ resetCount++;
151
+
152
+ if (typeof reset === 'object') {
153
+ if (reset.placement) {
154
+ statefulPlacement = reset.placement;
155
+ }
156
+
157
+ if (reset.rects) {
158
+ rects = reset.rects === true ? await platform.getElementRects({
159
+ reference,
160
+ floating,
161
+ strategy
162
+ }) : reset.rects;
163
+ }
164
+
165
+ ({
166
+ x,
167
+ y
168
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
169
+ }
170
+
171
+ i = -1;
172
+ continue;
173
+ }
174
+ }
175
+
176
+ return {
177
+ x,
178
+ y,
179
+ placement: statefulPlacement,
180
+ strategy,
181
+ middlewareData
182
+ };
183
+ };
184
+
185
+ function expandPaddingObject(padding) {
186
+ return {
187
+ top: 0,
188
+ right: 0,
189
+ bottom: 0,
190
+ left: 0,
191
+ ...padding
192
+ };
193
+ }
194
+
195
+ function getSideObjectFromPadding(padding) {
196
+ return typeof padding !== 'number' ? expandPaddingObject(padding) : {
197
+ top: padding,
198
+ right: padding,
199
+ bottom: padding,
200
+ left: padding
201
+ };
202
+ }
203
+
204
+ function rectToClientRect(rect) {
205
+ return { ...rect,
206
+ top: rect.y,
207
+ left: rect.x,
208
+ right: rect.x + rect.width,
209
+ bottom: rect.y + rect.height
210
+ };
211
+ }
212
+
213
+ /**
214
+ * Resolves with an object of overflow side offsets that determine how much the
215
+ * element is overflowing a given clipping boundary.
216
+ * - positive = overflowing the boundary by that number of pixels
217
+ * - negative = how many pixels left before it will overflow
218
+ * - 0 = lies flush with the boundary
219
+ * @see https://floating-ui.com/docs/detectOverflow
220
+ */
221
+ async function detectOverflow(middlewareArguments, options) {
222
+ var _await$platform$isEle;
223
+
224
+ if (options === void 0) {
225
+ options = {};
226
+ }
227
+
228
+ const {
229
+ x,
230
+ y,
231
+ platform,
232
+ rects,
233
+ elements,
234
+ strategy
235
+ } = middlewareArguments;
236
+ const {
237
+ boundary = 'clippingAncestors',
238
+ rootBoundary = 'viewport',
239
+ elementContext = 'floating',
240
+ altBoundary = false,
241
+ padding = 0
242
+ } = options;
243
+ const paddingObject = getSideObjectFromPadding(padding);
244
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
245
+ const element = elements[altBoundary ? altContext : elementContext];
246
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
247
+ 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))),
248
+ boundary,
249
+ rootBoundary,
250
+ strategy
251
+ }));
252
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
253
+ rect: elementContext === 'floating' ? { ...rects.floating,
254
+ x,
255
+ y
256
+ } : rects.reference,
257
+ offsetParent: await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating)),
258
+ strategy
259
+ }) : rects[elementContext]);
260
+ return {
261
+ top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
262
+ bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
263
+ left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
264
+ right: elementClientRect.right - clippingClientRect.right + paddingObject.right
265
+ };
266
+ }
267
+
268
+ const min$1 = Math.min;
269
+ const max$1 = Math.max;
270
+
271
+ function within(min$1$1, value, max$1$1) {
272
+ return max$1(min$1$1, min$1(value, max$1$1));
273
+ }
274
+
275
+ /**
276
+ * Positions an inner element of the floating element such that it is centered
277
+ * to the reference element.
278
+ * @see https://floating-ui.com/docs/arrow
279
+ */
280
+ const arrow = options => ({
281
+ name: 'arrow',
282
+ options,
283
+
284
+ async fn(middlewareArguments) {
285
+ // Since `element` is required, we don't Partial<> the type
286
+ const {
287
+ element,
288
+ padding = 0
289
+ } = options != null ? options : {};
290
+ const {
291
+ x,
292
+ y,
293
+ placement,
294
+ rects,
295
+ platform
296
+ } = middlewareArguments;
297
+
298
+ if (element == null) {
299
+
300
+ return {};
301
+ }
302
+
303
+ const paddingObject = getSideObjectFromPadding(padding);
304
+ const coords = {
305
+ x,
306
+ y
307
+ };
308
+ const axis = getMainAxisFromPlacement(placement);
309
+ const alignment = getAlignment(placement);
310
+ const length = getLengthFromAxis(axis);
311
+ const arrowDimensions = await platform.getDimensions(element);
312
+ const minProp = axis === 'y' ? 'top' : 'left';
313
+ const maxProp = axis === 'y' ? 'bottom' : 'right';
314
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
315
+ const startDiff = coords[axis] - rects.reference[axis];
316
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
317
+ let clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
318
+
319
+ if (clientSize === 0) {
320
+ clientSize = rects.floating[length];
321
+ }
322
+
323
+ const centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the floating element if the center
324
+ // point is outside the floating element's bounds
325
+
326
+ const min = paddingObject[minProp];
327
+ const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];
328
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
329
+ const offset = within(min, center, max); // Make sure that arrow points at the reference
330
+
331
+ const alignmentPadding = alignment === 'start' ? paddingObject[minProp] : paddingObject[maxProp];
332
+ const shouldAddOffset = alignmentPadding > 0 && center !== offset && rects.reference[length] <= rects.floating[length];
333
+ const alignmentOffset = shouldAddOffset ? center < min ? min - center : max - center : 0;
334
+ return {
335
+ [axis]: coords[axis] - alignmentOffset,
336
+ data: {
337
+ [axis]: offset,
338
+ centerOffset: center - offset
339
+ }
340
+ };
341
+ }
342
+
343
+ });
344
+
345
+ const hash$1 = {
346
+ left: 'right',
347
+ right: 'left',
348
+ bottom: 'top',
349
+ top: 'bottom'
350
+ };
351
+ function getOppositePlacement(placement) {
352
+ return placement.replace(/left|right|bottom|top/g, matched => hash$1[matched]);
353
+ }
354
+
355
+ function getAlignmentSides(placement, rects, rtl) {
356
+ if (rtl === void 0) {
357
+ rtl = false;
358
+ }
359
+
360
+ const alignment = getAlignment(placement);
361
+ const mainAxis = getMainAxisFromPlacement(placement);
362
+ const length = getLengthFromAxis(mainAxis);
363
+ let mainAlignmentSide = mainAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
364
+
365
+ if (rects.reference[length] > rects.floating[length]) {
366
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
367
+ }
368
+
369
+ return {
370
+ main: mainAlignmentSide,
371
+ cross: getOppositePlacement(mainAlignmentSide)
372
+ };
373
+ }
374
+
375
+ const hash = {
376
+ start: 'end',
377
+ end: 'start'
378
+ };
379
+ function getOppositeAlignmentPlacement(placement) {
380
+ return placement.replace(/start|end/g, matched => hash[matched]);
381
+ }
382
+
383
+ const sides = ['top', 'right', 'bottom', 'left'];
384
+ const allPlacements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-start", side + "-end"), []);
385
+
386
+ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
387
+ const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
388
+ return allowedPlacementsSortedByAlignment.filter(placement => {
389
+ if (alignment) {
390
+ return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
391
+ }
392
+
393
+ return true;
394
+ });
395
+ }
396
+
397
+ /**
398
+ * Automatically chooses the `placement` which has the most space available.
399
+ * @see https://floating-ui.com/docs/autoPlacement
400
+ */
401
+ const autoPlacement = function (options) {
402
+ if (options === void 0) {
403
+ options = {};
404
+ }
405
+
406
+ return {
407
+ name: 'autoPlacement',
408
+ options,
409
+
410
+ async fn(middlewareArguments) {
411
+ var _middlewareData$autoP, _middlewareData$autoP2, _middlewareData$autoP3, _middlewareData$autoP4, _placementsSortedByLe;
412
+
413
+ const {
414
+ x,
415
+ y,
416
+ rects,
417
+ middlewareData,
418
+ placement,
419
+ platform,
420
+ elements
421
+ } = middlewareArguments;
422
+ const {
423
+ alignment = null,
424
+ allowedPlacements = allPlacements,
425
+ autoAlignment = true,
426
+ ...detectOverflowOptions
427
+ } = options;
428
+ const placements = getPlacementList(alignment, autoAlignment, allowedPlacements);
429
+ const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
430
+ const currentIndex = (_middlewareData$autoP = (_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.index) != null ? _middlewareData$autoP : 0;
431
+ const currentPlacement = placements[currentIndex];
432
+
433
+ if (currentPlacement == null) {
434
+ return {};
435
+ }
436
+
437
+ const {
438
+ main,
439
+ cross
440
+ } = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))); // Make `computeCoords` start from the right place
441
+
442
+ if (placement !== currentPlacement) {
443
+ return {
444
+ x,
445
+ y,
446
+ reset: {
447
+ placement: placements[0]
448
+ }
449
+ };
450
+ }
451
+
452
+ const currentOverflows = [overflow[getSide(currentPlacement)], overflow[main], overflow[cross]];
453
+ const allOverflows = [...((_middlewareData$autoP3 = (_middlewareData$autoP4 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP4.overflows) != null ? _middlewareData$autoP3 : []), {
454
+ placement: currentPlacement,
455
+ overflows: currentOverflows
456
+ }];
457
+ const nextPlacement = placements[currentIndex + 1]; // There are more placements to check
458
+
459
+ if (nextPlacement) {
460
+ return {
461
+ data: {
462
+ index: currentIndex + 1,
463
+ overflows: allOverflows
464
+ },
465
+ reset: {
466
+ placement: nextPlacement
467
+ }
468
+ };
469
+ }
470
+
471
+ const placementsSortedByLeastOverflow = allOverflows.slice().sort((a, b) => a.overflows[0] - b.overflows[0]);
472
+ const placementThatFitsOnAllSides = (_placementsSortedByLe = placementsSortedByLeastOverflow.find(_ref => {
473
+ let {
474
+ overflows
475
+ } = _ref;
476
+ return overflows.every(overflow => overflow <= 0);
477
+ })) == null ? void 0 : _placementsSortedByLe.placement;
478
+ const resetPlacement = placementThatFitsOnAllSides != null ? placementThatFitsOnAllSides : placementsSortedByLeastOverflow[0].placement;
479
+
480
+ if (resetPlacement !== placement) {
481
+ return {
482
+ data: {
483
+ index: currentIndex + 1,
484
+ overflows: allOverflows
485
+ },
486
+ reset: {
487
+ placement: resetPlacement
488
+ }
489
+ };
490
+ }
491
+
492
+ return {};
493
+ }
494
+
495
+ };
496
+ };
497
+
498
+ function getExpandedPlacements(placement) {
499
+ const oppositePlacement = getOppositePlacement(placement);
500
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
501
+ }
502
+
503
+ /**
504
+ * Changes the placement of the floating element to one that will fit if the
505
+ * initially specified `placement` does not.
506
+ * @see https://floating-ui.com/docs/flip
507
+ */
508
+ const flip = function (options) {
509
+ if (options === void 0) {
510
+ options = {};
511
+ }
512
+
513
+ return {
514
+ name: 'flip',
515
+ options,
516
+
517
+ async fn(middlewareArguments) {
518
+ var _middlewareData$flip;
519
+
520
+ const {
521
+ placement,
522
+ middlewareData,
523
+ rects,
524
+ initialPlacement,
525
+ platform,
526
+ elements
527
+ } = middlewareArguments;
528
+ const {
529
+ mainAxis: checkMainAxis = true,
530
+ crossAxis: checkCrossAxis = true,
531
+ fallbackPlacements: specifiedFallbackPlacements,
532
+ fallbackStrategy = 'bestFit',
533
+ flipAlignment = true,
534
+ ...detectOverflowOptions
535
+ } = options;
536
+ const side = getSide(placement);
537
+ const isBasePlacement = side === initialPlacement;
538
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
539
+ const placements = [initialPlacement, ...fallbackPlacements];
540
+ const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
541
+ const overflows = [];
542
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
543
+
544
+ if (checkMainAxis) {
545
+ overflows.push(overflow[side]);
546
+ }
547
+
548
+ if (checkCrossAxis) {
549
+ const {
550
+ main,
551
+ cross
552
+ } = getAlignmentSides(placement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
553
+ overflows.push(overflow[main], overflow[cross]);
554
+ }
555
+
556
+ overflowsData = [...overflowsData, {
557
+ placement,
558
+ overflows
559
+ }]; // One or more sides is overflowing
560
+
561
+ if (!overflows.every(side => side <= 0)) {
562
+ var _middlewareData$flip$, _middlewareData$flip2;
563
+
564
+ const nextIndex = ((_middlewareData$flip$ = (_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) != null ? _middlewareData$flip$ : 0) + 1;
565
+ const nextPlacement = placements[nextIndex];
566
+
567
+ if (nextPlacement) {
568
+ // Try next placement and re-run the lifecycle
569
+ return {
570
+ data: {
571
+ index: nextIndex,
572
+ overflows: overflowsData
573
+ },
574
+ reset: {
575
+ placement: nextPlacement
576
+ }
577
+ };
578
+ }
579
+
580
+ let resetPlacement = 'bottom';
581
+
582
+ switch (fallbackStrategy) {
583
+ case 'bestFit':
584
+ {
585
+ var _overflowsData$map$so;
586
+
587
+ const placement = (_overflowsData$map$so = overflowsData.map(d => [d, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0].placement;
588
+
589
+ if (placement) {
590
+ resetPlacement = placement;
591
+ }
592
+
593
+ break;
594
+ }
595
+
596
+ case 'initialPlacement':
597
+ resetPlacement = initialPlacement;
598
+ break;
599
+ }
600
+
601
+ if (placement !== resetPlacement) {
602
+ return {
603
+ reset: {
604
+ placement: resetPlacement
605
+ }
606
+ };
607
+ }
608
+ }
609
+
610
+ return {};
611
+ }
612
+
613
+ };
614
+ };
615
+
616
+ function getSideOffsets(overflow, rect) {
617
+ return {
618
+ top: overflow.top - rect.height,
619
+ right: overflow.right - rect.width,
620
+ bottom: overflow.bottom - rect.height,
621
+ left: overflow.left - rect.width
622
+ };
623
+ }
624
+
625
+ function isAnySideFullyClipped(overflow) {
626
+ return sides.some(side => overflow[side] >= 0);
627
+ }
628
+
629
+ /**
630
+ * Provides data to hide the floating element in applicable situations, such as
631
+ * when it is not in the same clipping context as the reference element.
632
+ * @see https://floating-ui.com/docs/hide
633
+ */
634
+ const hide = function (_temp) {
635
+ let {
636
+ strategy = 'referenceHidden',
637
+ ...detectOverflowOptions
638
+ } = _temp === void 0 ? {} : _temp;
639
+ return {
640
+ name: 'hide',
641
+
642
+ async fn(middlewareArguments) {
643
+ const {
644
+ rects
645
+ } = middlewareArguments;
646
+
647
+ switch (strategy) {
648
+ case 'referenceHidden':
649
+ {
650
+ const overflow = await detectOverflow(middlewareArguments, { ...detectOverflowOptions,
651
+ elementContext: 'reference'
652
+ });
653
+ const offsets = getSideOffsets(overflow, rects.reference);
654
+ return {
655
+ data: {
656
+ referenceHiddenOffsets: offsets,
657
+ referenceHidden: isAnySideFullyClipped(offsets)
658
+ }
659
+ };
660
+ }
661
+
662
+ case 'escaped':
663
+ {
664
+ const overflow = await detectOverflow(middlewareArguments, { ...detectOverflowOptions,
665
+ altBoundary: true
666
+ });
667
+ const offsets = getSideOffsets(overflow, rects.floating);
668
+ return {
669
+ data: {
670
+ escapedOffsets: offsets,
671
+ escaped: isAnySideFullyClipped(offsets)
672
+ }
673
+ };
674
+ }
675
+
676
+ default:
677
+ {
678
+ return {};
679
+ }
680
+ }
681
+ }
682
+
683
+ };
684
+ };
685
+
686
+ async function convertValueToCoords(middlewareArguments, value) {
687
+ const {
688
+ placement,
689
+ platform,
690
+ elements
691
+ } = middlewareArguments;
692
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
693
+ const side = getSide(placement);
694
+ const alignment = getAlignment(placement);
695
+ const isVertical = getMainAxisFromPlacement(placement) === 'x';
696
+ const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
697
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
698
+ const rawValue = typeof value === 'function' ? value(middlewareArguments) : value; // eslint-disable-next-line prefer-const
699
+
700
+ let {
701
+ mainAxis,
702
+ crossAxis,
703
+ alignmentAxis
704
+ } = typeof rawValue === 'number' ? {
705
+ mainAxis: rawValue,
706
+ crossAxis: 0,
707
+ alignmentAxis: null
708
+ } : {
709
+ mainAxis: 0,
710
+ crossAxis: 0,
711
+ alignmentAxis: null,
712
+ ...rawValue
713
+ };
714
+
715
+ if (alignment && typeof alignmentAxis === 'number') {
716
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
717
+ }
718
+
719
+ return isVertical ? {
720
+ x: crossAxis * crossAxisMulti,
721
+ y: mainAxis * mainAxisMulti
722
+ } : {
723
+ x: mainAxis * mainAxisMulti,
724
+ y: crossAxis * crossAxisMulti
725
+ };
726
+ }
727
+ /**
728
+ * Displaces the floating element from its reference element.
729
+ * @see https://floating-ui.com/docs/offset
730
+ */
731
+
732
+ const offset = function (value) {
733
+ if (value === void 0) {
734
+ value = 0;
735
+ }
736
+
737
+ return {
738
+ name: 'offset',
739
+ options: value,
740
+
741
+ async fn(middlewareArguments) {
742
+ const {
743
+ x,
744
+ y
745
+ } = middlewareArguments;
746
+ const diffCoords = await convertValueToCoords(middlewareArguments, value);
747
+ return {
748
+ x: x + diffCoords.x,
749
+ y: y + diffCoords.y,
750
+ data: diffCoords
751
+ };
752
+ }
753
+
754
+ };
755
+ };
756
+
757
+ function getCrossAxis(axis) {
758
+ return axis === 'x' ? 'y' : 'x';
759
+ }
760
+
761
+ /**
762
+ * Shifts the floating element in order to keep it in view when it will overflow
763
+ * a clipping boundary.
764
+ * @see https://floating-ui.com/docs/shift
765
+ */
766
+ const shift = function (options) {
767
+ if (options === void 0) {
768
+ options = {};
769
+ }
770
+
771
+ return {
772
+ name: 'shift',
773
+ options,
774
+
775
+ async fn(middlewareArguments) {
776
+ const {
777
+ x,
778
+ y,
779
+ placement
780
+ } = middlewareArguments;
781
+ const {
782
+ mainAxis: checkMainAxis = true,
783
+ crossAxis: checkCrossAxis = false,
784
+ limiter = {
785
+ fn: _ref => {
786
+ let {
787
+ x,
788
+ y
789
+ } = _ref;
790
+ return {
791
+ x,
792
+ y
793
+ };
794
+ }
795
+ },
796
+ ...detectOverflowOptions
797
+ } = options;
798
+ const coords = {
799
+ x,
800
+ y
801
+ };
802
+ const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
803
+ const mainAxis = getMainAxisFromPlacement(getSide(placement));
804
+ const crossAxis = getCrossAxis(mainAxis);
805
+ let mainAxisCoord = coords[mainAxis];
806
+ let crossAxisCoord = coords[crossAxis];
807
+
808
+ if (checkMainAxis) {
809
+ const minSide = mainAxis === 'y' ? 'top' : 'left';
810
+ const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
811
+ const min = mainAxisCoord + overflow[minSide];
812
+ const max = mainAxisCoord - overflow[maxSide];
813
+ mainAxisCoord = within(min, mainAxisCoord, max);
814
+ }
815
+
816
+ if (checkCrossAxis) {
817
+ const minSide = crossAxis === 'y' ? 'top' : 'left';
818
+ const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
819
+ const min = crossAxisCoord + overflow[minSide];
820
+ const max = crossAxisCoord - overflow[maxSide];
821
+ crossAxisCoord = within(min, crossAxisCoord, max);
822
+ }
823
+
824
+ const limitedCoords = limiter.fn({ ...middlewareArguments,
825
+ [mainAxis]: mainAxisCoord,
826
+ [crossAxis]: crossAxisCoord
827
+ });
828
+ return { ...limitedCoords,
829
+ data: {
830
+ x: limitedCoords.x - x,
831
+ y: limitedCoords.y - y
832
+ }
833
+ };
834
+ }
835
+
836
+ };
837
+ };
838
+
839
+ function isWindow(value) {
840
+ return value && value.document && value.location && value.alert && value.setInterval;
841
+ }
842
+ function getWindow(node) {
843
+ if (node == null) {
844
+ return window;
845
+ }
846
+
847
+ if (!isWindow(node)) {
848
+ const ownerDocument = node.ownerDocument;
849
+ return ownerDocument ? ownerDocument.defaultView || window : window;
850
+ }
851
+
852
+ return node;
853
+ }
854
+
855
+ function getComputedStyle$1(element) {
856
+ return getWindow(element).getComputedStyle(element);
857
+ }
858
+
859
+ function getNodeName(node) {
860
+ return isWindow(node) ? '' : node ? (node.nodeName || '').toLowerCase() : '';
861
+ }
862
+
863
+ function getUAString() {
864
+ const uaData = navigator.userAgentData;
865
+
866
+ if (uaData != null && uaData.brands) {
867
+ return uaData.brands.map(item => item.brand + "/" + item.version).join(' ');
868
+ }
869
+
870
+ return navigator.userAgent;
871
+ }
872
+
873
+ function isHTMLElement(value) {
874
+ return value instanceof getWindow(value).HTMLElement;
875
+ }
876
+ function isElement(value) {
877
+ return value instanceof getWindow(value).Element;
878
+ }
879
+ function isNode(value) {
880
+ return value instanceof getWindow(value).Node;
881
+ }
882
+ function isShadowRoot(node) {
883
+ // Browsers without `ShadowRoot` support
884
+ if (typeof ShadowRoot === 'undefined') {
885
+ return false;
886
+ }
887
+
888
+ const OwnElement = getWindow(node).ShadowRoot;
889
+ return node instanceof OwnElement || node instanceof ShadowRoot;
890
+ }
891
+ function isOverflowElement(element) {
892
+ // Firefox wants us to check `-x` and `-y` variations as well
893
+ const {
894
+ overflow,
895
+ overflowX,
896
+ overflowY
897
+ } = getComputedStyle$1(element);
898
+ return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
899
+ }
900
+ function isTableElement(element) {
901
+ return ['table', 'td', 'th'].includes(getNodeName(element));
902
+ }
903
+ function isContainingBlock(element) {
904
+ // TODO: Try and use feature detection here instead
905
+ const isFirefox = /firefox/i.test(getUAString());
906
+ const css = getComputedStyle$1(element); // This is non-exhaustive but covers the most common CSS properties that
907
+ // create a containing block.
908
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
909
+
910
+ return css.transform !== 'none' || css.perspective !== 'none' || // @ts-ignore (TS 4.1 compat)
911
+ css.contain === 'paint' || ['transform', 'perspective'].includes(css.willChange) || isFirefox && css.willChange === 'filter' || isFirefox && (css.filter ? css.filter !== 'none' : false);
912
+ }
913
+ function isLayoutViewport() {
914
+ // Not Safari
915
+ return !/^((?!chrome|android).)*safari/i.test(getUAString()); // Feature detection for this fails in various ways
916
+ // • Always-visible scrollbar or not
917
+ // • Width of <html>, etc.
918
+ // const vV = win.visualViewport;
919
+ // return vV ? Math.abs(win.innerWidth / vV.scale - vV.width) < 0.5 : true;
920
+ }
921
+
922
+ const min = Math.min;
923
+ const max = Math.max;
924
+ const round = Math.round;
925
+
926
+ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
927
+ var _win$visualViewport$o, _win$visualViewport, _win$visualViewport$o2, _win$visualViewport2;
928
+
929
+ if (includeScale === void 0) {
930
+ includeScale = false;
931
+ }
932
+
933
+ if (isFixedStrategy === void 0) {
934
+ isFixedStrategy = false;
935
+ }
936
+
937
+ const clientRect = element.getBoundingClientRect();
938
+ let scaleX = 1;
939
+ let scaleY = 1;
940
+
941
+ if (includeScale && isHTMLElement(element)) {
942
+ scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
943
+ scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
944
+ }
945
+
946
+ const win = isElement(element) ? getWindow(element) : window;
947
+ const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
948
+ const x = (clientRect.left + (addVisualOffsets ? (_win$visualViewport$o = (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null ? _win$visualViewport$o : 0 : 0)) / scaleX;
949
+ const y = (clientRect.top + (addVisualOffsets ? (_win$visualViewport$o2 = (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null ? _win$visualViewport$o2 : 0 : 0)) / scaleY;
950
+ const width = clientRect.width / scaleX;
951
+ const height = clientRect.height / scaleY;
952
+ return {
953
+ width,
954
+ height,
955
+ top: y,
956
+ right: x + width,
957
+ bottom: y + height,
958
+ left: x,
959
+ x,
960
+ y
961
+ };
962
+ }
963
+
964
+ function getDocumentElement(node) {
965
+ return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
966
+ }
967
+
968
+ function getNodeScroll(element) {
969
+ if (isElement(element)) {
970
+ return {
971
+ scrollLeft: element.scrollLeft,
972
+ scrollTop: element.scrollTop
973
+ };
974
+ }
975
+
976
+ return {
977
+ scrollLeft: element.pageXOffset,
978
+ scrollTop: element.pageYOffset
979
+ };
980
+ }
981
+
982
+ function getWindowScrollBarX(element) {
983
+ // If <html> has a CSS width greater than the viewport, then this will be
984
+ // incorrect for RTL.
985
+ return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
986
+ }
987
+
988
+ function isScaled(element) {
989
+ const rect = getBoundingClientRect(element);
990
+ return round(rect.width) !== element.offsetWidth || round(rect.height) !== element.offsetHeight;
991
+ }
992
+
993
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
994
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
995
+ const documentElement = getDocumentElement(offsetParent);
996
+ const rect = getBoundingClientRect(element, // @ts-ignore - checked above (TS 4.1 compat)
997
+ isOffsetParentAnElement && isScaled(offsetParent), strategy === 'fixed');
998
+ let scroll = {
999
+ scrollLeft: 0,
1000
+ scrollTop: 0
1001
+ };
1002
+ const offsets = {
1003
+ x: 0,
1004
+ y: 0
1005
+ };
1006
+
1007
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
1008
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1009
+ scroll = getNodeScroll(offsetParent);
1010
+ }
1011
+
1012
+ if (isHTMLElement(offsetParent)) {
1013
+ const offsetRect = getBoundingClientRect(offsetParent, true);
1014
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1015
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1016
+ } else if (documentElement) {
1017
+ offsets.x = getWindowScrollBarX(documentElement);
1018
+ }
1019
+ }
1020
+
1021
+ return {
1022
+ x: rect.left + scroll.scrollLeft - offsets.x,
1023
+ y: rect.top + scroll.scrollTop - offsets.y,
1024
+ width: rect.width,
1025
+ height: rect.height
1026
+ };
1027
+ }
1028
+
1029
+ function getParentNode(node) {
1030
+ if (getNodeName(node) === 'html') {
1031
+ return node;
1032
+ }
1033
+
1034
+ return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
1035
+ // @ts-ignore
1036
+ node.assignedSlot || // step into the shadow DOM of the parent of a slotted node
1037
+ node.parentNode || ( // DOM Element detected
1038
+ isShadowRoot(node) ? node.host : null) || // ShadowRoot detected
1039
+ getDocumentElement(node) // fallback
1040
+
1041
+ );
1042
+ }
1043
+
1044
+ function getTrueOffsetParent(element) {
1045
+ if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
1046
+ return null;
1047
+ }
1048
+
1049
+ return element.offsetParent;
1050
+ }
1051
+
1052
+ function getContainingBlock(element) {
1053
+ let currentNode = getParentNode(element);
1054
+
1055
+ if (isShadowRoot(currentNode)) {
1056
+ currentNode = currentNode.host;
1057
+ }
1058
+
1059
+ while (isHTMLElement(currentNode) && !['html', 'body'].includes(getNodeName(currentNode))) {
1060
+ if (isContainingBlock(currentNode)) {
1061
+ return currentNode;
1062
+ } else {
1063
+ currentNode = currentNode.parentNode;
1064
+ }
1065
+ }
1066
+
1067
+ return null;
1068
+ } // Gets the closest ancestor positioned element. Handles some edge cases,
1069
+ // such as table ancestors and cross browser bugs.
1070
+
1071
+
1072
+ function getOffsetParent(element) {
1073
+ const window = getWindow(element);
1074
+ let offsetParent = getTrueOffsetParent(element);
1075
+
1076
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
1077
+ offsetParent = getTrueOffsetParent(offsetParent);
1078
+ }
1079
+
1080
+ if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
1081
+ return window;
1082
+ }
1083
+
1084
+ return offsetParent || getContainingBlock(element) || window;
1085
+ }
1086
+
1087
+ function getDimensions(element) {
1088
+ if (isHTMLElement(element)) {
1089
+ return {
1090
+ width: element.offsetWidth,
1091
+ height: element.offsetHeight
1092
+ };
1093
+ }
1094
+
1095
+ const rect = getBoundingClientRect(element);
1096
+ return {
1097
+ width: rect.width,
1098
+ height: rect.height
1099
+ };
1100
+ }
1101
+
1102
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
1103
+ let {
1104
+ rect,
1105
+ offsetParent,
1106
+ strategy
1107
+ } = _ref;
1108
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
1109
+ const documentElement = getDocumentElement(offsetParent);
1110
+
1111
+ if (offsetParent === documentElement) {
1112
+ return rect;
1113
+ }
1114
+
1115
+ let scroll = {
1116
+ scrollLeft: 0,
1117
+ scrollTop: 0
1118
+ };
1119
+ const offsets = {
1120
+ x: 0,
1121
+ y: 0
1122
+ };
1123
+
1124
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
1125
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1126
+ scroll = getNodeScroll(offsetParent);
1127
+ }
1128
+
1129
+ if (isHTMLElement(offsetParent)) {
1130
+ const offsetRect = getBoundingClientRect(offsetParent, true);
1131
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1132
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1133
+ } // This doesn't appear to be need to be negated.
1134
+ // else if (documentElement) {
1135
+ // offsets.x = getWindowScrollBarX(documentElement);
1136
+ // }
1137
+
1138
+ }
1139
+
1140
+ return { ...rect,
1141
+ x: rect.x - scroll.scrollLeft + offsets.x,
1142
+ y: rect.y - scroll.scrollTop + offsets.y
1143
+ };
1144
+ }
1145
+
1146
+ function getViewportRect(element, strategy) {
1147
+ const win = getWindow(element);
1148
+ const html = getDocumentElement(element);
1149
+ const visualViewport = win.visualViewport;
1150
+ let width = html.clientWidth;
1151
+ let height = html.clientHeight;
1152
+ let x = 0;
1153
+ let y = 0;
1154
+
1155
+ if (visualViewport) {
1156
+ width = visualViewport.width;
1157
+ height = visualViewport.height;
1158
+ const layoutViewport = isLayoutViewport();
1159
+
1160
+ if (layoutViewport || !layoutViewport && strategy === 'fixed') {
1161
+ x = visualViewport.offsetLeft;
1162
+ y = visualViewport.offsetTop;
1163
+ }
1164
+ }
1165
+
1166
+ return {
1167
+ width,
1168
+ height,
1169
+ x,
1170
+ y
1171
+ };
1172
+ }
1173
+
1174
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable
1175
+
1176
+ function getDocumentRect(element) {
1177
+ var _element$ownerDocumen;
1178
+
1179
+ const html = getDocumentElement(element);
1180
+ const scroll = getNodeScroll(element);
1181
+ const body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
1182
+ const width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
1183
+ const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
1184
+ let x = -scroll.scrollLeft + getWindowScrollBarX(element);
1185
+ const y = -scroll.scrollTop;
1186
+
1187
+ if (getComputedStyle$1(body || html).direction === 'rtl') {
1188
+ x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
1189
+ }
1190
+
1191
+ return {
1192
+ width,
1193
+ height,
1194
+ x,
1195
+ y
1196
+ };
1197
+ }
1198
+
1199
+ function getNearestOverflowAncestor(node) {
1200
+ const parentNode = getParentNode(node);
1201
+
1202
+ if (['html', 'body', '#document'].includes(getNodeName(parentNode))) {
1203
+ // @ts-ignore assume body is always available
1204
+ return node.ownerDocument.body;
1205
+ }
1206
+
1207
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
1208
+ return parentNode;
1209
+ }
1210
+
1211
+ return getNearestOverflowAncestor(parentNode);
1212
+ }
1213
+
1214
+ function getOverflowAncestors(node, list) {
1215
+ var _node$ownerDocument;
1216
+
1217
+ if (list === void 0) {
1218
+ list = [];
1219
+ }
1220
+
1221
+ const scrollableAncestor = getNearestOverflowAncestor(node);
1222
+ const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
1223
+ const win = getWindow(scrollableAncestor);
1224
+ const target = isBody ? [win].concat(win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []) : scrollableAncestor;
1225
+ const updatedList = list.concat(target);
1226
+ return isBody ? updatedList : // @ts-ignore: isBody tells us target will be an HTMLElement here
1227
+ updatedList.concat(getOverflowAncestors(target));
1228
+ }
1229
+
1230
+ function contains(parent, child) {
1231
+ const rootNode = child.getRootNode == null ? void 0 : child.getRootNode(); // First, attempt with faster native method
1232
+
1233
+ if (parent.contains(child)) {
1234
+ return true;
1235
+ } // then fallback to custom implementation with Shadow DOM support
1236
+ else if (rootNode && isShadowRoot(rootNode)) {
1237
+ let next = child;
1238
+
1239
+ do {
1240
+ // use `===` replace node.isSameNode()
1241
+ if (next && parent === next) {
1242
+ return true;
1243
+ } // @ts-ignore: need a better way to handle this...
1244
+
1245
+
1246
+ next = next.parentNode || next.host;
1247
+ } while (next);
1248
+ }
1249
+
1250
+ return false;
1251
+ }
1252
+
1253
+ function getInnerBoundingClientRect(element, strategy) {
1254
+ const clientRect = getBoundingClientRect(element, false, strategy === 'fixed');
1255
+ const top = clientRect.top + element.clientTop;
1256
+ const left = clientRect.left + element.clientLeft;
1257
+ return {
1258
+ top,
1259
+ left,
1260
+ x: left,
1261
+ y: top,
1262
+ right: left + element.clientWidth,
1263
+ bottom: top + element.clientHeight,
1264
+ width: element.clientWidth,
1265
+ height: element.clientHeight
1266
+ };
1267
+ }
1268
+
1269
+ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
1270
+ if (clippingParent === 'viewport') {
1271
+ return rectToClientRect(getViewportRect(element, strategy));
1272
+ }
1273
+
1274
+ if (isElement(clippingParent)) {
1275
+ return getInnerBoundingClientRect(clippingParent, strategy);
1276
+ }
1277
+
1278
+ return rectToClientRect(getDocumentRect(getDocumentElement(element)));
1279
+ } // A "clipping ancestor" is an overflowable container with the characteristic of
1280
+ // clipping (or hiding) overflowing elements with a position different from
1281
+ // `initial`
1282
+
1283
+
1284
+ function getClippingAncestors(element) {
1285
+ const clippingAncestors = getOverflowAncestors(element);
1286
+ const canEscapeClipping = ['absolute', 'fixed'].includes(getComputedStyle$1(element).position);
1287
+ const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
1288
+
1289
+ if (!isElement(clipperElement)) {
1290
+ return [];
1291
+ } // @ts-ignore isElement check ensures we return Array<Element>
1292
+
1293
+
1294
+ return clippingAncestors.filter(clippingAncestors => isElement(clippingAncestors) && contains(clippingAncestors, clipperElement) && getNodeName(clippingAncestors) !== 'body');
1295
+ } // Gets the maximum area that the element is visible in due to any number of
1296
+ // clipping ancestors
1297
+
1298
+
1299
+ function getClippingRect(_ref) {
1300
+ let {
1301
+ element,
1302
+ boundary,
1303
+ rootBoundary,
1304
+ strategy
1305
+ } = _ref;
1306
+ const mainClippingAncestors = boundary === 'clippingAncestors' ? getClippingAncestors(element) : [].concat(boundary);
1307
+ const clippingAncestors = [...mainClippingAncestors, rootBoundary];
1308
+ const firstClippingAncestor = clippingAncestors[0];
1309
+ const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
1310
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
1311
+ accRect.top = max(rect.top, accRect.top);
1312
+ accRect.right = min(rect.right, accRect.right);
1313
+ accRect.bottom = min(rect.bottom, accRect.bottom);
1314
+ accRect.left = max(rect.left, accRect.left);
1315
+ return accRect;
1316
+ }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
1317
+ return {
1318
+ width: clippingRect.right - clippingRect.left,
1319
+ height: clippingRect.bottom - clippingRect.top,
1320
+ x: clippingRect.left,
1321
+ y: clippingRect.top
1322
+ };
1323
+ }
1324
+
1325
+ const platform = {
1326
+ getClippingRect,
1327
+ convertOffsetParentRelativeRectToViewportRelativeRect,
1328
+ isElement,
1329
+ getDimensions,
1330
+ getOffsetParent,
1331
+ getDocumentElement,
1332
+ getElementRects: _ref => {
1333
+ let {
1334
+ reference,
1335
+ floating,
1336
+ strategy
1337
+ } = _ref;
1338
+ return {
1339
+ reference: getRectRelativeToOffsetParent(reference, getOffsetParent(floating), strategy),
1340
+ floating: { ...getDimensions(floating),
1341
+ x: 0,
1342
+ y: 0
1343
+ }
1344
+ };
1345
+ },
1346
+ getClientRects: element => Array.from(element.getClientRects()),
1347
+ isRTL: element => getComputedStyle$1(element).direction === 'rtl'
1348
+ };
1349
+
1350
+ /**
1351
+ * Automatically updates the position of the floating element when necessary.
1352
+ * @see https://floating-ui.com/docs/autoUpdate
1353
+ */
1354
+ function autoUpdate(reference, floating, update, options) {
1355
+ if (options === void 0) {
1356
+ options = {};
1357
+ }
1358
+
1359
+ const {
1360
+ ancestorScroll: _ancestorScroll = true,
1361
+ ancestorResize: _ancestorResize = true,
1362
+ elementResize = true,
1363
+ animationFrame = false
1364
+ } = options;
1365
+ const ancestorScroll = _ancestorScroll && !animationFrame;
1366
+ const ancestorResize = _ancestorResize && !animationFrame;
1367
+ const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : []), ...getOverflowAncestors(floating)] : [];
1368
+ ancestors.forEach(ancestor => {
1369
+ ancestorScroll && ancestor.addEventListener('scroll', update, {
1370
+ passive: true
1371
+ });
1372
+ ancestorResize && ancestor.addEventListener('resize', update);
1373
+ });
1374
+ let observer = null;
1375
+
1376
+ if (elementResize) {
1377
+ let initialUpdate = true;
1378
+ observer = new ResizeObserver(() => {
1379
+ if (!initialUpdate) {
1380
+ update();
1381
+ }
1382
+
1383
+ initialUpdate = false;
1384
+ });
1385
+ isElement(reference) && !animationFrame && observer.observe(reference);
1386
+ observer.observe(floating);
1387
+ }
1388
+
1389
+ let frameId;
1390
+ let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
1391
+
1392
+ if (animationFrame) {
1393
+ frameLoop();
1394
+ }
1395
+
1396
+ function frameLoop() {
1397
+ const nextRefRect = getBoundingClientRect(reference);
1398
+
1399
+ if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
1400
+ update();
1401
+ }
1402
+
1403
+ prevRefRect = nextRefRect;
1404
+ frameId = requestAnimationFrame(frameLoop);
1405
+ }
1406
+
1407
+ update();
1408
+ return () => {
1409
+ var _observer;
1410
+
1411
+ ancestors.forEach(ancestor => {
1412
+ ancestorScroll && ancestor.removeEventListener('scroll', update);
1413
+ ancestorResize && ancestor.removeEventListener('resize', update);
1414
+ });
1415
+ (_observer = observer) == null ? void 0 : _observer.disconnect();
1416
+ observer = null;
1417
+
1418
+ if (animationFrame) {
1419
+ cancelAnimationFrame(frameId);
1420
+ }
1421
+ };
1422
+ }
1423
+
1424
+ /**
1425
+ * Computes the `x` and `y` coordinates that will place the floating element
1426
+ * next to a reference element when it is given a certain CSS positioning
1427
+ * strategy.
1428
+ */
1429
+
1430
+ const computePosition = (reference, floating, options) => computePosition$1(reference, floating, {
1431
+ platform,
1432
+ ...options
1433
+ });
1434
+
1435
+ const effectivePlacements = [
1436
+ "top",
1437
+ "bottom",
1438
+ "right",
1439
+ "left",
1440
+ "top-start",
1441
+ "top-end",
1442
+ "bottom-start",
1443
+ "bottom-end",
1444
+ "right-start",
1445
+ "right-end",
1446
+ "left-start",
1447
+ "left-end"
1448
+ ];
1449
+ const defaultMenuPlacement = "bottom-start";
1450
+ const FloatingCSS = {
1451
+ animation: "calcite-floating-ui-anim",
1452
+ animationActive: "calcite-floating-ui-anim--active"
1453
+ };
1454
+ function getMiddleware({ placement, disableFlip, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type }) {
1455
+ const defaultMiddleware = [shift(), hide()];
1456
+ if (type === "menu") {
1457
+ return [
1458
+ ...defaultMiddleware,
1459
+ flip({ fallbackPlacements: ["top-start", "top", "top-end", "bottom-start", "bottom", "bottom-end"] })
1460
+ ];
1461
+ }
1462
+ if (type === "popover" || type === "tooltip") {
1463
+ const middleware = [
1464
+ ...defaultMiddleware,
1465
+ offset({
1466
+ mainAxis: typeof offsetDistance === "number" ? offsetDistance : 0,
1467
+ crossAxis: typeof offsetSkidding === "number" ? offsetSkidding : 0
1468
+ })
1469
+ ];
1470
+ if (placement === "auto" || placement === "auto-start" || placement === "auto-end") {
1471
+ middleware.push(autoPlacement({ alignment: placement === "auto-start" ? "start" : placement === "auto-end" ? "end" : null }));
1472
+ }
1473
+ else if (!disableFlip) {
1474
+ middleware.push(flip(flipPlacements ? { fallbackPlacements: flipPlacements } : {}));
1475
+ }
1476
+ if (arrowEl) {
1477
+ middleware.push(arrow({
1478
+ element: arrowEl
1479
+ }));
1480
+ }
1481
+ return middleware;
1482
+ }
1483
+ return [];
1484
+ }
1485
+ function filterComputedPlacements(placements, el) {
1486
+ const filteredPlacements = placements.filter((placement) => effectivePlacements.includes(placement));
1487
+ if (filteredPlacements.length !== placements.length) {
1488
+ console.warn(`${el.tagName}: Invalid value found in: flipPlacements. Try any of these: ${effectivePlacements
1489
+ .map((placement) => `"${placement}"`)
1490
+ .join(", ")
1491
+ .trim()}`, { el });
1492
+ }
1493
+ return filteredPlacements;
1494
+ }
1495
+ /*
1496
+ In floating-ui, "*-start" and "*-end" are already flipped in RTL.
1497
+ There is no need for our "*-leading" and "*-trailing" values anymore.
1498
+ https://github.com/floating-ui/floating-ui/issues/1530
1499
+ https://github.com/floating-ui/floating-ui/issues/1563
1500
+ */
1501
+ function getEffectivePlacement(floatingEl, placement) {
1502
+ const placements = ["left", "right"];
1503
+ if (getElementDir(floatingEl) === "rtl") {
1504
+ placements.reverse();
1505
+ }
1506
+ return placement
1507
+ .replace(/-leading/gi, "-start")
1508
+ .replace(/-trailing/gi, "-end")
1509
+ .replace(/leading/gi, placements[0])
1510
+ .replace(/trailing/gi, placements[1]);
1511
+ }
1512
+ /**
1513
+ * Positions the floating element relative to the reference element.
1514
+ *
1515
+ * @param root0
1516
+ * @param root0.referenceEl
1517
+ * @param root0.floatingEl
1518
+ * @param root0.overlayPositioning
1519
+ * @param root0.placement
1520
+ * @param root0.disableFlip
1521
+ * @param root0.flipPlacements
1522
+ * @param root0.offsetDistance
1523
+ * @param root0.offsetSkidding
1524
+ * @param root0.arrowEl
1525
+ * @param root0.type
1526
+ */
1527
+ async function positionFloatingUI({ referenceEl, floatingEl, overlayPositioning = "absolute", placement, disableFlip, flipPlacements, offsetDistance, offsetSkidding, arrowEl, type }) {
1528
+ var _a;
1529
+ if (!referenceEl || !floatingEl) {
1530
+ return null;
1531
+ }
1532
+ const { x, y, placement: effectivePlacement, strategy: position, middlewareData } = await computePosition(referenceEl, floatingEl, {
1533
+ strategy: overlayPositioning,
1534
+ placement: placement === "auto" || placement === "auto-start" || placement === "auto-end"
1535
+ ? undefined
1536
+ : getEffectivePlacement(floatingEl, placement),
1537
+ middleware: getMiddleware({
1538
+ placement,
1539
+ disableFlip,
1540
+ flipPlacements,
1541
+ offsetDistance,
1542
+ offsetSkidding,
1543
+ arrowEl,
1544
+ type
1545
+ })
1546
+ });
1547
+ if (middlewareData === null || middlewareData === void 0 ? void 0 : middlewareData.arrow) {
1548
+ const { x: arrowX, y: arrowY } = middlewareData.arrow;
1549
+ Object.assign(arrowEl.style, {
1550
+ left: arrowX != null ? `${arrowX}px` : "",
1551
+ top: arrowY != null ? `${arrowY}px` : ""
1552
+ });
1553
+ }
1554
+ const referenceHidden = (_a = middlewareData === null || middlewareData === void 0 ? void 0 : middlewareData.hide) === null || _a === void 0 ? void 0 : _a.referenceHidden;
1555
+ const visibility = referenceHidden ? "hidden" : null;
1556
+ const pointerEvents = visibility ? "none" : null;
1557
+ floatingEl.setAttribute("data-placement", effectivePlacement);
1558
+ const transform = `translate(${Math.round(x)}px,${Math.round(y)}px)`;
1559
+ Object.assign(floatingEl.style, {
1560
+ visibility,
1561
+ pointerEvents,
1562
+ position,
1563
+ top: "0",
1564
+ left: "0",
1565
+ transform
1566
+ });
1567
+ }
1568
+ const cleanupMap = new WeakMap();
1569
+ /**
1570
+ * Helper to set up floating element interactions on connectedCallback.
1571
+ *
1572
+ * @param component
1573
+ * @param referenceEl
1574
+ * @param floatingEl
1575
+ */
1576
+ function connectFloatingUI(component, referenceEl, floatingEl) {
1577
+ if (!floatingEl || !referenceEl) {
1578
+ return;
1579
+ }
1580
+ disconnectFloatingUI(component, referenceEl, floatingEl);
1581
+ cleanupMap.set(component, autoUpdate(referenceEl, floatingEl, () => {
1582
+ if (component.open) {
1583
+ component.reposition();
1584
+ }
1585
+ }));
1586
+ }
1587
+ /**
1588
+ * Helper to tear down floating element interactions on disconnectedCallback.
1589
+ *
1590
+ * @param component
1591
+ * @param referenceEl
1592
+ * @param floatingEl
1593
+ */
1594
+ function disconnectFloatingUI(component, referenceEl, floatingEl) {
1595
+ if (!floatingEl || !referenceEl) {
1596
+ return;
1597
+ }
1598
+ const cleanup = cleanupMap.get(component);
1599
+ if (cleanup) {
1600
+ cleanup();
1601
+ }
1602
+ cleanupMap.delete(component);
1603
+ }
1604
+ const visiblePointerSize = 4;
1605
+ /**
1606
+ * Default offset the position of the floating element away from the reference element.
1607
+ *
1608
+ * @default 6
1609
+ */
1610
+ const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePointerSize));
1611
+
1612
+ export { FloatingCSS as F, disconnectFloatingUI as a, defaultOffsetDistance as b, connectFloatingUI as c, defaultMenuPlacement as d, filterComputedPlacements as f, positionFloatingUI as p };