@dso-toolkit/core 76.0.0 → 77.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (538) hide show
  1. package/dist/bundle/dso-accordion-section.js +5 -5
  2. package/dist/bundle/dso-action-list-item.js +1 -1
  3. package/dist/bundle/dso-advanced-select.js +3 -3
  4. package/dist/bundle/dso-alert.js +1 -1
  5. package/dist/bundle/dso-annotation-activiteit.js +5 -5
  6. package/dist/bundle/dso-annotation-activiteit.js.map +1 -1
  7. package/dist/bundle/dso-annotation-gebiedsaanwijzing.js +5 -5
  8. package/dist/bundle/dso-annotation-gebiedsaanwijzing.js.map +1 -1
  9. package/dist/bundle/dso-annotation-kaart.js +3 -3
  10. package/dist/bundle/dso-annotation-kaart.js.map +1 -1
  11. package/dist/bundle/dso-annotation-locatie.js +1 -1
  12. package/dist/bundle/dso-annotation-omgevingsnormwaarde.js +5 -5
  13. package/dist/bundle/dso-annotation-omgevingsnormwaarde.js.map +1 -1
  14. package/dist/bundle/dso-attachments-counter.js +1 -1
  15. package/dist/bundle/dso-autosuggest.js +3 -3
  16. package/dist/bundle/dso-button-group.d.ts +11 -0
  17. package/dist/bundle/dso-button-group.js +9 -0
  18. package/dist/bundle/dso-button-group.js.map +1 -0
  19. package/dist/bundle/dso-card-container.js +1 -1
  20. package/dist/bundle/dso-card.js +4 -4
  21. package/dist/bundle/dso-card.js.map +1 -1
  22. package/dist/bundle/dso-contact-information.js +1 -1
  23. package/dist/bundle/dso-date-picker-legacy.js +4 -4
  24. package/dist/bundle/dso-date-picker.js +1 -1
  25. package/dist/bundle/dso-document-card.js +2 -2
  26. package/dist/bundle/dso-document-component.js +1 -1
  27. package/dist/bundle/dso-dropdown-menu.js +1 -1
  28. package/dist/bundle/dso-header.js +4 -4
  29. package/dist/bundle/dso-header.js.map +1 -1
  30. package/dist/bundle/dso-highlight-box.js +1 -1
  31. package/dist/bundle/dso-icon.js +1 -1
  32. package/dist/bundle/dso-image-overlay.js +1 -1
  33. package/dist/bundle/dso-info-button.js +1 -1
  34. package/dist/bundle/dso-info.js +1 -1
  35. package/dist/bundle/dso-input-range.js +2 -2
  36. package/dist/bundle/dso-label.js +1 -1
  37. package/dist/bundle/dso-legend-item.js +6 -6
  38. package/dist/bundle/dso-list-button.js +5 -5
  39. package/dist/bundle/dso-logo.js +1 -1
  40. package/dist/bundle/dso-map-base-layers.js +5 -5
  41. package/dist/bundle/dso-map-controls.js +12 -6
  42. package/dist/bundle/dso-map-controls.js.map +1 -1
  43. package/dist/bundle/dso-map-overlays.js +5 -5
  44. package/dist/bundle/dso-mark-bar.js +2 -2
  45. package/dist/bundle/dso-modal.js +3 -3
  46. package/dist/bundle/dso-onboarding-tip.js +3 -1661
  47. package/dist/bundle/dso-onboarding-tip.js.map +1 -1
  48. package/dist/bundle/dso-ozon-content.js +1 -1
  49. package/dist/bundle/dso-pagination.js +3 -3
  50. package/dist/bundle/dso-pagination.js.map +1 -1
  51. package/dist/bundle/dso-panel.js +1 -1
  52. package/dist/bundle/dso-plekinfo-card.js +2 -2
  53. package/dist/bundle/dso-progress-bar.js +1 -1
  54. package/dist/bundle/dso-progress-indicator.js +1 -1
  55. package/dist/bundle/dso-project-item.js +4 -4
  56. package/dist/bundle/dso-responsive-element.js +1 -1
  57. package/dist/bundle/dso-scrollable.js +1 -1
  58. package/dist/bundle/dso-selectable.js +1 -1
  59. package/dist/bundle/dso-skiplink.js +2 -2
  60. package/dist/bundle/dso-slide-toggle.js +1 -1
  61. package/dist/bundle/dso-survey-rating.js +5 -5
  62. package/dist/bundle/dso-table.js +1 -1
  63. package/dist/bundle/dso-tabs.js +1 -1
  64. package/dist/bundle/dso-toggletip.js +1 -1
  65. package/dist/bundle/dso-tooltip.js +1 -1
  66. package/dist/bundle/dso-tree-view.js +3 -3
  67. package/dist/bundle/dso-viewer-grid.js +2 -2
  68. package/dist/bundle/dsot-document-component-demo.js +13 -13
  69. package/dist/bundle/index.js +2 -0
  70. package/dist/bundle/index.js.map +1 -1
  71. package/dist/bundle/{p-BS-Y76bJ.js → p-9zjtdLN6.js} +3 -3
  72. package/dist/bundle/{p-BS-Y76bJ.js.map → p-9zjtdLN6.js.map} +1 -1
  73. package/dist/bundle/{p-DAtQydKx.js → p-BBxSnuWP.js} +4 -4
  74. package/dist/bundle/{p-DAtQydKx.js.map → p-BBxSnuWP.js.map} +1 -1
  75. package/dist/bundle/{p-C0s1JAlb.js → p-BGaAMVmM.js} +6 -6
  76. package/dist/bundle/{p-C0s1JAlb.js.map → p-BGaAMVmM.js.map} +1 -1
  77. package/dist/bundle/{p-C62PayXc.js → p-BLcgQKpu.js} +3 -3
  78. package/dist/bundle/{p-C62PayXc.js.map → p-BLcgQKpu.js.map} +1 -1
  79. package/dist/bundle/{p-DhhVHw2w.js → p-BP2p2tL5.js} +12 -12
  80. package/dist/bundle/{p-DhhVHw2w.js.map → p-BP2p2tL5.js.map} +1 -1
  81. package/dist/bundle/{p-L6frHRla.js → p-BlvELqv3.js} +8 -8
  82. package/dist/bundle/{p-L6frHRla.js.map → p-BlvELqv3.js.map} +1 -1
  83. package/dist/bundle/{p-_DIUHRiS.js → p-BzRDrr-_.js} +3 -3
  84. package/dist/bundle/{p-_DIUHRiS.js.map → p-BzRDrr-_.js.map} +1 -1
  85. package/dist/bundle/{p-r4JnUhJ5.js → p-CMjyxr8o.js} +4 -4
  86. package/dist/bundle/{p-r4JnUhJ5.js.map → p-CMjyxr8o.js.map} +1 -1
  87. package/dist/bundle/{p-BJhPYrsL.js → p-CoKesn28.js} +4 -4
  88. package/dist/bundle/{p-BJhPYrsL.js.map → p-CoKesn28.js.map} +1 -1
  89. package/dist/bundle/p-Cve9JK5u.js +58 -0
  90. package/dist/bundle/p-Cve9JK5u.js.map +1 -0
  91. package/dist/bundle/{p-CdvSnpb_.js → p-CyJdlUc_.js} +3 -3
  92. package/dist/bundle/{p-CdvSnpb_.js.map → p-CyJdlUc_.js.map} +1 -1
  93. package/dist/bundle/{p-BI8W5IHk.js → p-DJ7nyiIt.js} +4 -4
  94. package/dist/bundle/{p-BI8W5IHk.js.map → p-DJ7nyiIt.js.map} +1 -1
  95. package/dist/bundle/{p-Dp31hMfn.js → p-DK7N75_d.js} +48 -115
  96. package/dist/bundle/p-DK7N75_d.js.map +1 -0
  97. package/dist/bundle/{p-CIShecZA.js → p-DM1_b6nQ.js} +3 -3
  98. package/dist/bundle/{p-CIShecZA.js.map → p-DM1_b6nQ.js.map} +1 -1
  99. package/dist/{cjs/has-overflow-B_4p67wC.js → bundle/p-DNO4kzq4.js} +311 -7
  100. package/dist/bundle/p-DNO4kzq4.js.map +1 -0
  101. package/dist/bundle/{p-J2YfZwgD.js → p-DSdjKKyW.js} +7 -7
  102. package/dist/bundle/{p-J2YfZwgD.js.map → p-DSdjKKyW.js.map} +1 -1
  103. package/dist/bundle/{p-D1jpHeMq.js → p-DZ8OX1GG.js} +3 -3
  104. package/dist/bundle/{p-D1jpHeMq.js.map → p-DZ8OX1GG.js.map} +1 -1
  105. package/dist/bundle/{p-CgRdthz0.js → p-DpoKLKOQ.js} +5 -5
  106. package/dist/bundle/{p-CgRdthz0.js.map → p-DpoKLKOQ.js.map} +1 -1
  107. package/dist/bundle/{p-BCHeTZOb.js → p-DwVf2qDM.js} +6 -6
  108. package/dist/bundle/{p-BCHeTZOb.js.map → p-DwVf2qDM.js.map} +1 -1
  109. package/dist/bundle/p-DyzZdG1l.js +80 -0
  110. package/dist/bundle/{p-CagCGFPb.js.map → p-DyzZdG1l.js.map} +1 -1
  111. package/dist/bundle/{p-Fr4DmH1l.js → p-Hd6HHp3Q.js} +4 -4
  112. package/dist/bundle/{p-Fr4DmH1l.js.map → p-Hd6HHp3Q.js.map} +1 -1
  113. package/dist/bundle/p-gdsca1fx.js +1663 -0
  114. package/dist/bundle/p-gdsca1fx.js.map +1 -0
  115. package/dist/cjs/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.cjs.js.map +1 -1
  116. package/dist/cjs/dso-alert_6.cjs.entry.js +5 -5
  117. package/dist/cjs/dso-alert_6.cjs.entry.js.map +1 -1
  118. package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +1 -1
  119. package/dist/cjs/dso-annotation-activiteit.cjs.entry.js.map +1 -1
  120. package/dist/cjs/dso-annotation-activiteit.entry.cjs.js.map +1 -1
  121. package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +1 -1
  122. package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js.map +1 -1
  123. package/dist/cjs/dso-annotation-gebiedsaanwijzing.entry.cjs.js.map +1 -1
  124. package/dist/cjs/dso-annotation-kaart.cjs.entry.js +1 -1
  125. package/dist/cjs/dso-annotation-kaart.cjs.entry.js.map +1 -1
  126. package/dist/cjs/dso-annotation-kaart.entry.cjs.js.map +1 -1
  127. package/dist/cjs/dso-annotation-locatie.dso-document-component.entry.cjs.js.map +1 -1
  128. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +3 -3
  129. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js.map +1 -1
  130. package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +1 -1
  131. package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js.map +1 -1
  132. package/dist/cjs/dso-annotation-omgevingsnormwaarde.entry.cjs.js.map +1 -1
  133. package/dist/cjs/dso-button-group.cjs.entry.js +43 -0
  134. package/dist/cjs/dso-button-group.cjs.entry.js.map +1 -0
  135. package/dist/cjs/dso-button-group.entry.cjs.js.map +1 -0
  136. package/dist/cjs/dso-card-container.cjs.entry.js +1 -1
  137. package/dist/cjs/dso-card.cjs.entry.js +3 -3
  138. package/dist/cjs/dso-card.cjs.entry.js.map +1 -1
  139. package/dist/cjs/dso-card.entry.cjs.js.map +1 -1
  140. package/dist/cjs/dso-contact-information.cjs.entry.js +1 -1
  141. package/dist/cjs/dso-date-picker-legacy.cjs.entry.js +3 -3
  142. package/dist/cjs/dso-date-picker.cjs.entry.js +1 -1
  143. package/dist/cjs/dso-document-card.cjs.entry.js +1 -1
  144. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +44 -103
  145. package/dist/cjs/dso-dropdown-menu.cjs.entry.js.map +1 -1
  146. package/dist/cjs/dso-dropdown-menu.entry.cjs.js.map +1 -1
  147. package/dist/cjs/dso-header.cjs.entry.js +2 -2
  148. package/dist/cjs/dso-header.cjs.entry.js.map +1 -1
  149. package/dist/cjs/dso-header.entry.cjs.js.map +1 -1
  150. package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
  151. package/dist/cjs/dso-icon.cjs.entry.js +1 -1
  152. package/dist/cjs/dso-info-button.cjs.entry.js +1 -1
  153. package/dist/cjs/dso-info_2.cjs.entry.js +2 -2
  154. package/dist/cjs/dso-input-range.cjs.entry.js +2 -2
  155. package/dist/cjs/dso-label_3.cjs.entry.js +4 -4
  156. package/dist/cjs/dso-legend-item.cjs.entry.js +1 -1
  157. package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
  158. package/dist/cjs/dso-logo.cjs.entry.js +1 -1
  159. package/dist/cjs/dso-map-base-layers.cjs.entry.js +1 -1
  160. package/dist/cjs/dso-map-controls.cjs.entry.js +3 -3
  161. package/dist/cjs/dso-map-controls.cjs.entry.js.map +1 -1
  162. package/dist/cjs/dso-map-controls.entry.cjs.js.map +1 -1
  163. package/dist/cjs/dso-map-overlays.cjs.entry.js +1 -1
  164. package/dist/cjs/dso-mark-bar.cjs.entry.js +1 -1
  165. package/dist/cjs/dso-modal.cjs.entry.js +1 -1
  166. package/dist/cjs/dso-onboarding-tip.cjs.entry.js +9 -1667
  167. package/dist/cjs/dso-onboarding-tip.cjs.entry.js.map +1 -1
  168. package/dist/cjs/dso-onboarding-tip.entry.cjs.js.map +1 -1
  169. package/dist/cjs/dso-pagination.cjs.entry.js +1 -1
  170. package/dist/cjs/dso-pagination.cjs.entry.js.map +1 -1
  171. package/dist/cjs/dso-pagination.entry.cjs.js.map +1 -1
  172. package/dist/cjs/dso-plekinfo-card.cjs.entry.js +1 -1
  173. package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
  174. package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
  175. package/dist/cjs/dso-project-item.cjs.entry.js +1 -1
  176. package/dist/cjs/dso-responsive-element.cjs.entry.js +1 -1
  177. package/dist/cjs/dso-scrollable.cjs.entry.js +2 -2
  178. package/dist/cjs/dso-skiplink.cjs.entry.js +1 -1
  179. package/dist/cjs/dso-survey-rating.cjs.entry.js +3 -3
  180. package/dist/cjs/dso-tabs.cjs.entry.js +1 -1
  181. package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
  182. package/dist/cjs/dso-toolkit.cjs.js +1 -1
  183. package/dist/cjs/dso-tooltip.cjs.entry.js +1802 -6
  184. package/dist/cjs/dso-tooltip.cjs.entry.js.map +1 -1
  185. package/dist/cjs/dso-tooltip.entry.cjs.js.map +1 -1
  186. package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
  187. package/dist/cjs/dso-viewer-grid.cjs.entry.js +2 -2
  188. package/dist/cjs/dsot-document-component-demo.cjs.entry.js +1 -1
  189. package/dist/cjs/floating-ui.dom-uZgU2YQo.js +1671 -0
  190. package/dist/cjs/floating-ui.dom-uZgU2YQo.js.map +1 -0
  191. package/dist/cjs/loader.cjs.js +1 -1
  192. package/dist/collection/collection-manifest.json +1 -0
  193. package/dist/collection/components/annotation/annotation.css +3 -0
  194. package/dist/collection/components/button-group/button-group.css +76 -0
  195. package/dist/collection/components/button-group/button-group.interfaces.js +2 -0
  196. package/dist/collection/components/button-group/button-group.interfaces.js.map +1 -0
  197. package/dist/collection/components/button-group/button-group.js +74 -0
  198. package/dist/collection/components/button-group/button-group.js.map +1 -0
  199. package/dist/collection/components/card/card.css +3 -0
  200. package/dist/collection/components/card/card.js +2 -2
  201. package/dist/collection/components/card-container/card-container.js +1 -1
  202. package/dist/collection/components/contact-information/contact-information.js +1 -1
  203. package/dist/collection/components/date-picker/date-picker.js +1 -1
  204. package/dist/collection/components/date-picker-legacy/date-picker-legacy.js +3 -3
  205. package/dist/collection/components/document-card/document-card.js +1 -1
  206. package/dist/collection/components/document-component/document-component.css +226 -5
  207. package/dist/collection/components/document-component/document-component.js +1 -1
  208. package/dist/collection/components/document-component-demo/document-component.demo.js +1 -1
  209. package/dist/collection/components/dropdown-menu/dropdown-menu.css +8 -0
  210. package/dist/collection/components/dropdown-menu/dropdown-menu.js +43 -176
  211. package/dist/collection/components/dropdown-menu/dropdown-menu.js.map +1 -1
  212. package/dist/collection/components/header/header.js +2 -2
  213. package/dist/collection/components/header/header.js.map +1 -1
  214. package/dist/collection/components/highlight-box/highlight-box.js +1 -1
  215. package/dist/collection/components/icon/icon.js +1 -1
  216. package/dist/collection/components/image-overlay/image-overlay.css +8 -8
  217. package/dist/collection/components/info/info.js +1 -1
  218. package/dist/collection/components/info-button/info-button.js +1 -1
  219. package/dist/collection/components/input-range/input-range.js +2 -2
  220. package/dist/collection/components/label/label.js +3 -3
  221. package/dist/collection/components/legend-item/legend-item.js +1 -1
  222. package/dist/collection/components/list-button/list-button.js +1 -1
  223. package/dist/collection/components/logo/logo.js +1 -1
  224. package/dist/collection/components/map-base-layers/map-base-layers.js +1 -1
  225. package/dist/collection/components/map-controls/map-controls.css +725 -184
  226. package/dist/collection/components/map-controls/map-controls.js +3 -3
  227. package/dist/collection/components/map-controls/map-controls.js.map +1 -1
  228. package/dist/collection/components/map-overlays/map-overlays.js +1 -1
  229. package/dist/collection/components/mark-bar/mark-bar.js +1 -1
  230. package/dist/collection/components/modal/modal.js +1 -1
  231. package/dist/collection/components/onboarding-tip/onboarding-tip.js +1 -1
  232. package/dist/collection/components/ozon-content/ozon-content.css +226 -5
  233. package/dist/collection/components/ozon-content/ozon-content.js +1 -1
  234. package/dist/collection/components/pagination/pagination.css +1 -2
  235. package/dist/collection/components/plekinfo-card/plekinfo-card.js +1 -1
  236. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  237. package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
  238. package/dist/collection/components/project-item/project-item.js +1 -1
  239. package/dist/collection/components/responsive-element/responsive-element.js +1 -1
  240. package/dist/collection/components/scrollable/scrollable.js +2 -2
  241. package/dist/collection/components/selectable/selectable.js +1 -1
  242. package/dist/collection/components/skiplink/skiplink.js +1 -1
  243. package/dist/collection/components/slide-toggle/slide-toggle.js +1 -1
  244. package/dist/collection/components/survey-rating/survey-rating.css +4 -4
  245. package/dist/collection/components/survey-rating/survey-rating.js +2 -2
  246. package/dist/collection/components/table/table.css +223 -5
  247. package/dist/collection/components/table/table.js +1 -1
  248. package/dist/collection/components/tabs/tabs.js +1 -1
  249. package/dist/collection/components/toggletip/toggletip.js +1 -1
  250. package/dist/collection/components/tooltip/tooltip.js +1 -1
  251. package/dist/collection/components/tree-view/tree-view.js +1 -1
  252. package/dist/collection/components/viewer-grid/viewer-grid.css +4 -4
  253. package/dist/collection/components/viewer-grid/viewer-grid.js +1 -1
  254. package/dist/components/annotation-locatie.js +1 -1
  255. package/dist/components/annotation-locatie.js.map +1 -1
  256. package/dist/components/button-group.js +58 -0
  257. package/dist/components/button-group.js.map +1 -0
  258. package/dist/components/document-component.js +2 -2
  259. package/dist/components/document-component.js.map +1 -1
  260. package/dist/components/dropdown-menu.js +46 -113
  261. package/dist/components/dropdown-menu.js.map +1 -1
  262. package/dist/components/dso-annotation-activiteit.js +1 -1
  263. package/dist/components/dso-annotation-activiteit.js.map +1 -1
  264. package/dist/components/dso-annotation-gebiedsaanwijzing.js +1 -1
  265. package/dist/components/dso-annotation-gebiedsaanwijzing.js.map +1 -1
  266. package/dist/components/dso-annotation-kaart.js +1 -1
  267. package/dist/components/dso-annotation-kaart.js.map +1 -1
  268. package/dist/components/dso-annotation-omgevingsnormwaarde.js +1 -1
  269. package/dist/components/dso-annotation-omgevingsnormwaarde.js.map +1 -1
  270. package/dist/components/dso-button-group.d.ts +11 -0
  271. package/dist/components/dso-button-group.js +9 -0
  272. package/dist/components/dso-button-group.js.map +1 -0
  273. package/dist/components/dso-card-container.js +1 -1
  274. package/dist/components/dso-card.js +3 -3
  275. package/dist/components/dso-card.js.map +1 -1
  276. package/dist/components/dso-contact-information.js +1 -1
  277. package/dist/components/dso-date-picker-legacy.js +3 -3
  278. package/dist/components/dso-date-picker.js +1 -1
  279. package/dist/components/dso-document-card.js +1 -1
  280. package/dist/components/dso-header.js +2 -2
  281. package/dist/components/dso-header.js.map +1 -1
  282. package/dist/components/dso-highlight-box.js +1 -1
  283. package/dist/components/dso-input-range.js +2 -2
  284. package/dist/components/dso-legend-item.js +1 -1
  285. package/dist/components/dso-list-button.js +1 -1
  286. package/dist/components/dso-logo.js +1 -1
  287. package/dist/components/dso-map-base-layers.js +1 -1
  288. package/dist/components/dso-map-controls.js +10 -4
  289. package/dist/components/dso-map-controls.js.map +1 -1
  290. package/dist/components/dso-map-overlays.js +1 -1
  291. package/dist/components/dso-mark-bar.js +1 -1
  292. package/dist/components/dso-modal.js +1 -1
  293. package/dist/components/dso-onboarding-tip.js +5 -1663
  294. package/dist/components/dso-onboarding-tip.js.map +1 -1
  295. package/dist/components/dso-pagination.js +1 -1
  296. package/dist/components/dso-pagination.js.map +1 -1
  297. package/dist/components/dso-plekinfo-card.js +1 -1
  298. package/dist/components/dso-progress-bar.js +1 -1
  299. package/dist/components/dso-project-item.js +1 -1
  300. package/dist/components/dso-skiplink.js +1 -1
  301. package/dist/components/dso-survey-rating.js +3 -3
  302. package/dist/components/dso-tabs.js +1 -1
  303. package/dist/components/dso-tree-view.js +1 -1
  304. package/dist/components/dso-viewer-grid.js +2 -2
  305. package/dist/components/dsot-document-component-demo.js +1 -1
  306. package/dist/components/floating-ui.dom.js +1663 -0
  307. package/dist/components/floating-ui.dom.js.map +1 -0
  308. package/dist/components/icon.js +1 -1
  309. package/dist/components/image-overlay.js +1 -1
  310. package/dist/components/index.d.ts +2 -0
  311. package/dist/components/index.js +1 -0
  312. package/dist/components/index.js.map +1 -1
  313. package/dist/components/info-button.js +1 -1
  314. package/dist/components/info.js +1 -1
  315. package/dist/components/label.js +3 -3
  316. package/dist/components/ozon-content.js +2 -2
  317. package/dist/components/ozon-content.js.map +1 -1
  318. package/dist/components/progress-indicator.js +1 -1
  319. package/dist/components/responsive-element.js +1 -1
  320. package/dist/components/scrollable.js +2 -2
  321. package/dist/components/selectable.js +1 -1
  322. package/dist/components/slide-toggle.js +1 -1
  323. package/dist/components/table.js +2 -2
  324. package/dist/components/table.js.map +1 -1
  325. package/dist/components/toggletip.js +1 -1
  326. package/dist/components/tooltip.js +1804 -8
  327. package/dist/components/tooltip.js.map +1 -1
  328. package/dist/dso-toolkit/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.esm.js.map +1 -1
  329. package/dist/dso-toolkit/dso-annotation-activiteit.entry.esm.js.map +1 -1
  330. package/dist/dso-toolkit/dso-annotation-gebiedsaanwijzing.entry.esm.js.map +1 -1
  331. package/dist/dso-toolkit/dso-annotation-kaart.entry.esm.js.map +1 -1
  332. package/dist/dso-toolkit/dso-annotation-locatie.dso-document-component.entry.esm.js.map +1 -1
  333. package/dist/dso-toolkit/dso-annotation-omgevingsnormwaarde.entry.esm.js.map +1 -1
  334. package/dist/dso-toolkit/dso-button-group.entry.esm.js.map +1 -0
  335. package/dist/dso-toolkit/dso-card.entry.esm.js.map +1 -1
  336. package/dist/dso-toolkit/dso-dropdown-menu.entry.esm.js.map +1 -1
  337. package/dist/dso-toolkit/dso-header.entry.esm.js.map +1 -1
  338. package/dist/dso-toolkit/dso-map-controls.entry.esm.js.map +1 -1
  339. package/dist/dso-toolkit/dso-onboarding-tip.entry.esm.js.map +1 -1
  340. package/dist/dso-toolkit/dso-pagination.entry.esm.js.map +1 -1
  341. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  342. package/dist/dso-toolkit/dso-tooltip.entry.esm.js.map +1 -1
  343. package/dist/dso-toolkit/{p-41f3732b.entry.js → p-088d0493.entry.js} +2 -2
  344. package/dist/dso-toolkit/{p-137404b4.entry.js → p-090ab6fc.entry.js} +2 -2
  345. package/dist/dso-toolkit/{p-b3a8f101.entry.js → p-099c6eb7.entry.js} +2 -2
  346. package/dist/dso-toolkit/{p-27f7b86f.entry.js → p-10901139.entry.js} +2 -2
  347. package/dist/dso-toolkit/p-15e3e714.entry.js +2 -0
  348. package/dist/dso-toolkit/{p-f41b0ba0.entry.js.map → p-15e3e714.entry.js.map} +1 -1
  349. package/dist/dso-toolkit/p-221c7378.entry.js +2 -0
  350. package/dist/dso-toolkit/{p-bfaa3608.entry.js.map → p-221c7378.entry.js.map} +1 -1
  351. package/dist/dso-toolkit/{p-68cff470.entry.js → p-2d4a4552.entry.js} +2 -2
  352. package/dist/dso-toolkit/p-2f070718.entry.js +2 -0
  353. package/dist/dso-toolkit/p-2f070718.entry.js.map +1 -0
  354. package/dist/dso-toolkit/{p-7bedc94d.entry.js → p-2ff601f9.entry.js} +2 -2
  355. package/dist/dso-toolkit/p-351746ae.entry.js +2 -0
  356. package/dist/dso-toolkit/p-351746ae.entry.js.map +1 -0
  357. package/dist/dso-toolkit/{p-5e821c40.entry.js → p-356f8d94.entry.js} +2 -2
  358. package/dist/dso-toolkit/{p-1db24923.entry.js → p-4231f2f8.entry.js} +2 -2
  359. package/dist/dso-toolkit/{p-ffa6ca48.entry.js → p-44d831b6.entry.js} +2 -2
  360. package/dist/dso-toolkit/{p-009bd60a.entry.js → p-451f3c78.entry.js} +2 -2
  361. package/dist/dso-toolkit/{p-071e8dff.entry.js → p-474cc813.entry.js} +2 -2
  362. package/dist/dso-toolkit/p-517cbc20.entry.js +2 -0
  363. package/dist/dso-toolkit/p-54820bbe.entry.js +2 -0
  364. package/dist/dso-toolkit/p-54820bbe.entry.js.map +1 -0
  365. package/dist/dso-toolkit/p-586838c3.entry.js +2 -0
  366. package/dist/dso-toolkit/p-586838c3.entry.js.map +1 -0
  367. package/dist/dso-toolkit/{p-a4618476.entry.js → p-595e12bd.entry.js} +2 -2
  368. package/dist/dso-toolkit/p-595e12bd.entry.js.map +1 -0
  369. package/dist/dso-toolkit/{p-7233cef7.entry.js → p-613f19f9.entry.js} +2 -2
  370. package/dist/dso-toolkit/p-6949021b.entry.js +2 -0
  371. package/dist/dso-toolkit/p-6949021b.entry.js.map +1 -0
  372. package/dist/dso-toolkit/{p-86658809.entry.js → p-74718de8.entry.js} +2 -2
  373. package/dist/dso-toolkit/{p-cc66c346.entry.js → p-83d63542.entry.js} +2 -2
  374. package/dist/dso-toolkit/p-87716442.entry.js +2 -0
  375. package/dist/dso-toolkit/p-87716442.entry.js.map +1 -0
  376. package/dist/dso-toolkit/{p-e4907ab7.entry.js → p-92f93d4d.entry.js} +2 -2
  377. package/dist/dso-toolkit/{p-13512a35.entry.js → p-9674e7d2.entry.js} +2 -2
  378. package/dist/dso-toolkit/{p-8ac044db.entry.js → p-97320fda.entry.js} +2 -2
  379. package/dist/dso-toolkit/{p-eb5e5d0e.entry.js → p-a10cea33.entry.js} +2 -2
  380. package/dist/dso-toolkit/{p-e9ea10ed.entry.js → p-a1dd8602.entry.js} +2 -2
  381. package/dist/dso-toolkit/{p-bcfeeafb.entry.js → p-a3fd0646.entry.js} +2 -2
  382. package/dist/dso-toolkit/{p-903c3603.entry.js → p-b9b0c72d.entry.js} +2 -2
  383. package/dist/dso-toolkit/p-c7318c7e.entry.js +2 -0
  384. package/dist/dso-toolkit/{p-c93fae9e.entry.js.map → p-c7318c7e.entry.js.map} +1 -1
  385. package/dist/dso-toolkit/{p-469b876f.entry.js → p-c9389342.entry.js} +2 -2
  386. package/dist/dso-toolkit/{p-6d3d29ac.entry.js → p-c9645d23.entry.js} +2 -2
  387. package/dist/dso-toolkit/p-cf388db9.entry.js +2 -0
  388. package/dist/dso-toolkit/{p-4f56a26d.entry.js → p-d3e56081.entry.js} +2 -2
  389. package/dist/dso-toolkit/{p-f32bced2.entry.js → p-e0bc1853.entry.js} +2 -2
  390. package/dist/dso-toolkit/{p-e5a25571.entry.js → p-e3883983.entry.js} +2 -2
  391. package/dist/dso-toolkit/p-e41ede6e.entry.js +2 -0
  392. package/dist/dso-toolkit/{p-11cd688b.entry.js.map → p-e41ede6e.entry.js.map} +1 -1
  393. package/dist/dso-toolkit/{p-f63d51f9.entry.js → p-e9f5382c.entry.js} +2 -2
  394. package/dist/dso-toolkit/p-eca54e01.entry.js +2 -0
  395. package/dist/dso-toolkit/{p-75091e9b.entry.js.map → p-eca54e01.entry.js.map} +1 -1
  396. package/dist/dso-toolkit/p-ee48009b.entry.js +2 -0
  397. package/dist/dso-toolkit/{p-bd7d4a27.entry.js.map → p-ee48009b.entry.js.map} +1 -1
  398. package/dist/dso-toolkit/{p-76eb0308.entry.js → p-f0579969.entry.js} +2 -2
  399. package/dist/dso-toolkit/{p-3e8bda7c.entry.js → p-f1f414b6.entry.js} +2 -2
  400. package/dist/dso-toolkit/p-ff80c101.entry.js +2 -0
  401. package/dist/dso-toolkit/{p-9cf46bde.entry.js.map → p-ff80c101.entry.js.map} +1 -1
  402. package/dist/dso-toolkit/p-gdsca1fx.js +2 -0
  403. package/dist/dso-toolkit/p-gdsca1fx.js.map +1 -0
  404. package/dist/esm/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.js.map +1 -1
  405. package/dist/esm/dso-alert_6.entry.js +5 -5
  406. package/dist/esm/dso-alert_6.entry.js.map +1 -1
  407. package/dist/esm/dso-annotation-activiteit.entry.js +1 -1
  408. package/dist/esm/dso-annotation-activiteit.entry.js.map +1 -1
  409. package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +1 -1
  410. package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js.map +1 -1
  411. package/dist/esm/dso-annotation-kaart.entry.js +1 -1
  412. package/dist/esm/dso-annotation-kaart.entry.js.map +1 -1
  413. package/dist/esm/dso-annotation-locatie.dso-document-component.entry.js.map +1 -1
  414. package/dist/esm/dso-annotation-locatie_2.entry.js +3 -3
  415. package/dist/esm/dso-annotation-locatie_2.entry.js.map +1 -1
  416. package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +1 -1
  417. package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js.map +1 -1
  418. package/dist/esm/dso-button-group.entry.js +41 -0
  419. package/dist/esm/dso-button-group.entry.js.map +1 -0
  420. package/dist/esm/dso-card-container.entry.js +1 -1
  421. package/dist/esm/dso-card.entry.js +3 -3
  422. package/dist/esm/dso-card.entry.js.map +1 -1
  423. package/dist/esm/dso-contact-information.entry.js +1 -1
  424. package/dist/esm/dso-date-picker-legacy.entry.js +3 -3
  425. package/dist/esm/dso-date-picker.entry.js +1 -1
  426. package/dist/esm/dso-document-card.entry.js +1 -1
  427. package/dist/esm/dso-dropdown-menu.entry.js +44 -103
  428. package/dist/esm/dso-dropdown-menu.entry.js.map +1 -1
  429. package/dist/esm/dso-header.entry.js +2 -2
  430. package/dist/esm/dso-header.entry.js.map +1 -1
  431. package/dist/esm/dso-highlight-box.entry.js +1 -1
  432. package/dist/esm/dso-icon.entry.js +1 -1
  433. package/dist/esm/dso-info-button.entry.js +1 -1
  434. package/dist/esm/dso-info_2.entry.js +2 -2
  435. package/dist/esm/dso-input-range.entry.js +2 -2
  436. package/dist/esm/dso-label_3.entry.js +4 -4
  437. package/dist/esm/dso-legend-item.entry.js +1 -1
  438. package/dist/esm/dso-list-button.entry.js +1 -1
  439. package/dist/esm/dso-logo.entry.js +1 -1
  440. package/dist/esm/dso-map-base-layers.entry.js +1 -1
  441. package/dist/esm/dso-map-controls.entry.js +3 -3
  442. package/dist/esm/dso-map-controls.entry.js.map +1 -1
  443. package/dist/esm/dso-map-overlays.entry.js +1 -1
  444. package/dist/esm/dso-mark-bar.entry.js +1 -1
  445. package/dist/esm/dso-modal.entry.js +1 -1
  446. package/dist/esm/dso-onboarding-tip.entry.js +2 -1660
  447. package/dist/esm/dso-onboarding-tip.entry.js.map +1 -1
  448. package/dist/esm/dso-pagination.entry.js +1 -1
  449. package/dist/esm/dso-pagination.entry.js.map +1 -1
  450. package/dist/esm/dso-plekinfo-card.entry.js +1 -1
  451. package/dist/esm/dso-progress-bar.entry.js +1 -1
  452. package/dist/esm/dso-progress-indicator.entry.js +1 -1
  453. package/dist/esm/dso-project-item.entry.js +1 -1
  454. package/dist/esm/dso-responsive-element.entry.js +1 -1
  455. package/dist/esm/dso-scrollable.entry.js +2 -2
  456. package/dist/esm/dso-skiplink.entry.js +1 -1
  457. package/dist/esm/dso-survey-rating.entry.js +3 -3
  458. package/dist/esm/dso-tabs.entry.js +1 -1
  459. package/dist/esm/dso-toggletip.entry.js +1 -1
  460. package/dist/esm/dso-toolkit.js +1 -1
  461. package/dist/esm/dso-tooltip.entry.js +1800 -4
  462. package/dist/esm/dso-tooltip.entry.js.map +1 -1
  463. package/dist/esm/dso-tree-view.entry.js +1 -1
  464. package/dist/esm/dso-viewer-grid.entry.js +2 -2
  465. package/dist/esm/dsot-document-component-demo.entry.js +1 -1
  466. package/dist/esm/floating-ui.dom-gdsca1fx.js +1663 -0
  467. package/dist/esm/floating-ui.dom-gdsca1fx.js.map +1 -0
  468. package/dist/esm/loader.js +1 -1
  469. package/dist/types/components/button-group/button-group.d.ts +16 -0
  470. package/dist/types/components/button-group/button-group.interfaces.d.ts +1 -0
  471. package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +3 -20
  472. package/dist/types/components/map-controls/map-controls.d.ts +2 -2
  473. package/dist/types/components.d.ts +25 -26
  474. package/package.json +3 -3
  475. package/dist/bundle/p-CBwbkAC7.js +0 -314
  476. package/dist/bundle/p-CBwbkAC7.js.map +0 -1
  477. package/dist/bundle/p-CagCGFPb.js +0 -80
  478. package/dist/bundle/p-CsY83cJO.js +0 -1801
  479. package/dist/bundle/p-CsY83cJO.js.map +0 -1
  480. package/dist/bundle/p-Dp31hMfn.js.map +0 -1
  481. package/dist/cjs/has-overflow-B_4p67wC.js.map +0 -1
  482. package/dist/components/has-overflow.js +0 -1801
  483. package/dist/components/has-overflow.js.map +0 -1
  484. package/dist/dso-toolkit/p-11cd688b.entry.js +0 -2
  485. package/dist/dso-toolkit/p-2968e740.entry.js +0 -2
  486. package/dist/dso-toolkit/p-2968e740.entry.js.map +0 -1
  487. package/dist/dso-toolkit/p-5327558b.entry.js +0 -2
  488. package/dist/dso-toolkit/p-75091e9b.entry.js +0 -2
  489. package/dist/dso-toolkit/p-858970da.entry.js +0 -2
  490. package/dist/dso-toolkit/p-858970da.entry.js.map +0 -1
  491. package/dist/dso-toolkit/p-9cf46bde.entry.js +0 -2
  492. package/dist/dso-toolkit/p-CsY83cJO.js +0 -2
  493. package/dist/dso-toolkit/p-CsY83cJO.js.map +0 -1
  494. package/dist/dso-toolkit/p-a4618476.entry.js.map +0 -1
  495. package/dist/dso-toolkit/p-ad8a1705.entry.js +0 -2
  496. package/dist/dso-toolkit/p-b61f1d16.entry.js +0 -2
  497. package/dist/dso-toolkit/p-b61f1d16.entry.js.map +0 -1
  498. package/dist/dso-toolkit/p-bd7d4a27.entry.js +0 -2
  499. package/dist/dso-toolkit/p-bfaa3608.entry.js +0 -2
  500. package/dist/dso-toolkit/p-c93fae9e.entry.js +0 -2
  501. package/dist/dso-toolkit/p-cad0c5d9.entry.js +0 -2
  502. package/dist/dso-toolkit/p-cad0c5d9.entry.js.map +0 -1
  503. package/dist/dso-toolkit/p-cea64895.entry.js +0 -2
  504. package/dist/dso-toolkit/p-cea64895.entry.js.map +0 -1
  505. package/dist/dso-toolkit/p-f41b0ba0.entry.js +0 -2
  506. package/dist/esm/has-overflow-CsY83cJO.js +0 -1801
  507. package/dist/esm/has-overflow-CsY83cJO.js.map +0 -1
  508. /package/dist/dso-toolkit/{p-41f3732b.entry.js.map → p-088d0493.entry.js.map} +0 -0
  509. /package/dist/dso-toolkit/{p-137404b4.entry.js.map → p-090ab6fc.entry.js.map} +0 -0
  510. /package/dist/dso-toolkit/{p-b3a8f101.entry.js.map → p-099c6eb7.entry.js.map} +0 -0
  511. /package/dist/dso-toolkit/{p-27f7b86f.entry.js.map → p-10901139.entry.js.map} +0 -0
  512. /package/dist/dso-toolkit/{p-68cff470.entry.js.map → p-2d4a4552.entry.js.map} +0 -0
  513. /package/dist/dso-toolkit/{p-7bedc94d.entry.js.map → p-2ff601f9.entry.js.map} +0 -0
  514. /package/dist/dso-toolkit/{p-5e821c40.entry.js.map → p-356f8d94.entry.js.map} +0 -0
  515. /package/dist/dso-toolkit/{p-1db24923.entry.js.map → p-4231f2f8.entry.js.map} +0 -0
  516. /package/dist/dso-toolkit/{p-ffa6ca48.entry.js.map → p-44d831b6.entry.js.map} +0 -0
  517. /package/dist/dso-toolkit/{p-009bd60a.entry.js.map → p-451f3c78.entry.js.map} +0 -0
  518. /package/dist/dso-toolkit/{p-071e8dff.entry.js.map → p-474cc813.entry.js.map} +0 -0
  519. /package/dist/dso-toolkit/{p-5327558b.entry.js.map → p-517cbc20.entry.js.map} +0 -0
  520. /package/dist/dso-toolkit/{p-7233cef7.entry.js.map → p-613f19f9.entry.js.map} +0 -0
  521. /package/dist/dso-toolkit/{p-86658809.entry.js.map → p-74718de8.entry.js.map} +0 -0
  522. /package/dist/dso-toolkit/{p-cc66c346.entry.js.map → p-83d63542.entry.js.map} +0 -0
  523. /package/dist/dso-toolkit/{p-e4907ab7.entry.js.map → p-92f93d4d.entry.js.map} +0 -0
  524. /package/dist/dso-toolkit/{p-13512a35.entry.js.map → p-9674e7d2.entry.js.map} +0 -0
  525. /package/dist/dso-toolkit/{p-8ac044db.entry.js.map → p-97320fda.entry.js.map} +0 -0
  526. /package/dist/dso-toolkit/{p-eb5e5d0e.entry.js.map → p-a10cea33.entry.js.map} +0 -0
  527. /package/dist/dso-toolkit/{p-e9ea10ed.entry.js.map → p-a1dd8602.entry.js.map} +0 -0
  528. /package/dist/dso-toolkit/{p-bcfeeafb.entry.js.map → p-a3fd0646.entry.js.map} +0 -0
  529. /package/dist/dso-toolkit/{p-903c3603.entry.js.map → p-b9b0c72d.entry.js.map} +0 -0
  530. /package/dist/dso-toolkit/{p-469b876f.entry.js.map → p-c9389342.entry.js.map} +0 -0
  531. /package/dist/dso-toolkit/{p-6d3d29ac.entry.js.map → p-c9645d23.entry.js.map} +0 -0
  532. /package/dist/dso-toolkit/{p-ad8a1705.entry.js.map → p-cf388db9.entry.js.map} +0 -0
  533. /package/dist/dso-toolkit/{p-4f56a26d.entry.js.map → p-d3e56081.entry.js.map} +0 -0
  534. /package/dist/dso-toolkit/{p-f32bced2.entry.js.map → p-e0bc1853.entry.js.map} +0 -0
  535. /package/dist/dso-toolkit/{p-e5a25571.entry.js.map → p-e3883983.entry.js.map} +0 -0
  536. /package/dist/dso-toolkit/{p-f63d51f9.entry.js.map → p-e9f5382c.entry.js.map} +0 -0
  537. /package/dist/dso-toolkit/{p-76eb0308.entry.js.map → p-f0579969.entry.js.map} +0 -0
  538. /package/dist/dso-toolkit/{p-3e8bda7c.entry.js.map → p-f1f414b6.entry.js.map} +0 -0
