@zanichelli/albe-web-components 4.0.4 → 4.2.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 (303) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/cjs/{index-6b6a3299.js → index-0e75c8cc.js} +16 -45
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/utils-155eec04.js +2706 -0
  6. package/dist/cjs/{utils-8cc414c9.js → utils-97262bbd.js} +1 -1
  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 +338 -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 +16 -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/inputs/z-input/styles.css +2 -0
  69. package/dist/collection/components/notification/z-tooltip/index.js +45 -298
  70. package/dist/collection/components/notification/z-tooltip/styles.css +8 -120
  71. package/dist/collection/components/z-contextual-menu/index.js +26 -16
  72. package/dist/collection/components/z-contextual-menu/styles.css +16 -5
  73. package/dist/collection/components/z-popover/index.js +381 -166
  74. package/dist/collection/components/z-popover/styles.css +91 -180
  75. package/dist/collection/components/z-table/z-table-header/index.js +10 -16
  76. package/dist/collection/components/z-table/z-table-header/styles.css +7 -1
  77. package/dist/collection/deprecated/z-popover-deprecated/index.js +489 -0
  78. package/dist/collection/deprecated/z-popover-deprecated/styles.css +134 -0
  79. package/dist/collection/deprecated/z-tooltip-deprecated/index.js +379 -0
  80. package/dist/collection/deprecated/z-tooltip-deprecated/styles.css +128 -0
  81. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +2 -2
  82. package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +1 -1
  83. package/dist/esm/{index-46ca649a.js → index-c1ce8cab.js} +17 -46
  84. package/dist/esm/index.js +2 -2
  85. package/dist/esm/loader.js +1 -1
  86. package/dist/esm/{utils-5d5963ef.js → utils-99c70c57.js} +2 -2
  87. package/dist/esm/utils-fa9f38ec.js +2701 -0
  88. package/dist/esm/web-components-library.js +1 -1
  89. package/dist/esm/z-app-switcher_9.entry.js +724 -0
  90. package/dist/esm/z-aria-alert.entry.js +1 -1
  91. package/dist/esm/z-avatar.entry.js +1 -1
  92. package/dist/esm/z-button-deprecated.entry.js +1 -1
  93. package/dist/esm/z-button.entry.js +40 -0
  94. package/dist/esm/z-card.entry.js +65 -0
  95. package/dist/esm/z-carousel.entry.js +20 -0
  96. package/dist/esm/z-chip.entry.js +2 -2
  97. package/dist/esm/z-combobox.entry.js +2 -2
  98. package/dist/esm/z-contextual-menu.entry.js +19 -8
  99. package/dist/esm/z-cookiebar.entry.js +1 -1
  100. package/dist/esm/z-date-picker.entry.js +9 -2700
  101. package/dist/esm/z-file-upload.entry.js +2 -2
  102. package/dist/esm/z-file.entry.js +10 -9
  103. package/dist/esm/z-footer.entry.js +1 -1
  104. package/dist/esm/z-ghost-loading.entry.js +15 -0
  105. package/dist/esm/z-input-deprecated.entry.js +2 -2
  106. package/dist/esm/z-input-label_2.entry.js +2 -2
  107. package/dist/esm/z-list-group.entry.js +1 -1
  108. package/dist/esm/z-list_2.entry.js +1 -1
  109. package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
  110. package/dist/esm/z-messages-pocket.entry.js +1 -1
  111. package/dist/esm/z-modal-login.entry.js +1 -1
  112. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  113. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  114. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  115. package/dist/esm/z-myz-card-info.entry.js +4 -4
  116. package/dist/esm/z-myz-card_4.entry.js +1 -1
  117. package/dist/esm/z-myz-list-item.entry.js +2 -2
  118. package/dist/esm/z-myz-topbar.entry.js +1 -1
  119. package/dist/esm/z-navigation-tab-link.entry.js +1 -1
  120. package/dist/esm/z-navigation-tab.entry.js +1 -1
  121. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  122. package/dist/esm/z-offcanvas.entry.js +59 -0
  123. package/dist/esm/z-otp.entry.js +1 -1
  124. package/dist/esm/z-pagination-bar.entry.js +2 -2
  125. package/dist/esm/z-pocket_3.entry.js +2 -2
  126. package/dist/esm/z-popover-deprecated.entry.js +334 -0
  127. package/dist/esm/z-popover.entry.js +305 -98
  128. package/dist/esm/z-section-title.entry.js +1 -1
  129. package/dist/esm/z-skip-to-content.entry.js +2 -2
  130. package/dist/esm/z-slideshow.entry.js +2 -2
  131. package/dist/esm/z-status-tag.entry.js +1 -1
  132. package/dist/esm/z-table-cell.entry.js +1 -1
  133. package/dist/esm/z-table-header.entry.js +8 -11
  134. package/dist/esm/z-table-row.entry.js +1 -1
  135. package/dist/esm/z-table.entry.js +1 -1
  136. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  137. package/dist/esm/z-toast-notification.entry.js +1 -1
  138. package/dist/esm/z-toggle-switch.entry.js +2 -2
  139. package/dist/esm/z-tooltip-deprecated.entry.js +270 -0
  140. package/dist/esm/z-tooltip.entry.js +9 -252
  141. package/dist/types/beans/index.d.ts +7 -33
  142. package/dist/types/components/date-picker/utils.d.ts +3 -0
  143. package/dist/types/components/{z-date-picker → date-picker/z-date-picker}/index.d.ts +3 -8
  144. package/dist/types/components/date-picker/z-range-picker/index.d.ts +43 -0
  145. package/dist/types/components/file-upload/z-file/index.d.ts +3 -3
  146. package/dist/types/components/notification/z-tooltip/index.d.ts +14 -29
  147. package/dist/types/components/z-contextual-menu/index.d.ts +8 -4
  148. package/dist/types/components/z-popover/index.d.ts +57 -28
  149. package/dist/types/components/z-table/z-table-header/index.d.ts +2 -1
  150. package/dist/types/components.d.ts +210 -35
  151. package/dist/types/deprecated/z-popover-deprecated/index.d.ts +57 -0
  152. package/dist/types/deprecated/z-tooltip-deprecated/index.d.ts +41 -0
  153. package/dist/web-components-library/index.esm.js +1 -1
  154. package/dist/web-components-library/{p-4af112a7.entry.js → p-053846df.entry.js} +1 -1
  155. package/dist/web-components-library/{p-e2102da3.entry.js → p-0f6edb58.entry.js} +1 -1
  156. package/dist/web-components-library/p-10be0462.entry.js +1 -0
  157. package/dist/web-components-library/{p-b15efba3.entry.js → p-15fa8ca4.entry.js} +1 -1
  158. package/dist/web-components-library/{p-02ea7e49.entry.js → p-1a76a57d.entry.js} +1 -1
  159. package/{www/build/p-1f73a6d8.entry.js → dist/web-components-library/p-1b1717c9.entry.js} +1 -1
  160. package/{www/build/p-3edbd35c.entry.js → dist/web-components-library/p-1d5aa37b.entry.js} +1 -1
  161. package/dist/web-components-library/{p-9074e1a5.entry.js → p-1eb357e8.entry.js} +1 -1
  162. package/dist/web-components-library/{p-57d1acdc.entry.js → p-28e4abc4.entry.js} +1 -1
  163. package/dist/web-components-library/p-41f33f7b.entry.js +1 -0
  164. package/dist/web-components-library/{p-d33fea26.entry.js → p-46aecb12.entry.js} +1 -1
  165. package/dist/web-components-library/{p-63ccb013.entry.js → p-4be52491.entry.js} +1 -1
  166. package/{www/build/p-55ddbfe9.entry.js → dist/web-components-library/p-4d6f2f01.entry.js} +1 -1
  167. package/dist/web-components-library/p-514719d2.entry.js +1 -0
  168. package/dist/web-components-library/p-53dade4b.entry.js +16 -0
  169. package/{www/build/p-df4e963b.entry.js → dist/web-components-library/p-55f09348.entry.js} +1 -1
  170. package/dist/web-components-library/p-5789bbe7.entry.js +1 -0
  171. package/dist/web-components-library/{p-de25c7f0.entry.js → p-5dcbba4e.entry.js} +1 -1
  172. package/dist/web-components-library/{p-9f9e4266.entry.js → p-659fc25e.entry.js} +1 -1
  173. package/dist/web-components-library/{p-8fbc2ce9.entry.js → p-6bbd53ec.entry.js} +1 -1
  174. package/dist/web-components-library/{p-5be162d5.entry.js → p-6c52ed1b.entry.js} +1 -1
  175. package/dist/web-components-library/p-78df5dbf.entry.js +1 -0
  176. package/dist/web-components-library/{p-b9da171f.js → p-7f1cc90f.js} +1 -1
  177. package/dist/web-components-library/{p-0f17db30.entry.js → p-805af37b.entry.js} +1 -1
  178. package/dist/web-components-library/p-870dabdc.entry.js +1 -0
  179. package/dist/web-components-library/{p-43329b81.entry.js → p-897f9491.entry.js} +1 -1
  180. package/dist/web-components-library/{p-3c111c2a.entry.js → p-8ce4b2c4.entry.js} +1 -1
  181. package/dist/web-components-library/p-8cf3798f.entry.js +1 -0
  182. package/dist/web-components-library/p-8ddbbe24.entry.js +1 -0
  183. package/{www/build/p-dffdf60a.entry.js → dist/web-components-library/p-91ec5eb4.entry.js} +1 -1
  184. package/dist/web-components-library/{p-292bc0c4.entry.js → p-92895bce.entry.js} +1 -1
  185. package/dist/web-components-library/p-970bd07c.entry.js +1 -0
  186. package/dist/web-components-library/{p-6c6b4e80.entry.js → p-990b8236.entry.js} +1 -1
  187. package/dist/web-components-library/{p-51cdabeb.entry.js → p-99a562cb.entry.js} +1 -1
  188. package/dist/web-components-library/p-b359a3b4.entry.js +1 -0
  189. package/dist/web-components-library/p-b6cd034b.js +1 -0
  190. package/dist/web-components-library/{p-edb8d2ab.entry.js → p-b9cc2dfc.entry.js} +1 -1
  191. package/dist/web-components-library/p-bfc78a89.entry.js +1 -0
  192. package/dist/web-components-library/{p-d995d9dc.entry.js → p-c042e745.entry.js} +1 -1
  193. package/dist/web-components-library/{p-ccdebe3f.entry.js → p-c8383456.entry.js} +1 -1
  194. package/dist/web-components-library/{p-0e256fdc.entry.js → p-caa21a6f.entry.js} +1 -1
  195. package/{www/build/p-bfe5693d.entry.js → dist/web-components-library/p-cd88cead.entry.js} +1 -1
  196. package/dist/web-components-library/p-d04f3cb6.entry.js +1 -0
  197. package/{www/build/p-9a5ee6c2.entry.js → dist/web-components-library/p-d6361790.entry.js} +1 -1
  198. package/dist/web-components-library/{p-69ef6ddc.entry.js → p-dd0efdbf.entry.js} +1 -1
  199. package/dist/web-components-library/p-e007cd0b.entry.js +1 -0
  200. package/dist/web-components-library/{p-0a0aee35.entry.js → p-e74b3fd9.entry.js} +1 -1
  201. package/{www/build/p-d97a2db9.entry.js → dist/web-components-library/p-eca4cb15.entry.js} +1 -1
  202. package/dist/web-components-library/p-ed1cd6b1.js +1 -0
  203. package/dist/web-components-library/p-f26251dd.entry.js +1 -0
  204. package/dist/web-components-library/p-f61fd81e.entry.js +1 -0
  205. package/dist/web-components-library/{p-1727c1c8.entry.js → p-f78d6123.entry.js} +1 -1
  206. package/dist/web-components-library/p-fbfaa699.entry.js +1 -0
  207. package/dist/web-components-library/{p-ba29bc12.entry.js → p-fdd91263.entry.js} +1 -1
  208. package/dist/web-components-library/{p-fe927bf4.entry.js → p-ff4a0f6f.entry.js} +1 -1
  209. package/dist/web-components-library/web-components-library.esm.js +1 -1
  210. package/package.json +1 -1
  211. package/react/components.d.ts +3 -0
  212. package/react/components.js +5 -2
  213. package/react/components.js.map +1 -1
  214. package/www/build/index.esm.js +1 -1
  215. package/www/build/{p-4af112a7.entry.js → p-053846df.entry.js} +1 -1
  216. package/www/build/{p-e2102da3.entry.js → p-0f6edb58.entry.js} +1 -1
  217. package/www/build/p-10be0462.entry.js +1 -0
  218. package/www/build/{p-b15efba3.entry.js → p-15fa8ca4.entry.js} +1 -1
  219. package/www/build/{p-02ea7e49.entry.js → p-1a76a57d.entry.js} +1 -1
  220. package/{dist/web-components-library/p-1f73a6d8.entry.js → www/build/p-1b1717c9.entry.js} +1 -1
  221. package/{dist/web-components-library/p-3edbd35c.entry.js → www/build/p-1d5aa37b.entry.js} +1 -1
  222. package/www/build/{p-9074e1a5.entry.js → p-1eb357e8.entry.js} +1 -1
  223. package/www/build/{p-57d1acdc.entry.js → p-28e4abc4.entry.js} +1 -1
  224. package/www/build/p-41f33f7b.entry.js +1 -0
  225. package/www/build/{p-d33fea26.entry.js → p-46aecb12.entry.js} +1 -1
  226. package/www/build/{p-63ccb013.entry.js → p-4be52491.entry.js} +1 -1
  227. package/{dist/web-components-library/p-55ddbfe9.entry.js → www/build/p-4d6f2f01.entry.js} +1 -1
  228. package/www/build/p-514719d2.entry.js +1 -0
  229. package/www/build/p-53dade4b.entry.js +16 -0
  230. package/{dist/web-components-library/p-df4e963b.entry.js → www/build/p-55f09348.entry.js} +1 -1
  231. package/www/build/p-5789bbe7.entry.js +1 -0
  232. package/www/build/{p-de25c7f0.entry.js → p-5dcbba4e.entry.js} +1 -1
  233. package/www/build/{p-9f9e4266.entry.js → p-659fc25e.entry.js} +1 -1
  234. package/www/build/{p-8fbc2ce9.entry.js → p-6bbd53ec.entry.js} +1 -1
  235. package/www/build/{p-5be162d5.entry.js → p-6c52ed1b.entry.js} +1 -1
  236. package/www/build/p-78df5dbf.entry.js +1 -0
  237. package/www/build/{p-b9da171f.js → p-7f1cc90f.js} +1 -1
  238. package/www/build/{p-0f17db30.entry.js → p-805af37b.entry.js} +1 -1
  239. package/www/build/p-870dabdc.entry.js +1 -0
  240. package/www/build/{p-43329b81.entry.js → p-897f9491.entry.js} +1 -1
  241. package/www/build/{p-3c111c2a.entry.js → p-8ce4b2c4.entry.js} +1 -1
  242. package/www/build/p-8cf3798f.entry.js +1 -0
  243. package/www/build/p-8ddbbe24.entry.js +1 -0
  244. package/{dist/web-components-library/p-dffdf60a.entry.js → www/build/p-91ec5eb4.entry.js} +1 -1
  245. package/www/build/{p-292bc0c4.entry.js → p-92895bce.entry.js} +1 -1
  246. package/www/build/p-970bd07c.entry.js +1 -0
  247. package/www/build/p-975e9d42.js +129 -0
  248. package/www/build/{p-6c6b4e80.entry.js → p-990b8236.entry.js} +1 -1
  249. package/www/build/{p-51cdabeb.entry.js → p-99a562cb.entry.js} +1 -1
  250. package/www/build/p-b359a3b4.entry.js +1 -0
  251. package/www/build/p-b6cd034b.js +1 -0
  252. package/www/build/{p-edb8d2ab.entry.js → p-b9cc2dfc.entry.js} +1 -1
  253. package/www/build/p-bfc78a89.entry.js +1 -0
  254. package/www/build/{p-d995d9dc.entry.js → p-c042e745.entry.js} +1 -1
  255. package/www/build/{p-ccdebe3f.entry.js → p-c8383456.entry.js} +1 -1
  256. package/www/build/{p-0e256fdc.entry.js → p-caa21a6f.entry.js} +1 -1
  257. package/{dist/web-components-library/p-bfe5693d.entry.js → www/build/p-cd88cead.entry.js} +1 -1
  258. package/www/build/p-d04f3cb6.entry.js +1 -0
  259. package/{dist/web-components-library/p-9a5ee6c2.entry.js → www/build/p-d6361790.entry.js} +1 -1
  260. package/www/build/{p-69ef6ddc.entry.js → p-dd0efdbf.entry.js} +1 -1
  261. package/www/build/p-e007cd0b.entry.js +1 -0
  262. package/www/build/{p-0a0aee35.entry.js → p-e74b3fd9.entry.js} +1 -1
  263. package/{dist/web-components-library/p-d97a2db9.entry.js → www/build/p-eca4cb15.entry.js} +1 -1
  264. package/www/build/p-ed1cd6b1.js +1 -0
  265. package/www/build/p-f26251dd.entry.js +1 -0
  266. package/www/build/p-f61fd81e.entry.js +1 -0
  267. package/www/build/{p-1727c1c8.entry.js → p-f78d6123.entry.js} +1 -1
  268. package/www/build/p-fbfaa699.entry.js +1 -0
  269. package/www/build/p-fcff1237.css +812 -0
  270. package/www/build/{p-ba29bc12.entry.js → p-fdd91263.entry.js} +1 -1
  271. package/www/build/{p-fe927bf4.entry.js → p-ff4a0f6f.entry.js} +1 -1
  272. package/www/build/web-components-library.esm.js +1 -1
  273. package/www/index.html +6 -70
  274. package/dist/cjs/z-app-switcher_11.cjs.entry.js +0 -377
  275. package/dist/cjs/z-input_2.cjs.entry.js +0 -228
  276. package/dist/esm/z-app-switcher_11.entry.js +0 -363
  277. package/dist/esm/z-input_2.entry.js +0 -223
  278. package/dist/web-components-library/p-0d29d851.entry.js +0 -1
  279. package/dist/web-components-library/p-0e408871.entry.js +0 -1
  280. package/dist/web-components-library/p-0ef6c549.entry.js +0 -1
  281. package/dist/web-components-library/p-20d62443.entry.js +0 -1
  282. package/dist/web-components-library/p-562e2d52.entry.js +0 -1
  283. package/dist/web-components-library/p-5eacbfc7.entry.js +0 -1
  284. package/dist/web-components-library/p-6218514a.entry.js +0 -1
  285. package/dist/web-components-library/p-71accd8e.entry.js +0 -1
  286. package/dist/web-components-library/p-7c6d4440.entry.js +0 -1
  287. package/dist/web-components-library/p-9f5d707a.js +0 -1
  288. package/dist/web-components-library/p-a8875b97.entry.js +0 -16
  289. package/dist/web-components-library/p-e2431b92.entry.js +0 -1
  290. package/www/build/p-0d29d851.entry.js +0 -1
  291. package/www/build/p-0e408871.entry.js +0 -1
  292. package/www/build/p-0ef6c549.entry.js +0 -1
  293. package/www/build/p-20d62443.entry.js +0 -1
  294. package/www/build/p-562e2d52.entry.js +0 -1
  295. package/www/build/p-5eacbfc7.entry.js +0 -1
  296. package/www/build/p-6218514a.entry.js +0 -1
  297. package/www/build/p-71accd8e.entry.js +0 -1
  298. package/www/build/p-7614383b.js +0 -1
  299. package/www/build/p-7c6d4440.entry.js +0 -1
  300. package/www/build/p-88b56b6e.css +0 -1
  301. package/www/build/p-9f5d707a.js +0 -1
  302. package/www/build/p-a8875b97.entry.js +0 -16
  303. package/www/build/p-e2431b92.entry.js +0 -1
