@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
@@ -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-5c16dc2b.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,55 @@ 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 = {}));
76
+ export var PopoverPosition;
77
+ (function (PopoverPosition) {
78
+ PopoverPosition["after-down"] = "after-down";
79
+ PopoverPosition["after-center"] = "after-center";
80
+ PopoverPosition["after-up"] = "after-up";
81
+ PopoverPosition["below-right"] = "below-right";
82
+ PopoverPosition["below-center"] = "below-center";
83
+ PopoverPosition["below-left"] = "below-left";
84
+ PopoverPosition["before-down"] = "before-down";
85
+ PopoverPosition["before-center"] = "before-center";
86
+ PopoverPosition["before-up"] = "before-up";
87
+ PopoverPosition["above-right"] = "above-right";
88
+ PopoverPosition["above-center"] = "above-center";
89
+ PopoverPosition["above-left"] = "above-left";
90
+ })(PopoverPosition || (PopoverPosition = {}));
91
+ export var PopoverBorderRadius;
92
+ (function (PopoverBorderRadius) {
93
+ PopoverBorderRadius["none"] = "none";
94
+ PopoverBorderRadius["small"] = "small";
95
+ PopoverBorderRadius["medium"] = "medium";
96
+ })(PopoverBorderRadius || (PopoverBorderRadius = {}));
97
+ export var PopoverShadow;
98
+ (function (PopoverShadow) {
99
+ PopoverShadow["shadow-1"] = "shadow-1";
100
+ PopoverShadow["shadow-2"] = "shadow-2";
101
+ PopoverShadow["shadow-3"] = "shadow-3";
102
+ PopoverShadow["shadow-4"] = "shadow-4";
103
+ PopoverShadow["shadow-6"] = "shadow-6";
104
+ PopoverShadow["shadow-8"] = "shadow-8";
105
+ PopoverShadow["shadow-12"] = "shadow-12";
106
+ PopoverShadow["shadow-16"] = "shadow-16";
107
+ PopoverShadow["shadow-24"] = "shadow-24";
108
+ })(PopoverShadow || (PopoverShadow = {}));
72
109
  export var KeyboardKeyCodeEnum;
