@zanichelli/albe-web-components 3.2.0 → 4.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 (271) hide show
  1. package/CHANGELOG.md +1692 -0
  2. package/dist/cjs/{index-b1289f95.js → index-6b6a3299.js} +27 -29
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-33df2456.js → utils-8cc414c9.js} +28 -2
  6. package/dist/cjs/web-components-library.cjs.js +1 -1
  7. package/dist/cjs/z-app-switcher_12.cjs.entry.js +12 -14
  8. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/z-avatar.cjs.entry.js +1 -1
  10. package/dist/cjs/z-button-filter.cjs.entry.js +49 -0
  11. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  12. package/dist/cjs/z-combobox.cjs.entry.js +5 -5
  13. package/dist/cjs/z-contextual-menu.cjs.entry.js +1 -1
  14. package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
  15. package/dist/cjs/z-date-picker.cjs.entry.js +2 -2
  16. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +0 -1
  17. package/dist/cjs/z-file-upload.cjs.entry.js +2 -2
  18. package/dist/cjs/z-file.cjs.entry.js +1 -2
  19. package/dist/cjs/z-footer.cjs.entry.js +1 -1
  20. package/dist/cjs/z-input-deprecated.cjs.entry.js +271 -0
  21. package/dist/cjs/z-input-label_2.cjs.entry.js +272 -0
  22. package/dist/cjs/z-input_2.cjs.entry.js +228 -0
  23. package/dist/cjs/z-list-group.cjs.entry.js +54 -0
  24. package/dist/cjs/{z-list_3.cjs.entry.js → z-list_2.cjs.entry.js} +5 -52
  25. package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +4 -4
  26. package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
  27. package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
  28. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  29. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  30. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  31. package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
  32. package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
  33. package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
  34. package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
  35. package/dist/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
  36. package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
  37. package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
  38. package/dist/cjs/z-otp.cjs.entry.js +1 -1
  39. package/dist/cjs/z-pagination-bar.cjs.entry.js +2 -2
  40. package/dist/cjs/z-pagination.cjs.entry.js +2 -2
  41. package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
  42. package/dist/cjs/z-popover.cjs.entry.js +2 -2
  43. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  44. package/dist/cjs/z-skip-to-content.cjs.entry.js +2 -2
  45. package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
  46. package/dist/cjs/z-status-tag.cjs.entry.js +1 -1
  47. package/dist/cjs/z-table-cell.cjs.entry.js +1 -1
  48. package/dist/cjs/z-table-header.cjs.entry.js +2 -2
  49. package/dist/cjs/z-table-row.cjs.entry.js +1 -1
  50. package/dist/cjs/z-table.cjs.entry.js +1 -1
  51. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  52. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  53. package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
  54. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  55. package/dist/collection/beans/index.js +27 -29
  56. package/dist/collection/collection-manifest.json +2 -1
  57. package/dist/collection/components/buttons/z-button/index.js +12 -15
  58. package/dist/collection/components/buttons/z-button/styles.css +27 -31
  59. package/dist/collection/components/buttons/z-toggle-switch/index.js +6 -6
  60. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +0 -1
  61. package/dist/collection/components/file-upload/z-file/index.js +0 -1
  62. package/dist/collection/components/inputs/z-combobox/index.js +4 -4
  63. package/dist/collection/components/inputs/z-input/index.js +58 -234
  64. package/dist/collection/components/inputs/z-input/styles.css +61 -34
  65. package/dist/collection/components/inputs/z-input-message/index.js +1 -1
  66. package/dist/collection/components/inputs/z-select/index.js +69 -134
  67. package/dist/collection/components/inputs/z-select/styles.css +16 -58
  68. package/dist/collection/components/modal/z-modal-login/index.js +1 -1
  69. package/dist/collection/components/navigation/z-menu-dropdown/index.js +4 -4
  70. package/dist/collection/components/z-date-picker/index.js +35 -1
  71. package/dist/collection/components/z-pagination/index.js +2 -2
  72. package/dist/collection/deprecated/z-input-deprecated/index.js +824 -0
  73. package/dist/collection/deprecated/z-input-deprecated/styles.css +296 -0
  74. package/dist/collection/{components/inputs → deprecated}/z-input-label/index.js +0 -0
  75. package/dist/collection/{components/inputs → deprecated}/z-input-label/styles.css +0 -0
  76. package/dist/collection/snowflakes/myz/z-otp/index.js +1 -1
  77. package/dist/collection/utils/utils.js +27 -2
  78. package/dist/esm/{index-7424c64c.js → index-46ca649a.js} +28 -30
  79. package/dist/esm/index.js +2 -2
  80. package/dist/esm/loader.js +1 -1
  81. package/dist/esm/{utils-93d2b922.js → utils-5d5963ef.js} +28 -3
  82. package/dist/esm/web-components-library.js +1 -1
  83. package/dist/esm/z-app-switcher_12.entry.js +12 -14
  84. package/dist/esm/z-aria-alert.entry.js +1 -1
  85. package/dist/esm/z-avatar.entry.js +1 -1
  86. package/dist/esm/z-button-filter.entry.js +45 -0
  87. package/dist/esm/z-chip.entry.js +2 -2
  88. package/dist/esm/z-combobox.entry.js +5 -5
  89. package/dist/esm/z-contextual-menu.entry.js +1 -1
  90. package/dist/esm/z-cookiebar.entry.js +1 -1
  91. package/dist/esm/z-date-picker.entry.js +2 -2
  92. package/dist/esm/z-dragdrop-area_2.entry.js +0 -1
  93. package/dist/esm/z-file-upload.entry.js +2 -2
  94. package/dist/esm/z-file.entry.js +1 -2
  95. package/dist/esm/z-footer.entry.js +1 -1
  96. package/dist/esm/z-input-deprecated.entry.js +267 -0
  97. package/dist/esm/z-input-label_2.entry.js +267 -0
  98. package/dist/esm/z-input_2.entry.js +223 -0
  99. package/dist/esm/z-list-group.entry.js +50 -0
  100. package/dist/esm/z-list_2.entry.js +174 -0
  101. package/dist/esm/z-menu-dropdown_2.entry.js +4 -4
  102. package/dist/esm/z-messages-pocket.entry.js +1 -1
  103. package/dist/esm/z-modal-login.entry.js +1 -1
  104. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  105. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  106. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  107. package/dist/esm/z-myz-card-info.entry.js +2 -2
  108. package/dist/esm/z-myz-card_4.entry.js +1 -1
  109. package/dist/esm/z-myz-list-item.entry.js +2 -2
  110. package/dist/esm/z-myz-topbar.entry.js +1 -1
  111. package/dist/esm/z-navigation-tab-link.entry.js +1 -1
  112. package/dist/esm/z-navigation-tab.entry.js +1 -1
  113. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  114. package/dist/esm/z-otp.entry.js +1 -1
  115. package/dist/esm/z-pagination-bar.entry.js +2 -2
  116. package/dist/esm/z-pagination.entry.js +2 -2
  117. package/dist/esm/z-pocket_3.entry.js +2 -2
  118. package/dist/esm/z-popover.entry.js +2 -2
  119. package/dist/esm/z-section-title.entry.js +1 -1
  120. package/dist/esm/z-skip-to-content.entry.js +2 -2
  121. package/dist/esm/z-slideshow.entry.js +2 -2
  122. package/dist/esm/z-status-tag.entry.js +1 -1
  123. package/dist/esm/z-table-cell.entry.js +1 -1
  124. package/dist/esm/z-table-header.entry.js +2 -2
  125. package/dist/esm/z-table-row.entry.js +1 -1
  126. package/dist/esm/z-table.entry.js +1 -1
  127. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  128. package/dist/esm/z-toast-notification.entry.js +1 -1
  129. package/dist/esm/z-toggle-switch.entry.js +3 -3
  130. package/dist/esm/z-tooltip.entry.js +1 -1
  131. package/dist/types/beans/index.d.ts +6 -7
  132. package/dist/types/components/buttons/z-button/index.d.ts +6 -4
  133. package/dist/types/components/buttons/z-toggle-switch/index.d.ts +2 -2
  134. package/dist/types/components/inputs/z-input/index.d.ts +16 -29
  135. package/dist/types/components/inputs/z-select/index.d.ts +11 -17
  136. package/dist/types/components/z-date-picker/index.d.ts +4 -0
  137. package/dist/types/components.d.ts +209 -32
  138. package/dist/types/deprecated/z-input-deprecated/index.d.ts +102 -0
  139. package/dist/types/{components/inputs → deprecated}/z-input-label/index.d.ts +0 -0
  140. package/dist/types/utils/utils.d.ts +5 -0
  141. package/dist/web-components-library/index.esm.js +1 -1
  142. package/{www/build/p-e9b90127.entry.js → dist/web-components-library/p-02ea7e49.entry.js} +1 -1
  143. package/dist/web-components-library/{p-21b9a94f.entry.js → p-08fa0a33.entry.js} +1 -1
  144. package/{www/build/p-e4b4b2e4.entry.js → dist/web-components-library/p-0a0aee35.entry.js} +1 -1
  145. package/dist/web-components-library/{p-2e510e79.entry.js → p-0d29d851.entry.js} +1 -1
  146. package/dist/web-components-library/{p-b0ea8c0e.entry.js → p-0ef6c549.entry.js} +1 -1
  147. package/dist/web-components-library/{p-4c282f06.entry.js → p-0f17db30.entry.js} +1 -1
  148. package/dist/web-components-library/{p-a391566a.entry.js → p-12af8652.entry.js} +1 -1
  149. package/dist/web-components-library/{p-3184d969.entry.js → p-1727c1c8.entry.js} +1 -1
  150. package/dist/web-components-library/{p-e7aadd3d.entry.js → p-20d62443.entry.js} +1 -1
  151. package/dist/web-components-library/{p-cd2ca92b.entry.js → p-3252be36.entry.js} +1 -1
  152. package/dist/web-components-library/{p-1b973c72.entry.js → p-3c111c2a.entry.js} +1 -1
  153. package/dist/web-components-library/{p-9721e132.entry.js → p-43329b81.entry.js} +1 -1
  154. package/dist/web-components-library/{p-9935973a.entry.js → p-4af112a7.entry.js} +1 -1
  155. package/dist/web-components-library/{p-03de95f1.entry.js → p-51cdabeb.entry.js} +1 -1
  156. package/dist/web-components-library/p-562e2d52.entry.js +1 -0
  157. package/dist/web-components-library/{p-709ab23c.entry.js → p-57d1acdc.entry.js} +1 -1
  158. package/dist/web-components-library/{p-0398165f.entry.js → p-5be162d5.entry.js} +1 -1
  159. package/{www/build/p-7e71d9b0.entry.js → dist/web-components-library/p-5eacbfc7.entry.js} +1 -1
  160. package/dist/web-components-library/{p-223bec2f.entry.js → p-63ccb013.entry.js} +1 -1
  161. package/dist/web-components-library/p-69ef6ddc.entry.js +1 -0
  162. package/dist/web-components-library/p-71accd8e.entry.js +1 -0
  163. package/dist/web-components-library/{p-56437e20.entry.js → p-7c6d4440.entry.js} +1 -1
  164. package/dist/web-components-library/p-99d7ab2f.entry.js +1 -0
  165. package/dist/web-components-library/{p-2ff952a3.entry.js → p-9aa5d36c.entry.js} +1 -1
  166. package/dist/web-components-library/p-9f5d707a.js +1 -0
  167. package/dist/web-components-library/{p-2711bc32.entry.js → p-9f9e4266.entry.js} +1 -1
  168. package/dist/web-components-library/{p-cce20009.entry.js → p-a851af81.entry.js} +1 -1
  169. package/dist/web-components-library/{p-bbb0e7a7.entry.js → p-a8875b97.entry.js} +2 -2
  170. package/dist/web-components-library/{p-adad78fc.entry.js → p-ae60bbdf.entry.js} +1 -1
  171. package/dist/web-components-library/p-b574d5f6.entry.js +1 -0
  172. package/dist/web-components-library/p-b9da171f.js +1 -0
  173. package/dist/web-components-library/{p-aae632ef.entry.js → p-ba29bc12.entry.js} +1 -1
  174. package/dist/web-components-library/p-bd886dd5.entry.js +1 -0
  175. package/dist/web-components-library/{p-542b3702.entry.js → p-bfe5693d.entry.js} +1 -1
  176. package/dist/web-components-library/{p-2b8975b1.entry.js → p-c9cdf4ee.entry.js} +1 -1
  177. package/dist/web-components-library/{p-dfc18671.entry.js → p-ccdebe3f.entry.js} +1 -1
  178. package/dist/web-components-library/p-cd8950d2.entry.js +1 -0
  179. package/dist/web-components-library/{p-c787ea21.entry.js → p-d33fea26.entry.js} +1 -1
  180. package/dist/web-components-library/p-d8069dab.entry.js +1 -0
  181. package/dist/web-components-library/{p-f3080685.entry.js → p-d97a2db9.entry.js} +1 -1
  182. package/dist/web-components-library/{p-1eef76bb.entry.js → p-d995d9dc.entry.js} +1 -1
  183. package/dist/web-components-library/{p-895f636e.entry.js → p-de25c7f0.entry.js} +1 -1
  184. package/dist/web-components-library/{p-66fbe5b8.entry.js → p-df4e963b.entry.js} +1 -1
  185. package/dist/web-components-library/p-e2102da3.entry.js +1 -0
  186. package/dist/web-components-library/{p-459dab30.entry.js → p-e84d6807.entry.js} +1 -1
  187. package/dist/web-components-library/p-edb8d2ab.entry.js +1 -0
  188. package/dist/web-components-library/{p-0b590426.entry.js → p-f322c5f0.entry.js} +1 -1
  189. package/dist/web-components-library/{p-da7760a3.entry.js → p-f7c3e9c3.entry.js} +1 -1
  190. package/{www/build/p-dcf4d1b6.entry.js → dist/web-components-library/p-fa925198.entry.js} +1 -1
  191. package/dist/web-components-library/{p-2c823f4c.entry.js → p-fe927bf4.entry.js} +1 -1
  192. package/dist/web-components-library/web-components-library.esm.js +1 -1
  193. package/package.json +1 -1
  194. package/react/components.d.ts +1 -0
  195. package/react/components.js +4 -3
  196. package/react/components.js.map +1 -1
  197. package/src-react/index.ts +1 -0
  198. package/www/build/index.esm.js +1 -1
  199. package/{dist/web-components-library/p-e9b90127.entry.js → www/build/p-02ea7e49.entry.js} +1 -1
  200. package/www/build/{p-21b9a94f.entry.js → p-08fa0a33.entry.js} +1 -1
  201. package/{dist/web-components-library/p-e4b4b2e4.entry.js → www/build/p-0a0aee35.entry.js} +1 -1
  202. package/www/build/{p-2e510e79.entry.js → p-0d29d851.entry.js} +1 -1
  203. package/www/build/{p-b0ea8c0e.entry.js → p-0ef6c549.entry.js} +1 -1
  204. package/www/build/{p-4c282f06.entry.js → p-0f17db30.entry.js} +1 -1
  205. package/www/build/{p-a391566a.entry.js → p-12af8652.entry.js} +1 -1
  206. package/www/build/{p-3184d969.entry.js → p-1727c1c8.entry.js} +1 -1
  207. package/www/build/{p-e7aadd3d.entry.js → p-20d62443.entry.js} +1 -1
  208. package/www/build/{p-cd2ca92b.entry.js → p-3252be36.entry.js} +1 -1
  209. package/www/build/{p-1b973c72.entry.js → p-3c111c2a.entry.js} +1 -1
  210. package/www/build/{p-9721e132.entry.js → p-43329b81.entry.js} +1 -1
  211. package/www/build/{p-9935973a.entry.js → p-4af112a7.entry.js} +1 -1
  212. package/www/build/{p-03de95f1.entry.js → p-51cdabeb.entry.js} +1 -1
  213. package/www/build/p-562e2d52.entry.js +1 -0
  214. package/www/build/{p-709ab23c.entry.js → p-57d1acdc.entry.js} +1 -1
  215. package/www/build/{p-0398165f.entry.js → p-5be162d5.entry.js} +1 -1
  216. package/{dist/web-components-library/p-7e71d9b0.entry.js → www/build/p-5eacbfc7.entry.js} +1 -1
  217. package/www/build/{p-223bec2f.entry.js → p-63ccb013.entry.js} +1 -1
  218. package/www/build/p-69ef6ddc.entry.js +1 -0
  219. package/www/build/p-71accd8e.entry.js +1 -0
  220. package/www/build/{p-56437e20.entry.js → p-7c6d4440.entry.js} +1 -1
  221. package/www/build/p-99d7ab2f.entry.js +1 -0
  222. package/www/build/{p-2ff952a3.entry.js → p-9aa5d36c.entry.js} +1 -1
  223. package/www/build/p-9f5d707a.js +1 -0
  224. package/www/build/{p-2711bc32.entry.js → p-9f9e4266.entry.js} +1 -1
  225. package/www/build/{p-cce20009.entry.js → p-a851af81.entry.js} +1 -1
  226. package/www/build/{p-bbb0e7a7.entry.js → p-a8875b97.entry.js} +2 -2
  227. package/www/build/{p-adad78fc.entry.js → p-ae60bbdf.entry.js} +1 -1
  228. package/www/build/p-b574d5f6.entry.js +1 -0
  229. package/www/build/p-b9da171f.js +1 -0
  230. package/www/build/{p-aae632ef.entry.js → p-ba29bc12.entry.js} +1 -1
  231. package/www/build/p-bd886dd5.entry.js +1 -0
  232. package/www/build/{p-542b3702.entry.js → p-bfe5693d.entry.js} +1 -1
  233. package/www/build/{p-2b8975b1.entry.js → p-c9cdf4ee.entry.js} +1 -1
  234. package/www/build/{p-dfc18671.entry.js → p-ccdebe3f.entry.js} +1 -1
  235. package/www/build/p-cd8950d2.entry.js +1 -0
  236. package/www/build/{p-c787ea21.entry.js → p-d33fea26.entry.js} +1 -1
  237. package/www/build/p-d8069dab.entry.js +1 -0
  238. package/www/build/{p-f3080685.entry.js → p-d97a2db9.entry.js} +1 -1
  239. package/www/build/{p-1eef76bb.entry.js → p-d995d9dc.entry.js} +1 -1
  240. package/www/build/{p-895f636e.entry.js → p-de25c7f0.entry.js} +1 -1
  241. package/www/build/{p-66fbe5b8.entry.js → p-df4e963b.entry.js} +1 -1
  242. package/www/build/p-e2102da3.entry.js +1 -0
  243. package/www/build/p-e76afdbc.js +1 -0
  244. package/www/build/{p-459dab30.entry.js → p-e84d6807.entry.js} +1 -1
  245. package/www/build/p-edb8d2ab.entry.js +1 -0
  246. package/www/build/{p-0b590426.entry.js → p-f322c5f0.entry.js} +1 -1
  247. package/www/build/{p-da7760a3.entry.js → p-f7c3e9c3.entry.js} +1 -1
  248. package/{dist/web-components-library/p-dcf4d1b6.entry.js → www/build/p-fa925198.entry.js} +1 -1
  249. package/www/build/{p-2c823f4c.entry.js → p-fe927bf4.entry.js} +1 -1
  250. package/www/build/web-components-library.esm.js +1 -1
  251. package/www/index.html +1 -1
  252. package/dist/cjs/z-button-filter_5.cjs.entry.js +0 -620
  253. package/dist/esm/z-button-filter_5.entry.js +0 -612
  254. package/dist/esm/z-list_3.entry.js +0 -220
  255. package/dist/web-components-library/p-14c9344f.entry.js +0 -1
  256. package/dist/web-components-library/p-57270965.entry.js +0 -1
  257. package/dist/web-components-library/p-70be81b6.entry.js +0 -1
  258. package/dist/web-components-library/p-80369bb8.entry.js +0 -1
  259. package/dist/web-components-library/p-80a3e18a.js +0 -1
  260. package/dist/web-components-library/p-a785ff38.entry.js +0 -1
  261. package/dist/web-components-library/p-d3723aa7.entry.js +0 -1
  262. package/dist/web-components-library/p-fea5b98f.js +0 -1
  263. package/www/build/p-14c9344f.entry.js +0 -1
  264. package/www/build/p-57270965.entry.js +0 -1
  265. package/www/build/p-70be81b6.entry.js +0 -1
  266. package/www/build/p-80369bb8.entry.js +0 -1
  267. package/www/build/p-80a3e18a.js +0 -1
  268. package/www/build/p-9ebf28f8.js +0 -1
  269. package/www/build/p-a785ff38.entry.js +0 -1
  270. package/www/build/p-d3723aa7.entry.js +0 -1
  271. package/www/build/p-fea5b98f.js +0 -1
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { AlertTypes, LicenseTypeEnum, MenuItem as MenuItem1, TooltipPosition } from "./beans/index";
9
- import { AvatarSize, ButtonSizeEnum, ButtonVariantBean, ButtonVariantEnum, CardVariants, ComboItemBean, DictionaryData, DividerOrientation, DividerSize, ExpandableListButtonAlign, ExpandableListStyle, HeaderUserData, InputStatusBean, InputTypeBean, ListDividerType, ListSize, MenuItem, NavigationTabsOrientation, NavigationTabsSize, NotificationType, OffCanvasVariantsEnum, PocketStatus, PopoverBorderRadius, PopoverPosition, PopoverShadow, SelectItemBean, Size, SkipToContentLink, SortDirection, StatusTagStatus, ThemeVariant, ThemeVariantBean, ToastNotificationPositionsTypes, ToastNotificationTransitionTypes, ToastNotificationTypes, TransitionDirectionEnum, ZChipType, ZDatePickerMode, ZFileUploadTypeEnum, ZSectionTitleDividerPosition, ZTableRowExpandedType, ZtoggleSwitchPositionEnum } from "./beans";
9
+ import { AvatarSize, ButtonSizeEnum, ButtonVariantBean, ButtonVariantEnum, CardVariants, ComboItemBean, DictionaryData, DividerOrientation, DividerSize, ExpandableListButtonAlign, ExpandableListStyle, HeaderUserData, InputStatusBean, InputTypeBean, LabelPosition, ListDividerType, ListSize, MenuItem, NavigationTabsOrientation, NavigationTabsSize, NotificationType, OffCanvasVariantsEnum, PocketStatus, PopoverBorderRadius, PopoverPosition, PopoverShadow, SelectItemBean, Size, SkipToContentLink, SortDirection, StatusTagStatus, ThemeVariant, ThemeVariantBean, ToastNotificationPositionsTypes, ToastNotificationTransitionTypes, ToastNotificationTypes, TransitionDirectionEnum, ZChipType, ZDatePickerMode, ZFileUploadTypeEnum, ZSectionTitleDividerPosition, ZTableRowExpandedType } from "./beans";
10
10
  import { ListItemBean } from "./beans/index.js";