@@ -0,0 +1,274 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-84b7063a.js');
6
+ const index$1 = require('./index-0e75c8cc.js');
7
+
8
+ const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--arrow-size:6px;--edge-offset:calc(-1 * (var(--arrow-size) + calc(var(--space-unit) * 2)));position:relative;display:none;align-items:center;justify-content:center;padding:var(--space-unit);min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);color:var(--z-tooltip-theme--text);fill:currentColor;font-family:var(--font-family-sans);text-align:center;border-radius:var(--border-radius-small);background:var(--z-tooltip-theme--surface);filter:drop-shadow(0 4px 8px var(--shadow-color-base));will-change:filter}:host(.legacy){display:inline-flex;padding:calc(var(--space-unit) * 2);min-width:auto;min-height:auto;max-width:200px;font-style:italic;line-height:16px;letter-spacing:0.32px;font-size:12px;border:var(--border-size-small) solid var(--gray200);border-radius:var(--border-radius);filter:drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.08))}:host(.legacy)::before{--arrow-size:14px}:host([position])::before{--arrow-edge-offset:calc(100% - var(--arrow-size) - var(--space-unit));--arrow-center-x-offset:calc(50% - calc(var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - calc(var(--arrow-size) / 2));content:'';position:absolute;width:var(--arrow-size);height:var(--arrow-size);background:inherit;transform:rotate(45deg)}:host([open][style*='top:']),:host([open][style*='inset:']){display:inline-flex}:host([position^='top']){margin-bottom:var(--space-unit)}:host([position='right']){margin-left:var(--space-unit)}:host([position='top_right']),:host([position='bottom_right']){margin-left:var(--edge-offset)}:host([position^='bottom']){margin-top:var(--space-unit)}:host([position='left']){margin-right:var(--space-unit)}:host([position='top_left']),:host([position='bottom_left']){margin-right:var(--edge-offset)}:host([position^='top'])::before{top:var(--arrow-center-y-offset)}:host([position^='bottom'])::before{bottom:var(--arrow-center-y-offset)}:host([position='top'])::before,:host([position='bottom'])::before{left:var(--arrow-center-x-offset)}:host([position='right'])::before,:host([position='left'])::before{top:var(--arrow-center-x-offset)}:host([position='right'])::before{right:var(--arrow-center-y-offset)}:host([position='top_right'])::before,:host([position='bottom_right'])::before{right:var(--arrow-edge-offset)}:host([position='left'])::before{left:var(--arrow-center-y-offset)}:host([position='top_left'])::before,:host([position='bottom_left'])::before{left:var(--arrow-edge-offset)}::slotted(*){flex:1 auto;overflow:auto}";
9
+
10
+ const documentElement = document.documentElement;
11
+ /**
12
+ * Find the closest scrollable parent of a node.
13
+ *
14
+ * @param {Element} element The node
15
+ */
16
+ function findScrollableParent(element) {
17
+ let parent = element.parentNode;
18
+ while (parent && parent !== documentElement) {
19
+ const { overflow, overflowX, overflowY } = window.getComputedStyle(parent);
20
+ if (overflow === 'hidden' ||
21
+ overflowY === 'hidden' ||
22
+ 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 = parent.parentNode;
30
+ }
31
+ return documentElement;
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
+ }
87
+ const ZTooltipDeprecated = class {
88
+ constructor(hostRef) {
89
+ index.registerInstance(this, hostRef);
90
+ this.positionChange = index.createEvent(this, "positionChange", 7);
91
+ /** Tooltip position. */
92
+ this.type = index$1.PopoverPositions.AUTO;
93
+ /**
94
+ * The open state of the tooltip.
95
+ */
96
+ this.open = false;
97
+ }
98
+ validateType(newValue) {
99
+ if (newValue &&
100
+ Object
101
+ .values(index$1.PopoverPositions)
102
+ .every((position) => newValue !== position)) {
103
+ this.type = index$1.PopoverPositions.AUTO;
104
+ }
105
+ }
106
+ onPositionChange() {
107
+ this.positionChange.emit({ position: this.position });
108
+ }
109
+ disconnectedCallback() {
110
+ cancelAnimationFrame(this.animationFrameRequestId);
111
+ }
112
+ /**
113
+ * Setup tooltip behaviors on opening.
114
+ */
115
+ onOpen() {
116
+ cancelAnimationFrame(this.animationFrameRequestId);
117
+ if (this.content) {
118
+ return;
119
+ }
120
+ if (this.open) {
121
+ const setPosition = () => {
122
+ if (this.open) {
123
+ this.setPosition();
124
+ this.animationFrameRequestId = requestAnimationFrame(setPosition);
125
+ }
126
+ };
127
+ setPosition();
128
+ }
129
+ else {
130
+ const style = this.host.style;
131
+ style.removeProperty("top");
132
+ style.removeProperty("right");
133
+ style.removeProperty("bottom");
134
+ style.removeProperty("left");
135
+ }
136
+ }
137
+ /**
138
+ * Set the position of the tooltip.
139
+ */
140
+ setPosition() {
141
+ let element;
142
+ if (typeof this.bindTo === "string") {
143
+ element = this.host.ownerDocument.querySelector(this.bindTo);
144
+ }
145
+ else if (this.bindTo) {
146
+ element = this.bindTo;
147
+ }
148
+ else {
149
+ element = this.host.parentElement;
150
+ }
151
+ if (!element) {
152
+ return;
153
+ }
154
+ const scrollContainer = findScrollableParent(element);
155
+ const scrollingBoundingRect = scrollContainer.getBoundingClientRect();
156
+ const offsetContainer = this.host.offsetParent;
157
+ const relativeBoundingRect = offsetContainer ? computeOffset(offsetContainer, scrollContainer) : { top: 0, right: 0, bottom: 0, left: 0 };
158
+ const boundingRect = computeOffset(element, scrollContainer);
159
+ const top = boundingRect.top - scrollContainer.scrollTop;
160
+ const bottom = scrollingBoundingRect.height - (boundingRect.top + boundingRect.height) + scrollContainer.scrollTop;
161
+ const left = boundingRect.left - scrollContainer.scrollLeft;
162
+ const right = scrollingBoundingRect.width - (boundingRect.left + boundingRect.width) + scrollContainer.scrollLeft;
163
+ const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
164
+ const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
165
+ const availableTop = Math.min(top, top + scrollingBoundingRect.top);
166
+ const availableBottom = Math.min(bottom, bottom - overflowBottom);
167
+ const availableLeft = Math.min(left, left + scrollingBoundingRect.left);
168
+ const availableRight = Math.min(right, right - overflowRight);
169
+ const availableHeight = availableTop + availableBottom + boundingRect.height;
170
+ const availableWidth = availableLeft + availableRight + boundingRect.width;
171
+ let position = this.type;
172
+ if (position === index$1.PopoverPositions.AUTO) {
173
+ /**
174
+ * The `AUTO` position tries to place the tooltip in the "safest" area,
175
+ * where there's more space available.
176
+ */
177
+ const positions = [];
178
+ if (availableTop / availableHeight > 0.9) {
179
+ positions.unshift(index$1.PopoverPositions.TOP);
180
+ }
181
+ else if (availableTop / availableHeight > 0.6) {
182
+ positions.push(index$1.PopoverPositions.TOP);
183
+ }
184
+ else if (availableTop / availableHeight < 0.1) {
185
+ positions.unshift(index$1.PopoverPositions.BOTTOM);
186
+ }
187
+ else {
188
+ positions.push(index$1.PopoverPositions.BOTTOM);
189
+ }
190
+ if (availableLeft / availableWidth > 0.6) {
191
+ positions.push(index$1.PopoverPositions.LEFT);
192
+ }
193
+ else if (availableLeft / availableWidth < 0.4) {
194
+ positions.push(index$1.PopoverPositions.RIGHT);
195
+ }
196
+ position = positions.join("_");
197
+ }
198
+ const style = this.host.style;
199
+ if (!this.content) {
200
+ style.position = "absolute";
201
+ }
202
+ const offsetTop = boundingRect.top - relativeBoundingRect.top;
203
+ const offsetRight = boundingRect.right - relativeBoundingRect.right;
204
+ const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
205
+ const offsetLeft = boundingRect.left - relativeBoundingRect.left;
206
+ if (position === index$1.PopoverPositions.TOP ||
207
+ position === index$1.PopoverPositions.TOP_RIGHT ||
208
+ position === index$1.PopoverPositions.TOP_LEFT) {
209
+ style.top = "auto";
210
+ style.bottom = `${offsetBottom + boundingRect.height}px`;
211
+ }
212
+ if (position === index$1.PopoverPositions.BOTTOM ||
213
+ position === index$1.PopoverPositions.BOTTOM_RIGHT ||
214
+ position === index$1.PopoverPositions.BOTTOM_LEFT) {
215
+ style.top = `${offsetTop + boundingRect.height}px`;
216
+ style.bottom = "auto";
217
+ }
218
+ if (position === index$1.PopoverPositions.TOP ||
219
+ position === index$1.PopoverPositions.BOTTOM) {
220
+ style.left = `${offsetLeft +
221
+ (boundingRect.width / 2) -
222
+ (this.host.clientWidth / 2)}px`;
223
+ }
224
+ if (position === index$1.PopoverPositions.TOP_RIGHT ||
225
+ position === index$1.PopoverPositions.BOTTOM_RIGHT) {
226
+ style.right = "auto";
227
+ style.left = `${offsetLeft + boundingRect.width}px`;
228
+ }
229
+ if (position === index$1.PopoverPositions.TOP_LEFT ||
230
+ position === index$1.PopoverPositions.BOTTOM_LEFT) {
231
+ style.left = "auto";
232
+ style.right = `${offsetRight + boundingRect.width}px`;
233
+ }
234
+ if (position === index$1.PopoverPositions.RIGHT ||
235
+ position === index$1.PopoverPositions.LEFT) {
236
+ style.top = `${offsetTop +
237
+ (boundingRect.height / 2) -
238
+ (this.host.clientHeight / 2)}px`;
239
+ style.bottom = "auto";
240
+ }
241
+ if (position === index$1.PopoverPositions.RIGHT) {
242
+ style.right = "auto";
243
+ style.left = `${offsetLeft + boundingRect.width}px`;
244
+ }
245
+ if (position === index$1.PopoverPositions.LEFT) {
246
+ style.left = "auto";
247
+ style.right = `${offsetRight + boundingRect.width}px`;
248
+ }
249
+ this.position = position;
250
+ }
251
+ componentWillLoad() {
252
+ // Keep backward compatibility
253
+ if (this.content) {
254
+ this.open = true;
255
+ }
256
+ this.validateType(this.type);
257
+ this.onOpen();
258
+ }
259
+ render() {
260
+ if (this.content) {
261
+ return (index.h(index.Host, { class: "legacy", position: this.type }, this.content));
262
+ }
263
+ return (index.h(index.Host, { position: this.position }, index.h("slot", null)));
264
+ }
265
+ get host() { return index.getElement(this); }
266
+ static get watchers() { return {
267
+ "type": ["validateType"],
268
+ "position": ["onPositionChange"],
269
+ "open": ["onOpen"]
270
+ }; }
271
+ };
272
+ ZTooltipDeprecated.style = stylesCss;
273
+
274
+ exports.z_tooltip_deprecated = ZTooltipDeprecated;
@@ -3,271 +3,28 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-84b7063a.js');
6
- const index$1 = require('./index-6b6a3299.js');
6
+ const index$1 = require('./index-0e75c8cc.js');
7
7
 
8
- const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--arrow-size:6px;--edge-offset:calc(-1 * (var(--arrow-size) + calc(var(--space-unit) * 2)));position:relative;display:none;align-items:center;justify-content:center;padding:var(--space-unit);min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);color:var(--z-tooltip-theme--text);fill:currentColor;font-family:var(--font-family-sans);text-align:center;border-radius:var(--border-radius-small);background:var(--z-tooltip-theme--surface);filter:drop-shadow(0 4px 8px var(--shadow-color-base));will-change:filter}:host(.legacy){display:inline-flex;padding:calc(var(--space-unit) * 2);min-width:auto;min-height:auto;max-width:200px;font-style:italic;line-height:16px;letter-spacing:0.32px;font-size:12px;border:var(--border-size-small) solid var(--gray200);border-radius:var(--border-radius);filter:drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.08))}:host(.legacy)::before{--arrow-size:14px}:host([position])::before{--arrow-edge-offset:calc(100% - var(--arrow-size) - var(--space-unit));--arrow-center-x-offset:calc(50% - calc(var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - calc(var(--arrow-size) / 2));content:'';position:absolute;width:var(--arrow-size);height:var(--arrow-size);background:inherit;transform:rotate(45deg)}:host([open][style*='top:']),:host([open][style*='inset:']){display:inline-flex}:host([position^='top']){margin-bottom:var(--space-unit)}:host([position='right']){margin-left:var(--space-unit)}:host([position='top_right']),:host([position='bottom_right']){margin-left:var(--edge-offset)}:host([position^='bottom']){margin-top:var(--space-unit)}:host([position='left']){margin-right:var(--space-unit)}:host([position='top_left']),:host([position='bottom_left']){margin-right:var(--edge-offset)}:host([position^='top'])::before{top:var(--arrow-center-y-offset)}:host([position^='bottom'])::before{bottom:var(--arrow-center-y-offset)}:host([position='top'])::before,:host([position='bottom'])::before{left:var(--arrow-center-x-offset)}:host([position='right'])::before,:host([position='left'])::before{top:var(--arrow-center-x-offset)}:host([position='right'])::before{right:var(--arrow-center-y-offset)}:host([position='top_right'])::before,:host([position='bottom_right'])::before{right:var(--arrow-edge-offset)}:host([position='left'])::before{left:var(--arrow-center-y-offset)}:host([position='top_left'])::before,:host([position='bottom_left'])::before{left:var(--arrow-edge-offset)}::slotted(*){flex:1 auto;overflow:auto}";
8
+ const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--z-tooltip-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base))}:host([dark]) z-popover{--z-popover-theme--surface:var(--color-surface05)}z-popover{--z-popover-padding:var(--space-unit);--z-popover-theme--surface:var(--z-tooltip-theme--surface);--z-popover-theme--text:var(--z-tooltip-theme--text);--z-popover-shadow-filter:var(--z-tooltip-shadow-filter)}";
9
9
 