@@ -1,1665 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-Bfuot2fD.js');
4
-
5
- /**
6
- * Custom positioning reference element.
7
- * @see https://floating-ui.com/docs/virtual-elements
8
- */
9
-
10
- const sides = ['top', 'right', 'bottom', 'left'];
11
- const min = Math.min;
12
- const max = Math.max;
13
- const round = Math.round;
14
- const floor = Math.floor;
15
- const createCoords = v => ({
16
- x: v,
17
- y: v
18
- });
19
- const oppositeSideMap = {
20
- left: 'right',
21
- right: 'left',
22
- bottom: 'top',
23
- top: 'bottom'
24
- };
25
- const oppositeAlignmentMap = {
26
- start: 'end',
27
- end: 'start'
28
- };
29
- function clamp(start, value, end) {
30
- return max(start, min(value, end));
31
- }
32
- function evaluate(value, param) {
33
- return typeof value === 'function' ? value(param) : value;
34
- }
35
- function getSide(placement) {
36
- return placement.split('-')[0];
37
- }
38
- function getAlignment(placement) {
39
- return placement.split('-')[1];
40
- }
41
- function getOppositeAxis(axis) {
42
- return axis === 'x' ? 'y' : 'x';
43
- }
44
- function getAxisLength(axis) {
45
- return axis === 'y' ? 'height' : 'width';
46
- }
47
- function getSideAxis(placement) {
48
- return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
49
- }
50
- function getAlignmentAxis(placement) {
51
- return getOppositeAxis(getSideAxis(placement));
52
- }
53
- function getAlignmentSides(placement, rects, rtl) {
54
- if (rtl === void 0) {
55
- rtl = false;
56
- }
57
- const alignment = getAlignment(placement);
58
- const alignmentAxis = getAlignmentAxis(placement);
59
- const length = getAxisLength(alignmentAxis);
60
- let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
61
- if (rects.reference[length] > rects.floating[length]) {
62
- mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
63
- }
64
- return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
65
- }
66
- function getExpandedPlacements(placement) {
67
- const oppositePlacement = getOppositePlacement(placement);
68
- return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
69
- }
70
- function getOppositeAlignmentPlacement(placement) {
71
- return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
72
- }
73
- function getSideList(side, isStart, rtl) {
74
- const lr = ['left', 'right'];
75
- const rl = ['right', 'left'];
76
- const tb = ['top', 'bottom'];
77
- const bt = ['bottom', 'top'];
78
- switch (side) {
79
- case 'top':
80
- case 'bottom':
81
- if (rtl) return isStart ? rl : lr;
82
- return isStart ? lr : rl;
83
- case 'left':
84
- case 'right':
85
- return isStart ? tb : bt;
86
- default:
87
- return [];
88
- }
89
- }
90
- function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
91
- const alignment = getAlignment(placement);
92
- let list = getSideList(getSide(placement), direction === 'start', rtl);
93
- if (alignment) {
94
- list = list.map(side => side + "-" + alignment);
95
- if (flipAlignment) {
96
- list = list.concat(list.map(getOppositeAlignmentPlacement));
97
- }
98
- }
99
- return list;
100
- }
101
- function getOppositePlacement(placement) {
102
- return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
103
- }
104
- function expandPaddingObject(padding) {
105
- return {
106
- top: 0,
107
- right: 0,
108
- bottom: 0,
109
- left: 0,
110
- ...padding
111
- };
112
- }
113
- function getPaddingObject(padding) {
114
- return typeof padding !== 'number' ? expandPaddingObject(padding) : {
115
- top: padding,
116
- right: padding,
117
- bottom: padding,
118
- left: padding
119
- };
120
- }
121
- function rectToClientRect(rect) {
122
- const {
123
- x,
124
- y,
125
- width,
126
- height
127
- } = rect;
128
- return {
129
- width,
130
- height,
131
- top: y,
132
- left: x,
133
- right: x + width,
134
- bottom: y + height,
135
- x,
136
- y
137
- };
138
- }
139
-
140
- function computeCoordsFromPlacement(_ref, placement, rtl) {
141
- let {
142
- reference,
143
- floating
144
- } = _ref;
145
- const sideAxis = getSideAxis(placement);
146
- const alignmentAxis = getAlignmentAxis(placement);
147
- const alignLength = getAxisLength(alignmentAxis);
148
- const side = getSide(placement);
149
- const isVertical = sideAxis === 'y';
150
- const commonX = reference.x + reference.width / 2 - floating.width / 2;
151
- const commonY = reference.y + reference.height / 2 - floating.height / 2;
152
- const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
153
- let coords;
154
- switch (side) {
155
- case 'top':
156
- coords = {
157
- x: commonX,
158
- y: reference.y - floating.height
159
- };
160
- break;
161
- case 'bottom':
162
- coords = {
163
- x: commonX,
164
- y: reference.y + reference.height
165
- };
166
- break;
167
- case 'right':
168
- coords = {
169
- x: reference.x + reference.width,
170
- y: commonY
171
- };
172
- break;
173
- case 'left':
174
- coords = {
175
- x: reference.x - floating.width,
176
- y: commonY
177
- };
178
- break;
179
- default:
180
- coords = {
181
- x: reference.x,
182
- y: reference.y
183
- };
184
- }
185
- switch (getAlignment(placement)) {
186
- case 'start':
187
- coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
188
- break;
189
- case 'end':
190
- coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
191
- break;
192
- }
193
- return coords;
194
- }
195
-
196
- /**
197
- * Computes the `x` and `y` coordinates that will place the floating element
198
- * next to a given reference element.
199
- *
200
- * This export does not have any `platform` interface logic. You will need to
201
- * write one for the platform you are using Floating UI with.
202
- */
203
- const computePosition$1 = async (reference, floating, config) => {
204
- const {
205
- placement = 'bottom',
206
- strategy = 'absolute',
207
- middleware = [],
208
- platform
209
- } = config;
210
- const validMiddleware = middleware.filter(Boolean);
211
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
212
- let rects = await platform.getElementRects({
213
- reference,
214
- floating,
215
- strategy
216
- });
217
- let {
218
- x,
219
- y
220
- } = computeCoordsFromPlacement(rects, placement, rtl);
221
- let statefulPlacement = placement;
222
- let middlewareData = {};
223
- let resetCount = 0;
224
- for (let i = 0; i < validMiddleware.length; i++) {
225
- const {
226
- name,
227
- fn
228
- } = validMiddleware[i];
229
- const {
230
- x: nextX,
231
- y: nextY,
232
- data,
233
- reset
234
- } = await fn({
235
- x,
236
- y,
237
- initialPlacement: placement,
238
- placement: statefulPlacement,
239
- strategy,
240
- middlewareData,
241
- rects,
242
- platform,
243
- elements: {
244
- reference,
245
- floating
246
- }
247
- });
248
- x = nextX != null ? nextX : x;
249
- y = nextY != null ? nextY : y;
250
- middlewareData = {
251
- ...middlewareData,
252
- [name]: {
253
- ...middlewareData[name],
254
- ...data
255
- }
256
- };
257
- if (reset && resetCount <= 50) {
258
- resetCount++;
259
- if (typeof reset === 'object') {
260
- if (reset.placement) {
261
- statefulPlacement = reset.placement;
262
- }
263
- if (reset.rects) {
264
- rects = reset.rects === true ? await platform.getElementRects({
265
- reference,
266
- floating,
267
- strategy
268
- }) : reset.rects;
269
- }
270
- ({
271
- x,
272
- y
273
- } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
274
- }
275
- i = -1;
276
- }
277
- }
278
- return {
279
- x,
280
- y,
281
- placement: statefulPlacement,
282
- strategy,
283
- middlewareData
284
- };
285
- };
286
-
287
- /**
288
- * Resolves with an object of overflow side offsets that determine how much the
289
- * element is overflowing a given clipping boundary on each side.
290
- * - positive = overflowing the boundary by that number of pixels
291
- * - negative = how many pixels left before it will overflow
292
- * - 0 = lies flush with the boundary
293
- * @see https://floating-ui.com/docs/detectOverflow
294
- */
295
- async function detectOverflow(state, options) {
296
- var _await$platform$isEle;
297
- if (options === void 0) {
298
- options = {};
299
- }
300
- const {
301
- x,
302
- y,
303
- platform,
304
- rects,
305
- elements,
306
- strategy
307
- } = state;
308
- const {
309
- boundary = 'clippingAncestors',
310
- rootBoundary = 'viewport',
311
- elementContext = 'floating',
312
- altBoundary = false,
313
- padding = 0
314
- } = evaluate(options, state);
315
- const paddingObject = getPaddingObject(padding);
316
- const altContext = elementContext === 'floating' ? 'reference' : 'floating';
317
- const element = elements[altBoundary ? altContext : elementContext];
318
- const clippingClientRect = rectToClientRect(await platform.getClippingRect({
319
- element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
320
- boundary,
321
- rootBoundary,
322
- strategy
323
- }));
324
- const rect = elementContext === 'floating' ? {
325
- x,
326
- y,
327
- width: rects.floating.width,
328
- height: rects.floating.height
329
- } : rects.reference;
330
- const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
331
- const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
332
- x: 1,
333
- y: 1
334
- } : {
335
- x: 1,
336
- y: 1
337
- };
338
- const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
339
- elements,
340
- rect,
341
- offsetParent,
342
- strategy
343
- }) : rect);
344
- return {
345
- top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
346
- bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
347
- left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
348
- right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
349
- };
350
- }
351
-
352
- /**
353
- * Provides data to position an inner element of the floating element so that it
354
- * appears centered to the reference element.
355
- * @see https://floating-ui.com/docs/arrow
356
- */
357
- const arrow$1 = options => ({
358
- name: 'arrow',
359
- options,
360
- async fn(state) {
361
- const {
362
- x,
363
- y,
364
- placement,
365
- rects,
366
- platform,
367
- elements,
368
- middlewareData
369
- } = state;
370
- // Since `element` is required, we don't Partial<> the type.
371
- const {
372
- element,
373
- padding = 0
374
- } = evaluate(options, state) || {};
375
- if (element == null) {
376
- return {};
377
- }
378
- const paddingObject = getPaddingObject(padding);
379
- const coords = {
380
- x,
381
- y
382
- };
383
- const axis = getAlignmentAxis(placement);
384
- const length = getAxisLength(axis);
385
- const arrowDimensions = await platform.getDimensions(element);
386
- const isYAxis = axis === 'y';
387
- const minProp = isYAxis ? 'top' : 'left';
388
- const maxProp = isYAxis ? 'bottom' : 'right';
389
- const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
390
- const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
391
- const startDiff = coords[axis] - rects.reference[axis];
392
- const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
393
- let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
394
-
395
- // DOM platform can return `window` as the `offsetParent`.
396
- if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
397
- clientSize = elements.floating[clientProp] || rects.floating[length];
398
- }
399
- const centerToReference = endDiff / 2 - startDiff / 2;
400
-
401
- // If the padding is large enough that it causes the arrow to no longer be
402
- // centered, modify the padding so that it is centered.
403
- const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
404
- const minPadding = min(paddingObject[minProp], largestPossiblePadding);
405
- const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
406
-
407
- // Make sure the arrow doesn't overflow the floating element if the center
408
- // point is outside the floating element's bounds.
409
- const min$1 = minPadding;
410
- const max = clientSize - arrowDimensions[length] - maxPadding;
411
- const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
412
- const offset = clamp(min$1, center, max);
413
-
414
- // If the reference is small enough that the arrow's padding causes it to
415
- // to point to nothing for an aligned placement, adjust the offset of the
416
- // floating element itself. To ensure `shift()` continues to take action,
417
- // a single reset is performed when this is true.
418
- const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
419
- const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
420
- return {
421
- [axis]: coords[axis] + alignmentOffset,
422
- data: {
423
- [axis]: offset,
424
- centerOffset: center - offset - alignmentOffset,
425
- ...(shouldAddOffset && {
426
- alignmentOffset
427
- })
428
- },
429
- reset: shouldAddOffset
430
- };
431
- }
432
- });
433
-
434
- /**
435
- * Optimizes the visibility of the floating element by flipping the `placement`
436
- * in order to keep it in view when the preferred placement(s) will overflow the
437
- * clipping boundary. Alternative to `autoPlacement`.
438
- * @see https://floating-ui.com/docs/flip
439
- */
440
- const flip$1 = function (options) {
441
- if (options === void 0) {
442
- options = {};
443
- }
444
- return {
445
- name: 'flip',
446
- options,
447
- async fn(state) {
448
- var _middlewareData$arrow, _middlewareData$flip;
449
- const {
450
- placement,
451
- middlewareData,
452
- rects,
453
- initialPlacement,
454
- platform,
455
- elements
456
- } = state;
457
- const {
458
- mainAxis: checkMainAxis = true,
459
- crossAxis: checkCrossAxis = true,
460
- fallbackPlacements: specifiedFallbackPlacements,
461
- fallbackStrategy = 'bestFit',
462
- fallbackAxisSideDirection = 'none',
463
- flipAlignment = true,
464
- ...detectOverflowOptions
465
- } = evaluate(options, state);
466
-
467
- // If a reset by the arrow was caused due to an alignment offset being
468
- // added, we should skip any logic now since `flip()` has already done its
469
- // work.
470
- // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
471
- if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
472
- return {};
473
- }
474
- const side = getSide(placement);
475
- const initialSideAxis = getSideAxis(initialPlacement);
476
- const isBasePlacement = getSide(initialPlacement) === initialPlacement;
477
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
478
- const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
479
- const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
480
- if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
481
- fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
482
- }
483
- const placements = [initialPlacement, ...fallbackPlacements];
484
- const overflow = await detectOverflow(state, detectOverflowOptions);
485
- const overflows = [];
486
- let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
487
- if (checkMainAxis) {
488
- overflows.push(overflow[side]);
489
- }
490
- if (checkCrossAxis) {
491
- const sides = getAlignmentSides(placement, rects, rtl);
492
- overflows.push(overflow[sides[0]], overflow[sides[1]]);
493
- }
494
- overflowsData = [...overflowsData, {
495
- placement,
496
- overflows
497
- }];
498
-
499
- // One or more sides is overflowing.
500
- if (!overflows.every(side => side <= 0)) {
501
- var _middlewareData$flip2, _overflowsData$filter;
502
- const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
503
- const nextPlacement = placements[nextIndex];
504
- if (nextPlacement) {
505
- var _overflowsData$;
506
- const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
507
- const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
508
- if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
509
- // Try next placement and re-run the lifecycle.
510
- return {
511
- data: {
512
- index: nextIndex,
513
- overflows: overflowsData
514
- },
515
- reset: {
516
- placement: nextPlacement
517
- }
518
- };
519
- }
520
- }
521
-
522
- // First, find the candidates that fit on the mainAxis side of overflow,
523
- // then find the placement that fits the best on the main crossAxis side.
524
- let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
525
-
526
- // Otherwise fallback.
527
- if (!resetPlacement) {
528
- switch (fallbackStrategy) {
529
- case 'bestFit':
530
- {
531
- var _overflowsData$filter2;
532
- const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
533
- if (hasFallbackAxisSideDirection) {
534
- const currentSideAxis = getSideAxis(d.placement);
535
- return currentSideAxis === initialSideAxis ||
536
- // Create a bias to the `y` side axis due to horizontal
537
- // reading directions favoring greater width.
538
- currentSideAxis === 'y';
539
- }
540
- return true;
541
- }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
542
- if (placement) {
543
- resetPlacement = placement;
544
- }
545
- break;
546
- }
547
- case 'initialPlacement':
548
- resetPlacement = initialPlacement;
549
- break;
550
- }
551
- }
552
- if (placement !== resetPlacement) {
553
- return {
554
- reset: {
555
- placement: resetPlacement
556
- }
557
- };
558
- }
559
- }
560
- return {};
561
- }
562
- };
563
- };
564
-
565
- function getSideOffsets(overflow, rect) {
566
- return {
567
- top: overflow.top - rect.height,
568
- right: overflow.right - rect.width,
569
- bottom: overflow.bottom - rect.height,
570
- left: overflow.left - rect.width
571
- };
572
- }
573
- function isAnySideFullyClipped(overflow) {
574
- return sides.some(side => overflow[side] >= 0);
575
- }
576
- /**
577
- * Provides data to hide the floating element in applicable situations, such as
578
- * when it is not in the same clipping context as the reference element.
579
- * @see https://floating-ui.com/docs/hide
580
- */
581
- const hide$1 = function (options) {
582
- if (options === void 0) {
583
- options = {};
584
- }
585
- return {
586
- name: 'hide',
587
- options,
588
- async fn(state) {
589
- const {
590
- rects
591
- } = state;
592
- const {
593
- strategy = 'referenceHidden',
594
- ...detectOverflowOptions
595
- } = evaluate(options, state);
596
- switch (strategy) {
597
- case 'referenceHidden':
598
- {
599
- const overflow = await detectOverflow(state, {
600
- ...detectOverflowOptions,
601
- elementContext: 'reference'
602
- });
603
- const offsets = getSideOffsets(overflow, rects.reference);
604
- return {
605
- data: {
606
- referenceHiddenOffsets: offsets,
607
- referenceHidden: isAnySideFullyClipped(offsets)
608
- }
609
- };
610
- }
611
- case 'escaped':
612
- {
613
- const overflow = await detectOverflow(state, {
614
- ...detectOverflowOptions,
615
- altBoundary: true
616
- });
617
- const offsets = getSideOffsets(overflow, rects.floating);
618
- return {
619
- data: {
620
- escapedOffsets: offsets,
621
- escaped: isAnySideFullyClipped(offsets)
622
- }
623
- };
624
- }
625
- default:
626
- {
627
- return {};
628
- }
629
- }
630
- }
631
- };
632
- };
633
-
634
- // For type backwards-compatibility, the `OffsetOptions` type was also
635
- // Derivable.
636
-
637
- async function convertValueToCoords(state, options) {
638
- const {
639
- placement,
640
- platform,
641
- elements
642
- } = state;
643
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
644
- const side = getSide(placement);
645
- const alignment = getAlignment(placement);
646
- const isVertical = getSideAxis(placement) === 'y';
647
- const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
648
- const crossAxisMulti = rtl && isVertical ? -1 : 1;
649
- const rawValue = evaluate(options, state);
650
-
651
- // eslint-disable-next-line prefer-const
652
- let {
653
- mainAxis,
654
- crossAxis,
655
- alignmentAxis
656
- } = typeof rawValue === 'number' ? {
657
- mainAxis: rawValue,
658
- crossAxis: 0,
659
- alignmentAxis: null
660
- } : {
661
- mainAxis: rawValue.mainAxis || 0,
662
- crossAxis: rawValue.crossAxis || 0,
663
- alignmentAxis: rawValue.alignmentAxis
664
- };
665
- if (alignment && typeof alignmentAxis === 'number') {
666
- crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
667
- }
668
- return isVertical ? {
669
- x: crossAxis * crossAxisMulti,
670
- y: mainAxis * mainAxisMulti
671
- } : {
672
- x: mainAxis * mainAxisMulti,
673
- y: crossAxis * crossAxisMulti
674
- };
675
- }
676
-
677
- /**
678
- * Modifies the placement by translating the floating element along the
679
- * specified axes.
680
- * A number (shorthand for `mainAxis` or distance), or an axes configuration
681
- * object may be passed.
682
- * @see https://floating-ui.com/docs/offset
683
- */
684
- const offset$1 = function (options) {
685
- if (options === void 0) {
686
- options = 0;
687
- }
688
- return {
689
- name: 'offset',
690
- options,
691
- async fn(state) {
692
- var _middlewareData$offse, _middlewareData$arrow;
693
- const {
694
- x,
695
- y,
696
- placement,
697
- middlewareData
698
- } = state;
699
- const diffCoords = await convertValueToCoords(state, options);
700
-
701
- // If the placement is the same and the arrow caused an alignment offset
702
- // then we don't need to change the positioning coordinates.
703
- if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
704
- return {};
705
- }
706
- return {
707
- x: x + diffCoords.x,
708
- y: y + diffCoords.y,
709
- data: {
710
- ...diffCoords,
711
- placement
712
- }
713
- };
714
- }
715
- };
716
- };
717
-
718
- /**
719
- * Optimizes the visibility of the floating element by shifting it in order to
720
- * keep it in view when it will overflow the clipping boundary.
721
- * @see https://floating-ui.com/docs/shift
722
- */
723
- const shift$1 = function (options) {
724
- if (options === void 0) {
725
- options = {};
726
- }
727
- return {
728
- name: 'shift',
729
- options,
730
- async fn(state) {
731
- const {
732
- x,
733
- y,
734
- placement
735
- } = state;
736
- const {
737
- mainAxis: checkMainAxis = true,
738
- crossAxis: checkCrossAxis = false,
739
- limiter = {
740
- fn: _ref => {
741
- let {
742
- x,
743
- y
744
- } = _ref;
745
- return {
746
- x,
747
- y
748
- };
749
- }
750
- },
751
- ...detectOverflowOptions
752
- } = evaluate(options, state);
753
- const coords = {
754
- x,
755
- y
756
- };
757
- const overflow = await detectOverflow(state, detectOverflowOptions);
758
- const crossAxis = getSideAxis(getSide(placement));
759
- const mainAxis = getOppositeAxis(crossAxis);
760
- let mainAxisCoord = coords[mainAxis];
761
- let crossAxisCoord = coords[crossAxis];
762
- if (checkMainAxis) {
763
- const minSide = mainAxis === 'y' ? 'top' : 'left';
764
- const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
765
- const min = mainAxisCoord + overflow[minSide];
766
- const max = mainAxisCoord - overflow[maxSide];
767
- mainAxisCoord = clamp(min, mainAxisCoord, max);
768
- }
769
- if (checkCrossAxis) {
770
- const minSide = crossAxis === 'y' ? 'top' : 'left';
771
- const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
772
- const min = crossAxisCoord + overflow[minSide];
773
- const max = crossAxisCoord - overflow[maxSide];
774
- crossAxisCoord = clamp(min, crossAxisCoord, max);
775
- }
776
- const limitedCoords = limiter.fn({
777
- ...state,
778
- [mainAxis]: mainAxisCoord,
779
- [crossAxis]: crossAxisCoord
780
- });
781
- return {
782
- ...limitedCoords,
783
- data: {
784
- x: limitedCoords.x - x,
785
- y: limitedCoords.y - y,
786
- enabled: {
787
- [mainAxis]: checkMainAxis,
788
- [crossAxis]: checkCrossAxis
789
- }
790
- }
791
- };
792
- }
793
- };
794
- };
795
-
796
- function hasWindow() {
797
- return typeof window !== 'undefined';
798
- }
799
- function getNodeName(node) {
800
- if (isNode(node)) {
801
- return (node.nodeName || '').toLowerCase();
802
- }
803
- // Mocked nodes in testing environments may not be instances of Node. By
804
- // returning `#document` an infinite loop won't occur.
805
- // https://github.com/floating-ui/floating-ui/issues/2317
806
- return '#document';
807
- }
808
- function getWindow(node) {
809
- var _node$ownerDocument;
810
- return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
811
- }
812
- function getDocumentElement(node) {
813
- var _ref;
814
- return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
815
- }
816
- function isNode(value) {
817
- if (!hasWindow()) {
818
- return false;
819
- }
820
- return value instanceof Node || value instanceof getWindow(value).Node;
821
- }
822
- function isElement(value) {
823
- if (!hasWindow()) {
824
- return false;
825
- }
826
- return value instanceof Element || value instanceof getWindow(value).Element;
827
- }
828
- function isHTMLElement(value) {
829
- if (!hasWindow()) {
830
- return false;
831
- }
832
- return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
833
- }
834
- function isShadowRoot(value) {
835
- if (!hasWindow() || typeof ShadowRoot === 'undefined') {
836
- return false;
837
- }
838
- return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
839
- }
840
- function isOverflowElement(element) {
841
- const {
842
- overflow,
843
- overflowX,
844
- overflowY,
845
- display
846
- } = getComputedStyle(element);
847
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
848
- }
849
- function isTableElement(element) {
850
- return ['table', 'td', 'th'].includes(getNodeName(element));
851
- }
852
- function isTopLayer(element) {
853
- return [':popover-open', ':modal'].some(selector => {
854
- try {
855
- return element.matches(selector);
856
- } catch (e) {
857
- return false;
858
- }
859
- });
860
- }
861
- function isContainingBlock(elementOrCss) {
862
- const webkit = isWebKit();
863
- const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
864
-
865
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
866
- // https://drafts.csswg.org/css-transforms-2/#individual-transforms
867
- return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
868
- }
869
- function getContainingBlock(element) {
870
- let currentNode = getParentNode(element);
871
- while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
872
- if (isContainingBlock(currentNode)) {
873
- return currentNode;
874
- } else if (isTopLayer(currentNode)) {
875
- return null;
876
- }
877
- currentNode = getParentNode(currentNode);
878
- }
879
- return null;
880
- }
881
- function isWebKit() {
882
- if (typeof CSS === 'undefined' || !CSS.supports) return false;
883
- return CSS.supports('-webkit-backdrop-filter', 'none');
884
- }
885
- function isLastTraversableNode(node) {
886
- return ['html', 'body', '#document'].includes(getNodeName(node));
887
- }
888
- function getComputedStyle(element) {
889
- return getWindow(element).getComputedStyle(element);
890
- }
891
- function getNodeScroll(element) {
892
- if (isElement(element)) {
893
- return {
894
- scrollLeft: element.scrollLeft,
895
- scrollTop: element.scrollTop
896
- };
897
- }
898
- return {
899
- scrollLeft: element.scrollX,
900
- scrollTop: element.scrollY
901
- };
902
- }
903
- function getParentNode(node) {
904
- if (getNodeName(node) === 'html') {
905
- return node;
906
- }
907
- const result =
908
- // Step into the shadow DOM of the parent of a slotted node.
909
- node.assignedSlot ||
910
- // DOM Element detected.
911
- node.parentNode ||
912
- // ShadowRoot detected.
913
- isShadowRoot(node) && node.host ||
914
- // Fallback.
915
- getDocumentElement(node);
916
- return isShadowRoot(result) ? result.host : result;
917
- }
918
- function getNearestOverflowAncestor(node) {
919
- const parentNode = getParentNode(node);
920
- if (isLastTraversableNode(parentNode)) {
921
- return node.ownerDocument ? node.ownerDocument.body : node.body;
922
- }
923
- if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
924
- return parentNode;
925
- }
926
- return getNearestOverflowAncestor(parentNode);
927
- }
928
- function getOverflowAncestors(node, list, traverseIframes) {
929
- var _node$ownerDocument2;
930
- if (list === void 0) {
931
- list = [];
932
- }
933
- if (traverseIframes === void 0) {
934
- traverseIframes = true;
935
- }
936
- const scrollableAncestor = getNearestOverflowAncestor(node);
937
- const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
938
- const win = getWindow(scrollableAncestor);
939
- if (isBody) {
940
- const frameElement = getFrameElement(win);
941
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
942
- }
943
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
944
- }
945
- function getFrameElement(win) {
946
- return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
947
- }
948
-
949
- function getCssDimensions(element) {
950
- const css = getComputedStyle(element);
951
- // In testing environments, the `width` and `height` properties are empty
952
- // strings for SVG elements, returning NaN. Fallback to `0` in this case.
953
- let width = parseFloat(css.width) || 0;
954
- let height = parseFloat(css.height) || 0;
955
- const hasOffset = isHTMLElement(element);
956
- const offsetWidth = hasOffset ? element.offsetWidth : width;
957
- const offsetHeight = hasOffset ? element.offsetHeight : height;
958
- const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
959
- if (shouldFallback) {
960
- width = offsetWidth;
961
- height = offsetHeight;
962
- }
963
- return {
964
- width,
965
- height,
966
- $: shouldFallback
967
- };
968
- }
969
-
970
- function unwrapElement(element) {
971
- return !isElement(element) ? element.contextElement : element;
972
- }
973
-
974
- function getScale(element) {
975
- const domElement = unwrapElement(element);
976
- if (!isHTMLElement(domElement)) {
977
- return createCoords(1);
978
- }
979
- const rect = domElement.getBoundingClientRect();
980
- const {
981
- width,
982
- height,
983
- $
984
- } = getCssDimensions(domElement);
985
- let x = ($ ? round(rect.width) : rect.width) / width;
986
- let y = ($ ? round(rect.height) : rect.height) / height;
987
-
988
- // 0, NaN, or Infinity should always fallback to 1.
989
-
990
- if (!x || !Number.isFinite(x)) {
991
- x = 1;
992
- }
993
- if (!y || !Number.isFinite(y)) {
994
- y = 1;
995
- }
996
- return {
997
- x,
998
- y
999
- };
1000
- }
1001
-
1002
- const noOffsets = /*#__PURE__*/createCoords(0);
1003
- function getVisualOffsets(element) {
1004
- const win = getWindow(element);
1005
- if (!isWebKit() || !win.visualViewport) {
1006
- return noOffsets;
1007
- }
1008
- return {
1009
- x: win.visualViewport.offsetLeft,
1010
- y: win.visualViewport.offsetTop
1011
- };
1012
- }
1013
- function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
1014
- if (isFixed === void 0) {
1015
- isFixed = false;
1016
- }
1017
- if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
1018
- return false;
1019
- }
1020
- return isFixed;
1021
- }
1022
-
1023
- function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
1024
- if (includeScale === void 0) {
1025
- includeScale = false;
1026
- }
1027
- if (isFixedStrategy === void 0) {
1028
- isFixedStrategy = false;
1029
- }
1030
- const clientRect = element.getBoundingClientRect();
1031
- const domElement = unwrapElement(element);
1032
- let scale = createCoords(1);
1033
- if (includeScale) {
1034
- if (offsetParent) {
1035
- if (isElement(offsetParent)) {
1036
- scale = getScale(offsetParent);
1037
- }
1038
- } else {
1039
- scale = getScale(element);
1040
- }
1041
- }
1042
- const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
1043
- let x = (clientRect.left + visualOffsets.x) / scale.x;
1044
- let y = (clientRect.top + visualOffsets.y) / scale.y;
1045
- let width = clientRect.width / scale.x;
1046
- let height = clientRect.height / scale.y;
1047
- if (domElement) {
1048
- const win = getWindow(domElement);
1049
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
1050
- let currentWin = win;
1051
- let currentIFrame = getFrameElement(currentWin);
1052
- while (currentIFrame && offsetParent && offsetWin !== currentWin) {
1053
- const iframeScale = getScale(currentIFrame);
1054
- const iframeRect = currentIFrame.getBoundingClientRect();
1055
- const css = getComputedStyle(currentIFrame);
1056
- const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
1057
- const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
1058
- x *= iframeScale.x;
1059
- y *= iframeScale.y;
1060
- width *= iframeScale.x;
1061
- height *= iframeScale.y;
1062
- x += left;
1063
- y += top;
1064
- currentWin = getWindow(currentIFrame);
1065
- currentIFrame = getFrameElement(currentWin);
1066
- }
1067
- }
1068
- return rectToClientRect({
1069
- width,
1070
- height,
1071
- x,
1072
- y
1073
- });
1074
- }
1075
-
1076
- // If <html> has a CSS width greater than the viewport, then this will be
1077
- // incorrect for RTL.
1078
- function getWindowScrollBarX(element, rect) {
1079
- const leftScroll = getNodeScroll(element).scrollLeft;
1080
- if (!rect) {
1081
- return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
1082
- }
1083
- return rect.left + leftScroll;
1084
- }
1085
-
1086
- function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
1087
- if (ignoreScrollbarX === void 0) {
1088
- ignoreScrollbarX = false;
1089
- }
1090
- const htmlRect = documentElement.getBoundingClientRect();
1091
- const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 :
1092
- // RTL <body> scrollbar.
1093
- getWindowScrollBarX(documentElement, htmlRect));
1094
- const y = htmlRect.top + scroll.scrollTop;
1095
- return {
1096
- x,
1097
- y
1098
- };
1099
- }
1100
-
1101
- function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
1102
- let {
1103
- elements,
1104
- rect,
1105
- offsetParent,
1106
- strategy
1107
- } = _ref;
1108
- const isFixed = strategy === 'fixed';
1109
- const documentElement = getDocumentElement(offsetParent);
1110
- const topLayer = elements ? isTopLayer(elements.floating) : false;
1111
- if (offsetParent === documentElement || topLayer && isFixed) {
1112
- return rect;
1113
- }
1114
- let scroll = {
1115
- scrollLeft: 0,
1116
- scrollTop: 0
1117
- };
1118
- let scale = createCoords(1);
1119
- const offsets = createCoords(0);
1120
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
1121
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1122
- if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1123
- scroll = getNodeScroll(offsetParent);
1124
- }
1125
- if (isHTMLElement(offsetParent)) {
1126
- const offsetRect = getBoundingClientRect(offsetParent);
1127
- scale = getScale(offsetParent);
1128
- offsets.x = offsetRect.x + offsetParent.clientLeft;
1129
- offsets.y = offsetRect.y + offsetParent.clientTop;
1130
- }
1131
- }
1132
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
1133
- return {
1134
- width: rect.width * scale.x,
1135
- height: rect.height * scale.y,
1136
- x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
1137
- y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
1138
- };
1139
- }
1140
-
1141
- function getClientRects(element) {
1142
- return Array.from(element.getClientRects());
1143
- }
1144
-
1145
- // Gets the entire size of the scrollable document area, even extending outside
1146
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
1147
- function getDocumentRect(element) {
1148
- const html = getDocumentElement(element);
1149
- const scroll = getNodeScroll(element);
1150
- const body = element.ownerDocument.body;
1151
- const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
1152
- const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
1153
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
1154
- const y = -scroll.scrollTop;
1155
- if (getComputedStyle(body).direction === 'rtl') {
1156
- x += max(html.clientWidth, body.clientWidth) - width;
1157
- }
1158
- return {
1159
- width,
1160
- height,
1161
- x,
1162
- y
1163
- };
1164
- }
1165
-
1166
- function getViewportRect(element, strategy) {
1167
- const win = getWindow(element);
1168
- const html = getDocumentElement(element);
1169
- const visualViewport = win.visualViewport;
1170
- let width = html.clientWidth;
1171
- let height = html.clientHeight;
1172
- let x = 0;
1173
- let y = 0;
1174
- if (visualViewport) {
1175
- width = visualViewport.width;
1176
- height = visualViewport.height;
1177
- const visualViewportBased = isWebKit();
1178
- if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
1179
- x = visualViewport.offsetLeft;
1180
- y = visualViewport.offsetTop;
1181
- }
1182
- }
1183
- return {
1184
- width,
1185
- height,
1186
- x,
1187
- y
1188
- };
1189
- }
1190
-
1191
- // Returns the inner client rect, subtracting scrollbars if present.
1192
- function getInnerBoundingClientRect(element, strategy) {
1193
- const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
1194
- const top = clientRect.top + element.clientTop;
1195
- const left = clientRect.left + element.clientLeft;
1196
- const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
1197
- const width = element.clientWidth * scale.x;
1198
- const height = element.clientHeight * scale.y;
1199
- const x = left * scale.x;
1200
- const y = top * scale.y;
1201
- return {
1202
- width,
1203
- height,
1204
- x,
1205
- y
1206
- };
1207
- }
1208
- function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
1209
- let rect;
1210
- if (clippingAncestor === 'viewport') {
1211
- rect = getViewportRect(element, strategy);
1212
- } else if (clippingAncestor === 'document') {
1213
- rect = getDocumentRect(getDocumentElement(element));
1214
- } else if (isElement(clippingAncestor)) {
1215
- rect = getInnerBoundingClientRect(clippingAncestor, strategy);
1216
- } else {
1217
- const visualOffsets = getVisualOffsets(element);
1218
- rect = {
1219
- x: clippingAncestor.x - visualOffsets.x,
1220
- y: clippingAncestor.y - visualOffsets.y,
1221
- width: clippingAncestor.width,
1222
- height: clippingAncestor.height
1223
- };
1224
- }
1225
- return rectToClientRect(rect);
1226
- }
1227
- function hasFixedPositionAncestor(element, stopNode) {
1228
- const parentNode = getParentNode(element);
1229
- if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
1230
- return false;
1231
- }
1232
- return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
1233
- }
1234
-
1235
- // A "clipping ancestor" is an `overflow` element with the characteristic of
1236
- // clipping (or hiding) child elements. This returns all clipping ancestors
1237
- // of the given element up the tree.
1238
- function getClippingElementAncestors(element, cache) {
1239
- const cachedResult = cache.get(element);
1240
- if (cachedResult) {
1241
- return cachedResult;
1242
- }
1243
- let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
1244
- let currentContainingBlockComputedStyle = null;
1245
- const elementIsFixed = getComputedStyle(element).position === 'fixed';
1246
- let currentNode = elementIsFixed ? getParentNode(element) : element;
1247
-
1248
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1249
- while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1250
- const computedStyle = getComputedStyle(currentNode);
1251
- const currentNodeIsContaining = isContainingBlock(currentNode);
1252
- if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
1253
- currentContainingBlockComputedStyle = null;
1254
- }
1255
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
1256
- if (shouldDropCurrentNode) {
1257
- // Drop non-containing blocks.
1258
- result = result.filter(ancestor => ancestor !== currentNode);
1259
- } else {
1260
- // Record last containing block for next iteration.
1261
- currentContainingBlockComputedStyle = computedStyle;
1262
- }
1263
- currentNode = getParentNode(currentNode);
1264
- }
1265
- cache.set(element, result);
1266
- return result;
1267
- }
1268
-
1269
- // Gets the maximum area that the element is visible in due to any number of
1270
- // clipping ancestors.
1271
- function getClippingRect(_ref) {
1272
- let {
1273
- element,
1274
- boundary,
1275
- rootBoundary,
1276
- strategy
1277
- } = _ref;
1278
- const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
1279
- const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1280
- const firstClippingAncestor = clippingAncestors[0];
1281
- const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
1282
- const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
1283
- accRect.top = max(rect.top, accRect.top);
1284
- accRect.right = min(rect.right, accRect.right);
1285
- accRect.bottom = min(rect.bottom, accRect.bottom);
1286
- accRect.left = max(rect.left, accRect.left);
1287
- return accRect;
1288
- }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
1289
- return {
1290
- width: clippingRect.right - clippingRect.left,
1291
- height: clippingRect.bottom - clippingRect.top,
1292
- x: clippingRect.left,
1293
- y: clippingRect.top
1294
- };
1295
- }
1296
-
1297
- function getDimensions(element) {
1298
- const {
1299
- width,
1300
- height
1301
- } = getCssDimensions(element);
1302
- return {
1303
- width,
1304
- height
1305
- };
1306
- }
1307
-
1308
- function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1309
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
1310
- const documentElement = getDocumentElement(offsetParent);
1311
- const isFixed = strategy === 'fixed';
1312
- const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1313
- let scroll = {
1314
- scrollLeft: 0,
1315
- scrollTop: 0
1316
- };
1317
- const offsets = createCoords(0);
1318
-
1319
- // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
1320
- // Firefox with layout.scrollbar.side = 3 in about:config to test this.
1321
- function setLeftRTLScrollbarOffset() {
1322
- offsets.x = getWindowScrollBarX(documentElement);
1323
- }
1324
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1325
- if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1326
- scroll = getNodeScroll(offsetParent);
1327
- }
1328
- if (isOffsetParentAnElement) {
1329
- const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1330
- offsets.x = offsetRect.x + offsetParent.clientLeft;
1331
- offsets.y = offsetRect.y + offsetParent.clientTop;
1332
- } else if (documentElement) {
1333
- setLeftRTLScrollbarOffset();
1334
- }
1335
- }
1336
- if (isFixed && !isOffsetParentAnElement && documentElement) {
1337
- setLeftRTLScrollbarOffset();
1338
- }
1339
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1340
- const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
1341
- const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
1342
- return {
1343
- x,
1344
- y,
1345
- width: rect.width,
1346
- height: rect.height
1347
- };
1348
- }
1349
-
1350
- function isStaticPositioned(element) {
1351
- return getComputedStyle(element).position === 'static';
1352
- }
1353
-
1354
- function getTrueOffsetParent(element, polyfill) {
1355
- if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
1356
- return null;
1357
- }
1358
- if (polyfill) {
1359
- return polyfill(element);
1360
- }
1361
- let rawOffsetParent = element.offsetParent;
1362
-
1363
- // Firefox returns the <html> element as the offsetParent if it's non-static,
1364
- // while Chrome and Safari return the <body> element. The <body> element must
1365
- // be used to perform the correct calculations even if the <html> element is
1366
- // non-static.
1367
- if (getDocumentElement(element) === rawOffsetParent) {
1368
- rawOffsetParent = rawOffsetParent.ownerDocument.body;
1369
- }
1370
- return rawOffsetParent;
1371
- }
1372
-
1373
- // Gets the closest ancestor positioned element. Handles some edge cases,
1374
- // such as table ancestors and cross browser bugs.
1375
- function getOffsetParent(element, polyfill) {
1376
- const win = getWindow(element);
1377
- if (isTopLayer(element)) {
1378
- return win;
1379
- }
1380
- if (!isHTMLElement(element)) {
1381
- let svgOffsetParent = getParentNode(element);
1382
- while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
1383
- if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
1384
- return svgOffsetParent;
1385
- }
1386
- svgOffsetParent = getParentNode(svgOffsetParent);
1387
- }
1388
- return win;
1389
- }
1390
- let offsetParent = getTrueOffsetParent(element, polyfill);
1391
- while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
1392
- offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1393
- }
1394
- if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
1395
- return win;
1396
- }
1397
- return offsetParent || getContainingBlock(element) || win;
1398
- }
1399
-
1400
- const getElementRects = async function (data) {
1401
- const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1402
- const getDimensionsFn = this.getDimensions;
1403
- const floatingDimensions = await getDimensionsFn(data.floating);
1404
- return {
1405
- reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
1406
- floating: {
1407
- x: 0,
1408
- y: 0,
1409
- width: floatingDimensions.width,
1410
- height: floatingDimensions.height
1411
- }
1412
- };
1413
- };
1414
-
1415
- function isRTL(element) {
1416
- return getComputedStyle(element).direction === 'rtl';
1417
- }
1418
-
1419
- const platform = {
1420
- convertOffsetParentRelativeRectToViewportRelativeRect,
1421
- getDocumentElement,
1422
- getClippingRect,
1423
- getOffsetParent,
1424
- getElementRects,
1425
- getClientRects,
1426
- getDimensions,
1427
- getScale,
1428
- isElement,
1429
- isRTL
1430
- };
1431
-
1432
- function rectsAreEqual(a, b) {
1433
- return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
1434
- }
1435
-
1436
- // https://samthor.au/2021/observing-dom/
1437
- function observeMove(element, onMove) {
1438
- let io = null;
1439
- let timeoutId;
1440
- const root = getDocumentElement(element);
1441
- function cleanup() {
1442
- var _io;
1443
- clearTimeout(timeoutId);
1444
- (_io = io) == null || _io.disconnect();
1445
- io = null;
1446
- }
1447
- function refresh(skip, threshold) {
1448
- if (skip === void 0) {
1449
- skip = false;
1450
- }
1451
- if (threshold === void 0) {
1452
- threshold = 1;
1453
- }
1454
- cleanup();
1455
- const elementRectForRootMargin = element.getBoundingClientRect();
1456
- const {
1457
- left,
1458
- top,
1459
- width,
1460
- height
1461
- } = elementRectForRootMargin;
1462
- if (!skip) {
1463
- onMove();
1464
- }
1465
- if (!width || !height) {
1466
- return;
1467
- }
1468
- const insetTop = floor(top);
1469
- const insetRight = floor(root.clientWidth - (left + width));
1470
- const insetBottom = floor(root.clientHeight - (top + height));
1471
- const insetLeft = floor(left);
1472
- const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
1473
- const options = {
1474
- rootMargin,
1475
- threshold: max(0, min(1, threshold)) || 1
1476
- };
1477
- let isFirstUpdate = true;
1478
- function handleObserve(entries) {
1479
- const ratio = entries[0].intersectionRatio;
1480
- if (ratio !== threshold) {
1481
- if (!isFirstUpdate) {
1482
- return refresh();
1483
- }
1484
- if (!ratio) {
1485
- // If the reference is clipped, the ratio is 0. Throttle the refresh
1486
- // to prevent an infinite loop of updates.
1487
- timeoutId = setTimeout(() => {
1488
- refresh(false, 1e-7);
1489
- }, 1000);
1490
- } else {
1491
- refresh(false, ratio);
1492
- }
1493
- }
1494
- if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
1495
- // It's possible that even though the ratio is reported as 1, the
1496
- // element is not actually fully within the IntersectionObserver's root
1497
- // area anymore. This can happen under performance constraints. This may
1498
- // be a bug in the browser's IntersectionObserver implementation. To
1499
- // work around this, we compare the element's bounding rect now with
1500
- // what it was at the time we created the IntersectionObserver. If they
1501
- // are not equal then the element moved, so we refresh.
1502
- refresh();
1503
- }
1504
- isFirstUpdate = false;
1505
- }
1506
-
1507
- // Older browsers don't support a `document` as the root and will throw an
1508
- // error.
1509
- try {
1510
- io = new IntersectionObserver(handleObserve, {
1511
- ...options,
1512
- // Handle <iframe>s
1513
- root: root.ownerDocument
1514
- });
1515
- } catch (_e) {
1516
- io = new IntersectionObserver(handleObserve, options);
1517
- }
1518
- io.observe(element);
1519
- }
1520
- refresh(true);
1521
- return cleanup;
1522
- }
1523
-
1524
- /**
1525
- * Automatically updates the position of the floating element when necessary.
1526
- * Should only be called when the floating element is mounted on the DOM or
1527
- * visible on the screen.
1528
- * @returns cleanup function that should be invoked when the floating element is
1529
- * removed from the DOM or hidden from the screen.
1530
- * @see https://floating-ui.com/docs/autoUpdate
1531
- */
1532
- function autoUpdate(reference, floating, update, options) {
1533
- if (options === void 0) {
1534
- options = {};
1535
- }
1536
- const {
1537
- ancestorScroll = true,
1538
- ancestorResize = true,
1539
- elementResize = typeof ResizeObserver === 'function',
1540
- layoutShift = typeof IntersectionObserver === 'function',
1541
- animationFrame = false
1542
- } = options;
1543
- const referenceEl = unwrapElement(reference);
1544
- const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
1545
- ancestors.forEach(ancestor => {
1546
- ancestorScroll && ancestor.addEventListener('scroll', update, {
1547
- passive: true
1548
- });
1549
- ancestorResize && ancestor.addEventListener('resize', update);
1550
- });
1551
- const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
1552
- let reobserveFrame = -1;
1553
- let resizeObserver = null;
1554
- if (elementResize) {
1555
- resizeObserver = new ResizeObserver(_ref => {
1556
- let [firstEntry] = _ref;
1557
- if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
1558
- // Prevent update loops when using the `size` middleware.
1559
- // https://github.com/floating-ui/floating-ui/issues/1740
1560
- resizeObserver.unobserve(floating);
1561
- cancelAnimationFrame(reobserveFrame);
1562
- reobserveFrame = requestAnimationFrame(() => {
1563
- var _resizeObserver;
1564
- (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
1565
- });
1566
- }
1567
- update();
1568
- });
1569
- if (referenceEl && !animationFrame) {
1570
- resizeObserver.observe(referenceEl);
1571
- }
1572
- resizeObserver.observe(floating);
1573
- }
1574
- let frameId;
1575
- let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
1576
- if (animationFrame) {
1577
- frameLoop();
1578
- }
1579
- function frameLoop() {
1580
- const nextRefRect = getBoundingClientRect(reference);
1581
- if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
1582
- update();
1583
- }
1584
- prevRefRect = nextRefRect;
1585
- frameId = requestAnimationFrame(frameLoop);
1586
- }
1587
- update();
1588
- return () => {
1589
- var _resizeObserver2;
1590
- ancestors.forEach(ancestor => {
1591
- ancestorScroll && ancestor.removeEventListener('scroll', update);
1592
- ancestorResize && ancestor.removeEventListener('resize', update);
1593
- });
1594
- cleanupIo == null || cleanupIo();
1595
- (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
1596
- resizeObserver = null;
1597
- if (animationFrame) {
1598
- cancelAnimationFrame(frameId);
1599
- }
1600
- };
1601
- }
1602
-
1603
- /**
1604
- * Modifies the placement by translating the floating element along the
1605
- * specified axes.
1606
- * A number (shorthand for `mainAxis` or distance), or an axes configuration
1607
- * object may be passed.
1608
- * @see https://floating-ui.com/docs/offset
1609
- */
1610
- const offset = offset$1;
1611
-
1612
- /**
1613
- * Optimizes the visibility of the floating element by shifting it in order to
1614
- * keep it in view when it will overflow the clipping boundary.
1615
- * @see https://floating-ui.com/docs/shift
1616
- */
1617
- const shift = shift$1;
1618
-
1619
- /**
1620
- * Optimizes the visibility of the floating element by flipping the `placement`
1621
- * in order to keep it in view when the preferred placement(s) will overflow the
1622
- * clipping boundary. Alternative to `autoPlacement`.
1623
- * @see https://floating-ui.com/docs/flip
1624
- */
1625
- const flip = flip$1;
1626
-
1627
- /**
1628
- * Provides data to hide the floating element in applicable situations, such as
1629
- * when it is not in the same clipping context as the reference element.
1630
- * @see https://floating-ui.com/docs/hide
1631
- */
1632
- const hide = hide$1;
1633
-
1634
- /**
1635
- * Provides data to position an inner element of the floating element so that it
1636
- * appears centered to the reference element.
1637
- * @see https://floating-ui.com/docs/arrow
1638
- */
1639
- const arrow = arrow$1;
1640
-
1641
- /**
1642
- * Computes the `x` and `y` coordinates that will place the floating element
1643
- * next to a given reference element.
1644
- */
1645
- const computePosition = (reference, floating, options) => {
1646
- // This caches the expensive `getClippingElementAncestors` function so that
1647
- // multiple lifecycle resets re-use the same result. It only lives for a
1648
- // single call. If other functions become expensive, we can add them as well.
1649
- const cache = new Map();
1650
- const mergedOptions = {
1651
- platform,
1652
- ...options
1653
- };
1654
- const platformWithCache = {
1655
- ...mergedOptions.platform,
1656
- _c: cache
1657
- };
1658
- return computePosition$1(reference, floating, {
1659
- ...mergedOptions,
1660
- platform: platformWithCache
1661
- });
1662
- };
4
+ var floatingUi_dom = require('./floating-ui.dom-uZgU2YQo.js');
1663
5
 
