@zanichelli/albe-web-components 18.5.3 → 18.5.4-RC1

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 (487) hide show
  1. package/dist/cjs/{index-6ba31c6e.js → index-10fe85fc.js} +2 -2
  2. package/dist/cjs/{index-6ba31c6e.js.map → index-10fe85fc.js.map} +1 -1
  3. package/dist/cjs/{index-339004f9.js → index-152c983a.js} +4 -4
  4. package/dist/cjs/{index-339004f9.js.map → index-152c983a.js.map} +1 -1
  5. package/dist/cjs/{index-97a4c18d.js → index-2d4fb043.js} +1 -6
  6. package/dist/cjs/index-2d4fb043.js.map +1 -0
  7. package/dist/cjs/{index-aeea3159.js → index-6b856bc1.js} +2 -2
  8. package/dist/cjs/{index-aeea3159.js.map → index-6b856bc1.js.map} +1 -1
  9. package/dist/cjs/index.cjs.js +2 -2
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/{utils-7f9d5a78.js → utils-7bfaaf8c.js} +2 -2
  12. package/dist/cjs/{utils-7f9d5a78.js.map → utils-7bfaaf8c.js.map} +1 -1
  13. package/dist/cjs/{utils-93961cb6.js → utils-ecc8ba50.js} +2 -2
  14. package/dist/cjs/{utils-93961cb6.js.map → utils-ecc8ba50.js.map} +1 -1
  15. package/dist/cjs/web-components-library.cjs.js +1 -1
  16. package/dist/cjs/z-accordion.cjs.entry.js +1 -1
  17. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  18. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  19. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +1 -1
  20. package/dist/cjs/z-app-header_12.cjs.entry.js +3 -3
  21. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  22. package/dist/cjs/z-avatar.cjs.entry.js +1 -1
  23. package/dist/cjs/z-book-card-app.cjs.entry.js +1 -1
  24. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +2 -2
  25. package/dist/cjs/z-book-card.cjs.entry.js +1 -1
  26. package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
  27. package/dist/cjs/z-card.cjs.entry.js +1 -1
  28. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  29. package/dist/cjs/z-chip.cjs.entry.js +1 -1
  30. package/dist/cjs/z-combobox.cjs.entry.js +2 -2
  31. package/dist/cjs/z-cover-hero.cjs.entry.js +1 -1
  32. package/dist/cjs/z-date-picker.cjs.entry.js +2 -2
  33. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1 -1
  34. package/dist/cjs/z-file-upload.cjs.entry.js +1 -1
  35. package/dist/cjs/z-file.cjs.entry.js +1 -1
  36. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  37. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  38. package/dist/cjs/z-menu.cjs.entry.js +2 -2
  39. package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  40. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  41. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  42. package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
  43. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  44. package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
  45. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  46. package/dist/cjs/z-myz-card_4.cjs.entry.js +5 -5
  47. package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
  48. package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
  49. package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
  50. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -1
  51. package/dist/cjs/z-otp.cjs.entry.js +3 -3
  52. package/dist/cjs/z-pagination.cjs.entry.js +1 -1
  53. package/dist/cjs/z-popover.cjs.entry.js +153 -307
  54. package/dist/cjs/z-popover.cjs.entry.js.map +1 -1
  55. package/dist/cjs/z-range-picker.cjs.entry.js +2 -2
  56. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  57. package/dist/cjs/z-select.cjs.entry.js +2 -2
  58. package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -3
  59. package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
  60. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  61. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  62. package/dist/cjs/z-table.cjs.entry.js +5 -5
  63. package/dist/cjs/z-td.cjs.entry.js +2 -2
  64. package/dist/cjs/z-th.cjs.entry.js +2 -2
  65. package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
  66. package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
  67. package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
  68. package/dist/cjs/z-toggle-switch.cjs.entry.js +5 -5
  69. package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
  70. package/dist/cjs/z-tr.cjs.entry.js +5 -5
  71. package/dist/cjs/z-tree-list.cjs.entry.js +1 -1
  72. package/dist/collection/beans/index.js +0 -5
  73. package/dist/collection/beans/index.js.map +1 -1
  74. package/dist/collection/components/z-navigation-tabs/styles.css +1 -1
  75. package/dist/collection/components/z-popover/index.js +156 -316
  76. package/dist/collection/components/z-popover/index.js.map +1 -1
  77. package/dist/collection/components/z-popover/index.stories.js +41 -124
  78. package/dist/collection/components/z-popover/index.stories.js.map +1 -1
  79. package/dist/collection/components/z-popover/styles.css +10 -16
  80. package/dist/collection/components/z-searchbar/index.js +1 -1
  81. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  82. package/dist/collection/components/z-stepper/index.js +1 -1
  83. package/dist/collection/components/z-stepper-item/index.js +1 -1
  84. package/dist/collection/components/z-toast-notification/index.js +1 -1
  85. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  86. package/dist/collection/components/z-toggle-button/index.js +2 -2
  87. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  88. package/dist/collection/components/z-tooltip/index.js +1 -1
  89. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  90. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  91. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  92. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  93. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  94. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  95. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  96. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  97. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  98. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  99. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  100. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  101. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  102. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  103. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  104. package/dist/components/index17.js +1 -1
  105. package/dist/components/index18.js +1 -1
  106. package/dist/components/index19.js +1 -1
  107. package/dist/components/index2.js +0 -5
  108. package/dist/components/index2.js.map +1 -1
  109. package/dist/components/index20.js +1 -1
  110. package/dist/components/index21.js +1 -1
  111. package/dist/components/index23.js +154 -308
  112. package/dist/components/index23.js.map +1 -1
  113. package/dist/components/index24.js +1 -1
  114. package/dist/components/index3.js +1 -1
  115. package/dist/components/z-myz-card-alert.js +1 -1
  116. package/dist/components/z-myz-card-dictionary.js +1 -1
  117. package/dist/components/z-myz-card-footer-sections.js +1 -1
  118. package/dist/components/z-myz-card-footer.js +1 -1
  119. package/dist/components/z-myz-card-icon.js +1 -1
  120. package/dist/components/z-myz-card-info.js +1 -1
  121. package/dist/components/z-myz-card-list.js +1 -1
  122. package/dist/components/z-myz-list.js +1 -1
  123. package/dist/components/z-navigation-tabs.js +1 -1
  124. package/dist/components/z-navigation-tabs.js.map +1 -1
  125. package/dist/components/z-otp.js +2 -2
  126. package/dist/components/z-skip-to-content.js +1 -1
  127. package/dist/components/z-stepper-item.js +1 -1
  128. package/dist/components/z-stepper.js +1 -1
  129. package/dist/components/z-table.js +0 -1
  130. package/dist/components/z-table.js.map +1 -1
  131. package/dist/components/z-toast-notification-list.js +1 -1
  132. package/dist/components/z-toast-notification.js +1 -1
  133. package/dist/components/z-toggle-button.js +2 -2
  134. package/dist/components/z-toggle-switch.js +3 -3
  135. package/dist/components/z-tooltip.js +1 -1
  136. package/dist/components/z-tr.js +0 -1
  137. package/dist/components/z-tr.js.map +1 -1
  138. package/dist/esm/{index-eb99d165.js → index-6b637355.js} +2 -2
  139. package/dist/esm/{index-eb99d165.js.map → index-6b637355.js.map} +1 -1
  140. package/dist/esm/{index-2a6324f8.js → index-cb76b648.js} +1 -6
  141. package/dist/esm/index-cb76b648.js.map +1 -0
  142. package/dist/esm/{index-5e18fc4b.js → index-d02d53b4.js} +2 -2
  143. package/dist/esm/{index-5e18fc4b.js.map → index-d02d53b4.js.map} +1 -1
  144. package/dist/esm/{index-3e140e28.js → index-d0f93a38.js} +4 -4
  145. package/dist/esm/{index-3e140e28.js.map → index-d0f93a38.js.map} +1 -1
  146. package/dist/esm/index.js +2 -2
  147. package/dist/esm/loader.js +1 -1
  148. package/dist/esm/{utils-227ef1c0.js → utils-26154cbf.js} +2 -2
  149. package/dist/esm/{utils-227ef1c0.js.map → utils-26154cbf.js.map} +1 -1
  150. package/dist/esm/{utils-c8abef2f.js → utils-f6ae5714.js} +2 -2
  151. package/dist/esm/{utils-c8abef2f.js.map → utils-f6ae5714.js.map} +1 -1
  152. package/dist/esm/web-components-library.js +1 -1
  153. package/dist/esm/z-accordion.entry.js +1 -1
  154. package/dist/esm/z-alert.entry.js +1 -1
  155. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  156. package/dist/esm/z-app-header-deprecated.entry.js +1 -1
  157. package/dist/esm/z-app-header_12.entry.js +3 -3
  158. package/dist/esm/z-aria-alert.entry.js +1 -1
  159. package/dist/esm/z-avatar.entry.js +1 -1
  160. package/dist/esm/z-book-card-app.entry.js +1 -1
  161. package/dist/esm/z-book-card-deprecated.entry.js +2 -2
  162. package/dist/esm/z-book-card.entry.js +1 -1
  163. package/dist/esm/z-breadcrumb.entry.js +2 -2
  164. package/dist/esm/z-card.entry.js +1 -1
  165. package/dist/esm/z-carousel.entry.js +1 -1
  166. package/dist/esm/z-chip.entry.js +1 -1
  167. package/dist/esm/z-combobox.entry.js +2 -2
  168. package/dist/esm/z-cover-hero.entry.js +1 -1
  169. package/dist/esm/z-date-picker.entry.js +2 -2
  170. package/dist/esm/z-dragdrop-area_2.entry.js +1 -1
  171. package/dist/esm/z-file-upload.entry.js +1 -1
  172. package/dist/esm/z-file.entry.js +1 -1
  173. package/dist/esm/z-info-reveal.entry.js +1 -1
  174. package/dist/esm/z-menu-section.entry.js +1 -1
  175. package/dist/esm/z-menu.entry.js +2 -2
  176. package/dist/esm/z-myz-card-alert.entry.js +2 -2
  177. package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
  178. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  179. package/dist/esm/z-myz-card-footer.entry.js +2 -2
  180. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  181. package/dist/esm/z-myz-card-info.entry.js +3 -3
  182. package/dist/esm/z-myz-card-list.entry.js +1 -1
  183. package/dist/esm/z-myz-card_4.entry.js +5 -5
  184. package/dist/esm/z-myz-list-item.entry.js +3 -3
  185. package/dist/esm/z-myz-list.entry.js +1 -1
  186. package/dist/esm/z-navigation-tabs.entry.js +2 -2
  187. package/dist/esm/z-navigation-tabs.entry.js.map +1 -1
  188. package/dist/esm/z-otp.entry.js +3 -3
  189. package/dist/esm/z-pagination.entry.js +1 -1
  190. package/dist/esm/z-popover.entry.js +154 -308
  191. package/dist/esm/z-popover.entry.js.map +1 -1
  192. package/dist/esm/z-range-picker.entry.js +2 -2
  193. package/dist/esm/z-section-title.entry.js +1 -1
  194. package/dist/esm/z-select.entry.js +2 -2
  195. package/dist/esm/z-skip-to-content.entry.js +3 -3
  196. package/dist/esm/z-slideshow.entry.js +2 -2
  197. package/dist/esm/z-stepper-item.entry.js +1 -1
  198. package/dist/esm/z-stepper.entry.js +1 -1
  199. package/dist/esm/z-table.entry.js +5 -5
  200. package/dist/esm/z-td.entry.js +2 -2
  201. package/dist/esm/z-th.entry.js +2 -2
  202. package/dist/esm/z-toast-notification-list.entry.js +2 -2
  203. package/dist/esm/z-toast-notification.entry.js +2 -2
  204. package/dist/esm/z-toggle-button.entry.js +2 -2
  205. package/dist/esm/z-toggle-switch.entry.js +5 -5
  206. package/dist/esm/z-tooltip.entry.js +2 -2
  207. package/dist/esm/z-tr.entry.js +5 -5
  208. package/dist/esm/z-tree-list.entry.js +1 -1
  209. package/dist/types/beans/index.d.ts +0 -5
  210. package/dist/types/components/z-popover/index.d.ts +4 -50
  211. package/dist/types/components/z-popover/index.stories.d.ts +6 -26
  212. package/dist/types/components.d.ts +3 -23
  213. package/dist/web-components-library/index.esm.js +1 -1
  214. package/dist/web-components-library/{p-a06fbbc0.js → p-02c55ed9.js} +2 -2
  215. package/{www/build/p-ac888c48.entry.js → dist/web-components-library/p-064c29b7.entry.js} +2 -2
  216. package/dist/web-components-library/{p-8f4a90dc.entry.js → p-0c61db99.entry.js} +2 -2
  217. package/{www/build/p-c4b78535.entry.js → dist/web-components-library/p-10345a6d.entry.js} +2 -2
  218. package/dist/web-components-library/{p-12900bf7.js → p-171ee634.js} +2 -2
  219. package/dist/web-components-library/{p-7c69b70a.entry.js → p-173b1867.entry.js} +2 -2
  220. package/dist/web-components-library/{p-a35c1fab.js → p-2174d968.js} +2 -2
  221. package/dist/web-components-library/p-22a8071a.entry.js +2 -0
  222. package/dist/web-components-library/{p-97294823.entry.js.map → p-22a8071a.entry.js.map} +1 -1
  223. package/dist/web-components-library/{p-afea8173.entry.js → p-22aab9d2.entry.js} +2 -2
  224. package/dist/web-components-library/{p-817689d5.entry.js → p-23d669a8.entry.js} +2 -2
  225. package/dist/web-components-library/p-28b41569.entry.js +2 -0
  226. package/dist/web-components-library/p-2aa75dee.entry.js +2 -0
  227. package/dist/web-components-library/p-2aa75dee.entry.js.map +1 -0
  228. package/dist/web-components-library/{p-fb232d07.entry.js → p-2afe6219.entry.js} +2 -2
  229. package/dist/web-components-library/{p-e3b82454.entry.js → p-2fd165a0.entry.js} +2 -2
  230. package/dist/web-components-library/p-305d294a.entry.js +2 -0
  231. package/dist/web-components-library/p-3315c3e1.entry.js +2 -0
  232. package/{www/build/p-2fb52cd0.entry.js → dist/web-components-library/p-333e3cef.entry.js} +2 -2
  233. package/{www/build/p-252ef047.entry.js → dist/web-components-library/p-33c8d043.entry.js} +2 -2
  234. package/dist/web-components-library/{p-98fdc6b5.entry.js → p-35b5c549.entry.js} +2 -2
  235. package/{www/build/p-def1bcc7.entry.js → dist/web-components-library/p-38ffeac0.entry.js} +2 -2
  236. package/dist/web-components-library/{p-cebc9451.entry.js → p-40ac080b.entry.js} +2 -2
  237. package/dist/web-components-library/{p-342b0eb0.entry.js → p-411e98ab.entry.js} +2 -2
  238. package/dist/web-components-library/{p-4cfe0f87.entry.js → p-440db280.entry.js} +2 -2
  239. package/dist/web-components-library/{p-57b8bd19.entry.js → p-49f5ad13.entry.js} +2 -2
  240. package/dist/web-components-library/p-56156e0e.entry.js +2 -0
  241. package/{www/build/p-7fbdf8f9.entry.js → dist/web-components-library/p-59c1d10c.entry.js} +2 -2
  242. package/dist/web-components-library/{p-0df112c4.entry.js → p-5cca3cf8.entry.js} +2 -2
  243. package/dist/web-components-library/{p-9047fe2a.entry.js → p-60ea979a.entry.js} +2 -2
  244. package/dist/web-components-library/{p-1477f263.entry.js → p-62aaee7a.entry.js} +2 -2
  245. package/dist/web-components-library/{p-b63c8e8b.entry.js → p-634b9589.entry.js} +2 -2
  246. package/dist/web-components-library/{p-ca525798.js → p-6a5bf3df.js} +2 -2
  247. package/dist/web-components-library/{p-c2ba8a6c.entry.js → p-6ba6ed17.entry.js} +2 -2
  248. package/dist/web-components-library/{p-3a9405b3.entry.js → p-6efc0b32.entry.js} +2 -2
  249. package/dist/web-components-library/{p-afc9e99e.entry.js → p-76102f08.entry.js} +2 -2
  250. package/dist/web-components-library/{p-ee08aec0.entry.js → p-800bd543.entry.js} +2 -2
  251. package/{www/build/p-956d977d.entry.js → dist/web-components-library/p-892f03fc.entry.js} +2 -2
  252. package/dist/web-components-library/{p-c6ae7dfa.entry.js → p-8ec302f8.entry.js} +2 -2
  253. package/{www/build/p-eb6f59a8.entry.js → dist/web-components-library/p-9425d3d1.entry.js} +2 -2
  254. package/dist/web-components-library/{p-ae8b17a1.entry.js → p-98148b01.entry.js} +2 -2
  255. package/dist/web-components-library/{p-757415e9.entry.js → p-99e3d7f4.entry.js} +2 -2
  256. package/dist/web-components-library/{p-f5efb3fc.entry.js → p-9c6fc3a6.entry.js} +2 -2
  257. package/dist/web-components-library/{p-a3aef2c0.entry.js → p-a1d45a8b.entry.js} +2 -2
  258. package/dist/web-components-library/p-a2217ed8.entry.js +2 -0
  259. package/dist/web-components-library/{p-d0a18050.entry.js → p-a372e8cb.entry.js} +2 -2
  260. package/dist/web-components-library/{p-f36d7044.entry.js → p-a61cb9dc.entry.js} +2 -2
  261. package/dist/web-components-library/{p-a905df88.entry.js → p-a840eb59.entry.js} +2 -2
  262. package/dist/web-components-library/p-a9d05a92.entry.js +2 -0
  263. package/{www/build/p-4cec3345.entry.js → dist/web-components-library/p-b2bb23bb.entry.js} +2 -2
  264. package/{www/build/p-17af7fb2.js → dist/web-components-library/p-b49aeff4.js} +1 -1
  265. package/dist/web-components-library/p-b49aeff4.js.map +1 -0
  266. package/{www/build/p-8c164e0d.entry.js → dist/web-components-library/p-c96b2352.entry.js} +2 -2
  267. package/{www/build/p-8b0c8e6d.entry.js → dist/web-components-library/p-cbc1f955.entry.js} +2 -2
  268. package/dist/web-components-library/{p-30e42fb1.js → p-d67e2f1b.js} +2 -2
  269. package/dist/web-components-library/{p-3cc02ff9.entry.js → p-dc46730d.entry.js} +2 -2
  270. package/{www/build/p-512033d3.entry.js → dist/web-components-library/p-dd350f70.entry.js} +4 -4
  271. package/dist/web-components-library/{p-1174942e.entry.js → p-dd66d76e.entry.js} +2 -2
  272. package/dist/web-components-library/p-e2f36e53.entry.js +2 -0
  273. package/dist/web-components-library/p-e2f36e53.entry.js.map +1 -0
  274. package/dist/web-components-library/{p-c231ed32.entry.js → p-e853ccde.entry.js} +2 -2
  275. package/dist/web-components-library/{p-dc566d6d.entry.js → p-edceccad.entry.js} +2 -2
  276. package/dist/web-components-library/{p-b2313d3c.entry.js → p-ee7185cf.entry.js} +2 -2
  277. package/{www/build/p-914f9d32.entry.js → dist/web-components-library/p-fa9fdeb5.entry.js} +2 -2
  278. package/dist/web-components-library/web-components-library.esm.js +1 -1
  279. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  280. package/package.json +1 -1
  281. package/www/build/index.esm.js +1 -1
  282. package/www/build/{p-a06fbbc0.js → p-02c55ed9.js} +2 -2
  283. package/{dist/web-components-library/p-ac888c48.entry.js → www/build/p-064c29b7.entry.js} +2 -2
  284. package/www/build/{p-8f4a90dc.entry.js → p-0c61db99.entry.js} +2 -2
  285. package/{dist/web-components-library/p-c4b78535.entry.js → www/build/p-10345a6d.entry.js} +2 -2
  286. package/www/build/{p-12900bf7.js → p-171ee634.js} +2 -2
  287. package/www/build/{p-7c69b70a.entry.js → p-173b1867.entry.js} +2 -2
  288. package/www/build/{p-a35c1fab.js → p-2174d968.js} +2 -2
  289. package/www/build/p-22a8071a.entry.js +2 -0
  290. package/www/build/{p-97294823.entry.js.map → p-22a8071a.entry.js.map} +1 -1
  291. package/www/build/{p-afea8173.entry.js → p-22aab9d2.entry.js} +2 -2
  292. package/www/build/{p-817689d5.entry.js → p-23d669a8.entry.js} +2 -2
  293. package/www/build/p-28b41569.entry.js +2 -0
  294. package/www/build/p-2aa75dee.entry.js +2 -0
  295. package/www/build/p-2aa75dee.entry.js.map +1 -0
  296. package/www/build/{p-fb232d07.entry.js → p-2afe6219.entry.js} +2 -2
  297. package/www/build/{p-e3b82454.entry.js → p-2fd165a0.entry.js} +2 -2
  298. package/www/build/p-305d294a.entry.js +2 -0
  299. package/www/build/p-3315c3e1.entry.js +2 -0
  300. package/{dist/web-components-library/p-2fb52cd0.entry.js → www/build/p-333e3cef.entry.js} +2 -2
  301. package/{dist/web-components-library/p-252ef047.entry.js → www/build/p-33c8d043.entry.js} +2 -2
  302. package/www/build/{p-98fdc6b5.entry.js → p-35b5c549.entry.js} +2 -2
  303. package/{dist/web-components-library/p-def1bcc7.entry.js → www/build/p-38ffeac0.entry.js} +2 -2
  304. package/www/build/{p-cebc9451.entry.js → p-40ac080b.entry.js} +2 -2
  305. package/www/build/{p-342b0eb0.entry.js → p-411e98ab.entry.js} +2 -2
  306. package/www/build/{p-4cfe0f87.entry.js → p-440db280.entry.js} +2 -2
  307. package/www/build/{p-57b8bd19.entry.js → p-49f5ad13.entry.js} +2 -2
  308. package/www/build/p-56156e0e.entry.js +2 -0
  309. package/{dist/web-components-library/p-7fbdf8f9.entry.js → www/build/p-59c1d10c.entry.js} +2 -2
  310. package/www/build/{p-0df112c4.entry.js → p-5cca3cf8.entry.js} +2 -2
  311. package/www/build/{p-9047fe2a.entry.js → p-60ea979a.entry.js} +2 -2
  312. package/www/build/{p-1477f263.entry.js → p-62aaee7a.entry.js} +2 -2
  313. package/www/build/{p-23b6a1e1.js → p-62dcf5d1.js} +1 -1
  314. package/www/build/{p-b63c8e8b.entry.js → p-634b9589.entry.js} +2 -2
  315. package/www/build/{p-ca525798.js → p-6a5bf3df.js} +2 -2
  316. package/www/build/{p-c2ba8a6c.entry.js → p-6ba6ed17.entry.js} +2 -2
  317. package/www/build/{p-3a9405b3.entry.js → p-6efc0b32.entry.js} +2 -2
  318. package/www/build/{p-afc9e99e.entry.js → p-76102f08.entry.js} +2 -2
  319. package/www/build/{p-ee08aec0.entry.js → p-800bd543.entry.js} +2 -2
  320. package/{dist/web-components-library/p-956d977d.entry.js → www/build/p-892f03fc.entry.js} +2 -2
  321. package/www/build/{p-c6ae7dfa.entry.js → p-8ec302f8.entry.js} +2 -2
  322. package/{dist/web-components-library/p-eb6f59a8.entry.js → www/build/p-9425d3d1.entry.js} +2 -2
  323. package/www/build/{p-ae8b17a1.entry.js → p-98148b01.entry.js} +2 -2
  324. package/www/build/{p-757415e9.entry.js → p-99e3d7f4.entry.js} +2 -2
  325. package/www/build/{p-f5efb3fc.entry.js → p-9c6fc3a6.entry.js} +2 -2
  326. package/www/build/{p-a3aef2c0.entry.js → p-a1d45a8b.entry.js} +2 -2
  327. package/www/build/p-a2217ed8.entry.js +2 -0
  328. package/www/build/{p-d0a18050.entry.js → p-a372e8cb.entry.js} +2 -2
  329. package/www/build/{p-f36d7044.entry.js → p-a61cb9dc.entry.js} +2 -2
  330. package/www/build/{p-a905df88.entry.js → p-a840eb59.entry.js} +2 -2
  331. package/www/build/p-a9d05a92.entry.js +2 -0
  332. package/{dist/web-components-library/p-4cec3345.entry.js → www/build/p-b2bb23bb.entry.js} +2 -2
  333. package/{dist/web-components-library/p-17af7fb2.js → www/build/p-b49aeff4.js} +1 -1
  334. package/www/build/p-b49aeff4.js.map +1 -0
  335. package/{dist/web-components-library/p-8c164e0d.entry.js → www/build/p-c96b2352.entry.js} +2 -2
  336. package/{dist/web-components-library/p-8b0c8e6d.entry.js → www/build/p-cbc1f955.entry.js} +2 -2
  337. package/www/build/{p-30e42fb1.js → p-d67e2f1b.js} +2 -2
  338. package/www/build/{p-3cc02ff9.entry.js → p-dc46730d.entry.js} +2 -2
  339. package/{dist/web-components-library/p-512033d3.entry.js → www/build/p-dd350f70.entry.js} +4 -4
  340. package/www/build/{p-1174942e.entry.js → p-dd66d76e.entry.js} +2 -2
  341. package/www/build/p-e2f36e53.entry.js +2 -0
  342. package/www/build/p-e2f36e53.entry.js.map +1 -0
  343. package/www/build/{p-c231ed32.entry.js → p-e853ccde.entry.js} +2 -2
  344. package/www/build/{p-dc566d6d.entry.js → p-edceccad.entry.js} +2 -2
  345. package/www/build/{p-b2313d3c.entry.js → p-ee7185cf.entry.js} +2 -2
  346. package/{dist/web-components-library/p-914f9d32.entry.js → www/build/p-fa9fdeb5.entry.js} +2 -2
  347. package/www/build/web-components-library.esm.js +1 -1
  348. package/www/build/web-components-library.esm.js.map +1 -1
  349. package/www/index.html +1 -1
  350. package/dist/cjs/index-97a4c18d.js.map +0 -1
  351. package/dist/esm/index-2a6324f8.js.map +0 -1
  352. package/dist/web-components-library/p-05348da8.entry.js +0 -2
  353. package/dist/web-components-library/p-17af7fb2.js.map +0 -1
  354. package/dist/web-components-library/p-42819df4.entry.js +0 -2
  355. package/dist/web-components-library/p-42819df4.entry.js.map +0 -1
  356. package/dist/web-components-library/p-651250c2.entry.js +0 -2
  357. package/dist/web-components-library/p-76ee5c89.entry.js +0 -2
  358. package/dist/web-components-library/p-7ad751e7.entry.js +0 -2
  359. package/dist/web-components-library/p-92cc912e.entry.js +0 -2
  360. package/dist/web-components-library/p-97294823.entry.js +0 -2
  361. package/dist/web-components-library/p-ae82ba49.entry.js +0 -2
  362. package/dist/web-components-library/p-ae82ba49.entry.js.map +0 -1
  363. package/dist/web-components-library/p-e1687f75.entry.js +0 -2
  364. package/www/build/p-05348da8.entry.js +0 -2
  365. package/www/build/p-17af7fb2.js.map +0 -1
  366. package/www/build/p-42819df4.entry.js +0 -2
  367. package/www/build/p-42819df4.entry.js.map +0 -1
  368. package/www/build/p-651250c2.entry.js +0 -2
  369. package/www/build/p-76ee5c89.entry.js +0 -2
  370. package/www/build/p-7ad751e7.entry.js +0 -2
  371. package/www/build/p-92cc912e.entry.js +0 -2
  372. package/www/build/p-97294823.entry.js +0 -2
  373. package/www/build/p-ae82ba49.entry.js +0 -2
  374. package/www/build/p-ae82ba49.entry.js.map +0 -1
  375. package/www/build/p-e1687f75.entry.js +0 -2
  376. /package/dist/web-components-library/{p-a06fbbc0.js.map → p-02c55ed9.js.map} +0 -0
  377. /package/dist/web-components-library/{p-ac888c48.entry.js.map → p-064c29b7.entry.js.map} +0 -0
  378. /package/dist/web-components-library/{p-8f4a90dc.entry.js.map → p-0c61db99.entry.js.map} +0 -0
  379. /package/dist/web-components-library/{p-c4b78535.entry.js.map → p-10345a6d.entry.js.map} +0 -0
  380. /package/dist/web-components-library/{p-12900bf7.js.map → p-171ee634.js.map} +0 -0
  381. /package/dist/web-components-library/{p-7c69b70a.entry.js.map → p-173b1867.entry.js.map} +0 -0
  382. /package/dist/web-components-library/{p-a35c1fab.js.map → p-2174d968.js.map} +0 -0
  383. /package/dist/web-components-library/{p-afea8173.entry.js.map → p-22aab9d2.entry.js.map} +0 -0
  384. /package/dist/web-components-library/{p-817689d5.entry.js.map → p-23d669a8.entry.js.map} +0 -0
  385. /package/dist/web-components-library/{p-05348da8.entry.js.map → p-28b41569.entry.js.map} +0 -0
  386. /package/dist/web-components-library/{p-fb232d07.entry.js.map → p-2afe6219.entry.js.map} +0 -0
  387. /package/dist/web-components-library/{p-e3b82454.entry.js.map → p-2fd165a0.entry.js.map} +0 -0
  388. /package/dist/web-components-library/{p-7ad751e7.entry.js.map → p-305d294a.entry.js.map} +0 -0
  389. /package/dist/web-components-library/{p-e1687f75.entry.js.map → p-3315c3e1.entry.js.map} +0 -0
  390. /package/dist/web-components-library/{p-2fb52cd0.entry.js.map → p-333e3cef.entry.js.map} +0 -0
  391. /package/dist/web-components-library/{p-252ef047.entry.js.map → p-33c8d043.entry.js.map} +0 -0
  392. /package/dist/web-components-library/{p-98fdc6b5.entry.js.map → p-35b5c549.entry.js.map} +0 -0
  393. /package/dist/web-components-library/{p-def1bcc7.entry.js.map → p-38ffeac0.entry.js.map} +0 -0
  394. /package/dist/web-components-library/{p-cebc9451.entry.js.map → p-40ac080b.entry.js.map} +0 -0
  395. /package/dist/web-components-library/{p-342b0eb0.entry.js.map → p-411e98ab.entry.js.map} +0 -0
  396. /package/dist/web-components-library/{p-4cfe0f87.entry.js.map → p-440db280.entry.js.map} +0 -0
  397. /package/dist/web-components-library/{p-57b8bd19.entry.js.map → p-49f5ad13.entry.js.map} +0 -0
  398. /package/dist/web-components-library/{p-92cc912e.entry.js.map → p-56156e0e.entry.js.map} +0 -0
  399. /package/dist/web-components-library/{p-7fbdf8f9.entry.js.map → p-59c1d10c.entry.js.map} +0 -0
  400. /package/dist/web-components-library/{p-0df112c4.entry.js.map → p-5cca3cf8.entry.js.map} +0 -0
  401. /package/dist/web-components-library/{p-9047fe2a.entry.js.map → p-60ea979a.entry.js.map} +0 -0
  402. /package/dist/web-components-library/{p-1477f263.entry.js.map → p-62aaee7a.entry.js.map} +0 -0
  403. /package/dist/web-components-library/{p-b63c8e8b.entry.js.map → p-634b9589.entry.js.map} +0 -0
  404. /package/dist/web-components-library/{p-ca525798.js.map → p-6a5bf3df.js.map} +0 -0
  405. /package/dist/web-components-library/{p-c2ba8a6c.entry.js.map → p-6ba6ed17.entry.js.map} +0 -0
  406. /package/dist/web-components-library/{p-3a9405b3.entry.js.map → p-6efc0b32.entry.js.map} +0 -0
  407. /package/dist/web-components-library/{p-afc9e99e.entry.js.map → p-76102f08.entry.js.map} +0 -0
  408. /package/dist/web-components-library/{p-ee08aec0.entry.js.map → p-800bd543.entry.js.map} +0 -0
  409. /package/dist/web-components-library/{p-956d977d.entry.js.map → p-892f03fc.entry.js.map} +0 -0
  410. /package/dist/web-components-library/{p-c6ae7dfa.entry.js.map → p-8ec302f8.entry.js.map} +0 -0
  411. /package/dist/web-components-library/{p-eb6f59a8.entry.js.map → p-9425d3d1.entry.js.map} +0 -0
  412. /package/dist/web-components-library/{p-ae8b17a1.entry.js.map → p-98148b01.entry.js.map} +0 -0
  413. /package/dist/web-components-library/{p-757415e9.entry.js.map → p-99e3d7f4.entry.js.map} +0 -0
  414. /package/dist/web-components-library/{p-f5efb3fc.entry.js.map → p-9c6fc3a6.entry.js.map} +0 -0
  415. /package/dist/web-components-library/{p-a3aef2c0.entry.js.map → p-a1d45a8b.entry.js.map} +0 -0
  416. /package/dist/web-components-library/{p-651250c2.entry.js.map → p-a2217ed8.entry.js.map} +0 -0
  417. /package/dist/web-components-library/{p-d0a18050.entry.js.map → p-a372e8cb.entry.js.map} +0 -0
  418. /package/dist/web-components-library/{p-f36d7044.entry.js.map → p-a61cb9dc.entry.js.map} +0 -0
  419. /package/dist/web-components-library/{p-a905df88.entry.js.map → p-a840eb59.entry.js.map} +0 -0
  420. /package/dist/web-components-library/{p-76ee5c89.entry.js.map → p-a9d05a92.entry.js.map} +0 -0
  421. /package/dist/web-components-library/{p-4cec3345.entry.js.map → p-b2bb23bb.entry.js.map} +0 -0
  422. /package/dist/web-components-library/{p-8c164e0d.entry.js.map → p-c96b2352.entry.js.map} +0 -0
  423. /package/dist/web-components-library/{p-8b0c8e6d.entry.js.map → p-cbc1f955.entry.js.map} +0 -0
  424. /package/dist/web-components-library/{p-30e42fb1.js.map → p-d67e2f1b.js.map} +0 -0
  425. /package/dist/web-components-library/{p-3cc02ff9.entry.js.map → p-dc46730d.entry.js.map} +0 -0
  426. /package/dist/web-components-library/{p-512033d3.entry.js.map → p-dd350f70.entry.js.map} +0 -0
  427. /package/dist/web-components-library/{p-1174942e.entry.js.map → p-dd66d76e.entry.js.map} +0 -0
  428. /package/dist/web-components-library/{p-c231ed32.entry.js.map → p-e853ccde.entry.js.map} +0 -0
  429. /package/dist/web-components-library/{p-dc566d6d.entry.js.map → p-edceccad.entry.js.map} +0 -0
  430. /package/dist/web-components-library/{p-b2313d3c.entry.js.map → p-ee7185cf.entry.js.map} +0 -0
  431. /package/dist/web-components-library/{p-914f9d32.entry.js.map → p-fa9fdeb5.entry.js.map} +0 -0
  432. /package/www/build/{p-a06fbbc0.js.map → p-02c55ed9.js.map} +0 -0
  433. /package/www/build/{p-ac888c48.entry.js.map → p-064c29b7.entry.js.map} +0 -0
  434. /package/www/build/{p-8f4a90dc.entry.js.map → p-0c61db99.entry.js.map} +0 -0
  435. /package/www/build/{p-c4b78535.entry.js.map → p-10345a6d.entry.js.map} +0 -0
  436. /package/www/build/{p-12900bf7.js.map → p-171ee634.js.map} +0 -0
  437. /package/www/build/{p-7c69b70a.entry.js.map → p-173b1867.entry.js.map} +0 -0
  438. /package/www/build/{p-a35c1fab.js.map → p-2174d968.js.map} +0 -0
  439. /package/www/build/{p-afea8173.entry.js.map → p-22aab9d2.entry.js.map} +0 -0
  440. /package/www/build/{p-817689d5.entry.js.map → p-23d669a8.entry.js.map} +0 -0
  441. /package/www/build/{p-05348da8.entry.js.map → p-28b41569.entry.js.map} +0 -0
  442. /package/www/build/{p-fb232d07.entry.js.map → p-2afe6219.entry.js.map} +0 -0
  443. /package/www/build/{p-e3b82454.entry.js.map → p-2fd165a0.entry.js.map} +0 -0
  444. /package/www/build/{p-7ad751e7.entry.js.map → p-305d294a.entry.js.map} +0 -0
  445. /package/www/build/{p-e1687f75.entry.js.map → p-3315c3e1.entry.js.map} +0 -0
  446. /package/www/build/{p-2fb52cd0.entry.js.map → p-333e3cef.entry.js.map} +0 -0
  447. /package/www/build/{p-252ef047.entry.js.map → p-33c8d043.entry.js.map} +0 -0
  448. /package/www/build/{p-98fdc6b5.entry.js.map → p-35b5c549.entry.js.map} +0 -0
  449. /package/www/build/{p-def1bcc7.entry.js.map → p-38ffeac0.entry.js.map} +0 -0
  450. /package/www/build/{p-cebc9451.entry.js.map → p-40ac080b.entry.js.map} +0 -0
  451. /package/www/build/{p-342b0eb0.entry.js.map → p-411e98ab.entry.js.map} +0 -0
  452. /package/www/build/{p-4cfe0f87.entry.js.map → p-440db280.entry.js.map} +0 -0
  453. /package/www/build/{p-57b8bd19.entry.js.map → p-49f5ad13.entry.js.map} +0 -0
  454. /package/www/build/{p-92cc912e.entry.js.map → p-56156e0e.entry.js.map} +0 -0
  455. /package/www/build/{p-7fbdf8f9.entry.js.map → p-59c1d10c.entry.js.map} +0 -0
  456. /package/www/build/{p-0df112c4.entry.js.map → p-5cca3cf8.entry.js.map} +0 -0
  457. /package/www/build/{p-9047fe2a.entry.js.map → p-60ea979a.entry.js.map} +0 -0
  458. /package/www/build/{p-1477f263.entry.js.map → p-62aaee7a.entry.js.map} +0 -0
  459. /package/www/build/{p-b63c8e8b.entry.js.map → p-634b9589.entry.js.map} +0 -0
  460. /package/www/build/{p-ca525798.js.map → p-6a5bf3df.js.map} +0 -0
  461. /package/www/build/{p-c2ba8a6c.entry.js.map → p-6ba6ed17.entry.js.map} +0 -0
  462. /package/www/build/{p-3a9405b3.entry.js.map → p-6efc0b32.entry.js.map} +0 -0
  463. /package/www/build/{p-afc9e99e.entry.js.map → p-76102f08.entry.js.map} +0 -0
  464. /package/www/build/{p-ee08aec0.entry.js.map → p-800bd543.entry.js.map} +0 -0
  465. /package/www/build/{p-956d977d.entry.js.map → p-892f03fc.entry.js.map} +0 -0
  466. /package/www/build/{p-c6ae7dfa.entry.js.map → p-8ec302f8.entry.js.map} +0 -0
  467. /package/www/build/{p-eb6f59a8.entry.js.map → p-9425d3d1.entry.js.map} +0 -0
  468. /package/www/build/{p-ae8b17a1.entry.js.map → p-98148b01.entry.js.map} +0 -0
  469. /package/www/build/{p-757415e9.entry.js.map → p-99e3d7f4.entry.js.map} +0 -0
  470. /package/www/build/{p-f5efb3fc.entry.js.map → p-9c6fc3a6.entry.js.map} +0 -0
  471. /package/www/build/{p-a3aef2c0.entry.js.map → p-a1d45a8b.entry.js.map} +0 -0
  472. /package/www/build/{p-651250c2.entry.js.map → p-a2217ed8.entry.js.map} +0 -0
  473. /package/www/build/{p-d0a18050.entry.js.map → p-a372e8cb.entry.js.map} +0 -0
  474. /package/www/build/{p-f36d7044.entry.js.map → p-a61cb9dc.entry.js.map} +0 -0
  475. /package/www/build/{p-a905df88.entry.js.map → p-a840eb59.entry.js.map} +0 -0
  476. /package/www/build/{p-76ee5c89.entry.js.map → p-a9d05a92.entry.js.map} +0 -0
  477. /package/www/build/{p-4cec3345.entry.js.map → p-b2bb23bb.entry.js.map} +0 -0
  478. /package/www/build/{p-8c164e0d.entry.js.map → p-c96b2352.entry.js.map} +0 -0
  479. /package/www/build/{p-8b0c8e6d.entry.js.map → p-cbc1f955.entry.js.map} +0 -0
  480. /package/www/build/{p-30e42fb1.js.map → p-d67e2f1b.js.map} +0 -0
  481. /package/www/build/{p-3cc02ff9.entry.js.map → p-dc46730d.entry.js.map} +0 -0
  482. /package/www/build/{p-512033d3.entry.js.map → p-dd350f70.entry.js.map} +0 -0
  483. /package/www/build/{p-1174942e.entry.js.map → p-dd66d76e.entry.js.map} +0 -0
  484. /package/www/build/{p-c231ed32.entry.js.map → p-e853ccde.entry.js.map} +0 -0
  485. /package/www/build/{p-dc566d6d.entry.js.map → p-edceccad.entry.js.map} +0 -0
  486. /package/www/build/{p-b2313d3c.entry.js.map → p-ee7185cf.entry.js.map} +0 -0
  487. /package/www/build/{p-914f9d32.entry.js.map → p-fa9fdeb5.entry.js.map} +0 -0
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c8ceadeb.js';
2
- import { P as PopoverPosition, g as KeyboardCode } from './index-2a6324f8.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-c8ceadeb.js';
2
+ import { P as PopoverPosition, g as KeyboardCode } from './index-cb76b648.js';
3
3
 