11
11
  import { ZTypographyLevels } from "./components/typography/z-typography/index";
12
12
  export namespace Components {
@@ -106,7 +106,7 @@ export namespace Components {
106
106
  */
107
107
  "disabled"?: boolean;
108
108
  /**
109
- * HTML a href attribute. If it is set, it renders an HTML a tag.
109
+ * HTML <a> href attribute. If it is set, it renders an HTML <a> tag.
110
110
  */
111
111
  "href"?: string;
112
112
  /**
@@ -376,10 +376,18 @@ export namespace Components {
376
376
  "hide"?: boolean;
377
377
  }
378
378
  interface ZDatePicker {
379
+ /**
380
+ * z-input aria label
381
+ */
382
+ "ariaLabel"?: string;
379
383
  /**
380
384
  * unique id
381
385
  */
382
386
  "datepickerid": string;
387
+ /**
388
+ * z-input label
389
+ */
390
+ "label"?: string;
383
391
  /**
384
392
  * [Optional] datepicker mode: date, datetime, only months
385
393
  */
@@ -524,6 +532,84 @@ export namespace Components {
524
532
  "isclosable": boolean;
525
533
  }
526
534
  interface ZInput {
535
+ /**
536
+ * the input aria-label
537
+ */
538
+ "ariaLabel"?: string;
539
+ /**
540
+ * the input has autocomplete option (optional): available for text, password, number, email
541
+ */
542
+ "autocomplete"?: string;
543
+ /**
544
+ * checked: available for checkbox, radio
545
+ */
546
+ "checked"?: boolean;
547
+ /**
548
+ * the input is disabled
549
+ */
550
+ "disabled"?: boolean;
551
+ /**
552
+ * render clear icon when typing (optional): available for text
553
+ */
554
+ "hasclearicon"?: boolean;
555
+ /**
556
+ * the id of the input element
557
+ */
558
+ "htmlid": string;
559
+ /**
560
+ * the input html title (optional)
561
+ */
562
+ "htmltitle"?: string;
563
+ /**
564
+ * render icon (optional): available for text
565
+ */
566
+ "icon"?: string;
567
+ /**
568
+ * get checked status
569
+ */
570
+ "isChecked": () => Promise<boolean>;
571
+ /**
572
+ * the input label
573
+ */
574
+ "label"?: string;
575
+ /**
576
+ * the input label position: available for checkbox, radio
577
+ */
578
+ "labelPosition"?: LabelPosition;
579
+ /**
580
+ * input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed
581
+ */
582
+ "message"?: string | boolean;
583
+ /**
584
+ * the input name
585
+ */
586
+ "name"?: string;
587
+ /**
588
+ * the input placeholder (optional)
589
+ */
590
+ "placeholder"?: string;
591
+ /**
592
+ * the input is readonly
593
+ */
594
+ "readonly"?: boolean;
595
+ /**
596
+ * the input is required (optional): available for text, password, number, email, textarea, checkbox
597
+ */
598
+ "required"?: boolean;
599
+ /**
600
+ * the input status (optional): available for text, password, number, email, textarea
601
+ */
602
+ "status"?: InputStatusBean;
603
+ /**
604
+ * input types
605
+ */
606
+ "type": InputTypeBean;
607
+ /**
608
+ * the input value
609
+ */
610
+ "value"?: string;
611
+ }
612
+ interface ZInputDeprecated {
527
613
  /**
528
614
  * the input aria-label
529
615
  */
@@ -1451,7 +1537,7 @@ export namespace Components {
1451
1537
  /**
1452
1538
  * the input has autocomplete option
1453
1539
  */
1454
- "autocomplete"?: boolean | string;
1540
+ "autocomplete"?: boolean;
1455
1541
  /**
1456
1542
  * the input is disabled
1457
1543
  */
@@ -1459,15 +1545,11 @@ export namespace Components {
1459
1545
  /**
1460
1546
  * get the input selected options
1461
1547
  */
1462
- "getSelectedItems": () => Promise<SelectItemBean[]>;
1548
+ "getSelectedItem": () => Promise<SelectItemBean>;
1463
1549
  /**
1464
1550
  * get the input value
1465
1551
  */
1466
- "getValue": () => Promise<string | string[]>;
1467
- /**
1468
- * show input helper message (optional): available for text, password, number, email, textarea, select
1469
- */
1470
- "hasmessage"?: boolean;
1552
+ "getValue": () => Promise<string>;
1471
1553
  /**
1472
1554
  * the id of the input element
1473
1555
  */
@@ -1485,13 +1567,9 @@ export namespace Components {
1485
1567
  */
1486
1568
  "label"?: string;
1487
1569
  /**
1488
- * input helper message (optional): available for text, password, number, email, textarea, select
1570
+ * input helper message (optional) - if set to `false` message won't be displayed
1489
1571
  */
1490
- "message"?: string;
1491
- /**
1492
- * multiple options can be selected
1493
- */
1494
- "multiple"?: boolean;
1572
+ "message"?: string | boolean;
1495
1573
  /**
1496
1574
  * the input name
1497
1575
  */
@@ -1513,7 +1591,7 @@ export namespace Components {
1513
1591
  */
1514
1592
  "setValue": (value: string | string[]) => Promise<void>;
1515
1593
  /**
1516
- * the input status (optional): available for text, password, number, email, textarea, select
1594
+ * the input status (optional)
1517
1595
  */
1518
1596
  "status"?: InputStatusBean;
1519
1597
  }
@@ -1772,7 +1850,7 @@ export namespace Components {
1772
1850
  "checked"?: boolean;
1773
1851
  "disabled"?: boolean;
1774
1852
  "htmlid": string;
1775
- "labelPosition"?: ZtoggleSwitchPositionEnum;
1853
+ "labelPosition"?: LabelPosition;
1776
1854
  }
1777
1855
  interface ZTooltip {
1778
1856
  /**
@@ -2028,6 +2106,12 @@ declare global {
2028
2106
  prototype: HTMLZInputElement;
2029
2107
  new (): HTMLZInputElement;
2030
2108
  };
2109
+ interface HTMLZInputDeprecatedElement extends Components.ZInputDeprecated, HTMLStencilElement {
2110
+ }
2111
+ var HTMLZInputDeprecatedElement: {
2112
+ prototype: HTMLZInputDeprecatedElement;
2113
+ new (): HTMLZInputDeprecatedElement;
2114
+ };
2031
2115
  interface HTMLZInputLabelElement extends Components.ZInputLabel, HTMLStencilElement {
2032
2116
  }
2033
2117
  var HTMLZInputLabelElement: {
@@ -2477,6 +2561,7 @@ declare global {
2477
2561
  "z-icon-package": HTMLZIconPackageElement;
2478
2562
  "z-info-box": HTMLZInfoBoxElement;
2479
2563
  "z-input": HTMLZInputElement;
2564
+ "z-input-deprecated": HTMLZInputDeprecatedElement;
2480
2565
  "z-input-label": HTMLZInputLabelElement;
2481
2566
  "z-input-message": HTMLZInputMessageElement;
2482
2567
  "z-link": HTMLZLinkElement;
@@ -2653,7 +2738,7 @@ declare namespace LocalJSX {
2653
2738
  */
2654
2739
  "disabled"?: boolean;
2655
2740
  /**
2656
- * HTML a href attribute. If it is set, it renders an HTML a tag.
2741
+ * HTML <a> href attribute. If it is set, it renders an HTML <a> tag.
2657
2742
  */
2658
2743
  "href"?: string;
2659
2744
  /**
@@ -2951,10 +3036,18 @@ declare namespace LocalJSX {
2951
3036
  "onAccept"?: (event: CustomEvent<any>) => void;
2952
3037
  }
2953
3038
  interface ZDatePicker {
3039
+ /**
3040
+ * z-input aria label
3041
+ */
3042
+ "ariaLabel"?: string;
2954
3043
  /**
2955
3044
  * unique id
2956
3045
  */
2957
3046
  "datepickerid"?: string;
3047
+ /**
3048
+ * z-input label
3049
+ */
3050
+ "label"?: string;
2958
3051
  /**
2959
3052
  * [Optional] datepicker mode: date, datetime, only months
2960
3053
  */
@@ -3127,6 +3220,96 @@ declare namespace LocalJSX {
3127
3220
  "onInfoBoxClose"?: (event: CustomEvent<any>) => void;
3128
3221
  }
3129
3222
  interface ZInput {
3223
+ /**
3224
+ * the input aria-label
3225
+ */
3226
+ "ariaLabel"?: string;
3227
+ /**
3228
+ * the input has autocomplete option (optional): available for text, password, number, email
3229
+ */
3230
+ "autocomplete"?: string;
3231
+ /**
3232
+ * checked: available for checkbox, radio
3233
+ */
3234
+ "checked"?: boolean;
3235
+ /**
3236
+ * the input is disabled
3237
+ */
3238
+ "disabled"?: boolean;
3239
+ /**
3240
+ * render clear icon when typing (optional): available for text
3241
+ */
3242
+ "hasclearicon"?: boolean;
3243
+ /**
3244
+ * the id of the input element
3245
+ */
3246
+ "htmlid"?: string;
3247
+ /**
3248
+ * the input html title (optional)
3249
+ */
3250
+ "htmltitle"?: string;
3251
+ /**
3252
+ * render icon (optional): available for text
3253
+ */
3254
+ "icon"?: string;
3255
+ /**
3256
+ * the input label
3257
+ */
3258
+ "label"?: string;
3259
+ /**
3260
+ * the input label position: available for checkbox, radio
3261
+ */
3262
+ "labelPosition"?: LabelPosition;
3263
+ /**
3264
+ * input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed
3265
+ */
3266
+ "message"?: string | boolean;
3267
+ /**
3268
+ * the input name
3269
+ */
3270
+ "name"?: string;
3271
+ /**
3272
+ * Emitted on input value change, returns value, validity
3273
+ */
3274
+ "onInputChange"?: (event: CustomEvent<any>) => void;
3275
+ /**
3276
+ * Emitted on checkbox check/uncheck, returns id, checked, type, name, value, validity
3277
+ */
3278
+ "onInputCheck"?: (event: CustomEvent<any>) => void;
3279
+ /**
3280
+ * Emitted when user starts typing
3281
+ */
3282
+ "onStartTyping"?: (event: CustomEvent<any>) => void;
3283
+ /**
3284
+ * Emitted when user stops typing, returns value, validity
3285
+ */
3286
+ "onStopTyping"?: (event: CustomEvent<any>) => void;
3287
+ /**
3288
+ * the input placeholder (optional)
3289
+ */
3290
+ "placeholder"?: string;
3291
+ /**
3292
+ * the input is readonly
3293
+ */
3294
+ "readonly"?: boolean;
3295
+ /**
3296
+ * the input is required (optional): available for text, password, number, email, textarea, checkbox
3297
+ */
3298
+ "required"?: boolean;
3299
+ /**
3300
+ * the input status (optional): available for text, password, number, email, textarea
3301
+ */
3302
+ "status"?: InputStatusBean;
3303
+ /**
3304
+ * input types
3305
+ */
3306
+ "type"?: InputTypeBean;
3307
+ /**
3308
+ * the input value
3309
+ */
3310
+ "value"?: string;
3311
+ }
3312
+ interface ZInputDeprecated {
3130
3313
  /**
3131
3314
  * the input aria-label
3132
3315
  */
@@ -4177,15 +4360,11 @@ declare namespace LocalJSX {
4177
4360
  /**
4178
4361
  * the input has autocomplete option
4179
4362
  */
4180
- "autocomplete"?: boolean | string;
4363
+ "autocomplete"?: boolean;
4181
4364
  /**
4182
4365
  * the input is disabled
4183
4366
  */
4184
4367
  "disabled"?: boolean;
4185
- /**
4186
- * show input helper message (optional): available for text, password, number, email, textarea, select
4187
- */
4188
- "hasmessage"?: boolean;
4189
4368
  /**
4190
4369
  * the id of the input element
4191
4370
  */
@@ -4203,13 +4382,9 @@ declare namespace LocalJSX {
4203
4382
  */
4204
4383
  "label"?: string;
4205
4384
  /**
4206
- * input helper message (optional): available for text, password, number, email, textarea, select
4385
+ * input helper message (optional) - if set to `false` message won't be displayed
4207
4386
  */
4208
- "message"?: string;
4209
- /**
4210
- * multiple options can be selected
4211
- */
4212
- "multiple"?: boolean;
4387
+ "message"?: string | boolean;
4213
4388
  /**
4214
4389
  * the input name
4215
4390
  */
@@ -4219,7 +4394,7 @@ declare namespace LocalJSX {
4219
4394
  */
4220
4395
  "noresultslabel"?: string;
4221
4396
  /**
4222
- * Emitted on select option selection, returns select id, selected item id (or array of selected items ids if multiple)
4397
+ * Emitted on select option selection, returns select id, selected item id
4223
4398
  */
4224
4399
  "onOptionSelect"?: (event: CustomEvent<any>) => void;
4225
4400
  /**
@@ -4231,7 +4406,7 @@ declare namespace LocalJSX {
4231
4406
  */
4232
4407
  "readonly"?: boolean;
4233
4408
  /**
4234
- * the input status (optional): available for text, password, number, email, textarea, select
4409
+ * the input status (optional)
4235
4410
  */
4236
4411
  "status"?: InputStatusBean;
4237
4412
  }
@@ -4511,7 +4686,7 @@ declare namespace LocalJSX {
4511
4686
  "checked"?: boolean;
4512
4687
  "disabled"?: boolean;
4513
4688
  "htmlid"?: string;
4514
- "labelPosition"?: ZtoggleSwitchPositionEnum;
4689
+ "labelPosition"?: LabelPosition;
4515
4690
  "onToggleClick"?: (event: CustomEvent<any>) => void;
4516
4691
  }
4517
4692
  interface ZTooltip {
@@ -4609,6 +4784,7 @@ declare namespace LocalJSX {
4609
4784
  "z-icon-package": ZIconPackage;
4610
4785
  "z-info-box": ZInfoBox;
4611
4786
  "z-input": ZInput;
4787
+ "z-input-deprecated": ZInputDeprecated;
4612
4788
  "z-input-label": ZInputLabel;
4613
4789
  "z-input-message": ZInputMessage;
4614
4790
  "z-link": ZLink;
@@ -4718,6 +4894,7 @@ declare module "@stencil/core" {
4718
4894
  "z-icon-package": LocalJSX.ZIconPackage & JSXBase.HTMLAttributes<HTMLZIconPackageElement>;
4719
4895
  "z-info-box": LocalJSX.ZInfoBox & JSXBase.HTMLAttributes<HTMLZInfoBoxElement>;
4720
4896
  "z-input": LocalJSX.ZInput & JSXBase.HTMLAttributes<HTMLZInputElement>;
4897
+ "z-input-deprecated": LocalJSX.ZInputDeprecated & JSXBase.HTMLAttributes<HTMLZInputDeprecatedElement>;
4721
4898
  "z-input-label": LocalJSX.ZInputLabel & JSXBase.HTMLAttributes<HTMLZInputLabelElement>;
4722
4899
  "z-input-message": LocalJSX.ZInputMessage & JSXBase.HTMLAttributes<HTMLZInputMessageElement>;
4723
4900
  "z-link": LocalJSX.ZLink & JSXBase.HTMLAttributes<HTMLZLinkElement>;
@@ -0,0 +1,102 @@
1
+ import { EventEmitter } from "../../stencil-public-runtime";
2
+ import { InputTypeBean, InputStatusBean, SelectItemBean } from "../../beans";
3
+ export declare class ZInputDeprecated {
4
+ hostElement: HTMLElement;
5
+ /** the id of the input element */
6
+ htmlid: string;
7
+ /** input types */
8
+ type: InputTypeBean;
9
+ /** the input name */
10
+ name?: string;
11
+ /** the input label */
12
+ label?: string;
13
+ /** the input aria-label */
14
+ ariaLabel?: string;
15
+ /** the input value */
16
+ value?: string;
17
+ /** the input is disabled */
18
+ disabled?: boolean;
19
+ /** the input is readonly */
20
+ readonly?: boolean;
21
+ /** the input is required (optional): available for text, password, number, email, textarea, checkbox */
22
+ required?: boolean;
23
+ /** checked: available for checkbox, radio */
24
+ checked?: boolean;
25
+ /** the input placeholder (optional) */
26
+ placeholder?: string;
27
+ /** the input html title (optional) */
28
+ htmltitle?: string;
29
+ /** the input status (optional): available for text, password, number, email, textarea, select */
30
+ status?: InputStatusBean;
31
+ /** show input helper message (optional): available for text, password, number, email, textarea, select */
32
+ hasmessage?: boolean;
33
+ /** input helper message (optional): available for text, password, number, email, textarea, select */
34
+ message?: string;
35
+ /** the input label position: available for checkbox, radio */
36
+ labelafter?: boolean;
37
+ /** timeout setting before trigger `inputChange` event (optional): available for text, textarea */
38
+ typingtimeout?: number;
39
+ /** items (optional): available for select */
40
+ items?: SelectItemBean[] | string;
41
+ /** the input has autocomplete option (optional): available for select, input */
42
+ autocomplete?: boolean | string;
43
+ /** multiple options can be selected (optional): available for select */
44
+ multiple?: boolean;
45
+ /** render clear icon when typing (optional): available for text */
46
+ hasclearicon?: boolean;
47
+ /** render icon (optional): available for text, select */
48
+ icon?: string;
49
+ isTyping: boolean;
50
+ textareaWrapperHover: string;
51
+ textareaWrapperFocus: string;
52
+ passwordHidden: boolean;
53
+ private timer;
54
+ private selectElem;
55
+ inputCheckListener(e: CustomEvent): void;
56
+ /** get the input value */
57
+ getValue(): Promise<string | string[]>;
58
+ /** set the input value */
59
+ setValue(value: string | string[]): Promise<void>;
60
+ /** get checked status */
61
+ isChecked(): Promise<boolean>;
62
+ /** Emitted on input value change, returns value, keycode, validity */
63
+ inputChange: EventEmitter;
64
+ emitInputChange(value: string, keycode: number): void;
65
+ /** Emitted when user starts typing */
66
+ startTyping: EventEmitter;
67
+ emitStartTyping(): void;
68
+ /** Emitted when user stops typing, returns value, validity */
69
+ stopTyping: EventEmitter;
70
+ emitStopTyping(value: string, validity: any): void;
71
+ /** Emitted on checkbox check/uncheck, returns id, checked, type, name, value, validity */
72
+ inputCheck: EventEmitter;
73
+ emitInputCheck(checked: boolean): void;
74
+ /** Emitted on select option selection, returns select id, selected item id (or array of selected items ids if multiple) */
75
+ optionSelect: EventEmitter;
76
+ getValidity(type: string): ValidityState;
77
+ getTextAttributes(): {
78
+ id: string;
79
+ name: string;
80
+ placeholder: string;
81
+ value: string;
82
+ disabled: boolean;
83
+ readonly: boolean;
84
+ required: boolean;
85
+ title: string;
86
+ class: string;
87
+ onInput: (e: any) => void;
88
+ };
89
+ renderInputText(type?: InputTypeBean): any;
90
+ renderLabel(): any;
91
+ renderIcons(): any;
92
+ renderIcon(): any;
93
+ renderResetIcon(): any;
94
+ renderShowHidePassword(): any;
95
+ renderMessage(): any;
96
+ renderTextarea(): any;
97
+ handleCheck(ev: any): void;
98
+ renderCheckbox(): any;
99
+ renderRadio(): any;
100
+ renderSelect(): any;
101
+ render(): any;
102
+ }
@@ -1,5 +1,10 @@
1
1
  import { DeviceEnum } from "../beans/index";
2
2
  export declare function format(first: string, middle: string, last: string): string;
3
+ /**
4
+ * Return boolean value for passed value if a boolean corresponding value is found
5
+ * Return passed value otherwise
6
+ */
7
+ export declare function boolean(value: any): boolean | string;
3
8
  export declare function retrieveAsset(assetName: string): string;
4
9
  export declare function randomId(): string;
5
10
  export declare function handleKeyboardSubmit(ev: KeyboardEvent, callback: Function, ...args: any[]): void;
@@ -1 +1 @@
1
- import{c as o}from"./p-fea5b98f.js";import"./p-80a3e18a.js";import"./p-d69e14fb.js";const p={colorFromId:o};export{p as Utils}
1
+ import{c as o}from"./p-b9da171f.js";import"./p-9f5d707a.js";import"./p-d69e14fb.js";const p={colorFromId:o};export{p as Utils}
@@ -1 +1 @@
1
- import{r as t,c as o,h as i,H as e,g as r}from"./p-98268a57.js";import{l as s}from"./p-80a3e18a.js";const a=document.documentElement;function n(t,o){const i=t.getBoundingClientRect(),e=i.width,r=i.height;let s,a,n=0,h=0,l=t;for(;l&&l!=o;){if(h+=l.offsetLeft,l===document.body?n+=l.getBoundingClientRect().top+window.scrollY:n+=l.offsetTop,window.DOMMatrix){const t=window.getComputedStyle(l),o=new DOMMatrix(t.transform||t.webkitTransform);o&&(h+=o.m41,l!==document.body&&(n+=o.m42))}if(!l.offsetParent)break;l=l.offsetParent}return l===document.body?(s=window.innerWidth,a=window.innerHeight):(s=l.offsetWidth,a=l.offsetHeight),{top:n,right:s-h-i.width,bottom:a-n-i.height,left:h,width:e,height:r}}const h=class{constructor(i){t(this,i),this.positionChange=o(this,"positionChange",7),this.type=s.AUTO,this.open=!1}validateType(t){t&&Object.values(s).every((o=>t!==o))&&(this.type=s.AUTO)}onPositionChange(){this.positionChange.emit({position:this.position})}disconnectedCallback(){cancelAnimationFrame(this.animationFrameRequestId)}onOpen(){if(cancelAnimationFrame(this.animationFrameRequestId),!this.content)if(this.open){const t=()=>{this.open&&(this.setPosition(),this.animationFrameRequestId=requestAnimationFrame(t))};t()}else{const t=this.host.style;t.removeProperty("top"),t.removeProperty("right"),t.removeProperty("bottom"),t.removeProperty("left")}}setPosition(){let t;if(t="string"==typeof this.bindTo?this.host.ownerDocument.querySelector(this.bindTo):this.bindTo?this.bindTo:this.host.parentElement,!t)return;const o=function(t){let o=t.parentNode;for(;o&&o!==a;){const{overflow:t,overflowX:i,overflowY:e}=window.getComputedStyle(o);if("hidden"===t||"hidden"===e||"hidden"===i)return o;if(o.scrollHeight>o.clientHeight&&"visible"!==t&&"visible"!==e||o.scrollWidth>o.clientWidth&&"visible"!==t&&"visible"!==i)return o;o=o.parentNode}return a}(t),i=o.getBoundingClientRect(),e=this.host.offsetParent,r=e?n(e,o):{top:0,right:0,bottom:0,left:0},h=n(t,o),l=h.top-o.scrollTop,p=i.height-(h.top+h.height)+o.scrollTop,f=h.left-o.scrollLeft,c=i.width-(h.left+h.width)+o.scrollLeft,d=Math.max(0,i.top+i.height-window.innerHeight),g=Math.max(0,i.left+i.width-window.innerWidth),u=Math.min(l,l+i.top),w=Math.min(p,p-d),m=Math.min(f,f+i.left),v=Math.min(c,c-g),b=u+w+h.height,x=m+v+h.width;let y=this.type;if(y===s.AUTO){const t=[];u/b>.9?t.unshift(s.TOP):u/b>.6?t.push(s.TOP):u/b<.1?t.unshift(s.BOTTOM):t.push(s.BOTTOM),m/x>.6?t.push(s.LEFT):m/x<.4&&t.push(s.RIGHT),y=t.join("_")}const z=this.host.style;this.content||(z.position="absolute");const _=h.top-r.top,M=h.right-r.right,$=h.bottom-r.bottom,C=h.left-r.left;y!==s.TOP&&y!==s.TOP_RIGHT&&y!==s.TOP_LEFT||(z.top="auto",z.bottom=`${$+h.height}px`),y!==s.BOTTOM&&y!==s.BOTTOM_RIGHT&&y!==s.BOTTOM_LEFT||(z.top=`${_+h.height}px`,z.bottom="auto"),y!==s.TOP&&y!==s.BOTTOM||(z.left=C+h.width/2-this.host.clientWidth/2+"px"),y!==s.TOP_RIGHT&&y!==s.BOTTOM_RIGHT||(z.right="auto",z.left=`${C+h.width}px`),y!==s.TOP_LEFT&&y!==s.BOTTOM_LEFT||(z.left="auto",z.right=`${M+h.width}px`),y!==s.RIGHT&&y!==s.LEFT||(z.top=_+h.height/2-this.host.clientHeight/2+"px",z.bottom="auto"),y===s.RIGHT&&(z.right="auto",z.left=`${C+h.width}px`),y===s.LEFT&&(z.left="auto",z.right=`${M+h.width}px`),this.position=y}componentWillLoad(){this.content&&(this.open=!0),this.validateType(this.type),this.onOpen()}render(){return this.content?i(e,{class:"legacy",position:this.type},this.content):i(e,{position:this.position},i("slot",null))}get host(){return r(this)}static get watchers(){return{type:["validateType"],position:["onPositionChange"],open:["onOpen"]}}};h.style=":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}";export{h as z_tooltip}
1
+ import{r as t,c as o,h as i,H as e,g as r}from"./p-98268a57.js";import{k as s}from"./p-9f5d707a.js";const a=document.documentElement;function n(t,o){const i=t.getBoundingClientRect(),e=i.width,r=i.height;let s,a,n=0,h=0,p=t;for(;p&&p!=o;){if(h+=p.offsetLeft,p===document.body?n+=p.getBoundingClientRect().top+window.scrollY:n+=p.offsetTop,window.DOMMatrix){const t=window.getComputedStyle(p),o=new DOMMatrix(t.transform||t.webkitTransform);o&&(h+=o.m41,p!==document.body&&(n+=o.m42))}if(!p.offsetParent)break;p=p.offsetParent}return p===document.body?(s=window.innerWidth,a=window.innerHeight):(s=p.offsetWidth,a=p.offsetHeight),{top:n,right:s-h-i.width,bottom:a-n-i.height,left:h,width:e,height:r}}const h=class{constructor(i){t(this,i),this.positionChange=o(this,"positionChange",7),this.type=s.AUTO,this.open=!1}validateType(t){t&&Object.values(s).every((o=>t!==o))&&(this.type=s.AUTO)}onPositionChange(){this.positionChange.emit({position:this.position})}disconnectedCallback(){cancelAnimationFrame(this.animationFrameRequestId)}onOpen(){if(cancelAnimationFrame(this.animationFrameRequestId),!this.content)if(this.open){const t=()=>{this.open&&(this.setPosition(),this.animationFrameRequestId=requestAnimationFrame(t))};t()}else{const t=this.host.style;t.removeProperty("top"),t.removeProperty("right"),t.removeProperty("bottom"),t.removeProperty("left")}}setPosition(){let t;if(t="string"==typeof this.bindTo?this.host.ownerDocument.querySelector(this.bindTo):this.bindTo?this.bindTo:this.host.parentElement,!t)return;const o=function(t){let o=t.parentNode;for(;o&&o!==a;){const{overflow:t,overflowX:i,overflowY:e}=window.getComputedStyle(o);if("hidden"===t||"hidden"===e||"hidden"===i)return o;if(o.scrollHeight>o.clientHeight&&"visible"!==t&&"visible"!==e||o.scrollWidth>o.clientWidth&&"visible"!==t&&"visible"!==i)return o;o=o.parentNode}return a}(t),i=o.getBoundingClientRect(),e=this.host.offsetParent,r=e?n(e,o):{top:0,right:0,bottom:0,left:0},h=n(t,o),p=h.top-o.scrollTop,l=i.height-(h.top+h.height)+o.scrollTop,f=h.left-o.scrollLeft,c=i.width-(h.left+h.width)+o.scrollLeft,d=Math.max(0,i.top+i.height-window.innerHeight),g=Math.max(0,i.left+i.width-window.innerWidth),u=Math.min(p,p+i.top),w=Math.min(l,l-d),m=Math.min(f,f+i.left),v=Math.min(c,c-g),b=u+w+h.height,x=m+v+h.width;let y=this.type;if(y===s.AUTO){const t=[];u/b>.9?t.unshift(s.TOP):u/b>.6?t.push(s.TOP):u/b<.1?t.unshift(s.BOTTOM):t.push(s.BOTTOM),m/x>.6?t.push(s.LEFT):m/x<.4&&t.push(s.RIGHT),y=t.join("_")}const z=this.host.style;this.content||(z.position="absolute");const _=h.top-r.top,M=h.right-r.right,$=h.bottom-r.bottom,k=h.left-r.left;y!==s.TOP&&y!==s.TOP_RIGHT&&y!==s.TOP_LEFT||(z.top="auto",z.bottom=`${$+h.height}px`),y!==s.BOTTOM&&y!==s.BOTTOM_RIGHT&&y!==s.BOTTOM_LEFT||(z.top=`${_+h.height}px`,z.bottom="auto"),y!==s.TOP&&y!==s.BOTTOM||(z.left=k+h.width/2-this.host.clientWidth/2+"px"),y!==s.TOP_RIGHT&&y!==s.BOTTOM_RIGHT||(z.right="auto",z.left=`${k+h.width}px`),y!==s.TOP_LEFT&&y!==s.BOTTOM_LEFT||(z.left="auto",z.right=`${M+h.width}px`),y!==s.RIGHT&&y!==s.LEFT||(z.top=_+h.height/2-this.host.clientHeight/2+"px",z.bottom="auto"),y===s.RIGHT&&(z.right="auto",z.left=`${k+h.width}px`),y===s.LEFT&&(z.left="auto",z.right=`${M+h.width}px`),this.position=y}componentWillLoad(){this.content&&(this.open=!0),this.validateType(this.type),this.onOpen()}render(){return this.content?i(e,{class:"legacy",position:this.type},this.content):i(e,{position:this.position},i("slot",null))}get host(){return r(this)}static get watchers(){return{type:["validateType"],position:["onPositionChange"],open:["onOpen"]}}};h.style=":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}";export{h as z_tooltip}
@@ -1 +1 @@
1
- import{r as t,h as i,H as n,g as s}from"./p-98268a57.js";import{a as o,h as e}from"./p-fea5b98f.js";import{T as c}from"./p-80a3e18a.js";import"./p-d69e14fb.js";const l=class{constructor(i){t(this,i),this.links=[],this.visible=!1,this.visibleLink=""}handleFocusOutSkipToContent(t){this.isInSkipToContent(t.target)&&(this.visible=!1)}handleFocusSkipToContent(t){this.isInSkipToContent(t.target)&&(this.visible=!0)}componentDidLoad(){this.showFirstChild()}componentWillRender(){this.links&&(this.links="string"==typeof this.links?JSON.parse(this.links):this.links)}isInSkipToContent(t){return!!o(t).find((t=>"z-skip-to-content"===t.nodeName.toLowerCase()))}getFirstChild(){const t=this.hostElement.children;return!!t.length&&t[0]}showFirstChild(){const t=this.getFirstChild();t&&(this.visibleLink=t.id)}handleLinkClick(){this.visible=!1}render(){return i(n,{class:`${this.variant} ${this.visible&&"skip-to-content-visible"} `,ref:t=>t},this.links.map(((t,n)=>{const s=`skip-to-content-${n}`;return i("z-link",{id:s,underline:!0,"aria-label":t.ariaLabel||t.label,class:"t-weight-sb "+(s==this.visibleLink?"link-visible":"link-invisible"),href:t.href,textcolor:this.variant===c.dark?"white":"black",onFocus:()=>this.visibleLink=s,onClick:()=>this.handleLinkClick(),onKeyUp:t=>e(t,this.handleLinkClick.bind(this))},t.label)})))}get hostElement(){return s(this)}};l.style=".sc-z-skip-to-content-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:absolute;left:-100%;background-color:#24f4ff;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3);height:60px;box-sizing:border-box}.skip-to-content-visible.sc-z-skip-to-content-h,.sc-z-skip-to-content-h:focus{position:static;display:block}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{display:block;text-align:center}.sc-z-skip-to-content-h>z-link.link-invisible.sc-z-skip-to-content{height:0;width:0;overflow:hidden}.sc-z-skip-to-content-h>z-link.link-visible.sc-z-skip-to-content{height:initial;width:initial}.dark.sc-z-skip-to-content-h{background-color:var(--bg-grey-800);color:var(--color-white)}.light.sc-z-skip-to-content-h{background-color:var(--bg-white);color:var(--text-grey-800);border:2px solid var(--text-grey-800)}@media (min-width: 768px){.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{text-align:left}}@media (min-width: 1152px){.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{display:inline-block;padding:0 calc(var(--space-unit) * 3);border-right:1px solid var(--bg-grey-800)}.sc-z-skip-to-content-h>z-link.link-invisible.sc-z-skip-to-content{height:initial;width:initial;overflow:initial}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:first-child{padding-left:0}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child,.dark.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child,.light.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child{border-right:none;padding-right:0}.dark.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{border-right:1px solid var(--bg-white)}}";export{l as z_skip_to_content}
1
+ import{r as t,h as i,H as n,g as s}from"./p-98268a57.js";import{a as o,h as e}from"./p-b9da171f.js";import{T as c}from"./p-9f5d707a.js";import"./p-d69e14fb.js";const l=class{constructor(i){t(this,i),this.links=[],this.visible=!1,this.visibleLink=""}handleFocusOutSkipToContent(t){this.isInSkipToContent(t.target)&&(this.visible=!1)}handleFocusSkipToContent(t){this.isInSkipToContent(t.target)&&(this.visible=!0)}componentDidLoad(){this.showFirstChild()}componentWillRender(){this.links&&(this.links="string"==typeof this.links?JSON.parse(this.links):this.links)}isInSkipToContent(t){return!!o(t).find((t=>"z-skip-to-content"===t.nodeName.toLowerCase()))}getFirstChild(){const t=this.hostElement.children;return!!t.length&&t[0]}showFirstChild(){const t=this.getFirstChild();t&&(this.visibleLink=t.id)}handleLinkClick(){this.visible=!1}render(){return i(n,{class:`${this.variant} ${this.visible&&"skip-to-content-visible"} `,ref:t=>t},this.links.map(((t,n)=>{const s=`skip-to-content-${n}`;return i("z-link",{id:s,underline:!0,"aria-label":t.ariaLabel||t.label,class:"t-weight-sb "+(s==this.visibleLink?"link-visible":"link-invisible"),href:t.href,textcolor:this.variant===c.dark?"white":"black",onFocus:()=>this.visibleLink=s,onClick:()=>this.handleLinkClick(),onKeyUp:t=>e(t,this.handleLinkClick.bind(this))},t.label)})))}get hostElement(){return s(this)}};l.style=".sc-z-skip-to-content-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:absolute;left:-100%;background-color:#24f4ff;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3);height:60px;box-sizing:border-box}.skip-to-content-visible.sc-z-skip-to-content-h,.sc-z-skip-to-content-h:focus{position:static;display:block}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{display:block;text-align:center}.sc-z-skip-to-content-h>z-link.link-invisible.sc-z-skip-to-content{height:0;width:0;overflow:hidden}.sc-z-skip-to-content-h>z-link.link-visible.sc-z-skip-to-content{height:initial;width:initial}.dark.sc-z-skip-to-content-h{background-color:var(--bg-grey-800);color:var(--color-white)}.light.sc-z-skip-to-content-h{background-color:var(--bg-white);color:var(--text-grey-800);border:2px solid var(--text-grey-800)}@media (min-width: 768px){.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{text-align:left}}@media (min-width: 1152px){.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{display:inline-block;padding:0 calc(var(--space-unit) * 3);border-right:1px solid var(--bg-grey-800)}.sc-z-skip-to-content-h>z-link.link-invisible.sc-z-skip-to-content{height:initial;width:initial;overflow:initial}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:first-child{padding-left:0}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child,.dark.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child,.light.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child{border-right:none;padding-right:0}.dark.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{border-right:1px solid var(--bg-white)}}";export{l as z_skip_to_content}
@@ -1 +1 @@
1
- import{r as t,h as o}from"./p-98268a57.js";import{L as e}from"./p-80a3e18a.js";const i=class{constructor(o){t(this,o),this.opened=!1,this.customContent=!1,this.isOpen=!1,this.allowTooltipAuthors=!1}handleToggle(){this.isOpen=!this.isOpen}getTitleAuthors(){return this.allowTooltipAuthors?this.autori:""}componentWillLoad(){this.opened&&(this.isOpen=!0)}elementsEllipsis(){this.allowTooltipAuthors=!!this.elementAuthorsHasEllipsis()}elementAuthorsHasEllipsis(){return this.ellipsisAuthors.offsetWidth<this.ellipsisAuthors.scrollWidth}retrieveClass(){return{isopen:this.isOpen,real:this.cardtype===e.real,trial:this.cardtype===e.trial,temp:this.cardtype===e.temp,customContent:this.customContent}}footerTransitionHandler(t){["visibility","height"].includes(t.propertyName)&&this.elementsEllipsis()}render(){return o("div",{class:Object.assign(Object.assign({},this.retrieveClass()),{wrapper:!0})},o("footer",{class:this.retrieveClass(),onTransitionEnd:t=>this.footerTransitionHandler(t)},o("span",{class:"toggle"},o("slot",{name:"toggle"})),this.titolo&&o("p",{class:{customContent:this.customContent}},this.titolo),o("div",{class:{content:!0,customContent:this.customContent}},o("div",null,o("p",{class:"authors",ref:t=>this.ellipsisAuthors=t},o("span",{title:this.getTitleAuthors()},o("span",{class:"bold"},this.autori))),o("p",{class:"year_isbn"},o("span",{class:"isbn"},o("span",null,o("span",{class:"bold"},this.isbn)," (ed. cartacea)")))),o("div",{class:"slot-handler "+(this.isOpen?"visible":"hidden")},o("slot",{name:"list"})))),this.customContent&&o("slot",{name:"content"}))}};i.style='footer{font-family:var(--font-family-sans);font-weight:var(--font-rg);color:var(--color-surface05);background-color:var(--color-surface01);margin:0px;padding:0px;position:relative;z-index:5;height:calc(var(--space-unit) * 6);width:auto;top:0px;transition:height 500ms ease-in-out, top 500ms ease-in-out;border-radius:0px 0px var(--border-radius) var(--border-radius);border-top:var(--border-size-medium) solid var(--color-surface03)}footer.real,footer.trial,footer.temp{border-top:var(--border-size-medium) solid var(--accent)}footer .bold{font-family:var(--font-family-sans);font-weight:var(--font-sb)}footer>p{font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:16px;line-height:22px;height:40px;margin:0px;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 2)\n var(--space-unit) calc(var(--space-unit) * 2);overflow:hidden;background-color:var(--color-surface01);transition:all 200ms linear}footer.isopen>p{font-size:14px;font-weight:var(--font-sb);transition:all 200ms linear;background-color:var(--bg-neutral-200)}footer.isopen.real>p,footer.isopen.trial>p,footer.isopen.temp>p{background-color:var(--accent)}footer .visible{display:block}footer .hidden{display:none}footer>div.content{height:60px;overflow:hidden}footer>div.content>div:not(.slot-handler){padding:var(--space-unit) calc(var(--space-unit) * 2)}footer>div.content>div>p{font-size:14px;height:20px;line-height:20px;margin:0px;padding:0px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}footer>div.content>div>p.year_isbn{padding-top:var(--space-unit);display:flex;flex-direction:row;justify-content:space-between}footer>div.content>div>p.year_isbn>span.isbn{text-overflow:ellipsis;overflow:hidden}footer.isopen>div.content>div:not(.slot-handler){height:68px}footer.isopen>div.content>div>p.authors{height:40px;white-space:initial;text-overflow:initial}footer.isopen>div.content>div>p.year_isbn{flex-direction:column;height:50px;padding-left:0px}footer.isopen>div.content>div>p.year_isbn>span.isbn{display:inline-grid;padding-left:0px}footer.isopen{height:295px;top:-212px;transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.isopen.customContent{top:-292px}footer.isopen>div.content{height:280px;transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.isopen.customContent>div.content{height:230px}.toggle{position:absolute;top:-24px;left:16px;z-index:10}.faded{opacity:0.3;pointer-events:none}footer>p.customContent,footer .content.customContent{display:none}footer.isopen>p.customContent,footer.isopen .content.customContent{display:block}div.wrapper{position:relative;height:100%}div.wrapper ::slotted([slot="content"]){display:block;height:112px;width:100%;padding:0 calc(var(--space-unit) * 2);box-sizing:border-box;border-top:var(--border-size-medium) solid transparent;position:absolute;top:calc(var(--space-unit) * 2);z-index:10;background:var(--color-white)}div.wrapper.isopen ::slotted([slot="content"]){height:128px;padding:calc(var(--space-unit) * 2);border-color:var(--accent);top:0;bottom:0}';export{i as z_myz_card_footer}
1
+ import{r as t,h as o}from"./p-98268a57.js";import{L as e}from"./p-9f5d707a.js";const i=class{constructor(o){t(this,o),this.opened=!1,this.customContent=!1,this.isOpen=!1,this.allowTooltipAuthors=!1}handleToggle(){this.isOpen=!this.isOpen}getTitleAuthors(){return this.allowTooltipAuthors?this.autori:""}componentWillLoad(){this.opened&&(this.isOpen=!0)}elementsEllipsis(){this.allowTooltipAuthors=!!this.elementAuthorsHasEllipsis()}elementAuthorsHasEllipsis(){return this.ellipsisAuthors.offsetWidth<this.ellipsisAuthors.scrollWidth}retrieveClass(){return{isopen:this.isOpen,real:this.cardtype===e.real,trial:this.cardtype===e.trial,temp:this.cardtype===e.temp,customContent:this.customContent}}footerTransitionHandler(t){["visibility","height"].includes(t.propertyName)&&this.elementsEllipsis()}render(){return o("div",{class:Object.assign(Object.assign({},this.retrieveClass()),{wrapper:!0})},o("footer",{class:this.retrieveClass(),onTransitionEnd:t=>this.footerTransitionHandler(t)},o("span",{class:"toggle"},o("slot",{name:"toggle"})),this.titolo&&o("p",{class:{customContent:this.customContent}},this.titolo),o("div",{class:{content:!0,customContent:this.customContent}},o("div",null,o("p",{class:"authors",ref:t=>this.ellipsisAuthors=t},o("span",{title:this.getTitleAuthors()},o("span",{class:"bold"},this.autori))),o("p",{class:"year_isbn"},o("span",{class:"isbn"},o("span",null,o("span",{class:"bold"},this.isbn)," (ed. cartacea)")))),o("div",{class:"slot-handler "+(this.isOpen?"visible":"hidden")},o("slot",{name:"list"})))),this.customContent&&o("slot",{name:"content"}))}};i.style='footer{font-family:var(--font-family-sans);font-weight:var(--font-rg);color:var(--color-surface05);background-color:var(--color-surface01);margin:0px;padding:0px;position:relative;z-index:5;height:calc(var(--space-unit) * 6);width:auto;top:0px;transition:height 500ms ease-in-out, top 500ms ease-in-out;border-radius:0px 0px var(--border-radius) var(--border-radius);border-top:var(--border-size-medium) solid var(--color-surface03)}footer.real,footer.trial,footer.temp{border-top:var(--border-size-medium) solid var(--accent)}footer .bold{font-family:var(--font-family-sans);font-weight:var(--font-sb)}footer>p{font-family:var(--font-family-sans);font-weight:var(--font-rg);font-size:16px;line-height:22px;height:40px;margin:0px;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 2)\n var(--space-unit) calc(var(--space-unit) * 2);overflow:hidden;background-color:var(--color-surface01);transition:all 200ms linear}footer.isopen>p{font-size:14px;font-weight:var(--font-sb);transition:all 200ms linear;background-color:var(--bg-neutral-200)}footer.isopen.real>p,footer.isopen.trial>p,footer.isopen.temp>p{background-color:var(--accent)}footer .visible{display:block}footer .hidden{display:none}footer>div.content{height:60px;overflow:hidden}footer>div.content>div:not(.slot-handler){padding:var(--space-unit) calc(var(--space-unit) * 2)}footer>div.content>div>p{font-size:14px;height:20px;line-height:20px;margin:0px;padding:0px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}footer>div.content>div>p.year_isbn{padding-top:var(--space-unit);display:flex;flex-direction:row;justify-content:space-between}footer>div.content>div>p.year_isbn>span.isbn{text-overflow:ellipsis;overflow:hidden}footer.isopen>div.content>div:not(.slot-handler){height:68px}footer.isopen>div.content>div>p.authors{height:40px;white-space:initial;text-overflow:initial}footer.isopen>div.content>div>p.year_isbn{flex-direction:column;height:50px;padding-left:0px}footer.isopen>div.content>div>p.year_isbn>span.isbn{display:inline-grid;padding-left:0px}footer.isopen{height:295px;top:-212px;transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.isopen.customContent{top:-292px}footer.isopen>div.content{height:280px;transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.isopen.customContent>div.content{height:230px}.toggle{position:absolute;top:-24px;left:16px;z-index:10}.faded{opacity:0.3;pointer-events:none}footer>p.customContent,footer .content.customContent{display:none}footer.isopen>p.customContent,footer.isopen .content.customContent{display:block}div.wrapper{position:relative;height:100%}div.wrapper ::slotted([slot="content"]){display:block;height:112px;width:100%;padding:0 calc(var(--space-unit) * 2);box-sizing:border-box;border-top:var(--border-size-medium) solid transparent;position:absolute;top:calc(var(--space-unit) * 2);z-index:10;background:var(--color-white)}div.wrapper.isopen ::slotted([slot="content"]){height:128px;padding:calc(var(--space-unit) * 2);border-color:var(--accent);top:0;bottom:0}';export{i as z_myz_card_footer}
@@ -1 +1 @@
1
- import{r as a,h as r,H as t}from"./p-98268a57.js";import{Z as s}from"./p-80a3e18a.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}
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}
@@ -1 +1 @@
1
- import{r as i,c as t,h as n}from"./p-98268a57.js";import{l as e}from"./p-80a3e18a.js";import{h as s}from"./p-fea5b98f.js";import"./p-d69e14fb.js";const o=class{constructor(n){i(this,n),this.flipCard=t(this,"flipCard",7),this.htmltabindex=0,this.hiddenContent=!1,this.tooltip=!1,this.emitFlipCard=this.emitFlipCard.bind(this)}emitFlipCard(i=!1){this.flipCard.emit(i)}componentWillLoad(){this.setStringOrArray()}componentWillUpdate(){this.setStringOrArray()}componentDidRender(){this.handleContentHeight()}handleContentHeight(){return(this.contentWrapper||this.infoWrapper)&&(this.contentWrapper.scrollHeight>this.contentWrapper.offsetHeight||this.infoWrapper.scrollHeight>this.infoWrapper.offsetHeight)?(this.infoWrapper.style.height=this.contentWrapper.offsetHeight-this.onlineLicenseWrapper.offsetHeight-this.offlineLicenseWrapper.offsetHeight+"px",this.hiddenContent=!0):this.hiddenContent=!1}setStringOrArray(){this.cardData="string"==typeof this.data?JSON.parse(this.data):this.data}renderCloseIcon(){return n("z-icon",{name:"multiply-circled-filled",height:18,width:18,onClick:()=>this.emitFlipCard(!1),tabindex:this.htmltabindex,onKeyUp:i=>{s(i,this.emitFlipCard,!1)}})}renderGeneralSection(){var i,t;const e=null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.title,s=null===(t=null==this?void 0:this.cardData)||void 0===t?void 0:t.description;return n("section",{class:"info-wrapper "+(this.hiddenContent?"hidden":""),onClick:()=>{this.hiddenContent&&(this.tooltip=!this.tooltip)},ref:i=>this.infoWrapper=i},this.renderAuthor(),this.renderYear(),e,n("br",null),s)}renderAuthor(){var i;const t=null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.author;return t?n("span",null,"Autore: ",n("b",null,t),n("br",null)):null}renderYear(){var i;const t=null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.year;return t?n("span",null,"Anno: ",n("b",null,t),n("br",null)):null}renderTooltip(){if(!this.tooltip)return;if(!this.cardData)return;const{title:i,year:t,author:s,description:o}=this.cardData;return n("z-tooltip",{content:`${i} ${t} ${s} ${o}`,type:e.RIGHT,onClick:()=>this.tooltip=!1})}setExpirationLicenseMessage(i){return"online"===i&&this.cardData.onlineLicense.expired||"offline"===i&&this.cardData.offlineLicense.expired?n("span",{class:"expired"},"SCADUTA"):"online"===i&&this.cardData.onlineLicense.expiring||"offline"===i&&this.cardData.offlineLicense.expiring?n("span",{class:"expiring"},"IN SCADENZA"):void 0}renderOnlineLicenseSection(){var i;if(null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.onlineLicense)return n("section",{ref:i=>this.onlineLicenseWrapper=i},n("span",{class:"license-heading"},n("span",null,"Licenza online"),this.setExpirationLicenseMessage("online")),"Scadenza il ",n("b",null,this.cardData.onlineLicense.expiration),n("br",null))}renderOfflineLicenseSection(){var i;if(null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.offlineLicense)return n("section",{ref:i=>this.offlineLicenseWrapper=i},n("span",{class:"license-heading"},n("span",null,"Licenza offline"),this.setExpirationLicenseMessage("offline")),"Scadenza il ",n("b",null,this.cardData.offlineLicense.expiration),n("br",null),"Installazioni disponibili:"," ",n("b",null,this.cardData.offlineLicense.installations))}render(){return n("div",null,this.renderCloseIcon(),n("div",{class:"content-wrapper",ref:i=>this.contentWrapper=i},this.renderGeneralSection(),this.renderTooltip(),this.renderOnlineLicenseSection(),this.renderOfflineLicenseSection()),n("div",{class:"cta-wrapper"},n("slot",null)))}};o.style=':host{font-family:var(--font-family-sans);font-weight:var(--font-rg);width:100%}:host>div{background:var(--color-surface01);width:calc(100% + calc(var(--space-unit) * 2));margin-left:calc(-1 * var(--space-unit));height:402px;border:var(--border-size-small) solid var(--color-primary01);box-shadow:0px 2px 4px 0px rgba(66, 69, 72, 0.35);border-radius:0px;box-sizing:border-box;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);position:relative}:host>div>z-icon{fill:var(--color-primary01);cursor:pointer;position:absolute;top:var(--space-unit);right:var(--space-unit)}:host>div{display:grid}:host>div>div.cta-wrapper{align-self:end;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between}:host>div>div.content-wrapper{overflow:hidden;position:relative;align-self:stretch}:host>div>div.content-wrapper>section{border-bottom:var(--border-size-small) solid var(--color-surface04);color:var(--color-surface05);padding:var(--space-unit) 0;font-size:14px;line-height:20px;box-sizing:border-box}:host>div>div.content-wrapper>section:last-child{border-bottom:none}:host>div>div.content-wrapper>section.info-wrapper{position:relative;overflow:hidden;box-sizing:border-box}:host>div>div.content-wrapper>section.info-wrapper.hidden:after{background:linear-gradient(\n 180deg,\n rgba(255, 0, 0, 0),\n rgba(255, 0, 0, 0) 60%,\n white\n );content:"";position:absolute;pointer-events:none;top:0;left:0;right:0;bottom:0}:host>div>div.content-wrapper>section>span.license-heading{display:flex;justify-content:space-between}:host>div>div.content-wrapper>section>span.license-heading>span.expired{color:var(--color-secondary02);font-size:12px;font-weight:600}:host>div>div.content-wrapper>section>span.license-heading>span.expiring{color:var(--color-warning01);font-size:12px;font-weight:600}:host>div>div.content-wrapper>z-tooltip{position:absolute;top:0px;left:calc(var(--space-unit) * 4)}';export{o as z_myz_card_info}
1
+ import{r as i,c as t,h as n}from"./p-98268a57.js";import{k as e}from"./p-9f5d707a.js";import{h as s}from"./p-b9da171f.js";import"./p-d69e14fb.js";const o=class{constructor(n){i(this,n),this.flipCard=t(this,"flipCard",7),this.htmltabindex=0,this.hiddenContent=!1,this.tooltip=!1,this.emitFlipCard=this.emitFlipCard.bind(this)}emitFlipCard(i=!1){this.flipCard.emit(i)}componentWillLoad(){this.setStringOrArray()}componentWillUpdate(){this.setStringOrArray()}componentDidRender(){this.handleContentHeight()}handleContentHeight(){return(this.contentWrapper||this.infoWrapper)&&(this.contentWrapper.scrollHeight>this.contentWrapper.offsetHeight||this.infoWrapper.scrollHeight>this.infoWrapper.offsetHeight)?(this.infoWrapper.style.height=this.contentWrapper.offsetHeight-this.onlineLicenseWrapper.offsetHeight-this.offlineLicenseWrapper.offsetHeight+"px",this.hiddenContent=!0):this.hiddenContent=!1}setStringOrArray(){this.cardData="string"==typeof this.data?JSON.parse(this.data):this.data}renderCloseIcon(){return n("z-icon",{name:"multiply-circled-filled",height:18,width:18,onClick:()=>this.emitFlipCard(!1),tabindex:this.htmltabindex,onKeyUp:i=>{s(i,this.emitFlipCard,!1)}})}renderGeneralSection(){var i,t;const e=null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.title,s=null===(t=null==this?void 0:this.cardData)||void 0===t?void 0:t.description;return n("section",{class:"info-wrapper "+(this.hiddenContent?"hidden":""),onClick:()=>{this.hiddenContent&&(this.tooltip=!this.tooltip)},ref:i=>this.infoWrapper=i},this.renderAuthor(),this.renderYear(),e,n("br",null),s)}renderAuthor(){var i;const t=null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.author;return t?n("span",null,"Autore: ",n("b",null,t),n("br",null)):null}renderYear(){var i;const t=null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.year;return t?n("span",null,"Anno: ",n("b",null,t),n("br",null)):null}renderTooltip(){if(!this.tooltip)return;if(!this.cardData)return;const{title:i,year:t,author:s,description:o}=this.cardData;return n("z-tooltip",{content:`${i} ${t} ${s} ${o}`,type:e.RIGHT,onClick:()=>this.tooltip=!1})}setExpirationLicenseMessage(i){return"online"===i&&this.cardData.onlineLicense.expired||"offline"===i&&this.cardData.offlineLicense.expired?n("span",{class:"expired"},"SCADUTA"):"online"===i&&this.cardData.onlineLicense.expiring||"offline"===i&&this.cardData.offlineLicense.expiring?n("span",{class:"expiring"},"IN SCADENZA"):void 0}renderOnlineLicenseSection(){var i;if(null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.onlineLicense)return n("section",{ref:i=>this.onlineLicenseWrapper=i},n("span",{class:"license-heading"},n("span",null,"Licenza online"),this.setExpirationLicenseMessage("online")),"Scadenza il ",n("b",null,this.cardData.onlineLicense.expiration),n("br",null))}renderOfflineLicenseSection(){var i;if(null===(i=null==this?void 0:this.cardData)||void 0===i?void 0:i.offlineLicense)return n("section",{ref:i=>this.offlineLicenseWrapper=i},n("span",{class:"license-heading"},n("span",null,"Licenza offline"),this.setExpirationLicenseMessage("offline")),"Scadenza il ",n("b",null,this.cardData.offlineLicense.expiration),n("br",null),"Installazioni disponibili:"," ",n("b",null,this.cardData.offlineLicense.installations))}render(){return n("div",null,this.renderCloseIcon(),n("div",{class:"content-wrapper",ref:i=>this.contentWrapper=i},this.renderGeneralSection(),this.renderTooltip(),this.renderOnlineLicenseSection(),this.renderOfflineLicenseSection()),n("div",{class:"cta-wrapper"},n("slot",null)))}};o.style=':host{font-family:var(--font-family-sans);font-weight:var(--font-rg);width:100%}:host>div{background:var(--color-surface01);width:calc(100% + calc(var(--space-unit) * 2));margin-left:calc(-1 * var(--space-unit));height:402px;border:var(--border-size-small) solid var(--color-primary01);box-shadow:0px 2px 4px 0px rgba(66, 69, 72, 0.35);border-radius:0px;box-sizing:border-box;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);position:relative}:host>div>z-icon{fill:var(--color-primary01);cursor:pointer;position:absolute;top:var(--space-unit);right:var(--space-unit)}:host>div{display:grid}:host>div>div.cta-wrapper{align-self:end;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between}:host>div>div.content-wrapper{overflow:hidden;position:relative;align-self:stretch}:host>div>div.content-wrapper>section{border-bottom:var(--border-size-small) solid var(--color-surface04);color:var(--color-surface05);padding:var(--space-unit) 0;font-size:14px;line-height:20px;box-sizing:border-box}:host>div>div.content-wrapper>section:last-child{border-bottom:none}:host>div>div.content-wrapper>section.info-wrapper{position:relative;overflow:hidden;box-sizing:border-box}:host>div>div.content-wrapper>section.info-wrapper.hidden:after{background:linear-gradient(\n 180deg,\n rgba(255, 0, 0, 0),\n rgba(255, 0, 0, 0) 60%,\n white\n );content:"";position:absolute;pointer-events:none;top:0;left:0;right:0;bottom:0}:host>div>div.content-wrapper>section>span.license-heading{display:flex;justify-content:space-between}:host>div>div.content-wrapper>section>span.license-heading>span.expired{color:var(--color-secondary02);font-size:12px;font-weight:600}:host>div>div.content-wrapper>section>span.license-heading>span.expiring{color:var(--color-warning01);font-size:12px;font-weight:600}:host>div>div.content-wrapper>z-tooltip{position:absolute;top:0px;left:calc(var(--space-unit) * 4)}';export{o as z_myz_card_info}
@@ -1 +1 @@
1
- import{r as t,c as s,h as e}from"./p-98268a57.js";import{r as i}from"./p-fea5b98f.js";import{v as c}from"./p-80a3e18a.js";import"./p-d69e14fb.js";const l=class{constructor(e){t(this,e),this.toggleClick=s(this,"toggleClick",7),this.disabled=!1,this.labelPosition=c.left,this.checked=!1,this.htmlid=`toggle-switch-id-${i()}`}emitToggleClick(){this.toggleClick.emit({id:this.htmlid,checked:this.checked})}handleClick(t){this.disabled||(this.checked=t.target.checked,this.emitToggleClick())}render(){return[e("input",{id:this.htmlid,type:"checkbox",checked:this.checked,disabled:this.disabled,onChange:this.handleClick.bind(this)}),e("label",{htmlFor:this.htmlid,class:{[this.labelPosition]:!0,disabled:this.disabled}},e("span",null,e("slot",null)),e("span",{class:{container:!0,disabled:this.disabled,checked:this.checked}},e("span",{class:"circle"},this.checked&&e("z-icon",{width:12,height:12,name:"checkmark"}))))]}};l.style='.sc-z-toggle-switch-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:inline-flex;position:relative}label.sc-z-toggle-switch{display:flex;align-items:center;flex-direction:row;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{letter-spacing:0;color:var(--color-text01)}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{display:flex;align-items:center}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{top:1px;left:1px;height:18px;width:calc(var(--space-unit) * 4);border-radius:var(--space-unit);color:var(--gray500);background-color:var(--gray500);position:relative;cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){outline:none;box-shadow:var(--shadow-focus-primary)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{top:1px;left:1px;position:absolute;display:flex;align-items:center;justify-content:center;margin:0;height:calc(var(--space-unit) * 2);width:calc(var(--space-unit) * 2);border-radius:7px;background-color:var(--color-white);box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type="checkbox"].sc-z-toggle-switch{position:absolute;opacity:0;z-index:-1;pointer-events:none}';export{l as z_toggle_switch}
1
+ import{r as t,c as s,h as i}from"./p-98268a57.js";import{r as c}from"./p-b9da171f.js";import{u as e}from"./p-9f5d707a.js";import"./p-d69e14fb.js";const l=class{constructor(i){t(this,i),this.toggleClick=s(this,"toggleClick",7),this.disabled=!1,this.labelPosition=e.left,this.checked=!1,this.htmlid=`toggle-switch-id-${c()}`}emitToggleClick(){this.toggleClick.emit({id:this.htmlid,checked:this.checked})}handleClick(t){this.disabled||(this.checked=t.target.checked,this.emitToggleClick())}render(){return[i("input",{id:this.htmlid,type:"checkbox",checked:this.checked,disabled:this.disabled,onChange:this.handleClick.bind(this)}),i("label",{htmlFor:this.htmlid,class:{[this.labelPosition]:!0,disabled:this.disabled}},i("span",null,i("slot",null)),i("span",{class:{container:!0,disabled:this.disabled,checked:this.checked}},i("span",{class:"circle"},this.checked&&i("z-icon",{width:12,height:12,name:"checkmark"}))))]}};l.style='.sc-z-toggle-switch-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:inline-flex;position:relative}label.sc-z-toggle-switch{display:flex;align-items:center;flex-direction:row;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{letter-spacing:0;color:var(--color-text01)}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{display:flex;align-items:center}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{top:1px;left:1px;height:18px;width:calc(var(--space-unit) * 4);border-radius:var(--space-unit);color:var(--gray500);background-color:var(--gray500);position:relative;cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){outline:none;box-shadow:var(--shadow-focus-primary)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{top:1px;left:1px;position:absolute;display:flex;align-items:center;justify-content:center;margin:0;height:calc(var(--space-unit) * 2);width:calc(var(--space-unit) * 2);border-radius:7px;background-color:var(--color-white);box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type="checkbox"].sc-z-toggle-switch{position:absolute;opacity:0;z-index:-1;pointer-events:none}';export{l as z_toggle_switch}