@zanichelli/delta_share 2.0.13 → 2.0.15

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 (367) hide show
  1. package/dist/wc/cjs/delta_share.cjs.js +1 -1
  2. package/dist/wc/cjs/icons-9d7fe21e.js +751 -0
  3. package/dist/wc/cjs/index-1112cdb1.js +311 -0
  4. package/dist/wc/cjs/{license-activation_13.cjs.entry.js → license-activation_11.cjs.entry.js} +193 -143
  5. package/dist/wc/cjs/loader.cjs.js +1 -1
  6. package/dist/wc/cjs/utils-2bfaab77.js +2706 -0
  7. package/dist/wc/cjs/{utils-8a10bba9.js → utils-3ac19501.js} +9 -10
  8. package/dist/wc/cjs/z-alert.cjs.entry.js +1 -1
  9. package/dist/wc/cjs/z-anchor-navigation.cjs.entry.js +53 -0
  10. package/dist/wc/cjs/z-app-header.cjs.entry.js +21 -19
  11. package/dist/wc/cjs/z-app-switcher.cjs.entry.js +3 -3
  12. package/dist/wc/cjs/z-aria-alert.cjs.entry.js +3 -2
  13. package/dist/wc/cjs/z-avatar.cjs.entry.js +8 -7
  14. package/dist/wc/cjs/z-body.cjs.entry.js +18 -0
  15. package/dist/wc/cjs/z-button-sort.cjs.entry.js +4 -5
  16. package/dist/wc/cjs/z-card.cjs.entry.js +15 -18
  17. package/dist/wc/cjs/z-carousel.cjs.entry.js +126 -4
  18. package/dist/wc/cjs/z-chip.cjs.entry.js +6 -6
  19. package/dist/wc/cjs/z-combobox.cjs.entry.js +66 -37
  20. package/dist/wc/cjs/z-contextual-menu.cjs.entry.js +13 -7
  21. package/dist/wc/cjs/z-cover-hero.cjs.entry.js +40 -0
  22. package/dist/wc/cjs/z-date-picker.cjs.entry.js +104 -2731
  23. package/dist/wc/cjs/z-divider.cjs.entry.js +3 -3
  24. package/dist/wc/cjs/z-dragdrop-area.cjs.entry.js +37 -0
  25. package/dist/wc/cjs/z-file-upload.cjs.entry.js +50 -37
  26. package/dist/wc/cjs/z-file.cjs.entry.js +11 -10
  27. package/dist/wc/cjs/z-ghost-loading.cjs.entry.js +2 -2
  28. package/dist/wc/cjs/z-heading.cjs.entry.js +18 -0
  29. package/dist/wc/cjs/z-info-reveal.cjs.entry.js +65 -0
  30. package/dist/wc/cjs/z-list_3.cjs.entry.js +261 -0
  31. package/dist/wc/cjs/z-logo.cjs.entry.js +2 -4
  32. package/dist/wc/cjs/z-menu-section.cjs.entry.js +2 -2
  33. package/dist/wc/cjs/z-menu.cjs.entry.js +9 -12
  34. package/dist/wc/cjs/z-messages-pocket.cjs.entry.js +6 -6
  35. package/dist/wc/cjs/z-myz-card-alert.cjs.entry.js +7 -7
  36. package/dist/wc/cjs/z-myz-card-dictionary.cjs.entry.js +3 -3
  37. package/dist/wc/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  38. package/dist/wc/cjs/z-myz-card-footer.cjs.entry.js +10 -9
  39. package/dist/wc/cjs/z-myz-card-icon.cjs.entry.js +3 -1
  40. package/dist/wc/cjs/z-myz-card-info.cjs.entry.js +26 -16
  41. package/dist/wc/cjs/z-myz-card-list.cjs.entry.js +3 -2
  42. package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +17 -13
  43. package/dist/wc/cjs/z-myz-list-item.cjs.entry.js +3 -3
  44. package/dist/wc/cjs/z-myz-list.cjs.entry.js +35 -0
  45. package/dist/wc/cjs/z-navigation-tab-link.cjs.entry.js +10 -10
  46. package/dist/wc/cjs/z-navigation-tab.cjs.entry.js +11 -11
  47. package/dist/wc/cjs/z-navigation-tabs.cjs.entry.js +20 -20
  48. package/dist/wc/cjs/z-notification.cjs.entry.js +2 -7
  49. package/dist/wc/cjs/z-offcanvas.cjs.entry.js +21 -14
  50. package/dist/wc/cjs/z-otp.cjs.entry.js +17 -17
  51. package/dist/wc/cjs/z-pagination.cjs.entry.js +14 -14
  52. package/dist/wc/cjs/z-panel-elem.cjs.entry.js +3 -3
  53. package/dist/wc/cjs/z-pocket-message.cjs.entry.js +2 -2
  54. package/dist/wc/cjs/z-pocket_3.cjs.entry.js +18 -18
  55. package/dist/wc/cjs/z-popover.cjs.entry.js +293 -98
  56. package/dist/wc/cjs/z-range-picker.cjs.entry.js +343 -0
  57. package/dist/wc/cjs/z-searchbar.cjs.entry.js +235 -0
  58. package/dist/wc/cjs/z-section-title.cjs.entry.js +4 -13
  59. package/dist/wc/cjs/z-select.cjs.entry.js +325 -0
  60. package/dist/wc/cjs/z-skip-to-content.cjs.entry.js +18 -20
  61. package/dist/wc/cjs/z-slideshow.cjs.entry.js +28 -11
  62. package/dist/wc/cjs/z-stepper-item.cjs.entry.js +1 -1
  63. package/dist/wc/cjs/z-stepper.cjs.entry.js +2 -2
  64. package/dist/wc/cjs/z-table-cell.cjs.entry.js +10 -10
  65. package/dist/wc/cjs/z-table-empty-box.cjs.entry.js +5 -6
  66. package/dist/wc/cjs/z-table-expanded-row.cjs.entry.js +1 -1
  67. package/dist/wc/cjs/z-table-header-row.cjs.entry.js +3 -3
  68. package/dist/wc/cjs/z-table-header.cjs.entry.js +20 -26
  69. package/dist/wc/cjs/z-table-row.cjs.entry.js +9 -9
  70. package/dist/wc/cjs/z-table-sticky-footer.cjs.entry.js +2 -2
  71. package/dist/wc/cjs/z-table.cjs.entry.js +7 -9
  72. package/dist/wc/cjs/z-tag.cjs.entry.js +2 -2
  73. package/dist/wc/cjs/z-toast-notification-list.cjs.entry.js +16 -16
  74. package/dist/wc/cjs/z-toast-notification.cjs.entry.js +37 -40
  75. package/dist/wc/cjs/z-toggle-button.cjs.entry.js +7 -9
  76. package/dist/wc/cjs/z-toggle-switch.cjs.entry.js +18 -16
  77. package/dist/wc/cjs/z-tooltip.cjs.entry.js +8 -251
  78. package/dist/wc/cjs/z-typography.cjs.entry.js +30 -0
  79. package/dist/wc/cjs/z-visually-hidden.cjs.entry.js +1 -1
  80. package/dist/wc/collection/collection-manifest.json +5 -20
  81. package/dist/wc/collection/components/license-activation-form/license-activation-form.css +2 -1
  82. package/dist/wc/collection/components/license-activation-form/license-activation-form.js +11 -6
  83. package/dist/wc/collection/components/license-activation-modal/license-activation-modal.js +4 -13
  84. package/dist/wc/custom-elements/index.js +3401 -3332
  85. package/dist/wc/delta_share/delta_share.esm.js +1 -1
  86. package/dist/wc/delta_share/{p-cfc122de.entry.js → p-0434c900.entry.js} +1 -1
  87. package/dist/wc/delta_share/p-063881e2.entry.js +1 -0
  88. package/dist/wc/delta_share/p-0667e9cd.entry.js +1 -0
  89. package/dist/wc/delta_share/p-0aa553ea.entry.js +1 -0
  90. package/dist/wc/delta_share/p-0bb97b61.js +1 -0
  91. package/dist/wc/delta_share/p-0bff6d57.entry.js +1 -0
  92. package/dist/wc/delta_share/p-1009b417.entry.js +1 -0
  93. package/dist/wc/delta_share/p-1c2d7c30.entry.js +1 -0
  94. package/dist/wc/delta_share/p-1d2cb6f9.entry.js +1 -0
  95. package/dist/wc/delta_share/p-23905d08.entry.js +1 -0
  96. package/dist/wc/delta_share/p-29310a24.entry.js +1 -0
  97. package/dist/wc/delta_share/p-2f289949.entry.js +1 -0
  98. package/dist/wc/delta_share/p-3cf0c6a5.entry.js +1 -0
  99. package/dist/wc/delta_share/p-3fa29874.entry.js +1 -0
  100. package/dist/wc/delta_share/p-42dd4f36.entry.js +1 -0
  101. package/dist/wc/delta_share/p-42e9c740.entry.js +1 -0
  102. package/dist/wc/delta_share/p-45dcece4.entry.js +1 -0
  103. package/dist/wc/delta_share/p-4eb940ca.entry.js +1 -0
  104. package/dist/wc/delta_share/p-500ff0dd.entry.js +1 -0
  105. package/dist/wc/delta_share/p-5530ca81.entry.js +1 -0
  106. package/dist/wc/delta_share/p-578f4d61.entry.js +1 -0
  107. package/dist/wc/delta_share/p-57f2b8d8.entry.js +1 -0
  108. package/dist/wc/delta_share/p-5e503d5f.entry.js +1 -0
  109. package/dist/wc/delta_share/{p-43ae8e0a.entry.js → p-61264c72.entry.js} +1 -1
  110. package/dist/wc/delta_share/p-64decd7d.entry.js +1 -0
  111. package/dist/wc/delta_share/p-65be6de6.entry.js +1 -0
  112. package/dist/wc/delta_share/p-6c54d53f.entry.js +1 -0
  113. package/dist/wc/delta_share/p-6cb8def6.entry.js +1 -0
  114. package/dist/wc/delta_share/p-6d853df0.entry.js +1 -0
  115. package/dist/wc/delta_share/{p-6a39042b.entry.js → p-702dd7b4.entry.js} +1 -1
  116. package/dist/wc/delta_share/p-74b71f61.entry.js +1 -0
  117. package/dist/wc/delta_share/p-7546c464.entry.js +1 -0
  118. package/dist/wc/delta_share/p-78d71789.js +1 -0
  119. package/dist/wc/delta_share/{p-91a4ef35.js → p-7ae0c21f.js} +1 -1
  120. package/dist/wc/delta_share/p-81ddcb87.entry.js +1 -0
  121. package/dist/wc/delta_share/p-829539a5.entry.js +1 -0
  122. package/dist/wc/delta_share/p-8710e686.entry.js +1 -0
  123. package/dist/wc/delta_share/p-8794c0c7.entry.js +1 -0
  124. package/dist/wc/delta_share/p-8825d8e4.entry.js +1 -0
  125. package/dist/wc/delta_share/p-8876b438.entry.js +16 -0
  126. package/dist/wc/delta_share/p-8cc7c2c7.entry.js +1 -0
  127. package/dist/wc/delta_share/{p-06543221.entry.js → p-8d532866.entry.js} +1 -1
  128. package/dist/wc/delta_share/{p-cccef23b.entry.js → p-8d91a5b7.entry.js} +1 -1
  129. package/dist/wc/delta_share/p-90fdd23f.entry.js +1 -0
  130. package/dist/wc/delta_share/p-925fc6c3.entry.js +1 -0
  131. package/dist/wc/delta_share/p-950aa417.entry.js +1 -0
  132. package/dist/wc/delta_share/p-963999a8.entry.js +1 -0
  133. package/dist/wc/delta_share/p-963f64a8.entry.js +1 -0
  134. package/dist/wc/delta_share/p-99ffd017.entry.js +1 -0
  135. package/dist/wc/delta_share/{p-94df01a9.entry.js → p-9ad5616e.entry.js} +1 -1
  136. package/dist/wc/delta_share/p-9e5596cd.entry.js +1 -0
  137. package/dist/wc/delta_share/p-a2b564ef.entry.js +1 -0
  138. package/dist/wc/delta_share/{p-06b89fb4.entry.js → p-a64544de.entry.js} +1 -1
  139. package/dist/wc/delta_share/p-a6b403f9.entry.js +1 -0
  140. package/dist/wc/delta_share/p-a77930ad.entry.js +3 -0
  141. package/dist/wc/delta_share/{p-e7932e20.entry.js → p-a815651c.entry.js} +1 -1
  142. package/dist/wc/delta_share/p-afb5bfe5.entry.js +1 -0
  143. package/dist/wc/delta_share/p-b16fd965.entry.js +1 -0
  144. package/dist/wc/delta_share/p-b38b27f2.entry.js +1 -0
  145. package/dist/wc/delta_share/{p-dec6ab35.entry.js → p-bc10cf1a.entry.js} +1 -1
  146. package/dist/wc/delta_share/p-bcb29c7a.entry.js +1 -0
  147. package/dist/wc/delta_share/p-be7f8da0.entry.js +1 -0
  148. package/dist/wc/delta_share/p-c229c90e.entry.js +1 -0
  149. package/dist/wc/delta_share/p-c31b160e.entry.js +1 -0
  150. package/dist/wc/delta_share/p-c436e1af.entry.js +1 -0
  151. package/dist/wc/delta_share/p-c51ebb01.entry.js +1 -0
  152. package/dist/wc/delta_share/p-c885d25c.entry.js +1 -0
  153. package/dist/wc/delta_share/p-c9df8e5d.entry.js +1 -0
  154. package/dist/wc/delta_share/p-cb16715b.entry.js +1 -0
  155. package/dist/wc/delta_share/p-cf58d833.js +1 -0
  156. package/dist/wc/delta_share/p-d586adfc.entry.js +1 -0
  157. package/dist/wc/delta_share/{p-91af6142.entry.js → p-d69c3b08.entry.js} +1 -1
  158. package/dist/wc/delta_share/p-d8e80ee8.entry.js +1 -0
  159. package/dist/wc/delta_share/p-ddab353c.entry.js +1 -0
  160. package/dist/wc/delta_share/p-ea6c67f2.entry.js +1 -0
  161. package/dist/wc/delta_share/p-ee0a8f1f.entry.js +1 -0
  162. package/dist/wc/delta_share/p-fc49c455.entry.js +1 -0
  163. package/dist/wc/esm/delta_share.js +1 -1
  164. package/dist/wc/esm/icons-7a34b033.js +749 -0
  165. package/dist/wc/esm/index-4f1e2705.js +311 -0
  166. package/dist/wc/esm/{license-activation_13.entry.js → license-activation_11.entry.js} +194 -142
  167. package/dist/wc/esm/loader.js +1 -1
  168. package/dist/wc/esm/{utils-417652d9.js → utils-5a24a17b.js} +10 -11
  169. package/dist/wc/esm/utils-711517a4.js +2700 -0
  170. package/dist/wc/esm/z-alert.entry.js +1 -1
  171. package/dist/wc/esm/z-anchor-navigation.entry.js +49 -0
  172. package/dist/wc/esm/z-app-header.entry.js +21 -19
  173. package/dist/wc/esm/z-app-switcher.entry.js +3 -3
  174. package/dist/wc/esm/z-aria-alert.entry.js +3 -2
  175. package/dist/wc/esm/z-avatar.entry.js +8 -7
  176. package/dist/wc/esm/z-body.entry.js +14 -0
  177. package/dist/wc/esm/z-button-sort.entry.js +4 -5
  178. package/dist/wc/esm/z-card.entry.js +16 -19
  179. package/dist/wc/esm/z-carousel.entry.js +127 -5
  180. package/dist/wc/esm/z-chip.entry.js +6 -6
  181. package/dist/wc/esm/z-combobox.entry.js +66 -37
  182. package/dist/wc/esm/z-contextual-menu.entry.js +13 -7
  183. package/dist/wc/esm/z-cover-hero.entry.js +36 -0
  184. package/dist/wc/esm/z-date-picker.entry.js +103 -2730
  185. package/dist/wc/esm/z-divider.entry.js +3 -3
  186. package/dist/wc/esm/z-dragdrop-area.entry.js +33 -0
  187. package/dist/wc/esm/z-file-upload.entry.js +51 -38
  188. package/dist/wc/esm/z-file.entry.js +11 -10
  189. package/dist/wc/esm/z-ghost-loading.entry.js +2 -2
  190. package/dist/wc/esm/z-heading.entry.js +14 -0
  191. package/dist/wc/esm/z-info-reveal.entry.js +61 -0
  192. package/dist/wc/esm/z-list_3.entry.js +255 -0
  193. package/dist/wc/esm/z-logo.entry.js +2 -4
  194. package/dist/wc/esm/z-menu-section.entry.js +2 -2
  195. package/dist/wc/esm/z-menu.entry.js +10 -13
  196. package/dist/wc/esm/z-messages-pocket.entry.js +6 -6
  197. package/dist/wc/esm/z-myz-card-alert.entry.js +7 -7
  198. package/dist/wc/esm/z-myz-card-dictionary.entry.js +3 -3
  199. package/dist/wc/esm/z-myz-card-footer-sections.entry.js +1 -1
  200. package/dist/wc/esm/z-myz-card-footer.entry.js +10 -9
  201. package/dist/wc/esm/z-myz-card-icon.entry.js +3 -1
  202. package/dist/wc/esm/z-myz-card-info.entry.js +26 -16
  203. package/dist/wc/esm/z-myz-card-list.entry.js +3 -2
  204. package/dist/wc/esm/z-myz-card_4.entry.js +17 -13
  205. package/dist/wc/esm/z-myz-list-item.entry.js +3 -3
  206. package/dist/wc/esm/z-myz-list.entry.js +31 -0
  207. package/dist/wc/esm/z-navigation-tab-link.entry.js +10 -10
  208. package/dist/wc/esm/z-navigation-tab.entry.js +11 -11
  209. package/dist/wc/esm/z-navigation-tabs.entry.js +20 -20
  210. package/dist/wc/esm/z-notification.entry.js +3 -8
  211. package/dist/wc/esm/z-offcanvas.entry.js +22 -15
  212. package/dist/wc/esm/z-otp.entry.js +17 -17
  213. package/dist/wc/esm/z-pagination.entry.js +15 -15
  214. package/dist/wc/esm/z-panel-elem.entry.js +3 -3
  215. package/dist/wc/esm/z-pocket-message.entry.js +2 -2
  216. package/dist/wc/esm/z-pocket_3.entry.js +18 -18
  217. package/dist/wc/esm/z-popover.entry.js +294 -99
  218. package/dist/wc/esm/z-range-picker.entry.js +339 -0
  219. package/dist/wc/esm/z-searchbar.entry.js +231 -0
  220. package/dist/wc/esm/z-section-title.entry.js +5 -14
  221. package/dist/wc/esm/z-select.entry.js +321 -0
  222. package/dist/wc/esm/z-skip-to-content.entry.js +18 -20
  223. package/dist/wc/esm/z-slideshow.entry.js +28 -11
  224. package/dist/wc/esm/z-stepper-item.entry.js +1 -1
  225. package/dist/wc/esm/z-stepper.entry.js +2 -2
  226. package/dist/wc/esm/z-table-cell.entry.js +10 -10
  227. package/dist/wc/esm/z-table-empty-box.entry.js +5 -6
  228. package/dist/wc/esm/z-table-expanded-row.entry.js +1 -1
  229. package/dist/wc/esm/z-table-header-row.entry.js +3 -3
  230. package/dist/wc/esm/z-table-header.entry.js +20 -26
  231. package/dist/wc/esm/z-table-row.entry.js +9 -9
  232. package/dist/wc/esm/z-table-sticky-footer.entry.js +2 -2
  233. package/dist/wc/esm/z-table.entry.js +7 -9
  234. package/dist/wc/esm/z-tag.entry.js +2 -2
  235. package/dist/wc/esm/z-toast-notification-list.entry.js +17 -17
  236. package/dist/wc/esm/z-toast-notification.entry.js +37 -40
  237. package/dist/wc/esm/z-toggle-button.entry.js +7 -9
  238. package/dist/wc/esm/z-toggle-switch.entry.js +19 -17
  239. package/dist/wc/esm/z-tooltip.entry.js +9 -252
  240. package/dist/wc/esm/z-typography.entry.js +26 -0
  241. package/dist/wc/esm/z-visually-hidden.entry.js +1 -1
  242. package/dist/wc/types/components/license-activation-form/license-activation-form.d.ts +2 -2
  243. package/dist/wc/types/components/license-activation-modal/license-activation-modal.d.ts +2 -3
  244. package/package.json +1 -1
  245. package/dist/wc/cjs/icons-2aca6c75.js +0 -513
  246. package/dist/wc/cjs/index-1fda0714.js +0 -60
  247. package/dist/wc/cjs/index-9c6fd1db.js +0 -315
  248. package/dist/wc/cjs/z-app-topbar.cjs.entry.js +0 -41
  249. package/dist/wc/cjs/z-button-deprecated.cjs.entry.js +0 -38
  250. package/dist/wc/cjs/z-button-filter.cjs.entry.js +0 -49
  251. package/dist/wc/cjs/z-candybar.cjs.entry.js +0 -19
  252. package/dist/wc/cjs/z-chip-deprecated.cjs.entry.js +0 -24
  253. package/dist/wc/cjs/z-cookiebar.cjs.entry.js +0 -42
  254. package/dist/wc/cjs/z-dragdrop-area_2.cjs.entry.js +0 -48
  255. package/dist/wc/cjs/z-footer-link_3.cjs.entry.js +0 -49
  256. package/dist/wc/cjs/z-footer.cjs.entry.js +0 -107
  257. package/dist/wc/cjs/z-icon-package.cjs.entry.js +0 -23
  258. package/dist/wc/cjs/z-input-deprecated.cjs.entry.js +0 -271
  259. package/dist/wc/cjs/z-input-label_2.cjs.entry.js +0 -272
  260. package/dist/wc/cjs/z-list-group.cjs.entry.js +0 -54
  261. package/dist/wc/cjs/z-list_2.cjs.entry.js +0 -179
  262. package/dist/wc/cjs/z-menu-dropdown_2.cjs.entry.js +0 -89
  263. package/dist/wc/cjs/z-modal-login.cjs.entry.js +0 -82
  264. package/dist/wc/cjs/z-myz-topbar.cjs.entry.js +0 -194
  265. package/dist/wc/cjs/z-pagination-bar.cjs.entry.js +0 -128
  266. package/dist/wc/cjs/z-pagination-page.cjs.entry.js +0 -25
  267. package/dist/wc/cjs/z-status-tag.cjs.entry.js +0 -29
  268. package/dist/wc/cjs/z-user-dropdown.cjs.entry.js +0 -95
  269. package/dist/wc/delta_share/p-0b0179c7.js +0 -1
  270. package/dist/wc/delta_share/p-103f926c.entry.js +0 -1
  271. package/dist/wc/delta_share/p-11b446d7.entry.js +0 -1
  272. package/dist/wc/delta_share/p-13093633.entry.js +0 -1
  273. package/dist/wc/delta_share/p-20c14e4e.entry.js +0 -1
  274. package/dist/wc/delta_share/p-243df9e5.entry.js +0 -1
  275. package/dist/wc/delta_share/p-244accd2.entry.js +0 -1
  276. package/dist/wc/delta_share/p-261611b1.js +0 -1
  277. package/dist/wc/delta_share/p-286363e2.js +0 -7
  278. package/dist/wc/delta_share/p-29729c73.entry.js +0 -1
  279. package/dist/wc/delta_share/p-29cb5018.entry.js +0 -1
  280. package/dist/wc/delta_share/p-29d111de.entry.js +0 -1
  281. package/dist/wc/delta_share/p-2b05751b.entry.js +0 -1
  282. package/dist/wc/delta_share/p-32975e01.entry.js +0 -1
  283. package/dist/wc/delta_share/p-32d34db1.entry.js +0 -1
  284. package/dist/wc/delta_share/p-3341f25e.entry.js +0 -1
  285. package/dist/wc/delta_share/p-33fb12fc.entry.js +0 -1
  286. package/dist/wc/delta_share/p-36955fc5.entry.js +0 -1
  287. package/dist/wc/delta_share/p-39440988.entry.js +0 -1
  288. package/dist/wc/delta_share/p-3bb7f110.entry.js +0 -1
  289. package/dist/wc/delta_share/p-3f61bc0d.entry.js +0 -1
  290. package/dist/wc/delta_share/p-422f29e8.entry.js +0 -1
  291. package/dist/wc/delta_share/p-44eba966.entry.js +0 -1
  292. package/dist/wc/delta_share/p-464dc49d.entry.js +0 -1
  293. package/dist/wc/delta_share/p-5374191c.entry.js +0 -16
  294. package/dist/wc/delta_share/p-5559856c.entry.js +0 -1
  295. package/dist/wc/delta_share/p-55ecb7aa.entry.js +0 -1
  296. package/dist/wc/delta_share/p-5af0e3cd.entry.js +0 -1
  297. package/dist/wc/delta_share/p-5b320481.entry.js +0 -1
  298. package/dist/wc/delta_share/p-5d085d01.entry.js +0 -1
  299. package/dist/wc/delta_share/p-5e9898dd.entry.js +0 -1
  300. package/dist/wc/delta_share/p-6422731e.entry.js +0 -1
  301. package/dist/wc/delta_share/p-64ffaf7b.entry.js +0 -1
  302. package/dist/wc/delta_share/p-6613eeee.entry.js +0 -1
  303. package/dist/wc/delta_share/p-6a9fb59c.entry.js +0 -1
  304. package/dist/wc/delta_share/p-6f7064dc.entry.js +0 -1
  305. package/dist/wc/delta_share/p-767a8d6e.entry.js +0 -1
  306. package/dist/wc/delta_share/p-76cfb0be.entry.js +0 -1
  307. package/dist/wc/delta_share/p-7f71c41e.entry.js +0 -1
  308. package/dist/wc/delta_share/p-8b6617d8.entry.js +0 -1
  309. package/dist/wc/delta_share/p-8fb4a4ea.entry.js +0 -1
  310. package/dist/wc/delta_share/p-94b8f342.entry.js +0 -1
  311. package/dist/wc/delta_share/p-9656b290.entry.js +0 -1
  312. package/dist/wc/delta_share/p-97e4d621.entry.js +0 -1
  313. package/dist/wc/delta_share/p-98853ba5.entry.js +0 -1
  314. package/dist/wc/delta_share/p-9c147330.entry.js +0 -1
  315. package/dist/wc/delta_share/p-9d35fb61.entry.js +0 -1
  316. package/dist/wc/delta_share/p-a0663266.entry.js +0 -1
  317. package/dist/wc/delta_share/p-a823768b.entry.js +0 -1
  318. package/dist/wc/delta_share/p-b1b05625.entry.js +0 -1
  319. package/dist/wc/delta_share/p-b1c1f030.entry.js +0 -1
  320. package/dist/wc/delta_share/p-bb38e604.entry.js +0 -1
  321. package/dist/wc/delta_share/p-bcb49d1a.entry.js +0 -1
  322. package/dist/wc/delta_share/p-c2dde3b3.entry.js +0 -1
  323. package/dist/wc/delta_share/p-c750a121.entry.js +0 -3
  324. package/dist/wc/delta_share/p-cd42e0b5.entry.js +0 -1
  325. package/dist/wc/delta_share/p-d282ce22.entry.js +0 -1
  326. package/dist/wc/delta_share/p-d610565d.entry.js +0 -1
  327. package/dist/wc/delta_share/p-da0b941f.entry.js +0 -1
  328. package/dist/wc/delta_share/p-da8144e5.entry.js +0 -1
  329. package/dist/wc/delta_share/p-dafefe1f.entry.js +0 -1
  330. package/dist/wc/delta_share/p-dc148f92.entry.js +0 -1
  331. package/dist/wc/delta_share/p-dd50dd54.entry.js +0 -1
  332. package/dist/wc/delta_share/p-de117646.entry.js +0 -1
  333. package/dist/wc/delta_share/p-e37c7b62.entry.js +0 -1
  334. package/dist/wc/delta_share/p-e9412ef0.entry.js +0 -1
  335. package/dist/wc/delta_share/p-ea6c7be0.entry.js +0 -1
  336. package/dist/wc/delta_share/p-ebb9a3f9.entry.js +0 -1
  337. package/dist/wc/delta_share/p-ee76ecea.entry.js +0 -1
  338. package/dist/wc/delta_share/p-f2323f2a.entry.js +0 -1
  339. package/dist/wc/delta_share/p-f441efc3.entry.js +0 -1
  340. package/dist/wc/delta_share/p-f531a563.entry.js +0 -1
  341. package/dist/wc/delta_share/p-fa3d96ab.entry.js +0 -1
  342. package/dist/wc/delta_share/p-fd83d815.entry.js +0 -1
  343. package/dist/wc/delta_share/p-ff2508eb.entry.js +0 -1
  344. package/dist/wc/esm/icons-74713b55.js +0 -511
  345. package/dist/wc/esm/index-654849a7.js +0 -315
  346. package/dist/wc/esm/index-abb47b30.js +0 -58
  347. package/dist/wc/esm/z-app-topbar.entry.js +0 -37
  348. package/dist/wc/esm/z-button-deprecated.entry.js +0 -34
  349. package/dist/wc/esm/z-button-filter.entry.js +0 -45
  350. package/dist/wc/esm/z-candybar.entry.js +0 -15
  351. package/dist/wc/esm/z-chip-deprecated.entry.js +0 -20
  352. package/dist/wc/esm/z-cookiebar.entry.js +0 -38
  353. package/dist/wc/esm/z-dragdrop-area_2.entry.js +0 -43
  354. package/dist/wc/esm/z-footer-link_3.entry.js +0 -43
  355. package/dist/wc/esm/z-footer.entry.js +0 -103
  356. package/dist/wc/esm/z-icon-package.entry.js +0 -19
  357. package/dist/wc/esm/z-input-deprecated.entry.js +0 -267
  358. package/dist/wc/esm/z-input-label_2.entry.js +0 -267
  359. package/dist/wc/esm/z-list-group.entry.js +0 -50
  360. package/dist/wc/esm/z-list_2.entry.js +0 -174
  361. package/dist/wc/esm/z-menu-dropdown_2.entry.js +0 -84
  362. package/dist/wc/esm/z-modal-login.entry.js +0 -78
  363. package/dist/wc/esm/z-myz-topbar.entry.js +0 -190
  364. package/dist/wc/esm/z-pagination-bar.entry.js +0 -124
  365. package/dist/wc/esm/z-pagination-page.entry.js +0 -21
  366. package/dist/wc/esm/z-status-tag.entry.js +0 -25
  367. package/dist/wc/esm/z-user-dropdown.entry.js +0 -91