4
- const stylesCss = ":host{position:absolute;display:none;min-width:calc(var(--space-unit) * 8);max-width:100%;min-height:calc(var(--space-unit) * 4);max-height:100%;align-items:center;justify-content:center;padding:var(--z-popover-padding, 0);background:var(--z-popover-theme--surface, var(--color-surface01));border-radius:var(--border-radius-small);color:var(--z-popover-theme--text, var(--color-default-text));fill:currentcolor;filter:var(--z-popover-shadow-filter, drop-shadow(0 1px 2px var(--shadow-color-base)));font-family:var(--font-family-sans);text-align:center}:host([open]:not([current-position])){visibility:hidden}:host([open][current-position]),:host([open=\"true\"][current-position]){display:flex}:host([center][current-position=\"top\"]),:host([center][current-position=\"bottom\"]){transform:translateX(-50%)}:host([center][current-position=\"right\"]),:host([center][current-position=\"left\"]){transform:translateY(-50%)}:host([current-position^=\"top\"]){margin:0 0 var(--space-unit)}:host([current-position^=\"bottom\"]){margin:var(--space-unit) 0 0}:host([current-position^=\"left\"]){margin:0 var(--space-unit) 0 0}:host([current-position^=\"right\"]){margin:0 0 0 var(--space-unit)}:host([current-position])::before{--arrow-size:6px;--arrow-edge-offset:calc(100% - var(--space-unit) - (var(--arrow-size) / 2));--arrow-center-x-offset:calc(50% - (var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - (var(--arrow-size) / 2));position:absolute;display:block;width:var(--arrow-size);height:var(--arrow-size);background:var(--z-popover-theme--surface, var(--color-surface01));content:\"\";transform:rotate(45deg)}:host([show-arrow=\"false\"])::before,:host(:not([show-arrow]))::before{display:none}:host([current-position^=\"top\"])::before{top:var(--arrow-center-y-offset)}:host([current-position^=\"bottom\"])::before{bottom:var(--arrow-center-y-offset)}:host([current-position=\"top\"])::before,:host([current-position=\"bottom\"])::before{right:var(--arrow-edge-offset)}:host([current-position=\"right\"])::before,:host([current-position=\"left\"])::before{bottom:var(--arrow-edge-offset)}:host([current-position=\"right\"])::before{right:var(--arrow-center-y-offset)}:host([current-position=\"left\"])::before{left:var(--arrow-center-y-offset)}:host([current-position=\"top_right\"])::before,:host([current-position=\"bottom_right\"])::before{right:var(--arrow-edge-offset)}:host([current-position=\"top_left\"])::before,:host([current-position=\"bottom_left\"])::before{left:var(--arrow-edge-offset)}:host([current-position=\"right_top\"])::before,:host([current-position=\"left_top\"])::before{top:var(--arrow-edge-offset)}:host([current-position=\"right_top\"])::before,:host([current-position=\"right_bottom\"])::before{right:var(--arrow-center-y-offset)}:host([current-position=\"left_top\"])::before,:host([current-position=\"left_bottom\"])::before{left:var(--arrow-center-y-offset)}:host([current-position=\"right_bottom\"])::before,:host([current-position=\"left_bottom\"])::before{bottom:var(--arrow-edge-offset)}:host([center][current-position=\"top\"])::before,:host([center][current-position=\"bottom\"])::before{right:auto;left:var(--arrow-center-x-offset)}:host([center][current-position=\"right\"])::before,:host([center][current-position=\"left\"])::before{top:var(--arrow-center-x-offset);bottom:auto}::slotted(*){overflow:auto;flex:1 auto}";
4
+ const stylesCss = ":host{--z-popover-theme--surface:var(--color-surface01);--z-popover-theme--text:var(--color-default-text);--z-popover-padding:0;--z-popover-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base));position:relative;display:none;min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);align-items:center;justify-content:center;padding:var(--z-popover-padding);background:var(--z-popover-theme--surface);border-radius:var(--border-radius-small);color:var(--z-popover-theme--text);fill:currentcolor;filter:var(--z-popover-shadow-filter);font-family:var(--font-family-sans);text-align:center}:host([open][current-position]),:host([open=\"true\"][current-position]){display:flex}:host([center][current-position=\"top\"]),:host([center][current-position=\"bottom\"]){transform:translateX(-50%)}:host([center][current-position=\"right\"]),:host([center][current-position=\"left\"]){transform:translateY(-50%)}:host([current-position^=\"top\"]){margin:0 0 var(--space-unit)}:host([current-position^=\"bottom\"]){margin:var(--space-unit) 0 0}:host([current-position^=\"left\"]){margin:0 var(--space-unit) 0 0}:host([current-position^=\"right\"]){margin:0 0 0 var(--space-unit)}:host([current-position])::before{--arrow-size:6px;--arrow-edge-offset:calc(100% - var(--space-unit) - (var(--arrow-size) / 2));--arrow-center-x-offset:calc(50% - (var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - (var(--arrow-size) / 2));position:absolute;display:block;width:var(--arrow-size);height:var(--arrow-size);background:var(--z-popover-theme--surface);content:\"\";transform:rotate(45deg)}:host([show-arrow=\"false\"])::before,:host(:not([show-arrow]))::before{display:none}:host([current-position^=\"top\"])::before{top:var(--arrow-center-y-offset)}:host([current-position^=\"bottom\"])::before{bottom:var(--arrow-center-y-offset)}:host([current-position=\"top\"])::before,:host([current-position=\"bottom\"])::before{right:var(--arrow-edge-offset)}:host([current-position=\"right\"])::before,:host([current-position=\"left\"])::before{bottom:var(--arrow-edge-offset)}:host([current-position=\"right\"])::before{right:var(--arrow-center-y-offset)}:host([current-position=\"left\"])::before{left:var(--arrow-center-y-offset)}:host([current-position=\"top_right\"])::before,:host([current-position=\"bottom_right\"])::before{right:var(--arrow-edge-offset)}:host([current-position=\"top_left\"])::before,:host([current-position=\"bottom_left\"])::before{left:var(--arrow-edge-offset)}:host([current-position=\"right_top\"])::before,:host([current-position=\"left_top\"])::before{top:var(--arrow-edge-offset)}:host([current-position=\"right_top\"])::before,:host([current-position=\"right_bottom\"])::before{right:var(--arrow-center-y-offset)}:host([current-position=\"left_top\"])::before,:host([current-position=\"left_bottom\"])::before{left:var(--arrow-center-y-offset)}:host([current-position=\"right_bottom\"])::before,:host([current-position=\"left_bottom\"])::before{bottom:var(--arrow-edge-offset)}:host([center][current-position=\"top\"])::before,:host([center][current-position=\"bottom\"])::before{right:auto;left:var(--arrow-center-x-offset)}:host([center][current-position=\"right\"])::before,:host([center][current-position=\"left\"])::before{top:var(--arrow-center-x-offset);bottom:auto}::slotted(*){overflow:auto;flex:1 auto}";
5
5
  const ZPopoverStyle0 = stylesCss;