10
- const documentElement = document.documentElement;
11
- /**
12
- * Find the closest scrollable parent of a node.
13
- *
14
- * @param {Element} element The node
15
- */
16
- function findScrollableParent(element) {
17
- let parent = element.parentNode;
18
- while (parent && parent !== documentElement) {
19
- const { overflow, overflowX, overflowY } = window.getComputedStyle(parent);
20
- if (overflow === 'hidden' ||
21
- overflowY === 'hidden' ||
22
- 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 = parent.parentNode;
30
- }
31
- return documentElement;
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
- }
87
10
  const ZTooltip = class {
88
11
  constructor(hostRef) {
89
12
  index.registerInstance(this, hostRef);
90
- this.positionChange = index.createEvent(this, "positionChange", 7);
91
13
  /** Tooltip position. */
92
- this.type = index$1.TooltipPosition.AUTO;
14
+ this.position = index$1.PopoverPositions.AUTO;
15
+ /** Enable tooltip dark mode. */
16
+ this.dark = false;
93
17
  /**
94
18
  * The open state of the tooltip.
95
19
  */
96
20
  this.open = false;
97
21
  }
98
- validateType(newValue) {
99
- if (newValue &&
100
- Object
101
- .values(index$1.TooltipPosition)
102
- .every((position) => newValue !== position)) {
103
- this.type = index$1.TooltipPosition.AUTO;
104
- }
105
- }
106
- onPositionChange() {
107
- this.positionChange.emit({ position: this.position });
108
- }
109
- disconnectedCallback() {
110
- cancelAnimationFrame(this.animationFrameRequestId);
111
- }
112
- /**
113
- * Setup tooltip behaviors on opening.
114
- */
115
- onOpen() {
116
- cancelAnimationFrame(this.animationFrameRequestId);
117
- if (this.content) {
118
- return;
119
- }
120
- if (this.open) {
121
- const setPosition = () => {
122
- if (this.open) {
123
- this.setPosition();
124
- this.animationFrameRequestId = requestAnimationFrame(setPosition);
125
- }
126
- };
127
- setPosition();
128
- }
129
- else {
130
- const style = this.host.style;
131
- style.removeProperty("top");
132
- style.removeProperty("right");
133
- style.removeProperty("bottom");
134
- style.removeProperty("left");
135
- }
136
- }
137
- /**
138
- * Set the position of the tooltip.
139
- */
140
- setPosition() {
141
- let element;
142
- if (typeof this.bindTo === "string") {
143
- element = this.host.ownerDocument.querySelector(this.bindTo);
144
- }
145
- else if (this.bindTo) {
146
- element = this.bindTo;
147
- }
148
- else {
149
- element = this.host.parentElement;
150
- }
151
- if (!element) {
152
- return;
153
- }
154
- const scrollContainer = findScrollableParent(element);
155
- const scrollingBoundingRect = scrollContainer.getBoundingClientRect();
156
- const offsetContainer = this.host.offsetParent;
157
- const relativeBoundingRect = offsetContainer ? computeOffset(offsetContainer, scrollContainer) : { top: 0, right: 0, bottom: 0, left: 0 };
158
- const boundingRect = computeOffset(element, scrollContainer);
159
- const top = boundingRect.top - scrollContainer.scrollTop;
160
- const bottom = scrollingBoundingRect.height - (boundingRect.top + boundingRect.height) + scrollContainer.scrollTop;
161
- const left = boundingRect.left - scrollContainer.scrollLeft;
162
- const right = scrollingBoundingRect.width - (boundingRect.left + boundingRect.width) + scrollContainer.scrollLeft;
163
- const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
164
- const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
165
- const availableTop = Math.min(top, top + scrollingBoundingRect.top);
166
- const availableBottom = Math.min(bottom, bottom - overflowBottom);
167
- const availableLeft = Math.min(left, left + scrollingBoundingRect.left);
168
- const availableRight = Math.min(right, right - overflowRight);
169
- const availableHeight = availableTop + availableBottom + boundingRect.height;
170
- const availableWidth = availableLeft + availableRight + boundingRect.width;
171
- let position = this.type;
172
- if (position === index$1.TooltipPosition.AUTO) {
173
- /**
174
- * The `AUTO` position tries to place the tooltip in the "safest" area,
175
- * where there's more space available.
176
- */
177
- const positions = [];
178
- if (availableTop / availableHeight > 0.9) {
179
- positions.unshift(index$1.TooltipPosition.TOP);
180
- }
181
- else if (availableTop / availableHeight > 0.6) {
182
- positions.push(index$1.TooltipPosition.TOP);
183
- }
184
- else if (availableTop / availableHeight < 0.1) {
185
- positions.unshift(index$1.TooltipPosition.BOTTOM);
186
- }
187
- else {
188
- positions.push(index$1.TooltipPosition.BOTTOM);
189
- }
190
- if (availableLeft / availableWidth > 0.6) {
191
- positions.push(index$1.TooltipPosition.LEFT);
192
- }
193
- else if (availableLeft / availableWidth < 0.4) {
194
- positions.push(index$1.TooltipPosition.RIGHT);
195
- }
196
- position = positions.join("_");
197
- }
198
- const style = this.host.style;
199
- if (!this.content) {
200
- style.position = "absolute";
201
- }
202
- const offsetTop = boundingRect.top - relativeBoundingRect.top;
203
- const offsetRight = boundingRect.right - relativeBoundingRect.right;
204
- const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
205
- const offsetLeft = boundingRect.left - relativeBoundingRect.left;
206
- if (position === index$1.TooltipPosition.TOP ||
207
- position === index$1.TooltipPosition.TOP_RIGHT ||
208
- position === index$1.TooltipPosition.TOP_LEFT) {
209
- style.top = "auto";
210
- style.bottom = `${offsetBottom + boundingRect.height}px`;
211
- }
212
- if (position === index$1.TooltipPosition.BOTTOM ||
213
- position === index$1.TooltipPosition.BOTTOM_RIGHT ||
214
- position === index$1.TooltipPosition.BOTTOM_LEFT) {
215
- style.top = `${offsetTop + boundingRect.height}px`;
216
- style.bottom = "auto";
217
- }
218
- if (position === index$1.TooltipPosition.TOP ||
219
- position === index$1.TooltipPosition.BOTTOM) {
220
- style.left = `${offsetLeft +
221
- (boundingRect.width / 2) -
222
- (this.host.clientWidth / 2)}px`;
223
- }
224
- if (position === index$1.TooltipPosition.TOP_RIGHT ||
225
- position === index$1.TooltipPosition.BOTTOM_RIGHT) {
226
- style.right = "auto";
227
- style.left = `${offsetLeft + boundingRect.width}px`;
228
- }
229
- if (position === index$1.TooltipPosition.TOP_LEFT ||
230
- position === index$1.TooltipPosition.BOTTOM_LEFT) {
231
- style.left = "auto";
232
- style.right = `${offsetRight + boundingRect.width}px`;
233
- }
234
- if (position === index$1.TooltipPosition.RIGHT ||
235
- position === index$1.TooltipPosition.LEFT) {
236
- style.top = `${offsetTop +
237
- (boundingRect.height / 2) -
238
- (this.host.clientHeight / 2)}px`;
239
- style.bottom = "auto";
240
- }
241
- if (position === index$1.TooltipPosition.RIGHT) {
242
- style.right = "auto";
243
- style.left = `${offsetLeft + boundingRect.width}px`;
244
- }
245
- if (position === index$1.TooltipPosition.LEFT) {
246
- style.left = "auto";
247
- style.right = `${offsetRight + boundingRect.width}px`;
248
- }
249
- this.position = position;
250
- }
251
- componentWillLoad() {
252
- // Keep backward compatibility
253
- if (this.content) {
254
- this.open = true;
255
- }
256
- this.validateType(this.type);
257
- this.onOpen();
22
+ onPopoverOpenChange() {
23
+ this.open = this.popover.open;
258
24
  }
259
25
  render() {
260
- if (this.content) {
261
- return (index.h(index.Host, { class: "legacy", position: this.type }, this.content));
262
- }
263
- return (index.h(index.Host, { position: this.position }, index.h("slot", null)));
26
+ return index.h("z-popover", { ref: (el) => (this.popover = el), bindTo: this.bindTo, open: this.open, position: this.position, center: true, showArrow: true }, index.h("slot", null));
264
27
  }
265
- get host() { return index.getElement(this); }
266
- static get watchers() { return {
267
- "type": ["validateType"],
268
- "position": ["onPositionChange"],
269
- "open": ["onOpen"]
270
- }; }
271
28
  };
272
29
  ZTooltip.style = stylesCss;
273
30
 
@@ -57,18 +57,22 @@ export var InputStatusEnum;
57
57
  InputStatusEnum["error"] = "error";
58
58
  InputStatusEnum["warning"] = "warning";
59
59
  })(InputStatusEnum || (InputStatusEnum = {}));