@@ -3,129 +3,324 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-9ca7d5e5.js');
6
- const index$2 = require('./index-1fda0714.js');
7
- const index$1 = require('./index-9c6fd1db.js');
8
- const utils = require('./utils-8a10bba9.js');
9
- require('./_commonjsHelpers-537d719a.js');
10
- require('./breakpoints-a55736d0.js');
6
+ const index$1 = require('./index-1112cdb1.js');
11
7
 
12
- const stylesCss = ".sc-z-popover-h{font-family:var(--dashboard-font);font-weight:var(--font-rg);position:relative;display:inline-block;--shadow-arrow-color:rgba(66, 69, 72, 0.2);--shadow-arrow-below-color:rgba(66, 69, 72, 0.1)}.popover-content-container.sc-z-popover{box-sizing:border-box;visibility:hidden;position:absolute;min-width:64px;min-height:32px;z-index:999}.popover-content-container.visible.sc-z-popover{visibility:visible}.popover-content-container.border-radius-none.sc-z-popover{border-radius:0}.popover-content-container.border-radius-small.sc-z-popover{border-radius:var(--border-radius-small)}.popover-content-container.border-radius-medium.sc-z-popover{border-radius:var(--border-radius)}.popover-content-container.shadow-1.sc-z-popover{box-shadow:var(--shadow-1)}.popover-content-container.shadow-2.sc-z-popover{box-shadow:var(--shadow-2)}.popover-content-container.shadow-3.sc-z-popover{box-shadow:var(--shadow-3)}.popover-content-container.shadow-4.sc-z-popover{box-shadow:var(--shadow-4)}.popover-content-container.shadow-6.sc-z-popover{box-shadow:var(--shadow-6)}.popover-content-container.shadow-8.sc-z-popover{box-shadow:var(--shadow-8)}.popover-content-container.shadow-12.sc-z-popover{box-shadow:var(--shadow-12)}.popover-content-container.shadow-16.sc-z-popover{box-shadow:var(--shadow-16)}.popover-content-container.shadow-24.sc-z-popover{box-shadow:var(--shadow-24)}.popover-content-container.after-down.sc-z-popover{top:0;left:calc(100% + var(--space-unit))}.popover-content-container.after-center.sc-z-popover{top:50%;left:calc(100% + var(--space-unit));transform:translateY(-50%)}.popover-content-container.after-up.sc-z-popover{bottom:0;left:calc(100% + var(--space-unit))}.popover-content-container.below-right.sc-z-popover{left:0;top:calc(100% + var(--space-unit))}.popover-content-container.below-center.sc-z-popover{left:50%;top:calc(100% + var(--space-unit));transform:translateX(-50%)}.popover-content-container.below-left.sc-z-popover{right:0;top:calc(100% + var(--space-unit))}.popover-content-container.before-down.sc-z-popover{top:0;right:calc(100% + var(--space-unit))}.popover-content-container.before-center.sc-z-popover{top:50%;right:calc(100% + var(--space-unit));transform:translateY(-50%)}.popover-content-container.before-up.sc-z-popover{bottom:0;right:calc(100% + var(--space-unit))}.popover-content-container.above-right.sc-z-popover{left:0;bottom:calc(100% + var(--space-unit))}.popover-content-container.above-center.sc-z-popover{left:50%;bottom:calc(100% + var(--space-unit));transform:translateX(-50%)}.popover-content-container.above-left.sc-z-popover{right:0;bottom:calc(100% + var(--space-unit))}.popover-content-container.sc-z-popover:before{display:none;position:absolute;content:\"\";width:8px;height:8px;z-index:-1;background-color:inherit;transform:rotate(45deg)}.popover-content-container.after-down.sc-z-popover:before{top:12px;left:-4px;box-shadow:-1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.after-center.sc-z-popover:before{top:calc(50% - 4px);left:-4px;box-shadow:-1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.after-up.sc-z-popover:before{bottom:12px;left:-4px;box-shadow:-1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.below-right.sc-z-popover:before{left:12px;top:-4px;box-shadow:-1px -1px 2px var(--shadow-arrow-below-color)}.popover-content-container.below-center.sc-z-popover:before{left:calc(50% - 4px);top:-4px;box-shadow:-1px -1px 2px var(--shadow-arrow-below-color)}.popover-content-container.below-left.sc-z-popover:before{right:12px;top:-4px;box-shadow:-1px -1px 2px var(--shadow-arrow-below-color)}.popover-content-container.before-down.sc-z-popover:before{top:12px;right:-4px;box-shadow:1px -1px 1.5px var(--shadow-arrow-color)}.popover-content-container.before-center.sc-z-popover:before{top:calc(50% - 4px);right:-4px;box-shadow:1px -1px 1.5px var(--shadow-arrow-color)}.popover-content-container.before-up.sc-z-popover:before{bottom:12px;right:-4px;box-shadow:1px -1px 1.5px var(--shadow-arrow-color)}.popover-content-container.above-right.sc-z-popover:before{left:12px;bottom:-4px;box-shadow:1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.above-center.sc-z-popover:before{left:calc(50% - 4px);bottom:-4px;box-shadow:1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.above-left.sc-z-popover:before{right:12px;bottom:-4px;box-shadow:1px 1px 1.5px var(--shadow-arrow-color)}.popover-content-container.show-arrow.sc-z-popover:before{display:block}";
8
+ const stylesCss = ":host{--z-popover-theme--surface:var(--color-surface01);--z-popover-theme--text:var(--color-text01);--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}";
13
9
 
