@zanichelli/delta_share 2.0.13 → 2.0.14

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