6
6
 
7
7
  const DOCUMENT_ELEMENT = document.documentElement;
@@ -19,18 +19,12 @@ function getParentElement(element) {
19
19
  function findScrollableParent(element) {
20
20
  let parent = getParentElement(element);
21
21
  while (parent && parent !== DOCUMENT_ELEMENT) {
22
- const style = window.getComputedStyle(parent);
23
- const { overflow, overflowX, overflowY } = style;
24
- // Check for hidden overflow first (early return)
22
+ const { overflow, overflowX, overflowY } = window.getComputedStyle(parent);
25
23
  if (overflow === "hidden" || overflowY === "hidden" || overflowX === "hidden") {
26
24
  return parent;
27
25
  }
28
- // Only check scrollable if overflow is not visible
29
- const isOverflowNotVisible = overflow !== "visible";
30
- const isOverflowYNotVisible = overflowY !== "visible";
31
- const isOverflowXNotVisible = overflowX !== "visible";
32
- if ((parent.scrollHeight > parent.clientHeight && isOverflowNotVisible && isOverflowYNotVisible) ||
33
- (parent.scrollWidth > parent.clientWidth && isOverflowNotVisible && isOverflowXNotVisible)) {
26
+ if ((parent.scrollHeight > parent.clientHeight && overflow !== "visible" && overflowY !== "visible") ||
27
+ (parent.scrollWidth > parent.clientWidth && overflow !== "visible" && overflowX !== "visible")) {
34
28
  return parent;
35
29
  }
36
30
  parent = getParentElement(parent);
@@ -42,28 +36,30 @@ function findScrollableParent(element) {
42
36
  * It includes matrix transformations.
43
37
  * @param element The target element.
44
38
  * @param targetParentOffset The relative offset parent.
39
+ * @return A client rect object.
45
40
  */
46
41
  function computeOffset(element, targetParentOffset) {
47
42
  const rect = element.getBoundingClientRect();
48
- const { width, height } = rect;
43
+ const width = rect.width;
44
+ const height = rect.height;
49
45
  let top = 0;
50
46
  let left = 0;
51
47
  let offsetParent = element;
52
- while (offsetParent && offsetParent !== targetParentOffset) {
48
+ while (offsetParent && offsetParent != targetParentOffset) {
53
49
  left += offsetParent.offsetLeft;
54
- // document.body sometimes has offsetTop == 0 but still has an offset because of children margins!
50
+ // document.body sometimes has offsetTop == 0 but still has an
51
+ // offset because of children margins!
55
52
  if (offsetParent === document.body) {
56
53
  top += offsetParent.getBoundingClientRect().top + window.scrollY;
57
54
  }
58
55
  else {
59
56
  top += offsetParent.offsetTop;
60
57
  }
61
- // Handle CSS transforms only when DOMMatrix is available
62
58
  if (window.DOMMatrix) {
63
59
  const style = window.getComputedStyle(offsetParent);
64
- const { transform } = style;
65
- if (transform && transform !== "none") {
66
- const domMatrix = new DOMMatrix(transform);
60
+ const transform = style.transform || style.webkitTransform;
61
+ const domMatrix = new DOMMatrix(transform);
62
+ if (domMatrix) {
67
63
  left += domMatrix.m41;
68
64
  if (offsetParent !== document.body) {
69
65
  top += domMatrix.m42;
@@ -85,8 +81,8 @@ function computeOffset(element, targetParentOffset) {
85
81
  parentWidth = offsetParent.offsetWidth;
86
82
  parentHeight = offsetParent.offsetHeight;
87
83
  }
88
- const right = parentWidth - left - width;
89
- const bottom = parentHeight - top - height;
84
+ const right = parentWidth - left - rect.width;
85
+ const bottom = parentHeight - top - rect.height;
90
86
  return { top, right, bottom, left, width, height };
91
87
  }
92
88
  const ZPopover = class {
@@ -94,8 +90,7 @@ const ZPopover = class {
94
90
  registerInstance(this, hostRef);
95
91
  this.positionChange = createEvent(this, "positionChange", 7);
96
92
  this.openChange = createEvent(this, "openChange", 7);
97
- this.spaceTolerance = 3; // 3px tolerance for space calculations
98
- this.position = PopoverPosition.TOP;
93
+ this.position = PopoverPosition.AUTO;
99
94
  this.open = false;
100
95
  this.bindTo = undefined;
101
96
  this.showArrow = false;
@@ -118,18 +113,10 @@ const ZPopover = class {
118
113
  if (!this.closable || !this.open) {
119
114
  return;
120
115
  }
121
- const eventPath = e.composedPath();
122
- if (!eventPath.includes(this.host)) {
116
+ if (!e.composedPath().includes(this.host)) {
123
117
  const target = e.target;
124
- let triggerElemClicked = false;
125
- if (typeof this.bindTo === "string") {
126
- triggerElemClicked = !!target.closest(this.bindTo);
127
- }
128
- else if (this.bindTo) {
129
- triggerElemClicked = this.bindTo.contains(target);
130
- }
118
+ const triggerElemClicked = this.bindTo instanceof HTMLElement ? this.bindTo.contains(target) : target.closest(this.bindTo);
131
119
  if (triggerElemClicked) {
132
- // stop propagation if the click was on the trigger element to prevent close and reopen glitches
133
120
  e.stopPropagation();
134
121
  }
135
122
  this.open = false;
@@ -137,13 +124,11 @@ const ZPopover = class {
137
124
  }
138
125
  }
139
126
  validatePosition(newValue) {
140
- if (!Object.values(PopoverPosition).includes(newValue) || newValue === PopoverPosition.AUTO) {
141
- newValue = PopoverPosition.TOP;
127
+ if (newValue && !Object.values(PopoverPosition).includes(newValue)) {
128
+ this.position = PopoverPosition.AUTO;
142
129
  }
143
- this.position = newValue;
144
- this.currentPosition = newValue;
130
+ this.currentPosition = this.position;
145
131
  this.positionChange.emit({ position: this.currentPosition });
146
- this.setPosition();
147
132
  }
148
133
  /**
149
134
  * Setup popover behaviors on opening.
@@ -157,289 +142,165 @@ const ZPopover = class {
157
142
  this.animationFrameRequestId = requestAnimationFrame(setPosition);
158
143
  }
159
144
  };
160
- // call `setPosition` after a tick to ensure the DOM is ready and sizes are available
161
- setTimeout(() => {
162
- setPosition();
163
- }, 0);
164
- }
165
- this.openChange.emit({ open: this.open });
166
- }
167
- /**
168
- * Helper functions for space calculation
169
- */
170
- hasCenteredHorizontalSpace(availableLeft, availableRight, hostWidth, boundWidth, offsetModifier) {
171
- const requiredSpace = (hostWidth - boundWidth) * (1 - offsetModifier);
172
- return (availableLeft >= requiredSpace - this.spaceTolerance && availableRight >= requiredSpace - this.spaceTolerance);
173
- }
174
- hasCenteredVerticalSpace(availableTop, availableBottom, hostHeight, boundHeight, offsetModifier) {
175
- const requiredSpace = (hostHeight - boundHeight) * (1 - offsetModifier);
176
- return (availableTop >= requiredSpace - this.spaceTolerance && availableBottom >= requiredSpace - this.spaceTolerance);
177
- }
178
- hasOffsetSpace(availableSpace, hostSize, boundSize, offsetModifier) {
179
- return availableSpace >= hostSize - boundSize * (1 - offsetModifier) - this.spaceTolerance;
180
- }
181
- /**
182
- * Given a desired position and available space around the bound element, returns the best position
183
- * that fits the popover, trying all positions if needed.
184
- * Takes into account offsetModifier for centering.
185
- * @param desiredPosition The desired position of the popover.
186
- * @param availableSpace The available space around the bound element.
187
- * @param boundElemSizes The sizes of the bound element.
188
- * @param offsetModifier The modifier to apply to the offset for centering.
189
- */
190
- getOptimalPopoverPosition(desiredPosition, availableSpace, boundElemSizes, offsetModifier) {
191
- const hostWidth = this.host.offsetWidth;
192
- const hostHeight = this.host.offsetHeight;
193
- // Check if the desired position has enough space
194
- const fits = (pos) => {
195
- switch (pos) {
196
- case PopoverPosition.TOP:
197
- return (availableSpace.top >= hostHeight &&
198
- this.hasCenteredHorizontalSpace(availableSpace.left, availableSpace.right, hostWidth, boundElemSizes.width, offsetModifier));
199
- case PopoverPosition.TOP_RIGHT:
200
- return (availableSpace.top >= hostHeight &&
201
- this.hasOffsetSpace(availableSpace.right, hostWidth, boundElemSizes.width, offsetModifier));
202
- case PopoverPosition.TOP_LEFT:
203
- return (availableSpace.top >= hostHeight &&
204
- this.hasOffsetSpace(availableSpace.left, hostWidth, boundElemSizes.width, offsetModifier));
205
- case PopoverPosition.RIGHT:
206
- return (availableSpace.right >= hostWidth &&
207
- this.hasCenteredVerticalSpace(availableSpace.top, availableSpace.bottom, hostHeight, boundElemSizes.height, offsetModifier));
208
- case PopoverPosition.RIGHT_BOTTOM:
209
- return (availableSpace.right >= hostWidth &&
210
- this.hasOffsetSpace(availableSpace.bottom, hostHeight, boundElemSizes.height, offsetModifier));
211
- case PopoverPosition.RIGHT_TOP:
212
- return (availableSpace.right >= hostWidth &&
213
- this.hasOffsetSpace(availableSpace.top, hostHeight, boundElemSizes.height, offsetModifier));
214
- case PopoverPosition.BOTTOM:
215
- return (availableSpace.bottom >= hostHeight &&
216
- this.hasCenteredHorizontalSpace(availableSpace.left, availableSpace.right, hostWidth, boundElemSizes.width, offsetModifier));
217
- case PopoverPosition.BOTTOM_LEFT:
218
- return (availableSpace.bottom >= hostHeight &&
219
- this.hasOffsetSpace(availableSpace.left, hostWidth, boundElemSizes.width, offsetModifier));
220
- case PopoverPosition.BOTTOM_RIGHT:
221
- return (availableSpace.bottom >= hostHeight &&
222
- this.hasOffsetSpace(availableSpace.right, hostWidth, boundElemSizes.width, offsetModifier));
223
- case PopoverPosition.LEFT:
224
- return (availableSpace.left >= hostWidth &&
225
- this.hasCenteredVerticalSpace(availableSpace.top, availableSpace.bottom, hostHeight, boundElemSizes.height, offsetModifier));
226
- case PopoverPosition.LEFT_TOP:
227
- return (availableSpace.left >= hostWidth &&
228
- this.hasOffsetSpace(availableSpace.top, hostHeight, boundElemSizes.height, offsetModifier));
229
- case PopoverPosition.LEFT_BOTTOM:
230
- return (availableSpace.left >= hostWidth &&
231
- this.hasOffsetSpace(availableSpace.bottom, hostHeight, boundElemSizes.height, offsetModifier));
232
- default:
233
- return false;
234
- }
235
- };
236
- // Check desired position first
237
- if (fits(desiredPosition)) {
238
- return desiredPosition;
239
- }
240
- // Find position index and create rotation starting from next position
241
- const positions = ZPopover.positionOrder;
242
- const startIndex = positions.indexOf(desiredPosition);
243
- if (startIndex === -1) {
244
- return desiredPosition; // fallback if position not found
245
- }
246
- // Try all other positions starting from the next one
247
- for (let i = 1; i < positions.length; i++) {
248
- const posIndex = (startIndex + i) % positions.length;
249
- const pos = positions[posIndex];
250
- if (fits(pos)) {
251
- return pos;
252
- }
253
- }
254
- // If no position fits, find the best fallback based on available space
255
- return this.findBestFallbackPosition(availableSpace);
256
- }
257
- /**
258
- * Find the best fallback position based on available space when no position fits perfectly
259
- */
260
- findBestFallbackPosition(availableSpace) {
261
- // Determine the directions with the most space
262
- const bestHorizontalDirection = availableSpace.right >= availableSpace.left ? PopoverPosition.RIGHT : PopoverPosition.LEFT;
263
- const bestVerticalDirection = availableSpace.bottom >= availableSpace.top ? PopoverPosition.BOTTOM : PopoverPosition.TOP;
264
- // Choose the main direction based on which has more space
265
- const maxHorizontalSpace = Math.max(availableSpace.right, availableSpace.left);
266
- const maxVerticalSpace = Math.max(availableSpace.bottom, availableSpace.top);
267
- const mainDirection = maxVerticalSpace >= maxHorizontalSpace ? bestVerticalDirection : bestHorizontalDirection;
268
- // Check if secondary direction is necessary
269
- // Only add secondary direction if the difference between min and max in that direction is at least double
270
- let needsSecondaryDirection = false;
271
- if (mainDirection === bestVerticalDirection) {
272
- // Main direction is vertical, check horizontal space difference
273
- const minHorizontalSpace = Math.min(availableSpace.right, availableSpace.left);
274
- needsSecondaryDirection = maxHorizontalSpace >= minHorizontalSpace * 2;
275
- }
276
- else {
277
- // Main direction is horizontal, check vertical space difference
278
- const minVerticalSpace = Math.min(availableSpace.bottom, availableSpace.top);
279
- needsSecondaryDirection = maxVerticalSpace >= minVerticalSpace * 2;
145
+ setPosition();
280
146
  }
281
- if (!needsSecondaryDirection) {
282
- return mainDirection;
147
+ else if (this.host.hasAttribute("current-position")) {
148
+ this.host.removeAttribute("current-position");
149
+ this.currentPosition = undefined;
283
150
  }
284
- const secondaryDirection = mainDirection === bestVerticalDirection ? bestHorizontalDirection : bestVerticalDirection;
285
- // Create a combined position (e.g., "bottom_right")
286
- return `${mainDirection}_${secondaryDirection}`;
287
- }
288
- /**
289
- * Calculate available space around the bound element
290
- */
291
- calculateAvailableSpace(boundElementRect, scrollContainer, scrollingBoundingRect) {
292
- const top = boundElementRect.top - scrollContainer.scrollTop;
293
- const bottom = scrollingBoundingRect.height - (boundElementRect.top + boundElementRect.height) + scrollContainer.scrollTop;
294
- const left = boundElementRect.left - scrollContainer.scrollLeft;
295
- const right = scrollingBoundingRect.width - (boundElementRect.left + boundElementRect.width) + scrollContainer.scrollLeft;
296
- const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
297
- const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
298
- return {
299
- top: Math.min(top, top + scrollingBoundingRect.top),
300
- bottom: Math.min(bottom, bottom - overflowBottom),
301
- left: Math.min(left, left + scrollingBoundingRect.left),
302
- right: Math.min(right, right - overflowRight),
303
- };
304
- }
305
- /**
306
- * Calculate relative offsets for positioning
307
- */
308
- calculateRelativeOffsets(boundElementRect, relativeBoundingRect) {
309
- return {
310
- top: boundElementRect.top - relativeBoundingRect.top,
311
- right: boundElementRect.right - relativeBoundingRect.right,
312
- bottom: boundElementRect.bottom - relativeBoundingRect.bottom,
313
- left: boundElementRect.left - relativeBoundingRect.left,
314
- };
151
+ this.openChange.emit({ open: this.open });
315
152
  }
316
- /**
317
- * Apply positioning styles based on position
318
- */
319
- applyPositionStyles(position, style, offsets, boundElementSizes, availableSpace, offsetModifier, arrowModifier) {
320
- const distanceFromBound = 8; // 8px is the distance of the popover from the bound element
321
- // Reset all positioning properties
322
- style.top = "auto";
323
- style.right = "auto";
324
- style.bottom = "auto";
325
- style.left = "auto";
326
- style.maxWidth = "";
327
- style.maxHeight = "";
328
- switch (position) {
329
- case PopoverPosition.TOP:
330
- case PopoverPosition.TOP_RIGHT:
331
- style.bottom = `${offsets.bottom + boundElementSizes.height}px`;
332
- style.left = `${offsets.left + boundElementSizes.width * offsetModifier - (position === PopoverPosition.TOP_RIGHT ? arrowModifier : 0)}px`;
333
- style.maxHeight = `${availableSpace.top - distanceFromBound}px`;
334
- if (position === PopoverPosition.TOP_RIGHT) {
335
- style.maxWidth = `${availableSpace.right + boundElementSizes.width * offsetModifier}px`;
336
- }
337
- break;
338
- case PopoverPosition.TOP_LEFT:
339
- style.right = `${offsets.right + boundElementSizes.width * offsetModifier - arrowModifier}px`;
340
- style.bottom = `${offsets.bottom + boundElementSizes.height}px`;
341
- style.maxWidth = `${availableSpace.left}px`;
342
- style.maxHeight = `${availableSpace.top - distanceFromBound}px`;
343
- break;
344
- case PopoverPosition.BOTTOM:
345
- case PopoverPosition.BOTTOM_RIGHT:
346
- style.top = `${offsets.top + boundElementSizes.height}px`;
347
- style.left = `${offsets.left + boundElementSizes.width * offsetModifier - (position === PopoverPosition.BOTTOM_RIGHT ? arrowModifier : 0)}px`;
348
- style.maxHeight = `${availableSpace.bottom - distanceFromBound}px`;
349
- if (position === PopoverPosition.BOTTOM_RIGHT) {
350
- style.maxWidth = `${availableSpace.right + boundElementSizes.width * offsetModifier}px`;
351
- }
352
- break;
353
- case PopoverPosition.BOTTOM_LEFT:
354
- style.top = `${offsets.top + boundElementSizes.height}px`;
355
- style.right = `${offsets.right + boundElementSizes.width * offsetModifier - arrowModifier}px`;
356
- style.maxWidth = `${availableSpace.left}px`;
357
- style.maxHeight = `${availableSpace.bottom - distanceFromBound}px`;
358
- break;
359
- case PopoverPosition.RIGHT:
360
- case PopoverPosition.RIGHT_BOTTOM:
361
- style.top = `${offsets.top + boundElementSizes.height * offsetModifier - (position === PopoverPosition.RIGHT_BOTTOM ? arrowModifier : 0)}px`;
362
- style.left = `${offsets.left + boundElementSizes.width}px`;
363
- style.maxWidth = `${availableSpace.right - distanceFromBound}px`;
364
- if (position === PopoverPosition.RIGHT) {
365
- style.maxHeight = `${Math.min(availableSpace.top + availableSpace.bottom + boundElementSizes.height, window.innerHeight - 20)}px`;
366
- }
367
- else {
368
- style.maxHeight = `${availableSpace.bottom + boundElementSizes.height * offsetModifier}px`;
369
- }
370
- break;
371
- case PopoverPosition.RIGHT_TOP:
372
- style.bottom = `${offsets.bottom + boundElementSizes.height * offsetModifier - arrowModifier}px`;
373
- style.left = `${offsets.left + boundElementSizes.width}px`;
374
- style.maxWidth = `${availableSpace.right - distanceFromBound}px`;
375
- if (position === PopoverPosition.RIGHT_TOP) {
376
- style.maxHeight = `${availableSpace.top + boundElementSizes.height * offsetModifier}px`;
377
- }
378
- break;
379
- case PopoverPosition.LEFT:
380
- case PopoverPosition.LEFT_BOTTOM:
381
- style.top = `${offsets.top + boundElementSizes.height * offsetModifier - (position === PopoverPosition.LEFT_BOTTOM ? arrowModifier : 0)}px`;
382
- style.right = `${offsets.right + boundElementSizes.width}px`;
383
- style.maxWidth = `${availableSpace.left - distanceFromBound}px`;
384
- if (position === PopoverPosition.LEFT_BOTTOM) {
385
- style.maxHeight = `${availableSpace.bottom + boundElementSizes.height * offsetModifier}px`;
386
- }
387
- break;
388
- case PopoverPosition.LEFT_TOP:
389
- style.right = `${offsets.right + boundElementSizes.width}px`;
390
- style.bottom = `${offsets.bottom + boundElementSizes.height * offsetModifier - arrowModifier}px`;
391
- style.maxWidth = `${availableSpace.left - distanceFromBound}px`;
392
- if (position === PopoverPosition.LEFT_TOP) {
393
- style.maxHeight = `${availableSpace.top + boundElementSizes.height * offsetModifier}px`;
394
- }
395
- break;
396
- }
153
+ disconnectedCallback() {
154
+ cancelAnimationFrame(this.animationFrameRequestId);
397
155
  }
398
156
  /**
399
157
  * Set the position of the popover.
400
158
  */
401
159
  setPosition() {
402
- let boundElement;
160
+ let element;
403
161
  if (typeof this.bindTo === "string") {
404
- boundElement = this.host.ownerDocument.querySelector(this.bindTo);
162
+ element = this.host.ownerDocument.querySelector(this.bindTo);
405
163
  }
406
164
  else if (this.bindTo) {
407
- boundElement = this.bindTo;
165
+ element = this.bindTo;
408
166
  }
409
167
  else {
410
- boundElement = this.host.parentElement;
168
+ element = this.host.parentElement;
411
169
  }
412
- if (!boundElement) {
170
+ if (!element) {
413
171
  return;
414
172
  }
415
- const scrollContainer = findScrollableParent(boundElement);
173
+ const scrollContainer = findScrollableParent(element);
416
174
  const scrollingBoundingRect = scrollContainer.getBoundingClientRect();
417
175
  const offsetContainer = this.host.offsetParent;
418
176
  const relativeBoundingRect = offsetContainer
419
177
  ? computeOffset(offsetContainer, scrollContainer)
420
178
  : { top: 0, right: 0, bottom: 0, left: 0 };
421
- const boundElementRect = computeOffset(boundElement, scrollContainer);
422
- const availableSpace = this.calculateAvailableSpace(boundElementRect, scrollContainer, scrollingBoundingRect);
423
- const offsets = this.calculateRelativeOffsets(boundElementRect, relativeBoundingRect);
424
- const offsetModifier = this.center ? 0.5 : 0;
425
- const arrowModifier = this.showArrow && this.center ? 8 : 0; // 8px is the distance of the arrow center from the edge of the popover
426
- const position = this.getOptimalPopoverPosition(this.position, availableSpace, { width: boundElementRect.width, height: boundElementRect.height }, offsetModifier);
179
+ const boundingRect = computeOffset(element, scrollContainer);
180
+ const top = boundingRect.top - scrollContainer.scrollTop;
181
+ const bottom = scrollingBoundingRect.height - (boundingRect.top + boundingRect.height) + scrollContainer.scrollTop;
182
+ const left = boundingRect.left - scrollContainer.scrollLeft;
183
+ const right = scrollingBoundingRect.width - (boundingRect.left + boundingRect.width) + scrollContainer.scrollLeft;
184
+ const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
185
+ const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
186
+ const availableTop = Math.min(top, top + scrollingBoundingRect.top);
187
+ const availableBottom = Math.min(bottom, bottom - overflowBottom);
188
+ const availableLeft = Math.min(left, left + scrollingBoundingRect.left);
189
+ const availableRight = Math.min(right, right - overflowRight);
190
+ const availableHeight = availableTop + availableBottom + boundingRect.height;
191
+ const availableWidth = availableLeft + availableRight + boundingRect.width;
192
+ let position = this.currentPosition;
193
+ const positions = [];
194
+ if (this.position === PopoverPosition.AUTO) {
195
+ /**
196
+ * The `AUTO` position tries to place the popover in the 'safest' area,
197
+ * where there's more space available.
198
+ */
199
+ if (availableLeft / availableWidth > 0.6) {
200
+ positions.push(PopoverPosition.LEFT);
201
+ }
202
+ else if (availableLeft / availableWidth < 0.4) {
203
+ positions.push(PopoverPosition.RIGHT);
204
+ }
205
+ if (availableTop / availableHeight > 0.9) {
206
+ positions.unshift(PopoverPosition.TOP);
207
+ }
208
+ else if (availableTop / availableHeight > 0.6) {
209
+ positions.push(PopoverPosition.TOP);
210
+ }
211
+ else if (availableTop / availableHeight < 0.1) {
212
+ positions.unshift(PopoverPosition.BOTTOM);
213
+ }
214
+ else {
215
+ positions.push(PopoverPosition.BOTTOM);
216
+ }
217
+ position = positions.join("_");
218
+ }
427
219
  const style = this.host.style;
428
- this.applyPositionStyles(position, style, offsets, boundElementRect, availableSpace, offsetModifier, arrowModifier);
429
- this.currentPosition = position;
220
+ style.position = "absolute";
221
+ const offsetTop = boundingRect.top - relativeBoundingRect.top;
222
+ const offsetRight = boundingRect.right - relativeBoundingRect.right;
223
+ const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
224
+ const offsetLeft = boundingRect.left - relativeBoundingRect.left;
225
+ const offsetModifier = this.center ? 0.5 : 0;
226
+ const sizeModifier = this.center ? 0.5 : 0;
227
+ if (position === PopoverPosition.TOP || position === PopoverPosition.TOP_RIGHT) {
228
+ style.top = "auto";
229
+ style.right = "auto";
230
+ style.bottom = `${offsetBottom + boundingRect.height}px`;
231
+ style.left = `${offsetLeft + boundingRect.width * offsetModifier}px`;
232
+ style.maxHeight = `${availableTop}px`;
233
+ if (position === PopoverPosition.TOP_RIGHT) {
234
+ style.maxWidth = `${availableRight + boundingRect.width * sizeModifier}px`;
235
+ }
236
+ }
237
+ else if (position === PopoverPosition.TOP_LEFT) {
238
+ style.top = "auto";
239
+ style.right = `${offsetRight + boundingRect.width * offsetModifier}px`;
240
+ style.bottom = `${offsetBottom + boundingRect.height}px`;
241
+ style.left = "auto";
242
+ style.maxWidth = `${availableLeft}px`;
243
+ style.maxHeight = `${availableTop}px`;
244
+ }
245
+ else if (position === PopoverPosition.BOTTOM || position === PopoverPosition.BOTTOM_RIGHT) {
246
+ style.top = `${offsetTop + boundingRect.height}px`;
247
+ style.right = "auto";
248
+ style.bottom = "auto";
249
+ style.left = `${offsetLeft + boundingRect.width * offsetModifier}px`;
250
+ style.maxHeight = `${availableBottom}px`;
251
+ if (position === PopoverPosition.BOTTOM_RIGHT) {
252
+ style.maxWidth = `${availableRight + boundingRect.width * sizeModifier}px`;
253
+ }
254
+ }
255
+ else if (position === PopoverPosition.BOTTOM_LEFT) {
256
+ style.top = `${offsetTop + boundingRect.height}px`;
257
+ style.right = `${offsetRight + boundingRect.width * offsetModifier}px`;
258
+ style.bottom = "auto";
259
+ style.left = "auto";
260
+ style.maxWidth = `${availableLeft}px`;
261
+ style.maxHeight = `${availableBottom}px`;
262
+ }
263
+ else if (position === PopoverPosition.RIGHT || position === PopoverPosition.RIGHT_BOTTOM) {
264
+ style.top = `${offsetTop + boundingRect.height * offsetModifier}px`;
265
+ style.right = "auto";
266
+ style.bottom = "auto";
267
+ style.left = `${offsetLeft + boundingRect.width}px`;
268
+ style.maxWidth = `${availableRight}px`;
269
+ style.maxHeight = `${availableBottom + boundingRect.height * sizeModifier}px`;
270
+ }
271
+ else if (position === PopoverPosition.RIGHT_TOP) {
272
+ style.top = "auto";
273
+ style.right = "auto";
274
+ style.bottom = `${offsetBottom + boundingRect.height * offsetModifier}px`;
275
+ style.left = `${offsetLeft + boundingRect.width}px`;
276
+ style.maxWidth = `${availableRight}px`;
277
+ style.maxHeight = `${availableTop + boundingRect.height * sizeModifier}px`;
278
+ }
279
+ else if (position === PopoverPosition.LEFT || position === PopoverPosition.LEFT_BOTTOM) {
280
+ style.top = `${offsetTop + boundingRect.height * offsetModifier}px`;
281
+ style.right = `${offsetRight + boundingRect.width}px`;
282
+ style.bottom = "auto";
283
+ style.left = "auto";
284
+ style.maxWidth = `${availableLeft}px`;
285
+ style.maxHeight = `${availableBottom + boundingRect.height * sizeModifier}px`;
286
+ }
287
+ else if (position === PopoverPosition.LEFT_TOP) {
288
+ style.top = "auto";
289
+ style.right = `${offsetRight + boundingRect.width}px`;
290
+ style.bottom = `${offsetBottom + boundingRect.height * offsetModifier}px`;
291
+ style.left = "auto";
292
+ style.maxWidth = `${availableLeft}px`;
293
+ style.maxHeight = `${availableTop + boundingRect.height * sizeModifier}px`;
294
+ }
295
+ this.currentPosition = position || this.position;
296
+ this.host.setAttribute("current-position", this.currentPosition);
430
297
  }
431
298
  componentWillLoad() {
432
299
  this.validatePosition(this.position);
433
300
  this.onOpen();
434
301
  }
435
- componentDidLoad() {
436
- this.setPosition();
437
- }
438
- disconnectedCallback() {
439
- cancelAnimationFrame(this.animationFrameRequestId);
440
- }
441
302
  render() {
442
- return (h(Host, { key: '38c84d7959587dfef4ef66a4b76be519fe1e0f82', "current-position": this.currentPosition }, h("slot", { key: 'ccd1f8a455c7755e38b5aac231adcb9efeebee17' })));
303
+ return h("slot", { key: 'f7f6f81dc2698b5d560503a984dcd47e377de0bc' });
443
304
  }
444
305
  get host() { return getElement(this); }
445
306
  static get watchers() { return {
@@ -447,21 +308,6 @@ const ZPopover = class {
447
308
  "open": ["onOpen"]
448
309
  }; }
449
310
  };
450
- // Clockwise order of positions.
451
- ZPopover.positionOrder = [
452
- PopoverPosition.TOP_RIGHT,
453
- PopoverPosition.TOP,
454
- PopoverPosition.TOP_LEFT,
455
- PopoverPosition.RIGHT_BOTTOM,
456
- PopoverPosition.RIGHT,
457
- PopoverPosition.RIGHT_TOP,
458
- PopoverPosition.BOTTOM_LEFT,
459
- PopoverPosition.BOTTOM,
460
- PopoverPosition.BOTTOM_RIGHT,
461
- PopoverPosition.LEFT_TOP,
462
- PopoverPosition.LEFT,
463
- PopoverPosition.LEFT_BOTTOM,
464
- ];
465
311
  ZPopover.style = ZPopoverStyle0;
466
312
 
467
313
  export { ZPopover as z_popover };