@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
@@ -1,363 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-90e18641.js';
2
- import { T as ThemeVariant, a as DividerOrientation, B as ButtonTypeEnum, b as ButtonVariantEnum, c as ButtonSizeEnum, C as CardVariants, d as DividerSize, O as OffCanvasVariantsEnum, e as TransitionDirectionEnum } from './index-46ca649a.js';
3
- import { m as mobileBreakpoint } from './breakpoints-c386984e.js';
4
- import { i as icons } from './icons-92a7dcde.js';
5
-
6
- const stylesCss$a = ":host{font-family:var(--dashboard-font);font-weight:var(--font-rg)}button{display:flex;justify-content:center;align-content:center;background-color:transparent;border:none;padding:0}button>z-icon{color:var(--bg-white);fill:currentColor}button>z-icon.light{color:var(--bg-grey-900);fill:currentColor}";
7
-
8
- const ZAppSwitcher = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- this.appButtonClick = createEvent(this, "appButtonClick", 7);
12
- /** theme variant, default 'dark' */
13
- this.theme = ThemeVariant.dark;
14
- this.isopen = false;
15
- this.emitAppButtonClick = this.emitAppButtonClick.bind(this);
16
- }
17
- emitAppButtonClick() {
18
- this.isopen = !this.isopen;
19
- this.appButtonClick.emit({ isopen: this.isopen });
20
- }
21
- render() {
22
- return (h("button", { title: "app-switcher", onClick: () => this.emitAppButtonClick() }, h("z-icon", { name: "app-switcher", class: this.theme })));
23
- }
24
- };
25
- ZAppSwitcher.style = stylesCss$a;
26
-
27
- const stylesCss$9 = ":host{display:block;position:sticky;box-sizing:border-box;top:0;height:calc(var(--space-unit) * 6);padding:calc(var(--space-unit) / 2) calc(var(--space-unit) * 2);border-radius:var(--border-no-radius);background-color:var(--gray900);z-index:99}:host(.light){background-color:var(--color-white)}:host>div{display:flex;justify-content:space-between;align-items:center}:host(.limited-width) #content-container{margin:auto;max-width:var(--mw)}.content-panel{display:flex;align-items:center}.content-panel>:not(:last-child){margin-right:calc(var(--space-unit) * 2)}#divider-container{display:none}z-link{font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:14px;line-height:20px;letter-spacing:0.3px}@media only screen and (min-width: 768px){:host{padding:var(--space-unit) calc(var(--space-unit) * 2) var(--space-unit) var(--space-unit)}:host(.limited-width){padding:var(--space-unit)}#divider-container{display:block;height:calc(var(--space-unit) * 3)}}";
28
-
29
- const ZAppTopbar = class {
30
- constructor(hostRef) {
31
- registerInstance(this, hostRef);
32
- /** theme variant, default 'dark' */
33
- this.theme = ThemeVariant.dark;
34
- this.topbarLinks = [];
35
- }
36
- handleResize() {
37
- this.isMobile = window.innerWidth <= mobileBreakpoint;
38
- }
39
- componentWillLoad() {
40
- this.isMobile = window.screen.width <= mobileBreakpoint || window.innerWidth <= mobileBreakpoint;
41
- }
42
- componentWillRender() {
43
- if (this.topbarContent) {
44
- this.topbarLinks = typeof this.topbarContent === "string" ? JSON.parse(this.topbarContent) : this.topbarContent;
45
- }
46
- }
47
- renderTopbarLinks() {
48
- return this.topbarLinks.map((link) => h("z-link", { htmlid: link.id, textcolor: this.theme === ThemeVariant.light ? "black" : "white", href: link.link, target: link.target, icon: this.isMobile ? link.icon : undefined }, !this.isMobile && link.label));
49
- }
50
- render() {
51
- return (h(Host, { class: {
52
- [this.theme]: true,
53
- "limited-width": !!this.contentMaxWidth
54
- } }, h("div", { id: "content-container", style: this.contentMaxWidth ? { "--mw": `${this.contentMaxWidth}px` } : {} }, h("div", { id: "left-panel", class: "content-panel" }, h("z-logo", { mobileLogo: this.isMobile, width: this.isMobile ? 32 : 128, height: this.isMobile ? 40 : 32, imageAlt: "zanichelli-logo", link: this.logoLink, targetBlank: true }), this.isMobile && this.renderTopbarLinks()), h("div", { id: "right-panel", class: "content-panel" }, !this.isMobile && this.renderTopbarLinks(), this.showAppSwitcher && h("z-app-switcher", { theme: this.theme }), h("div", { id: "divider-container" }, h("z-divider", { orientation: DividerOrientation.vertical, color: this.theme === ThemeVariant.light ? "gray800" : "color-white" })), h("slot", { name: "login" })))));
55
- }
56
- };
57
- ZAppTopbar.style = stylesCss$9;
58
-
59
- const stylesCss$8 = ".sc-z-button-h{display:inline-block;--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:0}[disabled].sc-z-button-h:not([disabled=\"false\"]){pointer-events:none}.sc-z-button-h .container.sc-z-button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:100%;padding:0;font-family:var(--font-family-sans);font-weight:var(--font-sb);font-size:14px;line-height:1;letter-spacing:0.3px;border-width:var(--border-size-medium);border-style:solid;border-radius:var(--border-radius);text-transform:uppercase;text-decoration:none;cursor:pointer;white-space:nowrap;outline:none;fill:currentColor}.sc-z-button-h .container.has-text.sc-z-button{min-width:calc(var(--space-unit) * 8);padding:0 calc(var(--space-unit) * 2)}.sc-z-button-h .container.has-text.sc-z-button z-icon.sc-z-button{--z-icon-right-margin:var(--space-unit)}.sc-z-button-h .big.sc-z-button{height:44px;min-width:44px}.sc-z-button-h .small.sc-z-button{height:36px;min-width:36px}.sc-z-button-h .x-small.sc-z-button{height:32px;min-width:32px}.sc-z-button-h .primary.sc-z-button{background-color:var(--color-primary01);border-color:var(--color-primary01);color:var(--color-text-inverse)}@media (hover: hover){.sc-z-button-h .primary.sc-z-button:hover{background-color:var(--color-hover-primary);border-color:var(--color-hover-primary);color:var(--color-text-inverse)}}.sc-z-button-h .container.sc-z-button:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-button-h .primary.sc-z-button:active{background-color:var(--color-pressed-primary);border-color:var(--color-pressed-primary);color:var(--color-text-inverse);box-shadow:var(--shadow-2)}[disabled].sc-z-button-h:not([disabled=\"false\"]) .primary.sc-z-button{background-color:var(--color-disabled01);border-color:var(--color-disabled01);color:var(--color-disabled02)}.sc-z-button-h .secondary.sc-z-button{background-color:var(--color-surface01);border-color:var(--color-primary01);color:var(--color-primary01)}@media (hover: hover){.sc-z-button-h .secondary.sc-z-button:hover{background-color:var(--color-surface01);border-color:var(--color-hover-primary);color:var(--color-hover-primary)}}.sc-z-button-h .secondary.sc-z-button:active{background-color:var(--color-surface01);border-color:var(--color-pressed-primary);color:var(--color-pressed-primary);box-shadow:var(--shadow-2)}[disabled].sc-z-button-h:not([disabled=\"false\"]) .secondary.sc-z-button{background-color:var(--color-surface01);border-color:var(--color-disabled01);color:var(--color-disabled02)}.sc-z-button-h .tertiary.sc-z-button{background-color:transparent;border-color:transparent;color:var(--color-primary01)}@media (hover: hover){.sc-z-button-h .tertiary.sc-z-button:hover{background-color:var(--color-primary03);border-color:var(--color-primary03);color:var(--color-hover-primary)}}.sc-z-button-h .tertiary.sc-z-button:focus:focus-visible{background-color:var(--color-surface01);border-color:var(--color-surface01);color:var(--color-primary01)}.sc-z-button-h .tertiary.sc-z-button:active{background-color:var(--color-surface01);border-color:var(--color-surface01);color:var(--color-primary01);box-shadow:var(--shadow-2)}[disabled].sc-z-button-h:not([disabled=\"false\"]) .tertiary.sc-z-button{background-color:transparent;border-color:transparent;color:var(--color-disabled02)}";
60
-
61
- const ZButton = class {
62
- constructor(hostRef) {
63
- registerInstance(this, hostRef);
64
- /** HTML button disabled attribute. */
65
- this.disabled = false;
66
- /** HTML button type attribute. */
67
- this.type = ButtonTypeEnum.button;
68
- /** Graphical variant: `primary`, `secondary`, `tertiary`. Defaults to `primary`. */
69
- this.variant = ButtonVariantEnum.primary;
70
- /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
71
- this.size = ButtonSizeEnum.big;
72
- }
73
- getAttributes() {
74
- return {
75
- id: this.htmlid,
76
- "aria-label": this.ariaLabel,
77
- class: {
78
- container: true,
79
- [this.variant]: true,
80
- [this.size]: true,
81
- "has-text": !!this.hostElement.textContent
82
- }
83
- };
84
- }
85
- render() {
86
- if (this.href) {
87
- return (h("a", Object.assign({}, this.getAttributes(), { href: this.href, target: this.target }), this.icon && h("z-icon", { name: this.icon, width: 16, height: 16 }), h("slot", null)));
88
- }
89
- return (h("button", Object.assign({}, this.getAttributes(), { name: this.name, type: this.type, disabled: this.disabled }), this.icon && h("z-icon", { name: this.icon, width: 16, height: 16 }), h("slot", null)));
90
- }
91
- get hostElement() { return getElement(this); }
92
- };
93
- ZButton.style = stylesCss$8;
94
-
95
- const stylesCss$7 = ":host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);--z-card--text-background:var(--color-surface01);--z-card--text-border-radius:none;--z-card--text-border:none;position:relative;display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}*,::slotted(*){box-sizing:border-box}:host(:not([variant='overlay'])) .cover-container{position:relative;width:100%}.cover-container{padding-bottom:calc(100% / var(--aspect-ratio))}::slotted([slot='cover']),.color-cover{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.cover-container>z-icon{--z-icon-width:calc(var(--space-unit) * 11);--z-icon-height:var(--z-icon-width);position:absolute;top:calc(50% - calc(var(--z-icon-height) / 2));left:calc(50% - calc(var(--z-icon-width) / 2));fill:var(--color-primary01)}.color-cover{background-color:var(--z-card--color-cover-background)}.content{display:flex;flex-direction:column;padding-top:var(--space-unit)}.color-cover .cover-content{display:flex;flex-direction:column;justify-content:flex-end;height:100%;padding:var(--space-unit)}::slotted([slot='metadata']),::slotted([slot='title']),::slotted([slot='text']){display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}::slotted([slot='title']:not(:last-child)),::slotted([slot='text']:not(:last-child)){margin-bottom:var(--space-unit)}::slotted([slot='text']),::slotted([slot='actions']){margin:0}::slotted([slot='metadata']:not(:last-child)){margin:0 0 calc(var(--space-unit) * 0.25);-webkit-line-clamp:1;text-transform:uppercase}::slotted([slot='title']){margin:0;font-weight:var(--font-sb);-webkit-line-clamp:2}::slotted([slot='text']){-webkit-line-clamp:3}.actions{display:flex;flex-direction:row;align-items:center}::slotted([slot='action']:not(:last-child)){margin-right:calc(var(--space-unit) * 1.5)}:host([clickable]){cursor:pointer}:host([clickable]:focus:focus-visible){outline:none}:host(:not([variant])[clickable]:focus:focus-visible){padding:calc(var(--space-unit) * 0.5);box-shadow:var(--shadow-focus-primary)}:host([variant='text']){background-color:var(--z-card--text-background);border:var(--z-card--text-border);border-radius:var(--z-card--text-border-radius)}:host([showshadow])>.content,:host([variant='border'])>.content,:host([variant='shadow'])>.content{height:100%;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2)}:host([variant='text'])>.content{padding:calc(var(--space-unit) * 2) var(--space-unit)}:host([variant='border']) .actions,:host([variant='shadow']) .actions{margin-top:auto}:host([variant='border']){border:var(--border-size-small) solid var(--z-card--border-color)}:host([variant='border'][clickable]:hover)>.content{background:var(--color-background)}:host([variant='border'][clickable]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant='border'][clickable]:active){border-color:transparent}:host([variant='shadow']),:host([showshadow]){box-shadow:var(--shadow-2)}:host([variant='shadow'][clickable]:hover),:host([clickable][showshadow]:hover){box-shadow:var(--shadow-4)}:host([variant='shadow'][clickable]:focus:focus-visible),:host([clickable][showshadow]:focus:focus-visible){box-shadow:var(--shadow-4)}:host([variant='shadow'][clickable]:active),:host([clickable][showshadow]:active){box-shadow:none}:host([variant='overlay']) .content{position:absolute;top:0;right:0;bottom:0;left:0;justify-content:flex-end;padding:var(--space-unit);background-image:linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));color:var(--color-text-inverse);fill:var(--color-text-inverse)}";
96
-
97
- const ZCard = class {
98
- constructor(hostRef) {
99
- registerInstance(this, hostRef);
100
- this.cardClicked = createEvent(this, "cardClicked", 7);
101
- /** Enable click interactions on the card. Default: false */
102
- this.clickable = false;
103
- /** Enable shadow. Default: false. */
104
- this.showshadow = false;
105
- }
106
- onClick(ev) {
107
- // Do nothing for clicks on actions.
108
- if (ev.target.getAttribute('slot') === 'action') {
109
- return;
110
- }
111
- if (!this.clickable) {
112
- ev.preventDefault();
113
- ev.stopPropagation();
114
- return;
115
- }
116
- this.cardClicked.emit();
117
- }
118
- componentWillLoad() {
119
- this.hasCoverImage = !!this.host.querySelector('[slot="cover"]');
120
- }
121
- /**
122
- * Template for a card without image cover.
123
- * A colored background replaces the image and some data is moved over it.
124
- */
125
- renderColorCoverCard() {
126
- return [
127
- h("div", { class: "cover-container" }, h("div", { class: "color-cover" }, h("div", { class: "cover-content" }, h("slot", { name: "metadata" }), h("slot", { name: "title" })))),
128
- h("div", { class: "content" }, h("slot", { name: "text" }), h("div", { class: "actions" }, h("slot", { name: "action" })))
129
- ];
130
- }
131
- /**
132
- * Template for the content div.
133
- */
134
- renderContentDiv() {
135
- return (h("div", { class: "content" }, h("slot", { name: "metadata" }), h("slot", { name: "title" }), h("slot", { name: "text" }), h("div", { class: "actions" }, h("slot", { name: "action" }))));
136
- }
137
- render() {
138
- if (this.variant === CardVariants.text) {
139
- return this.renderContentDiv();
140
- }
141
- if (this.variant === CardVariants.overlay || this.hasCoverImage) {
142
- return [
143
- h("div", { class: "cover-container" }, this.hasCoverImage && [
144
- h("slot", { name: "cover" }),
145
- (this.variant !== CardVariants.overlay) && this.coverIcon && h("z-icon", { name: this.coverIcon })
146
- ], !this.hasCoverImage && h("div", { class: "color-cover" })),
147
- this.renderContentDiv()
148
- ];
149
- }
150
- return this.renderColorCoverCard();
151
- }
152
- get host() { return getElement(this); }
153
- };
154
- ZCard.style = stylesCss$7;
155
-
156
- const stylesCss$6 = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);--z-carousel-gutter:0}.z-carousel-items-container{display:flex;overflow-x:scroll;padding-inline-start:0;margin:0;list-style:none;-ms-overflow-style:none;scrollbar-width:none;}.z-carousel-items-container::-webkit-scrollbar{display:none}.z-carousel-items-container>*:not(:last-child){margin-right:var(--z-carousel-gutter)}";
157
-
158
- const ZCarousel = class {
159
- constructor(hostRef) {
160
- registerInstance(this, hostRef);
161
- /** sets the height of z-carousel ghost loading, this prop is mandatory when isloading is set to true, as otherwise the component won't show. */
162
- this.ghostLoadingHeight = 100;
163
- }
164
- render() {
165
- if (this.isLoading) {
166
- return (h("div", { style: { height: `${this.ghostLoadingHeight}px` } }, h("z-ghost-loading", null), h("div", { style: { display: "none" } }, h("slot", null))));
167
- }
168
- return (h("ul", { class: "z-carousel-items-container" }, h("slot", null)));
169
- }
170
- };
171
- ZCarousel.style = stylesCss$6;
172
-
173
- const stylesCss$5 = ".sc-z-divider-h{display:block;padding:0;margin:0}.divider-horizontal.sc-z-divider-h{width:100%}.divider-vertical.sc-z-divider-h{height:100%}.divider-small.divider-horizontal.sc-z-divider-h{height:var(--border-size-small)}.divider-medium.divider-horizontal.sc-z-divider-h{height:var(--border-size-medium)}.divider-large.divider-horizontal.sc-z-divider-h{height:var(--border-size-large)}.divider-small.divider-vertical.sc-z-divider-h{width:var(--border-size-small)}.divider-medium.divider-vertical.sc-z-divider-h{width:var(--border-size-medium)}.divider-large.divider-vertical.sc-z-divider-h{width:var(--border-size-large)}";
174
-
175
- const ZDivider = class {
176
- constructor(hostRef) {
177
- registerInstance(this, hostRef);
178
- /** [optional] Divider size */
179
- this.size = DividerSize.small;
180
- /** [optional] Divider color */
181
- this.color = "gray200";
182
- /** [optional] Divider orintation */
183
- this.orientation = DividerOrientation.horizontal;
184
- }
185
- render() {
186
- return (h(Host, { class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
187
- }
188
- };
189
- ZDivider.style = stylesCss$5;
190
-
191
- const stylesCss$4 = ":host{display:inline-block;width:100%;height:100%;background:var(--bg-neutral-100);overflow:hidden;border-radius:4px;transform:translate3d(0, 0, 0)}:host::after{content:' ';display:block;width:100%;height:100%;box-shadow:#e8ebee20 0px 0px 1px;background-image:linear-gradient(\n 90deg,\n var(--bg-neutral-100) 0%,\n var(--bg-neutral-150) 95%,\n var(--bg-neutral-100) 100%\n );animation:progress 1.6s ease-in-out infinite}@keyframes progress{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}";
192
-
193
- const ZGhostLoading = class {
194
- constructor(hostRef) {
195
- registerInstance(this, hostRef);
196
- }
197
- render() {
198
- return (h(Host, null));
199
- }
200
- };
201
- ZGhostLoading.style = stylesCss$4;
202
-
203
- const stylesCss$3 = ":host{line-height:0;vertical-align:middle;margin-right:var(--z-icon-right-margin, 0);margin-left:var(--z-icon-left-margin, 0)}:host svg:not([width]){width:var(--z-icon-width, 18px)}:host svg:not([height]){height:var(--z-icon-height, 18px)}";
204
-
205
- const ZIcon = class {
206
- constructor(hostRef) {
207
- registerInstance(this, hostRef);
208
- }
209
- selectPathOrPolygon(iconName) {
210
- if (iconName && iconName.startsWith("M")) {
211
- return h("path", { d: icons[this.name] });
212
- }
213
- else {
214
- return h("polygon", { points: icons[this.name] });
215
- }
216
- }
217
- render() {
218
- return (h("svg", { viewBox: "0 0 1000 1000", width: this.width, height: this.height, id: this.iconid, fill: this.fill ? `var(--${this.fill})` : "" }, this.selectPathOrPolygon(icons[this.name])));
219
- }
220
- };
221
- ZIcon.style = stylesCss$3;
222
-
223
- const stylesCss$2 = ":host{--font-size-link:inherit;--font-weight-link:inherit}:host{font-family:var(--dashboard-font);font-weight:var(--font-weight-link);font-size:var(--font-size-link);line-height:inherit;outline:none}a{cursor:pointer;color:var(--color-link-primary);fill:var(--color-link-primary);display:inline-flex;align-items:center;text-decoration:none;padding:calc(var(--space-unit) * 0.5) 0;border-top:var(--border-size-medium) solid transparent;border-bottom:var(--border-size-medium) solid transparent}a:hover,a:focus,a:active{text-decoration:underline}a.active{color:var(--color-active-link);fill:var(--color-active-link)}a:hover,a:focus{color:var(--color-hover-link);fill:var(--color-hover-link)}a:active{color:var(--color-pressed-link);fill:var(--color-pressed-link)}a:visited{color:var(--color-visited-link);fill:var(--color-visited-link)}a.disabled,a.inverse.disabled{cursor:default;pointer-events:none;color:var(--color-disabled03);fill:var(--color-disabled03)}a.underline,a.underline:active,a.underline:hover,a.underline:visited,a.underline.disabled,a.underline.black,a.underline.white{text-decoration:underline}a.disabled,a.disabled:active,a.disabled:visited,a.disabled:hover{text-decoration:none}a.inverse{color:var(--color-inverse-link);fill:var(--color-inverse-link)}a.inverse.active{color:var(--color-inverse-active-link);fill:var(--color-inverse-active-link)}a.inverse:hover,a.inverse:focus{color:var(--color-inverse-hover-link);fill:var(--color-inverse-hover-link)}a.inverse:active{color:var(--color-inverse-pressed-link);fill:var(--color-inverse-pressed-link)}a.inverse:visited{color:var(--color-inverse-visited-link);fill:var(--color-inverse-visited-link)}a.black{color:var(--gray800);fill:var(--gray800);text-decoration:none}a.black:hover,a.black.active{color:var(--color-black);fill:var(--color-black)}a.black:visited{color:var(--gray800);fill:var(--gray800)}a.black:hover,a.black:focus,a.black:active{text-decoration:underline}a.black:active{color:var(--gray700);fill:var(--gray700)}a.white,a.white:active,a.white:hover,a.white.active{color:var(--bg-white);fill:var(--bg-white);text-decoration:none}a.white:visited{color:var(--bg-white);fill:var(--bg-white)}a.white:hover,a.white:focus,a.white:active{text-decoration:underline}a.white.disabled,a.black.disabled{color:var(--gray500);fill:var(--gray500)}a>z-icon:first-child{margin-right:8px}a>z-icon:last-child{margin-left:8px}";
224
-
225
- const ZLink = class {
226
- constructor(hostRef) {
227
- registerInstance(this, hostRef);
228
- this.zLinkClick = createEvent(this, "zLinkClick", 7);
229
- /** link target (optional) */
230
- this.target = "_self";
231
- /** tabindex link attribute (optional) */
232
- this.htmltabindex = 0;
233
- /** disable link flag (optional) */
234
- this.isdisabled = false;
235
- /** active link flag (optional) */
236
- this.isactive = false;
237
- /** white variant flag (optional) */
238
- this.iswhite = false;
239
- /** link text variant (optional) */
240
- this.textcolor = "primary";
241
- /** big link version */
242
- this.big = false;
243
- /** link icon position (optional) */
244
- this.iconposition = "left";
245
- /** draw underline on text (optional) */
246
- this.underline = false;
247
- this.iconSize = 18;
248
- this.emitZLinkClick = this.emitZLinkClick.bind(this);
249
- this.emitZLinkInteraction = this.emitZLinkInteraction.bind(this);
250
- }
251
- componentWillRender() {
252
- if (this.iswhite) {
253
- console.warn("z-link iswhite prop is deprecated and will be dropped in a next release, please use textcolor prop instead");
254
- }
255
- if (this.big) {
256
- console.warn("z-link big prop is deprecated and will be dropped in a next release, please override --font-size-link and --font-weight-link variables instead");
257
- }
258
- }
259
- emitZLinkClick(e, linkId) {
260
- this.emitZLinkInteraction(e, linkId);
261
- }
262
- emitZLinkInteraction(e, linkId) {
263
- this.zLinkClick.emit({ e, linkId });
264
- }
265
- componentDidRender() {
266
- if (this.icon) {
267
- const height = parseFloat(window.getComputedStyle(this.hostElement).getPropertyValue('font-size'));
268
- const currentSize = this.big ? 18 : Math.round(height * 1.125);
269
- if (!Number.isNaN(currentSize) && this.iconSize !== currentSize) {
270
- this.iconSize = currentSize;
271
- }
272
- }
273
- }
274
- render() {
275
- const style = this.big ? { "--font-size-link": "16px", "--font-weight-link": "600" } : {};
276
- return (h(Host, { style: style }, h("a", { id: this.htmlid, href: this.href ? this.href : null, class: `${this.isdisabled ? "disabled" : ""}
277
- ${this.isactive ? "active" : ""}
278
- ${this.textcolor}
279
- ${this.iswhite ? "white" : ""}
280
- ${this.underline ? "underline" : ""}`, target: this.target, role: this.href ? "link" : "button", tabindex: this.isdisabled ? -1 : this.htmltabindex, onClick: (e) => this.emitZLinkClick(e, this.htmlid) }, this.iconposition === "right" && h("slot", null), this.icon &&
281
- h("z-icon", { style: { "--z-icon-width": this.iconSize.toString(), "--z-icon-height": this.iconSize.toString() }, name: this.icon, height: this.iconSize, width: this.iconSize }), this.iconposition === "left" && h("slot", null))));
282
- }
283
- get hostElement() { return getElement(this); }
284
- };
285
- ZLink.style = stylesCss$2;
286
-
287
- const stylesCss$1 = ":host{display:inline-block;vertical-align:top;width:255px;height:64px}img{display:block;margin:auto;width:100%;height:100%;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='255px' height='64px' viewBox='0 0 255 64'%3E%3Cg id='Logo/Zanichelli/Centered-(reworked)' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Group'%3E%3Cpolygon id='Background' fill='%23E2001A' points='1.70530257e-13 64 254.39 64 254.39 0 1.70530257e-13 0'%3E%3C/polygon%3E%3Cpath d='M233.36,51.3553859 L242.390252,51.3553859 L242.390252,12.6427292 L233.36,12.6427292 L233.36,51.3553859 Z M211.120346,51.3553859 L230.477617,51.3553859 L230.477617,44.5040053 L220.685891,44.5040053 L220.685891,12.6427292 L211.120346,12.6427292 L211.120346,51.3553859 Z M188.880124,51.3553859 L208.23551,51.3553859 L208.23551,44.5040053 L198.445669,44.5040053 L198.445669,12.6427292 L188.880124,12.6427292 L188.880124,51.3553859 Z M165.354444,12.6427292 L165.354444,51.3553859 L185.999058,51.3553859 L185.999058,44.5021204 L175.027425,44.5021204 L175.027425,35.1778343 L185.377062,35.1778343 L185.377062,28.2699086 L175.027425,28.2699086 L175.027425,19.4978796 L185.999058,19.4978796 L185.999058,12.6427292 L165.354444,12.6427292 Z M136.666196,51.3553859 L146.239281,51.3553859 L146.239281,35.1778343 L152.902178,35.1778343 L152.902178,51.3553859 L162.473377,51.3553859 L162.473377,12.6427292 L152.902178,12.6427292 L152.902178,28.2717934 L146.239281,28.2717934 L146.239281,12.6427292 L136.666196,12.6427292 L136.666196,51.3553859 Z M96.064744,51.3553859 L105.098765,51.3553859 L105.098765,12.6427292 L96.064744,12.6427292 L96.064744,51.3553859 Z M53.2364527,36.5160682 L50.6824993,19.7429083 L48.0757704,36.5160682 L53.2364527,36.5160682 Z M65.4935444,51.3553859 L56.2710395,51.3553859 L54.9441146,42.5286966 L47.7101121,42.5286966 L46.3304118,51.3553859 L37.1060221,51.3553859 L45.0053718,12.6427292 L57.5960795,12.6427292 L65.4935444,51.3553859 Z M85.0468382,37.7581755 L76.7969089,12.6427292 L67.3764961,12.6427292 L67.3764961,51.3553859 L75.4040147,51.3553859 L75.4040147,26.132504 L83.5955141,51.3553859 L93.1855622,51.3553859 L93.1855622,12.6427292 L85.0468382,12.6427292 L85.0468382,37.7581755 Z M107.977948,32 C107.977948,34.5200264 107.977948,36.7893695 108.187165,39.1246819 C108.396382,41.4713034 108.818585,43.6878711 109.678071,45.6009801 C111.423429,49.487513 114.932995,52 121.708982,52 C129.508435,52 133.787014,48.4753558 133.787014,38.0220526 L133.787014,37.5640373 L124.937707,37.5640373 L124.922628,38.0050891 C124.894356,38.7571388 124.884931,39.6185091 124.826501,40.4855339 C124.769956,41.3431345 124.66629,42.1875412 124.460843,42.9301668 C124.048064,44.3965696 123.279051,45.3559514 121.708982,45.3559514 C117.743286,45.3559514 117.057205,42.0574875 117.057205,32 C117.057205,21.9425125 117.743286,18.6440486 121.708982,18.6440486 C123.605127,18.6440486 124.547546,20.0030157 124.547546,25.1806616 L124.547546,25.6424465 L133.344077,25.6424465 L133.361041,25.1995099 C133.689003,16.7855998 130.235982,12 121.708982,12 C114.934879,12 111.427199,14.4823297 109.678071,18.3594383 C108.818585,20.265008 108.396382,22.4778061 108.187165,24.830082 C107.977948,27.1710489 107.977948,29.4554707 107.977948,32 L107.977948,32 Z M34.9007634,12.6446141 L34.9007634,20.3196683 L21.6051268,44.5040053 L35.2268401,44.5040053 L35.2268401,51.3553859 L12,51.3553859 L12,43.7915371 L25.2975214,19.4997644 L13.683159,19.4997644 L13.683159,12.6446141 L34.9007634,12.6446141 Z' id='Logotipo-(reworked)' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}a{display:block;width:100%;height:100%}:host(.mobile){width:31px;height:40px}:host(.mobile) img{content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31px' height='40px' viewBox='0 0 31 40'%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Topbar/Mobile/Logged' transform='translate(-16.000000, -4.000000)'%3E%3Cg id='Group' transform='translate(16.000000, 4.000000)'%3E%3Cpolygon id='Fill-1' fill='%23E2001A' points='0 40 30.625 40 30.625 0 0 0'%3E%3C/polygon%3E%3Cpolygon id='Fill-2' fill='%23FEFEFE' points='8.17111587 6.20689655 23.4311708 6.20689655 23.4311708 11.671267 13.8691261 28.9163861 23.6647727 28.9163861 23.6647727 33.7931034 6.96022727 33.7931034 6.96022727 28.408218 16.522272 11.0831673 8.17111587 11.0831673'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}";
288
-
289
- const ZLogo = class {
290
- constructor(hostRef) {
291
- registerInstance(this, hostRef);
292
- }
293
- render() {
294
- const style = {};
295
- if (this.width) {
296
- style["width"] = style["max-width"] = `${this.width}px`;
297
- }
298
- if (this.height) {
299
- style["height"] = style["max-height"] = `${this.height}px`;
300
- }
301
- return (h(Host, { style: style, class: { "mobile": !!this.mobileLogo } }, this.link ?
302
- h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, h("img", { alt: this.imageAlt })) :
303
- h("img", { alt: this.imageAlt })));
304
- }
305
- };
306
- ZLogo.style = stylesCss$1;
307
-
308
- const stylesCss = ".sc-z-offcanvas-h{--z-offcanvas--container-width:375px;--z-offcanvas--top-space:0px;z-index:1000;display:none;justify-content:end;height:100%;min-width:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.canvas-container.sc-z-offcanvas{display:flex;flex-direction:column;z-index:1010;min-width:100%;height:100%;overflow:-moz-scrollbars-none;overflow:hidden;background:var(--color-surface01);transform:translateX(100%)}@keyframes enterRight{from{transform:translateX(100%)}to{transform:translateX(0)}}[open].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{animation-name:enterRight;animation-duration:0.4s;animation-timing-function:ease-out;transform:translateX(0)}@keyframes exitRight{from{transform:translateX(0)}to{transform:translateX(100%)}}.sc-z-offcanvas-h:not([open])[variant=\"overlay\"]>.canvas-container.sc-z-offcanvas{animation-name:exitRight;animation-duration:0.4s;animation-timing-function:ease-out;transform:translateX(100%)}[variant=\"overlay\"].sc-z-offcanvas-h{position:fixed;height:calc(100% - var(--z-offcanvas--top-space));top:var(--z-offcanvas--top-space);left:0;right:0;bottom:0}[variant=\"overlay\"].sc-z-offcanvas-h .canvas-background.sc-z-offcanvas{position:absolute;left:0;width:100%;height:100%;background-color:var(--gray900);opacity:0.7}[transitiondirection=\"right\"].sc-z-offcanvas-h{justify-content:start}[transitiondirection=\"right\"].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{transform:translateX(-100%)}@keyframes enterLeft{from{transform:translateX(-100%)}to{transform:translateX(0)}}[transitiondirection=\"right\"][open].sc-z-offcanvas-h>.canvas-container.sc-z-offcanvas{animation-name:enterLeft;animation-duration:0.4s;animation-timing-function:ease-out;transform:translateX(0)}@keyframes exitLeft{from{transform:translateX(0)}to{transform:translateX(-100%)}}.sc-z-offcanvas-h:not([open])[variant=\"overlay\"][transitiondirection=\"right\"]>.canvas-container.sc-z-offcanvas{animation-name:exitLeft;animation-duration:0.4s;animation-timing-function:ease-out;transform:translateX(-100%)}.canvas-container.sc-z-offcanvas>.canvas-content.sc-z-offcanvas{flex:1 auto;overflow:auto;overflow-x:hidden;padding:0 calc(var(--space-unit) * 2);margin:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2) calc(var(--space-unit) * 2) 0}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar{background:linear-gradient(\n to right,\n transparent 0 3px,\n var(--gray200) 3px 7px,\n transparent 7px 10px\n );width:10px;border-radius:var(--border-radius)}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-track{background-color:transparent}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-thumb{background-color:var(--color-primary01);border-radius:var(--border-radius);width:10px}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.canvas-container.sc-z-offcanvas .canvas-content.sc-z-offcanvas{scrollbar-color:var(--color-primary01) transparent}@media only screen and (min-width: 768px){.sc-z-offcanvas-h{min-width:auto}.canvas-container.sc-z-offcanvas{width:auto;height:auto;min-width:max(var(--z-offcanvas--container-width), 375px);min-height:calc(var(--space-unit) * 40);max-width:max(var(--z-offcanvas--container-width), 375px)}@keyframes grow{from{width:0}to{width:max(var(--z-offcanvas--container-width), 375px)}}.sc-z-offcanvas-h:not([variant=\"overlay\"])[open]{animation-name:grow;animation-duration:0.4s;animation-timing-function:ease-out;width:auto}}";
309
-
310
- const ZOffcanvas = class {
311
- constructor(hostRef) {
312
- registerInstance(this, hostRef);
313
- this.canvasOpenStatusChanged = createEvent(this, "canvasOpenStatusChanged", 7);
314
- /**
315
- * Offcanvas variant.
316
- * Can be one of "overlay", "pushcontent"
317
- * Default variant: pushcontent
318
- */
319
- this.variant = OffCanvasVariantsEnum.pushcontent;
320
- /** open component. Default: false */
321
- this.open = false;
322
- /** open content transitioning in a specified direction left | right. Default: left */
323
- this.transitiondirection = TransitionDirectionEnum.left;
324
- }
325
- componentWillLoad() {
326
- this.handleOpenStatus();
327
- }
328
- onOpenChanged() {
329
- this.handleOpenStatus();
330
- this.canvasOpenStatusChanged.emit(this.open);
331
- }
332
- handleOpenStatus() {
333
- if (this.open) {
334
- this.hostElement.style.display = "flex";
335
- }
336
- else if (this.variant === OffCanvasVariantsEnum.pushcontent) {
337
- this.hostElement.style.display = "none";
338
- document.body.style.overflowX = "hidden";
339
- }
340
- }
341
- handleAnimationEnd() {
342
- if (this.hostElement.hasAttribute("open")) {
343
- this.hostElement.querySelector(`.canvas-content`).focus();
344
- }
345
- else if (this.variant === OffCanvasVariantsEnum.overlay) {
346
- this.hostElement.style.display = "none";
347
- document.body.style.overflowX = "initial";
348
- }
349
- }
350
- render() {
351
- return [
352
- h("div", { class: "canvas-container", onAnimationEnd: () => this.handleAnimationEnd() }, h("div", { class: "canvas-content", tabindex: "0" }, h("slot", { name: "canvasContent" }))),
353
- h("div", { class: "canvas-background", "data-action": "canvasBackground", onClick: () => this.open = false })
354
- ];
355
- }
356
- get hostElement() { return getElement(this); }
357
- static get watchers() { return {
358
- "open": ["onOpenChanged"]
359
- }; }
360
- };
361
- ZOffcanvas.style = stylesCss;
362
-
363
- export { ZAppSwitcher as z_app_switcher, ZAppTopbar as z_app_topbar, ZButton as z_button, ZCard as z_card, ZCarousel as z_carousel, ZDivider as z_divider, ZGhostLoading as z_ghost_loading, ZIcon as z_icon, ZLink as z_link, ZLogo as z_logo, ZOffcanvas as z_offcanvas };
@@ -1,223 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-90e18641.js';
2
- import { u as LabelPositions, I as InputTypeEnum } from './index-46ca649a.js';
3
- import { r as randomId, d as boolean } from './utils-5d5963ef.js';
4
- import './breakpoints-c386984e.js';
5
-
6
- const stylesCss$1 = ".sc-z-input-h{display:inline-block;width:inherit}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}.sc-z-input-h input.sc-z-input::-ms-clear,.sc-z-input-h input.sc-z-input::-ms-reveal{display:none}input.sc-z-input,textarea.sc-z-input,.textareaWrapper.sc-z-input{background:var(--color-input-field01);border-radius:var(--border-radius-small);border:var(--border-size-small) solid var(--color-surface04);box-sizing:border-box;color:var(--color-text02);fill:var(--color-icon02);font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:var(--font-size-3);outline:none}input.sc-z-input:focus:focus-visible,.textareaWrapper.sc-z-input:focus-within{box-shadow:var(--shadow-focus-primary)}input.sc-z-input:focus:focus-visible,textarea.sc-z-input:focus:focus-visible{color:var(--color-primary01)}.filled.sc-z-input{border-color:var(--color-surface05)}.input_success.sc-z-input{background:var(--color-success-inverse);border-color:var(--color-success01);fill:var(--color-success01)}.input_error.sc-z-input{background:var(--color-error-inverse);border-color:var(--color-error01);fill:var(--color-error01)}.input_warning.sc-z-input{background:var(--color-warning-inverse);border-color:var(--color-warning01);fill:var(--color-warning01)}input.sc-z-input:hover,.textareaWrapper.sc-z-input:hover{border-width:var(--border-size-medium)}input[readonly].sc-z-input,.readonly.sc-z-input{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) .textareaWrapper.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) z-icon.sc-z-input{border-color:var(--color-disabled01);color:var(--color-disabled02);fill:var(--color-disabled01);pointer-events:none;box-shadow:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input:hover{border-width:var(--border-size-small)}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input::-webkit-input-placeholder,.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-input-placeholder,.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::-moz-placeholder{color:var(--color-text05)}.sc-z-input:-moz-placeholder{color:var(--color-text05)}label.inputLabel.sc-z-input{display:block;margin-bottom:var(--space-unit);color:var(--color-text02);font-family:var(--font-family-sans);text-transform:uppercase;text-align:left}[disabled].sc-z-input-h:not([disabled=\"false\"]) label.inputLabel.sc-z-input{color:var(--color-disabled02)}.textWrapper.sc-z-input>div.sc-z-input{fill:var(--color-icon02)}.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);margin:0;padding:0 calc(var(--space-unit) * 1.5);box-sizing:border-box}.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.sc-z-input,.textWrapper.sc-z-input>div.sc-z-input>input.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.textWrapper.sc-z-input>div.sc-z-input>input.hasIcon.hasClearIcon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.textWrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1}.textWrapper.sc-z-input .iconsWrapper.sc-z-input{position:absolute;right:calc(var(--space-unit) * 1.5);top:50%;transform:translateY(-50%);display:flex;z-index:2;pointer-events:none}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.sc-z-input{background:none;color:inherit;border:0;padding:0;font:inherit;pointer-events:initial}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.sc-z-input+button.iconButton.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.resetIcon.sc-z-input,.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.showHidePasswordIcon.sc-z-input{cursor:pointer}.textWrapper.sc-z-input .iconsWrapper.sc-z-input>button.iconButton.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:hover,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:focus,.textWrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill:active{-webkit-background-clip:text !important}.textareaWrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-webkit-scrollbar{background:linear-gradient(\n to right,\n transparent 0 3px,\n var(--gray200) 3px 7px,\n transparent 7px 10px\n );width:10px;border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input{min-height:132px;width:100%;margin:0;padding:0;border:none;resize:none}.radioWrapper.sc-z-input,.checkboxWrapper.sc-z-input{display:inline-flex;flex-direction:row;align-items:center;font-family:var(--font-family-sans);position:relative;color:var(--color-text01);fill:var(--color-primary01)}.radioWrapper.sc-z-input:hover,.checkboxWrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentColor}.radioWrapper.sc-z-input>input.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input{position:absolute;opacity:0;z-index:-1;pointer-events:none}.radioWrapper.sc-z-input .radioLabel.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.sc-z-input{display:inline-flex;align-items:center;margin:0;line-height:1;color:inherit;font-family:inherit;font-weight:inherit;font-size:inherit;text-transform:inherit}.radioWrapper.sc-z-input input.sc-z-input:not(:disabled)+.radioLabel.sc-z-input,.checkboxWrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkboxLabel.sc-z-input{cursor:pointer}.radioWrapper.sc-z-input .radioLabel.sc-z-input z-icon.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.sc-z-input z-icon.sc-z-input{fill:inherit;cursor:pointer}.radioWrapper.sc-z-input .radioLabel.after.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.after.sc-z-input{flex-direction:row}.radioWrapper.sc-z-input .radioLabel.before.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.before.sc-z-input{flex-direction:row-reverse}.radioWrapper.sc-z-input .radioLabel.after.sc-z-input>span.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radioWrapper.sc-z-input .radioLabel.before.sc-z-input>span.sc-z-input,.checkboxWrapper.sc-z-input .checkboxLabel.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}.radioWrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radioLabel.sc-z-input>z-icon.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkboxLabel.sc-z-input>z-icon.sc-z-input{box-shadow:var(--shadow-focus-primary);border-radius:var(--border-radius-small)}.radioWrapper.sc-z-input>input.sc-z-input:disabled+.radioLabel.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:disabled+.checkboxLabel.sc-z-input{color:var(--color-disabled02)}.radioWrapper.sc-z-input>input.sc-z-input:disabled+.radioLabel.sc-z-input>z-icon.sc-z-input,.checkboxWrapper.sc-z-input>input.sc-z-input:disabled+.checkboxLabel.sc-z-input>z-icon.sc-z-input{fill:var(--color-disabled01);cursor:default}";
7
-
8
- const ZInput = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- this.inputChange = createEvent(this, "inputChange", 7);
12
- this.startTyping = createEvent(this, "startTyping", 7);
13
- this.stopTyping = createEvent(this, "stopTyping", 7);
14
- this.inputCheck = createEvent(this, "inputCheck", 7);
15
- /** the id of the input element */
16
- this.htmlid = `id-${randomId()}`;
17
- /** the input is disabled */
18
- this.disabled = false;
19
- /** the input is readonly */
20
- this.readonly = false;
21
- /** the input is required (optional): available for text, password, number, email, textarea, checkbox */
22
- this.required = false;
23
- /** checked: available for checkbox, radio */
24
- this.checked = false;
25
- /** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */
26
- this.message = true;
27
- /** the input label position: available for checkbox, radio */
28
- this.labelPosition = LabelPositions.right;
29
- /** render clear icon when typing (optional): available for text */
30
- this.hasclearicon = true;
31
- this.isTyping = false;
32
- this.passwordHidden = true;
33
- this.typingtimeout = 300;
34
- }
35
- inputCheckListener(e) {
36
- const data = e.detail;
37
- switch (this.type) {
38
- case InputTypeEnum.radio:
39
- if (data.type === InputTypeEnum.radio &&
40
- data.name === this.name &&
41
- data.id !== this.htmlid) {
42
- this.checked = false;
43
- }
44
- default:
45
- return;
46
- }
47
- }
48
- /** get checked status */
49
- async isChecked() {
50
- switch (this.type) {
51
- case InputTypeEnum.checkbox:
52
- case InputTypeEnum.radio:
53
- return this.checked;
54
- default:
55
- console.warn("`isChecked` method is only available for type `checkbox` and `radio`");
56
- return false;
57
- }
58
- }
59
- emitInputChange(value) {
60
- if (!this.isTyping)
61
- this.emitStartTyping();
62
- let validity = {};
63
- if (this.type === InputTypeEnum.textarea) {
64
- validity = this.getValidity("textarea");
65
- }
66
- else {
67
- validity = this.getValidity("input");
68
- }
69
- this.value = value;
70
- this.inputChange.emit({ value, validity });
71
- clearTimeout(this.timer);
72
- this.timer = setTimeout(() => {
73
- this.emitStopTyping(this.value, validity);
74
- }, this.typingtimeout);
75
- }
76
- emitStartTyping() {
77
- this.isTyping = true;
78
- this.startTyping.emit();
79
- }
80
- emitStopTyping(value, validity) {
81
- this.isTyping = false;
82
- this.stopTyping.emit({
83
- value: value,
84
- validity: validity,
85
- });
86
- }
87
- emitInputCheck(checked) {
88
- this.inputCheck.emit({
89
- id: this.htmlid,
90
- checked: checked,
91
- type: this.type,
92
- name: this.name,
93
- value: this.value,
94
- validity: this.getValidity("input"),
95
- });
96
- }
97
- getValidity(type) {
98
- const input = this.hostElement.querySelector(type);
99
- return input.validity;
100
- }
101
- /* START text/password/email/number */
102
- getTextAttributes() {
103
- return {
104
- id: this.htmlid,
105
- name: this.name,
106
- placeholder: this.placeholder,
107
- value: this.value,
108
- disabled: this.disabled,
109
- readonly: this.readonly,
110
- required: this.required,
111
- title: this.htmltitle,
112
- class: {
113
- [`input_${this.status || "default"}`]: true,
114
- filled: !!this.value,
115
- },
116
- autocomplete: this.autocomplete,
117
- onInput: (e) => this.emitInputChange(e.target.value),
118
- };
119
- }
120
- renderInputText(type = InputTypeEnum.text) {
121
- const attr = this.getTextAttributes();
122
- if (this.icon || type === InputTypeEnum.password) {
123
- attr.class = Object.assign(Object.assign({}, attr.class), { hasIcon: true });
124
- }
125
- if (this.hasclearicon) {
126
- attr.class = Object.assign(Object.assign({}, attr.class), { hasClearIcon: true });
127
- }
128
- return (h("div", { class: "textWrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === InputTypeEnum.password && !this.passwordHidden
129
- ? InputTypeEnum.text
130
- : type }, attr, { "aria-label": this.ariaLabel || this.label })), this.renderIcons()), this.renderMessage()));
131
- }
132
- renderLabel() {
133
- if (!this.label)
134
- return;
135
- return (h("label", { class: "inputLabel body-5-sb", id: `${this.htmlid}_label`, htmlFor: this.htmlid, "aria-label": this.label }, this.label));
136
- }
137
- renderIcons() {
138
- return (h("span", { class: "iconsWrapper" }, this.renderResetIcon(), this.renderIcon()));
139
- }
140
- renderIcon() {
141
- if (this.type === InputTypeEnum.password) {
142
- return this.renderShowHidePassword();
143
- }
144
- if (!this.icon)
145
- return;
146
- return (h("button", { type: "button", class: "iconButton inputIcon", tabIndex: -1 }, h("z-icon", { name: this.icon })));
147
- }
148
- renderResetIcon() {
149
- if (!this.hasclearicon || !this.value || this.disabled || this.readonly)
150
- return;
151
- return (h("button", { type: "button", class: "iconButton resetIcon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") }, h("z-icon", { name: "multiply" })));
152
- }
153
- renderShowHidePassword() {
154
- return (h("button", { type: "button", class: "iconButton showHidePasswordIcon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled" })));
155
- }
156
- renderMessage() {
157
- if (boolean(this.message) === false)
158
- return;
159
- return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status }));
160
- }
161
- /* END text/password/email/number */
162
- /* START textarea */
163
- renderTextarea() {
164
- const attributes = this.getTextAttributes();
165
- return (h("div", { class: "textWrapper" }, this.renderLabel(), h("div", { class: Object.assign(Object.assign({}, attributes.class), { textareaWrapper: true, readonly: attributes.readonly }) }, h("textarea", Object.assign({}, attributes, { "aria-label": this.ariaLabel || this.label }))), this.renderMessage()));
166
- }
167
- /* END textarea */
168
- handleCheck(ev) {
169
- this.checked = ev.target.checked;
170
- this.emitInputCheck(this.checked);
171
- }
172
- /* START checkbox */
173
- renderCheckbox() {
174
- return (h("div", { class: "checkboxWrapper" }, h("input", { id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }), h("label", { htmlFor: this.htmlid, class: {
175
- checkboxLabel: true,
176
- after: this.labelPosition === LabelPositions.right,
177
- before: this.labelPosition === LabelPositions.left,
178
- } }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
179
- }
180
- /* END checkbox */
181
- /* START radio */
182
- renderRadio() {
183
- return (h("div", { class: "radioWrapper" }, h("input", { id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }), h("label", { htmlFor: this.htmlid, class: {
184
- radioLabel: true,
185
- after: this.labelPosition === LabelPositions.right,
186
- before: this.labelPosition === LabelPositions.left,
187
- } }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
188
- }
189
- /* END radio */
190
- render() {
191
- switch (this.type) {
192
- case InputTypeEnum.textarea:
193
- return this.renderTextarea();
194
- case InputTypeEnum.checkbox:
195
- return this.renderCheckbox();
196
- case InputTypeEnum.radio:
197
- return this.renderRadio();
198
- default:
199
- return this.renderInputText(this.type);
200
- }
201
- }
202
- get hostElement() { return getElement(this); }
203
- };
204
- ZInput.style = stylesCss$1;
205
-
206
- const stylesCss = ":host{display:flex;align-items:start;min-height:calc(var(--space-unit) * 2);margin-top:var(--space-unit);color:var(--color-text05);fill:currentColor;font-family:var(--font-family-sans);font-size:var(--font-size-2);letter-spacing:0.16px}:host([status='success']){color:var(--color-text-success)}:host([status='error']){color:var(--color-text-error)}:host([status='warning']){color:var(--color-warning02)}:host(:focus){outline:none}:host>z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);margin:calc(var(--space-unit) / 3) var(--space-unit) 0 0}";
207
-
208
- const ZInputMessage = class {
209
- constructor(hostRef) {
210
- registerInstance(this, hostRef);
211
- this.statusIcons = {
212
- success: "checkmark-circle",
213
- error: "multiply-circled",
214
- warning: "exclamation-circle",
215
- };
216
- }
217
- render() {
218
- return (h(Host, { role: "alert", "aria-label": this.message, tabindex: this.message ? 0 : -1 }, this.statusIcons[this.status] && this.message && (h("z-icon", { name: this.statusIcons[this.status] })), h("span", { innerHTML: this.message })));
219
- }
220
- };
221
- ZInputMessage.style = stylesCss;
222
-
223
- export { ZInput as z_input, ZInputMessage as z_input_message };
@@ -1 +0,0 @@
1
- import{r as a,h as r,H as t}from"./p-98268a57.js";import{Z as s}from"./p-9f5d707a.js";const i=class{constructor(r){a(this,r),this.mode=s.polite}render(){return r(t,{"aria-live":this.mode,"aria-atomic":"true","aria-relevant":"additions"},r("slot",null))}};export{i as z_aria_alert}