genesys-spark-components 4.0.0-beta.36 → 4.0.0-beta.38

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 (281) hide show
  1. package/README.md +5 -3
  2. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  3. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-button.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-flyout-menu.cjs.entry.js +72 -38
  28. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +2 -2
  29. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-form-field-number_3.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-menu.cjs.entry.js +2 -2
  47. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-region-icon.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-submenu.cjs.entry.js +8 -3
  66. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-table-select-popover.cjs.entry.js +1792 -2
  68. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-tabs-advanced-legacy.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-time-picker.cjs.entry.js +2 -2
  80. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
  84. package/dist/cjs/loader.cjs.js +1 -1
  85. package/dist/cjs/{usage-d4216a6a.js → usage-e3bd3a49.js} +2 -2
  86. package/dist/collection/components/legacy/gux-disclosure-button-legacy/gux-disclosure-button.js +1 -1
  87. package/dist/collection/components/stable/gux-context-menu/gux-context-menu.js +1 -1
  88. package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.css +11 -17
  89. package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.js +70 -39
  90. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu.css +0 -15
  91. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu.js +1 -1
  92. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.css +7 -2
  93. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.js +8 -3
  94. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.css +42 -13
  95. package/dist/collection/components/stable/gux-form-field/gux-form-field.service.js +1 -1
  96. package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.js +1 -1
  97. package/dist/collection/components/stable/gux-time-picker/gux-time-picker.css +8 -6
  98. package/dist/collection/components/stable/gux-toggle/gux-toggle.js +1 -1
  99. package/dist/deploy-info.json +3 -3
  100. package/dist/esm/genesys-webcomponents.js +1 -1
  101. package/dist/esm/gux-accordion.entry.js +1 -1
  102. package/dist/esm/gux-action-button.entry.js +1 -1
  103. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  104. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  105. package/dist/esm/gux-announce-beta.entry.js +1 -1
  106. package/dist/esm/gux-badge.entry.js +1 -1
  107. package/dist/esm/gux-blank-state.entry.js +1 -1
  108. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  109. package/dist/esm/gux-button-multi.entry.js +1 -1
  110. package/dist/esm/gux-button-slot.entry.js +1 -1
  111. package/dist/esm/gux-button.entry.js +1 -1
  112. package/dist/esm/gux-calendar.entry.js +1 -1
  113. package/dist/esm/gux-card.entry.js +1 -1
  114. package/dist/esm/gux-column-manager.entry.js +1 -1
  115. package/dist/esm/gux-content-search.entry.js +1 -1
  116. package/dist/esm/gux-context-menu.entry.js +1 -1
  117. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  118. package/dist/esm/gux-date-beta.entry.js +1 -1
  119. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  120. package/dist/esm/gux-datepicker.entry.js +1 -1
  121. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  122. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  123. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  124. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  125. package/dist/esm/gux-flyout-menu.entry.js +72 -38
  126. package/dist/esm/gux-form-field-checkbox.entry.js +2 -2
  127. package/dist/esm/gux-form-field-color.entry.js +1 -1
  128. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  129. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  130. package/dist/esm/gux-form-field-number_3.entry.js +1 -1
  131. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  132. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  133. package/dist/esm/gux-form-field-range.entry.js +1 -1
  134. package/dist/esm/gux-form-field-search.entry.js +1 -1
  135. package/dist/esm/gux-form-field-select.entry.js +1 -1
  136. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  137. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  138. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  139. package/dist/esm/gux-icon.entry.js +1 -1
  140. package/dist/esm/gux-inline-alert.entry.js +1 -1
  141. package/dist/esm/gux-list.entry.js +1 -1
  142. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  143. package/dist/esm/gux-loading-message.entry.js +1 -1
  144. package/dist/esm/gux-menu.entry.js +2 -2
  145. package/dist/esm/gux-modal.entry.js +1 -1
  146. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  147. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  148. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  149. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  150. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  151. package/dist/esm/gux-pagination.entry.js +1 -1
  152. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  153. package/dist/esm/gux-popover-list.entry.js +1 -1
  154. package/dist/esm/gux-radial-loading.entry.js +1 -1
  155. package/dist/esm/gux-radial-progress.entry.js +1 -1
  156. package/dist/esm/gux-rating.entry.js +1 -1
  157. package/dist/esm/gux-region-icon.entry.js +1 -1
  158. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  159. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  160. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  161. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  162. package/dist/esm/gux-sort-control.entry.js +1 -1
  163. package/dist/esm/gux-submenu.entry.js +9 -4
  164. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  165. package/dist/esm/gux-table-select-popover.entry.js +1791 -1
  166. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  167. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  168. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  169. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  170. package/dist/esm/gux-table.entry.js +1 -1
  171. package/dist/esm/gux-tabs-advanced-legacy.entry.js +1 -1
  172. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  173. package/dist/esm/gux-tabs.entry.js +1 -1
  174. package/dist/esm/gux-tag.entry.js +1 -1
  175. package/dist/esm/gux-text-highlight.entry.js +1 -1
  176. package/dist/esm/gux-time-beta.entry.js +1 -1
  177. package/dist/esm/gux-time-picker.entry.js +2 -2
  178. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  179. package/dist/esm/gux-toast.entry.js +1 -1
  180. package/dist/esm/gux-toggle.entry.js +1 -1
  181. package/dist/esm/gux-tooltip.entry.js +1 -1
  182. package/dist/esm/loader.js +1 -1
  183. package/dist/esm/{usage-b9bc2c35.js → usage-b07ae52b.js} +2 -2
  184. package/dist/genesys-webcomponents/genesys-webcomponents.css +1 -1
  185. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  186. package/dist/genesys-webcomponents/{p-001a4f6c.entry.js → p-030952f7.entry.js} +1 -1
  187. package/dist/genesys-webcomponents/{p-5524298d.entry.js → p-06f88950.entry.js} +1 -1
  188. package/dist/genesys-webcomponents/{p-d5d7cf8d.entry.js → p-080d4597.entry.js} +1 -1
  189. package/dist/genesys-webcomponents/{p-ee662eda.entry.js → p-10086026.entry.js} +1 -1
  190. package/dist/genesys-webcomponents/p-1309484b.entry.js +1 -0
  191. package/dist/genesys-webcomponents/{p-1b04a4a3.entry.js → p-15acb5ec.entry.js} +1 -1
  192. package/dist/genesys-webcomponents/{p-48d465fe.entry.js → p-16ce6203.entry.js} +1 -1
  193. package/dist/genesys-webcomponents/{p-d96bce57.entry.js → p-19a9db01.entry.js} +1 -1
  194. package/dist/genesys-webcomponents/{p-4d14a590.entry.js → p-1f5d768f.entry.js} +1 -1
  195. package/dist/genesys-webcomponents/{p-67036f76.entry.js → p-23f1fb74.entry.js} +1 -1
  196. package/dist/genesys-webcomponents/{p-8c3c2fd5.entry.js → p-27ba0d5f.entry.js} +1 -1
  197. package/dist/genesys-webcomponents/{p-4dc4930c.entry.js → p-30165eab.entry.js} +1 -1
  198. package/dist/genesys-webcomponents/{p-29e65ca5.entry.js → p-32b28c93.entry.js} +1 -1
  199. package/dist/genesys-webcomponents/{p-7bff5f15.entry.js → p-33dd7381.entry.js} +1 -1
  200. package/dist/genesys-webcomponents/{p-59206607.entry.js → p-35b5bb1d.entry.js} +1 -1
  201. package/dist/genesys-webcomponents/{p-541c3c6b.entry.js → p-36fcc285.entry.js} +1 -1
  202. package/dist/genesys-webcomponents/{p-9026cf7e.entry.js → p-3d2d0752.entry.js} +1 -1
  203. package/dist/genesys-webcomponents/{p-f19e1b38.entry.js → p-40efc785.entry.js} +1 -1
  204. package/dist/genesys-webcomponents/{p-f6bcc7b4.entry.js → p-46ea8df0.entry.js} +1 -1
  205. package/dist/genesys-webcomponents/{p-903a7fff.entry.js → p-4b2e8e46.entry.js} +1 -1
  206. package/dist/genesys-webcomponents/{p-92536df7.entry.js → p-4d6bbd65.entry.js} +1 -1
  207. package/dist/genesys-webcomponents/{p-edf8e30c.entry.js → p-4f5640e3.entry.js} +1 -1
  208. package/dist/genesys-webcomponents/{p-7943f46d.entry.js → p-518bcd20.entry.js} +1 -1
  209. package/dist/genesys-webcomponents/{p-ea777be1.entry.js → p-539183e5.entry.js} +1 -1
  210. package/dist/genesys-webcomponents/{p-0f57803f.entry.js → p-58c27578.entry.js} +1 -1
  211. package/dist/genesys-webcomponents/{p-377f63a0.entry.js → p-5a7d5a47.entry.js} +1 -1
  212. package/dist/genesys-webcomponents/{p-8d3fb4b0.entry.js → p-5dbeb4fc.entry.js} +1 -1
  213. package/dist/genesys-webcomponents/{p-11a4917d.entry.js → p-5e481cc4.entry.js} +1 -1
  214. package/dist/genesys-webcomponents/{p-3669d1d6.entry.js → p-60ebc711.entry.js} +1 -1
  215. package/dist/genesys-webcomponents/{p-be68b1e8.entry.js → p-61883ab2.entry.js} +1 -1
  216. package/dist/genesys-webcomponents/{p-06186f07.entry.js → p-64802789.entry.js} +1 -1
  217. package/dist/genesys-webcomponents/{p-3006f950.entry.js → p-687eccc3.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/p-69153f39.entry.js +1 -0
  219. package/dist/genesys-webcomponents/{p-e2d75be4.entry.js → p-6acdb4c4.entry.js} +1 -1
  220. package/dist/genesys-webcomponents/{p-2a3350f2.entry.js → p-6fce9287.entry.js} +1 -1
  221. package/dist/genesys-webcomponents/{p-51df1ede.entry.js → p-70b882db.entry.js} +1 -1
  222. package/dist/genesys-webcomponents/{p-6d7122bc.entry.js → p-7162d9d4.entry.js} +1 -1
  223. package/dist/genesys-webcomponents/{p-004bad0d.entry.js → p-7186c235.entry.js} +1 -1
  224. package/dist/genesys-webcomponents/{p-932fdd60.entry.js → p-732b7805.entry.js} +1 -1
  225. package/dist/genesys-webcomponents/{p-0209a2e8.entry.js → p-776430a5.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-6ce1bf55.entry.js → p-7fe06f7e.entry.js} +1 -1
  227. package/dist/genesys-webcomponents/{p-9595c4f2.entry.js → p-83002b2b.entry.js} +1 -1
  228. package/dist/genesys-webcomponents/{p-3deec8d5.entry.js → p-83c5cea8.entry.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-937ec398.entry.js → p-848d0eb5.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-993b63db.entry.js → p-868ca192.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-d25d679d.entry.js → p-86c1ef95.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-b0cc1af2.entry.js → p-893c9a4c.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-1c00c8b9.entry.js → p-8998cdf1.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-66290fc5.entry.js → p-89cedebd.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-04882cf9.entry.js → p-8c06cb3d.entry.js} +1 -1
  236. package/dist/genesys-webcomponents/{p-ddfc136f.entry.js → p-8c985f02.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/{p-984fb2ca.entry.js → p-923df337.entry.js} +1 -1
  238. package/dist/genesys-webcomponents/p-9d684bc6.entry.js +1 -0
  239. package/dist/genesys-webcomponents/{p-13bd1ddb.entry.js → p-9d887d62.entry.js} +1 -1
  240. package/dist/genesys-webcomponents/{p-8953cea0.entry.js → p-a18d3675.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/p-a1c693e2.entry.js +1 -0
  242. package/dist/genesys-webcomponents/{p-d8e0caa9.entry.js → p-a2957183.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-c07ab095.entry.js → p-a639f412.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-f7c491f0.entry.js → p-a87afe08.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/p-a8d14c27.entry.js +1 -0
  246. package/dist/genesys-webcomponents/{p-3b48aaaa.entry.js → p-aa7f9b5c.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-5a9d8cb2.entry.js → p-ac9d21bc.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-c05cacb2.entry.js → p-ae34e14f.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-0fd727e4.entry.js → p-b2b4586a.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-c57cd1d8.js → p-b7baab0c.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-920b9a0d.entry.js → p-b90c0281.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-25d372af.entry.js → p-b94ec518.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-050b14b0.entry.js → p-bacb0948.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-7e245e45.entry.js → p-c4e1fd1f.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-35fff0fe.entry.js → p-c79b9786.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/p-d5292338.entry.js +1 -0
  257. package/dist/genesys-webcomponents/{p-d0aefa7e.entry.js → p-dae170d5.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-127514f4.entry.js → p-dec8f70a.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-121117b7.entry.js → p-dfa50b16.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-fb9b79ce.entry.js → p-e4e3cf40.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-8e22729c.entry.js → p-e722ea1f.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-6bee8d41.entry.js → p-ebfb4620.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-0a7237d9.entry.js → p-ec132ce7.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-f86080b6.entry.js → p-ed1ff63d.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-9279fb28.entry.js → p-f547b824.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/p-fadb2649.entry.js +1 -0
  267. package/dist/genesys-webcomponents/{p-5ea0d07e.entry.js → p-fb41a068.entry.js} +1 -1
  268. package/dist/stencil-wrapper.js +3 -3
  269. package/dist/types/components/stable/gux-flyout-menu/gux-flyout-menu.d.ts +5 -4
  270. package/dist/types/stencil-wrapper.d.ts +1 -1
  271. package/package.json +2 -2
  272. package/dist/cjs/popper-9a6aec9e.js +0 -1794
  273. package/dist/esm/popper-1604923e.js +0 -1792
  274. package/dist/genesys-webcomponents/p-38c797a5.entry.js +0 -1
  275. package/dist/genesys-webcomponents/p-4426b584.entry.js +0 -1
  276. package/dist/genesys-webcomponents/p-906bffcd.entry.js +0 -1
  277. package/dist/genesys-webcomponents/p-a934d5b1.entry.js +0 -1
  278. package/dist/genesys-webcomponents/p-b3fd4623.entry.js +0 -1
  279. package/dist/genesys-webcomponents/p-cf094b0a.entry.js +0 -1
  280. package/dist/genesys-webcomponents/p-e459974a.js +0 -1
  281. package/dist/genesys-webcomponents/p-f34da37c.entry.js +0 -1
@@ -1,1792 +0,0 @@
1
- var top = 'top';
2
- var bottom = 'bottom';
3
- var right = 'right';
4
- var left = 'left';
5
- var auto = 'auto';
6
- var basePlacements = [top, bottom, right, left];
7
- var start = 'start';
8
- var end = 'end';
9
- var clippingParents = 'clippingParents';
10
- var viewport = 'viewport';
11
- var popper = 'popper';
12
- var reference = 'reference';
13
- var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
14
- return acc.concat([placement + "-" + start, placement + "-" + end]);
15
- }, []);
16
- var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
17
- return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
18
- }, []); // modifiers that need to read the DOM
19
-
20
- var beforeRead = 'beforeRead';
21
- var read = 'read';
22
- var afterRead = 'afterRead'; // pure-logic modifiers
23
-
24
- var beforeMain = 'beforeMain';
25
- var main = 'main';
26
- var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
27
-
28
- var beforeWrite = 'beforeWrite';
29
- var write = 'write';
30
- var afterWrite = 'afterWrite';
31
- var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
32
-
33
- function getNodeName(element) {
34
- return element ? (element.nodeName || '').toLowerCase() : null;
35
- }
36
-
37
- function getWindow(node) {
38
- if (node == null) {
39
- return window;
40
- }
41
-
42
- if (node.toString() !== '[object Window]') {
43
- var ownerDocument = node.ownerDocument;
44
- return ownerDocument ? ownerDocument.defaultView || window : window;
45
- }
46
-
47
- return node;
48
- }
49
-
50
- function isElement(node) {
51
- var OwnElement = getWindow(node).Element;
52
- return node instanceof OwnElement || node instanceof Element;
53
- }
54
-
55
- function isHTMLElement(node) {
56
- var OwnElement = getWindow(node).HTMLElement;
57
- return node instanceof OwnElement || node instanceof HTMLElement;
58
- }
59
-
60
- function isShadowRoot(node) {
61
- // IE 11 has no ShadowRoot
62
- if (typeof ShadowRoot === 'undefined') {
63
- return false;
64
- }
65
-
66
- var OwnElement = getWindow(node).ShadowRoot;
67
- return node instanceof OwnElement || node instanceof ShadowRoot;
68
- }
69
-
70
- // and applies them to the HTMLElements such as popper and arrow
71
-
72
- function applyStyles(_ref) {
73
- var state = _ref.state;
74
- Object.keys(state.elements).forEach(function (name) {
75
- var style = state.styles[name] || {};
76
- var attributes = state.attributes[name] || {};
77
- var element = state.elements[name]; // arrow is optional + virtual elements
78
-
79
- if (!isHTMLElement(element) || !getNodeName(element)) {
80
- return;
81
- } // Flow doesn't support to extend this property, but it's the most
82
- // effective way to apply styles to an HTMLElement
83
- // $FlowFixMe[cannot-write]
84
-
85
-
86
- Object.assign(element.style, style);
87
- Object.keys(attributes).forEach(function (name) {
88
- var value = attributes[name];
89
-
90
- if (value === false) {
91
- element.removeAttribute(name);
92
- } else {
93
- element.setAttribute(name, value === true ? '' : value);
94
- }
95
- });
96
- });
97
- }
98
-
99
- function effect$2(_ref2) {
100
- var state = _ref2.state;
101
- var initialStyles = {
102
- popper: {
103
- position: state.options.strategy,
104
- left: '0',
105
- top: '0',
106
- margin: '0'
107
- },
108
- arrow: {
109
- position: 'absolute'
110
- },
111
- reference: {}
112
- };
113
- Object.assign(state.elements.popper.style, initialStyles.popper);
114
- state.styles = initialStyles;
115
-
116
- if (state.elements.arrow) {
117
- Object.assign(state.elements.arrow.style, initialStyles.arrow);
118
- }
119
-
120
- return function () {
121
- Object.keys(state.elements).forEach(function (name) {
122
- var element = state.elements[name];
123
- var attributes = state.attributes[name] || {};
124
- var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
125
-
126
- var style = styleProperties.reduce(function (style, property) {
127
- style[property] = '';
128
- return style;
129
- }, {}); // arrow is optional + virtual elements
130
-
131
- if (!isHTMLElement(element) || !getNodeName(element)) {
132
- return;
133
- }
134
-
135
- Object.assign(element.style, style);
136
- Object.keys(attributes).forEach(function (attribute) {
137
- element.removeAttribute(attribute);
138
- });
139
- });
140
- };
141
- } // eslint-disable-next-line import/no-unused-modules
142
-
143
-
144
- const applyStyles$1 = {
145
- name: 'applyStyles',
146
- enabled: true,
147
- phase: 'write',
148
- fn: applyStyles,
149
- effect: effect$2,
150
- requires: ['computeStyles']
151
- };
152
-
153
- function getBasePlacement(placement) {
154
- return placement.split('-')[0];
155
- }
156
-
157
- var max = Math.max;
158
- var min = Math.min;
159
- var round = Math.round;
160
-
161
- function getUAString() {
162
- var uaData = navigator.userAgentData;
163
-
164
- if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
165
- return uaData.brands.map(function (item) {
166
- return item.brand + "/" + item.version;
167
- }).join(' ');
168
- }
169
-
170
- return navigator.userAgent;
171
- }
172
-
173
- function isLayoutViewport() {
174
- return !/^((?!chrome|android).)*safari/i.test(getUAString());
175
- }
176
-
177
- function getBoundingClientRect(element, includeScale, isFixedStrategy) {
178
- if (includeScale === void 0) {
179
- includeScale = false;
180
- }
181
-
182
- if (isFixedStrategy === void 0) {
183
- isFixedStrategy = false;
184
- }
185
-
186
- var clientRect = element.getBoundingClientRect();
187
- var scaleX = 1;
188
- var scaleY = 1;
189
-
190
- if (includeScale && isHTMLElement(element)) {
191
- scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
192
- scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
193
- }
194
-
195
- var _ref = isElement(element) ? getWindow(element) : window,
196
- visualViewport = _ref.visualViewport;
197
-
198
- var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
199
- var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
200
- var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
201
- var width = clientRect.width / scaleX;
202
- var height = clientRect.height / scaleY;
203
- return {
204
- width: width,
205
- height: height,
206
- top: y,
207
- right: x + width,
208
- bottom: y + height,
209
- left: x,
210
- x: x,
211
- y: y
212
- };
213
- }
214
-
215
- // means it doesn't take into account transforms.
216
-
217
- function getLayoutRect(element) {
218
- var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
219
- // Fixes https://github.com/popperjs/popper-core/issues/1223
220
-
221
- var width = element.offsetWidth;
222
- var height = element.offsetHeight;
223
-
224
- if (Math.abs(clientRect.width - width) <= 1) {
225
- width = clientRect.width;
226
- }
227
-
228
- if (Math.abs(clientRect.height - height) <= 1) {
229
- height = clientRect.height;
230
- }
231
-
232
- return {
233
- x: element.offsetLeft,
234
- y: element.offsetTop,
235
- width: width,
236
- height: height
237
- };
238
- }
239
-
240
- function contains(parent, child) {
241
- var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
242
-
243
- if (parent.contains(child)) {
244
- return true;
245
- } // then fallback to custom implementation with Shadow DOM support
246
- else if (rootNode && isShadowRoot(rootNode)) {
247
- var next = child;
248
-
249
- do {
250
- if (next && parent.isSameNode(next)) {
251
- return true;
252
- } // $FlowFixMe[prop-missing]: need a better way to handle this...
253
-
254
-
255
- next = next.parentNode || next.host;
256
- } while (next);
257
- } // Give up, the result is false
258
-
259
-
260
- return false;
261
- }
262
-
263
- function getComputedStyle(element) {
264
- return getWindow(element).getComputedStyle(element);
265
- }
266
-
267
- function isTableElement(element) {
268
- return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
269
- }
270
-
271
- function getDocumentElement(element) {
272
- // $FlowFixMe[incompatible-return]: assume body is always available
273
- return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
274
- element.document) || window.document).documentElement;
275
- }
276
-
277
- function getParentNode(element) {
278
- if (getNodeName(element) === 'html') {
279
- return element;
280
- }
281
-
282
- return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
283
- // $FlowFixMe[incompatible-return]
284
- // $FlowFixMe[prop-missing]
285
- element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
286
- element.parentNode || ( // DOM Element detected
287
- isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
288
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
289
- getDocumentElement(element) // fallback
290
-
291
- );
292
- }
293
-
294
- function getTrueOffsetParent(element) {
295
- if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
296
- getComputedStyle(element).position === 'fixed') {
297
- return null;
298
- }
299
-
300
- return element.offsetParent;
301
- } // `.offsetParent` reports `null` for fixed elements, while absolute elements
302
- // return the containing block
303
-
304
-
305
- function getContainingBlock(element) {
306
- var isFirefox = /firefox/i.test(getUAString());
307
- var isIE = /Trident/i.test(getUAString());
308
-
309
- if (isIE && isHTMLElement(element)) {
310
- // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
311
- var elementCss = getComputedStyle(element);
312
-
313
- if (elementCss.position === 'fixed') {
314
- return null;
315
- }
316
- }
317
-
318
- var currentNode = getParentNode(element);
319
-
320
- if (isShadowRoot(currentNode)) {
321
- currentNode = currentNode.host;
322
- }
323
-
324
- while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
325
- var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
326
- // create a containing block.
327
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
328
-
329
- 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') {
330
- return currentNode;
331
- } else {
332
- currentNode = currentNode.parentNode;
333
- }
334
- }
335
-
336
- return null;
337
- } // Gets the closest ancestor positioned element. Handles some edge cases,
338
- // such as table ancestors and cross browser bugs.
339
-
340
-
341
- function getOffsetParent(element) {
342
- var window = getWindow(element);
343
- var offsetParent = getTrueOffsetParent(element);
344
-
345
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
346
- offsetParent = getTrueOffsetParent(offsetParent);
347
- }
348
-
349
- if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {
350
- return window;
351
- }
352
-
353
- return offsetParent || getContainingBlock(element) || window;
354
- }
355
-
356
- function getMainAxisFromPlacement(placement) {
357
- return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
358
- }
359
-
360
- function within(min$1, value, max$1) {
361
- return max(min$1, min(value, max$1));
362
- }
363
- function withinMaxClamp(min, value, max) {
364
- var v = within(min, value, max);
365
- return v > max ? max : v;
366
- }
367
-
368
- function getFreshSideObject() {
369
- return {
370
- top: 0,
371
- right: 0,
372
- bottom: 0,
373
- left: 0
374
- };
375
- }
376
-
377
- function mergePaddingObject(paddingObject) {
378
- return Object.assign({}, getFreshSideObject(), paddingObject);
379
- }
380
-
381
- function expandToHashMap(value, keys) {
382
- return keys.reduce(function (hashMap, key) {
383
- hashMap[key] = value;
384
- return hashMap;
385
- }, {});
386
- }
387
-
388
- var toPaddingObject = function toPaddingObject(padding, state) {
389
- padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
390
- placement: state.placement
391
- })) : padding;
392
- return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
393
- };
394
-
395
- function arrow(_ref) {
396
- var _state$modifiersData$;
397
-
398
- var state = _ref.state,
399
- name = _ref.name,
400
- options = _ref.options;
401
- var arrowElement = state.elements.arrow;
402
- var popperOffsets = state.modifiersData.popperOffsets;
403
- var basePlacement = getBasePlacement(state.placement);
404
- var axis = getMainAxisFromPlacement(basePlacement);
405
- var isVertical = [left, right].indexOf(basePlacement) >= 0;
406
- var len = isVertical ? 'height' : 'width';
407
-
408
- if (!arrowElement || !popperOffsets) {
409
- return;
410
- }
411
-
412
- var paddingObject = toPaddingObject(options.padding, state);
413
- var arrowRect = getLayoutRect(arrowElement);
414
- var minProp = axis === 'y' ? top : left;
415
- var maxProp = axis === 'y' ? bottom : right;
416
- var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
417
- var startDiff = popperOffsets[axis] - state.rects.reference[axis];
418
- var arrowOffsetParent = getOffsetParent(arrowElement);
419
- var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
420
- var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
421
- // outside of the popper bounds
422
-
423
- var min = paddingObject[minProp];
424
- var max = clientSize - arrowRect[len] - paddingObject[maxProp];
425
- var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
426
- var offset = within(min, center, max); // Prevents breaking syntax highlighting...
427
-
428
- var axisProp = axis;
429
- state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
430
- }
431
-
432
- function effect$1(_ref2) {
433
- var state = _ref2.state,
434
- options = _ref2.options;
435
- var _options$element = options.element,
436
- arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
437
-
438
- if (arrowElement == null) {
439
- return;
440
- } // CSS selector
441
-
442
-
443
- if (typeof arrowElement === 'string') {
444
- arrowElement = state.elements.popper.querySelector(arrowElement);
445
-
446
- if (!arrowElement) {
447
- return;
448
- }
449
- }
450
-
451
- if (!contains(state.elements.popper, arrowElement)) {
452
- return;
453
- }
454
-
455
- state.elements.arrow = arrowElement;
456
- } // eslint-disable-next-line import/no-unused-modules
457
-
458
-
459
- const arrow$1 = {
460
- name: 'arrow',
461
- enabled: true,
462
- phase: 'main',
463
- fn: arrow,
464
- effect: effect$1,
465
- requires: ['popperOffsets'],
466
- requiresIfExists: ['preventOverflow']
467
- };
468
-
469
- function getVariation(placement) {
470
- return placement.split('-')[1];
471
- }
472
-
473
- var unsetSides = {
474
- top: 'auto',
475
- right: 'auto',
476
- bottom: 'auto',
477
- left: 'auto'
478
- }; // Round the offsets to the nearest suitable subpixel based on the DPR.
479
- // Zooming can change the DPR, but it seems to report a value that will
480
- // cleanly divide the values into the appropriate subpixels.
481
-
482
- function roundOffsetsByDPR(_ref, win) {
483
- var x = _ref.x,
484
- y = _ref.y;
485
- var dpr = win.devicePixelRatio || 1;
486
- return {
487
- x: round(x * dpr) / dpr || 0,
488
- y: round(y * dpr) / dpr || 0
489
- };
490
- }
491
-
492
- function mapToStyles(_ref2) {
493
- var _Object$assign2;
494
-
495
- var popper = _ref2.popper,
496
- popperRect = _ref2.popperRect,
497
- placement = _ref2.placement,
498
- variation = _ref2.variation,
499
- offsets = _ref2.offsets,
500
- position = _ref2.position,
501
- gpuAcceleration = _ref2.gpuAcceleration,
502
- adaptive = _ref2.adaptive,
503
- roundOffsets = _ref2.roundOffsets,
504
- isFixed = _ref2.isFixed;
505
- var _offsets$x = offsets.x,
506
- x = _offsets$x === void 0 ? 0 : _offsets$x,
507
- _offsets$y = offsets.y,
508
- y = _offsets$y === void 0 ? 0 : _offsets$y;
509
-
510
- var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
511
- x: x,
512
- y: y
513
- }) : {
514
- x: x,
515
- y: y
516
- };
517
-
518
- x = _ref3.x;
519
- y = _ref3.y;
520
- var hasX = offsets.hasOwnProperty('x');
521
- var hasY = offsets.hasOwnProperty('y');
522
- var sideX = left;
523
- var sideY = top;
524
- var win = window;
525
-
526
- if (adaptive) {
527
- var offsetParent = getOffsetParent(popper);
528
- var heightProp = 'clientHeight';
529
- var widthProp = 'clientWidth';
530
-
531
- if (offsetParent === getWindow(popper)) {
532
- offsetParent = getDocumentElement(popper);
533
-
534
- if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
535
- heightProp = 'scrollHeight';
536
- widthProp = 'scrollWidth';
537
- }
538
- } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
539
-
540
-
541
- offsetParent = offsetParent;
542
-
543
- if (placement === top || (placement === left || placement === right) && variation === end) {
544
- sideY = bottom;
545
- var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
546
- offsetParent[heightProp];
547
- y -= offsetY - popperRect.height;
548
- y *= gpuAcceleration ? 1 : -1;
549
- }
550
-
551
- if (placement === left || (placement === top || placement === bottom) && variation === end) {
552
- sideX = right;
553
- var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
554
- offsetParent[widthProp];
555
- x -= offsetX - popperRect.width;
556
- x *= gpuAcceleration ? 1 : -1;
557
- }
558
- }
559
-
560
- var commonStyles = Object.assign({
561
- position: position
562
- }, adaptive && unsetSides);
563
-
564
- var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
565
- x: x,
566
- y: y
567
- }, getWindow(popper)) : {
568
- x: x,
569
- y: y
570
- };
571
-
572
- x = _ref4.x;
573
- y = _ref4.y;
574
-
575
- if (gpuAcceleration) {
576
- var _Object$assign;
577
-
578
- 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));
579
- }
580
-
581
- return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
582
- }
583
-
584
- function computeStyles(_ref5) {
585
- var state = _ref5.state,
586
- options = _ref5.options;
587
- var _options$gpuAccelerat = options.gpuAcceleration,
588
- gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
589
- _options$adaptive = options.adaptive,
590
- adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
591
- _options$roundOffsets = options.roundOffsets,
592
- roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
593
- var commonStyles = {
594
- placement: getBasePlacement(state.placement),
595
- variation: getVariation(state.placement),
596
- popper: state.elements.popper,
597
- popperRect: state.rects.popper,
598
- gpuAcceleration: gpuAcceleration,
599
- isFixed: state.options.strategy === 'fixed'
600
- };
601
-
602
- if (state.modifiersData.popperOffsets != null) {
603
- state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
604
- offsets: state.modifiersData.popperOffsets,
605
- position: state.options.strategy,
606
- adaptive: adaptive,
607
- roundOffsets: roundOffsets
608
- })));
609
- }
610
-
611
- if (state.modifiersData.arrow != null) {
612
- state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
613
- offsets: state.modifiersData.arrow,
614
- position: 'absolute',
615
- adaptive: false,
616
- roundOffsets: roundOffsets
617
- })));
618
- }
619
-
620
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
621
- 'data-popper-placement': state.placement
622
- });
623
- } // eslint-disable-next-line import/no-unused-modules
624
-
625
-
626
- const computeStyles$1 = {
627
- name: 'computeStyles',
628
- enabled: true,
629
- phase: 'beforeWrite',
630
- fn: computeStyles,
631
- data: {}
632
- };
633
-
634
- var passive = {
635
- passive: true
636
- };
637
-
638
- function effect(_ref) {
639
- var state = _ref.state,
640
- instance = _ref.instance,
641
- options = _ref.options;
642
- var _options$scroll = options.scroll,
643
- scroll = _options$scroll === void 0 ? true : _options$scroll,
644
- _options$resize = options.resize,
645
- resize = _options$resize === void 0 ? true : _options$resize;
646
- var window = getWindow(state.elements.popper);
647
- var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
648
-
649
- if (scroll) {
650
- scrollParents.forEach(function (scrollParent) {
651
- scrollParent.addEventListener('scroll', instance.update, passive);
652
- });
653
- }
654
-
655
- if (resize) {
656
- window.addEventListener('resize', instance.update, passive);
657
- }
658
-
659
- return function () {
660
- if (scroll) {
661
- scrollParents.forEach(function (scrollParent) {
662
- scrollParent.removeEventListener('scroll', instance.update, passive);
663
- });
664
- }
665
-
666
- if (resize) {
667
- window.removeEventListener('resize', instance.update, passive);
668
- }
669
- };
670
- } // eslint-disable-next-line import/no-unused-modules
671
-
672
-
673
- const eventListeners = {
674
- name: 'eventListeners',
675
- enabled: true,
676
- phase: 'write',
677
- fn: function fn() {},
678
- effect: effect,
679
- data: {}
680
- };
681
-
682
- var hash$1 = {
683
- left: 'right',
684
- right: 'left',
685
- bottom: 'top',
686
- top: 'bottom'
687
- };
688
- function getOppositePlacement(placement) {
689
- return placement.replace(/left|right|bottom|top/g, function (matched) {
690
- return hash$1[matched];
691
- });
692
- }
693
-
694
- var hash = {
695
- start: 'end',
696
- end: 'start'
697
- };
698
- function getOppositeVariationPlacement(placement) {
699
- return placement.replace(/start|end/g, function (matched) {
700
- return hash[matched];
701
- });
702
- }
703
-
704
- function getWindowScroll(node) {
705
- var win = getWindow(node);
706
- var scrollLeft = win.pageXOffset;
707
- var scrollTop = win.pageYOffset;
708
- return {
709
- scrollLeft: scrollLeft,
710
- scrollTop: scrollTop
711
- };
712
- }
713
-
714
- function getWindowScrollBarX(element) {
715
- // If <html> has a CSS width greater than the viewport, then this will be
716
- // incorrect for RTL.
717
- // Popper 1 is broken in this case and never had a bug report so let's assume
718
- // it's not an issue. I don't think anyone ever specifies width on <html>
719
- // anyway.
720
- // Browsers where the left scrollbar doesn't cause an issue report `0` for
721
- // this (e.g. Edge 2019, IE11, Safari)
722
- return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
723
- }
724
-
725
- function getViewportRect(element, strategy) {
726
- var win = getWindow(element);
727
- var html = getDocumentElement(element);
728
- var visualViewport = win.visualViewport;
729
- var width = html.clientWidth;
730
- var height = html.clientHeight;
731
- var x = 0;
732
- var y = 0;
733
-
734
- if (visualViewport) {
735
- width = visualViewport.width;
736
- height = visualViewport.height;
737
- var layoutViewport = isLayoutViewport();
738
-
739
- if (layoutViewport || !layoutViewport && strategy === 'fixed') {
740
- x = visualViewport.offsetLeft;
741
- y = visualViewport.offsetTop;
742
- }
743
- }
744
-
745
- return {
746
- width: width,
747
- height: height,
748
- x: x + getWindowScrollBarX(element),
749
- y: y
750
- };
751
- }
752
-
753
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable
754
-
755
- function getDocumentRect(element) {
756
- var _element$ownerDocumen;
757
-
758
- var html = getDocumentElement(element);
759
- var winScroll = getWindowScroll(element);
760
- var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
761
- var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
762
- var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
763
- var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
764
- var y = -winScroll.scrollTop;
765
-
766
- if (getComputedStyle(body || html).direction === 'rtl') {
767
- x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
768
- }
769
-
770
- return {
771
- width: width,
772
- height: height,
773
- x: x,
774
- y: y
775
- };
776
- }
777
-
778
- function isScrollParent(element) {
779
- // Firefox wants us to check `-x` and `-y` variations as well
780
- var _getComputedStyle = getComputedStyle(element),
781
- overflow = _getComputedStyle.overflow,
782
- overflowX = _getComputedStyle.overflowX,
783
- overflowY = _getComputedStyle.overflowY;
784
-
785
- return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
786
- }
787
-
788
- function getScrollParent(node) {
789
- if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
790
- // $FlowFixMe[incompatible-return]: assume body is always available
791
- return node.ownerDocument.body;
792
- }
793
-
794
- if (isHTMLElement(node) && isScrollParent(node)) {
795
- return node;
796
- }
797
-
798
- return getScrollParent(getParentNode(node));
799
- }
800
-
801
- /*
802
- given a DOM element, return the list of all scroll parents, up the list of ancesors
803
- until we get to the top window object. This list is what we attach scroll listeners
804
- to, because if any of these parent elements scroll, we'll need to re-calculate the
805
- reference element's position.
806
- */
807
-
808
- function listScrollParents(element, list) {
809
- var _element$ownerDocumen;
810
-
811
- if (list === void 0) {
812
- list = [];
813
- }
814
-
815
- var scrollParent = getScrollParent(element);
816
- var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
817
- var win = getWindow(scrollParent);
818
- var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
819
- var updatedList = list.concat(target);
820
- return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
821
- updatedList.concat(listScrollParents(getParentNode(target)));
822
- }
823
-
824
- function rectToClientRect(rect) {
825
- return Object.assign({}, rect, {
826
- left: rect.x,
827
- top: rect.y,
828
- right: rect.x + rect.width,
829
- bottom: rect.y + rect.height
830
- });
831
- }
832
-
833
- function getInnerBoundingClientRect(element, strategy) {
834
- var rect = getBoundingClientRect(element, false, strategy === 'fixed');
835
- rect.top = rect.top + element.clientTop;
836
- rect.left = rect.left + element.clientLeft;
837
- rect.bottom = rect.top + element.clientHeight;
838
- rect.right = rect.left + element.clientWidth;
839
- rect.width = element.clientWidth;
840
- rect.height = element.clientHeight;
841
- rect.x = rect.left;
842
- rect.y = rect.top;
843
- return rect;
844
- }
845
-
846
- function getClientRectFromMixedType(element, clippingParent, strategy) {
847
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
848
- } // A "clipping parent" is an overflowable container with the characteristic of
849
- // clipping (or hiding) overflowing elements with a position different from
850
- // `initial`
851
-
852
-
853
- function getClippingParents(element) {
854
- var clippingParents = listScrollParents(getParentNode(element));
855
- var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
856
- var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
857
-
858
- if (!isElement(clipperElement)) {
859
- return [];
860
- } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
861
-
862
-
863
- return clippingParents.filter(function (clippingParent) {
864
- return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
865
- });
866
- } // Gets the maximum area that the element is visible in due to any number of
867
- // clipping parents
868
-
869
-
870
- function getClippingRect(element, boundary, rootBoundary, strategy) {
871
- var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
872
- var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
873
- var firstClippingParent = clippingParents[0];
874
- var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
875
- var rect = getClientRectFromMixedType(element, clippingParent, strategy);
876
- accRect.top = max(rect.top, accRect.top);
877
- accRect.right = min(rect.right, accRect.right);
878
- accRect.bottom = min(rect.bottom, accRect.bottom);
879
- accRect.left = max(rect.left, accRect.left);
880
- return accRect;
881
- }, getClientRectFromMixedType(element, firstClippingParent, strategy));
882
- clippingRect.width = clippingRect.right - clippingRect.left;
883
- clippingRect.height = clippingRect.bottom - clippingRect.top;
884
- clippingRect.x = clippingRect.left;
885
- clippingRect.y = clippingRect.top;
886
- return clippingRect;
887
- }
888
-
889
- function computeOffsets(_ref) {
890
- var reference = _ref.reference,
891
- element = _ref.element,
892
- placement = _ref.placement;
893
- var basePlacement = placement ? getBasePlacement(placement) : null;
894
- var variation = placement ? getVariation(placement) : null;
895
- var commonX = reference.x + reference.width / 2 - element.width / 2;
896
- var commonY = reference.y + reference.height / 2 - element.height / 2;
897
- var offsets;
898
-
899
- switch (basePlacement) {
900
- case top:
901
- offsets = {
902
- x: commonX,
903
- y: reference.y - element.height
904
- };
905
- break;
906
-
907
- case bottom:
908
- offsets = {
909
- x: commonX,
910
- y: reference.y + reference.height
911
- };
912
- break;
913
-
914
- case right:
915
- offsets = {
916
- x: reference.x + reference.width,
917
- y: commonY
918
- };
919
- break;
920
-
921
- case left:
922
- offsets = {
923
- x: reference.x - element.width,
924
- y: commonY
925
- };
926
- break;
927
-
928
- default:
929
- offsets = {
930
- x: reference.x,
931
- y: reference.y
932
- };
933
- }
934
-
935
- var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
936
-
937
- if (mainAxis != null) {
938
- var len = mainAxis === 'y' ? 'height' : 'width';
939
-
940
- switch (variation) {
941
- case start:
942
- offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
943
- break;
944
-
945
- case end:
946
- offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
947
- break;
948
- }
949
- }
950
-
951
- return offsets;
952
- }
953
-
954
- function detectOverflow(state, options) {
955
- if (options === void 0) {
956
- options = {};
957
- }
958
-
959
- var _options = options,
960
- _options$placement = _options.placement,
961
- placement = _options$placement === void 0 ? state.placement : _options$placement,
962
- _options$strategy = _options.strategy,
963
- strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
964
- _options$boundary = _options.boundary,
965
- boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
966
- _options$rootBoundary = _options.rootBoundary,
967
- rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
968
- _options$elementConte = _options.elementContext,
969
- elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
970
- _options$altBoundary = _options.altBoundary,
971
- altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
972
- _options$padding = _options.padding,
973
- padding = _options$padding === void 0 ? 0 : _options$padding;
974
- var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
975
- var altContext = elementContext === popper ? reference : popper;
976
- var popperRect = state.rects.popper;
977
- var element = state.elements[altBoundary ? altContext : elementContext];
978
- var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
979
- var referenceClientRect = getBoundingClientRect(state.elements.reference);
980
- var popperOffsets = computeOffsets({
981
- reference: referenceClientRect,
982
- element: popperRect,
983
- strategy: 'absolute',
984
- placement: placement
985
- });
986
- var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
987
- var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
988
- // 0 or negative = within the clipping rect
989
-
990
- var overflowOffsets = {
991
- top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
992
- bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
993
- left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
994
- right: elementClientRect.right - clippingClientRect.right + paddingObject.right
995
- };
996
- var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
997
-
998
- if (elementContext === popper && offsetData) {
999
- var offset = offsetData[placement];
1000
- Object.keys(overflowOffsets).forEach(function (key) {
1001
- var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
1002
- var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
1003
- overflowOffsets[key] += offset[axis] * multiply;
1004
- });
1005
- }
1006
-
1007
- return overflowOffsets;
1008
- }
1009
-
1010
- function computeAutoPlacement(state, options) {
1011
- if (options === void 0) {
1012
- options = {};
1013
- }
1014
-
1015
- var _options = options,
1016
- placement = _options.placement,
1017
- boundary = _options.boundary,
1018
- rootBoundary = _options.rootBoundary,
1019
- padding = _options.padding,
1020
- flipVariations = _options.flipVariations,
1021
- _options$allowedAutoP = _options.allowedAutoPlacements,
1022
- allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
1023
- var variation = getVariation(placement);
1024
- var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
1025
- return getVariation(placement) === variation;
1026
- }) : basePlacements;
1027
- var allowedPlacements = placements$1.filter(function (placement) {
1028
- return allowedAutoPlacements.indexOf(placement) >= 0;
1029
- });
1030
-
1031
- if (allowedPlacements.length === 0) {
1032
- allowedPlacements = placements$1;
1033
- } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
1034
-
1035
-
1036
- var overflows = allowedPlacements.reduce(function (acc, placement) {
1037
- acc[placement] = detectOverflow(state, {
1038
- placement: placement,
1039
- boundary: boundary,
1040
- rootBoundary: rootBoundary,
1041
- padding: padding
1042
- })[getBasePlacement(placement)];
1043
- return acc;
1044
- }, {});
1045
- return Object.keys(overflows).sort(function (a, b) {
1046
- return overflows[a] - overflows[b];
1047
- });
1048
- }
1049
-
1050
- function getExpandedFallbackPlacements(placement) {
1051
- if (getBasePlacement(placement) === auto) {
1052
- return [];
1053
- }
1054
-
1055
- var oppositePlacement = getOppositePlacement(placement);
1056
- return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
1057
- }
1058
-
1059
- function flip(_ref) {
1060
- var state = _ref.state,
1061
- options = _ref.options,
1062
- name = _ref.name;
1063
-
1064
- if (state.modifiersData[name]._skip) {
1065
- return;
1066
- }
1067
-
1068
- var _options$mainAxis = options.mainAxis,
1069
- checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1070
- _options$altAxis = options.altAxis,
1071
- checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
1072
- specifiedFallbackPlacements = options.fallbackPlacements,
1073
- padding = options.padding,
1074
- boundary = options.boundary,
1075
- rootBoundary = options.rootBoundary,
1076
- altBoundary = options.altBoundary,
1077
- _options$flipVariatio = options.flipVariations,
1078
- flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
1079
- allowedAutoPlacements = options.allowedAutoPlacements;
1080
- var preferredPlacement = state.options.placement;
1081
- var basePlacement = getBasePlacement(preferredPlacement);
1082
- var isBasePlacement = basePlacement === preferredPlacement;
1083
- var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
1084
- var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
1085
- return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {
1086
- placement: placement,
1087
- boundary: boundary,
1088
- rootBoundary: rootBoundary,
1089
- padding: padding,
1090
- flipVariations: flipVariations,
1091
- allowedAutoPlacements: allowedAutoPlacements
1092
- }) : placement);
1093
- }, []);
1094
- var referenceRect = state.rects.reference;
1095
- var popperRect = state.rects.popper;
1096
- var checksMap = new Map();
1097
- var makeFallbackChecks = true;
1098
- var firstFittingPlacement = placements[0];
1099
-
1100
- for (var i = 0; i < placements.length; i++) {
1101
- var placement = placements[i];
1102
-
1103
- var _basePlacement = getBasePlacement(placement);
1104
-
1105
- var isStartVariation = getVariation(placement) === start;
1106
- var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
1107
- var len = isVertical ? 'width' : 'height';
1108
- var overflow = detectOverflow(state, {
1109
- placement: placement,
1110
- boundary: boundary,
1111
- rootBoundary: rootBoundary,
1112
- altBoundary: altBoundary,
1113
- padding: padding
1114
- });
1115
- var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
1116
-
1117
- if (referenceRect[len] > popperRect[len]) {
1118
- mainVariationSide = getOppositePlacement(mainVariationSide);
1119
- }
1120
-
1121
- var altVariationSide = getOppositePlacement(mainVariationSide);
1122
- var checks = [];
1123
-
1124
- if (checkMainAxis) {
1125
- checks.push(overflow[_basePlacement] <= 0);
1126
- }
1127
-
1128
- if (checkAltAxis) {
1129
- checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
1130
- }
1131
-
1132
- if (checks.every(function (check) {
1133
- return check;
1134
- })) {
1135
- firstFittingPlacement = placement;
1136
- makeFallbackChecks = false;
1137
- break;
1138
- }
1139
-
1140
- checksMap.set(placement, checks);
1141
- }
1142
-
1143
- if (makeFallbackChecks) {
1144
- // `2` may be desired in some cases – research later
1145
- var numberOfChecks = flipVariations ? 3 : 1;
1146
-
1147
- var _loop = function _loop(_i) {
1148
- var fittingPlacement = placements.find(function (placement) {
1149
- var checks = checksMap.get(placement);
1150
-
1151
- if (checks) {
1152
- return checks.slice(0, _i).every(function (check) {
1153
- return check;
1154
- });
1155
- }
1156
- });
1157
-
1158
- if (fittingPlacement) {
1159
- firstFittingPlacement = fittingPlacement;
1160
- return "break";
1161
- }
1162
- };
1163
-
1164
- for (var _i = numberOfChecks; _i > 0; _i--) {
1165
- var _ret = _loop(_i);
1166
-
1167
- if (_ret === "break") break;
1168
- }
1169
- }
1170
-
1171
- if (state.placement !== firstFittingPlacement) {
1172
- state.modifiersData[name]._skip = true;
1173
- state.placement = firstFittingPlacement;
1174
- state.reset = true;
1175
- }
1176
- } // eslint-disable-next-line import/no-unused-modules
1177
-
1178
-
1179
- const flip$1 = {
1180
- name: 'flip',
1181
- enabled: true,
1182
- phase: 'main',
1183
- fn: flip,
1184
- requiresIfExists: ['offset'],
1185
- data: {
1186
- _skip: false
1187
- }
1188
- };
1189
-
1190
- function getSideOffsets(overflow, rect, preventedOffsets) {
1191
- if (preventedOffsets === void 0) {
1192
- preventedOffsets = {
1193
- x: 0,
1194
- y: 0
1195
- };
1196
- }
1197
-
1198
- return {
1199
- top: overflow.top - rect.height - preventedOffsets.y,
1200
- right: overflow.right - rect.width + preventedOffsets.x,
1201
- bottom: overflow.bottom - rect.height + preventedOffsets.y,
1202
- left: overflow.left - rect.width - preventedOffsets.x
1203
- };
1204
- }
1205
-
1206
- function isAnySideFullyClipped(overflow) {
1207
- return [top, right, bottom, left].some(function (side) {
1208
- return overflow[side] >= 0;
1209
- });
1210
- }
1211
-
1212
- function hide(_ref) {
1213
- var state = _ref.state,
1214
- name = _ref.name;
1215
- var referenceRect = state.rects.reference;
1216
- var popperRect = state.rects.popper;
1217
- var preventedOffsets = state.modifiersData.preventOverflow;
1218
- var referenceOverflow = detectOverflow(state, {
1219
- elementContext: 'reference'
1220
- });
1221
- var popperAltOverflow = detectOverflow(state, {
1222
- altBoundary: true
1223
- });
1224
- var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
1225
- var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
1226
- var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
1227
- var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
1228
- state.modifiersData[name] = {
1229
- referenceClippingOffsets: referenceClippingOffsets,
1230
- popperEscapeOffsets: popperEscapeOffsets,
1231
- isReferenceHidden: isReferenceHidden,
1232
- hasPopperEscaped: hasPopperEscaped
1233
- };
1234
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
1235
- 'data-popper-reference-hidden': isReferenceHidden,
1236
- 'data-popper-escaped': hasPopperEscaped
1237
- });
1238
- } // eslint-disable-next-line import/no-unused-modules
1239
-
1240
-
1241
- const hide$1 = {
1242
- name: 'hide',
1243
- enabled: true,
1244
- phase: 'main',
1245
- requiresIfExists: ['preventOverflow'],
1246
- fn: hide
1247
- };
1248
-
1249
- function distanceAndSkiddingToXY(placement, rects, offset) {
1250
- var basePlacement = getBasePlacement(placement);
1251
- var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
1252
-
1253
- var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
1254
- placement: placement
1255
- })) : offset,
1256
- skidding = _ref[0],
1257
- distance = _ref[1];
1258
-
1259
- skidding = skidding || 0;
1260
- distance = (distance || 0) * invertDistance;
1261
- return [left, right].indexOf(basePlacement) >= 0 ? {
1262
- x: distance,
1263
- y: skidding
1264
- } : {
1265
- x: skidding,
1266
- y: distance
1267
- };
1268
- }
1269
-
1270
- function offset(_ref2) {
1271
- var state = _ref2.state,
1272
- options = _ref2.options,
1273
- name = _ref2.name;
1274
- var _options$offset = options.offset,
1275
- offset = _options$offset === void 0 ? [0, 0] : _options$offset;
1276
- var data = placements.reduce(function (acc, placement) {
1277
- acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
1278
- return acc;
1279
- }, {});
1280
- var _data$state$placement = data[state.placement],
1281
- x = _data$state$placement.x,
1282
- y = _data$state$placement.y;
1283
-
1284
- if (state.modifiersData.popperOffsets != null) {
1285
- state.modifiersData.popperOffsets.x += x;
1286
- state.modifiersData.popperOffsets.y += y;
1287
- }
1288
-
1289
- state.modifiersData[name] = data;
1290
- } // eslint-disable-next-line import/no-unused-modules
1291
-
1292
-
1293
- const offset$1 = {
1294
- name: 'offset',
1295
- enabled: true,
1296
- phase: 'main',
1297
- requires: ['popperOffsets'],
1298
- fn: offset
1299
- };
1300
-
1301
- function popperOffsets(_ref) {
1302
- var state = _ref.state,
1303
- name = _ref.name;
1304
- // Offsets are the actual position the popper needs to have to be
1305
- // properly positioned near its reference element
1306
- // This is the most basic placement, and will be adjusted by
1307
- // the modifiers in the next step
1308
- state.modifiersData[name] = computeOffsets({
1309
- reference: state.rects.reference,
1310
- element: state.rects.popper,
1311
- strategy: 'absolute',
1312
- placement: state.placement
1313
- });
1314
- } // eslint-disable-next-line import/no-unused-modules
1315
-
1316
-
1317
- const popperOffsets$1 = {
1318
- name: 'popperOffsets',
1319
- enabled: true,
1320
- phase: 'read',
1321
- fn: popperOffsets,
1322
- data: {}
1323
- };
1324
-
1325
- function getAltAxis(axis) {
1326
- return axis === 'x' ? 'y' : 'x';
1327
- }
1328
-
1329
- function preventOverflow(_ref) {
1330
- var state = _ref.state,
1331
- options = _ref.options,
1332
- name = _ref.name;
1333
- var _options$mainAxis = options.mainAxis,
1334
- checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1335
- _options$altAxis = options.altAxis,
1336
- checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
1337
- boundary = options.boundary,
1338
- rootBoundary = options.rootBoundary,
1339
- altBoundary = options.altBoundary,
1340
- padding = options.padding,
1341
- _options$tether = options.tether,
1342
- tether = _options$tether === void 0 ? true : _options$tether,
1343
- _options$tetherOffset = options.tetherOffset,
1344
- tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
1345
- var overflow = detectOverflow(state, {
1346
- boundary: boundary,
1347
- rootBoundary: rootBoundary,
1348
- padding: padding,
1349
- altBoundary: altBoundary
1350
- });
1351
- var basePlacement = getBasePlacement(state.placement);
1352
- var variation = getVariation(state.placement);
1353
- var isBasePlacement = !variation;
1354
- var mainAxis = getMainAxisFromPlacement(basePlacement);
1355
- var altAxis = getAltAxis(mainAxis);
1356
- var popperOffsets = state.modifiersData.popperOffsets;
1357
- var referenceRect = state.rects.reference;
1358
- var popperRect = state.rects.popper;
1359
- var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
1360
- placement: state.placement
1361
- })) : tetherOffset;
1362
- var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
1363
- mainAxis: tetherOffsetValue,
1364
- altAxis: tetherOffsetValue
1365
- } : Object.assign({
1366
- mainAxis: 0,
1367
- altAxis: 0
1368
- }, tetherOffsetValue);
1369
- var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
1370
- var data = {
1371
- x: 0,
1372
- y: 0
1373
- };
1374
-
1375
- if (!popperOffsets) {
1376
- return;
1377
- }
1378
-
1379
- if (checkMainAxis) {
1380
- var _offsetModifierState$;
1381
-
1382
- var mainSide = mainAxis === 'y' ? top : left;
1383
- var altSide = mainAxis === 'y' ? bottom : right;
1384
- var len = mainAxis === 'y' ? 'height' : 'width';
1385
- var offset = popperOffsets[mainAxis];
1386
- var min$1 = offset + overflow[mainSide];
1387
- var max$1 = offset - overflow[altSide];
1388
- var additive = tether ? -popperRect[len] / 2 : 0;
1389
- var minLen = variation === start ? referenceRect[len] : popperRect[len];
1390
- var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
1391
- // outside the reference bounds
1392
-
1393
- var arrowElement = state.elements.arrow;
1394
- var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
1395
- width: 0,
1396
- height: 0
1397
- };
1398
- var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
1399
- var arrowPaddingMin = arrowPaddingObject[mainSide];
1400
- var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
1401
- // to include its full size in the calculation. If the reference is small
1402
- // and near the edge of a boundary, the popper can overflow even if the
1403
- // reference is not overflowing as well (e.g. virtual elements with no
1404
- // width or height)
1405
-
1406
- var arrowLen = within(0, referenceRect[len], arrowRect[len]);
1407
- var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
1408
- var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
1409
- var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
1410
- var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
1411
- var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
1412
- var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
1413
- var tetherMax = offset + maxOffset - offsetModifierValue;
1414
- var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
1415
- popperOffsets[mainAxis] = preventedOffset;
1416
- data[mainAxis] = preventedOffset - offset;
1417
- }
1418
-
1419
- if (checkAltAxis) {
1420
- var _offsetModifierState$2;
1421
-
1422
- var _mainSide = mainAxis === 'x' ? top : left;
1423
-
1424
- var _altSide = mainAxis === 'x' ? bottom : right;
1425
-
1426
- var _offset = popperOffsets[altAxis];
1427
-
1428
- var _len = altAxis === 'y' ? 'height' : 'width';
1429
-
1430
- var _min = _offset + overflow[_mainSide];
1431
-
1432
- var _max = _offset - overflow[_altSide];
1433
-
1434
- var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
1435
-
1436
- var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
1437
-
1438
- var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
1439
-
1440
- var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
1441
-
1442
- var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
1443
-
1444
- popperOffsets[altAxis] = _preventedOffset;
1445
- data[altAxis] = _preventedOffset - _offset;
1446
- }
1447
-
1448
- state.modifiersData[name] = data;
1449
- } // eslint-disable-next-line import/no-unused-modules
1450
-
1451
-
1452
- const preventOverflow$1 = {
1453
- name: 'preventOverflow',
1454
- enabled: true,
1455
- phase: 'main',
1456
- fn: preventOverflow,
1457
- requiresIfExists: ['offset']
1458
- };
1459
-
1460
- function getHTMLElementScroll(element) {
1461
- return {
1462
- scrollLeft: element.scrollLeft,
1463
- scrollTop: element.scrollTop
1464
- };
1465
- }
1466
-
1467
- function getNodeScroll(node) {
1468
- if (node === getWindow(node) || !isHTMLElement(node)) {
1469
- return getWindowScroll(node);
1470
- } else {
1471
- return getHTMLElementScroll(node);
1472
- }
1473
- }
1474
-
1475
- function isElementScaled(element) {
1476
- var rect = element.getBoundingClientRect();
1477
- var scaleX = round(rect.width) / element.offsetWidth || 1;
1478
- var scaleY = round(rect.height) / element.offsetHeight || 1;
1479
- return scaleX !== 1 || scaleY !== 1;
1480
- } // Returns the composite rect of an element relative to its offsetParent.
1481
- // Composite means it takes into account transforms as well as layout.
1482
-
1483
-
1484
- function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
1485
- if (isFixed === void 0) {
1486
- isFixed = false;
1487
- }
1488
-
1489
- var isOffsetParentAnElement = isHTMLElement(offsetParent);
1490
- var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
1491
- var documentElement = getDocumentElement(offsetParent);
1492
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
1493
- var scroll = {
1494
- scrollLeft: 0,
1495
- scrollTop: 0
1496
- };
1497
- var offsets = {
1498
- x: 0,
1499
- y: 0
1500
- };
1501
-
1502
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1503
- if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
1504
- isScrollParent(documentElement)) {
1505
- scroll = getNodeScroll(offsetParent);
1506
- }
1507
-
1508
- if (isHTMLElement(offsetParent)) {
1509
- offsets = getBoundingClientRect(offsetParent, true);
1510
- offsets.x += offsetParent.clientLeft;
1511
- offsets.y += offsetParent.clientTop;
1512
- } else if (documentElement) {
1513
- offsets.x = getWindowScrollBarX(documentElement);
1514
- }
1515
- }
1516
-
1517
- return {
1518
- x: rect.left + scroll.scrollLeft - offsets.x,
1519
- y: rect.top + scroll.scrollTop - offsets.y,
1520
- width: rect.width,
1521
- height: rect.height
1522
- };
1523
- }
1524
-
1525
- function order(modifiers) {
1526
- var map = new Map();
1527
- var visited = new Set();
1528
- var result = [];
1529
- modifiers.forEach(function (modifier) {
1530
- map.set(modifier.name, modifier);
1531
- }); // On visiting object, check for its dependencies and visit them recursively
1532
-
1533
- function sort(modifier) {
1534
- visited.add(modifier.name);
1535
- var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
1536
- requires.forEach(function (dep) {
1537
- if (!visited.has(dep)) {
1538
- var depModifier = map.get(dep);
1539
-
1540
- if (depModifier) {
1541
- sort(depModifier);
1542
- }
1543
- }
1544
- });
1545
- result.push(modifier);
1546
- }
1547
-
1548
- modifiers.forEach(function (modifier) {
1549
- if (!visited.has(modifier.name)) {
1550
- // check for visited object
1551
- sort(modifier);
1552
- }
1553
- });
1554
- return result;
1555
- }
1556
-
1557
- function orderModifiers(modifiers) {
1558
- // order based on dependencies
1559
- var orderedModifiers = order(modifiers); // order based on phase
1560
-
1561
- return modifierPhases.reduce(function (acc, phase) {
1562
- return acc.concat(orderedModifiers.filter(function (modifier) {
1563
- return modifier.phase === phase;
1564
- }));
1565
- }, []);
1566
- }
1567
-
1568
- function debounce(fn) {
1569
- var pending;
1570
- return function () {
1571
- if (!pending) {
1572
- pending = new Promise(function (resolve) {
1573
- Promise.resolve().then(function () {
1574
- pending = undefined;
1575
- resolve(fn());
1576
- });
1577
- });
1578
- }
1579
-
1580
- return pending;
1581
- };
1582
- }
1583
-
1584
- function mergeByName(modifiers) {
1585
- var merged = modifiers.reduce(function (merged, current) {
1586
- var existing = merged[current.name];
1587
- merged[current.name] = existing ? Object.assign({}, existing, current, {
1588
- options: Object.assign({}, existing.options, current.options),
1589
- data: Object.assign({}, existing.data, current.data)
1590
- }) : current;
1591
- return merged;
1592
- }, {}); // IE11 does not support Object.values
1593
-
1594
- return Object.keys(merged).map(function (key) {
1595
- return merged[key];
1596
- });
1597
- }
1598
-
1599
- var DEFAULT_OPTIONS = {
1600
- placement: 'bottom',
1601
- modifiers: [],
1602
- strategy: 'absolute'
1603
- };
1604
-
1605
- function areValidElements() {
1606
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1607
- args[_key] = arguments[_key];
1608
- }
1609
-
1610
- return !args.some(function (element) {
1611
- return !(element && typeof element.getBoundingClientRect === 'function');
1612
- });
1613
- }
1614
-
1615
- function popperGenerator(generatorOptions) {
1616
- if (generatorOptions === void 0) {
1617
- generatorOptions = {};
1618
- }
1619
-
1620
- var _generatorOptions = generatorOptions,
1621
- _generatorOptions$def = _generatorOptions.defaultModifiers,
1622
- defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
1623
- _generatorOptions$def2 = _generatorOptions.defaultOptions,
1624
- defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
1625
- return function createPopper(reference, popper, options) {
1626
- if (options === void 0) {
1627
- options = defaultOptions;
1628
- }
1629
-
1630
- var state = {
1631
- placement: 'bottom',
1632
- orderedModifiers: [],
1633
- options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
1634
- modifiersData: {},
1635
- elements: {
1636
- reference: reference,
1637
- popper: popper
1638
- },
1639
- attributes: {},
1640
- styles: {}
1641
- };
1642
- var effectCleanupFns = [];
1643
- var isDestroyed = false;
1644
- var instance = {
1645
- state: state,
1646
- setOptions: function setOptions(setOptionsAction) {
1647
- var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
1648
- cleanupModifierEffects();
1649
- state.options = Object.assign({}, defaultOptions, state.options, options);
1650
- state.scrollParents = {
1651
- reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
1652
- popper: listScrollParents(popper)
1653
- }; // Orders the modifiers based on their dependencies and `phase`
1654
- // properties
1655
-
1656
- var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
1657
-
1658
- state.orderedModifiers = orderedModifiers.filter(function (m) {
1659
- return m.enabled;
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
- return;
1681
- } // Store the reference and popper rects to be read by modifiers
1682
-
1683
-
1684
- state.rects = {
1685
- reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
1686
- popper: getLayoutRect(popper)
1687
- }; // Modifiers have the ability to reset the current update cycle. The
1688
- // most common use case for this is the `flip` modifier changing the
1689
- // placement, which then needs to re-run all the modifiers, because the
1690
- // logic was previously ran for the previous placement and is therefore
1691
- // stale/incorrect
1692
-
1693
- state.reset = false;
1694
- state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
1695
- // is filled with the initial data specified by the modifier. This means
1696
- // it doesn't persist and is fresh on each update.
1697
- // To ensure persistent data, use `${name}#persistent`
1698
-
1699
- state.orderedModifiers.forEach(function (modifier) {
1700
- return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
1701
- });
1702
-
1703
- for (var index = 0; index < state.orderedModifiers.length; index++) {
1704
- if (state.reset === true) {
1705
- state.reset = false;
1706
- index = -1;
1707
- continue;
1708
- }
1709
-
1710
- var _state$orderedModifie = state.orderedModifiers[index],
1711
- fn = _state$orderedModifie.fn,
1712
- _state$orderedModifie2 = _state$orderedModifie.options,
1713
- _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
1714
- name = _state$orderedModifie.name;
1715
-
1716
- if (typeof fn === 'function') {
1717
- state = fn({
1718
- state: state,
1719
- options: _options,
1720
- name: name,
1721
- instance: instance
1722
- }) || state;
1723
- }
1724
- }
1725
- },
1726
- // Async and optimistically optimized update – it will not be executed if
1727
- // not necessary (debounced to run at most once-per-tick)
1728
- update: debounce(function () {
1729
- return new Promise(function (resolve) {
1730
- instance.forceUpdate();
1731
- resolve(state);
1732
- });
1733
- }),
1734
- destroy: function destroy() {
1735
- cleanupModifierEffects();
1736
- isDestroyed = true;
1737
- }
1738
- };
1739
-
1740
- if (!areValidElements(reference, popper)) {
1741
- return instance;
1742
- }
1743
-
1744
- instance.setOptions(options).then(function (state) {
1745
- if (!isDestroyed && options.onFirstUpdate) {
1746
- options.onFirstUpdate(state);
1747
- }
1748
- }); // Modifiers have the ability to execute arbitrary code before the first
1749
- // update cycle runs. They will be executed in the same order as the update
1750
- // cycle. This is useful when a modifier adds some persistent data that
1751
- // other modifiers need to use, but the modifier is run after the dependent
1752
- // one.
1753
-
1754
- function runModifierEffects() {
1755
- state.orderedModifiers.forEach(function (_ref) {
1756
- var name = _ref.name,
1757
- _ref$options = _ref.options,
1758
- options = _ref$options === void 0 ? {} : _ref$options,
1759
- effect = _ref.effect;
1760
-
1761
- if (typeof effect === 'function') {
1762
- var cleanupFn = effect({
1763
- state: state,
1764
- name: name,
1765
- instance: instance,
1766
- options: options
1767
- });
1768
-
1769
- var noopFn = function noopFn() {};
1770
-
1771
- effectCleanupFns.push(cleanupFn || noopFn);
1772
- }
1773
- });
1774
- }
1775
-
1776
- function cleanupModifierEffects() {
1777
- effectCleanupFns.forEach(function (fn) {
1778
- return fn();
1779
- });
1780
- effectCleanupFns = [];
1781
- }
1782
-
1783
- return instance;
1784
- };
1785
- }
1786
-
1787
- var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
1788
- var createPopper = /*#__PURE__*/popperGenerator({
1789
- defaultModifiers: defaultModifiers
1790
- }); // eslint-disable-next-line import/no-unused-modules
1791
-
1792
- export { createPopper as c };