60
- export var TooltipPosition;
61
- (function (TooltipPosition) {
62
- TooltipPosition["AUTO"] = "auto";
63
- TooltipPosition["TOP"] = "top";
64
- TooltipPosition["RIGHT"] = "right";
65
- TooltipPosition["BOTTOM"] = "bottom";
66
- TooltipPosition["LEFT"] = "left";
67
- TooltipPosition["TOP_RIGHT"] = "top_right";
68
- TooltipPosition["TOP_LEFT"] = "top_left";
69
- TooltipPosition["BOTTOM_RIGHT"] = "bottom_right";
70
- TooltipPosition["BOTTOM_LEFT"] = "bottom_left";
71
- })(TooltipPosition || (TooltipPosition = {}));
60
+ export var PopoverPositions;
61
+ (function (PopoverPositions) {
62
+ PopoverPositions["AUTO"] = "auto";
63
+ PopoverPositions["TOP"] = "top";
64
+ PopoverPositions["RIGHT"] = "right";
65
+ PopoverPositions["BOTTOM"] = "bottom";
66
+ PopoverPositions["LEFT"] = "left";
67
+ PopoverPositions["TOP_RIGHT"] = "top_right";
68
+ PopoverPositions["TOP_LEFT"] = "top_left";
69
+ PopoverPositions["BOTTOM_RIGHT"] = "bottom_right";
70
+ PopoverPositions["BOTTOM_LEFT"] = "bottom_left";
71
+ PopoverPositions["RIGHT_TOP"] = "right_top";
72
+ PopoverPositions["RIGHT_BOTTOM"] = "right_bottom";
73
+ PopoverPositions["LEFT_TOP"] = "left_top";
74
+ PopoverPositions["LEFT_BOTTOM"] = "left_bottom";
75
+ })(PopoverPositions || (PopoverPositions = {}));
72
76
  export var KeyboardKeyCodeEnum;