1664
6
  const onboardingTipCss = "@charset \"UTF-8\";*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}::slotted([slot=heading]){display:flex !important;align-items:center !important;margin-block-end:0 !important;margin-block-start:0 !important;color:#fff !important;line-height:1.375 !important}:host{--_dso-button-primary-background-color:#fff;--_dso-button-primary-border-color:#fff;--_dso-button-primary-color:#000;--_dso-button-primary-hover-background-color:#ccc;--_dso-button-primary-hover-border-color:#ccc;--_dso-button-primary-hover-color:#000;--_dso-button-primary-active-background-color:#999;--_dso-button-primary-active-border-color:#999;--_dso-button-primary-active-color:#000;--_dso-button-primary-disabled-background-color:#fff;--_dso-button-primary-disabled-border-color:#fff;--_dso-button-primary-disabled-color:#b2b2b2;--_dso-button-secondary-background-color:#fff;--_dso-button-secondary-border-color:#fff;--_dso-button-secondary-color:#000;--_dso-button-secondary-hover-background-color:#ccc;--_dso-button-secondary-hover-border-color:#ccc;--_dso-button-secondary-hover-color:#000;--_dso-button-secondary-active-background-color:#999;--_dso-button-secondary-active-border-color:#999;--_dso-button-secondary-active-color:#000;--_dso-button-secondary-disabled-background-color:#fff;--_dso-button-secondary-disabled-border-color:#fff;--_dso-button-secondary-disabled-color:#b2b2b2;display:block;filter:drop-shadow(2px 2px 16px rgba(0, 0, 0, 0.4));transition:visibility 400ms, opacity 400ms}:host(:not([ready])){opacity:1;animation:400ms ease-in 1 normal both fadeInOpacity}:host([popover]){margin:0 !important;border:0;padding:0;background-color:transparent;overflow:unset}.onboarding-tip{font-family:Asap, sans-serif;font-style:normal;font-weight:400;line-height:1.5;line-break:auto;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;overflow-wrap:anywhere;word-spacing:normal;word-wrap:normal;white-space:normal;font-size:14px;inset-block-start:0;inset-inline-start:0;z-index:410}@media screen and (max-width: 360px){.onboarding-tip{padding-inline-start:8px !important}}.dso-close{-webkit-appearance:button;color:inherit;cursor:pointer;font:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none;position:absolute;inset-block-start:0;inset-inline-end:0;block-size:32px;inline-size:32px;padding:0;background-color:transparent;border:0;text-align:center}.dso-close[disabled]{cursor:default}.dso-close::-moz-focus-inner{border:0;padding:0}.onboarding-tip-inner{--link-color:#fff;--link-hover-color:#b2b2b2;--link-visited-color:#7f7f7f;max-inline-size:min(360px, 100vw - 2 * 8px);max-block-size:calc(100vh - 10px);overflow:auto;padding-block:32px 8px;padding-inline:8px;border-radius:4px;display:block;font-size:1rem;position:relative;z-index:2}.onboarding-tip-inner{background-color:#2b5780;border-color:#2b5780;color:#fff}@media screen and (max-width: 991px){.onboarding-tip-inner{max-block-size:unset}}.onboarding-tip-arrow{border-start-start-radius:4px;position:absolute;block-size:20px;inline-size:20px;background:#2b5780;z-index:1;pointer-events:none}.onboarding-tip-content-wrapper{padding-inline:16px;padding-block-end:16px}.onboarding-tip-content-heading{display:flex}.onboarding-tip-content-heading dso-icon{margin-inline-end:8px}@keyframes fadeInOpacity{0%{opacity:0}100%{opacity:1}}";
