@zanichelli/albe-web-components 4.0.5 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/dist/cjs/{index-6b6a3299.js → index-5c16dc2b.js} +49 -45
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-8cc414c9.js → utils-15c8b978.js} +1 -1
  6. package/dist/cjs/utils-58afb908.js +2706 -0
  7. package/dist/cjs/web-components-library.cjs.js +1 -1
  8. package/dist/cjs/z-app-switcher_9.cjs.entry.js +736 -0
  9. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  10. package/dist/cjs/z-avatar.cjs.entry.js +1 -1
  11. package/dist/cjs/z-button-deprecated.cjs.entry.js +1 -1
  12. package/dist/cjs/z-button.cjs.entry.js +44 -0
  13. package/dist/cjs/z-card.cjs.entry.js +69 -0
  14. package/dist/cjs/z-carousel.cjs.entry.js +24 -0
  15. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  16. package/dist/cjs/z-combobox.cjs.entry.js +2 -2
  17. package/dist/cjs/z-contextual-menu.cjs.entry.js +18 -7
  18. package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
  19. package/dist/cjs/z-date-picker.cjs.entry.js +10 -2701
  20. package/dist/cjs/z-file-upload.cjs.entry.js +2 -2
  21. package/dist/cjs/z-file.cjs.entry.js +10 -9
  22. package/dist/cjs/z-footer.cjs.entry.js +1 -1
  23. package/dist/cjs/z-ghost-loading.cjs.entry.js +19 -0
  24. package/dist/cjs/z-input-deprecated.cjs.entry.js +2 -2
  25. package/dist/cjs/z-input-label_2.cjs.entry.js +2 -2
  26. package/dist/cjs/z-list-group.cjs.entry.js +1 -1
  27. package/dist/cjs/z-list_2.cjs.entry.js +1 -1
  28. package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +2 -2
  29. package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
  30. package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
  31. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  32. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  33. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  34. package/dist/cjs/z-myz-card-info.cjs.entry.js +4 -4
  35. package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
  36. package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
  37. package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
  38. package/dist/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
  39. package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
  40. package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
  41. package/dist/cjs/z-offcanvas.cjs.entry.js +63 -0
  42. package/dist/cjs/z-otp.cjs.entry.js +1 -1
  43. package/dist/cjs/z-pagination-bar.cjs.entry.js +2 -2
  44. package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
  45. package/dist/cjs/z-popover-deprecated.cjs.entry.js +132 -0
  46. package/dist/cjs/z-popover.cjs.entry.js +304 -97
  47. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  48. package/dist/cjs/z-skip-to-content.cjs.entry.js +2 -2
  49. package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
  50. package/dist/cjs/z-status-tag.cjs.entry.js +1 -1
  51. package/dist/cjs/z-table-cell.cjs.entry.js +1 -1
  52. package/dist/cjs/z-table-header.cjs.entry.js +8 -11
  53. package/dist/cjs/z-table-row.cjs.entry.js +1 -1
  54. package/dist/cjs/z-table.cjs.entry.js +1 -1
  55. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  56. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  57. package/dist/cjs/z-toggle-switch.cjs.entry.js +2 -2
  58. package/dist/cjs/z-tooltip-deprecated.cjs.entry.js +274 -0
  59. package/dist/cjs/z-tooltip.cjs.entry.js +8 -251
  60. package/dist/collection/beans/index.js +49 -45
  61. package/dist/collection/collection-manifest.json +4 -1
  62. package/dist/collection/components/{z-date-picker → date-picker}/styles.css +69 -17
  63. package/dist/collection/components/date-picker/utils.js +76 -0
  64. package/dist/collection/components/{z-date-picker → date-picker/z-date-picker}/index.js +13 -84
  65. package/dist/collection/components/date-picker/z-range-picker/index.js +483 -0
  66. package/dist/collection/components/file-upload/z-file/index.js +13 -13
  67. package/dist/collection/components/file-upload/z-file/styles.css +2 -2
  68. package/dist/collection/components/notification/z-tooltip/index.js +45 -298
  69. package/dist/collection/components/notification/z-tooltip/styles.css +8 -120
  70. package/dist/collection/components/z-contextual-menu/index.js +26 -16
  71. package/dist/collection/components/z-contextual-menu/styles.css +16 -5
  72. package/dist/collection/components/z-popover/index.js +381 -166
  73. package/dist/collection/components/z-popover/styles.css +91 -180
  74. package/dist/collection/components/z-table/z-table-header/index.js +10 -16
  75. package/dist/collection/components/z-table/z-table-header/styles.css +7 -1
  76. package/dist/collection/deprecated/z-popover-deprecated/index.js +294 -0
  77. package/dist/collection/deprecated/z-popover-deprecated/styles.css +236 -0
  78. package/dist/collection/deprecated/z-tooltip-deprecated/index.js +379 -0
  79. package/dist/collection/deprecated/z-tooltip-deprecated/styles.css +128 -0
  80. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +2 -2
  81. package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +1 -1
  82. package/dist/esm/{index-46ca649a.js → index-3786a7ff.js} +50 -46
  83. package/dist/esm/index.js +2 -2
  84. package/dist/esm/loader.js +1 -1
  85. package/dist/esm/utils-14da09de.js +2701 -0
  86. package/dist/esm/{utils-5d5963ef.js → utils-d49ae9f0.js} +2 -2
  87. package/dist/esm/web-components-library.js +1 -1
  88. package/dist/esm/z-app-switcher_9.entry.js +724 -0
  89. package/dist/esm/z-aria-alert.entry.js +1 -1
  90. package/dist/esm/z-avatar.entry.js +1 -1
  91. package/dist/esm/z-button-deprecated.entry.js +1 -1
  92. package/dist/esm/z-button.entry.js +40 -0
  93. package/dist/esm/z-card.entry.js +65 -0
  94. package/dist/esm/z-carousel.entry.js +20 -0
  95. package/dist/esm/z-chip.entry.js +2 -2
  96. package/dist/esm/z-combobox.entry.js +2 -2
  97. package/dist/esm/z-contextual-menu.entry.js +19 -8
  98. package/dist/esm/z-cookiebar.entry.js +1 -1
  99. package/dist/esm/z-date-picker.entry.js +9 -2700
  100. package/dist/esm/z-file-upload.entry.js +2 -2
  101. package/dist/esm/z-file.entry.js +10 -9
  102. package/dist/esm/z-footer.entry.js +1 -1
  103. package/dist/esm/z-ghost-loading.entry.js +15 -0
  104. package/dist/esm/z-input-deprecated.entry.js +2 -2
  105. package/dist/esm/z-input-label_2.entry.js +2 -2
  106. package/dist/esm/z-list-group.entry.js +1 -1
  107. package/dist/esm/z-list_2.entry.js +1 -1
  108. package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
  109. package/dist/esm/z-messages-pocket.entry.js +1 -1
  110. package/dist/esm/z-modal-login.entry.js +1 -1
  111. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  112. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  113. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  114. package/dist/esm/z-myz-card-info.entry.js +4 -4
  115. package/dist/esm/z-myz-card_4.entry.js +1 -1
  116. package/dist/esm/z-myz-list-item.entry.js +2 -2
  117. package/dist/esm/z-myz-topbar.entry.js +1 -1
  118. package/dist/esm/z-navigation-tab-link.entry.js +1 -1
  119. package/dist/esm/z-navigation-tab.entry.js +1 -1
  120. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  121. package/dist/esm/z-offcanvas.entry.js +59 -0
  122. package/dist/esm/z-otp.entry.js +1 -1
  123. package/dist/esm/z-pagination-bar.entry.js +2 -2
  124. package/dist/esm/z-pocket_3.entry.js +2 -2
  125. package/dist/esm/z-popover-deprecated.entry.js +128 -0
  126. package/dist/esm/z-popover.entry.js +305 -98
  127. package/dist/esm/z-section-title.entry.js +1 -1
  128. package/dist/esm/z-skip-to-content.entry.js +2 -2
  129. package/dist/esm/z-slideshow.entry.js +2 -2
  130. package/dist/esm/z-status-tag.entry.js +1 -1
  131. package/dist/esm/z-table-cell.entry.js +1 -1
  132. package/dist/esm/z-table-header.entry.js +8 -11
  133. package/dist/esm/z-table-row.entry.js +1 -1
  134. package/dist/esm/z-table.entry.js +1 -1
  135. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  136. package/dist/esm/z-toast-notification.entry.js +1 -1
  137. package/dist/esm/z-toggle-switch.entry.js +2 -2
  138. package/dist/esm/z-tooltip-deprecated.entry.js +270 -0
  139. package/dist/esm/z-tooltip.entry.js +9 -252
  140. package/dist/types/beans/index.d.ts +37 -33
  141. package/dist/types/components/date-picker/utils.d.ts +3 -0
  142. package/dist/types/components/{z-date-picker → date-picker/z-date-picker}/index.d.ts +3 -8
  143. package/dist/types/components/date-picker/z-range-picker/index.d.ts +43 -0
  144. package/dist/types/components/file-upload/z-file/index.d.ts +3 -3
  145. package/dist/types/components/notification/z-tooltip/index.d.ts +14 -29
  146. package/dist/types/components/z-contextual-menu/index.d.ts +8 -4
  147. package/dist/types/components/z-popover/index.d.ts +57 -28
  148. package/dist/types/components/z-table/z-table-header/index.d.ts +2 -1
  149. package/dist/types/components.d.ts +189 -10
  150. package/dist/types/deprecated/z-popover-deprecated/index.d.ts +33 -0
  151. package/dist/types/deprecated/z-tooltip-deprecated/index.d.ts +41 -0
  152. package/dist/web-components-library/index.esm.js +1 -1
  153. package/dist/web-components-library/{p-0f17db30.entry.js → p-044edef0.entry.js} +1 -1
  154. package/dist/web-components-library/{p-43329b81.entry.js → p-0487d5f1.entry.js} +1 -1
  155. package/dist/web-components-library/{p-57d1acdc.entry.js → p-0610360b.entry.js} +1 -1
  156. package/dist/web-components-library/p-0b222589.js +1 -0
  157. package/dist/web-components-library/p-0bcc78d4.entry.js +1 -0
  158. package/dist/web-components-library/{p-dffdf60a.entry.js → p-0ccda54f.entry.js} +1 -1
  159. package/dist/web-components-library/p-10c3285d.entry.js +1 -0
  160. package/dist/web-components-library/p-13174553.entry.js +1 -0
  161. package/{www/build/p-df4e963b.entry.js → dist/web-components-library/p-18c0f701.entry.js} +1 -1
  162. package/dist/web-components-library/p-1c2331a4.entry.js +1 -0
  163. package/dist/web-components-library/p-206e5b31.entry.js +1 -0
  164. package/dist/web-components-library/{p-0a0aee35.entry.js → p-248e6c7d.entry.js} +1 -1
  165. package/dist/web-components-library/p-24ec049a.entry.js +1 -0
  166. package/dist/web-components-library/{p-ccdebe3f.entry.js → p-24f3a39e.entry.js} +1 -1
  167. package/dist/web-components-library/p-25b1a634.entry.js +1 -0
  168. package/dist/web-components-library/p-286a2d0e.entry.js +1 -0
  169. package/dist/web-components-library/{p-8fbc2ce9.entry.js → p-286c4c99.entry.js} +1 -1
  170. package/dist/web-components-library/{p-1727c1c8.entry.js → p-287678e2.entry.js} +1 -1
  171. package/dist/web-components-library/{p-fe927bf4.entry.js → p-2c86d1ea.entry.js} +1 -1
  172. package/dist/web-components-library/{p-de25c7f0.entry.js → p-2d93e9e9.entry.js} +1 -1
  173. package/dist/web-components-library/{p-b15efba3.entry.js → p-33120ebd.entry.js} +1 -1
  174. package/{www/build/p-bfe5693d.entry.js → dist/web-components-library/p-35f7cac2.entry.js} +1 -1
  175. package/dist/web-components-library/{p-d33fea26.entry.js → p-3dc21b58.entry.js} +1 -1
  176. package/dist/web-components-library/{p-edb8d2ab.entry.js → p-4906f5a6.entry.js} +1 -1
  177. package/dist/web-components-library/{p-02ea7e49.entry.js → p-49602979.entry.js} +1 -1
  178. package/dist/web-components-library/{p-ba29bc12.entry.js → p-49f8c86b.entry.js} +1 -1
  179. package/dist/web-components-library/{p-292bc0c4.entry.js → p-4a8fe1e0.entry.js} +1 -1
  180. package/{www/build/p-3edbd35c.entry.js → dist/web-components-library/p-5553f117.entry.js} +1 -1
  181. package/dist/web-components-library/p-5789bbe7.entry.js +1 -0
  182. package/dist/web-components-library/{p-4af112a7.entry.js → p-5a2dd46c.entry.js} +1 -1
  183. package/dist/web-components-library/{p-63ccb013.entry.js → p-5c20338f.entry.js} +1 -1
  184. package/dist/web-components-library/p-60e042a0.entry.js +1 -0
  185. package/dist/web-components-library/p-6897ca8c.js +1 -0
  186. package/dist/web-components-library/p-6d79baec.entry.js +16 -0
  187. package/dist/web-components-library/p-6db40dac.entry.js +1 -0
  188. package/dist/web-components-library/p-71f19680.entry.js +1 -0
  189. package/{www/build/p-9a5ee6c2.entry.js → dist/web-components-library/p-7ce57dfd.entry.js} +1 -1
  190. package/dist/web-components-library/{p-3c111c2a.entry.js → p-80044bc0.entry.js} +1 -1
  191. package/{www/build/p-69ef6ddc.entry.js → dist/web-components-library/p-82217c76.entry.js} +1 -1
  192. package/dist/web-components-library/p-8cf3798f.entry.js +1 -0
  193. package/dist/web-components-library/{p-e2102da3.entry.js → p-95414290.entry.js} +1 -1
  194. package/dist/web-components-library/{p-9f9e4266.entry.js → p-987f1f8a.entry.js} +1 -1
  195. package/{www/build/p-1f73a6d8.entry.js → dist/web-components-library/p-99a76b4d.entry.js} +1 -1
  196. package/dist/web-components-library/{p-55ddbfe9.entry.js → p-9b563575.entry.js} +1 -1
  197. package/dist/web-components-library/{p-0e256fdc.entry.js → p-9c81ed70.entry.js} +1 -1
  198. package/dist/web-components-library/{p-d995d9dc.entry.js → p-a4245c8a.entry.js} +1 -1
  199. package/dist/web-components-library/{p-6c6b4e80.entry.js → p-a88f4e49.entry.js} +1 -1
  200. package/dist/web-components-library/p-a98ccf36.entry.js +1 -0
  201. package/dist/web-components-library/{p-5be162d5.entry.js → p-bf3ea7b5.entry.js} +1 -1
  202. package/dist/web-components-library/{p-b9da171f.js → p-d41ca4c3.js} +1 -1
  203. package/{www/build/p-d97a2db9.entry.js → dist/web-components-library/p-e30a093f.entry.js} +1 -1
  204. package/dist/web-components-library/p-e9628876.entry.js +1 -0
  205. package/dist/web-components-library/p-ec0c7a06.entry.js +1 -0
  206. package/dist/web-components-library/{p-9074e1a5.entry.js → p-f9f5ab0b.entry.js} +1 -1
  207. package/dist/web-components-library/{p-51cdabeb.entry.js → p-fd404599.entry.js} +1 -1
  208. package/dist/web-components-library/web-components-library.esm.js +1 -1
  209. package/package.json +1 -1
  210. package/react/components.d.ts +3 -0
  211. package/react/components.js +5 -2
  212. package/react/components.js.map +1 -1
  213. package/www/build/index.esm.js +1 -1
  214. package/www/build/{p-0f17db30.entry.js → p-044edef0.entry.js} +1 -1
  215. package/www/build/{p-43329b81.entry.js → p-0487d5f1.entry.js} +1 -1
  216. package/www/build/{p-57d1acdc.entry.js → p-0610360b.entry.js} +1 -1
  217. package/www/build/p-0b222589.js +1 -0
  218. package/www/build/p-0bcc78d4.entry.js +1 -0
  219. package/www/build/{p-dffdf60a.entry.js → p-0ccda54f.entry.js} +1 -1
  220. package/www/build/p-10c3285d.entry.js +1 -0
  221. package/www/build/p-13174553.entry.js +1 -0
  222. package/{dist/web-components-library/p-df4e963b.entry.js → www/build/p-18c0f701.entry.js} +1 -1
  223. package/www/build/p-1c2331a4.entry.js +1 -0
  224. package/www/build/p-206e5b31.entry.js +1 -0
  225. package/www/build/{p-0a0aee35.entry.js → p-248e6c7d.entry.js} +1 -1
  226. package/www/build/p-24ec049a.entry.js +1 -0
  227. package/www/build/{p-ccdebe3f.entry.js → p-24f3a39e.entry.js} +1 -1
  228. package/www/build/p-25b1a634.entry.js +1 -0
  229. package/www/build/p-286a2d0e.entry.js +1 -0
  230. package/www/build/{p-8fbc2ce9.entry.js → p-286c4c99.entry.js} +1 -1
  231. package/www/build/{p-1727c1c8.entry.js → p-287678e2.entry.js} +1 -1
  232. package/www/build/{p-fe927bf4.entry.js → p-2c86d1ea.entry.js} +1 -1
  233. package/www/build/{p-de25c7f0.entry.js → p-2d93e9e9.entry.js} +1 -1
  234. package/www/build/{p-b15efba3.entry.js → p-33120ebd.entry.js} +1 -1
  235. package/{dist/web-components-library/p-bfe5693d.entry.js → www/build/p-35f7cac2.entry.js} +1 -1
  236. package/www/build/{p-d33fea26.entry.js → p-3dc21b58.entry.js} +1 -1
  237. package/www/build/{p-edb8d2ab.entry.js → p-4906f5a6.entry.js} +1 -1
  238. package/www/build/{p-02ea7e49.entry.js → p-49602979.entry.js} +1 -1
  239. package/www/build/{p-ba29bc12.entry.js → p-49f8c86b.entry.js} +1 -1
  240. package/www/build/{p-292bc0c4.entry.js → p-4a8fe1e0.entry.js} +1 -1
  241. package/{dist/web-components-library/p-3edbd35c.entry.js → www/build/p-5553f117.entry.js} +1 -1
  242. package/www/build/p-5789bbe7.entry.js +1 -0
  243. package/www/build/{p-4af112a7.entry.js → p-5a2dd46c.entry.js} +1 -1
  244. package/www/build/{p-63ccb013.entry.js → p-5c20338f.entry.js} +1 -1
  245. package/www/build/p-60e042a0.entry.js +1 -0
  246. package/www/build/p-6897ca8c.js +1 -0
  247. package/www/build/p-6d79baec.entry.js +16 -0
  248. package/www/build/p-6db40dac.entry.js +1 -0
  249. package/www/build/p-71f19680.entry.js +1 -0
  250. package/{dist/web-components-library/p-9a5ee6c2.entry.js → www/build/p-7ce57dfd.entry.js} +1 -1
  251. package/www/build/{p-3c111c2a.entry.js → p-80044bc0.entry.js} +1 -1
  252. package/{dist/web-components-library/p-69ef6ddc.entry.js → www/build/p-82217c76.entry.js} +1 -1
  253. package/www/build/p-8cf3798f.entry.js +1 -0
  254. package/www/build/{p-e2102da3.entry.js → p-95414290.entry.js} +1 -1
  255. package/www/build/{p-9f9e4266.entry.js → p-987f1f8a.entry.js} +1 -1
  256. package/{dist/web-components-library/p-1f73a6d8.entry.js → www/build/p-99a76b4d.entry.js} +1 -1
  257. package/www/build/{p-55ddbfe9.entry.js → p-9b563575.entry.js} +1 -1
  258. package/www/build/{p-0e256fdc.entry.js → p-9c81ed70.entry.js} +1 -1
  259. package/www/build/{p-d995d9dc.entry.js → p-a4245c8a.entry.js} +1 -1
  260. package/www/build/{p-6c6b4e80.entry.js → p-a88f4e49.entry.js} +1 -1
  261. package/www/build/p-a98ccf36.entry.js +1 -0
  262. package/www/build/p-ae4eff83.js +1 -0
  263. package/www/build/{p-5be162d5.entry.js → p-bf3ea7b5.entry.js} +1 -1
  264. package/www/build/{p-b9da171f.js → p-d41ca4c3.js} +1 -1
  265. package/{dist/web-components-library/p-d97a2db9.entry.js → www/build/p-e30a093f.entry.js} +1 -1
  266. package/www/build/p-e9628876.entry.js +1 -0
  267. package/www/build/p-ec0c7a06.entry.js +1 -0
  268. package/www/build/{p-9074e1a5.entry.js → p-f9f5ab0b.entry.js} +1 -1
  269. package/www/build/{p-51cdabeb.entry.js → p-fd404599.entry.js} +1 -1
  270. package/www/build/web-components-library.esm.js +1 -1
  271. package/www/index.html +6 -70
  272. package/dist/cjs/z-app-switcher_11.cjs.entry.js +0 -377
  273. package/dist/cjs/z-input_2.cjs.entry.js +0 -228
  274. package/dist/esm/z-app-switcher_11.entry.js +0 -363
  275. package/dist/esm/z-input_2.entry.js +0 -223
  276. package/dist/web-components-library/p-0d29d851.entry.js +0 -1
  277. package/dist/web-components-library/p-0ef6c549.entry.js +0 -1
  278. package/dist/web-components-library/p-20d62443.entry.js +0 -1
  279. package/dist/web-components-library/p-562e2d52.entry.js +0 -1
  280. package/dist/web-components-library/p-5eacbfc7.entry.js +0 -1
  281. package/dist/web-components-library/p-6218514a.entry.js +0 -1
  282. package/dist/web-components-library/p-71accd8e.entry.js +0 -1
  283. package/dist/web-components-library/p-7c6d4440.entry.js +0 -1
  284. package/dist/web-components-library/p-93cddf62.entry.js +0 -1
  285. package/dist/web-components-library/p-9f5d707a.js +0 -1
  286. package/dist/web-components-library/p-a8875b97.entry.js +0 -16
  287. package/dist/web-components-library/p-e2431b92.entry.js +0 -1
  288. package/www/build/p-0d29d851.entry.js +0 -1
  289. package/www/build/p-0ef6c549.entry.js +0 -1
  290. package/www/build/p-20d62443.entry.js +0 -1
  291. package/www/build/p-562e2d52.entry.js +0 -1
  292. package/www/build/p-5eacbfc7.entry.js +0 -1
  293. package/www/build/p-6218514a.entry.js +0 -1
  294. package/www/build/p-71accd8e.entry.js +0 -1
  295. package/www/build/p-7c6d4440.entry.js +0 -1
  296. package/www/build/p-93cddf62.entry.js +0 -1
  297. package/www/build/p-9f5d707a.js +0 -1
  298. package/www/build/p-a8875b97.entry.js +0 -16
  299. package/www/build/p-e2431b92.entry.js +0 -1
  300. package/www/build/p-f01941e6.js +0 -1