73
77
  (function (KeyboardKeyCodeEnum) {
74
78
  KeyboardKeyCodeEnum[KeyboardKeyCodeEnum["TAB"] = 9] = "TAB";
@@ -104,39 +108,6 @@ export var ThemeVariant;
104
108
  ThemeVariant["dark"] = "dark";
105
109
  ThemeVariant["light"] = "light";
106
110
  })(ThemeVariant || (ThemeVariant = {}));
107
- export var PopoverPosition;
108
- (function (PopoverPosition) {
109
- PopoverPosition["after-down"] = "after-down";
110
- PopoverPosition["after-center"] = "after-center";
111
- PopoverPosition["after-up"] = "after-up";
112
- PopoverPosition["below-right"] = "below-right";
113
- PopoverPosition["below-center"] = "below-center";
114
- PopoverPosition["below-left"] = "below-left";
115
- PopoverPosition["before-down"] = "before-down";
116
- PopoverPosition["before-center"] = "before-center";
117
- PopoverPosition["before-up"] = "before-up";
118
- PopoverPosition["above-right"] = "above-right";
119
- PopoverPosition["above-center"] = "above-center";
120
- PopoverPosition["above-left"] = "above-left";
121
- })(PopoverPosition || (PopoverPosition = {}));
122
- export var PopoverBorderRadius;
123
- (function (PopoverBorderRadius) {
124
- PopoverBorderRadius["none"] = "none";
125
- PopoverBorderRadius["small"] = "small";
126
- PopoverBorderRadius["medium"] = "medium";
127
- })(PopoverBorderRadius || (PopoverBorderRadius = {}));
128
- export var PopoverShadow;
129
- (function (PopoverShadow) {
130
- PopoverShadow["shadow-1"] = "shadow-1";
131
- PopoverShadow["shadow-2"] = "shadow-2";
132
- PopoverShadow["shadow-3"] = "shadow-3";
133
- PopoverShadow["shadow-4"] = "shadow-4";
134
- PopoverShadow["shadow-6"] = "shadow-6";
135
- PopoverShadow["shadow-8"] = "shadow-8";
136
- PopoverShadow["shadow-12"] = "shadow-12";
137
- PopoverShadow["shadow-16"] = "shadow-16";
138
- PopoverShadow["shadow-24"] = "shadow-24";
139
- })(PopoverShadow || (PopoverShadow = {}));
140
111
  export var DividerSize;