1665
7
 
@@ -1695,7 +37,7 @@ const OnboardingTip = class {
1695
37
  */
1696
38
  static positionTip(referenceElement, tipRef, tipArrowRef, position) {
1697
39
  const padding = 5;
1698
- return autoUpdate(referenceElement, tipRef, () => {
40
+ return floatingUi_dom.autoUpdate(referenceElement, tipRef, () => {
1699
41
  const arrowLength = tipArrowRef.offsetWidth;
1700
42
  // Get half the arrow box's hypotenuse length
1701
43
  const mainAxisOffset = Math.sqrt(2 * arrowLength ** 2) / 2;
@@ -1705,24 +47,24 @@ const OnboardingTip = class {
1705
47
  const smallViewport = document.body.clientWidth < 992;
1706
48
  // Only use top and bottom placement when the viewport is small
1707
49
  const placement = smallViewport ? "top" : `${position}-start`;
1708
- computePosition(referenceElement, tipRef, {
50
+ floatingUi_dom.computePosition(referenceElement, tipRef, {
1709
51
  strategy: "fixed",
1710
52
  middleware: [
1711
- offset({
53
+ floatingUi_dom.offset({
1712
54
  mainAxis: mainAxisOffset,
1713
55
  alignmentAxis: -arrowPadding,
1714
56
  }),
1715
- flip({
57
+ floatingUi_dom.flip({
1716
58
  padding,
1717
59
  }),
1718
- shift({
60
+ floatingUi_dom.shift({
1719
61
  padding,
1720
62
  }),
1721
- arrow({
63
+ floatingUi_dom.arrow({
1722
64
  padding: arrowPadding,
1723
65
  element: tipArrowRef,
1724
66
  }),
1725
- hide({
67
+ floatingUi_dom.hide({
1726
68
  padding: arrowPadding + arrowLength + padding,
1727
69
  }),
1728
70
  ],
@@ -1781,7 +123,7 @@ const OnboardingTip = class {
1781
123
  });
1782
124
  }
1783
125
  render() {
1784
- return (index.h(index.Host, { key: 'f1f8a73517cb7c42c3f7db641aa9a9bd1d99b3ff', popover: "manual", ready: this.ready, onAnimationend: () => (this.ready = true) }, index.h("div", { key: '239bbc0f4e594b9961158554ede26773abb040e2', class: "onboarding-tip", role: "tooltip" }, index.h("div", { key: '9418125c3b3cef6105b93b1e709fa49cffa059db', class: "onboarding-tip-inner" }, index.h("div", { key: '7625bdd68b348ae7261d35919b53428b0159b6a9', class: "onboarding-tip-content-wrapper" }, this.headingSlottedElement !== null && (index.h("div", { key: '5c0b5e4384e5dcd9d8f0c25bc08556bc7db8157b', class: "onboarding-tip-content-heading" }, index.h("dso-icon", { key: 'cba3187c63913c7de1e0752cb6528fb4eb1f3450', icon: "light-bulb" }), index.h("slot", { key: '43c11f9a8c6992ff4009ff4a7ec70941faa44f28', name: "heading" }))), index.h("button", { key: '2771456240f878a1df2f562a595422757b630744', type: "button", class: "dso-close", onClick: (e) => this.dsoClose.emit({ originalEvent: e }) }, index.h("dso-icon", { key: '850b446c17f5c29602d725187737d53561682cf3', icon: "times" }), index.h("span", { key: '43b7b9eb4fbff09a0c44672c34f26d91d8fe6f84', class: "sr-only" }, "Sluiten")), index.h("slot", { key: 'aaafc3f27276fee1a8137a94c990c99c16521c39' }))), index.h("div", { key: '7e6723f289ef52cd31beab6751ea356c6be080a7', class: "onboarding-tip-arrow", ref: (ref) => (this.tipArrowRef = ref) }))));
126
+ return (index.h(index.Host, { key: 'b77a88b622c4449698f911155e0454278d28aae2', popover: "manual", ready: this.ready, onAnimationend: () => (this.ready = true) }, index.h("div", { key: '904f17d3e1cdf1c74a50e6089b1a5507c98c5570', class: "onboarding-tip", role: "tooltip" }, index.h("div", { key: '60027d656f407b80f1bc62b1d8b394675d8a4c29', class: "onboarding-tip-inner" }, index.h("div", { key: 'b87378ba4b6e9ce851d0b565b052c53ea54c86e3', class: "onboarding-tip-content-wrapper" }, this.headingSlottedElement !== null && (index.h("div", { key: '6c9326b09ce2e823c381554c97229909e4754829', class: "onboarding-tip-content-heading" }, index.h("dso-icon", { key: 'fb6e5837b5ac53c06df7ce28f03282b9fe584ce6', icon: "light-bulb" }), index.h("slot", { key: '4eee646004474e2b79eb17a5957b791926234ba9', name: "heading" }))), index.h("button", { key: '3dd74214ac6e1c91d37ebd33064615868f10c566', type: "button", class: "dso-close", onClick: (e) => this.dsoClose.emit({ originalEvent: e }) }, index.h("dso-icon", { key: 'b297506aa8e5a8796ab9452f4e4ebc63d753452a', icon: "times" }), index.h("span", { key: '50a9aface85ef552e4ac7493c7231f2d47b0a1da', class: "sr-only" }, "Sluiten")), index.h("slot", { key: '826a6d61dbd82d06ade187d5e4e1f2f1b823bea8' }))), index.h("div", { key: '8914f8ec556c28b0df6f783c93e86a70234311b3', class: "onboarding-tip-arrow", ref: (ref) => (this.tipArrowRef = ref) }))));
1785
127
  }
1786
128
  get headingSlottedElement() {
1787
129
  return this.host.querySelector("[slot='heading']");