@@ -1,29 +1,29 @@
1
1
  import { Component, h, Event, Element, Host, State, Listen, Prop, } from "@stencil/core";
2
- import { TooltipPosition, ZChipType } from "../../../beans";
2
+ import { PopoverPositions, ZChipType } from "../../../beans";
3
3
  import { tabletBreakpoint } from "../../../constants/breakpoints";
4
- import "./index";
5
4
  export class ZFile {
6
5
  constructor() {
7
- this.allowTooltip = false;
8
- this.tooltipVisible = false;
6
+ this.allowPopover = false;
7
+ this.popoverVisible = false;
9
8
  }
10
9
  removeFileHandler() {
11
10
  this.removeFile.emit();
12
11
  this.el.remove();
13
12
  }
14
13
  onMouseOver() {
15
- this.tooltipVisible = true;
14
+ this.popoverVisible = true;
16
15
  }
17
16
  onMouseLeave() {
18
- this.tooltipVisible = false;
17
+ this.popoverVisible = false;
19
18
  }
20
19
  onInteractiveIconClick() {
21
20
  this.removeFileHandler();
22
21
  }
23
22
  componentDidLoad() {
24
23
  var _a, _b;
25
- if (this.elementHasEllipsis() && window.innerWidth > tabletBreakpoint)
26
- this.allowTooltip = true;
24
+ if (this.elementHasEllipsis() && window.innerWidth > tabletBreakpoint) {
25
+ this.allowPopover = true;
26
+ }
27
27
  (_b = (_a = this.icon) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
28
28
  }
29
29
  elementHasEllipsis() {
@@ -31,9 +31,9 @@ export class ZFile {
31
31
  }
32
32
  render() {
33
33
  return (h(Host, null,
34
- this.allowTooltip && (h("z-tooltip", { open: this.tooltipVisible, type: TooltipPosition.AUTO, "bind-to": `#chip-${this.fileNumber}` },
35
- h("span", { class: "body-5 tootip-content" }, this.ellipsis.innerText))),
36
- h("z-chip", { id: `chip-${this.fileNumber}`, interactiveIcon: "multiply-circled", type: ZChipType.default },
34
+ this.allowPopover && (h("z-popover", { open: this.popoverVisible, position: PopoverPositions.AUTO, bindTo: this.chip },
35
+ h("span", { class: "body-5 tooltip-content" }, this.ellipsis.innerText))),
36
+ h("z-chip", { ref: (el) => (this.chip = el), id: `chip-${this.fileNumber}`, interactiveIcon: "multiply-circled", type: ZChipType.default },
37
37
  h("span", { ref: (el) => (this.ellipsis = el), tabIndex: -1 },
38
38
  h("slot", null)))));
39
39
  }
@@ -65,8 +65,8 @@ export class ZFile {
65
65
  }
66
66
  }; }
67
67
  static get states() { return {
68
- "allowTooltip": {},
69
- "tooltipVisible": {}
68
+ "allowPopover": {},
69
+ "popoverVisible": {}
70
70
  }; }
71
71
  static get events() { return [{
72
72
  "method": "removeFile",
@@ -4,11 +4,11 @@
4
4
  position: relative;
5
5
  }
6
6
 
7
- :host > z-tooltip {
7
+ :host > z-popover {
8
8
  z-index: 10;
9
9
  }
10
10
 
11
- :host > z-tooltip > .tootip-content {
11
+ :host > z-popover > .tooltip-content {
12
12
  white-space: nowrap;
13
13
  }
14
14
 
@@ -1,258 +1,30 @@
1
- import { Component, Prop, h, Host, Watch, Element, State, Event, } from "@stencil/core";
2
- import { TooltipPosition } from "../../../beans/index";
3
- const documentElement = document.documentElement;
1
+ import { Component, Prop, h, Listen, } from "@stencil/core";
2
+ import { PopoverPositions } from "../../../beans";
4
3
  /**
5
- * Find the closest scrollable parent of a node.
4
+ * Tooltip component.
5
+ * It is basically a wrapper for the `<z-popover>` component with custom configuration.
6
6
  *
7
- * @param {Element} element The node
7
+ * @cssprop --z-popover-theme--surface - background color of the popover.
8
+ * @cssprop --z-popover-theme--text - foreground color of the popover.
9
+ * @cssprop --z-popover-shadow-filter - drop-shadow filter of the popover.
8
10
  */
9
- function findScrollableParent(element) {
10
- let parent = element.parentNode;
11
- while (parent && parent !== documentElement) {
12
- const { overflow, overflowX, overflowY } = window.getComputedStyle(parent);
13
- if (overflow === 'hidden' ||
14
- overflowY === 'hidden' ||
15
- overflowX === 'hidden') {
16
- return parent;
17
- }
18
- if ((parent.scrollHeight > parent.clientHeight && overflow !== 'visible' && overflowY !== 'visible') ||
19
- (parent.scrollWidth > parent.clientWidth && overflow !== 'visible' && overflowX !== 'visible')) {
20
- return parent;
21
- }
22
- parent = parent.parentNode;
23
- }
24
- return documentElement;
25
- }
26
- /**
27
- * Calculate computed offset.
28
- * It includes matrix transformations.
29
- * @param element The target element.
30
- * @param targetParentOffset The relative offset parent.
31
- * @return A client rect object.
32
- */
33
- function computeOffset(element, targetParentOffset) {
34
- const rect = element.getBoundingClientRect();
35
- const width = rect.width;
36
- const height = rect.height;
37
- let top = 0;
38
- let left = 0;
39
- let offsetParent = element;
40
- while (offsetParent && offsetParent != targetParentOffset) {
41
- left += offsetParent.offsetLeft;
42
- // document.body sometimes has offsetTop == 0 but still has an
43
- // offset because of children margins!
44
- if (offsetParent === document.body) {
45
- top += offsetParent.getBoundingClientRect().top + window.scrollY;
46
- }
47
- else {
48
- top += offsetParent.offsetTop;
49
- }
50
- if (window.DOMMatrix) {
51
- const style = window.getComputedStyle(offsetParent);
52
- const transform = style.transform || style.webkitTransform;
53
- const domMatrix = new DOMMatrix(transform);
54
- if (domMatrix) {
55
- left += domMatrix.m41;
56
- if (offsetParent !== document.body) {
57
- top += domMatrix.m42;
58
- }
59
- }
60
- }
61
- if (!offsetParent.offsetParent) {
62
- break;
63
- }
64
- offsetParent = offsetParent.offsetParent;
65
- }
66
- let parentWidth;
67
- let parentHeight;
68
- if (offsetParent === document.body) {
69
- parentWidth = window.innerWidth;
70
- parentHeight = window.innerHeight;
71
- }
72
- else {
73
- parentWidth = offsetParent.offsetWidth;
74
- parentHeight = offsetParent.offsetHeight;
75
- }
76
- const right = parentWidth - left - rect.width;
77
- const bottom = parentHeight - top - rect.height;
78
- return { top, right, bottom, left, width, height };
79
- }
80
11
  export class ZTooltip {
81
12
  constructor() {
82
13
  /** Tooltip position. */
83
- this.type = TooltipPosition.AUTO;
14
+ this.position = PopoverPositions.AUTO;
15
+ /** Enable tooltip dark mode. */
16
+ this.dark = false;
84
17
  /**
85
18
  * The open state of the tooltip.
86
19
  */
87
20
  this.open = false;
88
21
  }
89
- validateType(newValue) {
90
- if (newValue &&
91
- Object
92
- .values(TooltipPosition)
93
- .every((position) => newValue !== position)) {
94
- this.type = TooltipPosition.AUTO;
95
- }
96
- }
97
- onPositionChange() {
98
- this.positionChange.emit({ position: this.position });
99
- }
100
- disconnectedCallback() {
101
- cancelAnimationFrame(this.animationFrameRequestId);
102
- }
103
- /**
104
- * Setup tooltip behaviors on opening.
105
- */
106
- onOpen() {
107
- cancelAnimationFrame(this.animationFrameRequestId);
108
- if (this.content) {
109
- return;
110
- }
111
- if (this.open) {
112
- const setPosition = () => {
113
- if (this.open) {
114
- this.setPosition();
115
- this.animationFrameRequestId = requestAnimationFrame(setPosition);
116
- }
117
- };
118
- setPosition();
119
- }
120
- else {
121
- const style = this.host.style;
122
- style.removeProperty("top");
123
- style.removeProperty("right");
124
- style.removeProperty("bottom");
125
- style.removeProperty("left");
126
- }
127
- }
128
- /**
129
- * Set the position of the tooltip.
130
- */
131
- setPosition() {
132
- let element;
133
- if (typeof this.bindTo === "string") {
134
- element = this.host.ownerDocument.querySelector(this.bindTo);
135
- }
136
- else if (this.bindTo) {
137
- element = this.bindTo;
138
- }
139
- else {
140
- element = this.host.parentElement;
141
- }
142
- if (!element) {
143
- return;
144
- }
145
- const scrollContainer = findScrollableParent(element);
146
- const scrollingBoundingRect = scrollContainer.getBoundingClientRect();
147
- const offsetContainer = this.host.offsetParent;
148
- const relativeBoundingRect = offsetContainer ? computeOffset(offsetContainer, scrollContainer) : { top: 0, right: 0, bottom: 0, left: 0 };
149
- const boundingRect = computeOffset(element, scrollContainer);
150
- const top = boundingRect.top - scrollContainer.scrollTop;
151
- const bottom = scrollingBoundingRect.height - (boundingRect.top + boundingRect.height) + scrollContainer.scrollTop;
152
- const left = boundingRect.left - scrollContainer.scrollLeft;
153
- const right = scrollingBoundingRect.width - (boundingRect.left + boundingRect.width) + scrollContainer.scrollLeft;
154
- const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
155
- const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
156
- const availableTop = Math.min(top, top + scrollingBoundingRect.top);
157
- const availableBottom = Math.min(bottom, bottom - overflowBottom);
158
- const availableLeft = Math.min(left, left + scrollingBoundingRect.left);
159
- const availableRight = Math.min(right, right - overflowRight);
160
- const availableHeight = availableTop + availableBottom + boundingRect.height;
161
- const availableWidth = availableLeft + availableRight + boundingRect.width;
162
- let position = this.type;
163
- if (position === TooltipPosition.AUTO) {
164
- /**
165
- * The `AUTO` position tries to place the tooltip in the "safest" area,
166
- * where there's more space available.
167
- */
168
- const positions = [];
169
- if (availableTop / availableHeight > 0.9) {
170
- positions.unshift(TooltipPosition.TOP);
171
- }
172
- else if (availableTop / availableHeight > 0.6) {
173
- positions.push(TooltipPosition.TOP);
174
- }
175
- else if (availableTop / availableHeight < 0.1) {
176
- positions.unshift(TooltipPosition.BOTTOM);
177
- }
178
- else {
179
- positions.push(TooltipPosition.BOTTOM);
180
- }
181
- if (availableLeft / availableWidth > 0.6) {
182
- positions.push(TooltipPosition.LEFT);
183
- }
184
- else if (availableLeft / availableWidth < 0.4) {
185
- positions.push(TooltipPosition.RIGHT);
186
- }
187
- position = positions.join("_");
188
- }
189
- const style = this.host.style;
190
- if (!this.content) {
191
- style.position = "absolute";
192
- }
193
- const offsetTop = boundingRect.top - relativeBoundingRect.top;
194
- const offsetRight = boundingRect.right - relativeBoundingRect.right;
195
- const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
196
- const offsetLeft = boundingRect.left - relativeBoundingRect.left;
197
- if (position === TooltipPosition.TOP ||
198
- position === TooltipPosition.TOP_RIGHT ||
199
- position === TooltipPosition.TOP_LEFT) {
200
- style.top = "auto";
201
- style.bottom = `${offsetBottom + boundingRect.height}px`;
202
- }
203
- if (position === TooltipPosition.BOTTOM ||
204
- position === TooltipPosition.BOTTOM_RIGHT ||
205
- position === TooltipPosition.BOTTOM_LEFT) {
206
- style.top = `${offsetTop + boundingRect.height}px`;
207
- style.bottom = "auto";
208
- }
209
- if (position === TooltipPosition.TOP ||
210
- position === TooltipPosition.BOTTOM) {
211
- style.left = `${offsetLeft +
212
- (boundingRect.width / 2) -
213
- (this.host.clientWidth / 2)}px`;
214
- }
215
- if (position === TooltipPosition.TOP_RIGHT ||
216
- position === TooltipPosition.BOTTOM_RIGHT) {
217
- style.right = "auto";
218
- style.left = `${offsetLeft + boundingRect.width}px`;
219
- }
220
- if (position === TooltipPosition.TOP_LEFT ||
221
- position === TooltipPosition.BOTTOM_LEFT) {
222
- style.left = "auto";
223
- style.right = `${offsetRight + boundingRect.width}px`;
224
- }
225
- if (position === TooltipPosition.RIGHT ||
226
- position === TooltipPosition.LEFT) {
227
- style.top = `${offsetTop +
228
- (boundingRect.height / 2) -
229
- (this.host.clientHeight / 2)}px`;
230
- style.bottom = "auto";
231
- }
232
- if (position === TooltipPosition.RIGHT) {
233
- style.right = "auto";
234
- style.left = `${offsetLeft + boundingRect.width}px`;
235
- }
236
- if (position === TooltipPosition.LEFT) {
237
- style.left = "auto";
238
- style.right = `${offsetRight + boundingRect.width}px`;
239
- }
240
- this.position = position;
241
- }
242
- componentWillLoad() {
243
- // Keep backward compatibility
244
- if (this.content) {
245
- this.open = true;
246
- }
247
- this.validateType(this.type);
248
- this.onOpen();
22
+ onPopoverOpenChange() {
23
+ this.open = this.popover.open;
249
24
  }
250
25
  render() {
251
- if (this.content) {
252
- return (h(Host, { class: "legacy", position: this.type }, this.content));
253
- }
254
- return (h(Host, { position: this.position },
255
- h("slot", null)));
26
+ return h("z-popover", { ref: (el) => (this.popover = el), bindTo: this.bindTo, open: this.open, position: this.position, center: true, showArrow: true },
27
+ h("slot", null));
256
28
  }
257
29
  static get is() { return "z-tooltip"; }
258
30
  static get encapsulation() { return "shadow"; }
@@ -263,48 +35,46 @@ export class ZTooltip {
263
35
  "$": ["styles.css"]
264
36
  }; }
265
37
  static get properties() { return {
266
- "content": {
38
+ "position": {
267
39
  "type": "string",
268
- "mutable": false,
40
+ "mutable": true,
269
41
  "complexType": {
270
- "original": "string",
271
- "resolved": "string",
272
- "references": {}
42
+ "original": "PopoverPositions",
43
+ "resolved": "PopoverPositions.AUTO | PopoverPositions.BOTTOM | PopoverPositions.BOTTOM_LEFT | PopoverPositions.BOTTOM_RIGHT | PopoverPositions.LEFT | PopoverPositions.LEFT_BOTTOM | PopoverPositions.LEFT_TOP | PopoverPositions.RIGHT | PopoverPositions.RIGHT_BOTTOM | PopoverPositions.RIGHT_TOP | PopoverPositions.TOP | PopoverPositions.TOP_LEFT | PopoverPositions.TOP_RIGHT",
44
+ "references": {
45
+ "PopoverPositions": {
46
+ "location": "import",
47
+ "path": "../../../beans"
48
+ }
49
+ }
273
50
  },
274
51
  "required": false,
275
52
  "optional": false,
276
53
  "docs": {
277
- "tags": [{
278
- "name": "deprecated",
279
- "text": undefined
280
- }],
281
- "text": "Content text."
54
+ "tags": [],
55
+ "text": "Tooltip position."
282
56
  },
283
- "attribute": "content",
284
- "reflect": false
57
+ "attribute": "position",
58
+ "reflect": true,
59
+ "defaultValue": "PopoverPositions.AUTO"
285
60
  },
286
- "type": {
287
- "type": "string",
288
- "mutable": true,
61
+ "dark": {
62
+ "type": "boolean",
63
+ "mutable": false,
289
64
  "complexType": {
290
- "original": "TooltipPosition",
291
- "resolved": "TooltipPosition.AUTO | TooltipPosition.BOTTOM | TooltipPosition.BOTTOM_LEFT | TooltipPosition.BOTTOM_RIGHT | TooltipPosition.LEFT | TooltipPosition.RIGHT | TooltipPosition.TOP | TooltipPosition.TOP_LEFT | TooltipPosition.TOP_RIGHT",
292
- "references": {
293
- "TooltipPosition": {
294
- "location": "import",
295
- "path": "../../../beans/index"
296
- }
297
- }
65
+ "original": "boolean",
66
+ "resolved": "boolean",
67
+ "references": {}
298
68
  },
299
69
  "required": false,
300
70
  "optional": false,
301
71
  "docs": {
302
72
  "tags": [],
303
- "text": "Tooltip position."
73
+ "text": "Enable tooltip dark mode."
304
74
  },
305
- "attribute": "type",
306
- "reflect": false,
307
- "defaultValue": "TooltipPosition.AUTO"
75
+ "attribute": "dark",
76
+ "reflect": true,
77
+ "defaultValue": "false"
308
78
  },
309
79
  "open": {
310
80
  "type": "boolean",
@@ -346,34 +116,11 @@ export class ZTooltip {
346
116
  "reflect": false
347
117
  }
348
118
  }; }
349
- static get states() { return {
350
- "position": {}
351
- }; }
352
- static get events() { return [{
353
- "method": "positionChange",
354
- "name": "positionChange",
355
- "bubbles": true,
356
- "cancelable": true,
357
- "composed": true,
358
- "docs": {
359
- "tags": [],
360
- "text": "Position change event."
361
- },
362
- "complexType": {
363
- "original": "any",
364
- "resolved": "any",
365
- "references": {}
366
- }
367
- }]; }
368
- static get elementRef() { return "host"; }
369
- static get watchers() { return [{
370
- "propName": "type",
371
- "methodName": "validateType"
372
- }, {
373
- "propName": "position",
374
- "methodName": "onPositionChange"
375
- }, {
376
- "propName": "open",
377
- "methodName": "onOpen"
119
+ static get listeners() { return [{
120
+ "name": "openChange",
121
+ "method": "onPopoverOpenChange",
122
+ "target": undefined,
123
+ "capture": false,
124
+ "passive": false
378
125
  }]; }
379
126
  }
@@ -1,128 +1,16 @@
1
1
  :host {
2
2
  --z-tooltip-theme--surface: var(--color-surface01);
3
3
  --z-tooltip-theme--text: var(--color-text01);
4
- --arrow-size: 6px;
5
- --edge-offset: calc(-1 * (var(--arrow-size) + calc(var(--space-unit) * 2)));
6
-
7
- position: relative;
8
- display: none;
9
- align-items: center;
10
- justify-content: center;
11
- padding: var(--space-unit);
12
- min-width: calc(var(--space-unit) * 8);
13
- min-height: calc(var(--space-unit) * 4);
14
- color: var(--z-tooltip-theme--text);
15
- fill: currentColor;
16
- font-family: var(--font-family-sans);
17
- text-align: center;
18
- border-radius: var(--border-radius-small);
19
- background: var(--z-tooltip-theme--surface);
20
- filter: drop-shadow(0 4px 8px var(--shadow-color-base));
21
- will-change: filter;
22
- }
23
-
24
- :host(.legacy) {
25
- display: inline-flex;
26
- padding: calc(var(--space-unit) * 2);
27
- min-width: auto;
28
- min-height: auto;
29
- max-width: 200px;
30
- font-style: italic;
31
- line-height: 16px;
32
- letter-spacing: 0.32px;
33
- font-size: 12px;
34
- border: var(--border-size-small) solid var(--gray200);
35
- border-radius: var(--border-radius);
36
- filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.08));
37
- }
38
-
39
- :host(.legacy)::before {
40
- --arrow-size: 14px;
41
- }
42
-
43
- :host([position])::before {
44
- --arrow-edge-offset: calc(100% - var(--arrow-size) - var(--space-unit));
45
- --arrow-center-x-offset: calc(50% - calc(var(--arrow-size) / 2));
46
- --arrow-center-y-offset: calc(100% - calc(var(--arrow-size) / 2));
47
-
48
- content: '';
49
- position: absolute;
50
- width: var(--arrow-size);
51
- height: var(--arrow-size);
52
- background: inherit;
53
- transform: rotate(45deg);
54
- }
55
-
56
- :host([open][style*='top:']),
57
- :host([open][style*='inset:']) {
58
- display: inline-flex;
59
- }
60
-
61
- :host([position^='top']) {
62
- margin-bottom: var(--space-unit);
63
- }
64
-
65
- :host([position='right']) {
66
- margin-left: var(--space-unit);
67
- }
68
-
69
- :host([position='top_right']),
70
- :host([position='bottom_right']) {
71
- margin-left: var(--edge-offset);
72
- }
73
-
74
- :host([position^='bottom']) {
75
- margin-top: var(--space-unit);
76
- }
77
-
78
- :host([position='left']) {
79
- margin-right: var(--space-unit);
80
- }
81
-
82
- :host([position='top_left']),
83
- :host([position='bottom_left']) {
84
- margin-right: var(--edge-offset);
85
- }
86
-
87
- /* Arrow style */
88
-
89
- :host([position^='top'])::before {
90
- top: var(--arrow-center-y-offset);
91
- }
92
-
93
- :host([position^='bottom'])::before {
94
- bottom: var(--arrow-center-y-offset);
95
- }
96
-
97
- :host([position='top'])::before,
98
- :host([position='bottom'])::before {
99
- left: var(--arrow-center-x-offset);
100
- }
101
-
102
- :host([position='right'])::before,
103
- :host([position='left'])::before {
104
- top: var(--arrow-center-x-offset);
105
- }
106
-
107
- :host([position='right'])::before {
108
- right: var(--arrow-center-y-offset);
109
- }
110
-
111
- :host([position='top_right'])::before,
112
- :host([position='bottom_right'])::before {
113
- right: var(--arrow-edge-offset);
114
- }
115
-
116
- :host([position='left'])::before {
117
- left: var(--arrow-center-y-offset);
4
+ --z-tooltip-shadow-filter: drop-shadow(0 1px 2px var(--shadow-color-base));
118
5
  }
119
6
 
120
- :host([position='top_left'])::before,
121
- :host([position='bottom_left'])::before {
122
- left: var(--arrow-edge-offset);
7
+ :host([dark]) z-popover {
8
+ --z-popover-theme--surface: var(--color-surface05);
123
9
  }
124
10
 
125
- ::slotted(*) {
126
- flex: 1 auto;
127
- overflow: auto;
11
+ z-popover {
12
+ --z-popover-padding: var(--space-unit);
13
+ --z-popover-theme--surface: var(--z-tooltip-theme--surface);
14
+ --z-popover-theme--text: var(--z-tooltip-theme--text);
15
+ --z-popover-shadow-filter: var(--z-tooltip-shadow-filter);
128
16
  }