141
112
  (function (DividerSize) {
142
113
  DividerSize["small"] = "small";
@@ -6,6 +6,8 @@
6
6
  "./components/buttons/z-chip/index.js",
7
7
  "./components/buttons/z-toggle-button/index.js",
8
8
  "./components/buttons/z-toggle-switch/index.js",
9
+ "./components/date-picker/z-date-picker/index.js",
10
+ "./components/date-picker/z-range-picker/index.js",
9
11
  "./components/file-upload/z-dragdrop-area/index.js",
10
12
  "./components/file-upload/z-file/index.js",
11
13
  "./components/file-upload/z-file-upload/index.js",
@@ -53,7 +55,6 @@
53
55
  "./components/z-card/index.js",
54
56
  "./components/z-carousel/index.js",
55
57
  "./components/z-contextual-menu/index.js",
56
- "./components/z-date-picker/index.js",
57
58
  "./components/z-divider/index.js",
58
59
  "./components/z-ghost-loading/index.js",
59
60
  "./components/z-offcanvas/index.js",
@@ -81,7 +82,9 @@
81
82
  "./deprecated/z-chip-deprecated/index.js",
82
83
  "./deprecated/z-input-deprecated/index.js",
83
84
  "./deprecated/z-input-label/index.js",
85
+ "./deprecated/z-popover-deprecated/index.js",
84
86
  "./deprecated/z-status-tag/index.js",
87
+ "./deprecated/z-tooltip-deprecated/index.js",
85
88
  "./snowflakes/myz/card/z-myz-card/index.js",
86
89
  "./snowflakes/myz/card/z-myz-card-alert/index.js",
87
90
  "./snowflakes/myz/card/z-myz-card-body/index.js",