@esri/calcite-components 1.0.0-beta.86 → 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 (1061) 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-0296d6e5.js +6 -0
  9. package/dist/calcite/{p-17bb1d46.system.js → p-031fe642.system.js} +1 -1
  10. package/dist/calcite/{p-8d7bcbbe.system.js → p-09d4e789.system.js} +1 -1
  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-9191aae7.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-786ca76b.system.js → p-151ef522.system.js} +1 -1
  19. package/dist/calcite/{p-078aa8cf.system.js → p-1534218b.system.js} +1 -1
  20. package/dist/calcite/p-1647d422.js +6 -0
  21. package/dist/calcite/{p-2f717afb.js → p-1774ae47.js} +2 -2
  22. package/dist/calcite/{p-b4afbab0.js → p-18679417.js} +1 -1
  23. package/dist/calcite/{p-bae5371e.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-f00b1294.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-645da33b.entry.js → p-26803235.entry.js} +2 -2
  32. package/dist/calcite/{p-9c3e33db.system.entry.js → p-271b3555.system.entry.js} +2 -2
  33. package/dist/calcite/{p-d313af3b.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-8e5b28c2.js → p-292b7dab.js} +1 -1
  37. package/dist/calcite/{p-6e59222f.entry.js → p-29610c9f.entry.js} +2 -2
  38. package/dist/calcite/p-2a7e2957.system.js +6 -0
  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-8a1593db.system.js → p-2ed8b011.system.js} +1 -1
  42. package/dist/calcite/p-325c25e7.entry.js +6 -0
  43. package/dist/calcite/{p-2ce0209d.system.js → p-34ff2c2f.system.js} +1 -1
  44. package/dist/calcite/{p-ae579245.js → p-389bfb3f.js} +2 -2
  45. package/dist/calcite/{p-1f289404.entry.js → p-39c28eb7.entry.js} +2 -2
  46. package/dist/calcite/{p-660b54aa.system.js → p-3a1beee3.system.js} +2 -2
  47. package/dist/calcite/p-3b02f6a7.entry.js +6 -0
  48. package/dist/calcite/{p-36183756.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-f1b829e3.system.entry.js → p-3daaf28f.system.entry.js} +2 -2
  51. package/dist/calcite/{p-99306484.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-741a874b.js → p-4a0d41e4.js} +1 -1
  56. package/dist/calcite/{p-bbbf6fcb.system.entry.js → p-4db1c603.system.entry.js} +2 -2
  57. package/dist/calcite/{p-283ed748.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-d713b734.system.js → p-584cb04b.system.js} +1 -1
  63. package/dist/calcite/p-58c76aff.entry.js +6 -0
  64. package/dist/calcite/{p-94e059ed.system.js → p-59574854.system.js} +2 -2
  65. package/dist/calcite/p-5b1c8598.system.entry.js +6 -0
  66. package/dist/calcite/{p-bc9c9c9b.js → p-5e5bb0fe.js} +2 -2
  67. package/dist/calcite/{p-7f519a6f.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-4f206065.system.js → p-635720f4.system.js} +2 -2
  71. package/dist/calcite/{p-aa40e505.entry.js → p-6ab55ea8.entry.js} +2 -2
  72. package/dist/calcite/{p-9d82f6ba.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-bdbeb0b8.system.js → p-8270f683.system.js} +3 -3
  79. package/dist/calcite/{p-7bdab3f4.js → p-84f563f6.js} +1 -1
  80. package/dist/calcite/{p-97fef747.system.entry.js → p-8666e681.system.entry.js} +2 -2
  81. package/dist/calcite/p-874248a5.entry.js +6 -0
  82. package/dist/calcite/{p-4a1a8fac.entry.js → p-878cfb6b.entry.js} +2 -2
  83. package/dist/calcite/{p-e6ad54a7.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-336d62ab.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-2f906310.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-4c62aae1.system.js → p-98f5945a.system.js} +2 -2
  96. package/dist/calcite/{p-72ac5927.entry.js → p-996d8919.entry.js} +2 -2
  97. package/dist/calcite/{p-64abac3a.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-4c3e960e.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-694231fe.system.js → p-a2fb1d9c.system.js} +1 -1
  106. package/dist/calcite/p-a64c38ea.system.entry.js +6 -0
  107. package/dist/calcite/{p-8e962e28.system.js → p-a65a2b93.system.js} +1 -1
  108. package/dist/calcite/{p-cfbd1180.entry.js → p-a6c2e6e3.entry.js} +2 -2
  109. package/dist/calcite/{p-52474c34.entry.js → p-a7798679.entry.js} +2 -2
  110. package/dist/calcite/{p-8f789b45.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-038a1a34.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-ba04d4a6.system.js → p-b65a82b9.system.js} +1 -1
  120. package/dist/calcite/{p-a2b65dca.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-33e02930.entry.js → p-be70e32c.entry.js} +2 -2
  124. package/dist/calcite/{p-6c4c7404.system.entry.js → p-c11c8810.system.entry.js} +2 -2
  125. package/dist/calcite/{p-e2a9bc3c.js → p-c44fe786.js} +1 -1
  126. package/dist/calcite/p-c49a8303.system.entry.js +6 -0
  127. package/dist/calcite/{p-4178c522.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-85fab359.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-ced28d9d.system.entry.js +6 -0
  133. package/dist/calcite/p-cf2ff728.system.entry.js +6 -0
  134. package/dist/calcite/{p-12bca4f1.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-f54622d6.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-29c3c079.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-a5318c00.entry.js → p-e0f3d151.entry.js} +2 -2
  147. package/dist/calcite/{p-2efde396.js → p-e2087090.js} +2 -2
  148. package/dist/calcite/{p-247f1abc.entry.js → p-e64aaaff.entry.js} +2 -2
  149. package/dist/calcite/p-e85df792.system.entry.js +6 -0
  150. package/dist/calcite/{p-2c78140e.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-c7e8f753.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-29c6691b.js → p-f4b01f6e.js} +1 -1
  159. package/dist/calcite/{p-f8798ee9.system.js → p-f5ef4bdb.system.js} +2 -2
  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-f70b3399.js → p-fcb2ff51.js} +1 -1
  169. package/dist/calcite/p-fe2ddf18.system.entry.js +6 -0
  170. package/dist/calcite/{p-da045e5a.system.js → p-fe8a9479.system.js} +2 -2
  171. package/dist/cjs/{ExpandToggle-62479ccb.js → ExpandToggle-34dbe39b.js} +5 -5
  172. package/dist/cjs/{Heading-f792c5a6.js → Heading-12d798ce.js} +2 -2
  173. package/dist/cjs/{array-b72d7dd3.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 +7 -7
  187. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +11 -11
  188. package/dist/cjs/calcite-combobox_3.cjs.entry.js +57 -82
  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 +100 -95
  199. package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
  200. package/dist/cjs/calcite-input-number.cjs.entry.js +14 -20
  201. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +18 -20
  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 +29 -10
  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 +44 -23
  212. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +14 -14
  213. package/dist/cjs/calcite-popover_2.cjs.entry.js +66 -80
  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 +13 -13
  232. package/dist/cjs/calcite.cjs.js +3 -3
  233. package/dist/cjs/{conditionalSlot-d1eb82ce.js → conditionalSlot-352bec3d.js} +3 -3
  234. package/dist/cjs/{debounce-d2139fc6.js → debounce-6cd1535e.js} +1 -1
  235. package/dist/cjs/{dom-99c1b44d.js → dom-ed822c13.js} +2 -2
  236. package/dist/cjs/floating-ui-ddaf1746.js +1620 -0
  237. package/dist/cjs/{forIn-9ac96598.js → forIn-9c2acd4a.js} +2 -2
  238. package/dist/cjs/{form-4d1ef8c2.js → form-e3be7149.js} +3 -3
  239. package/dist/cjs/{guid-609f1c0d.js → guid-c86839da.js} +1 -1
  240. package/dist/cjs/{index-68ddfe8e.js → index-33f65b26.js} +1 -1
  241. package/dist/cjs/index.cjs.js +1 -1
  242. package/dist/cjs/{interactive-d1ef280c.js → interactive-a3821d41.js} +1 -1
  243. package/dist/cjs/{interfaces-a3bdc804.js → interfaces-0d6f4796.js} +1 -1
  244. package/dist/cjs/{key-017aa5b0.js → key-a2e96b2d.js} +1 -1
  245. package/dist/cjs/{label-e24023c6.js → label-bd9a47bd.js} +2 -2
  246. package/dist/cjs/loader.cjs.js +3 -3
  247. package/dist/cjs/{locale-2d8feb15.js → locale-48e984a4.js} +2 -2
  248. package/dist/cjs/{math-7fe3e64d.js → math-b4d12de8.js} +1 -1
  249. package/dist/cjs/{observers-aa7367df.js → observers-11defbec.js} +1 -1
  250. package/dist/cjs/{resources-b4ed54b9.js → resources-0b605ada.js} +1 -1
  251. package/dist/cjs/{resources-a7f0af25.js → resources-1388772a.js} +1 -1
  252. package/dist/cjs/{resources-9aaa6e0a.js → resources-826e04f0.js} +3 -3
  253. package/dist/cjs/{resources-0c0019fb.js → resources-ca50aa50.js} +5 -5
  254. package/dist/cjs/{sortable.esm-6dc17794.js → sortable.esm-67fdfa55.js} +1 -1
  255. package/dist/cjs/{utils-53d98078.js → utils-1a470335.js} +1 -1
  256. package/dist/collection/components/accordion/accordion.css +3 -3
  257. package/dist/collection/components/accordion/accordion.js +25 -20
  258. package/dist/collection/components/accordion/interfaces.js +1 -1
  259. package/dist/collection/components/accordion-item/accordion-item.css +69 -66
  260. package/dist/collection/components/accordion-item/accordion-item.js +92 -48
  261. package/dist/collection/components/accordion-item/interfaces.js +6 -0
  262. package/dist/collection/components/accordion-item/resources.js +21 -0
  263. package/dist/collection/components/action/action.css +24 -22
  264. package/dist/collection/components/action/action.js +3 -3
  265. package/dist/collection/components/action/resources.js +1 -1
  266. package/dist/collection/components/action-bar/action-bar.css +6 -6
  267. package/dist/collection/components/action-bar/action-bar.js +3 -3
  268. package/dist/collection/components/action-bar/resources.js +1 -1
  269. package/dist/collection/components/action-bar/utils.js +1 -1
  270. package/dist/collection/components/action-group/action-group.css +2 -2
  271. package/dist/collection/components/action-group/action-group.js +3 -3
  272. package/dist/collection/components/action-group/resources.js +1 -1
  273. package/dist/collection/components/action-menu/action-menu.css +3 -3
  274. package/dist/collection/components/action-menu/action-menu.js +25 -37
  275. package/dist/collection/components/action-menu/resources.js +1 -1
  276. package/dist/collection/components/action-pad/action-pad.css +8 -9
  277. package/dist/collection/components/action-pad/action-pad.js +3 -3
  278. package/dist/collection/components/action-pad/resources.js +1 -1
  279. package/dist/collection/components/alert/alert.css +41 -49
  280. package/dist/collection/components/alert/alert.js +52 -70
  281. package/dist/collection/components/alert/interfaces.js +1 -1
  282. package/dist/collection/components/alert/resources.js +1 -1
  283. package/dist/collection/components/avatar/avatar.css +11 -11
  284. package/dist/collection/components/avatar/avatar.js +1 -1
  285. package/dist/collection/components/avatar/utils.js +1 -1
  286. package/dist/collection/components/block/block.css +15 -18
  287. package/dist/collection/components/block/block.js +12 -5
  288. package/dist/collection/components/block/resources.js +1 -1
  289. package/dist/collection/components/block-section/block-section.css +11 -17
  290. package/dist/collection/components/block-section/block-section.js +3 -3
  291. package/dist/collection/components/block-section/interfaces.js +1 -1
  292. package/dist/collection/components/block-section/resources.js +1 -1
  293. package/dist/collection/components/button/button.css +37 -37
  294. package/dist/collection/components/button/button.js +1 -1
  295. package/dist/collection/components/button/interfaces.js +1 -1
  296. package/dist/collection/components/button/resources.js +1 -1
  297. package/dist/collection/components/card/card.css +22 -23
  298. package/dist/collection/components/card/card.js +6 -6
  299. package/dist/collection/components/card/resources.js +1 -1
  300. package/dist/collection/components/checkbox/checkbox.css +12 -14
  301. package/dist/collection/components/checkbox/checkbox.js +7 -7
  302. package/dist/collection/components/chip/chip.css +23 -21
  303. package/dist/collection/components/chip/chip.js +9 -4
  304. package/dist/collection/components/chip/interfaces.js +1 -1
  305. package/dist/collection/components/chip/resources.js +1 -1
  306. package/dist/collection/components/color-picker/color-picker.css +32 -29
  307. package/dist/collection/components/color-picker/color-picker.js +5 -5
  308. package/dist/collection/components/color-picker/interfaces.js +1 -1
  309. package/dist/collection/components/color-picker/resources.js +1 -1
  310. package/dist/collection/components/color-picker/utils.js +1 -1
  311. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +5 -7
  312. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +3 -3
  313. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  314. package/dist/collection/components/color-picker-swatch/color-picker-swatch.css +12 -15
  315. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  316. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  317. package/dist/collection/components/combobox/combobox.css +44 -46
  318. package/dist/collection/components/combobox/combobox.js +76 -110
  319. package/dist/collection/components/combobox/interfaces.js +1 -1
  320. package/dist/collection/components/combobox/resources.js +1 -1
  321. package/dist/collection/components/combobox/utils.js +1 -1
  322. package/dist/collection/components/combobox-item/combobox-item.css +17 -14
  323. package/dist/collection/components/combobox-item/combobox-item.js +9 -4
  324. package/dist/collection/components/combobox-item/resources.js +1 -1
  325. package/dist/collection/components/combobox-item-group/combobox-item-group.css +9 -9
  326. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  327. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  328. package/dist/collection/components/date-picker/date-picker.css +5 -5
  329. package/dist/collection/components/date-picker/date-picker.js +14 -14
  330. package/dist/collection/components/date-picker/interfaces.js +1 -1
  331. package/dist/collection/components/date-picker/resources.js +1 -1
  332. package/dist/collection/components/date-picker/utils.js +1 -1
  333. package/dist/collection/components/date-picker-day/date-picker-day.css +23 -28
  334. package/dist/collection/components/date-picker-day/date-picker-day.js +8 -10
  335. package/dist/collection/components/date-picker-month/date-picker-month.css +14 -24
  336. package/dist/collection/components/date-picker-month/date-picker-month.js +41 -29
  337. package/dist/collection/components/date-picker-month-header/date-picker-month-header.css +23 -33
  338. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +20 -20
  339. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  340. package/dist/collection/components/dropdown/dropdown.css +19 -18
  341. package/dist/collection/components/dropdown/dropdown.js +95 -143
  342. package/dist/collection/components/dropdown/interfaces.js +1 -1
  343. package/dist/collection/components/dropdown/resources.js +1 -1
  344. package/dist/collection/components/dropdown-group/dropdown-group.css +4 -4
  345. package/dist/collection/components/dropdown-group/dropdown-group.js +9 -4
  346. package/dist/collection/components/dropdown-group/interfaces.js +1 -1
  347. package/dist/collection/components/dropdown-group/resources.js +1 -1
  348. package/dist/collection/components/dropdown-item/dropdown-item.css +7 -13
  349. package/dist/collection/components/dropdown-item/dropdown-item.js +18 -13
  350. package/dist/collection/components/dropdown-item/resources.js +1 -1
  351. package/dist/collection/components/fab/fab.css +7 -6
  352. package/dist/collection/components/fab/fab.js +1 -1
  353. package/dist/collection/components/fab/resources.js +1 -1
  354. package/dist/collection/components/filter/filter.css +16 -18
  355. package/dist/collection/components/filter/filter.js +1 -1
  356. package/dist/collection/components/filter/resources.js +1 -1
  357. package/dist/collection/components/flow/flow.css +4 -4
  358. package/dist/collection/components/flow/flow.js +1 -1
  359. package/dist/collection/components/flow/interfaces.js +1 -1
  360. package/dist/collection/components/flow/resources.js +1 -1
  361. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  362. package/dist/collection/components/functional/Heading.js +1 -1
  363. package/dist/collection/components/graph/graph.css +4 -4
  364. package/dist/collection/components/graph/graph.js +1 -1
  365. package/dist/collection/components/graph/interfaces.js +1 -1
  366. package/dist/collection/components/graph/util.js +1 -1
  367. package/dist/collection/components/handle/handle.css +3 -2
  368. package/dist/collection/components/handle/handle.js +9 -4
  369. package/dist/collection/components/handle/resources.js +1 -1
  370. package/dist/collection/components/icon/icon.css +13 -13
  371. package/dist/collection/components/icon/icon.js +1 -1
  372. package/dist/collection/components/icon/resources.js +1 -1
  373. package/dist/collection/components/icon/utils.js +1 -1
  374. package/dist/collection/components/inline-editable/inline-editable.css +12 -11
  375. package/dist/collection/components/inline-editable/inline-editable.js +19 -19
  376. package/dist/collection/components/inline-editable/resources.js +1 -1
  377. package/dist/collection/components/input/input.css +74 -96
  378. package/dist/collection/components/input/input.js +15 -16
  379. package/dist/collection/components/input/interfaces.js +1 -1
  380. package/dist/collection/components/input/resources.js +1 -1
  381. package/dist/collection/components/input-date-picker/input-date-picker.css +70 -73
  382. package/dist/collection/components/input-date-picker/input-date-picker.js +162 -110
  383. package/dist/collection/components/input-date-picker/resources.js +1 -1
  384. package/dist/collection/components/input-message/input-message.css +7 -7
  385. package/dist/collection/components/input-message/input-message.js +1 -1
  386. package/dist/collection/components/input-message/interfaces.js +1 -1
  387. package/dist/collection/components/input-number/input-number.css +47 -55
  388. package/dist/collection/components/input-number/input-number.js +15 -16
  389. package/dist/collection/components/input-number/interfaces.js +1 -1
  390. package/dist/collection/components/input-number/resources.js +1 -1
  391. package/dist/collection/components/input-time-picker/input-time-picker.css +9 -11
  392. package/dist/collection/components/input-time-picker/input-time-picker.js +12 -20
  393. package/dist/collection/components/interfaces.js +1 -1
  394. package/dist/collection/components/label/label.css +15 -15
  395. package/dist/collection/components/label/label.js +1 -1
  396. package/dist/collection/components/label/resources.js +1 -1
  397. package/dist/collection/components/link/link.css +14 -13
  398. package/dist/collection/components/link/link.js +1 -1
  399. package/dist/collection/components/list/list.css +8 -7
  400. package/dist/collection/components/list/list.js +1 -1
  401. package/dist/collection/components/list/resources.js +1 -1
  402. package/dist/collection/components/list-item/list-item.css +12 -15
  403. package/dist/collection/components/list-item/list-item.js +1 -1
  404. package/dist/collection/components/list-item/resources.js +1 -1
  405. package/dist/collection/components/list-item-group/list-item-group.css +2 -2
  406. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  407. package/dist/collection/components/list-item-group/resources.js +1 -1
  408. package/dist/collection/components/loader/loader.css +27 -31
  409. package/dist/collection/components/loader/loader.js +10 -3
  410. package/dist/collection/components/modal/interfaces.js +1 -1
  411. package/dist/collection/components/modal/modal.css +77 -70
  412. package/dist/collection/components/modal/modal.js +78 -19
  413. package/dist/collection/components/modal/resources.js +1 -1
  414. package/dist/collection/components/notice/notice.css +26 -34
  415. package/dist/collection/components/notice/notice.js +52 -8
  416. package/dist/collection/components/notice/resources.js +1 -1
  417. package/dist/collection/components/option/option.css +1 -1
  418. package/dist/collection/components/option/option.js +3 -3
  419. package/dist/collection/components/option-group/option-group.css +1 -1
  420. package/dist/collection/components/option-group/option-group.js +3 -3
  421. package/dist/collection/components/pagination/pagination.css +10 -14
  422. package/dist/collection/components/pagination/pagination.js +1 -1
  423. package/dist/collection/components/pagination/resources.js +1 -1
  424. package/dist/collection/components/panel/panel.css +39 -45
  425. package/dist/collection/components/panel/panel.js +51 -26
  426. package/dist/collection/components/panel/resources.js +1 -1
  427. package/dist/collection/components/pick-list/pick-list.css +13 -12
  428. package/dist/collection/components/pick-list/pick-list.js +1 -1
  429. package/dist/collection/components/pick-list/resources.js +1 -1
  430. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  431. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  432. package/dist/collection/components/pick-list-group/pick-list-group.css +5 -7
  433. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  434. package/dist/collection/components/pick-list-group/resources.js +1 -1
  435. package/dist/collection/components/pick-list-item/pick-list-item.css +15 -17
  436. package/dist/collection/components/pick-list-item/pick-list-item.js +2 -2
  437. package/dist/collection/components/pick-list-item/resources.js +1 -1
  438. package/dist/collection/components/popover/PopoverManager.js +1 -1
  439. package/dist/collection/components/popover/popover.css +29 -34
  440. package/dist/collection/components/popover/popover.js +104 -88
  441. package/dist/collection/components/popover/resources.js +1 -1
  442. package/dist/collection/components/popover-manager/popover-manager.css +1 -1
  443. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  444. package/dist/collection/components/progress/progress.css +9 -11
  445. package/dist/collection/components/progress/progress.js +1 -1
  446. package/dist/collection/components/radio-button/radio-button.css +15 -17
  447. package/dist/collection/components/radio-button/radio-button.js +10 -10
  448. package/dist/collection/components/radio-button/resources.js +1 -1
  449. package/dist/collection/components/radio-button-group/radio-button-group.css +2 -2
  450. package/dist/collection/components/radio-button-group/radio-button-group.js +3 -3
  451. package/dist/collection/components/radio-group/interfaces.js +1 -1
  452. package/dist/collection/components/radio-group/radio-group.css +15 -17
  453. package/dist/collection/components/radio-group/radio-group.js +1 -1
  454. package/dist/collection/components/radio-group-item/radio-group-item.css +7 -13
  455. package/dist/collection/components/radio-group-item/radio-group-item.js +3 -3
  456. package/dist/collection/components/radio-group-item/resources.js +1 -1
  457. package/dist/collection/components/rating/rating.css +18 -20
  458. package/dist/collection/components/rating/rating.js +1 -1
  459. package/dist/collection/components/rating/resources.js +1 -1
  460. package/dist/collection/components/scrim/resources.js +1 -1
  461. package/dist/collection/components/scrim/scrim.css +5 -11
  462. package/dist/collection/components/scrim/scrim.js +1 -1
  463. package/dist/collection/components/select/resources.js +1 -1
  464. package/dist/collection/components/select/select.css +22 -28
  465. package/dist/collection/components/select/select.js +1 -1
  466. package/dist/collection/components/shell/resources.js +1 -1
  467. package/dist/collection/components/shell/shell.css +17 -24
  468. package/dist/collection/components/shell/shell.js +1 -1
  469. package/dist/collection/components/shell-center-row/resources.js +1 -1
  470. package/dist/collection/components/shell-center-row/shell-center-row.css +11 -13
  471. package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
  472. package/dist/collection/components/shell-panel/resources.js +1 -1
  473. package/dist/collection/components/shell-panel/shell-panel.css +17 -20
  474. package/dist/collection/components/shell-panel/shell-panel.js +3 -3
  475. package/dist/collection/components/slider/slider.css +43 -44
  476. package/dist/collection/components/slider/slider.js +7 -7
  477. package/dist/collection/components/sortable-list/resources.js +1 -1
  478. package/dist/collection/components/sortable-list/sortable-list.css +6 -5
  479. package/dist/collection/components/sortable-list/sortable-list.js +3 -3
  480. package/dist/collection/components/split-button/resources.js +1 -1
  481. package/dist/collection/components/split-button/split-button.css +17 -18
  482. package/dist/collection/components/split-button/split-button.js +21 -11
  483. package/dist/collection/components/stepper/interfaces.js +1 -1
  484. package/dist/collection/components/stepper/stepper.css +6 -9
  485. package/dist/collection/components/stepper/stepper.js +26 -84
  486. package/dist/collection/components/stepper-item/stepper-item.css +103 -35
  487. package/dist/collection/components/stepper-item/stepper-item.js +41 -20
  488. package/dist/collection/components/switch/switch.css +28 -30
  489. package/dist/collection/components/switch/switch.js +12 -9
  490. package/dist/collection/components/tab/interfaces.js +1 -1
  491. package/dist/collection/components/tab/tab.css +10 -13
  492. package/dist/collection/components/tab/tab.js +4 -4
  493. package/dist/collection/components/tab-nav/tab-nav.css +24 -25
  494. package/dist/collection/components/tab-nav/tab-nav.js +29 -29
  495. package/dist/collection/components/tab-title/tab-title.css +41 -50
  496. package/dist/collection/components/tab-title/tab-title.js +8 -8
  497. package/dist/collection/components/tabs/interfaces.js +1 -1
  498. package/dist/collection/components/tabs/resources.js +1 -1
  499. package/dist/collection/components/tabs/tabs.css +21 -21
  500. package/dist/collection/components/tabs/tabs.js +20 -20
  501. package/dist/collection/components/tile/resources.js +1 -1
  502. package/dist/collection/components/tile/tile.css +12 -11
  503. package/dist/collection/components/tile/tile.js +1 -1
  504. package/dist/collection/components/tile-select/interfaces.js +1 -1
  505. package/dist/collection/components/tile-select/resources.js +1 -1
  506. package/dist/collection/components/tile-select/tile-select.css +14 -13
  507. package/dist/collection/components/tile-select/tile-select.js +3 -3
  508. package/dist/collection/components/tile-select-group/interfaces.js +1 -1
  509. package/dist/collection/components/tile-select-group/tile-select-group.css +10 -9
  510. package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
  511. package/dist/collection/components/time-picker/resources.js +1 -1
  512. package/dist/collection/components/time-picker/time-picker.css +11 -17
  513. package/dist/collection/components/time-picker/time-picker.js +1 -1
  514. package/dist/collection/components/tip/resources.js +1 -1
  515. package/dist/collection/components/tip/tip.css +12 -15
  516. package/dist/collection/components/tip/tip.js +3 -3
  517. package/dist/collection/components/tip-group/tip-group.css +2 -3
  518. package/dist/collection/components/tip-group/tip-group.js +1 -1
  519. package/dist/collection/components/tip-manager/resources.js +1 -1
  520. package/dist/collection/components/tip-manager/tip-manager.css +11 -16
  521. package/dist/collection/components/tip-manager/tip-manager.js +7 -7
  522. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  523. package/dist/collection/components/tooltip/resources.js +1 -1
  524. package/dist/collection/components/tooltip/tooltip.css +25 -30
  525. package/dist/collection/components/tooltip/tooltip.js +35 -66
  526. package/dist/collection/components/tooltip-manager/tooltip-manager.css +1 -1
  527. package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
  528. package/dist/collection/components/tree/interfaces.js +1 -1
  529. package/dist/collection/components/tree/tree.css +1 -1
  530. package/dist/collection/components/tree/tree.js +12 -12
  531. package/dist/collection/components/tree-item/interfaces.js +1 -1
  532. package/dist/collection/components/tree-item/resources.js +1 -1
  533. package/dist/collection/components/tree-item/tree-item.css +12 -11
  534. package/dist/collection/components/tree-item/tree-item.js +10 -10
  535. package/dist/collection/components/value-list/interfaces.js +1 -1
  536. package/dist/collection/components/value-list/resources.js +1 -1
  537. package/dist/collection/components/value-list/utils.js +1 -1
  538. package/dist/collection/components/value-list/value-list.css +12 -11
  539. package/dist/collection/components/value-list/value-list.js +1 -1
  540. package/dist/collection/components/value-list-item/resources.js +1 -1
  541. package/dist/collection/components/value-list-item/value-list-item.css +12 -13
  542. package/dist/collection/components/value-list-item/value-list-item.js +1 -1
  543. package/dist/collection/utils/array.js +1 -1
  544. package/dist/collection/utils/conditionalSlot.js +1 -1
  545. package/dist/collection/utils/date.js +1 -1
  546. package/dist/collection/utils/dom.js +1 -1
  547. package/dist/collection/utils/filter.js +1 -1
  548. package/dist/collection/utils/floating-ui.js +229 -0
  549. package/dist/collection/utils/form.js +1 -1
  550. package/dist/collection/utils/globalAttributes.js +1 -1
  551. package/dist/collection/utils/guid.js +1 -1
  552. package/dist/collection/utils/interactive.js +1 -1
  553. package/dist/collection/utils/key.js +1 -1
  554. package/dist/collection/utils/label.js +1 -1
  555. package/dist/collection/utils/locale.js +1 -1
  556. package/dist/collection/utils/math.js +1 -1
  557. package/dist/collection/utils/number.js +1 -1
  558. package/dist/collection/utils/observers.js +1 -1
  559. package/dist/collection/utils/openCloseComponent.js +1 -1
  560. package/dist/collection/utils/resources.js +1 -1
  561. package/dist/collection/utils/time.js +2 -2
  562. package/dist/components/ExpandToggle.js +2 -2
  563. package/dist/components/Heading.js +1 -1
  564. package/dist/components/action-group.js +3 -3
  565. package/dist/components/action-menu.js +9 -26
  566. package/dist/components/action.js +2 -2
  567. package/dist/components/array.js +1 -1
  568. package/dist/components/button.js +2 -2
  569. package/dist/components/calcite-accordion-item.js +63 -26
  570. package/dist/components/calcite-accordion.js +18 -18
  571. package/dist/components/calcite-action-bar.js +3 -3
  572. package/dist/components/calcite-action-group.js +1 -1
  573. package/dist/components/calcite-action-menu.js +1 -1
  574. package/dist/components/calcite-action-pad.js +3 -3
  575. package/dist/components/calcite-action.js +1 -1
  576. package/dist/components/calcite-alert.js +28 -35
  577. package/dist/components/calcite-avatar.js +2 -2
  578. package/dist/components/calcite-block-section.js +3 -3
  579. package/dist/components/calcite-block.js +8 -4
  580. package/dist/components/calcite-button.js +1 -1
  581. package/dist/components/calcite-card.js +6 -6
  582. package/dist/components/calcite-checkbox.js +1 -1
  583. package/dist/components/calcite-chip.js +1 -1
  584. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  585. package/dist/components/calcite-color-picker-swatch.js +1 -1
  586. package/dist/components/calcite-color-picker.js +3 -3
  587. package/dist/components/calcite-combobox-item-group.js +2 -2
  588. package/dist/components/calcite-combobox-item.js +3 -3
  589. package/dist/components/calcite-combobox.js +44 -69
  590. package/dist/components/calcite-date-picker-day.js +1 -1
  591. package/dist/components/calcite-date-picker-month-header.js +1 -1
  592. package/dist/components/calcite-date-picker-month.js +1 -1
  593. package/dist/components/calcite-date-picker.js +1 -1
  594. package/dist/components/calcite-dropdown-group.js +2 -2
  595. package/dist/components/calcite-dropdown-item.js +9 -9
  596. package/dist/components/calcite-dropdown.js +1 -1
  597. package/dist/components/calcite-fab.js +2 -2
  598. package/dist/components/calcite-filter.js +1 -1
  599. package/dist/components/calcite-flow.js +2 -2
  600. package/dist/components/calcite-graph.js +1 -1
  601. package/dist/components/calcite-handle.js +1 -1
  602. package/dist/components/calcite-icon.js +1 -1
  603. package/dist/components/calcite-inline-editable.js +19 -19
  604. package/dist/components/calcite-input-date-picker.js +90 -84
  605. package/dist/components/calcite-input-message.js +2 -2
  606. package/dist/components/calcite-input-number.js +5 -11
  607. package/dist/components/calcite-input-time-picker.js +9 -11
  608. package/dist/components/calcite-input.js +1 -1
  609. package/dist/components/calcite-label.js +1 -1
  610. package/dist/components/calcite-link.js +1 -1
  611. package/dist/components/calcite-list-item-group.js +2 -2
  612. package/dist/components/calcite-list-item.js +3 -3
  613. package/dist/components/calcite-list.js +2 -2
  614. package/dist/components/calcite-loader.js +1 -1
  615. package/dist/components/calcite-modal.js +41 -13
  616. package/dist/components/calcite-notice.js +25 -5
  617. package/dist/components/calcite-option-group.js +2 -2
  618. package/dist/components/calcite-option.js +2 -2
  619. package/dist/components/calcite-pagination.js +2 -2
  620. package/dist/components/calcite-panel.js +39 -18
  621. package/dist/components/calcite-pick-list-group.js +3 -3
  622. package/dist/components/calcite-pick-list-item.js +1 -1
  623. package/dist/components/calcite-pick-list.js +2 -2
  624. package/dist/components/calcite-popover-manager.js +2 -2
  625. package/dist/components/calcite-popover.js +1 -1
  626. package/dist/components/calcite-progress.js +1 -1
  627. package/dist/components/calcite-radio-button-group.js +2 -2
  628. package/dist/components/calcite-radio-button.js +4 -4
  629. package/dist/components/calcite-radio-group-item.js +2 -2
  630. package/dist/components/calcite-radio-group.js +3 -3
  631. package/dist/components/calcite-rating.js +2 -2
  632. package/dist/components/calcite-scrim.js +1 -1
  633. package/dist/components/calcite-select.js +2 -2
  634. package/dist/components/calcite-shell-center-row.js +3 -3
  635. package/dist/components/calcite-shell-panel.js +3 -3
  636. package/dist/components/calcite-shell.js +3 -3
  637. package/dist/components/calcite-slider.js +2 -2
  638. package/dist/components/calcite-sortable-list.js +2 -2
  639. package/dist/components/calcite-split-button.js +5 -5
  640. package/dist/components/calcite-stepper-item.js +25 -21
  641. package/dist/components/calcite-stepper.js +26 -62
  642. package/dist/components/calcite-switch.js +1 -1
  643. package/dist/components/calcite-tab-nav.js +1 -1
  644. package/dist/components/calcite-tab-title.js +1 -1
  645. package/dist/components/calcite-tab.js +1 -1
  646. package/dist/components/calcite-tabs.js +1 -1
  647. package/dist/components/calcite-tile-select-group.js +2 -2
  648. package/dist/components/calcite-tile-select.js +2 -2
  649. package/dist/components/calcite-tile.js +1 -1
  650. package/dist/components/calcite-time-picker.js +1 -1
  651. package/dist/components/calcite-tip-group.js +2 -2
  652. package/dist/components/calcite-tip-manager.js +5 -5
  653. package/dist/components/calcite-tip.js +3 -3
  654. package/dist/components/calcite-tooltip-manager.js +2 -2
  655. package/dist/components/calcite-tooltip.js +26 -59
  656. package/dist/components/calcite-tree-item.js +12 -12
  657. package/dist/components/calcite-tree.js +13 -13
  658. package/dist/components/calcite-value-list-item.js +3 -3
  659. package/dist/components/calcite-value-list.js +2 -2
  660. package/dist/components/checkbox.js +2 -2
  661. package/dist/components/chip.js +3 -3
  662. package/dist/components/color-picker-hex-input.js +2 -2
  663. package/dist/components/color-picker-swatch.js +2 -2
  664. package/dist/components/conditionalSlot.js +1 -1
  665. package/dist/components/date-picker-day.js +6 -8
  666. package/dist/components/date-picker-month-header.js +21 -21
  667. package/dist/components/date-picker-month.js +19 -19
  668. package/dist/components/date-picker.js +15 -15
  669. package/dist/components/date.js +1 -1
  670. package/dist/components/debounce.js +1 -1
  671. package/dist/components/dom.js +2 -2
  672. package/dist/components/dropdown.js +64 -98
  673. package/dist/components/filter.js +2 -2
  674. package/dist/components/floating-ui.js +1612 -0
  675. package/dist/components/forIn.js +1 -1
  676. package/dist/components/form.js +1 -1
  677. package/dist/components/graph.js +2 -2
  678. package/dist/components/guid.js +1 -1
  679. package/dist/components/handle.js +2 -2
  680. package/dist/components/icon.js +3 -3
  681. package/dist/components/index.js +1 -1
  682. package/dist/components/input.js +5 -11
  683. package/dist/components/interactive.js +1 -1
  684. package/dist/components/interfaces.js +1 -1
  685. package/dist/components/interfaces2.js +1 -1
  686. package/dist/components/key.js +1 -1
  687. package/dist/components/label.js +1 -1
  688. package/dist/components/label2.js +2 -2
  689. package/dist/components/link.js +3 -3
  690. package/dist/components/loader.js +7 -3
  691. package/dist/components/locale.js +1 -1
  692. package/dist/components/math.js +1 -1
  693. package/dist/components/observers.js +1 -1
  694. package/dist/components/pick-list-item.js +3 -3
  695. package/dist/components/popover.js +57 -71
  696. package/dist/components/progress.js +2 -2
  697. package/dist/components/resources.js +1 -1
  698. package/dist/components/resources2.js +1 -1
  699. package/dist/components/resources3.js +1 -1
  700. package/dist/components/scrim.js +2 -2
  701. package/dist/components/shared-list-render.js +2 -2
  702. package/dist/components/sortable.esm.js +1 -1
  703. package/dist/components/switch.js +5 -7
  704. package/dist/components/tab-nav.js +31 -31
  705. package/dist/components/tab-title.js +6 -6
  706. package/dist/components/tab.js +3 -3
  707. package/dist/components/tabs.js +21 -21
  708. package/dist/components/tile.js +3 -3
  709. package/dist/components/time-picker.js +3 -3
  710. package/dist/components/utils.js +1 -1
  711. package/dist/components/utils2.js +1 -1
  712. package/dist/custom-elements/index.js +2239 -2558
  713. package/dist/esm/{ExpandToggle-7076d600.js → ExpandToggle-8ad8aac0.js} +5 -5
  714. package/dist/esm/{Heading-5ccb3b17.js → Heading-4d9f4f89.js} +2 -2
  715. package/dist/esm/{array-48f23287.js → array-c38e9698.js} +1 -1
  716. package/dist/esm/calcite-accordion_2.entry.js +83 -44
  717. package/dist/esm/calcite-action-bar.entry.js +11 -11
  718. package/dist/esm/calcite-action-group.entry.js +9 -9
  719. package/dist/esm/calcite-action-menu.entry.js +15 -32
  720. package/dist/esm/calcite-action-pad.entry.js +10 -10
  721. package/dist/esm/calcite-action.entry.js +7 -7
  722. package/dist/esm/calcite-alert.entry.js +31 -38
  723. package/dist/esm/calcite-avatar.entry.js +6 -6
  724. package/dist/esm/calcite-block_2.entry.js +15 -11
  725. package/dist/esm/calcite-button.entry.js +9 -9
  726. package/dist/esm/calcite-card.entry.js +10 -10
  727. package/dist/esm/calcite-checkbox.entry.js +8 -8
  728. package/dist/esm/calcite-chip.entry.js +7 -7
  729. package/dist/esm/calcite-color-picker_3.entry.js +11 -11
  730. package/dist/esm/calcite-combobox_3.entry.js +56 -81
  731. package/dist/esm/calcite-date-picker_4.entry.js +65 -67
  732. package/dist/esm/calcite-dropdown_3.entry.js +78 -112
  733. package/dist/esm/calcite-fab.entry.js +6 -6
  734. package/dist/esm/calcite-filter.entry.js +8 -8
  735. package/dist/esm/calcite-flow.entry.js +4 -4
  736. package/dist/esm/calcite-graph_2.entry.js +11 -11
  737. package/dist/esm/calcite-handle.entry.js +5 -5
  738. package/dist/esm/calcite-icon.entry.js +6 -6
  739. package/dist/esm/calcite-inline-editable.entry.js +24 -24
  740. package/dist/esm/calcite-input-date-picker.entry.js +98 -93
  741. package/dist/esm/calcite-input-message.entry.js +5 -5
  742. package/dist/esm/calcite-input-number.entry.js +14 -20
  743. package/dist/esm/calcite-input-time-picker_2.entry.js +18 -20
  744. package/dist/esm/calcite-input.entry.js +14 -20
  745. package/dist/esm/calcite-label.entry.js +6 -6
  746. package/dist/esm/calcite-link.entry.js +6 -6
  747. package/dist/esm/calcite-list_3.entry.js +11 -11
  748. package/dist/esm/calcite-loader.entry.js +9 -5
  749. package/dist/esm/calcite-modal.entry.js +44 -16
  750. package/dist/esm/calcite-notice.entry.js +29 -10
  751. package/dist/esm/calcite-option_3.entry.js +11 -11
  752. package/dist/esm/calcite-pagination.entry.js +6 -6
  753. package/dist/esm/calcite-panel.entry.js +44 -23
  754. package/dist/esm/calcite-pick-list_3.entry.js +14 -14
  755. package/dist/esm/calcite-popover_2.entry.js +64 -78
  756. package/dist/esm/calcite-progress.entry.js +3 -3
  757. package/dist/esm/calcite-radio-button-group.entry.js +4 -4
  758. package/dist/esm/calcite-radio-button.entry.js +10 -10
  759. package/dist/esm/calcite-radio-group_2.entry.js +9 -9
  760. package/dist/esm/calcite-rating.entry.js +9 -9
  761. package/dist/esm/calcite-scrim.entry.js +3 -3
  762. package/dist/esm/calcite-shell_3.entry.js +10 -10
  763. package/dist/esm/calcite-sortable-list.entry.js +6 -6
  764. package/dist/esm/calcite-split-button.entry.js +7 -7
  765. package/dist/esm/calcite-stepper_2.entry.js +51 -84
  766. package/dist/esm/calcite-switch.entry.js +11 -13
  767. package/dist/esm/calcite-tab_4.entry.js +61 -61
  768. package/dist/esm/calcite-tile-select_2.entry.js +6 -6
  769. package/dist/esm/calcite-tile.entry.js +8 -8
  770. package/dist/esm/calcite-tip_3.entry.js +12 -12
  771. package/dist/esm/calcite-tooltip_2.entry.js +30 -63
  772. package/dist/esm/calcite-tree_2.entry.js +28 -28
  773. package/dist/esm/calcite-value-list_2.entry.js +13 -13
  774. package/dist/esm/calcite.js +3 -3
  775. package/dist/esm/{conditionalSlot-13c69fa9.js → conditionalSlot-e49df07c.js} +3 -3
  776. package/dist/esm/{debounce-bef6fc2c.js → debounce-76a1065a.js} +1 -1
  777. package/dist/esm/{dom-6c1f7204.js → dom-19ab3d2f.js} +2 -2
  778. package/dist/esm/floating-ui-4afc064e.js +1612 -0
  779. package/dist/esm/{forIn-566610cc.js → forIn-1c3a0d8e.js} +2 -2
  780. package/dist/esm/{form-115e3241.js → form-ecbc6fec.js} +3 -3
  781. package/dist/esm/{guid-9ee41ac6.js → guid-ba74e5d4.js} +1 -1
  782. package/dist/esm/{index-dfcf10d7.js → index-5048a317.js} +1 -1
  783. package/dist/esm/index.js +1 -1
  784. package/dist/esm/{interactive-2a03c362.js → interactive-71744e3e.js} +1 -1
  785. package/dist/esm/{interfaces-02cee59d.js → interfaces-e771f6c8.js} +1 -1
  786. package/dist/esm/{key-1219c482.js → key-af81a004.js} +1 -1
  787. package/dist/esm/{label-b30a7cde.js → label-dfcfa9e0.js} +2 -2
  788. package/dist/esm/loader.js +3 -3
  789. package/dist/esm/{locale-98144f51.js → locale-ab6b5afc.js} +2 -2
  790. package/dist/esm/{math-7409ae0d.js → math-a5e24a73.js} +1 -1
  791. package/dist/esm/{observers-fa0db945.js → observers-61a2bb4f.js} +1 -1
  792. package/dist/esm/{resources-ccd18bbb.js → resources-566ead7b.js} +5 -5
  793. package/dist/esm/{resources-7198828a.js → resources-9348154b.js} +1 -1
  794. package/dist/esm/{resources-3157143b.js → resources-c995bb5e.js} +3 -3
  795. package/dist/esm/{resources-3b67e62a.js → resources-e1d5ca1c.js} +1 -1
  796. package/dist/esm/{sortable.esm-e7918a0d.js → sortable.esm-d0f38173.js} +1 -1
  797. package/dist/esm/{utils-06a51b70.js → utils-531de8fa.js} +1 -1
  798. package/dist/esm-es5/{ExpandToggle-7076d600.js → ExpandToggle-8ad8aac0.js} +2 -2
  799. package/dist/esm-es5/{Heading-5ccb3b17.js → Heading-4d9f4f89.js} +2 -2
  800. package/dist/esm-es5/{array-48f23287.js → array-c38e9698.js} +1 -1
  801. package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
  802. package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
  803. package/dist/esm-es5/calcite-action-group.entry.js +2 -2
  804. package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
  805. package/dist/esm-es5/calcite-action-pad.entry.js +3 -3
  806. package/dist/esm-es5/calcite-action.entry.js +2 -2
  807. package/dist/esm-es5/calcite-alert.entry.js +3 -3
  808. package/dist/esm-es5/calcite-avatar.entry.js +2 -2
  809. package/dist/esm-es5/calcite-block_2.entry.js +2 -2
  810. package/dist/esm-es5/calcite-button.entry.js +2 -2
  811. package/dist/esm-es5/calcite-card.entry.js +2 -2
  812. package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
  813. package/dist/esm-es5/calcite-chip.entry.js +3 -3
  814. package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
  815. package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
  816. package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
  817. package/dist/esm-es5/calcite-dropdown_3.entry.js +3 -3
  818. package/dist/esm-es5/calcite-fab.entry.js +3 -3
  819. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  820. package/dist/esm-es5/calcite-flow.entry.js +3 -3
  821. package/dist/esm-es5/calcite-graph_2.entry.js +3 -3
  822. package/dist/esm-es5/calcite-handle.entry.js +2 -2
  823. package/dist/esm-es5/calcite-icon.entry.js +2 -2
  824. package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
  825. package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
  826. package/dist/esm-es5/calcite-input-message.entry.js +2 -2
  827. package/dist/esm-es5/calcite-input-number.entry.js +3 -3
  828. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
  829. package/dist/esm-es5/calcite-input.entry.js +2 -2
  830. package/dist/esm-es5/calcite-label.entry.js +2 -2
  831. package/dist/esm-es5/calcite-link.entry.js +2 -2
  832. package/dist/esm-es5/calcite-list_3.entry.js +2 -2
  833. package/dist/esm-es5/calcite-loader.entry.js +3 -3
  834. package/dist/esm-es5/calcite-modal.entry.js +3 -3
  835. package/dist/esm-es5/calcite-notice.entry.js +2 -2
  836. package/dist/esm-es5/calcite-option_3.entry.js +3 -3
  837. package/dist/esm-es5/calcite-pagination.entry.js +2 -2
  838. package/dist/esm-es5/calcite-panel.entry.js +2 -2
  839. package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
  840. package/dist/esm-es5/calcite-popover_2.entry.js +3 -3
  841. package/dist/esm-es5/calcite-progress.entry.js +2 -2
  842. package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
  843. package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
  844. package/dist/esm-es5/calcite-radio-group_2.entry.js +3 -3
  845. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  846. package/dist/esm-es5/calcite-scrim.entry.js +2 -2
  847. package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
  848. package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
  849. package/dist/esm-es5/calcite-split-button.entry.js +2 -2
  850. package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
  851. package/dist/esm-es5/calcite-switch.entry.js +3 -3
  852. package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
  853. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  854. package/dist/esm-es5/calcite-tile.entry.js +2 -2
  855. package/dist/esm-es5/calcite-tip_3.entry.js +3 -3
  856. package/dist/esm-es5/calcite-tooltip_2.entry.js +3 -3
  857. package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
  858. package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
  859. package/dist/esm-es5/calcite.js +2 -2
  860. package/dist/esm-es5/{conditionalSlot-13c69fa9.js → conditionalSlot-e49df07c.js} +2 -2
  861. package/dist/esm-es5/{debounce-bef6fc2c.js → debounce-76a1065a.js} +1 -1
  862. package/dist/esm-es5/{dom-6c1f7204.js → dom-19ab3d2f.js} +2 -2
  863. package/dist/esm-es5/floating-ui-4afc064e.js +6 -0
  864. package/dist/esm-es5/{forIn-566610cc.js → forIn-1c3a0d8e.js} +2 -2
  865. package/dist/esm-es5/{form-115e3241.js → form-ecbc6fec.js} +2 -2
  866. package/dist/esm-es5/{guid-9ee41ac6.js → guid-ba74e5d4.js} +1 -1
  867. package/dist/esm-es5/{index-dfcf10d7.js → index-5048a317.js} +1 -1
  868. package/dist/esm-es5/index.js +1 -1
  869. package/dist/esm-es5/{interactive-2a03c362.js → interactive-71744e3e.js} +1 -1
  870. package/dist/esm-es5/{interfaces-02cee59d.js → interfaces-e771f6c8.js} +1 -1
  871. package/dist/esm-es5/{key-1219c482.js → key-af81a004.js} +1 -1
  872. package/dist/esm-es5/{label-b30a7cde.js → label-dfcfa9e0.js} +2 -2
  873. package/dist/esm-es5/loader.js +2 -2
  874. package/dist/esm-es5/{locale-98144f51.js → locale-ab6b5afc.js} +2 -2
  875. package/dist/esm-es5/{math-7409ae0d.js → math-a5e24a73.js} +1 -1
  876. package/dist/esm-es5/{observers-fa0db945.js → observers-61a2bb4f.js} +1 -1
  877. package/dist/esm-es5/{resources-ccd18bbb.js → resources-566ead7b.js} +2 -2
  878. package/dist/esm-es5/{resources-7198828a.js → resources-9348154b.js} +1 -1
  879. package/dist/esm-es5/{resources-3157143b.js → resources-c995bb5e.js} +2 -2
  880. package/dist/esm-es5/{resources-3b67e62a.js → resources-e1d5ca1c.js} +1 -1
  881. package/dist/esm-es5/{sortable.esm-e7918a0d.js → sortable.esm-d0f38173.js} +1 -1
  882. package/dist/esm-es5/{utils-06a51b70.js → utils-531de8fa.js} +1 -1
  883. package/dist/extras/docs-json.json +286 -169
  884. package/dist/loader/cdn.js +1 -1
  885. package/dist/loader/index.cjs.js +1 -1
  886. package/dist/loader/index.es2017.js +1 -1
  887. package/dist/loader/index.js +1 -1
  888. package/dist/types/components/accordion/accordion.d.ts +4 -4
  889. package/dist/types/components/accordion/interfaces.d.ts +3 -0
  890. package/dist/types/components/accordion-item/accordion-item.d.ts +13 -7
  891. package/dist/types/components/accordion-item/interfaces.d.ts +11 -0
  892. package/dist/types/components/accordion-item/resources.d.ts +16 -0
  893. package/dist/types/components/action/action.d.ts +1 -1
  894. package/dist/types/components/action-bar/action-bar.d.ts +1 -1
  895. package/dist/types/components/action-group/action-group.d.ts +2 -1
  896. package/dist/types/components/action-menu/action-menu.d.ts +8 -8
  897. package/dist/types/components/action-pad/action-pad.d.ts +1 -1
  898. package/dist/types/components/alert/alert.d.ts +20 -24
  899. package/dist/types/components/alert/interfaces.d.ts +3 -0
  900. package/dist/types/components/block/block.d.ts +6 -2
  901. package/dist/types/components/block-section/block-section.d.ts +1 -1
  902. package/dist/types/components/card/card.d.ts +1 -1
  903. package/dist/types/components/checkbox/checkbox.d.ts +3 -3
  904. package/dist/types/components/chip/chip.d.ts +7 -3
  905. package/dist/types/components/color-picker/color-picker.d.ts +2 -2
  906. package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +1 -1
  907. package/dist/types/components/combobox/combobox.d.ts +25 -28
  908. package/dist/types/components/combobox-item/combobox-item.d.ts +4 -2
  909. package/dist/types/components/date-picker/date-picker.d.ts +5 -5
  910. package/dist/types/components/date-picker-day/date-picker-day.d.ts +3 -3
  911. package/dist/types/components/date-picker-month/date-picker-month.d.ts +7 -7
  912. package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +1 -1
  913. package/dist/types/components/dropdown/dropdown.d.ts +27 -31
  914. package/dist/types/components/dropdown-group/dropdown-group.d.ts +2 -2
  915. package/dist/types/components/dropdown-group/interfaces.d.ts +4 -0
  916. package/dist/types/components/dropdown-item/dropdown-item.d.ts +4 -3
  917. package/dist/types/components/handle/handle.d.ts +4 -1
  918. package/dist/types/components/inline-editable/inline-editable.d.ts +1 -1
  919. package/dist/types/components/input/input.d.ts +6 -4
  920. package/dist/types/components/input-date-picker/input-date-picker.d.ts +37 -26
  921. package/dist/types/components/input-number/input-number.d.ts +6 -4
  922. package/dist/types/components/input-time-picker/input-time-picker.d.ts +4 -5
  923. package/dist/types/components/interfaces.d.ts +1 -0
  924. package/dist/types/components/loader/loader.d.ts +5 -1
  925. package/dist/types/components/modal/modal.d.ts +23 -7
  926. package/dist/types/components/notice/notice.d.ts +11 -3
  927. package/dist/types/components/panel/panel.d.ts +12 -9
  928. package/dist/types/components/popover/PopoverManager.d.ts +1 -1
  929. package/dist/types/components/popover/popover.d.ts +24 -15
  930. package/dist/types/components/radio-button/radio-button.d.ts +4 -4
  931. package/dist/types/components/radio-button-group/radio-button-group.d.ts +1 -1
  932. package/dist/types/components/radio-group-item/radio-group-item.d.ts +1 -1
  933. package/dist/types/components/shell-panel/shell-panel.d.ts +1 -1
  934. package/dist/types/components/slider/slider.d.ts +3 -3
  935. package/dist/types/components/sortable-list/sortable-list.d.ts +1 -1
  936. package/dist/types/components/split-button/split-button.d.ts +14 -6
  937. package/dist/types/components/stepper/interfaces.d.ts +0 -1
  938. package/dist/types/components/stepper/stepper.d.ts +4 -13
  939. package/dist/types/components/stepper-item/stepper-item.d.ts +2 -2
  940. package/dist/types/components/switch/switch.d.ts +5 -3
  941. package/dist/types/components/tab/tab.d.ts +1 -1
  942. package/dist/types/components/tab-nav/tab-nav.d.ts +7 -7
  943. package/dist/types/components/tab-title/tab-title.d.ts +3 -3
  944. package/dist/types/components/tabs/tabs.d.ts +8 -8
  945. package/dist/types/components/tile-select/tile-select.d.ts +1 -1
  946. package/dist/types/components/tip/tip.d.ts +1 -1
  947. package/dist/types/components/tip-manager/tip-manager.d.ts +3 -3
  948. package/dist/types/components/tooltip/TooltipManager.d.ts +1 -1
  949. package/dist/types/components/tooltip/tooltip.d.ts +6 -9
  950. package/dist/types/components/tree/tree.d.ts +2 -2
  951. package/dist/types/components/tree-item/tree-item.d.ts +2 -2
  952. package/dist/types/components.d.ts +203 -120
  953. package/dist/types/preact.d.ts +15 -9
  954. package/dist/types/utils/floating-ui.d.ts +109 -0
  955. package/hydrate/index.js +2240 -2557
  956. package/package.json +30 -26
  957. package/readme.md +2 -2
  958. package/dist/calcite/p-03005912.system.entry.js +0 -6
  959. package/dist/calcite/p-05acf942.system.entry.js +0 -6
  960. package/dist/calcite/p-098bf101.entry.js +0 -6
  961. package/dist/calcite/p-0ac22887.js +0 -6
  962. package/dist/calcite/p-0d0ab1c5.system.entry.js +0 -6
  963. package/dist/calcite/p-15a9e209.system.entry.js +0 -6
  964. package/dist/calcite/p-17c8a622.system.entry.js +0 -6
  965. package/dist/calcite/p-1b79a3a3.entry.js +0 -6
  966. package/dist/calcite/p-1b939beb.system.entry.js +0 -6
  967. package/dist/calcite/p-1e7d3d02.system.entry.js +0 -6
  968. package/dist/calcite/p-1e9d27fe.system.entry.js +0 -6
  969. package/dist/calcite/p-1ef82cc5.system.entry.js +0 -6
  970. package/dist/calcite/p-1f0bf183.system.entry.js +0 -6
  971. package/dist/calcite/p-22217b06.entry.js +0 -6
  972. package/dist/calcite/p-27f31e04.js +0 -6
  973. package/dist/calcite/p-29122323.system.entry.js +0 -6
  974. package/dist/calcite/p-2d556f94.system.entry.js +0 -6
  975. package/dist/calcite/p-2d7b7215.system.entry.js +0 -6
  976. package/dist/calcite/p-36ee6a02.entry.js +0 -6
  977. package/dist/calcite/p-37f621e1.entry.js +0 -6
  978. package/dist/calcite/p-386d256d.entry.js +0 -6
  979. package/dist/calcite/p-39201c6f.entry.js +0 -6
  980. package/dist/calcite/p-40825758.entry.js +0 -6
  981. package/dist/calcite/p-40ddce6a.system.entry.js +0 -6
  982. package/dist/calcite/p-451e4a81.entry.js +0 -6
  983. package/dist/calcite/p-498af5d7.system.entry.js +0 -6
  984. package/dist/calcite/p-55b9c3d8.system.entry.js +0 -6
  985. package/dist/calcite/p-58ba388d.entry.js +0 -6
  986. package/dist/calcite/p-62f31a5a.system.entry.js +0 -6
  987. package/dist/calcite/p-661fe743.system.js +0 -6
  988. package/dist/calcite/p-667c6be1.entry.js +0 -6
  989. package/dist/calcite/p-670df541.system.entry.js +0 -6
  990. package/dist/calcite/p-6abdcefa.system.entry.js +0 -6
  991. package/dist/calcite/p-6f3fad62.system.entry.js +0 -6
  992. package/dist/calcite/p-705dcfd0.system.entry.js +0 -6
  993. package/dist/calcite/p-7124aeac.entry.js +0 -6
  994. package/dist/calcite/p-718bec4c.entry.js +0 -6
  995. package/dist/calcite/p-71df706c.system.entry.js +0 -6
  996. package/dist/calcite/p-7285074f.entry.js +0 -6
  997. package/dist/calcite/p-72d06cc6.entry.js +0 -6
  998. package/dist/calcite/p-7624aeb6.system.entry.js +0 -6
  999. package/dist/calcite/p-78f82837.system.entry.js +0 -6
  1000. package/dist/calcite/p-81460471.entry.js +0 -6
  1001. package/dist/calcite/p-822445af.entry.js +0 -6
  1002. package/dist/calcite/p-82655fe7.entry.js +0 -6
  1003. package/dist/calcite/p-82c99865.entry.js +0 -6
  1004. package/dist/calcite/p-8381e935.system.entry.js +0 -6
  1005. package/dist/calcite/p-869ceaf2.system.entry.js +0 -6
  1006. package/dist/calcite/p-8701d6ec.js +0 -6
  1007. package/dist/calcite/p-881346ec.system.entry.js +0 -6
  1008. package/dist/calcite/p-8b8580be.system.entry.js +0 -6
  1009. package/dist/calcite/p-8d90241c.system.entry.js +0 -6
  1010. package/dist/calcite/p-8e8279db.system.entry.js +0 -6
  1011. package/dist/calcite/p-8f8f1f3c.entry.js +0 -6
  1012. package/dist/calcite/p-92c0a612.entry.js +0 -6
  1013. package/dist/calcite/p-93fb8320.js +0 -6
  1014. package/dist/calcite/p-97f24602.entry.js +0 -6
  1015. package/dist/calcite/p-9e7c867f.entry.js +0 -6
  1016. package/dist/calcite/p-a1dec328.system.entry.js +0 -6
  1017. package/dist/calcite/p-a574d688.entry.js +0 -6
  1018. package/dist/calcite/p-a6da6fa9.entry.js +0 -6
  1019. package/dist/calcite/p-a6ec6d30.system.entry.js +0 -6
  1020. package/dist/calcite/p-a792b4d4.system.entry.js +0 -6
  1021. package/dist/calcite/p-a8d26072.entry.js +0 -6
  1022. package/dist/calcite/p-a8e86b7c.system.js +0 -6
  1023. package/dist/calcite/p-a930b4c7.system.entry.js +0 -6
  1024. package/dist/calcite/p-ad42a290.system.entry.js +0 -6
  1025. package/dist/calcite/p-afa96d7b.entry.js +0 -6
  1026. package/dist/calcite/p-b3b7d99f.entry.js +0 -6
  1027. package/dist/calcite/p-b3c08277.system.entry.js +0 -6
  1028. package/dist/calcite/p-bbad2c78.entry.js +0 -6
  1029. package/dist/calcite/p-bbc195d0.system.entry.js +0 -6
  1030. package/dist/calcite/p-be0b7ae8.entry.js +0 -6
  1031. package/dist/calcite/p-bed13ccd.system.entry.js +0 -6
  1032. package/dist/calcite/p-c075111b.system.entry.js +0 -6
  1033. package/dist/calcite/p-c09197e1.system.entry.js +0 -6
  1034. package/dist/calcite/p-c3200434.system.entry.js +0 -6
  1035. package/dist/calcite/p-cda3843c.entry.js +0 -6
  1036. package/dist/calcite/p-d1fef3a5.entry.js +0 -6
  1037. package/dist/calcite/p-d69560ee.system.entry.js +0 -6
  1038. package/dist/calcite/p-d7614205.entry.js +0 -6
  1039. package/dist/calcite/p-d8cca171.system.entry.js +0 -6
  1040. package/dist/calcite/p-d8d3ee29.entry.js +0 -6
  1041. package/dist/calcite/p-d91ab8b3.system.entry.js +0 -6
  1042. package/dist/calcite/p-da603fb6.system.js +0 -6
  1043. package/dist/calcite/p-dc5681bd.system.entry.js +0 -6
  1044. package/dist/calcite/p-dda6305e.system.entry.js +0 -6
  1045. package/dist/calcite/p-dfd66185.entry.js +0 -6
  1046. package/dist/calcite/p-e4a9f3a3.entry.js +0 -6
  1047. package/dist/calcite/p-e5100a68.system.entry.js +0 -6
  1048. package/dist/calcite/p-e55af056.entry.js +0 -6
  1049. package/dist/calcite/p-ec0ff216.entry.js +0 -6
  1050. package/dist/calcite/p-ee4221f2.entry.js +0 -6
  1051. package/dist/calcite/p-ef596bf4.system.js +0 -6
  1052. package/dist/calcite/p-f29e929e.system.entry.js +0 -6
  1053. package/dist/calcite/p-fcbb3104.entry.js +0 -6
  1054. package/dist/calcite/p-fe758da5.system.entry.js +0 -6
  1055. package/dist/calcite/p-ffc4d4f5.system.entry.js +0 -6
  1056. package/dist/cjs/popper-f29f9a3b.js +0 -1876
  1057. package/dist/collection/utils/popper.js +0 -126
  1058. package/dist/components/popper.js +0 -1868
  1059. package/dist/esm/popper-f38ba1ab.js +0 -1868
  1060. package/dist/esm-es5/popper-f38ba1ab.js +0 -6
  1061. package/dist/types/utils/popper.d.ts +0 -35
@@ -1,1868 +0,0 @@
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.86
5
- */
6
- import { a as getElementDir } from './dom-6c1f7204.js';
7
-
8
- var top = 'top';
9
- var bottom = 'bottom';
10
- var right = 'right';
11
- var left = 'left';
12
- var auto = 'auto';
13
- var basePlacements = [top, bottom, right, left];
14
- var start = 'start';
15
- var end = 'end';
16
- var clippingParents = 'clippingParents';
17
- var viewport = 'viewport';
18
- var popper = 'popper';
19
- var reference = 'reference';
20
- var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
21
- return acc.concat([placement + "-" + start, placement + "-" + end]);
22
- }, []);
23
- var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
24
- return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
25
- }, []); // modifiers that need to read the DOM
26
-
27
- var beforeRead = 'beforeRead';
28
- var read = 'read';
29
- var afterRead = 'afterRead'; // pure-logic modifiers
30
-
31
- var beforeMain = 'beforeMain';
32
- var main = 'main';
33
- var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
34
-
35
- var beforeWrite = 'beforeWrite';
36
- var write = 'write';
37
- var afterWrite = 'afterWrite';
38
- var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
39
-
40
- function getNodeName(element) {
41
- return element ? (element.nodeName || '').toLowerCase() : null;
42
- }
43
-
44
- function getWindow(node) {
45
- if (node == null) {
46
- return window;
47
- }
48
-
49
- if (node.toString() !== '[object Window]') {
50
- var ownerDocument = node.ownerDocument;
51
- return ownerDocument ? ownerDocument.defaultView || window : window;
52
- }
53
-
54
- return node;
55
- }
56
-
57
- function isElement(node) {
58
- var OwnElement = getWindow(node).Element;
59
- return node instanceof OwnElement || node instanceof Element;
60
- }
61
-
62
- function isHTMLElement(node) {
63
- var OwnElement = getWindow(node).HTMLElement;
64
- return node instanceof OwnElement || node instanceof HTMLElement;
65
- }
66
-
67
- function isShadowRoot(node) {
68
- // IE 11 has no ShadowRoot
69
- if (typeof ShadowRoot === 'undefined') {
70
- return false;
71
- }
72
-
73
- var OwnElement = getWindow(node).ShadowRoot;
74
- return node instanceof OwnElement || node instanceof ShadowRoot;
75
- }
76
-
77
- // and applies them to the HTMLElements such as popper and arrow
78
-
79
- function applyStyles(_ref) {
80
- var state = _ref.state;
81
- Object.keys(state.elements).forEach(function (name) {
82
- var style = state.styles[name] || {};
83
- var attributes = state.attributes[name] || {};
84
- var element = state.elements[name]; // arrow is optional + virtual elements
85
-
86
- if (!isHTMLElement(element) || !getNodeName(element)) {
87
- return;
88
- } // Flow doesn't support to extend this property, but it's the most
89
- // effective way to apply styles to an HTMLElement
90
- // $FlowFixMe[cannot-write]
91
-
92
-
93
- Object.assign(element.style, style);
94
- Object.keys(attributes).forEach(function (name) {
95
- var value = attributes[name];
96
-
97
- if (value === false) {
98
- element.removeAttribute(name);
99
- } else {
100
- element.setAttribute(name, value === true ? '' : value);
101
- }
102
- });
103
- });
104
- }
105
-
106
- function effect$2(_ref2) {
107
- var state = _ref2.state;
108
- var initialStyles = {
109
- popper: {
110
- position: state.options.strategy,
111
- left: '0',
112
- top: '0',
113
- margin: '0'
114
- },
115
- arrow: {
116
- position: 'absolute'
117
- },
118
- reference: {}
119
- };
120
- Object.assign(state.elements.popper.style, initialStyles.popper);
121
- state.styles = initialStyles;
122
-
123
- if (state.elements.arrow) {
124
- Object.assign(state.elements.arrow.style, initialStyles.arrow);
125
- }
126
-
127
- return function () {
128
- Object.keys(state.elements).forEach(function (name) {
129
- var element = state.elements[name];
130
- var attributes = state.attributes[name] || {};
131
- var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
132
-
133
- var style = styleProperties.reduce(function (style, property) {
134
- style[property] = '';
135
- return style;
136
- }, {}); // arrow is optional + virtual elements
137
-
138
- if (!isHTMLElement(element) || !getNodeName(element)) {
139
- return;
140
- }
141
-
142
- Object.assign(element.style, style);
143
- Object.keys(attributes).forEach(function (attribute) {
144
- element.removeAttribute(attribute);
145
- });
146
- });
147
- };
148
- } // eslint-disable-next-line import/no-unused-modules
149
-
150
-
151
- const applyStyles$1 = {
152
- name: 'applyStyles',
153
- enabled: true,
154
- phase: 'write',
155
- fn: applyStyles,
156
- effect: effect$2,
157
- requires: ['computeStyles']
158
- };
159
-
160
- function getBasePlacement(placement) {
161
- return placement.split('-')[0];
162
- }
163
-
164
- var max = Math.max;
165
- var min = Math.min;
166
- var round = Math.round;
167
-
168
- function getBoundingClientRect(element, includeScale) {
169
- if (includeScale === void 0) {
170
- includeScale = false;
171
- }
172
-
173
- var rect = element.getBoundingClientRect();
174
- var scaleX = 1;
175
- var scaleY = 1;
176
-
177
- if (isHTMLElement(element) && includeScale) {
178
- var offsetHeight = element.offsetHeight;
179
- var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
180
- // Fallback to 1 in case both values are `0`
181
-
182
- if (offsetWidth > 0) {
183
- scaleX = round(rect.width) / offsetWidth || 1;
184
- }
185
-
186
- if (offsetHeight > 0) {
187
- scaleY = round(rect.height) / offsetHeight || 1;
188
- }
189
- }
190
-
191
- return {
192
- width: rect.width / scaleX,
193
- height: rect.height / scaleY,
194
- top: rect.top / scaleY,
195
- right: rect.right / scaleX,
196
- bottom: rect.bottom / scaleY,
197
- left: rect.left / scaleX,
198
- x: rect.left / scaleX,
199
- y: rect.top / scaleY
200
- };
201
- }
202
-
203
- // means it doesn't take into account transforms.
204
-
205
- function getLayoutRect(element) {
206
- var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
207
- // Fixes https://github.com/popperjs/popper-core/issues/1223
208
-
209
- var width = element.offsetWidth;
210
- var height = element.offsetHeight;
211
-
212
- if (Math.abs(clientRect.width - width) <= 1) {
213
- width = clientRect.width;
214
- }
215
-
216
- if (Math.abs(clientRect.height - height) <= 1) {
217
- height = clientRect.height;
218
- }
219
-
220
- return {
221
- x: element.offsetLeft,
222
- y: element.offsetTop,
223
- width: width,
224
- height: height
225
- };
226
- }
227
-
228
- function contains(parent, child) {
229
- var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
230
-
231
- if (parent.contains(child)) {
232
- return true;
233
- } // then fallback to custom implementation with Shadow DOM support
234
- else if (rootNode && isShadowRoot(rootNode)) {
235
- var next = child;
236
-
237
- do {
238
- if (next && parent.isSameNode(next)) {
239
- return true;
240
- } // $FlowFixMe[prop-missing]: need a better way to handle this...
241
-
242
-
243
- next = next.parentNode || next.host;
244
- } while (next);
245
- } // Give up, the result is false
246
-
247
-
248
- return false;
249
- }
250
-
251
- function getComputedStyle(element) {
252
- return getWindow(element).getComputedStyle(element);
253
- }
254
-
255
- function isTableElement(element) {
256
- return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
257
- }
258
-
259
- function getDocumentElement(element) {
260
- // $FlowFixMe[incompatible-return]: assume body is always available
261
- return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
262
- element.document) || window.document).documentElement;
263
- }
264
-
265
- function getParentNode(element) {
266
- if (getNodeName(element) === 'html') {
267
- return element;
268
- }
269
-
270
- return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
271
- // $FlowFixMe[incompatible-return]
272
- // $FlowFixMe[prop-missing]
273
- element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
274
- element.parentNode || ( // DOM Element detected
275
- isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
276
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
277
- getDocumentElement(element) // fallback
278
-
279
- );
280
- }
281
-
282
- function getTrueOffsetParent(element) {
283
- if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
284
- getComputedStyle(element).position === 'fixed') {
285
- return null;
286
- }
287
-
288
- return element.offsetParent;
289
- } // `.offsetParent` reports `null` for fixed elements, while absolute elements
290
- // return the containing block
291
-
292
-
293
- function getContainingBlock(element) {
294
- var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
295
- var isIE = navigator.userAgent.indexOf('Trident') !== -1;
296
-
297
- if (isIE && isHTMLElement(element)) {
298
- // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
299
- var elementCss = getComputedStyle(element);
300
-
301
- if (elementCss.position === 'fixed') {
302
- return null;
303
- }
304
- }
305
-
306
- var currentNode = getParentNode(element);
307
-
308
- if (isShadowRoot(currentNode)) {
309
- currentNode = currentNode.host;
310
- }
311
-
312
- while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
313
- var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
314
- // create a containing block.
315
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
316
-
317
- if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
318
- return currentNode;
319
- } else {
320
- currentNode = currentNode.parentNode;
321
- }
322
- }
323
-
324
- return null;
325
- } // Gets the closest ancestor positioned element. Handles some edge cases,
326
- // such as table ancestors and cross browser bugs.
327
-
328
-
329
- function getOffsetParent(element) {
330
- var window = getWindow(element);
331
- var offsetParent = getTrueOffsetParent(element);
332
-
333
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
334
- offsetParent = getTrueOffsetParent(offsetParent);
335
- }
336
-
337
- if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {
338
- return window;
339
- }
340
-
341
- return offsetParent || getContainingBlock(element) || window;
342
- }
343
-
344
- function getMainAxisFromPlacement(placement) {
345
- return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
346
- }
347
-
348
- function within(min$1, value, max$1) {
349
- return max(min$1, min(value, max$1));
350
- }
351
- function withinMaxClamp(min, value, max) {
352
- var v = within(min, value, max);
353
- return v > max ? max : v;
354
- }
355
-
356
- function getFreshSideObject() {
357
- return {
358
- top: 0,
359
- right: 0,
360
- bottom: 0,
361
- left: 0
362
- };
363
- }
364
-
365
- function mergePaddingObject(paddingObject) {
366
- return Object.assign({}, getFreshSideObject(), paddingObject);
367
- }
368
-
369
- function expandToHashMap(value, keys) {
370
- return keys.reduce(function (hashMap, key) {
371
- hashMap[key] = value;
372
- return hashMap;
373
- }, {});
374
- }
375
-
376
- var toPaddingObject = function toPaddingObject(padding, state) {
377
- padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
378
- placement: state.placement
379
- })) : padding;
380
- return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
381
- };
382
-
383
- function arrow(_ref) {
384
- var _state$modifiersData$;
385
-
386
- var state = _ref.state,
387
- name = _ref.name,
388
- options = _ref.options;
389
- var arrowElement = state.elements.arrow;
390
- var popperOffsets = state.modifiersData.popperOffsets;
391
- var basePlacement = getBasePlacement(state.placement);
392
- var axis = getMainAxisFromPlacement(basePlacement);
393
- var isVertical = [left, right].indexOf(basePlacement) >= 0;
394
- var len = isVertical ? 'height' : 'width';
395
-
396
- if (!arrowElement || !popperOffsets) {
397
- return;
398
- }
399
-
400
- var paddingObject = toPaddingObject(options.padding, state);
401
- var arrowRect = getLayoutRect(arrowElement);
402
- var minProp = axis === 'y' ? top : left;
403
- var maxProp = axis === 'y' ? bottom : right;
404
- var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
405
- var startDiff = popperOffsets[axis] - state.rects.reference[axis];
406
- var arrowOffsetParent = getOffsetParent(arrowElement);
407
- var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
408
- var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
409
- // outside of the popper bounds
410
-
411
- var min = paddingObject[minProp];
412
- var max = clientSize - arrowRect[len] - paddingObject[maxProp];
413
- var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
414
- var offset = within(min, center, max); // Prevents breaking syntax highlighting...
415
-
416
- var axisProp = axis;
417
- state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
418
- }
419
-
420
- function effect$1(_ref2) {
421
- var state = _ref2.state,
422
- options = _ref2.options;
423
- var _options$element = options.element,
424
- arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
425
-
426
- if (arrowElement == null) {
427
- return;
428
- } // CSS selector
429
-
430
-
431
- if (typeof arrowElement === 'string') {
432
- arrowElement = state.elements.popper.querySelector(arrowElement);
433
-
434
- if (!arrowElement) {
435
- return;
436
- }
437
- }
438
-
439
- if (!contains(state.elements.popper, arrowElement)) {
440
-
441
- return;
442
- }
443
-
444
- state.elements.arrow = arrowElement;
445
- } // eslint-disable-next-line import/no-unused-modules
446
-
447
-
448
- const arrow$1 = {
449
- name: 'arrow',
450
- enabled: true,
451
- phase: 'main',
452
- fn: arrow,
453
- effect: effect$1,
454
- requires: ['popperOffsets'],
455
- requiresIfExists: ['preventOverflow']
456
- };
457
-
458
- function getVariation(placement) {
459
- return placement.split('-')[1];
460
- }
461
-
462
- var unsetSides = {
463
- top: 'auto',
464
- right: 'auto',
465
- bottom: 'auto',
466
- left: 'auto'
467
- }; // Round the offsets to the nearest suitable subpixel based on the DPR.
468
- // Zooming can change the DPR, but it seems to report a value that will
469
- // cleanly divide the values into the appropriate subpixels.
470
-
471
- function roundOffsetsByDPR(_ref) {
472
- var x = _ref.x,
473
- y = _ref.y;
474
- var win = window;
475
- var dpr = win.devicePixelRatio || 1;
476
- return {
477
- x: round(x * dpr) / dpr || 0,
478
- y: round(y * dpr) / dpr || 0
479
- };
480
- }
481
-
482
- function mapToStyles(_ref2) {
483
- var _Object$assign2;
484
-
485
- var popper = _ref2.popper,
486
- popperRect = _ref2.popperRect,
487
- placement = _ref2.placement,
488
- variation = _ref2.variation,
489
- offsets = _ref2.offsets,
490
- position = _ref2.position,
491
- gpuAcceleration = _ref2.gpuAcceleration,
492
- adaptive = _ref2.adaptive,
493
- roundOffsets = _ref2.roundOffsets,
494
- isFixed = _ref2.isFixed;
495
- var _offsets$x = offsets.x,
496
- x = _offsets$x === void 0 ? 0 : _offsets$x,
497
- _offsets$y = offsets.y,
498
- y = _offsets$y === void 0 ? 0 : _offsets$y;
499
-
500
- var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
501
- x: x,
502
- y: y
503
- }) : {
504
- x: x,
505
- y: y
506
- };
507
-
508
- x = _ref3.x;
509
- y = _ref3.y;
510
- var hasX = offsets.hasOwnProperty('x');
511
- var hasY = offsets.hasOwnProperty('y');
512
- var sideX = left;
513
- var sideY = top;
514
- var win = window;
515
-
516
- if (adaptive) {
517
- var offsetParent = getOffsetParent(popper);
518
- var heightProp = 'clientHeight';
519
- var widthProp = 'clientWidth';
520
-
521
- if (offsetParent === getWindow(popper)) {
522
- offsetParent = getDocumentElement(popper);
523
-
524
- if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
525
- heightProp = 'scrollHeight';
526
- widthProp = 'scrollWidth';
527
- }
528
- } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
529
-
530
-
531
- offsetParent = offsetParent;
532
-
533
- if (placement === top || (placement === left || placement === right) && variation === end) {
534
- sideY = bottom;
535
- var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
536
- offsetParent[heightProp];
537
- y -= offsetY - popperRect.height;
538
- y *= gpuAcceleration ? 1 : -1;
539
- }
540
-
541
- if (placement === left || (placement === top || placement === bottom) && variation === end) {
542
- sideX = right;
543
- var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
544
- offsetParent[widthProp];
545
- x -= offsetX - popperRect.width;
546
- x *= gpuAcceleration ? 1 : -1;
547
- }
548
- }
549
-
550
- var commonStyles = Object.assign({
551
- position: position
552
- }, adaptive && unsetSides);
553
-
554
- var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
555
- x: x,
556
- y: y
557
- }) : {
558
- x: x,
559
- y: y
560
- };
561
-
562
- x = _ref4.x;
563
- y = _ref4.y;
564
-
565
- if (gpuAcceleration) {
566
- var _Object$assign;
567
-
568
- return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
569
- }
570
-
571
- return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
572
- }
573
-
574
- function computeStyles(_ref5) {
575
- var state = _ref5.state,
576
- options = _ref5.options;
577
- var _options$gpuAccelerat = options.gpuAcceleration,
578
- gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
579
- _options$adaptive = options.adaptive,
580
- adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
581
- _options$roundOffsets = options.roundOffsets,
582
- roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
583
-
584
- var commonStyles = {
585
- placement: getBasePlacement(state.placement),
586
- variation: getVariation(state.placement),
587
- popper: state.elements.popper,
588
- popperRect: state.rects.popper,
589
- gpuAcceleration: gpuAcceleration,
590
- isFixed: state.options.strategy === 'fixed'
591
- };
592
-
593
- if (state.modifiersData.popperOffsets != null) {
594
- state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
595
- offsets: state.modifiersData.popperOffsets,
596
- position: state.options.strategy,
597
- adaptive: adaptive,
598
- roundOffsets: roundOffsets
599
- })));
600
- }
601
-
602
- if (state.modifiersData.arrow != null) {
603
- state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
604
- offsets: state.modifiersData.arrow,
605
- position: 'absolute',
606
- adaptive: false,
607
- roundOffsets: roundOffsets
608
- })));
609
- }
610
-
611
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
612
- 'data-popper-placement': state.placement
613
- });
614
- } // eslint-disable-next-line import/no-unused-modules
615
-
616
-
617
- const computeStyles$1 = {
618
- name: 'computeStyles',
619
- enabled: true,
620
- phase: 'beforeWrite',
621
- fn: computeStyles,
622
- data: {}
623
- };
624
-
625
- var passive = {
626
- passive: true
627
- };
628
-
629
- function effect(_ref) {
630
- var state = _ref.state,
631
- instance = _ref.instance,
632
- options = _ref.options;
633
- var _options$scroll = options.scroll,
634
- scroll = _options$scroll === void 0 ? true : _options$scroll,
635
- _options$resize = options.resize,
636
- resize = _options$resize === void 0 ? true : _options$resize;
637
- var window = getWindow(state.elements.popper);
638
- var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
639
-
640
- if (scroll) {
641
- scrollParents.forEach(function (scrollParent) {
642
- scrollParent.addEventListener('scroll', instance.update, passive);
643
- });
644
- }
645
-
646
- if (resize) {
647
- window.addEventListener('resize', instance.update, passive);
648
- }
649
-
650
- return function () {
651
- if (scroll) {
652
- scrollParents.forEach(function (scrollParent) {
653
- scrollParent.removeEventListener('scroll', instance.update, passive);
654
- });
655
- }
656
-
657
- if (resize) {
658
- window.removeEventListener('resize', instance.update, passive);
659
- }
660
- };
661
- } // eslint-disable-next-line import/no-unused-modules
662
-
663
-
664
- const eventListeners = {
665
- name: 'eventListeners',
666
- enabled: true,
667
- phase: 'write',
668
- fn: function fn() {},
669
- effect: effect,
670
- data: {}
671
- };
672
-
673
- var hash$1 = {
674
- left: 'right',
675
- right: 'left',
676
- bottom: 'top',
677
- top: 'bottom'
678
- };
679
- function getOppositePlacement(placement) {
680
- return placement.replace(/left|right|bottom|top/g, function (matched) {
681
- return hash$1[matched];
682
- });
683
- }
684
-
685
- var hash = {
686
- start: 'end',
687
- end: 'start'
688
- };
689
- function getOppositeVariationPlacement(placement) {
690
- return placement.replace(/start|end/g, function (matched) {
691
- return hash[matched];
692
- });
693
- }
694
-
695
- function getWindowScroll(node) {
696
- var win = getWindow(node);
697
- var scrollLeft = win.pageXOffset;
698
- var scrollTop = win.pageYOffset;
699
- return {
700
- scrollLeft: scrollLeft,
701
- scrollTop: scrollTop
702
- };
703
- }
704
-
705
- function getWindowScrollBarX(element) {
706
- // If <html> has a CSS width greater than the viewport, then this will be
707
- // incorrect for RTL.
708
- // Popper 1 is broken in this case and never had a bug report so let's assume
709
- // it's not an issue. I don't think anyone ever specifies width on <html>
710
- // anyway.
711
- // Browsers where the left scrollbar doesn't cause an issue report `0` for
712
- // this (e.g. Edge 2019, IE11, Safari)
713
- return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
714
- }
715
-
716
- function getViewportRect(element) {
717
- var win = getWindow(element);
718
- var html = getDocumentElement(element);
719
- var visualViewport = win.visualViewport;
720
- var width = html.clientWidth;
721
- var height = html.clientHeight;
722
- var x = 0;
723
- var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
724
- // can be obscured underneath it.
725
- // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
726
- // if it isn't open, so if this isn't available, the popper will be detected
727
- // to overflow the bottom of the screen too early.
728
-
729
- if (visualViewport) {
730
- width = visualViewport.width;
731
- height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
732
- // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
733
- // errors due to floating point numbers, so we need to check precision.
734
- // Safari returns a number <= 0, usually < -1 when pinch-zoomed
735
- // Feature detection fails in mobile emulation mode in Chrome.
736
- // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
737
- // 0.001
738
- // Fallback here: "Not Safari" userAgent
739
-
740
- if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
741
- x = visualViewport.offsetLeft;
742
- y = visualViewport.offsetTop;
743
- }
744
- }
745
-
746
- return {
747
- width: width,
748
- height: height,
749
- x: x + getWindowScrollBarX(element),
750
- y: y
751
- };
752
- }
753
-
754
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable
755
-
756
- function getDocumentRect(element) {
757
- var _element$ownerDocumen;
758
-
759
- var html = getDocumentElement(element);
760
- var winScroll = getWindowScroll(element);
761
- var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
762
- var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
763
- var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
764
- var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
765
- var y = -winScroll.scrollTop;
766
-
767
- if (getComputedStyle(body || html).direction === 'rtl') {
768
- x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
769
- }
770
-
771
- return {
772
- width: width,
773
- height: height,
774
- x: x,
775
- y: y
776
- };
777
- }
778
-
779
- function isScrollParent(element) {
780
- // Firefox wants us to check `-x` and `-y` variations as well
781
- var _getComputedStyle = getComputedStyle(element),
782
- overflow = _getComputedStyle.overflow,
783
- overflowX = _getComputedStyle.overflowX,
784
- overflowY = _getComputedStyle.overflowY;
785
-
786
- return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
787
- }
788
-
789
- function getScrollParent(node) {
790
- if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
791
- // $FlowFixMe[incompatible-return]: assume body is always available
792
- return node.ownerDocument.body;
793
- }
794
-
795
- if (isHTMLElement(node) && isScrollParent(node)) {
796
- return node;
797
- }
798
-
799
- return getScrollParent(getParentNode(node));
800
- }
801
-
802
- /*
803
- given a DOM element, return the list of all scroll parents, up the list of ancesors
804
- until we get to the top window object. This list is what we attach scroll listeners
805
- to, because if any of these parent elements scroll, we'll need to re-calculate the
806
- reference element's position.
807
- */
808
-
809
- function listScrollParents(element, list) {
810
- var _element$ownerDocumen;
811
-
812
- if (list === void 0) {
813
- list = [];
814
- }
815
-
816
- var scrollParent = getScrollParent(element);
817
- var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
818
- var win = getWindow(scrollParent);
819
- var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
820
- var updatedList = list.concat(target);
821
- return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
822
- updatedList.concat(listScrollParents(getParentNode(target)));
823
- }
824
-
825
- function rectToClientRect(rect) {
826
- return Object.assign({}, rect, {
827
- left: rect.x,
828
- top: rect.y,
829
- right: rect.x + rect.width,
830
- bottom: rect.y + rect.height
831
- });
832
- }
833
-
834
- function getInnerBoundingClientRect(element) {
835
- var rect = getBoundingClientRect(element);
836
- rect.top = rect.top + element.clientTop;
837
- rect.left = rect.left + element.clientLeft;
838
- rect.bottom = rect.top + element.clientHeight;
839
- rect.right = rect.left + element.clientWidth;
840
- rect.width = element.clientWidth;
841
- rect.height = element.clientHeight;
842
- rect.x = rect.left;
843
- rect.y = rect.top;
844
- return rect;
845
- }
846
-
847
- function getClientRectFromMixedType(element, clippingParent) {
848
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
849
- } // A "clipping parent" is an overflowable container with the characteristic of
850
- // clipping (or hiding) overflowing elements with a position different from
851
- // `initial`
852
-
853
-
854
- function getClippingParents(element) {
855
- var clippingParents = listScrollParents(getParentNode(element));
856
- var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
857
- var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
858
-
859
- if (!isElement(clipperElement)) {
860
- return [];
861
- } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
862
-
863
-
864
- return clippingParents.filter(function (clippingParent) {
865
- return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
866
- });
867
- } // Gets the maximum area that the element is visible in due to any number of
868
- // clipping parents
869
-
870
-
871
- function getClippingRect(element, boundary, rootBoundary) {
872
- var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
873
- var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
874
- var firstClippingParent = clippingParents[0];
875
- var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
876
- var rect = getClientRectFromMixedType(element, clippingParent);
877
- accRect.top = max(rect.top, accRect.top);
878
- accRect.right = min(rect.right, accRect.right);
879
- accRect.bottom = min(rect.bottom, accRect.bottom);
880
- accRect.left = max(rect.left, accRect.left);
881
- return accRect;
882
- }, getClientRectFromMixedType(element, firstClippingParent));
883
- clippingRect.width = clippingRect.right - clippingRect.left;
884
- clippingRect.height = clippingRect.bottom - clippingRect.top;
885
- clippingRect.x = clippingRect.left;
886
- clippingRect.y = clippingRect.top;
887
- return clippingRect;
888
- }
889
-
890
- function computeOffsets(_ref) {
891
- var reference = _ref.reference,
892
- element = _ref.element,
893
- placement = _ref.placement;
894
- var basePlacement = placement ? getBasePlacement(placement) : null;
895
- var variation = placement ? getVariation(placement) : null;
896
- var commonX = reference.x + reference.width / 2 - element.width / 2;
897
- var commonY = reference.y + reference.height / 2 - element.height / 2;
898
- var offsets;
899
-
900
- switch (basePlacement) {
901
- case top:
902
- offsets = {
903
- x: commonX,
904
- y: reference.y - element.height
905
- };
906
- break;
907
-
908
- case bottom:
909
- offsets = {
910
- x: commonX,
911
- y: reference.y + reference.height
912
- };
913
- break;
914
-
915
- case right:
916
- offsets = {
917
- x: reference.x + reference.width,
918
- y: commonY
919
- };
920
- break;
921
-
922
- case left:
923
- offsets = {
924
- x: reference.x - element.width,
925
- y: commonY
926
- };
927
- break;
928
-
929
- default:
930
- offsets = {
931
- x: reference.x,
932
- y: reference.y
933
- };
934
- }
935
-
936
- var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
937
-
938
- if (mainAxis != null) {
939
- var len = mainAxis === 'y' ? 'height' : 'width';
940
-
941
- switch (variation) {
942
- case start:
943
- offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
944
- break;
945
-
946
- case end:
947
- offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
948
- break;
949
- }
950
- }
951
-
952
- return offsets;
953
- }
954
-
955
- function detectOverflow(state, options) {
956
- if (options === void 0) {
957
- options = {};
958
- }
959
-
960
- var _options = options,
961
- _options$placement = _options.placement,
962
- placement = _options$placement === void 0 ? state.placement : _options$placement,
963
- _options$boundary = _options.boundary,
964
- boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
965
- _options$rootBoundary = _options.rootBoundary,
966
- rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
967
- _options$elementConte = _options.elementContext,
968
- elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
969
- _options$altBoundary = _options.altBoundary,
970
- altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
971
- _options$padding = _options.padding,
972
- padding = _options$padding === void 0 ? 0 : _options$padding;
973
- var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
974
- var altContext = elementContext === popper ? reference : popper;
975
- var popperRect = state.rects.popper;
976
- var element = state.elements[altBoundary ? altContext : elementContext];
977
- var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
978
- var referenceClientRect = getBoundingClientRect(state.elements.reference);
979
- var popperOffsets = computeOffsets({
980
- reference: referenceClientRect,
981
- element: popperRect,
982
- strategy: 'absolute',
983
- placement: placement
984
- });
985
- var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
986
- var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
987
- // 0 or negative = within the clipping rect
988
-
989
- var overflowOffsets = {
990
- top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
991
- bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
992
- left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
993
- right: elementClientRect.right - clippingClientRect.right + paddingObject.right
994
- };
995
- var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
996
-
997
- if (elementContext === popper && offsetData) {
998
- var offset = offsetData[placement];
999
- Object.keys(overflowOffsets).forEach(function (key) {
1000
- var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
1001
- var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
1002
- overflowOffsets[key] += offset[axis] * multiply;
1003
- });
1004
- }
1005
-
1006
- return overflowOffsets;
1007
- }
1008
-
1009
- function computeAutoPlacement(state, options) {
1010
- if (options === void 0) {
1011
- options = {};
1012
- }
1013
-
1014
- var _options = options,
1015
- placement = _options.placement,
1016
- boundary = _options.boundary,
1017
- rootBoundary = _options.rootBoundary,
1018
- padding = _options.padding,
1019
- flipVariations = _options.flipVariations,
1020
- _options$allowedAutoP = _options.allowedAutoPlacements,
1021
- allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
1022
- var variation = getVariation(placement);
1023
- var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
1024
- return getVariation(placement) === variation;
1025
- }) : basePlacements;
1026
- var allowedPlacements = placements$1.filter(function (placement) {
1027
- return allowedAutoPlacements.indexOf(placement) >= 0;
1028
- });
1029
-
1030
- if (allowedPlacements.length === 0) {
1031
- allowedPlacements = placements$1;
1032
- } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
1033
-
1034
-
1035
- var overflows = allowedPlacements.reduce(function (acc, placement) {
1036
- acc[placement] = detectOverflow(state, {
1037
- placement: placement,
1038
- boundary: boundary,
1039
- rootBoundary: rootBoundary,
1040
- padding: padding
1041
- })[getBasePlacement(placement)];
1042
- return acc;
1043
- }, {});
1044
- return Object.keys(overflows).sort(function (a, b) {
1045
- return overflows[a] - overflows[b];
1046
- });
1047
- }
1048
-
1049
- function getExpandedFallbackPlacements(placement) {
1050
- if (getBasePlacement(placement) === auto) {
1051
- return [];
1052
- }
1053
-
1054
- var oppositePlacement = getOppositePlacement(placement);
1055
- return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
1056
- }
1057
-
1058
- function flip(_ref) {
1059
- var state = _ref.state,
1060
- options = _ref.options,
1061
- name = _ref.name;
1062
-
1063
- if (state.modifiersData[name]._skip) {
1064
- return;
1065
- }
1066
-
1067
- var _options$mainAxis = options.mainAxis,
1068
- checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1069
- _options$altAxis = options.altAxis,
1070
- checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
1071
- specifiedFallbackPlacements = options.fallbackPlacements,
1072
- padding = options.padding,
1073
- boundary = options.boundary,
1074
- rootBoundary = options.rootBoundary,
1075
- altBoundary = options.altBoundary,
1076
- _options$flipVariatio = options.flipVariations,
1077
- flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
1078
- allowedAutoPlacements = options.allowedAutoPlacements;
1079
- var preferredPlacement = state.options.placement;
1080
- var basePlacement = getBasePlacement(preferredPlacement);
1081
- var isBasePlacement = basePlacement === preferredPlacement;
1082
- var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
1083
- var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
1084
- return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {
1085
- placement: placement,
1086
- boundary: boundary,
1087
- rootBoundary: rootBoundary,
1088
- padding: padding,
1089
- flipVariations: flipVariations,
1090
- allowedAutoPlacements: allowedAutoPlacements
1091
- }) : placement);
1092
- }, []);
1093
- var referenceRect = state.rects.reference;
1094
- var popperRect = state.rects.popper;
1095
- var checksMap = new Map();
1096
- var makeFallbackChecks = true;
1097
- var firstFittingPlacement = placements[0];
1098
-
1099
- for (var i = 0; i < placements.length; i++) {
1100
- var placement = placements[i];
1101
-
1102
- var _basePlacement = getBasePlacement(placement);
1103
-
1104
- var isStartVariation = getVariation(placement) === start;
1105
- var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
1106
- var len = isVertical ? 'width' : 'height';
1107
- var overflow = detectOverflow(state, {
1108
- placement: placement,
1109
- boundary: boundary,
1110
- rootBoundary: rootBoundary,
1111
- altBoundary: altBoundary,
1112
- padding: padding
1113
- });
1114
- var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
1115
-
1116
- if (referenceRect[len] > popperRect[len]) {
1117
- mainVariationSide = getOppositePlacement(mainVariationSide);
1118
- }
1119
-
1120
- var altVariationSide = getOppositePlacement(mainVariationSide);
1121
- var checks = [];
1122
-
1123
- if (checkMainAxis) {
1124
- checks.push(overflow[_basePlacement] <= 0);
1125
- }
1126
-
1127
- if (checkAltAxis) {
1128
- checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
1129
- }
1130
-
1131
- if (checks.every(function (check) {
1132
- return check;
1133
- })) {
1134
- firstFittingPlacement = placement;
1135
- makeFallbackChecks = false;
1136
- break;
1137
- }
1138
-
1139
- checksMap.set(placement, checks);
1140
- }
1141
-
1142
- if (makeFallbackChecks) {
1143
- // `2` may be desired in some cases – research later
1144
- var numberOfChecks = flipVariations ? 3 : 1;
1145
-
1146
- var _loop = function _loop(_i) {
1147
- var fittingPlacement = placements.find(function (placement) {
1148
- var checks = checksMap.get(placement);
1149
-
1150
- if (checks) {
1151
- return checks.slice(0, _i).every(function (check) {
1152
- return check;
1153
- });
1154
- }
1155
- });
1156
-
1157
- if (fittingPlacement) {
1158
- firstFittingPlacement = fittingPlacement;
1159
- return "break";
1160
- }
1161
- };
1162
-
1163
- for (var _i = numberOfChecks; _i > 0; _i--) {
1164
- var _ret = _loop(_i);
1165
-
1166
- if (_ret === "break") break;
1167
- }
1168
- }
1169
-
1170
- if (state.placement !== firstFittingPlacement) {
1171
- state.modifiersData[name]._skip = true;
1172
- state.placement = firstFittingPlacement;
1173
- state.reset = true;
1174
- }
1175
- } // eslint-disable-next-line import/no-unused-modules
1176
-
1177
-
1178
- const flip$1 = {
1179
- name: 'flip',
1180
- enabled: true,
1181
- phase: 'main',
1182
- fn: flip,
1183
- requiresIfExists: ['offset'],
1184
- data: {
1185
- _skip: false
1186
- }
1187
- };
1188
-
1189
- function getSideOffsets(overflow, rect, preventedOffsets) {
1190
- if (preventedOffsets === void 0) {
1191
- preventedOffsets = {
1192
- x: 0,
1193
- y: 0
1194
- };
1195
- }
1196
-
1197
- return {
1198
- top: overflow.top - rect.height - preventedOffsets.y,
1199
- right: overflow.right - rect.width + preventedOffsets.x,
1200
- bottom: overflow.bottom - rect.height + preventedOffsets.y,
1201
- left: overflow.left - rect.width - preventedOffsets.x
1202
- };
1203
- }
1204
-
1205
- function isAnySideFullyClipped(overflow) {
1206
- return [top, right, bottom, left].some(function (side) {
1207
- return overflow[side] >= 0;
1208
- });
1209
- }
1210
-
1211
- function hide(_ref) {
1212
- var state = _ref.state,
1213
- name = _ref.name;
1214
- var referenceRect = state.rects.reference;
1215
- var popperRect = state.rects.popper;
1216
- var preventedOffsets = state.modifiersData.preventOverflow;
1217
- var referenceOverflow = detectOverflow(state, {
1218
- elementContext: 'reference'
1219
- });
1220
- var popperAltOverflow = detectOverflow(state, {
1221
- altBoundary: true
1222
- });
1223
- var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
1224
- var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
1225
- var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
1226
- var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
1227
- state.modifiersData[name] = {
1228
- referenceClippingOffsets: referenceClippingOffsets,
1229
- popperEscapeOffsets: popperEscapeOffsets,
1230
- isReferenceHidden: isReferenceHidden,
1231
- hasPopperEscaped: hasPopperEscaped
1232
- };
1233
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
1234
- 'data-popper-reference-hidden': isReferenceHidden,
1235
- 'data-popper-escaped': hasPopperEscaped
1236
- });
1237
- } // eslint-disable-next-line import/no-unused-modules
1238
-
1239
-
1240
- const hide$1 = {
1241
- name: 'hide',
1242
- enabled: true,
1243
- phase: 'main',
1244
- requiresIfExists: ['preventOverflow'],
1245
- fn: hide
1246
- };
1247
-
1248
- function distanceAndSkiddingToXY(placement, rects, offset) {
1249
- var basePlacement = getBasePlacement(placement);
1250
- var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
1251
-
1252
- var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
1253
- placement: placement
1254
- })) : offset,
1255
- skidding = _ref[0],
1256
- distance = _ref[1];
1257
-
1258
- skidding = skidding || 0;
1259
- distance = (distance || 0) * invertDistance;
1260
- return [left, right].indexOf(basePlacement) >= 0 ? {
1261
- x: distance,
1262
- y: skidding
1263
- } : {
1264
- x: skidding,
1265
- y: distance
1266
- };
1267
- }
1268
-
1269
- function offset(_ref2) {
1270
- var state = _ref2.state,
1271
- options = _ref2.options,
1272
- name = _ref2.name;
1273
- var _options$offset = options.offset,
1274
- offset = _options$offset === void 0 ? [0, 0] : _options$offset;
1275
- var data = placements.reduce(function (acc, placement) {
1276
- acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
1277
- return acc;
1278
- }, {});
1279
- var _data$state$placement = data[state.placement],
1280
- x = _data$state$placement.x,
1281
- y = _data$state$placement.y;
1282
-
1283
- if (state.modifiersData.popperOffsets != null) {
1284
- state.modifiersData.popperOffsets.x += x;
1285
- state.modifiersData.popperOffsets.y += y;
1286
- }
1287
-
1288
- state.modifiersData[name] = data;
1289
- } // eslint-disable-next-line import/no-unused-modules
1290
-
1291
-
1292
- const offset$1 = {
1293
- name: 'offset',
1294
- enabled: true,
1295
- phase: 'main',
1296
- requires: ['popperOffsets'],
1297
- fn: offset
1298
- };
1299
-
1300
- function popperOffsets(_ref) {
1301
- var state = _ref.state,
1302
- name = _ref.name;
1303
- // Offsets are the actual position the popper needs to have to be
1304
- // properly positioned near its reference element
1305
- // This is the most basic placement, and will be adjusted by
1306
- // the modifiers in the next step
1307
- state.modifiersData[name] = computeOffsets({
1308
- reference: state.rects.reference,
1309
- element: state.rects.popper,
1310
- strategy: 'absolute',
1311
- placement: state.placement
1312
- });
1313
- } // eslint-disable-next-line import/no-unused-modules
1314
-
1315
-
1316
- const popperOffsets$1 = {
1317
- name: 'popperOffsets',
1318
- enabled: true,
1319
- phase: 'read',
1320
- fn: popperOffsets,
1321
- data: {}
1322
- };
1323
-
1324
- function getAltAxis(axis) {
1325
- return axis === 'x' ? 'y' : 'x';
1326
- }
1327
-
1328
- function preventOverflow(_ref) {
1329
- var state = _ref.state,
1330
- options = _ref.options,
1331
- name = _ref.name;
1332
- var _options$mainAxis = options.mainAxis,
1333
- checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1334
- _options$altAxis = options.altAxis,
1335
- checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
1336
- boundary = options.boundary,
1337
- rootBoundary = options.rootBoundary,
1338
- altBoundary = options.altBoundary,
1339
- padding = options.padding,
1340
- _options$tether = options.tether,
1341
- tether = _options$tether === void 0 ? true : _options$tether,
1342
- _options$tetherOffset = options.tetherOffset,
1343
- tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
1344
- var overflow = detectOverflow(state, {
1345
- boundary: boundary,
1346
- rootBoundary: rootBoundary,
1347
- padding: padding,
1348
- altBoundary: altBoundary
1349
- });
1350
- var basePlacement = getBasePlacement(state.placement);
1351
- var variation = getVariation(state.placement);
1352
- var isBasePlacement = !variation;
1353
- var mainAxis = getMainAxisFromPlacement(basePlacement);
1354
- var altAxis = getAltAxis(mainAxis);
1355
- var popperOffsets = state.modifiersData.popperOffsets;
1356
- var referenceRect = state.rects.reference;
1357
- var popperRect = state.rects.popper;
1358
- var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
1359
- placement: state.placement
1360
- })) : tetherOffset;
1361
- var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
1362
- mainAxis: tetherOffsetValue,
1363
- altAxis: tetherOffsetValue
1364
- } : Object.assign({
1365
- mainAxis: 0,
1366
- altAxis: 0
1367
- }, tetherOffsetValue);
1368
- var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
1369
- var data = {
1370
- x: 0,
1371
- y: 0
1372
- };
1373
-
1374
- if (!popperOffsets) {
1375
- return;
1376
- }
1377
-
1378
- if (checkMainAxis) {
1379
- var _offsetModifierState$;
1380
-
1381
- var mainSide = mainAxis === 'y' ? top : left;
1382
- var altSide = mainAxis === 'y' ? bottom : right;
1383
- var len = mainAxis === 'y' ? 'height' : 'width';
1384
- var offset = popperOffsets[mainAxis];
1385
- var min$1 = offset + overflow[mainSide];
1386
- var max$1 = offset - overflow[altSide];
1387
- var additive = tether ? -popperRect[len] / 2 : 0;
1388
- var minLen = variation === start ? referenceRect[len] : popperRect[len];
1389
- var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
1390
- // outside the reference bounds
1391
-
1392
- var arrowElement = state.elements.arrow;
1393
- var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
1394
- width: 0,
1395
- height: 0
1396
- };
1397
- var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
1398
- var arrowPaddingMin = arrowPaddingObject[mainSide];
1399
- var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
1400
- // to include its full size in the calculation. If the reference is small
1401
- // and near the edge of a boundary, the popper can overflow even if the
1402
- // reference is not overflowing as well (e.g. virtual elements with no
1403
- // width or height)
1404
-
1405
- var arrowLen = within(0, referenceRect[len], arrowRect[len]);
1406
- var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
1407
- var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
1408
- var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
1409
- var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
1410
- var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
1411
- var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
1412
- var tetherMax = offset + maxOffset - offsetModifierValue;
1413
- var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
1414
- popperOffsets[mainAxis] = preventedOffset;
1415
- data[mainAxis] = preventedOffset - offset;
1416
- }
1417
-
1418
- if (checkAltAxis) {
1419
- var _offsetModifierState$2;
1420
-
1421
- var _mainSide = mainAxis === 'x' ? top : left;
1422
-
1423
- var _altSide = mainAxis === 'x' ? bottom : right;
1424
-
1425
- var _offset = popperOffsets[altAxis];
1426
-
1427
- var _len = altAxis === 'y' ? 'height' : 'width';
1428
-
1429
- var _min = _offset + overflow[_mainSide];
1430
-
1431
- var _max = _offset - overflow[_altSide];
1432
-
1433
- var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
1434
-
1435
- var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
1436
-
1437
- var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
1438
-
1439
- var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
1440
-
1441
- var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
1442
-
1443
- popperOffsets[altAxis] = _preventedOffset;
1444
- data[altAxis] = _preventedOffset - _offset;
1445
- }
1446
-
1447
- state.modifiersData[name] = data;
1448
- } // eslint-disable-next-line import/no-unused-modules
1449
-
1450
-
1451
- const preventOverflow$1 = {
1452
- name: 'preventOverflow',
1453
- enabled: true,
1454
- phase: 'main',
1455
- fn: preventOverflow,
1456
- requiresIfExists: ['offset']
1457
- };
1458
-
1459
- function getHTMLElementScroll(element) {
1460
- return {
1461
- scrollLeft: element.scrollLeft,
1462
- scrollTop: element.scrollTop
1463
- };
1464
- }
1465
-
1466
- function getNodeScroll(node) {
1467
- if (node === getWindow(node) || !isHTMLElement(node)) {
1468
- return getWindowScroll(node);
1469
- } else {
1470
- return getHTMLElementScroll(node);
1471
- }
1472
- }
1473
-
1474
- function isElementScaled(element) {
1475
- var rect = element.getBoundingClientRect();
1476
- var scaleX = round(rect.width) / element.offsetWidth || 1;
1477
- var scaleY = round(rect.height) / element.offsetHeight || 1;
1478
- return scaleX !== 1 || scaleY !== 1;
1479
- } // Returns the composite rect of an element relative to its offsetParent.
1480
- // Composite means it takes into account transforms as well as layout.
1481
-
1482
-
1483
- function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
1484
- if (isFixed === void 0) {
1485
- isFixed = false;
1486
- }
1487
-
1488
- var isOffsetParentAnElement = isHTMLElement(offsetParent);
1489
- var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
1490
- var documentElement = getDocumentElement(offsetParent);
1491
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
1492
- var scroll = {
1493
- scrollLeft: 0,
1494
- scrollTop: 0
1495
- };
1496
- var offsets = {
1497
- x: 0,
1498
- y: 0
1499
- };
1500
-
1501
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1502
- if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
1503
- isScrollParent(documentElement)) {
1504
- scroll = getNodeScroll(offsetParent);
1505
- }
1506
-
1507
- if (isHTMLElement(offsetParent)) {
1508
- offsets = getBoundingClientRect(offsetParent, true);
1509
- offsets.x += offsetParent.clientLeft;
1510
- offsets.y += offsetParent.clientTop;
1511
- } else if (documentElement) {
1512
- offsets.x = getWindowScrollBarX(documentElement);
1513
- }
1514
- }
1515
-
1516
- return {
1517
- x: rect.left + scroll.scrollLeft - offsets.x,
1518
- y: rect.top + scroll.scrollTop - offsets.y,
1519
- width: rect.width,
1520
- height: rect.height
1521
- };
1522
- }
1523
-
1524
- function order(modifiers) {
1525
- var map = new Map();
1526
- var visited = new Set();
1527
- var result = [];
1528
- modifiers.forEach(function (modifier) {
1529
- map.set(modifier.name, modifier);
1530
- }); // On visiting object, check for its dependencies and visit them recursively
1531
-
1532
- function sort(modifier) {
1533
- visited.add(modifier.name);
1534
- var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
1535
- requires.forEach(function (dep) {
1536
- if (!visited.has(dep)) {
1537
- var depModifier = map.get(dep);
1538
-
1539
- if (depModifier) {
1540
- sort(depModifier);
1541
- }
1542
- }
1543
- });
1544
- result.push(modifier);
1545
- }
1546
-
1547
- modifiers.forEach(function (modifier) {
1548
- if (!visited.has(modifier.name)) {
1549
- // check for visited object
1550
- sort(modifier);
1551
- }
1552
- });
1553
- return result;
1554
- }
1555
-
1556
- function orderModifiers(modifiers) {
1557
- // order based on dependencies
1558
- var orderedModifiers = order(modifiers); // order based on phase
1559
-
1560
- return modifierPhases.reduce(function (acc, phase) {
1561
- return acc.concat(orderedModifiers.filter(function (modifier) {
1562
- return modifier.phase === phase;
1563
- }));
1564
- }, []);
1565
- }
1566
-
1567
- function debounce(fn) {
1568
- var pending;
1569
- return function () {
1570
- if (!pending) {
1571
- pending = new Promise(function (resolve) {
1572
- Promise.resolve().then(function () {
1573
- pending = undefined;
1574
- resolve(fn());
1575
- });
1576
- });
1577
- }
1578
-
1579
- return pending;
1580
- };
1581
- }
1582
-
1583
- function mergeByName(modifiers) {
1584
- var merged = modifiers.reduce(function (merged, current) {
1585
- var existing = merged[current.name];
1586
- merged[current.name] = existing ? Object.assign({}, existing, current, {
1587
- options: Object.assign({}, existing.options, current.options),
1588
- data: Object.assign({}, existing.data, current.data)
1589
- }) : current;
1590
- return merged;
1591
- }, {}); // IE11 does not support Object.values
1592
-
1593
- return Object.keys(merged).map(function (key) {
1594
- return merged[key];
1595
- });
1596
- }
1597
-
1598
- var DEFAULT_OPTIONS = {
1599
- placement: 'bottom',
1600
- modifiers: [],
1601
- strategy: 'absolute'
1602
- };
1603
-
1604
- function areValidElements() {
1605
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1606
- args[_key] = arguments[_key];
1607
- }
1608
-
1609
- return !args.some(function (element) {
1610
- return !(element && typeof element.getBoundingClientRect === 'function');
1611
- });
1612
- }
1613
-
1614
- function popperGenerator(generatorOptions) {
1615
- if (generatorOptions === void 0) {
1616
- generatorOptions = {};
1617
- }
1618
-
1619
- var _generatorOptions = generatorOptions,
1620
- _generatorOptions$def = _generatorOptions.defaultModifiers,
1621
- defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
1622
- _generatorOptions$def2 = _generatorOptions.defaultOptions,
1623
- defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
1624
- return function createPopper(reference, popper, options) {
1625
- if (options === void 0) {
1626
- options = defaultOptions;
1627
- }
1628
-
1629
- var state = {
1630
- placement: 'bottom',
1631
- orderedModifiers: [],
1632
- options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
1633
- modifiersData: {},
1634
- elements: {
1635
- reference: reference,
1636
- popper: popper
1637
- },
1638
- attributes: {},
1639
- styles: {}
1640
- };
1641
- var effectCleanupFns = [];
1642
- var isDestroyed = false;
1643
- var instance = {
1644
- state: state,
1645
- setOptions: function setOptions(setOptionsAction) {
1646
- var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
1647
- cleanupModifierEffects();
1648
- state.options = Object.assign({}, defaultOptions, state.options, options);
1649
- state.scrollParents = {
1650
- reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
1651
- popper: listScrollParents(popper)
1652
- }; // Orders the modifiers based on their dependencies and `phase`
1653
- // properties
1654
-
1655
- var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
1656
-
1657
- state.orderedModifiers = orderedModifiers.filter(function (m) {
1658
- return m.enabled;
1659
- }); // Validate the provided modifiers so that the consumer will get warned
1660
-
1661
- runModifierEffects();
1662
- return instance.update();
1663
- },
1664
- // Sync update – it will always be executed, even if not necessary. This
1665
- // is useful for low frequency updates where sync behavior simplifies the
1666
- // logic.
1667
- // For high frequency updates (e.g. `resize` and `scroll` events), always
1668
- // prefer the async Popper#update method
1669
- forceUpdate: function forceUpdate() {
1670
- if (isDestroyed) {
1671
- return;
1672
- }
1673
-
1674
- var _state$elements = state.elements,
1675
- reference = _state$elements.reference,
1676
- popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
1677
- // anymore
1678
-
1679
- if (!areValidElements(reference, popper)) {
1680
-
1681
- return;
1682
- } // Store the reference and popper rects to be read by modifiers
1683
-
1684
-
1685
- state.rects = {
1686
- reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
1687
- popper: getLayoutRect(popper)
1688
- }; // Modifiers have the ability to reset the current update cycle. The
1689
- // most common use case for this is the `flip` modifier changing the
1690
- // placement, which then needs to re-run all the modifiers, because the
1691
- // logic was previously ran for the previous placement and is therefore
1692
- // stale/incorrect
1693
-
1694
- state.reset = false;
1695
- state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
1696
- // is filled with the initial data specified by the modifier. This means
1697
- // it doesn't persist and is fresh on each update.
1698
- // To ensure persistent data, use `${name}#persistent`
1699
-
1700
- state.orderedModifiers.forEach(function (modifier) {
1701
- return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
1702
- });
1703
-
1704
- for (var index = 0; index < state.orderedModifiers.length; index++) {
1705
-
1706
- if (state.reset === true) {
1707
- state.reset = false;
1708
- index = -1;
1709
- continue;
1710
- }
1711
-
1712
- var _state$orderedModifie = state.orderedModifiers[index],
1713
- fn = _state$orderedModifie.fn,
1714
- _state$orderedModifie2 = _state$orderedModifie.options,
1715
- _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
1716
- name = _state$orderedModifie.name;
1717
-
1718
- if (typeof fn === 'function') {
1719
- state = fn({
1720
- state: state,
1721
- options: _options,
1722
- name: name,
1723
- instance: instance
1724
- }) || state;
1725
- }
1726
- }
1727
- },
1728
- // Async and optimistically optimized update – it will not be executed if
1729
- // not necessary (debounced to run at most once-per-tick)
1730
- update: debounce(function () {
1731
- return new Promise(function (resolve) {
1732
- instance.forceUpdate();
1733
- resolve(state);
1734
- });
1735
- }),
1736
- destroy: function destroy() {
1737
- cleanupModifierEffects();
1738
- isDestroyed = true;
1739
- }
1740
- };
1741
-
1742
- if (!areValidElements(reference, popper)) {
1743
-
1744
- return instance;
1745
- }
1746
-
1747
- instance.setOptions(options).then(function (state) {
1748
- if (!isDestroyed && options.onFirstUpdate) {
1749
- options.onFirstUpdate(state);
1750
- }
1751
- }); // Modifiers have the ability to execute arbitrary code before the first
1752
- // update cycle runs. They will be executed in the same order as the update
1753
- // cycle. This is useful when a modifier adds some persistent data that
1754
- // other modifiers need to use, but the modifier is run after the dependent
1755
- // one.
1756
-
1757
- function runModifierEffects() {
1758
- state.orderedModifiers.forEach(function (_ref3) {
1759
- var name = _ref3.name,
1760
- _ref3$options = _ref3.options,
1761
- options = _ref3$options === void 0 ? {} : _ref3$options,
1762
- effect = _ref3.effect;
1763
-
1764
- if (typeof effect === 'function') {
1765
- var cleanupFn = effect({
1766
- state: state,
1767
- name: name,
1768
- instance: instance,
1769
- options: options
1770
- });
1771
-
1772
- var noopFn = function noopFn() {};
1773
-
1774
- effectCleanupFns.push(cleanupFn || noopFn);
1775
- }
1776
- });
1777
- }
1778
-
1779
- function cleanupModifierEffects() {
1780
- effectCleanupFns.forEach(function (fn) {
1781
- return fn();
1782
- });
1783
- effectCleanupFns = [];
1784
- }
1785
-
1786
- return instance;
1787
- };
1788
- }
1789
-
1790
- var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
1791
- var createPopper$1 = /*#__PURE__*/popperGenerator({
1792
- defaultModifiers: defaultModifiers
1793
- }); // eslint-disable-next-line import/no-unused-modules
1794
-
1795
- const popperComputedPlacements = [
1796
- "top",
1797
- "bottom",
1798
- "right",
1799
- "left",
1800
- "top-start",
1801
- "top-end",
1802
- "bottom-start",
1803
- "bottom-end",
1804
- "right-start",
1805
- "right-end",
1806
- "left-start",
1807
- "left-end"
1808
- ];
1809
- const defaultMenuPlacement = "bottom-leading";
1810
- const popperMenuComputedPlacements = [
1811
- "top-start",
1812
- "top",
1813
- "top-end",
1814
- "bottom-start",
1815
- "bottom",
1816
- "bottom-end"
1817
- ];
1818
- const CSS = {
1819
- animation: "calcite-popper-anim",
1820
- animationActive: "calcite-popper-anim--active"
1821
- };
1822
- function filterComputedPlacements(placements, el) {
1823
- const filteredPlacements = placements.filter((placement) => popperComputedPlacements.includes(placement));
1824
- if (filteredPlacements.length !== placements.length) {
1825
- console.warn(`${el.tagName}: Invalid value found in: flipPlacements. Try any of these: ${popperComputedPlacements
1826
- .map((placement) => `"${placement}"`)
1827
- .join(", ")
1828
- .trim()}`, { el });
1829
- }
1830
- return filteredPlacements;
1831
- }
1832
- function getPlacement(el, placement) {
1833
- const placements = ["left", "right"];
1834
- const variations = ["start", "end"];
1835
- if (getElementDir(el) === "rtl") {
1836
- placements.reverse();
1837
- variations.reverse();
1838
- }
1839
- return placement
1840
- .replace(/-leading/gi, `-${variations[0]}`)
1841
- .replace(/-trailing/gi, `-${variations[1]}`)
1842
- .replace(/leading/gi, placements[0])
1843
- .replace(/trailing/gi, placements[1]);
1844
- }
1845
- function createPopper({ referenceEl, el, placement, overlayPositioning = "absolute", modifiers }) {
1846
- if (!referenceEl) {
1847
- return null;
1848
- }
1849
- return createPopper$1(referenceEl, el, {
1850
- strategy: overlayPositioning,
1851
- placement: getPlacement(el, placement),
1852
- modifiers
1853
- });
1854
- }
1855
- async function updatePopper({ el, modifiers, placement: PopperPlacement, popper }) {
1856
- const placement = getPlacement(el, PopperPlacement);
1857
- await popper.setOptions({
1858
- modifiers,
1859
- placement
1860
- });
1861
- }
1862
- function hypotenuse(sideA, sideB) {
1863
- return Math.sqrt(Math.pow(sideA, 2) + Math.pow(sideB, 2));
1864
- }
1865
- const visiblePointerSize = 4;
1866
- const defaultOffsetDistance = Math.ceil(hypotenuse(visiblePointerSize, visiblePointerSize));
1867
-
1868
- export { CSS as C, defaultOffsetDistance as a, createPopper as c, defaultMenuPlacement as d, filterComputedPlacements as f, popperMenuComputedPlacements as p, updatePopper as u };