10
+ const DOCUMENT_ELEMENT = document.documentElement;
11
+ function getParentElement(element) {
12
+ if (element.parentNode.host) {
13
+ return element.parentNode.host;
14
+ }
15
+ return element.parentNode;
16
+ }
17
+ /**
18
+ * Find the closest scrollable parent of a node.
19
+ *
20
+ * @param {Element} element The node
21
+ */
22
+ function findScrollableParent(element) {
23
+ let parent = getParentElement(element);
24
+ while (parent && parent !== DOCUMENT_ELEMENT) {
25
+ const { overflow, overflowX, overflowY } = window.getComputedStyle(parent);
26
+ if (overflow === "hidden" || overflowY === "hidden" || overflowX === "hidden") {
27
+ return parent;
28
+ }
29
+ if ((parent.scrollHeight > parent.clientHeight && overflow !== "visible" && overflowY !== "visible") ||
30
+ (parent.scrollWidth > parent.clientWidth && overflow !== "visible" && overflowX !== "visible")) {
31
+ return parent;
32
+ }
33
+ parent = getParentElement(parent);
34
+ }
35
+ return DOCUMENT_ELEMENT;
36
+ }
37
+ /**
38
+ * Calculate computed offset.
39
+ * It includes matrix transformations.
40
+ * @param element The target element.
41
+ * @param targetParentOffset The relative offset parent.
42
+ * @return A client rect object.
43
+ */
44
+ function computeOffset(element, targetParentOffset) {
45
+ const rect = element.getBoundingClientRect();
46
+ const width = rect.width;
47
+ const height = rect.height;
48
+ let top = 0;
49
+ let left = 0;
50
+ let offsetParent = element;
51
+ while (offsetParent && offsetParent != targetParentOffset) {
52
+ left += offsetParent.offsetLeft;
53
+ // document.body sometimes has offsetTop == 0 but still has an
54
+ // offset because of children margins!
55
+ if (offsetParent === document.body) {
56
+ top += offsetParent.getBoundingClientRect().top + window.scrollY;
57
+ }
58
+ else {
59
+ top += offsetParent.offsetTop;
60
+ }
61
+ if (window.DOMMatrix) {
62
+ const style = window.getComputedStyle(offsetParent);
63
+ const transform = style.transform || style.webkitTransform;
64
+ const domMatrix = new DOMMatrix(transform);
65
+ if (domMatrix) {
66
+ left += domMatrix.m41;
67
+ if (offsetParent !== document.body) {
68
+ top += domMatrix.m42;
69
+ }
70
+ }
71
+ }
72
+ if (!offsetParent.offsetParent) {
73
+ break;
74
+ }
75
+ offsetParent = offsetParent.offsetParent;
76
+ }
77
+ let parentWidth;
78
+ let parentHeight;
79
+ if (offsetParent === document.body) {
80
+ parentWidth = window.innerWidth;
81
+ parentHeight = window.innerHeight;
82
+ }
83
+ else {
84
+ parentWidth = offsetParent.offsetWidth;
85
+ parentHeight = offsetParent.offsetHeight;
86
+ }
87
+ const right = parentWidth - left - rect.width;
88
+ const bottom = parentHeight - top - rect.height;
89
+ return { top, right, bottom, left, width, height };
90
+ }
14
91
  const ZPopover = class {
15
- /**
16
- * Constructor.
17
- */
18
92
  constructor(hostRef) {
19
93
  index.registerInstance(this, hostRef);
20
- this.triggerClick = index.createEvent(this, "triggerClick", 7);
21
- /** [optional] Popover position */
22
- this.position = index$1.PopoverPosition["after-up"];
23
- /** [optional] Background color token for popover */
24
- this.backgroundColor = "color-white";
25
- /** [optional] Border radius token for popover */
26
- this.borderRadius = index$1.PopoverBorderRadius.small;
27
- /** [optional] Box shadow token for popover */
28
- this.boxShadow = index$1.PopoverShadow["shadow-1"];
29
- /** [optional] Show or hide arrow */
94
+ this.positionChange = index.createEvent(this, "positionChange", 7);
95
+ this.openChange = index.createEvent(this, "openChange", 7);
96
+ /** Popover position. */
97
+ this.position = index$1.PopoverPosition.AUTO;
98
+ /**
99
+ * The open state of the popover.
100
+ */
101
+ this.open = false;
102
+ /**
103
+ * Whether to show popover's arrow.
104
+ */
30
105
  this.showArrow = false;
31
- /** [optional] Sets padding for Popover container */
32
- this.padding = "8px";
33
- this.isVisible = false;
34
- this.popoverPosition = this.position;
35
- this.handleKeyDown = this.handleKeyDown.bind(this);
106
+ /**
107
+ * Whether to center the popup on the main side (according to "position").
108
+ */
109
+ this.center = false;
110
+ /**
111
+ * Whether the popover should be closed when the user clicks outside of it or hit "ESC".
112
+ */
113
+ this.closable = true;
36
114
  }
37
- emitTriggerClick() {
38
- this.triggerClick.emit({
39
- isVisible: this.isVisible,
40
- });
115
+ closePopoverWithKeyboard(e) {
116
+ if (this.closable && e.key === index$1.KeyboardCode.ESC) {
117
+ this.open = false;
118
+ }
41
119
  }
42
- openPopover() {
43
- const width = document.body.clientWidth;
44
- const height = window.innerHeight;
45
- const rect = this.popoverElem.getBoundingClientRect();
46
- const l = rect.left;
47
- const r = rect.right;
48
- const t = rect.top;
49
- const b = rect.bottom;
50
- let firstSide = this.position.split("-")[0];
51
- let secondSide = this.position.split("-")[1];
52
- // If top is outside viewport
53
- if (t < 0) {
54
- if (this.position.startsWith("above")) {
55
- firstSide = "below";
56
- }
57
- else {
58
- secondSide = "down";
120
+ /**
121
+ * Close the popover when clicking outside of its content.
122
+ * Stop event propagation if the click was fired by popover's trigger element,
123
+ * to prevent close and reopen glitches.
124
+ * @param {MouseEvent} e
125
+ */
126
+ handleOutsideClick(e) {
127
+ if (!this.closable || !this.open) {
128
+ return;
129
+ }
130
+ if (!e.composedPath().includes(this.host)) {
131
+ const target = e.target;
132
+ const triggerElemClicked = this.bindTo instanceof HTMLElement ? this.bindTo.contains(target) : target.closest(this.bindTo);
133
+ if (triggerElemClicked) {
134
+ e.stopPropagation();
59
135
  }
136
+ this.open = false;
137
+ this.positionChange.emit({ position: this.currentPosition });
138
+ }
139
+ }
140
+ validatePosition(newValue) {
141
+ if (newValue && !Object.values(index$1.PopoverPosition).includes(newValue)) {
142
+ this.position = index$1.PopoverPosition.AUTO;
60
143
  }
61
- // If bottom is outside viewport
62
- if (b > height) {
63
- if (this.position.startsWith("below")) {
64
- firstSide = "above";
144
+ this.currentPosition = this.position;
145
+ this.positionChange.emit({ position: this.currentPosition });
146
+ }
147
+ /**
148
+ * Setup popover behaviors on opening.
149
+ */
150
+ onOpen() {
151
+ cancelAnimationFrame(this.animationFrameRequestId);
152
+ if (this.open) {
153
+ const setPosition = () => {
154
+ if (this.open) {
155
+ this.setPosition();
156
+ this.animationFrameRequestId = requestAnimationFrame(setPosition);
157
+ }
158
+ };
159
+ setPosition();
160
+ }
161
+ else if (this.host.hasAttribute("current-position")) {
162
+ this.host.removeAttribute("current-position");
163
+ this.currentPosition = undefined;
164
+ }
165
+ this.openChange.emit({ open: this.open });
166
+ }
167
+ disconnectedCallback() {
168
+ cancelAnimationFrame(this.animationFrameRequestId);
169
+ }
170
+ /**
171
+ * Set the position of the popover.
172
+ */
173
+ setPosition() {
174
+ let element;
175
+ if (typeof this.bindTo === "string") {
176
+ element = this.host.ownerDocument.querySelector(this.bindTo);
177
+ }
178
+ else if (this.bindTo) {
179
+ element = this.bindTo;
180
+ }
181
+ else {
182
+ element = this.host.parentElement;
183
+ }
184
+ if (!element) {
185
+ return;
186
+ }
187
+ const scrollContainer = findScrollableParent(element);
188
+ const scrollingBoundingRect = scrollContainer.getBoundingClientRect();
189
+ const offsetContainer = this.host.offsetParent;
190
+ const relativeBoundingRect = offsetContainer
191
+ ? computeOffset(offsetContainer, scrollContainer)
192
+ : { top: 0, right: 0, bottom: 0, left: 0 };
193
+ const boundingRect = computeOffset(element, scrollContainer);
194
+ const top = boundingRect.top - scrollContainer.scrollTop;
195
+ const bottom = scrollingBoundingRect.height - (boundingRect.top + boundingRect.height) + scrollContainer.scrollTop;
196
+ const left = boundingRect.left - scrollContainer.scrollLeft;
197
+ const right = scrollingBoundingRect.width - (boundingRect.left + boundingRect.width) + scrollContainer.scrollLeft;
198
+ const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
199
+ const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
200
+ const availableTop = Math.min(top, top + scrollingBoundingRect.top);
201
+ const availableBottom = Math.min(bottom, bottom - overflowBottom);
202
+ const availableLeft = Math.min(left, left + scrollingBoundingRect.left);
203
+ const availableRight = Math.min(right, right - overflowRight);
204
+ const availableHeight = availableTop + availableBottom + boundingRect.height;
205
+ const availableWidth = availableLeft + availableRight + boundingRect.width;
206
+ let position = this.currentPosition;
207
+ const positions = [];
208
+ if (this.position === index$1.PopoverPosition.AUTO) {
209
+ /**
210
+ * The `AUTO` position tries to place the popover in the 'safest' area,
211
+ * where there's more space available.
212
+ */
213
+ if (availableLeft / availableWidth > 0.6) {
214
+ positions.push(index$1.PopoverPosition.LEFT);
65
215
  }
66
- else {
67
- secondSide = "up";
216
+ else if (availableLeft / availableWidth < 0.4) {
217
+ positions.push(index$1.PopoverPosition.RIGHT);
68
218
  }
69
- }
70
- // If right is outside viewport
71
- if (r > width) {
72
- if (this.position.startsWith("above") ||
73
- this.position.startsWith("below")) {
74
- secondSide = "left";
219
+ if (availableTop / availableHeight > 0.9) {
220
+ positions.unshift(index$1.PopoverPosition.TOP);
221
+ }
222
+ else if (availableTop / availableHeight > 0.6) {
223
+ positions.push(index$1.PopoverPosition.TOP);
224
+ }
225
+ else if (availableTop / availableHeight < 0.1) {
226
+ positions.unshift(index$1.PopoverPosition.BOTTOM);
75
227
  }
76
228
  else {
77
- firstSide = "before";
229
+ positions.push(index$1.PopoverPosition.BOTTOM);
78
230
  }
231
+ position = positions.join("_");
79
232
  }
80
- // If left is outside viewport
81
- if (l < 0) {
82
- if (this.position.startsWith("above") ||
83
- this.position.startsWith("below")) {
84
- secondSide = "right";
233
+ const style = this.host.style;
234
+ style.position = "absolute";
235
+ const offsetTop = boundingRect.top - relativeBoundingRect.top;
236
+ const offsetRight = boundingRect.right - relativeBoundingRect.right;
237
+ const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
238
+ const offsetLeft = boundingRect.left - relativeBoundingRect.left;
239
+ const offsetModifier = this.center ? 0.5 : 0;
240
+ const sizeModifier = this.center ? 0.5 : 0;
241
+ if (position === index$1.PopoverPosition.TOP || position === index$1.PopoverPosition.TOP_RIGHT) {
242
+ style.top = "auto";
243
+ style.right = "auto";
244
+ style.bottom = `${offsetBottom + boundingRect.height}px`;
245
+ style.left = `${offsetLeft + boundingRect.width * offsetModifier}px`;
246
+ style.maxHeight = `${availableTop}px`;
247
+ if (position === index$1.PopoverPosition.TOP_RIGHT) {
248
+ style.maxWidth = `${availableRight + boundingRect.width * sizeModifier}px`;
85
249
  }
86
- else {
87
- firstSide = "after";
250
+ }
251
+ else if (position === index$1.PopoverPosition.TOP_LEFT) {
252
+ style.top = "auto";
253
+ style.right = `${offsetRight + boundingRect.width * offsetModifier}px`;
254
+ style.bottom = `${offsetBottom + boundingRect.height}px`;
255
+ style.left = "auto";
256
+ style.maxWidth = `${availableLeft}px`;
257
+ style.maxHeight = `${availableTop}px`;
258
+ }
259
+ else if (position === index$1.PopoverPosition.BOTTOM || position === index$1.PopoverPosition.BOTTOM_RIGHT) {
260
+ style.top = `${offsetTop + boundingRect.height}px`;
261
+ style.right = "auto";
262
+ style.bottom = "auto";
263
+ style.left = `${offsetLeft + boundingRect.width * offsetModifier}px`;
264
+ style.maxHeight = `${availableBottom}px`;
265
+ if (position === index$1.PopoverPosition.BOTTOM_RIGHT) {
266
+ style.maxWidth = `${availableRight + boundingRect.width * sizeModifier}px`;
88
267
  }
89
268
  }
90
- this.popoverPosition = index$1.PopoverPosition[`${firstSide}-${secondSide}`];
91
- this.isVisible = true;
92
- }
93
- closePopover() {
94
- this.popoverPosition = this.position;
95
- this.isVisible = false;
96
- }
97
- closePopoverWithKeyboard(e) {
98
- if (e.key === index$1.KeyboardKeys.ESC) {
99
- this.closePopover();
269
+ else if (position === index$1.PopoverPosition.BOTTOM_LEFT) {
270
+ style.top = `${offsetTop + boundingRect.height}px`;
271
+ style.right = `${offsetRight + boundingRect.width * offsetModifier}px`;
272
+ style.bottom = "auto";
273
+ style.left = "auto";
274
+ style.maxWidth = `${availableLeft}px`;
275
+ style.maxHeight = `${availableBottom}px`;
100
276
  }
101
- }
102
- handleClick(event) {
103
- this.isVisible ? this.closePopover() : this.openPopover();
104
- this.emitTriggerClick();
105
- event.stopPropagation();
106
- }
107
- handleKeyDown(event) {
108
- if (event.code === index$1.KeyboardKeys.ENTER) {
109
- this.isVisible ? this.closePopover() : this.openPopover();
277
+ else if (position === index$1.PopoverPosition.RIGHT || position === index$1.PopoverPosition.RIGHT_BOTTOM) {
278
+ style.top = `${offsetTop + boundingRect.height * offsetModifier}px`;
279
+ style.right = "auto";
280
+ style.bottom = "auto";
281
+ style.left = `${offsetLeft + boundingRect.width}px`;
282
+ style.maxWidth = `${availableRight}px`;
283
+ style.maxHeight = `${availableBottom + boundingRect.height * sizeModifier}px`;
110
284
  }
111
- }
112
- handleOutsideClick(e) {
113
- const tree = utils.getElementTree(e.target);
114
- const parent = tree.find((elem) => elem.nodeName.toLowerCase() === "z-popover");
115
- if (!parent) {
116
- this.closePopover();
285
+ else if (position === index$1.PopoverPosition.RIGHT_TOP) {
286
+ style.top = "auto";
287
+ style.right = "auto";
288
+ style.bottom = `${offsetBottom + boundingRect.height * offsetModifier}px`;
289
+ style.left = `${offsetLeft + boundingRect.width}px`;
290
+ style.maxWidth = `${availableRight}px`;
291
+ style.maxHeight = `${availableTop + boundingRect.height * sizeModifier}px`;
292
+ }
293
+ else if (position === index$1.PopoverPosition.LEFT || position === index$1.PopoverPosition.LEFT_BOTTOM) {
294
+ style.top = `${offsetTop + boundingRect.height * offsetModifier}px`;
295
+ style.right = `${offsetRight + boundingRect.width}px`;
296
+ style.bottom = "auto";
297
+ style.left = "auto";
298
+ style.maxWidth = `${availableLeft}px`;
299
+ style.maxHeight = `${availableBottom + boundingRect.height * sizeModifier}px`;
117
300
  }
301
+ else if (position === index$1.PopoverPosition.LEFT_TOP) {
302
+ style.top = "auto";
303
+ style.right = `${offsetRight + boundingRect.width}px`;
304
+ style.bottom = `${offsetBottom + boundingRect.height * offsetModifier}px`;
305
+ style.left = "auto";
306
+ style.maxWidth = `${availableLeft}px`;
307
+ style.maxHeight = `${availableTop + boundingRect.height * sizeModifier}px`;
308
+ }
309
+ this.currentPosition = position || this.position;
310
+ this.host.setAttribute("current-position", this.currentPosition);
311
+ }
312
+ componentWillLoad() {
313
+ this.validatePosition(this.position);
314
+ this.onOpen();
118
315
  }
119
316
  render() {
120
- return (index.h(index.Host, { onKeyDown: this.handleKeyDown }, index.h("div", { tabindex: "0", onClick: (event) => this.handleClick(event), onKeyDown: (event) => {
121
- if (event.key === index$1.KeyboardKeys.ENTER) {
122
- this.handleClick(event);
123
- }
124
- } }, index.h("slot", { name: "trigger" })), index.h("div", { ref: (e) => (this.popoverElem = e), class: index$2.classnames("popover-content-container", this.popoverPosition, `border-radius-${this.borderRadius}`, this.boxShadow, { "show-arrow": this.showArrow }, { visible: this.isVisible }), style: {
125
- backgroundColor: `var(--${this.backgroundColor})`,
126
- padding: this.padding,
127
- } }, index.h("slot", { name: "popover" }))));
317
+ return index.h("slot", null);
128
318
  }
319
+ get host() { return index.getElement(this); }
320
+ static get watchers() { return {
321
+ "position": ["validatePosition"],
322
+ "open": ["onOpen"]
323
+ }; }
129
324
  };
130
325
  ZPopover.style = stylesCss;
131
326