73
110
  (function (KeyboardKeyCodeEnum) {
74
111
  KeyboardKeyCodeEnum[KeyboardKeyCodeEnum["TAB"] = 9] = "TAB";
@@ -104,39 +141,6 @@ export var ThemeVariant;
104
141
  ThemeVariant["dark"] = "dark";
105
142
  ThemeVariant["light"] = "light";
106
143
  })(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
144
  export var DividerSize;
141
145
  (function (DividerSize) {
142
146
  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",
@@ -134,7 +134,7 @@
134
134
  font-family: var(--font-family-sans);
135
135
  font-weight: var(--font-rg);
136
136
 
137
- --toggle-height: 0;
137
+ --z-range-picker--toggle-height: 0;
138
138
  }
139
139
 
140
140
  z-date-picker {
@@ -145,10 +145,19 @@ z-date-picker > div > * {
145
145
  cursor: pointer !important;
146
146
  }
147
147
 
148
+ z-range-picker {
149
+ position: relative;
150
+ }
151
+
148
152
  .flatpickr-toggle-container {
149
153
  width: fit-content;
150
154
  }
151
155
 
156
+ .range-picker-container > div {
157
+ cursor: pointer !important;
158
+ position: relative;
159
+ }
160
+
152
161
  .hidden-input {
153
162
  visibility: hidden !important;
154
163
  position: absolute;
@@ -169,23 +178,25 @@ z-date-picker > div > * {
169
178
  position: absolute !important;
170
179
 
171
180
  border-radius: 2px;
172
- box-shadow: 0px 2px 4px 0px rgba(66, 69, 72, 0.4);
181
+ box-shadow: var(--shadow-2);
173
182
 
174
183
  padding-top: calc(var(--space-unit) * 2);
175
184
 
176
185
  left: 0 !important;
177
- top: var(--toggle-height) !important;
186
+ top: var(--z-range-picker--toggle-height) !important;
178
187
  }
179
188
 
180
189
  .months.top > .flatpickr-calendar {
181
190
  top: -288px !important;
182
191
  }
183
192
 
184
- .date.top > .flatpickr-calendar {
193
+ .date.top > .flatpickr-calendar,
194
+ .date.top > div > .flatpickr-calendar {
185
195
  top: -401px !important;
186
196
  }
187
197
 
188
- .date-time.top > .flatpickr-calendar {
198
+ .date-time.top > .flatpickr-calendar,
199
+ .date-time.top > div > .flatpickr-calendar {
189
200
  top: -523px !important;
190
201
  }
191
202
 
@@ -289,10 +300,10 @@ z-date-picker > div > * {
289
300
 
290
301
  /* Months dropdown selectors */
291
302
  .flatpickr-monthDropdown-months {
292
- background: white !important;
303
+ background: var(--color-surface01) !important;
293
304
  font-size: var(--font-size-3) !important;
294
305
  font-weight: var(--font-rg) !important;
295
- color: var(--text-grey-800) !important;
306
+ color: var(--color-text02) !important;
296
307
  outline: 1px solid black !important;
297
308
 
298
309
  width: 108px !important;
@@ -308,8 +319,8 @@ z-date-picker > div > * {
308
319
  /* Year toggle selectors */
309
320
  .flatpickr-current-month > .numInputWrapper {
310
321
  display: flex;
311
- background: white !important;
312
- color: var(--text-grey-800);
322
+ background: var(--color-surface01) !important;
323
+ color: var(--color-text02);
313
324
  outline: 1px solid black !important;
314
325
 
315
326
  height: calc(var(--space-unit) * 5.5) !important;
@@ -332,7 +343,7 @@ z-date-picker > div > * {
332
343
  /* Weekdays selectors */
333
344
  .flatpickr-weekdays {
334
345
  height: calc(var(--space-unit) * 6);
335
- border-bottom: 1px solid var(--gray200);
346
+ border-bottom: 1px solid var(--color-surface03);
336
347
  }
337
348
 
338
349
  .flatpickr-weekday {
@@ -368,7 +379,7 @@ z-date-picker > div > * {
368
379
  padding: 0 !important;
369
380
 
370
381
  line-height: calc(var(--space-unit) * 5) !important;
371
- border: 2px solid white !important;
382
+ border: 2px solid var(--color-surface01) !important;
372
383
  }
373
384
 
374
385
  .flatpickr-day:hover,
@@ -376,14 +387,14 @@ z-date-picker > div > * {
376
387
  .flatpickr-day.selected:hover,
377
388
  .flatpickr-monthSelect-month:hover,
378
389
  .flatpickr-monthSelect-month:focus {
379
- background-color: var(--myz-blue-dark) !important;
380
- border-color: var(--myz-blue-dark) !important;
381
- color: var(--color-white) !important;
390
+ background-color: var(--color-hover-primary) !important;
391
+ border-color: var(--color-hover-primary) !important;
392
+ color: var(--color-text04) !important;
382
393
  }
383
394
 
384
395
  .flatpickr-day.today,
385
396
  .flatpickr-monthSelect-month.today {
386
- border: 2px solid var(--myz-blue-dark) !important;
397
+ border: 2px solid var(--color-hover-primary) !important;
387
398
  }
388
399
 
389
400
  .flatpickr-day.selected,
@@ -414,7 +425,7 @@ z-date-picker > div > * {
414
425
  font-size: var(--font-size-1);
415
426
  font-weight: var(--font-sb);
416
427
  text-transform: uppercase;
417
- color: var(--text-grey-800) !important;
428
+ color: var(--color-text02) !important;
418
429
 
419
430
  width: 100%;
420
431
  padding-left: var(--space-unit);
@@ -427,7 +438,7 @@ z-date-picker > div > * {
427
438
  .flatpickr-time.time24hr > .numInputWrapper > input:hover,
428
439
  .flatpickr-time.time24hr > .numInputWrapper > input:focus,
429
440
  .flatpickr-time.time24hr > .numInputWrapper:hover {
430
- background-color: white !important;
441
+ background-color: var(--color-surface01) !important;
431
442
  }
432
443
 
433
444
  .flatpickr-time.time24hr > div {
@@ -523,3 +534,44 @@ z-date-picker > div > * {
523
534
  left: 5.5px !important;
524
535
  margin-top: 4px !important;
525
536
  }
537
+
538
+ /* range-date-picker selectors */
539
+
540
+ .flatpickr-day.inRange,
541
+ .flatpickr-day.today.inRange,
542
+ .flatpickr-day.prevMonthDay.inRange,
543
+ .flatpickr-monthSelect-month.inRange {
544
+ background-color: var(--color-primary03) !important;
545
+ border-color: var(--color-primary03) !important;
546
+ }
547
+
548
+ .flatpickr-day.inRange:hover,
549
+ .flatpickr-day.today.inRange:hover,
550
+ .flatpickr-day.prevMonthDay.inRange:hover,
551
+ .flatpickr-monthSelect-month.inRange:hover {
552
+ background-color: var(--color-hover-primary) !important;
553
+ border-color: var(--color-hover-primary) !important;
554
+ }
555
+
556
+ .flatpickr-day.startRange,
557
+ .flatpickr-day.endRange,
558
+ .flatpickr-monthSelect-month.startRange,
559
+ .flatpickr-monthSelect-month.endRange {
560
+ background-color: var(--color-primary01) !important;
561
+ border-color: var(--color-primary01) !important;
562
+ }
563
+
564
+ .flatpickr-day.prevMonthDay.selected.startRange,
565
+ .flatpickr-day.prevMonthDay.selected.endRange {
566
+ background-color: var(--color-primary01) !important;
567
+ border-color: var(--color-primary01) !important;
568
+ }
569
+
570
+ .flatpickr-range.second-input {
571
+ cursor: pointer;
572
+ }
573
+
574
+ .range-picker-container {
575
+ display: flex;
576
+ gap: 16px;
577
+ }
@@ -0,0 +1,76 @@
1
+ import { ZDatePickerMode, ZDatePickerModeValues, ZDatePickerPosition, } from "../../beans";
2
+ export function setFlatpickrPosition(element, mode) {
3
+ const toggleHeight = element.children[0].clientHeight;
4
+ element.style.setProperty("--z-range-picker--toggle-height", `${toggleHeight}px`);
5
+ const flatpickrHeight = mode === ZDatePickerMode.dateTime
6
+ ? ZDatePickerModeValues.DATETIME
7
+ : mode === ZDatePickerMode.months
8
+ ? ZDatePickerModeValues.MONTHS
9
+ : ZDatePickerModeValues.DATE;
10
+ const bottom = element.getBoundingClientRect().bottom;
11
+ const overflowBottom = bottom + flatpickrHeight > window.innerHeight;
12
+ const overflowTop = bottom - flatpickrHeight - toggleHeight < 0;
13
+ if (!overflowTop && overflowBottom) {
14
+ return ZDatePickerPosition.top;
15
+ }
16
+ else {
17
+ return ZDatePickerPosition.bottom;
18
+ }
19
+ }
20
+ export function setAriaOptions(element, mode) {
21
+ let calendar = element.getElementsByClassName("flatpickr-calendar");
22
+ Array.from(calendar).forEach((element) => {
23
+ element.setAttribute("tabindex", "0");
24
+ let prevMonthArrow = element.getElementsByClassName("flatpickr-prev-month")[0];
25
+ let nextMonthArrow = element.getElementsByClassName("flatpickr-next-month")[0];
26
+ let tabindexElements = element.querySelectorAll('[tabindex = "-1"]');
27
+ tabindexElements.forEach((element) => element.setAttribute("tabindex", "0"));
28
+ prevMonthArrow.setAttribute("tabindex", "0");
29
+ nextMonthArrow.setAttribute("tabindex", "0");
30
+ prevMonthArrow.setAttribute("role", "button");
31
+ nextMonthArrow.setAttribute("role", "button");
32
+ element
33
+ .getElementsByClassName("cur-year")[0]
34
+ .setAttribute("aria-label", "Anno");
35
+ if (mode === ZDatePickerMode.date) {
36
+ setDateAriaOptions(element, prevMonthArrow, nextMonthArrow);
37
+ }
38
+ if (mode === ZDatePickerMode.dateTime) {
39
+ setDateTimeAriaOptions(element, prevMonthArrow, nextMonthArrow);
40
+ }
41
+ if (mode === ZDatePickerMode.months) {
42
+ setMonthsAriaOptions(calendar, prevMonthArrow, nextMonthArrow);
43
+ }
44
+ });
45
+ }
46
+ function setDateAriaOptions(calendar, prevMonthArrow, nextMonthArrow) {
47
+ Array.from(calendar.getElementsByClassName("flatpickr-days")).forEach((element) => element.setAttribute("tabindex", "-1"));
48
+ Array.from(calendar.getElementsByClassName("flatpickr-day")).forEach((element) => element.setAttribute("role", "button"));
49
+ calendar
50
+ .getElementsByClassName("flatpickr-monthDropdown-months")[0]
51
+ .setAttribute("aria-label", "Mese");
52
+ prevMonthArrow.setAttribute("aria-label", "Mese precedente");
53
+ nextMonthArrow.setAttribute("aria-label", "Mese successivo");
54
+ }
55
+ function setDateTimeAriaOptions(calendar, prevMonthArrow, nextMonthArrow) {
56
+ Array.from(calendar.getElementsByClassName("flatpickr-days")).forEach((element) => element.setAttribute("tabindex", "-1"));
57
+ Array.from(calendar.getElementsByClassName("flatpickr-day")).forEach((element) => element.setAttribute("role", "button"));
58
+ calendar
59
+ .getElementsByClassName("flatpickr-monthDropdown-months")[0]
60
+ .setAttribute("aria-label", "Mese");
61
+ prevMonthArrow.setAttribute("aria-label", "Mese precedente");
62
+ nextMonthArrow.setAttribute("aria-label", "Mese successivo");
63
+ Array.from(calendar.getElementsByClassName("time24hr")).forEach((element) => element.setAttribute("tabindex", "-1"));
64
+ calendar
65
+ .getElementsByClassName("flatpickr-hour")[0]
66
+ .setAttribute("aria-label", "Ora");
67
+ calendar
68
+ .getElementsByClassName("flatpickr-minute")[0]
69
+ .setAttribute("aria-label", "Minuti");
70
+ }
71
+ function setMonthsAriaOptions(calendar, prevMonthArrow, nextMonthArrow) {
72
+ Array.from(calendar.getElementsByClassName("flatpickr-monthSelect-months")).forEach((element) => element.setAttribute("tabindex", "-1"));
73
+ Array.from(calendar.getElementsByClassName("flatpickr-monthSelect-month")).forEach((element) => element.setAttribute("role", "button"));
74
+ prevMonthArrow.setAttribute("aria-label", "Anno precedente");
75
+ nextMonthArrow.setAttribute("aria-label", "Anno successivo");
76
+ }