@zanichelli/albe-web-components 18.7.7 → 18.8.1-RC1

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 (500) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/index-96af6326.js +4 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/web-components-library.cjs.js +1 -1
  5. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  6. package/dist/cjs/z-app-header_12.cjs.entry.js +18 -16
  7. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  8. package/dist/cjs/z-book-card.cjs.entry.js +15 -14
  9. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
  10. package/dist/{components/placeholder-cover.js → cjs/z-book-cover.cjs.entry.js} +26 -2
  11. package/dist/cjs/z-book-cover.cjs.entry.js.map +1 -0
  12. package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
  13. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  14. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  15. package/dist/cjs/z-combobox.cjs.entry.js +1 -1
  16. package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
  17. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +4 -4
  18. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  19. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  20. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  21. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  22. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  23. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  24. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  25. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  26. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  27. package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
  28. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  29. package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
  30. package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
  31. package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
  32. package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
  33. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  34. package/dist/cjs/z-otp.cjs.entry.js +2 -2
  35. package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
  36. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  37. package/dist/cjs/z-result-card.cjs.entry.js +6 -14
  38. package/dist/cjs/z-result-card.cjs.entry.js.map +1 -1
  39. package/dist/cjs/z-select.cjs.entry.js +42 -40
  40. package/dist/cjs/z-select.cjs.entry.js.map +1 -1
  41. package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
  42. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  43. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  44. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  45. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  46. package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
  47. package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
  48. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  49. package/dist/collection/collection-manifest.json +2 -1
  50. package/dist/collection/components/book-card/z-book-card/index.js +66 -29
  51. package/dist/collection/components/book-card/z-book-card/index.js.map +1 -1
  52. package/dist/collection/components/book-card/z-book-card/index.stories.js +11 -13
  53. package/dist/collection/components/book-card/z-book-card/index.stories.js.map +1 -1
  54. package/dist/collection/components/book-card/z-book-card/styles.css +35 -67
  55. package/dist/collection/components/list/z-list-element/styles.css +1 -1
  56. package/dist/collection/components/list/z-list-group/styles.css +3 -3
  57. package/dist/collection/components/z-book-cover/index.js +113 -0
  58. package/dist/collection/components/z-book-cover/index.js.map +1 -0
  59. package/dist/collection/components/z-book-cover/index.stories.js +31 -0
  60. package/dist/collection/components/z-book-cover/index.stories.js.map +1 -0
  61. package/dist/collection/components/z-book-cover/styles.css +95 -0
  62. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  63. package/dist/collection/components/z-button-sort/index.js +1 -1
  64. package/dist/collection/components/z-chip/index.js +2 -2
  65. package/dist/collection/components/z-combobox/index.js +1 -1
  66. package/dist/collection/components/z-cover-hero/index.js +2 -2
  67. package/dist/collection/components/z-divider/index.js +1 -1
  68. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  69. package/dist/collection/components/z-info-box/index.js +1 -1
  70. package/dist/collection/components/z-info-reveal/index.js +1 -1
  71. package/dist/collection/components/z-input/index.js +19 -17
  72. package/dist/collection/components/z-input/index.js.map +1 -1
  73. package/dist/collection/components/z-input-message/index.js +1 -1
  74. package/dist/collection/components/z-logo/index.js +1 -1
  75. package/dist/collection/components/z-modal/index.js +4 -4
  76. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  77. package/dist/collection/components/z-notification/index.js +1 -1
  78. package/dist/collection/components/z-offcanvas/index.js +2 -2
  79. package/dist/collection/components/z-panel-elem/index.js +2 -2
  80. package/dist/collection/components/z-popover/index.js +1 -1
  81. package/dist/collection/components/{result-card/z-result-card → z-result-card}/index.js +10 -18
  82. package/dist/collection/components/z-result-card/index.js.map +1 -0
  83. package/dist/collection/components/{result-card/z-result-card → z-result-card}/styles.css +39 -108
  84. package/dist/collection/components/z-result-card/z-result-card.stories.js.map +1 -0
  85. package/dist/collection/components/z-searchbar/index.js +1 -1
  86. package/dist/collection/components/z-select/index.js +41 -39
  87. package/dist/collection/components/z-select/index.js.map +1 -1
  88. package/dist/collection/components/z-select/styles.css +20 -22
  89. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  90. package/dist/collection/components/z-stepper/index.js +1 -1
  91. package/dist/collection/components/z-stepper-item/index.js +1 -1
  92. package/dist/collection/components/z-toast-notification/index.js +1 -1
  93. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  94. package/dist/collection/components/z-toggle-button/index.js +2 -2
  95. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  96. package/dist/collection/components/z-tooltip/index.js +1 -1
  97. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  98. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  99. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  100. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  101. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  102. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  103. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  104. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  105. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  106. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  107. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  108. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  109. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  110. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  111. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  112. package/dist/components/index.d.ts +3 -1
  113. package/dist/components/index.js +1 -0
  114. package/dist/components/index.js.map +1 -1
  115. package/dist/components/index10.js +24 -65
  116. package/dist/components/index10.js.map +1 -1
  117. package/dist/components/index11.js +58 -306
  118. package/dist/components/index11.js.map +1 -1
  119. package/dist/components/index12.js +313 -37
  120. package/dist/components/index12.js.map +1 -1
  121. package/dist/components/index13.js +40 -27
  122. package/dist/components/index13.js.map +1 -1
  123. package/dist/components/index14.js +23 -151
  124. package/dist/components/index14.js.map +1 -1
  125. package/dist/components/index15.js +144 -37
  126. package/dist/components/index15.js.map +1 -1
  127. package/dist/components/index16.js +42 -1008
  128. package/dist/components/index16.js.map +1 -1
  129. package/dist/components/index17.js +1012 -37
  130. package/dist/components/index17.js.map +1 -1
  131. package/dist/components/index18.js +42 -10
  132. package/dist/components/index18.js.map +1 -1
  133. package/dist/components/index19.js +10 -22
  134. package/dist/components/index19.js.map +1 -1
  135. package/dist/components/index20.js +16 -33
  136. package/dist/components/index20.js.map +1 -1
  137. package/dist/components/index21.js +39 -43
  138. package/dist/components/index21.js.map +1 -1
  139. package/dist/components/index22.js +44 -84
  140. package/dist/components/index22.js.map +1 -1
  141. package/dist/components/index23.js +60 -430
  142. package/dist/components/index23.js.map +1 -1
  143. package/dist/components/index24.js +415 -341
  144. package/dist/components/index24.js.map +1 -1
  145. package/dist/components/index25.js +376 -19
  146. package/dist/components/index25.js.map +1 -1
  147. package/dist/components/index26.js +45 -0
  148. package/dist/components/index26.js.map +1 -0
  149. package/dist/components/index3.js +1 -1
  150. package/dist/components/index4.js +23 -60
  151. package/dist/components/index4.js.map +1 -1
  152. package/dist/components/index5.js +53 -27
  153. package/dist/components/index5.js.map +1 -1
  154. package/dist/components/index6.js +34 -18
  155. package/dist/components/index6.js.map +1 -1
  156. package/dist/components/index7.js +18 -41
  157. package/dist/components/index7.js.map +1 -1
  158. package/dist/components/index8.js +41 -11
  159. package/dist/components/index8.js.map +1 -1
  160. package/dist/components/index9.js +10 -28
  161. package/dist/components/index9.js.map +1 -1
  162. package/dist/components/z-accordion.js +1 -1
  163. package/dist/components/z-anchor-navigation.js +2 -2
  164. package/dist/components/z-app-header-deprecated.js +11 -11
  165. package/dist/components/z-app-header.js +11 -11
  166. package/dist/components/z-book-card-app.js +2 -2
  167. package/dist/components/z-book-card-deprecated.js +1 -1
  168. package/dist/components/z-book-card.js +26 -17
  169. package/dist/components/z-book-card.js.map +1 -1
  170. package/dist/components/z-book-cover.d.ts +11 -0
  171. package/dist/components/z-book-cover.js +8 -0
  172. package/dist/components/z-book-cover.js.map +1 -0
  173. package/dist/components/z-breadcrumb.js +8 -8
  174. package/dist/components/z-button-sort.js +2 -2
  175. package/dist/components/z-button.js +1 -1
  176. package/dist/components/z-card.js +1 -1
  177. package/dist/components/z-carousel.js +3 -3
  178. package/dist/components/z-chip.js +1 -1
  179. package/dist/components/z-combobox.js +7 -7
  180. package/dist/components/z-cover-hero.js +2 -2
  181. package/dist/components/z-date-picker.js +3 -3
  182. package/dist/components/z-divider.js +1 -1
  183. package/dist/components/z-dragdrop-area.js +1 -1
  184. package/dist/components/z-file-upload.js +4 -4
  185. package/dist/components/z-file.js +3 -3
  186. package/dist/components/z-ghost-loading.js +1 -1
  187. package/dist/components/z-icon.js +1 -1
  188. package/dist/components/z-info-box.js +2 -2
  189. package/dist/components/z-info-reveal.js +1 -1
  190. package/dist/components/z-input-message.js +1 -1
  191. package/dist/components/z-input.js +1 -1
  192. package/dist/components/z-list-element.js +1 -1
  193. package/dist/components/z-list-group.js +1 -1
  194. package/dist/components/z-list.js +1 -1
  195. package/dist/components/z-logo.js +1 -1
  196. package/dist/components/z-menu-deprecated.js +1 -1
  197. package/dist/components/z-menu-section-deprecated.js +1 -1
  198. package/dist/components/z-menu-section.js +1 -1
  199. package/dist/components/z-menu.js +1 -1
  200. package/dist/components/z-modal.js +1 -1
  201. package/dist/components/z-myz-card-alert.js +2 -2
  202. package/dist/components/z-myz-card-body.js +1 -1
  203. package/dist/components/z-myz-card-cover.js +1 -1
  204. package/dist/components/z-myz-card-dictionary.js +7 -7
  205. package/dist/components/z-myz-card-footer-sections.js +1 -1
  206. package/dist/components/z-myz-card-footer.js +1 -1
  207. package/dist/components/z-myz-card-header.js +1 -1
  208. package/dist/components/z-myz-card-icon.js +2 -2
  209. package/dist/components/z-myz-card-info.js +3 -3
  210. package/dist/components/z-myz-card-list.js +1 -1
  211. package/dist/components/z-myz-card.js +1 -1
  212. package/dist/components/z-myz-list-item.js +1 -1
  213. package/dist/components/z-myz-list.js +3 -3
  214. package/dist/components/z-navigation-tabs.js +3 -3
  215. package/dist/components/z-notification.js +2 -2
  216. package/dist/components/z-offcanvas.js +1 -1
  217. package/dist/components/z-otp.js +4 -4
  218. package/dist/components/z-pagination.js +4 -4
  219. package/dist/components/z-panel-elem.js +3 -3
  220. package/dist/components/z-popover.js +1 -1
  221. package/dist/components/z-range-picker.js +3 -3
  222. package/dist/components/z-result-card.js +14 -16
  223. package/dist/components/z-result-card.js.map +1 -1
  224. package/dist/components/z-searchbar.js +1 -1
  225. package/dist/components/z-section-title.js +1 -1
  226. package/dist/components/z-select.js +50 -48
  227. package/dist/components/z-select.js.map +1 -1
  228. package/dist/components/z-skip-to-content.js +1 -1
  229. package/dist/components/z-slideshow.js +1 -1
  230. package/dist/components/z-stepper-item.js +2 -2
  231. package/dist/components/z-stepper.js +1 -1
  232. package/dist/components/z-table.js +1 -1
  233. package/dist/components/z-tag.js +1 -1
  234. package/dist/components/z-td.js +3 -3
  235. package/dist/components/z-th.js +3 -3
  236. package/dist/components/z-toast-notification-list.js +1 -1
  237. package/dist/components/z-toast-notification.js +2 -2
  238. package/dist/components/z-toggle-button.js +3 -3
  239. package/dist/components/z-toggle-switch.js +4 -4
  240. package/dist/components/z-tooltip.js +2 -2
  241. package/dist/components/z-tr.js +2 -2
  242. package/dist/components/z-tree-list.js +4 -4
  243. package/dist/esm/index-c8ceadeb.js +4 -0
  244. package/dist/esm/loader.js +1 -1
  245. package/dist/esm/web-components-library.js +1 -1
  246. package/dist/esm/z-alert.entry.js +1 -1
  247. package/dist/esm/z-app-header_12.entry.js +18 -16
  248. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  249. package/dist/esm/z-book-card.entry.js +15 -14
  250. package/dist/esm/z-book-card.entry.js.map +1 -1
  251. package/dist/{cjs/placeholder-cover-b679e768.js → esm/z-book-cover.entry.js} +21 -3
  252. package/dist/esm/z-book-cover.entry.js.map +1 -0
  253. package/dist/esm/z-breadcrumb.entry.js +2 -2
  254. package/dist/esm/z-button-sort.entry.js +1 -1
  255. package/dist/esm/z-chip.entry.js +2 -2
  256. package/dist/esm/z-combobox.entry.js +1 -1
  257. package/dist/esm/z-cover-hero.entry.js +2 -2
  258. package/dist/esm/z-dragdrop-area_2.entry.js +4 -4
  259. package/dist/esm/z-ghost-loading.entry.js +1 -1
  260. package/dist/esm/z-info-box.entry.js +1 -1
  261. package/dist/esm/z-info-reveal.entry.js +1 -1
  262. package/dist/esm/z-logo.entry.js +1 -1
  263. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  264. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  265. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  266. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  267. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  268. package/dist/esm/z-myz-card-info.entry.js +1 -1
  269. package/dist/esm/z-myz-card-list.entry.js +1 -1
  270. package/dist/esm/z-myz-card_4.entry.js +4 -4
  271. package/dist/esm/z-myz-list-item.entry.js +1 -1
  272. package/dist/esm/z-myz-list.entry.js +1 -1
  273. package/dist/esm/z-navigation-tabs.entry.js +2 -2
  274. package/dist/esm/z-notification.entry.js +1 -1
  275. package/dist/esm/z-otp.entry.js +2 -2
  276. package/dist/esm/z-panel-elem.entry.js +2 -2
  277. package/dist/esm/z-popover.entry.js +1 -1
  278. package/dist/esm/z-result-card.entry.js +6 -14
  279. package/dist/esm/z-result-card.entry.js.map +1 -1
  280. package/dist/esm/z-select.entry.js +42 -40
  281. package/dist/esm/z-select.entry.js.map +1 -1
  282. package/dist/esm/z-skip-to-content.entry.js +1 -1
  283. package/dist/esm/z-stepper-item.entry.js +1 -1
  284. package/dist/esm/z-stepper.entry.js +1 -1
  285. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  286. package/dist/esm/z-toast-notification.entry.js +1 -1
  287. package/dist/esm/z-toggle-button.entry.js +2 -2
  288. package/dist/esm/z-toggle-switch.entry.js +3 -3
  289. package/dist/esm/z-tooltip.entry.js +1 -1
  290. package/dist/types/components/book-card/z-book-card/index.d.ts +20 -16
  291. package/dist/types/components/book-card/z-book-card/index.stories.d.ts +2 -35
  292. package/dist/types/components/z-book-cover/index.d.ts +23 -0
  293. package/dist/types/components/z-book-cover/index.stories.d.ts +21 -0
  294. package/dist/types/components/z-input/index.d.ts +4 -4
  295. package/dist/types/components/{result-card/z-result-card → z-result-card}/index.d.ts +8 -26
  296. package/dist/types/components/z-select/index.d.ts +2 -0
  297. package/dist/types/components.d.ts +177 -76
  298. package/dist/web-components-library/{p-17259f80.entry.js → p-01f941c2.entry.js} +2 -2
  299. package/dist/web-components-library/p-0257ed6e.entry.js +2 -0
  300. package/dist/web-components-library/p-0257ed6e.entry.js.map +1 -0
  301. package/{www/build/p-a4e26cad.entry.js → dist/web-components-library/p-028dd72a.entry.js} +2 -2
  302. package/dist/web-components-library/{p-fa9c35b7.entry.js → p-0a49dd1c.entry.js} +2 -2
  303. package/dist/web-components-library/{p-7faf6680.entry.js → p-240de9aa.entry.js} +2 -2
  304. package/dist/web-components-library/p-28534fb5.entry.js +2 -0
  305. package/dist/web-components-library/{p-755e5bb3.entry.js → p-28d83c86.entry.js} +2 -2
  306. package/dist/web-components-library/{p-04f578d3.entry.js → p-2ffdfbb1.entry.js} +2 -2
  307. package/dist/web-components-library/p-31bd2a1c.entry.js +2 -0
  308. package/dist/web-components-library/p-31bd2a1c.entry.js.map +1 -0
  309. package/dist/web-components-library/{p-da6ba08a.entry.js → p-460b2068.entry.js} +2 -2
  310. package/dist/web-components-library/{p-bfa7b528.entry.js → p-46ea0b2e.entry.js} +2 -2
  311. package/{www/build/p-add09050.entry.js → dist/web-components-library/p-4a257653.entry.js} +2 -2
  312. package/{www/build/p-d3a51980.entry.js → dist/web-components-library/p-4aaf0172.entry.js} +2 -2
  313. package/dist/web-components-library/{p-22056263.entry.js → p-4affbb99.entry.js} +2 -2
  314. package/dist/web-components-library/{p-9f516be2.entry.js → p-5989465b.entry.js} +2 -2
  315. package/dist/web-components-library/{p-1775f79b.entry.js → p-5a1f98a2.entry.js} +2 -2
  316. package/dist/web-components-library/{p-a25c7fdb.entry.js → p-5c5882c6.entry.js} +2 -2
  317. package/dist/web-components-library/{p-a80faa78.entry.js → p-5f94986f.entry.js} +2 -2
  318. package/dist/web-components-library/p-6cff173f.entry.js +2 -0
  319. package/dist/web-components-library/p-6cffbabc.entry.js +2 -0
  320. package/{www/build/p-5f231799.entry.js.map → dist/web-components-library/p-6cffbabc.entry.js.map} +1 -1
  321. package/dist/web-components-library/{p-9e3116b0.entry.js → p-7194003a.entry.js} +2 -2
  322. package/dist/web-components-library/{p-6ebaa41d.entry.js → p-739ba71b.entry.js} +2 -2
  323. package/dist/web-components-library/p-739ba71b.entry.js.map +1 -0
  324. package/{www/build/p-9de4915b.entry.js → dist/web-components-library/p-78146cef.entry.js} +2 -2
  325. package/dist/web-components-library/{p-f39f6ee8.entry.js → p-7a4f6a5b.entry.js} +2 -2
  326. package/dist/web-components-library/{p-945928ff.entry.js → p-7ceddb7a.entry.js} +2 -2
  327. package/dist/web-components-library/{p-50b800e6.entry.js → p-86160fe3.entry.js} +2 -2
  328. package/dist/web-components-library/{p-2105d5ec.entry.js → p-863fd1c4.entry.js} +2 -2
  329. package/dist/web-components-library/p-8fc213c2.entry.js +2 -0
  330. package/{www/build/p-b0f80e50.entry.js.map → dist/web-components-library/p-8fc213c2.entry.js.map} +1 -1
  331. package/dist/web-components-library/{p-70aa0b22.entry.js → p-943db3a8.entry.js} +2 -2
  332. package/dist/web-components-library/{p-6d2a6434.entry.js → p-94916bdf.entry.js} +2 -2
  333. package/dist/web-components-library/{p-8e5bc362.entry.js → p-a2e87cec.entry.js} +2 -2
  334. package/dist/web-components-library/{p-fe663393.entry.js → p-ac477ae7.entry.js} +2 -2
  335. package/dist/web-components-library/p-af5e8524.entry.js +2 -0
  336. package/dist/web-components-library/{p-fb78c343.entry.js → p-b3f1b5c1.entry.js} +2 -2
  337. package/dist/web-components-library/{p-2264883d.entry.js → p-dc086eb5.entry.js} +2 -2
  338. package/dist/web-components-library/{p-f3287280.entry.js → p-e0b88075.entry.js} +2 -2
  339. package/dist/web-components-library/p-e4bb1256.entry.js +2 -0
  340. package/dist/web-components-library/p-e4bb1256.entry.js.map +1 -0
  341. package/dist/web-components-library/{p-7eb0e121.entry.js → p-f487290e.entry.js} +2 -2
  342. package/dist/web-components-library/p-f4bac89b.entry.js +2 -0
  343. package/dist/web-components-library/p-f4bac89b.entry.js.map +1 -0
  344. package/dist/web-components-library/web-components-library.esm.js +1 -1
  345. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  346. package/package.json +3 -2
  347. package/react/components.d.ts +1 -0
  348. package/react/components.js +3 -2
  349. package/react/components.js.map +1 -1
  350. package/www/build/{p-17259f80.entry.js → p-01f941c2.entry.js} +2 -2
  351. package/www/build/p-0257ed6e.entry.js +2 -0
  352. package/www/build/p-0257ed6e.entry.js.map +1 -0
  353. package/{dist/web-components-library/p-a4e26cad.entry.js → www/build/p-028dd72a.entry.js} +2 -2
  354. package/www/build/{p-fa9c35b7.entry.js → p-0a49dd1c.entry.js} +2 -2
  355. package/www/build/{p-7faf6680.entry.js → p-240de9aa.entry.js} +2 -2
  356. package/www/build/p-28534fb5.entry.js +2 -0
  357. package/www/build/{p-755e5bb3.entry.js → p-28d83c86.entry.js} +2 -2
  358. package/www/build/{p-04f578d3.entry.js → p-2ffdfbb1.entry.js} +2 -2
  359. package/www/build/p-31bd2a1c.entry.js +2 -0
  360. package/www/build/p-31bd2a1c.entry.js.map +1 -0
  361. package/www/build/{p-da6ba08a.entry.js → p-460b2068.entry.js} +2 -2
  362. package/www/build/{p-bfa7b528.entry.js → p-46ea0b2e.entry.js} +2 -2
  363. package/{dist/web-components-library/p-add09050.entry.js → www/build/p-4a257653.entry.js} +2 -2
  364. package/{dist/web-components-library/p-d3a51980.entry.js → www/build/p-4aaf0172.entry.js} +2 -2
  365. package/www/build/{p-22056263.entry.js → p-4affbb99.entry.js} +2 -2
  366. package/www/build/{p-9f516be2.entry.js → p-5989465b.entry.js} +2 -2
  367. package/www/build/{p-1775f79b.entry.js → p-5a1f98a2.entry.js} +2 -2
  368. package/www/build/{p-a25c7fdb.entry.js → p-5c5882c6.entry.js} +2 -2
  369. package/www/build/{p-a80faa78.entry.js → p-5f94986f.entry.js} +2 -2
  370. package/www/build/p-6cff173f.entry.js +2 -0
  371. package/www/build/p-6cffbabc.entry.js +2 -0
  372. package/{dist/web-components-library/p-5f231799.entry.js.map → www/build/p-6cffbabc.entry.js.map} +1 -1
  373. package/www/build/{p-9e3116b0.entry.js → p-7194003a.entry.js} +2 -2
  374. package/www/build/{p-6ebaa41d.entry.js → p-739ba71b.entry.js} +2 -2
  375. package/www/build/p-739ba71b.entry.js.map +1 -0
  376. package/{dist/web-components-library/p-9de4915b.entry.js → www/build/p-78146cef.entry.js} +2 -2
  377. package/www/build/{p-f39f6ee8.entry.js → p-7a4f6a5b.entry.js} +2 -2
  378. package/www/build/{p-945928ff.entry.js → p-7ceddb7a.entry.js} +2 -2
  379. package/www/build/{p-50b800e6.entry.js → p-86160fe3.entry.js} +2 -2
  380. package/www/build/{p-2105d5ec.entry.js → p-863fd1c4.entry.js} +2 -2
  381. package/www/build/p-8fc213c2.entry.js +2 -0
  382. package/{dist/web-components-library/p-b0f80e50.entry.js.map → www/build/p-8fc213c2.entry.js.map} +1 -1
  383. package/www/build/{p-70aa0b22.entry.js → p-943db3a8.entry.js} +2 -2
  384. package/www/build/{p-6d2a6434.entry.js → p-94916bdf.entry.js} +2 -2
  385. package/www/build/{p-8e5bc362.entry.js → p-a2e87cec.entry.js} +2 -2
  386. package/www/build/{p-fe663393.entry.js → p-ac477ae7.entry.js} +2 -2
  387. package/www/build/p-af5e8524.entry.js +2 -0
  388. package/www/build/{p-fb78c343.entry.js → p-b3f1b5c1.entry.js} +2 -2
  389. package/www/build/p-d2adc757.js +2 -0
  390. package/www/build/{p-2264883d.entry.js → p-dc086eb5.entry.js} +2 -2
  391. package/www/build/{p-f3287280.entry.js → p-e0b88075.entry.js} +2 -2
  392. package/www/build/p-e4bb1256.entry.js +2 -0
  393. package/www/build/p-e4bb1256.entry.js.map +1 -0
  394. package/www/build/{p-7eb0e121.entry.js → p-f487290e.entry.js} +2 -2
  395. package/www/build/p-f4bac89b.entry.js +2 -0
  396. package/www/build/p-f4bac89b.entry.js.map +1 -0
  397. package/www/build/web-components-library.esm.js +1 -1
  398. package/www/build/web-components-library.esm.js.map +1 -1
  399. package/www/index.html +1 -1
  400. package/dist/cjs/placeholder-cover-b679e768.js.map +0 -1
  401. package/dist/collection/components/result-card/z-result-card/index.js.map +0 -1
  402. package/dist/collection/components/result-card/z-result-card/z-result-card.stories.js.map +0 -1
  403. package/dist/components/placeholder-cover.js.map +0 -1
  404. package/dist/esm/placeholder-cover-9346be8f.js +0 -5
  405. package/dist/esm/placeholder-cover-9346be8f.js.map +0 -1
  406. package/dist/web-components-library/p-165d5acc.entry.js +0 -2
  407. package/dist/web-components-library/p-165d5acc.entry.js.map +0 -1
  408. package/dist/web-components-library/p-5f231799.entry.js +0 -2
  409. package/dist/web-components-library/p-6ebaa41d.entry.js.map +0 -1
  410. package/dist/web-components-library/p-75d50d5f.entry.js +0 -2
  411. package/dist/web-components-library/p-8d923a1d.js +0 -2
  412. package/dist/web-components-library/p-8d923a1d.js.map +0 -1
  413. package/dist/web-components-library/p-970de597.entry.js +0 -2
  414. package/dist/web-components-library/p-abd17b10.entry.js +0 -2
  415. package/dist/web-components-library/p-abd17b10.entry.js.map +0 -1
  416. package/dist/web-components-library/p-b0f80e50.entry.js +0 -2
  417. package/dist/web-components-library/p-e0320349.entry.js +0 -2
  418. package/dist/web-components-library/p-fef12692.entry.js +0 -2
  419. package/dist/web-components-library/p-fef12692.entry.js.map +0 -1
  420. package/www/build/p-165d5acc.entry.js +0 -2
  421. package/www/build/p-165d5acc.entry.js.map +0 -1
  422. package/www/build/p-29dcbeae.js +0 -2
  423. package/www/build/p-5f231799.entry.js +0 -2
  424. package/www/build/p-6ebaa41d.entry.js.map +0 -1
  425. package/www/build/p-75d50d5f.entry.js +0 -2
  426. package/www/build/p-8d923a1d.js +0 -2
  427. package/www/build/p-8d923a1d.js.map +0 -1
  428. package/www/build/p-970de597.entry.js +0 -2
  429. package/www/build/p-abd17b10.entry.js +0 -2
  430. package/www/build/p-abd17b10.entry.js.map +0 -1
  431. package/www/build/p-b0f80e50.entry.js +0 -2
  432. package/www/build/p-e0320349.entry.js +0 -2
  433. package/www/build/p-fef12692.entry.js +0 -2
  434. package/www/build/p-fef12692.entry.js.map +0 -1
  435. /package/dist/collection/components/{result-card/z-result-card → z-result-card}/z-result-card.stories.js +0 -0
  436. /package/dist/types/components/{result-card/z-result-card → z-result-card}/z-result-card.stories.d.ts +0 -0
  437. /package/dist/web-components-library/{p-17259f80.entry.js.map → p-01f941c2.entry.js.map} +0 -0
  438. /package/dist/web-components-library/{p-a4e26cad.entry.js.map → p-028dd72a.entry.js.map} +0 -0
  439. /package/dist/web-components-library/{p-fa9c35b7.entry.js.map → p-0a49dd1c.entry.js.map} +0 -0
  440. /package/dist/web-components-library/{p-7faf6680.entry.js.map → p-240de9aa.entry.js.map} +0 -0
  441. /package/dist/web-components-library/{p-970de597.entry.js.map → p-28534fb5.entry.js.map} +0 -0
  442. /package/dist/web-components-library/{p-755e5bb3.entry.js.map → p-28d83c86.entry.js.map} +0 -0
  443. /package/dist/web-components-library/{p-04f578d3.entry.js.map → p-2ffdfbb1.entry.js.map} +0 -0
  444. /package/dist/web-components-library/{p-da6ba08a.entry.js.map → p-460b2068.entry.js.map} +0 -0
  445. /package/dist/web-components-library/{p-bfa7b528.entry.js.map → p-46ea0b2e.entry.js.map} +0 -0
  446. /package/dist/web-components-library/{p-add09050.entry.js.map → p-4a257653.entry.js.map} +0 -0
  447. /package/dist/web-components-library/{p-d3a51980.entry.js.map → p-4aaf0172.entry.js.map} +0 -0
  448. /package/dist/web-components-library/{p-22056263.entry.js.map → p-4affbb99.entry.js.map} +0 -0
  449. /package/dist/web-components-library/{p-9f516be2.entry.js.map → p-5989465b.entry.js.map} +0 -0
  450. /package/dist/web-components-library/{p-1775f79b.entry.js.map → p-5a1f98a2.entry.js.map} +0 -0
  451. /package/dist/web-components-library/{p-a25c7fdb.entry.js.map → p-5c5882c6.entry.js.map} +0 -0
  452. /package/dist/web-components-library/{p-a80faa78.entry.js.map → p-5f94986f.entry.js.map} +0 -0
  453. /package/dist/web-components-library/{p-e0320349.entry.js.map → p-6cff173f.entry.js.map} +0 -0
  454. /package/dist/web-components-library/{p-9e3116b0.entry.js.map → p-7194003a.entry.js.map} +0 -0
  455. /package/dist/web-components-library/{p-9de4915b.entry.js.map → p-78146cef.entry.js.map} +0 -0
  456. /package/dist/web-components-library/{p-f39f6ee8.entry.js.map → p-7a4f6a5b.entry.js.map} +0 -0
  457. /package/dist/web-components-library/{p-945928ff.entry.js.map → p-7ceddb7a.entry.js.map} +0 -0
  458. /package/dist/web-components-library/{p-50b800e6.entry.js.map → p-86160fe3.entry.js.map} +0 -0
  459. /package/dist/web-components-library/{p-2105d5ec.entry.js.map → p-863fd1c4.entry.js.map} +0 -0
  460. /package/dist/web-components-library/{p-70aa0b22.entry.js.map → p-943db3a8.entry.js.map} +0 -0
  461. /package/dist/web-components-library/{p-6d2a6434.entry.js.map → p-94916bdf.entry.js.map} +0 -0
  462. /package/dist/web-components-library/{p-8e5bc362.entry.js.map → p-a2e87cec.entry.js.map} +0 -0
  463. /package/dist/web-components-library/{p-fe663393.entry.js.map → p-ac477ae7.entry.js.map} +0 -0
  464. /package/dist/web-components-library/{p-75d50d5f.entry.js.map → p-af5e8524.entry.js.map} +0 -0
  465. /package/dist/web-components-library/{p-fb78c343.entry.js.map → p-b3f1b5c1.entry.js.map} +0 -0
  466. /package/dist/web-components-library/{p-2264883d.entry.js.map → p-dc086eb5.entry.js.map} +0 -0
  467. /package/dist/web-components-library/{p-f3287280.entry.js.map → p-e0b88075.entry.js.map} +0 -0
  468. /package/dist/web-components-library/{p-7eb0e121.entry.js.map → p-f487290e.entry.js.map} +0 -0
  469. /package/www/build/{p-17259f80.entry.js.map → p-01f941c2.entry.js.map} +0 -0
  470. /package/www/build/{p-a4e26cad.entry.js.map → p-028dd72a.entry.js.map} +0 -0
  471. /package/www/build/{p-fa9c35b7.entry.js.map → p-0a49dd1c.entry.js.map} +0 -0
  472. /package/www/build/{p-7faf6680.entry.js.map → p-240de9aa.entry.js.map} +0 -0
  473. /package/www/build/{p-970de597.entry.js.map → p-28534fb5.entry.js.map} +0 -0
  474. /package/www/build/{p-755e5bb3.entry.js.map → p-28d83c86.entry.js.map} +0 -0
  475. /package/www/build/{p-04f578d3.entry.js.map → p-2ffdfbb1.entry.js.map} +0 -0
  476. /package/www/build/{p-da6ba08a.entry.js.map → p-460b2068.entry.js.map} +0 -0
  477. /package/www/build/{p-bfa7b528.entry.js.map → p-46ea0b2e.entry.js.map} +0 -0
  478. /package/www/build/{p-add09050.entry.js.map → p-4a257653.entry.js.map} +0 -0
  479. /package/www/build/{p-d3a51980.entry.js.map → p-4aaf0172.entry.js.map} +0 -0
  480. /package/www/build/{p-22056263.entry.js.map → p-4affbb99.entry.js.map} +0 -0
  481. /package/www/build/{p-9f516be2.entry.js.map → p-5989465b.entry.js.map} +0 -0
  482. /package/www/build/{p-1775f79b.entry.js.map → p-5a1f98a2.entry.js.map} +0 -0
  483. /package/www/build/{p-a25c7fdb.entry.js.map → p-5c5882c6.entry.js.map} +0 -0
  484. /package/www/build/{p-a80faa78.entry.js.map → p-5f94986f.entry.js.map} +0 -0
  485. /package/www/build/{p-e0320349.entry.js.map → p-6cff173f.entry.js.map} +0 -0
  486. /package/www/build/{p-9e3116b0.entry.js.map → p-7194003a.entry.js.map} +0 -0
  487. /package/www/build/{p-9de4915b.entry.js.map → p-78146cef.entry.js.map} +0 -0
  488. /package/www/build/{p-f39f6ee8.entry.js.map → p-7a4f6a5b.entry.js.map} +0 -0
  489. /package/www/build/{p-945928ff.entry.js.map → p-7ceddb7a.entry.js.map} +0 -0
  490. /package/www/build/{p-50b800e6.entry.js.map → p-86160fe3.entry.js.map} +0 -0
  491. /package/www/build/{p-2105d5ec.entry.js.map → p-863fd1c4.entry.js.map} +0 -0
  492. /package/www/build/{p-70aa0b22.entry.js.map → p-943db3a8.entry.js.map} +0 -0
  493. /package/www/build/{p-6d2a6434.entry.js.map → p-94916bdf.entry.js.map} +0 -0
  494. /package/www/build/{p-8e5bc362.entry.js.map → p-a2e87cec.entry.js.map} +0 -0
  495. /package/www/build/{p-fe663393.entry.js.map → p-ac477ae7.entry.js.map} +0 -0
  496. /package/www/build/{p-75d50d5f.entry.js.map → p-af5e8524.entry.js.map} +0 -0
  497. /package/www/build/{p-fb78c343.entry.js.map → p-b3f1b5c1.entry.js.map} +0 -0
  498. /package/www/build/{p-2264883d.entry.js.map → p-dc086eb5.entry.js.map} +0 -0
  499. /package/www/build/{p-f3287280.entry.js.map → p-e0b88075.entry.js.map} +0 -0
  500. /package/www/build/{p-7eb0e121.entry.js.map → p-f487290e.entry.js.map} +0 -0
@@ -262,13 +262,13 @@ export namespace Components {
262
262
  "textColor"?: string;
263
263
  }
264
264
  /**
265
- * @cssprop --z-book-card-portrait-cover-height - set custom cover height for portrait variant - default 378px
266
- * @cssprop --z-book-card-title-lines - set title avilable lines - default 2
267
- * @cssprop --z-book-card-title-word-break - set title word-break rule - default initial
268
- * @cssprop --z-book-card-subtitle-lines - set subtitle available lines - default 1
269
- * @cssprop --z-book-card-subtitle-word-break - set subtitle word-break rule - default break-all
270
- * @cssprop --z-book-card-authors-lines - set authors available lines - default 1
271
- * @cssprop --z-book-card-authors-word-break - set authors word-break rule - default break-all
265
+ * @cssprop --z-book-card-portrait-cover-height - Set custom cover height for portrait variant - Default: `378px`
266
+ * @cssprop --z-book-card-title-lines - Set title avilable lines - Default: `2`
267
+ * @cssprop --z-book-card-title-word-break - Set title word-break rule - Default: `initial`
268
+ * @cssprop --z-book-card-subtitle-lines - Set subtitle available lines - Default: `1`
269
+ * @cssprop --z-book-card-subtitle-word-break - Set subtitle word-break rule - Default: `break-all`
270
+ * @cssprop --z-book-card-authors-lines - Set authors available lines - Default: `1`
271
+ * @cssprop --z-book-card-authors-word-break - Set authors word-break rule - Default: `break-all`
272
272
  */
273
273
  interface ZBookCard {
274
274
  /**
@@ -280,13 +280,17 @@ export namespace Components {
280
280
  */
281
281
  "cover": string;
282
282
  /**
283
- * [optional] Show link to the ebook resource. Set title and cover as clickable, opening a new tab to the ebook resource
283
+ * [optional] Link to the ebook resource. Creates a link also around the cover and title.
284
284
  */
285
285
  "ebookUrl"?: string;
286
286
  /**
287
- * [optional] Fallback cover URL
287
+ * [optional] Fallback cover URL.
288
288
  */
289
289
  "fallbackCover"?: string;
290
+ /**
291
+ * Whether to show a stack of covers to represent multiple books (only for `portrait` variant).
292
+ */
293
+ "hasMultipleCovers": boolean;
290
294
  /**
291
295
  * [optional] Main ISBN
292
296
  */
@@ -295,12 +299,16 @@ export namespace Components {
295
299
  * [optional] ISBN label
296
300
  */
297
301
  "isbnLabel": string;
302
+ /**
303
+ * [optional] Value for the `target` attribute of the links created by `ebookUrl` prop.
304
+ */
305
+ "linkTarget": string;
298
306
  /**
299
307
  * Opera title (card title)
300
308
  */
301
309
  "operaTitle": string;
302
310
  /**
303
- * [optional] Set a specific h level as html tag for opera title
311
+ * [optional] Set a specific heading level as html tag for the title.
304
312
  */
305
313
  "titleHtmlTag"?: string;
306
314
  /**
@@ -403,6 +411,34 @@ export namespace Components {
403
411
  */
404
412
  "volumeTitle"?: string;
405
413
  }
414
+ /**
415
+ * This component displays a book cover image,
416
+ * with options for borders and a representation of multiple books with a stack of fake covers behind the original one.
417
+ * The aspect ratio of the cover image is preserved.
418
+ * Alignment of the image inside the container can be customized via CSS properties.
419
+ * @cssprop --z-book-cover-height - height of the book cover (default: `378px`). The width is calculated automatically to maintain an aspect ratio of 1.33.
420
+ * @cssprop --z-book-cover-border-radius - border radius of the book cover (default: `var(--border-radius)`)
421
+ * @cssprop --z-book-cover-stack-shift-x - the horizontal shift of each stacked cover when `multiple` is `true` (default: `8px`)
422
+ * @cssprop --z-book-cover-stack-shift-y - the vertical shift of each stacked cover when `multiple` is `true` (default: `12px`)
423
+ */
424
+ interface ZBookCover {
425
+ /**
426
+ * Whether to apply a border around the cover image (always applied when `multiple` is enabled).
427
+ */
428
+ "bordered": boolean;
429
+ /**
430
+ * URL of the cover image.
431
+ */
432
+ "cover": string;
433
+ /**
434
+ * URL of the fallback cover image.
435
+ */
436
+ "fallbackCover": string;
437
+ /**
438
+ * Whether to show a stack of covers to represent multiple books.
439
+ */
440
+ "multiple": boolean;
441
+ }
406
442
  interface ZBreadcrumb {
407
443
  /**
408
444
  * [optional] Variant of first node
@@ -901,22 +937,6 @@ export namespace Components {
901
937
  "size"?: ControlSize;
902
938
  }
903
939
  interface ZInput {
904
- /**
905
- * the input aria-activedescendant (optional): available for text, password, number, email
906
- */
907
- "ariaActivedescendant"?: string;
908
- /**
909
- * the input aria-autocomplete (optional): available for text, password, number, email
910
- */
911
- "ariaAutocomplete"?: string;
912
- /**
913
- * the input aria-controls (optional): available for text, password, number, email
914
- */
915
- "ariaControls"?: string;
916
- /**
917
- * the input aria-expaded: available for text, password, number, email
918
- */
919
- "ariaExpanded": string;
920
940
  /**
921
941
  * the input aria-label
922
942
  */
@@ -937,6 +957,22 @@ export namespace Components {
937
957
  * render clear icon when typing (optional): available for text
938
958
  */
939
959
  "hasclearicon"?: boolean;
960
+ /**
961
+ * the input aria-activedescendant (optional): available for text, password, number, email
962
+ */
963
+ "htmlAriaActivedescendant"?: string;
964
+ /**
965
+ * the input aria-autocomplete (optional): available for text, password, number, email
966
+ */
967
+ "htmlAriaAutocomplete"?: string;
968
+ /**
969
+ * the input aria-controls (optional): available for text, password, number, email
970
+ */
971
+ "htmlAriaControls"?: string;
972
+ /**
973
+ * the input aria-expaded: available for text, password, number, email
974
+ */
975
+ "htmlAriaExpanded": string;
940
976
  /**
941
977
  * the id of the input element
942
978
  */
@@ -1774,23 +1810,23 @@ export namespace Components {
1774
1810
  */
1775
1811
  "cardTitle": string;
1776
1812
  /**
1777
- * The URL of the cover image. This is used to display the cover image of the opera.
1813
+ * The URL of the cover image of the opera.
1778
1814
  */
1779
1815
  "cover"?: string;
1780
1816
  /**
1781
- * [optional] Fallback cover URL
1817
+ * [optional] Fallback cover URL.
1782
1818
  */
1783
1819
  "fallbackCover"?: string;
1784
1820
  /**
1785
- * Indicates whether the card has multiple covers. This is used to apply specific styles when there are multiple covers.
1821
+ * Whether to show a stack of covers to represent multiple books.
1786
1822
  */
1787
1823
  "hasMultipleCovers": boolean;
1788
1824
  /**
1789
- * Indicates whether the card is an info page. This can be used to apply specific styles or behaviors for info pages.
1825
+ * Enables the "info" variant of the card.
1790
1826
  */
1791
1827
  "isInfoCard": boolean;
1792
1828
  /**
1793
- * [optional] Use for insert heading when needed.
1829
+ * [optional] Set a specific heading level as html tag for the title.
1794
1830
  */
1795
1831
  "titleHtmlTag"?: string;
1796
1832
  }
@@ -2594,13 +2630,13 @@ declare global {
2594
2630
  "titleClick": any;
2595
2631
  }
2596
2632
  /**
2597
- * @cssprop --z-book-card-portrait-cover-height - set custom cover height for portrait variant - default 378px
2598
- * @cssprop --z-book-card-title-lines - set title avilable lines - default 2
2599
- * @cssprop --z-book-card-title-word-break - set title word-break rule - default initial
2600
- * @cssprop --z-book-card-subtitle-lines - set subtitle available lines - default 1
2601
- * @cssprop --z-book-card-subtitle-word-break - set subtitle word-break rule - default break-all
2602
- * @cssprop --z-book-card-authors-lines - set authors available lines - default 1
2603
- * @cssprop --z-book-card-authors-word-break - set authors word-break rule - default break-all
2633
+ * @cssprop --z-book-card-portrait-cover-height - Set custom cover height for portrait variant - Default: `378px`
2634
+ * @cssprop --z-book-card-title-lines - Set title avilable lines - Default: `2`
2635
+ * @cssprop --z-book-card-title-word-break - Set title word-break rule - Default: `initial`
2636
+ * @cssprop --z-book-card-subtitle-lines - Set subtitle available lines - Default: `1`
2637
+ * @cssprop --z-book-card-subtitle-word-break - Set subtitle word-break rule - Default: `break-all`
2638
+ * @cssprop --z-book-card-authors-lines - Set authors available lines - Default: `1`
2639
+ * @cssprop --z-book-card-authors-word-break - Set authors word-break rule - Default: `break-all`
2604
2640
  */
2605
2641
  interface HTMLZBookCardElement extends Components.ZBookCard, HTMLStencilElement {
2606
2642
  addEventListener<K extends keyof HTMLZBookCardElementEventMap>(type: K, listener: (this: HTMLZBookCardElement, ev: ZBookCardCustomEvent<HTMLZBookCardElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -2661,6 +2697,22 @@ declare global {
2661
2697
  prototype: HTMLZBookCardDeprecatedElement;
2662
2698
  new (): HTMLZBookCardDeprecatedElement;
2663
2699
  };
2700
+ /**
2701
+ * This component displays a book cover image,
2702
+ * with options for borders and a representation of multiple books with a stack of fake covers behind the original one.
2703
+ * The aspect ratio of the cover image is preserved.
2704
+ * Alignment of the image inside the container can be customized via CSS properties.
2705
+ * @cssprop --z-book-cover-height - height of the book cover (default: `378px`). The width is calculated automatically to maintain an aspect ratio of 1.33.
2706
+ * @cssprop --z-book-cover-border-radius - border radius of the book cover (default: `var(--border-radius)`)
2707
+ * @cssprop --z-book-cover-stack-shift-x - the horizontal shift of each stacked cover when `multiple` is `true` (default: `8px`)
2708
+ * @cssprop --z-book-cover-stack-shift-y - the vertical shift of each stacked cover when `multiple` is `true` (default: `12px`)
2709
+ */
2710
+ interface HTMLZBookCoverElement extends Components.ZBookCover, HTMLStencilElement {
2711
+ }
2712
+ var HTMLZBookCoverElement: {
2713
+ prototype: HTMLZBookCoverElement;
2714
+ new (): HTMLZBookCoverElement;
2715
+ };
2664
2716
  interface HTMLZBreadcrumbElementEventMap {
2665
2717
  "clickOnNode": BreadcrumbPath["path"];
2666
2718
  }
@@ -3656,6 +3708,7 @@ declare global {
3656
3708
  "z-book-card": HTMLZBookCardElement;
3657
3709
  "z-book-card-app": HTMLZBookCardAppElement;
3658
3710
  "z-book-card-deprecated": HTMLZBookCardDeprecatedElement;
3711
+ "z-book-cover": HTMLZBookCoverElement;
3659
3712
  "z-breadcrumb": HTMLZBreadcrumbElement;
3660
3713
  "z-button": HTMLZButtonElement;
3661
3714
  "z-button-sort": HTMLZButtonSortElement;
@@ -3991,13 +4044,13 @@ declare namespace LocalJSX {
3991
4044
  "textColor"?: string;
3992
4045
  }
3993
4046
  /**
3994
- * @cssprop --z-book-card-portrait-cover-height - set custom cover height for portrait variant - default 378px
3995
- * @cssprop --z-book-card-title-lines - set title avilable lines - default 2
3996
- * @cssprop --z-book-card-title-word-break - set title word-break rule - default initial
3997
- * @cssprop --z-book-card-subtitle-lines - set subtitle available lines - default 1
3998
- * @cssprop --z-book-card-subtitle-word-break - set subtitle word-break rule - default break-all
3999
- * @cssprop --z-book-card-authors-lines - set authors available lines - default 1
4000
- * @cssprop --z-book-card-authors-word-break - set authors word-break rule - default break-all
4047
+ * @cssprop --z-book-card-portrait-cover-height - Set custom cover height for portrait variant - Default: `378px`
4048
+ * @cssprop --z-book-card-title-lines - Set title avilable lines - Default: `2`
4049
+ * @cssprop --z-book-card-title-word-break - Set title word-break rule - Default: `initial`
4050
+ * @cssprop --z-book-card-subtitle-lines - Set subtitle available lines - Default: `1`
4051
+ * @cssprop --z-book-card-subtitle-word-break - Set subtitle word-break rule - Default: `break-all`
4052
+ * @cssprop --z-book-card-authors-lines - Set authors available lines - Default: `1`
4053
+ * @cssprop --z-book-card-authors-word-break - Set authors word-break rule - Default: `break-all`
4001
4054
  */
4002
4055
  interface ZBookCard {
4003
4056
  /**
@@ -4009,13 +4062,17 @@ declare namespace LocalJSX {
4009
4062
  */
4010
4063
  "cover"?: string;
4011
4064
  /**
4012
- * [optional] Show link to the ebook resource. Set title and cover as clickable, opening a new tab to the ebook resource
4065
+ * [optional] Link to the ebook resource. Creates a link also around the cover and title.
4013
4066
  */
4014
4067
  "ebookUrl"?: string;
4015
4068
  /**
4016
- * [optional] Fallback cover URL
4069
+ * [optional] Fallback cover URL.
4017
4070
  */
4018
4071
  "fallbackCover"?: string;
4072
+ /**
4073
+ * Whether to show a stack of covers to represent multiple books (only for `portrait` variant).
4074
+ */
4075
+ "hasMultipleCovers"?: boolean;
4019
4076
  /**
4020
4077
  * [optional] Main ISBN
4021
4078
  */
@@ -4024,6 +4081,10 @@ declare namespace LocalJSX {
4024
4081
  * [optional] ISBN label
4025
4082
  */
4026
4083
  "isbnLabel"?: string;
4084
+ /**
4085
+ * [optional] Value for the `target` attribute of the links created by `ebookUrl` prop.
4086
+ */
4087
+ "linkTarget"?: string;
4027
4088
  /**
4028
4089
  * click on cover link
4029
4090
  */
@@ -4041,7 +4102,7 @@ declare namespace LocalJSX {
4041
4102
  */
4042
4103
  "operaTitle"?: string;
4043
4104
  /**
4044
- * [optional] Set a specific h level as html tag for opera title
4105
+ * [optional] Set a specific heading level as html tag for the title.
4045
4106
  */
4046
4107
  "titleHtmlTag"?: string;
4047
4108
  /**
@@ -4152,6 +4213,34 @@ declare namespace LocalJSX {
4152
4213
  */
4153
4214
  "volumeTitle"?: string;
4154
4215
  }
4216
+ /**
4217
+ * This component displays a book cover image,
4218
+ * with options for borders and a representation of multiple books with a stack of fake covers behind the original one.
4219
+ * The aspect ratio of the cover image is preserved.
4220
+ * Alignment of the image inside the container can be customized via CSS properties.
4221
+ * @cssprop --z-book-cover-height - height of the book cover (default: `378px`). The width is calculated automatically to maintain an aspect ratio of 1.33.
4222
+ * @cssprop --z-book-cover-border-radius - border radius of the book cover (default: `var(--border-radius)`)
4223
+ * @cssprop --z-book-cover-stack-shift-x - the horizontal shift of each stacked cover when `multiple` is `true` (default: `8px`)
4224
+ * @cssprop --z-book-cover-stack-shift-y - the vertical shift of each stacked cover when `multiple` is `true` (default: `12px`)
4225
+ */
4226
+ interface ZBookCover {
4227
+ /**
4228
+ * Whether to apply a border around the cover image (always applied when `multiple` is enabled).
4229
+ */
4230
+ "bordered"?: boolean;
4231
+ /**
4232
+ * URL of the cover image.
4233
+ */
4234
+ "cover"?: string;
4235
+ /**
4236
+ * URL of the fallback cover image.
4237
+ */
4238
+ "fallbackCover"?: string;
4239
+ /**
4240
+ * Whether to show a stack of covers to represent multiple books.
4241
+ */
4242
+ "multiple"?: boolean;
4243
+ }
4155
4244
  interface ZBreadcrumb {
4156
4245
  /**
4157
4246
  * [optional] Variant of first node
@@ -4686,22 +4775,6 @@ declare namespace LocalJSX {
4686
4775
  "size"?: ControlSize;
4687
4776
  }
4688
4777
  interface ZInput {
4689
- /**
4690
- * the input aria-activedescendant (optional): available for text, password, number, email
4691
- */
4692
- "ariaActivedescendant"?: string;
4693
- /**
4694
- * the input aria-autocomplete (optional): available for text, password, number, email
4695
- */
4696
- "ariaAutocomplete"?: string;
4697
- /**
4698
- * the input aria-controls (optional): available for text, password, number, email
4699
- */
4700
- "ariaControls"?: string;
4701
- /**
4702
- * the input aria-expaded: available for text, password, number, email
4703
- */
4704
- "ariaExpanded"?: string;
4705
4778
  /**
4706
4779
  * the input aria-label
4707
4780
  */
@@ -4722,6 +4795,22 @@ declare namespace LocalJSX {
4722
4795
  * render clear icon when typing (optional): available for text
4723
4796
  */
4724
4797
  "hasclearicon"?: boolean;
4798
+ /**
4799
+ * the input aria-activedescendant (optional): available for text, password, number, email
4800
+ */
4801
+ "htmlAriaActivedescendant"?: string;
4802
+ /**
4803
+ * the input aria-autocomplete (optional): available for text, password, number, email
4804
+ */
4805
+ "htmlAriaAutocomplete"?: string;
4806
+ /**
4807
+ * the input aria-controls (optional): available for text, password, number, email
4808
+ */
4809
+ "htmlAriaControls"?: string;
4810
+ /**
4811
+ * the input aria-expaded: available for text, password, number, email
4812
+ */
4813
+ "htmlAriaExpanded"?: string;
4725
4814
  /**
4726
4815
  * the id of the input element
4727
4816
  */
@@ -5667,23 +5756,23 @@ declare namespace LocalJSX {
5667
5756
  */
5668
5757
  "cardTitle"?: string;
5669
5758
  /**
5670
- * The URL of the cover image. This is used to display the cover image of the opera.
5759
+ * The URL of the cover image of the opera.
5671
5760
  */
5672
5761
  "cover"?: string;
5673
5762
  /**
5674
- * [optional] Fallback cover URL
5763
+ * [optional] Fallback cover URL.
5675
5764
  */
5676
5765
  "fallbackCover"?: string;
5677
5766
  /**
5678
- * Indicates whether the card has multiple covers. This is used to apply specific styles when there are multiple covers.
5767
+ * Whether to show a stack of covers to represent multiple books.
5679
5768
  */
5680
5769
  "hasMultipleCovers"?: boolean;
5681
5770
  /**
5682
- * Indicates whether the card is an info page. This can be used to apply specific styles or behaviors for info pages.
5771
+ * Enables the "info" variant of the card.
5683
5772
  */
5684
5773
  "isInfoCard"?: boolean;
5685
5774
  /**
5686
- * [optional] Use for insert heading when needed.
5775
+ * [optional] Set a specific heading level as html tag for the title.
5687
5776
  */
5688
5777
  "titleHtmlTag"?: string;
5689
5778
  }
@@ -6190,6 +6279,7 @@ declare namespace LocalJSX {
6190
6279
  "z-book-card": ZBookCard;
6191
6280
  "z-book-card-app": ZBookCardApp;
6192
6281
  "z-book-card-deprecated": ZBookCardDeprecated;
6282
+ "z-book-cover": ZBookCover;
6193
6283
  "z-breadcrumb": ZBreadcrumb;
6194
6284
  "z-button": ZButton;
6195
6285
  "z-button-sort": ZButtonSort;
@@ -6365,13 +6455,13 @@ declare module "@stencil/core" {
6365
6455
  "z-aria-alert": LocalJSX.ZAriaAlert & JSXBase.HTMLAttributes<HTMLZAriaAlertElement>;
6366
6456
  "z-avatar": LocalJSX.ZAvatar & JSXBase.HTMLAttributes<HTMLZAvatarElement>;
6367
6457
  /**
6368
- * @cssprop --z-book-card-portrait-cover-height - set custom cover height for portrait variant - default 378px
6369
- * @cssprop --z-book-card-title-lines - set title avilable lines - default 2
6370
- * @cssprop --z-book-card-title-word-break - set title word-break rule - default initial
6371
- * @cssprop --z-book-card-subtitle-lines - set subtitle available lines - default 1
6372
- * @cssprop --z-book-card-subtitle-word-break - set subtitle word-break rule - default break-all
6373
- * @cssprop --z-book-card-authors-lines - set authors available lines - default 1
6374
- * @cssprop --z-book-card-authors-word-break - set authors word-break rule - default break-all
6458
+ * @cssprop --z-book-card-portrait-cover-height - Set custom cover height for portrait variant - Default: `378px`
6459
+ * @cssprop --z-book-card-title-lines - Set title avilable lines - Default: `2`
6460
+ * @cssprop --z-book-card-title-word-break - Set title word-break rule - Default: `initial`
6461
+ * @cssprop --z-book-card-subtitle-lines - Set subtitle available lines - Default: `1`
6462
+ * @cssprop --z-book-card-subtitle-word-break - Set subtitle word-break rule - Default: `break-all`
6463
+ * @cssprop --z-book-card-authors-lines - Set authors available lines - Default: `1`
6464
+ * @cssprop --z-book-card-authors-word-break - Set authors word-break rule - Default: `break-all`
6375
6465
  */
6376
6466
  "z-book-card": LocalJSX.ZBookCard & JSXBase.HTMLAttributes<HTMLZBookCardElement>;
6377
6467
  /**
@@ -6387,6 +6477,17 @@ declare module "@stencil/core" {
6387
6477
  * @cssprop --z-book-card-compact-height - compact card custom height
6388
6478
  */
6389
6479
  "z-book-card-deprecated": LocalJSX.ZBookCardDeprecated & JSXBase.HTMLAttributes<HTMLZBookCardDeprecatedElement>;
6480
+ /**
6481
+ * This component displays a book cover image,
6482
+ * with options for borders and a representation of multiple books with a stack of fake covers behind the original one.
6483
+ * The aspect ratio of the cover image is preserved.
6484
+ * Alignment of the image inside the container can be customized via CSS properties.
6485
+ * @cssprop --z-book-cover-height - height of the book cover (default: `378px`). The width is calculated automatically to maintain an aspect ratio of 1.33.
6486
+ * @cssprop --z-book-cover-border-radius - border radius of the book cover (default: `var(--border-radius)`)
6487
+ * @cssprop --z-book-cover-stack-shift-x - the horizontal shift of each stacked cover when `multiple` is `true` (default: `8px`)
6488
+ * @cssprop --z-book-cover-stack-shift-y - the vertical shift of each stacked cover when `multiple` is `true` (default: `12px`)
6489
+ */
6490
+ "z-book-cover": LocalJSX.ZBookCover & JSXBase.HTMLAttributes<HTMLZBookCoverElement>;
6390
6491
  "z-breadcrumb": LocalJSX.ZBreadcrumb & JSXBase.HTMLAttributes<HTMLZBreadcrumbElement>;
6391
6492
  "z-button": LocalJSX.ZButton & JSXBase.HTMLAttributes<HTMLZButtonElement>;
6392
6493
  "z-button-sort": LocalJSX.ZButtonSort & JSXBase.HTMLAttributes<HTMLZButtonSortElement>;
@@ -1,2 +1,2 @@
1
- import{r as t,c as i,h as a,a as n,g as e}from"./p-75c4a726.js";import{N as o,a as s,b as r}from"./p-17af7fb2.js";const l='z-navigation-tabs{position:relative;z-index:0;display:flex;overflow:hidden;flex-direction:row;font-family:var(--font-family-sans);font-weight:var(--font-rg)}z-navigation-tabs,z-navigation-tabs *{box-sizing:border-box}z-navigation-tabs>nav::-webkit-scrollbar{display:none}z-navigation-tabs .navigation-button{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--z-navigation-tabs-nav-buttons-bg, var(--color-surface01));border-radius:var(--border-no-radius);box-shadow:0 0 4px 1px var(--shadow-color-base);cursor:pointer;fill:var(--z-navigation-tabs-nav-buttons-fg, var(--color-primary01));outline:none}z-navigation-tabs .navigation-button:disabled{display:none}z-navigation-tabs>nav{z-index:0;display:flex;overflow:auto;align-items:center;justify-content:flex-start;scroll-behavior:smooth;scrollbar-width:none}z-navigation-tabs[orientation="horizontal"]>nav{width:100%}z-navigation-tabs[orientation="horizontal"] .navigation-button{top:0;width:calc(var(--space-unit) * 4);height:100%}z-navigation-tabs[orientation="horizontal"] .navigation-button:first-child{left:0}z-navigation-tabs[orientation="horizontal"] .navigation-button:last-child{right:0}z-navigation-tabs[orientation="vertical"]{width:fit-content;flex-direction:column}z-navigation-tabs[orientation="vertical"]>nav{height:100%;flex-direction:column;align-items:stretch}z-navigation-tabs[orientation="vertical"] .navigation-button{left:0;width:100%;height:calc(var(--space-unit) * 4)}z-navigation-tabs[orientation="vertical"] .navigation-button:first-child{top:0}z-navigation-tabs[orientation="vertical"] .navigation-button:last-child{bottom:0}z-navigation-tabs[size="small"][orientation="vertical"] .navigation-button{height:calc(var(--space-unit) * 4)}z-navigation-tabs>nav>*{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;gap:var(--space-unit);letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tabs>nav>a{text-decoration:none}z-navigation-tabs>nav>*:focus:focus-visible{z-index:1;box-shadow:inset 0 0 2px 2px var(--shadow-color-base)}z-navigation-tabs>nav>:not([disabled]):hover{background-color:var(--color-background)}z-navigation-tabs>nav>button[disabled]{color:var(--color-disabled03);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tabs>nav>:not([disabled]):hover,nav>[aria-selected="true"]{color:var(--color-hover-primary);fill:currentcolor}z-navigation-tabs>nav>:not([disabled]):hover::after,nav>[aria-selected="true"]::after{position:absolute;background-color:var(--color-hover-primary);content:""}z-navigation-tabs[orientation="horizontal"]>nav>:not([disabled]):hover::after,z-navigation-tabs[orientation="horizontal"]>nav>[aria-selected="true"]::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tabs>nav>* z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tabs[size="small"][orientation="horizontal"]>nav>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tabs[size="small"][orientation="horizontal"]>nav>:not([disabled]):hover::after,z-navigation-tabs[size="small"][orientation="horizontal"]>nav>[aria-selected="true"]::after{height:var(--border-size-medium)}z-navigation-tabs[size="small"]:not([orientation="vertical"])>nav>* z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tabs[orientation="vertical"]>nav>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tabs[orientation="vertical"]>nav>*>:not(z-icon){display:none}z-navigation-tabs[orientation="vertical"]>nav>:not([disabled]):hover::after,z-navigation-tabs[orientation="vertical"]>nav>[aria-selected="true"]::after{top:0;right:0;width:var(--border-size-large);height:100%}';const h=l;const c=class{constructor(a){t(this,a);this.selected=i(this,"selected",7);this.focusedTab=undefined;this.ariaLabel="";this.orientation=o.HORIZONTAL;this.size=s.BIG;this.selectedTab=undefined;this.canNavigate=undefined;this.canNavigatePrev=undefined;this.canNavigateNext=undefined}get direction(){return this.orientation==o.HORIZONTAL?"Left":"Top"}get dimension(){return this.orientation==o.HORIZONTAL?"Width":"Height"}get tabs(){return Array.from(this.nav.children)}scrollToTab(t){const i=t.parentElement;if(!i){return}setTimeout((()=>{const a=this.orientation===o.HORIZONTAL;const n=i.getBoundingClientRect();const e=t.getBoundingClientRect();const s=a?e.left-n.left:e.top-n.top;const r=a?i.clientWidth:i.clientHeight;const l=a?t.clientWidth:t.clientHeight;const h=s-r/2+l/2;i.scrollTo({[a?"left":"top"]:i[a?"scrollLeft":"scrollTop"]+h,behavior:"smooth"})}),100)}navigateBackwards(){this.nav.scrollBy({[this.direction.toLowerCase()]:0-this.nav[`client${this.dimension}`]/2,behavior:"smooth"})}navigateForward(){this.nav.scrollBy({[this.direction.toLowerCase()]:this.nav[`scroll${this.direction}`]+this.nav[`client${this.dimension}`]/2,behavior:"smooth"})}isArrowNavigation(t){return Object.values(r).includes(t.key)}checkScrollVisible(){if(!this.nav){return}this.canNavigate=this.nav[`scroll${this.dimension}`]>this.nav[`client${this.dimension}`]}checkScrollEnabled(){if(!this.nav){return}this.canNavigateNext=this.nav[`scroll${this.direction}`]+this.nav[`client${this.dimension}`]<this.nav[`scroll${this.dimension}`];this.canNavigatePrev=this.nav[`scroll${this.direction}`]>0}onTabSelected(){this.tabs.forEach(((t,i)=>{const a=t.querySelector("z-icon");const n=a===null||a===void 0?void 0:a.name.replace("-filled","");if(i!==this.selectedTab){t.setAttribute("aria-selected","false");t.tabIndex=-1;if(a){a.name=n}return}if(a){a.name=`${n}-filled`}t.setAttribute("aria-selected","true")}));this.selected.emit(this.selectedTab);if(this.selectedTab!==undefined){this.scrollToTab(this.tabs[this.selectedTab])}}handleTabClick(t){const i=t.target.closest("[role='tab']");if(!this.tabs.some((t=>t.contains(i)))){return}this.selectedTab=this.tabs.indexOf(i)}onTabFocusIn(t){const i=this.tabs.findIndex((i=>i.contains(t.target)));if(i===-1){return}if(this.selectedTab!==undefined){this.tabs[this.selectedTab].tabIndex=-1}this.focusedTab=i;this.tabs[this.focusedTab].tabIndex=-1;this.scrollToTab(this.tabs[this.focusedTab])}navigateThroughTabs(t){if(!this.tabs.some((i=>i.contains(t.target)))||!this.isArrowNavigation(t)){return true}t.preventDefault();if(t.key===r.RIGHT&&this.orientation==o.HORIZONTAL||t.key===r.DOWN&&this.orientation==o.VERTICAL){this.focusedTab++;if(this.focusedTab>=this.tabs.length){this.focusedTab=0}}else if(t.key===r.LEFT&&this.orientation==o.HORIZONTAL||t.key===r.UP&&this.orientation==o.VERTICAL){this.focusedTab--;if(this.focusedTab<0){this.focusedTab=this.tabs.length-1}}if(this.tabs[this.focusedTab].hasAttribute("disabled")&&this.tabs[this.focusedTab].getAttribute("disabled")!=="false"){return this.navigateThroughTabs(t)}this.tabs[this.focusedTab].focus();this.scrollToTab(this.tabs[this.focusedTab])}onTabFocusOut(t){var i;if(!this.tabs.some((i=>i.contains(t.relatedTarget)))){this.tabs[(i=this.selectedTab)!==null&&i!==void 0?i:0].tabIndex=0;this.focusedTab=undefined}}connectedCallback(){this.resizeObserver=new ResizeObserver((()=>this.checkScrollVisible()))}componentDidLoad(){var t;this.tabs.forEach((t=>{t.setAttribute("role","tab");t.tabIndex=-1}));const i=(t=this.selectedTab)!==null&&t!==void 0?t:this.tabs.findIndex((t=>t.ariaSelected==="true"));if(i!==-1){this.selectedTab=i;this.tabs[i].tabIndex=0;this.onTabSelected()}else{this.tabs[0].tabIndex=0}this.resizeObserver.observe(this.nav)}disconnectedCallback(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()}render(){return a(n,{key:"4077ef000c364e2356716f630a114ef12f87503c",class:{"interactive-2":this.size===s.SMALL,"interactive-1":this.size!==s.SMALL},scrollable:this.canNavigate},a("button",{key:"836020e039138b16064efce71faf41ef4c22e644",class:"navigation-button",onClick:this.navigateBackwards.bind(this),tabIndex:-1,disabled:!this.canNavigatePrev,"aria-label":"Mostra elementi precedenti",hidden:!this.canNavigate},a("z-icon",{key:"d29f82ac396250b0533d964d72716811ae05ae05",name:this.orientation===o.HORIZONTAL?"chevron-left":"chevron-up",width:16,height:16})),a("nav",{key:"735a409ad889a701a4a37b3c30d9de445522215d",role:"tablist","aria-label":this.ariaLabel,ref:t=>this.nav=t!==null&&t!==void 0?t:this.nav,onScroll:this.checkScrollEnabled.bind(this),"aria-orientation":this.orientation},a("slot",{key:"f2208fd694382c9c0472c7a1ed57e130dc9238b9"})),a("button",{key:"f89b222d39aaff6448a5a42a96f62d7899cb02ce",class:"navigation-button",onClick:this.navigateForward.bind(this),tabIndex:-1,disabled:!this.canNavigateNext,"aria-label":"Mostra elementi successivi",hidden:!this.canNavigate},a("z-icon",{key:"3ec84b37d472f4d5848b0ce4be1f95883553cebe",name:this.orientation===o.HORIZONTAL?"chevron-right":"chevron-down",width:16,height:16})))}get host(){return e(this)}static get watchers(){return{canNavigate:["checkScrollEnabled"],selectedTab:["onTabSelected"]}}};c.style=h;export{c as z_navigation_tabs};
2
- //# sourceMappingURL=p-17259f80.entry.js.map
1
+ import{r as t,c as i,h as a,a as n,g as e}from"./p-75c4a726.js";import{N as o,a as s,b as r}from"./p-17af7fb2.js";const l='z-navigation-tabs{position:relative;z-index:0;display:flex;overflow:hidden;flex-direction:row;font-family:var(--font-family-sans);font-weight:var(--font-rg)}z-navigation-tabs,z-navigation-tabs *{box-sizing:border-box}z-navigation-tabs>nav::-webkit-scrollbar{display:none}z-navigation-tabs .navigation-button{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--z-navigation-tabs-nav-buttons-bg, var(--color-surface01));border-radius:var(--border-no-radius);box-shadow:0 0 4px 1px var(--shadow-color-base);cursor:pointer;fill:var(--z-navigation-tabs-nav-buttons-fg, var(--color-primary01));outline:none}z-navigation-tabs .navigation-button:disabled{display:none}z-navigation-tabs>nav{z-index:0;display:flex;overflow:auto;align-items:center;justify-content:flex-start;scroll-behavior:smooth;scrollbar-width:none}z-navigation-tabs[orientation="horizontal"]>nav{width:100%}z-navigation-tabs[orientation="horizontal"] .navigation-button{top:0;width:calc(var(--space-unit) * 4);height:100%}z-navigation-tabs[orientation="horizontal"] .navigation-button:first-child{left:0}z-navigation-tabs[orientation="horizontal"] .navigation-button:last-child{right:0}z-navigation-tabs[orientation="vertical"]{width:fit-content;flex-direction:column}z-navigation-tabs[orientation="vertical"]>nav{height:100%;flex-direction:column;align-items:stretch}z-navigation-tabs[orientation="vertical"] .navigation-button{left:0;width:100%;height:calc(var(--space-unit) * 4)}z-navigation-tabs[orientation="vertical"] .navigation-button:first-child{top:0}z-navigation-tabs[orientation="vertical"] .navigation-button:last-child{bottom:0}z-navigation-tabs[size="small"][orientation="vertical"] .navigation-button{height:calc(var(--space-unit) * 4)}z-navigation-tabs>nav>*{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;gap:var(--space-unit);letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tabs>nav>a{text-decoration:none}z-navigation-tabs>nav>*:focus:focus-visible{z-index:1;box-shadow:inset 0 0 2px 2px var(--shadow-color-base)}z-navigation-tabs>nav>:not([disabled]):hover{background-color:var(--color-background)}z-navigation-tabs>nav>button[disabled]{color:var(--color-disabled03);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tabs>nav>:not([disabled]):hover,nav>[aria-selected="true"]{color:var(--color-hover-primary);fill:currentcolor}z-navigation-tabs>nav>:not([disabled]):hover::after,nav>[aria-selected="true"]::after{position:absolute;background-color:var(--color-hover-primary);content:""}z-navigation-tabs[orientation="horizontal"]>nav>:not([disabled]):hover::after,z-navigation-tabs[orientation="horizontal"]>nav>[aria-selected="true"]::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tabs>nav>* z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tabs[size="small"][orientation="horizontal"]>nav>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tabs[size="small"][orientation="horizontal"]>nav>:not([disabled]):hover::after,z-navigation-tabs[size="small"][orientation="horizontal"]>nav>[aria-selected="true"]::after{height:var(--border-size-medium)}z-navigation-tabs[size="small"]:not([orientation="vertical"])>nav>* z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tabs[orientation="vertical"]>nav>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tabs[orientation="vertical"]>nav>*>:not(z-icon){display:none}z-navigation-tabs[orientation="vertical"]>nav>:not([disabled]):hover::after,z-navigation-tabs[orientation="vertical"]>nav>[aria-selected="true"]::after{top:0;right:0;width:var(--border-size-large);height:100%}';const h=l;const c=class{constructor(a){t(this,a);this.selected=i(this,"selected",7);this.focusedTab=undefined;this.ariaLabel="";this.orientation=o.HORIZONTAL;this.size=s.BIG;this.selectedTab=undefined;this.canNavigate=undefined;this.canNavigatePrev=undefined;this.canNavigateNext=undefined}get direction(){return this.orientation==o.HORIZONTAL?"Left":"Top"}get dimension(){return this.orientation==o.HORIZONTAL?"Width":"Height"}get tabs(){return Array.from(this.nav.children)}scrollToTab(t){const i=t.parentElement;if(!i){return}setTimeout((()=>{const a=this.orientation===o.HORIZONTAL;const n=i.getBoundingClientRect();const e=t.getBoundingClientRect();const s=a?e.left-n.left:e.top-n.top;const r=a?i.clientWidth:i.clientHeight;const l=a?t.clientWidth:t.clientHeight;const h=s-r/2+l/2;i.scrollTo({[a?"left":"top"]:i[a?"scrollLeft":"scrollTop"]+h,behavior:"smooth"})}),100)}navigateBackwards(){this.nav.scrollBy({[this.direction.toLowerCase()]:0-this.nav[`client${this.dimension}`]/2,behavior:"smooth"})}navigateForward(){this.nav.scrollBy({[this.direction.toLowerCase()]:this.nav[`scroll${this.direction}`]+this.nav[`client${this.dimension}`]/2,behavior:"smooth"})}isArrowNavigation(t){return Object.values(r).includes(t.key)}checkScrollVisible(){if(!this.nav){return}this.canNavigate=this.nav[`scroll${this.dimension}`]>this.nav[`client${this.dimension}`]}checkScrollEnabled(){if(!this.nav){return}this.canNavigateNext=this.nav[`scroll${this.direction}`]+this.nav[`client${this.dimension}`]<this.nav[`scroll${this.dimension}`];this.canNavigatePrev=this.nav[`scroll${this.direction}`]>0}onTabSelected(){this.tabs.forEach(((t,i)=>{const a=t.querySelector("z-icon");const n=a===null||a===void 0?void 0:a.name.replace("-filled","");if(i!==this.selectedTab){t.setAttribute("aria-selected","false");t.tabIndex=-1;if(a){a.name=n}return}if(a){a.name=`${n}-filled`}t.setAttribute("aria-selected","true")}));this.selected.emit(this.selectedTab);if(this.selectedTab!==undefined){this.scrollToTab(this.tabs[this.selectedTab])}}handleTabClick(t){const i=t.target.closest("[role='tab']");if(!this.tabs.some((t=>t.contains(i)))){return}this.selectedTab=this.tabs.indexOf(i)}onTabFocusIn(t){const i=this.tabs.findIndex((i=>i.contains(t.target)));if(i===-1){return}if(this.selectedTab!==undefined){this.tabs[this.selectedTab].tabIndex=-1}this.focusedTab=i;this.tabs[this.focusedTab].tabIndex=-1;this.scrollToTab(this.tabs[this.focusedTab])}navigateThroughTabs(t){if(!this.tabs.some((i=>i.contains(t.target)))||!this.isArrowNavigation(t)){return true}t.preventDefault();if(t.key===r.RIGHT&&this.orientation==o.HORIZONTAL||t.key===r.DOWN&&this.orientation==o.VERTICAL){this.focusedTab++;if(this.focusedTab>=this.tabs.length){this.focusedTab=0}}else if(t.key===r.LEFT&&this.orientation==o.HORIZONTAL||t.key===r.UP&&this.orientation==o.VERTICAL){this.focusedTab--;if(this.focusedTab<0){this.focusedTab=this.tabs.length-1}}if(this.tabs[this.focusedTab].hasAttribute("disabled")&&this.tabs[this.focusedTab].getAttribute("disabled")!=="false"){return this.navigateThroughTabs(t)}this.tabs[this.focusedTab].focus();this.scrollToTab(this.tabs[this.focusedTab])}onTabFocusOut(t){var i;if(!this.tabs.some((i=>i.contains(t.relatedTarget)))){this.tabs[(i=this.selectedTab)!==null&&i!==void 0?i:0].tabIndex=0;this.focusedTab=undefined}}connectedCallback(){this.resizeObserver=new ResizeObserver((()=>this.checkScrollVisible()))}componentDidLoad(){var t;this.tabs.forEach((t=>{t.setAttribute("role","tab");t.tabIndex=-1}));const i=(t=this.selectedTab)!==null&&t!==void 0?t:this.tabs.findIndex((t=>t.ariaSelected==="true"));if(i!==-1){this.selectedTab=i;this.tabs[i].tabIndex=0;this.onTabSelected()}else{this.tabs[0].tabIndex=0}this.resizeObserver.observe(this.nav)}disconnectedCallback(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()}render(){return a(n,{key:"69bc5562051734e576c1dbb2af850ef01a70a693",class:{"interactive-2":this.size===s.SMALL,"interactive-1":this.size!==s.SMALL},scrollable:this.canNavigate},a("button",{key:"c851af9053873ea70d1dee5216bb680deea111f0",class:"navigation-button",onClick:this.navigateBackwards.bind(this),tabIndex:-1,disabled:!this.canNavigatePrev,"aria-label":"Mostra elementi precedenti",hidden:!this.canNavigate},a("z-icon",{key:"6a69b89400fea7a87fd18d8d59e183b85aa0c87f",name:this.orientation===o.HORIZONTAL?"chevron-left":"chevron-up",width:16,height:16})),a("nav",{key:"997e215eecc0454b96e0034fece50be22cb1eef0",role:"tablist","aria-label":this.ariaLabel,ref:t=>this.nav=t!==null&&t!==void 0?t:this.nav,onScroll:this.checkScrollEnabled.bind(this),"aria-orientation":this.orientation},a("slot",{key:"8a214ee36e66badda0a8825fbe7c2268ff0fc6df"})),a("button",{key:"627501af784136a1eff68c0e002812144062128e",class:"navigation-button",onClick:this.navigateForward.bind(this),tabIndex:-1,disabled:!this.canNavigateNext,"aria-label":"Mostra elementi successivi",hidden:!this.canNavigate},a("z-icon",{key:"68728de5a048363fd186c4a26cc8872fd4b0253e",name:this.orientation===o.HORIZONTAL?"chevron-right":"chevron-down",width:16,height:16})))}get host(){return e(this)}static get watchers(){return{canNavigate:["checkScrollEnabled"],selectedTab:["onTabSelected"]}}};c.style=h;export{c as z_navigation_tabs};
2
+ //# sourceMappingURL=p-01f941c2.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as e,c as t,h as s,g as i}from"./p-75c4a726.js";import{e as l,g as c,l as r,i as n}from"./p-17af7fb2.js";import{r as o,b as a,e as h,f as d}from"./p-625e2cee.js";import"./p-5145a606.js";const z='.sc-z-select-h{display:inline-block;width:inherit;color:var(--color-form-default-text);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg)}[size="small"].sc-z-select-h,[size="x-small"].sc-z-select-h{font-size:var(--font-size-2)}.select-wrapper.sc-z-select>z-input.sc-z-select{width:100%}.select-wrapper.sc-z-select>z-input.sc-z-select .input-icon.sc-z-select{cursor:pointer}.select-wrapper.sc-z-select>div.sc-z-select{position:relative}.select-wrapper.sc-z-select>div.closed.sc-z-select{overflow:hidden;height:0}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select{position:absolute;width:100%;box-sizing:border-box;border-top:none;background:var(--color-form-background);box-shadow:var(--shadow-2);outline:none}.select-wrapper.sc-z-select .closed.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:10}.select-wrapper.sc-z-select .open.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:20}.select-wrapper.sc-z-select .ul-scroll-wrapper.fixed.sc-z-select{position:static}.select-wrapper.sc-z-select z-list.sc-z-select{--background-color-list-element:var(--color-form-background);--background-hover-color-list-element:var(--color-surface02);--background-active-color-list-element:var(--color-surface02)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select{position:relative;overflow:auto;max-height:240px;padding:var(--space-unit) calc(var(--space-unit) * 1.5);margin:calc(var(--space-unit) * -1) 0;margin:0;outline:none}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element[disabled].sc-z-select{color:var(--color-form-disabled03)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-container.sc-z-select{display:flex;align-items:center;padding:calc(var(--space-unit) / 2) var(--space-unit);column-gap:var(--space-unit)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-container.sc-z-select .list-element-content.sc-z-select{margin-right:auto}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-container.sc-z-select>z-icon.sc-z-select+.list-element-content.sc-z-select{padding:calc(var(--space-unit) * 0.5) var(--space-unit)}[size="x-small"].sc-z-select-h .select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-container.sc-z-select .list-element-content.sc-z-select{padding:0}[size="small"].sc-z-select-h .select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-container.sc-z-select>z-icon.sc-z-select{--z-icon-width:16px;--z-icon-height:16px}[size="x-small"].sc-z-select-h .select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-container.sc-z-select>z-icon.sc-z-select{--z-icon-width:14px;--z-icon-height:14px}[size="x-small"].sc-z-select-h .select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-container.sc-z-select>z-icon.sc-z-select+.list-element-content.sc-z-select{padding:0 var(--space-unit)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-container.sc-z-select .list-element-content.selected.sc-z-select{font-weight:var(--font-sb)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select .no-results.sc-z-select z-icon.sc-z-select{margin-right:var(--space-unit)}.z-list-group-title.sc-z-select{color:var(--color-form-default-text)}.reset-item.sc-z-select{color:var(--color-form-active-primary);fill:var(--color-form-active-primary)}.reset-item-content.sc-z-select{display:flex;align-items:center}.reset-item.reset-item-margin.sc-z-select .reset-item-content.sc-z-select{margin-left:var(--space-unit)}.reset-item.sc-z-select .reset-item-content.sc-z-select>z-icon.sc-z-select{margin-right:var(--space-unit)}.reset-item.hide.sc-z-select{display:none}.tree-list-reset-item.sc-z-select{padding:var(--space-unit) 0}z-list-element.sc-z-select{position:relative;display:block}z-list.sc-z-select z-list-element.sc-z-select::before{position:absolute;z-index:100;top:3px;left:-8px;width:8px;height:1em;border-bottom:1px solid var(--color-form-disabled01-icon);border-left:1px solid var(--color-form-disabled01-icon);content:"";cursor:pointer}z-list.sc-z-select z-list-element.sc-z-select::after{position:absolute;z-index:100;top:5px;left:-8px;width:8px;height:100%;border-left:1px solid var(--color-form-disabled01-icon);content:"";cursor:pointer}z-list.sc-z-select z-list-element.sc-z-select:last-child::after{display:none}z-list.sc-z-select>z-list-element.sc-z-select::before,z-list.sc-z-select>z-list-element.sc-z-select::after,z-list.sc-z-select>z-list-group.sc-z-select>z-list-element.sc-z-select::before,z-list.sc-z-select>z-list-group.sc-z-select>z-list-element.sc-z-select::after{display:none}z-list.sc-z-select>div.children-node.sc-z-select{padding-left:calc(var(--space-unit) * 2)}z-list-element.sc-z-select>.list-element.sc-z-select{display:flex;justify-content:space-between;padding:calc(var(--space-unit) * 1.5) var(--space-unit);cursor:pointer}z-list-element.sc-z-select>.list-element.sc-z-select:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}z-list-element.sc-z-select>.list-element.sc-z-select:hover,z-list-element.sc-z-select>.list-element.sc-z-select:hover::after{background-color:var(--background-hover-color-list-element, var(--color-background))}z-list-element.sc-z-select>.list-element.sc-z-select .item.ellipsis.sc-z-select{overflow:hidden}z-list-element.sc-z-select .list-element.sc-z-select::after{position:absolute;top:0;right:-1px;display:block;width:100%;height:45px;content:"";transform:translateX(-100%)}z-list-element.tree-search-item.sc-z-select{padding-top:0}z-list-element.tree-search-item.sc-z-select .list-element.sc-z-select::after{position:absolute;right:-25px;display:block;width:100%;height:45px;content:"";transform:translateX(-100%)}z-list-element.grouped-tree-parent-node.sc-z-select .list-element.sc-z-select::after{position:absolute;right:-25px;display:block;width:100%;height:45px;content:"";transform:translateX(-100%)}.item-label.selected.sc-z-select{font-weight:bold}.item.ellipsis.sc-z-select{display:inline-block;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}z-list.sc-z-select>z-list-element.grouped-tree-parent-node.sc-z-select>.list-element.sc-z-select:hover::after,z-list-element.tree-search-item.sc-z-select .list-element.sc-z-select:hover::after,z-list.sc-z-select>z-list-group.sc-z-select>z-list-element.grouped-tree-parent-node.sc-z-select>.list-element.sc-z-select:hover::after{position:absolute;z-index:-1;right:-18px;display:block;width:100%;height:45px;content:"";transform:translateX(-100%)}z-list-element.sc-z-select>.list-element.sc-z-select:hover::after{position:absolute;z-index:-1;top:0;right:0;display:block;width:100%;height:45px;content:"";transform:translateX(-100%)}.children-node.sc-z-select z-list-element.sc-z-select::before,.children-node.sc-z-select z-list-element.sc-z-select::after{left:-8px}.children-node.sc-z-select .children-node.sc-z-select z-list-element.sc-z-select::before,.children-node.sc-z-select .children-node.sc-z-select z-list-element.sc-z-select::after{left:-8px}.children-node.sc-z-select>z-list-element.sc-z-select{padding:0}';const p=z;const u=class{constructor(s){e(this,s);this.optionSelect=t(this,"optionSelect",7);this.resetSelect=t(this,"resetSelect",7);this.itemsList=[];this.itemIdKeyMap={};this.resetKey=-1;this.htmlid=`id-${o()}`;this.items=undefined;this.name=undefined;this.label=undefined;this.ariaLabel="";this.disabled=false;this.readonly=false;this.placeholder=undefined;this.htmltitle=undefined;this.status=undefined;this.message=true;this.autocomplete=false;this.noresultslabel="Nessun risultato";this.hasGroupItems=undefined;this.hasTreeItems=undefined;this.showChildrenOfMatchingParent=undefined;this.isfixed=false;this.resetItem=undefined;this.size=l.BIG;this.isOpen=false;this.selectedItem=null;this.focusedItemId=undefined;this.searchString=undefined;this.flattenedList=[];this.toggleSelectUl=this.toggleSelectUl.bind(this);this.handleSelectFocus=this.handleSelectFocus.bind(this)}watchItems(){this.itemsList=this.getInitialItemsArray();this.selectedItem=this.findSelectedItem(this.itemsList)}getFocusedItemHandler(e){this.focusedItemId=e.target.id}async getSelectedItem(){return this.selectedItem}async getValue(){return this.getSelectedValue()}async setValue(e){let t=[];if(typeof e==="string"){t.push(e)}else{t=e}this.itemsList=this.getInitialItemsArray();if(t.length){this.updateSelection(this.itemsList,t[0])}this.selectedItem=this.findSelectedItem(this.itemsList)}emitOptionSelect(){this.optionSelect.emit({id:this.htmlid,selected:this.getSelectedValue()})}emitResetSelect(){this.resetSelect.emit({id:this.htmlid})}componentWillLoad(){this.watchItems()}componentWillRender(){this.filterItems(this.searchString);this.updateFlattenedList()}getInitialItemsArray(){return typeof this.items==="string"?JSON.parse(this.items):this.items}mapSelectedItemToItemsArray(){const e=this.getInitialItemsArray();return e.map((e=>{var t;e.selected=e.id===((t=this.selectedItem)===null||t===void 0?void 0:t.id);return e}))}getSelectedValue(){var e;return(e=this.selectedItem)===null||e===void 0?void 0:e.id}getGroupedItems(){return Object.entries(this.itemsList.reduce(((e,t)=>{const s=t.category||"Altra categoria";e[s]=e[s]||[];e[s].push(t);return e}),{}))}updateFlattenedList(){let e=this.itemsList;if(this.hasGroupItems){e=this.getGroupedItems().map((e=>e[1])).flat()}this.flattenedList=this.flattenTreeItems(e);this.itemIdKeyMap={};this.flattenedList.forEach((({item:e,key:t})=>{this.itemIdKeyMap[e.id]=t}))}filterItems(e){const t=this.mapSelectedItemToItemsArray();if(!(e===null||e===void 0?void 0:e.length)){this.itemsList=t;return}if(this.hasTreeItems){this.itemsList=this.filterTree(t,e,false)}else{this.itemsList=t.filter((t=>t.name.toUpperCase().includes(e.toUpperCase()))).map((t=>{t.name=this.getHighlightedText(t.name,e);return t}))}}filterTree(e,t,s){if(!e){return[]}return e.map((e=>{const i=e.name.toUpperCase().includes(t.toUpperCase());const l=Object.assign({},e);if(l.children&&l.children.length>0){l.children=this.filterTree(l.children,t,i)}if(i){l.name=this.getHighlightedText(l.name,t)}if(i||l.children&&l.children.length>0||this.showChildrenOfMatchingParent&&s){return l}return null})).filter((e=>e!==null))}getHighlightedText(e,t){const s=e.toUpperCase();const i=t.toUpperCase();const l=s.indexOf(i);if(l===-1){return e}const c=l+t.length;return e.substring(0,l)+`<strong>${e.substring(l,c)}</strong>`+e.substring(c)}hasAutocomplete(){return a(this.autocomplete)===true}handleInputChange(e){this.searchString=e.detail.value;if(!this.isOpen){this.toggleSelectUl()}}updateSelection(e,t){if(e){e.forEach((e=>{e.selected=e.id===t;if(e.children&&e.children.length>0){this.updateSelection(e.children,t)}}))}}findSelectedItem(e){if(e){for(const t of e){if(t.selected){return t}if(t.children&&t.children.length>0){const e=this.findSelectedItem(t.children);if(e){return e}}}}return null}selectItem(e){if(e===null||e===void 0?void 0:e.disabled){return}this.itemsList=this.getInitialItemsArray();if(e){this.updateSelection(this.itemsList,e.id)}this.selectedItem=this.findSelectedItem(this.itemsList);this.emitOptionSelect();this.toggleSelectUl();if(this.searchString){this.searchString=null}}flattenTreeItems(e){const t=[];let s=0;const i=e=>{e.forEach((e=>{t.push({item:e,key:s++});if(e.children&&e.children.length>0){i(e.children)}}))};if(e){i(e)}return t}arrowsSelectNav(e,t){const s=this.resetItem&&!!this.selectedItem;const i=[c.ARROW_DOWN,c.ARROW_UP];if(!i.includes(e.key)){return}e.preventDefault();e.stopPropagation();const l=[...this.flattenedList].filter((e=>!e.item.disabled));if(this.resetItem&&s){l.unshift({item:{id:"__RESET_ITEM__"},key:this.resetKey})}let r;if(typeof t==="number"){r=l.findIndex((e=>e.key===t))}else{const e=this.itemIdKeyMap[t];r=l.findIndex((t=>t.key===e))}if(!this.isOpen){this.toggleSelectUl();if(r===-1){r=-1}}const n=l.length-1;let o=r;if(e.key===c.ARROW_DOWN){do{o=o===n?0:o+1}while(l[o].item.disabled)}else{do{o=o<=0?n:o-1}while(l[o].item.disabled)}this.focusSelectItem(l[o].key)}focusSelectItem(e){var t;(t=this.host.querySelector(`#${this.htmlid}_key_${e}`))===null||t===void 0?void 0:t.focus()}toggleSelectUl(e=false){var t;if(this.disabled||this.readonly){return}if(!this.isOpen){document.addEventListener("click",this.handleSelectFocus);document.addEventListener("keyup",this.handleSelectFocus)}else{document.removeEventListener("click",this.handleSelectFocus);document.removeEventListener("keyup",this.handleSelectFocus);if(e){(t=this.host.querySelector(`#${this.htmlid}_input`))===null||t===void 0?void 0:t.focus()}if(this.selectedItem&&this.searchString){this.searchString=null;this.filterItems(this.searchString)}}this.focusedItemId="";this.isOpen=!this.isOpen}handleInputClick(e){if(e.target.closest(".reset-icon")){e.stopPropagation();return}this.toggleSelectUl()}handleSelectFocus(e){const t=d();if(t===null||t===void 0?void 0:t.hasAttribute("disabled")){return}if(e instanceof KeyboardEvent&&e.key===c.ESC){e.stopPropagation();return this.toggleSelectUl(true)}if(e instanceof KeyboardEvent&&(e.key===c.ENTER||e.key!==c.TAB)){return}if(!h(t).find((e=>e.nodeName.toLowerCase()==="z-input"&&e.id===`${this.htmlid}_input`))){this.toggleSelectUl(e instanceof MouseEvent)}}scrollToLetter(e){const t=this.itemsList.findIndex((t=>t.name.toLowerCase().charAt(0)===e.toLowerCase()));if(t>-1){this.focusSelectItem(this.itemIdKeyMap[this.itemsList[t].id])}}renderInput(){return s("z-input",{class:{"active-select":this.isOpen,"cursor-select":!this.autocomplete},id:`${this.htmlid}_input`,htmlid:`${this.htmlid}_select_input`,placeholder:this.placeholder,value:!this.isOpen&&this.selectedItem?this.selectedItem.name.replace(/<[^>]+>/g,""):null,label:this.label,autocomplete:"off","aria-label":this.ariaLabel,"html-aria-expanded":this.isOpen?"true":"false","html-aria-controls":`${this.htmlid}_list`,"html-aria-autocomplete":this.hasAutocomplete()?"list":"none","html-aria-activedescendant":this.isOpen?this.focusedItemId:"",icon:this.isOpen?"caret-up":"caret-down",hasclearicon:false,message:false,name:this.name,disabled:this.disabled,readonly:this.readonly||!this.hasAutocomplete()&&this.isOpen,status:this.isOpen?undefined:this.status,role:"combobox",size:this.size,onClick:e=>{this.handleInputClick(e)},onKeyUp:e=>{e.preventDefault();if(this.hasAutocomplete()){if(!this.isOpen){this.toggleSelectUl()}}},onKeyDown:e=>{const t=this.selectedItem?this.itemIdKeyMap[this.selectedItem.id]:this.resetItem?this.resetKey:"";return this.arrowsSelectNav(e,t)},onInputChange:e=>{this.handleInputChange(e)},onKeyPress:e=>{if(!this.hasAutocomplete()){e.preventDefault();this.scrollToLetter(e.key)}}})}renderSelectUl(){return s("div",{class:this.isOpen?"open":"closed"},s("div",{class:{"ul-scroll-wrapper":true,fixed:this.isfixed}},s("z-list",{role:"listbox","aria-label":this.ariaLabel||this.label,tabindex:this.disabled||this.readonly||!this.isOpen?-1:0,id:`${this.htmlid}_list`,"aria-multiselectable":false,size:this.listSizeType(),class:{disabled:this.disabled,readonly:this.readonly,[`input-${this.status}`]:!this.isOpen&&!!this.status,"z-scrollbar":true}},this.resetItem&&this.renderResetItem(),this.renderSelectUlItems())))}renderResetItem(){return s("z-list-element",{class:{hide:!this.selectedItem||!this.resetItem,"reset-item":true,"reset-item-margin":!this.hasGroupItems},clickable:true,disabled:false,dividerType:r.ELEMENT,role:"option",tabindex:"0","aria-selected":"false",id:`${this.htmlid}_key_${this.resetKey}`,size:this.hasTreeItems?n.MEDIUM:this.listSizeType(),onClickItem:()=>{this.selectedItem=null;this.searchString=null;this.emitResetSelect()},onKeyDown:e=>this.arrowsSelectNav(e,this.resetKey)},s("div",{class:{"reset-item-content":true,"tree-list-reset-item":this.hasTreeItems}},s("z-icon",{name:"multiply-circled"}),s("span",null,this.resetItem)))}renderItem(e,t){const i=this.itemIdKeyMap[e.id];return s("z-list-element",{clickable:!e.disabled,disabled:e.disabled,dividerType:t?r.HEADER:r.ELEMENT,role:"option",tabindex:e.disabled||!this.isOpen?-1:0,"aria-selected":e.selected?"true":"false",id:`${this.htmlid}_key_${i}`,size:this.listSizeType(),onClickItem:()=>this.selectItem(e),onKeyDown:e=>this.arrowsSelectNav(e,i)},s("div",{class:"list-element-container"},s("div",{class:{selected:!!e.selected,"list-element-content":true},innerHTML:e.name}),e.icon&&s("z-tag",{icon:e.icon})))}listSizeType(){if(this.hasTreeItems){return n.NONE}if(this.size===l.SMALL||this.size===l.X_SMALL){return n.SMALL}return n.MEDIUM}renderSelectUlItems(){if(!this.itemsList.length){return this.renderNoSearchResults()}if(this.hasGroupItems){if(this.hasTreeItems){return this.renderGroupedTree()}return this.renderSelectGroupItems()}return this.itemsList.map(((e,t,s)=>{const i=t===s.length-1;const l=s.length>1;if(this.hasTreeItems){return this.renderTreeItems(e,i,l,true)}return this.renderItem(e,i)}))}renderTreeItems(e,t,i,l){var n,o;const a=this.itemIdKeyMap[e.id];const h=this.hasGroupItems?undefined:this.hasGroupItems?t&&!i?r.ELEMENT:undefined:l&&i&&!t?r.ELEMENT:undefined;return s("z-list-element",{clickable:!e.disabled,disabled:e.disabled,class:{"grouped-tree-parent-node":this.hasGroupItems&&!!((n=e.children)===null||n===void 0?void 0:n.length),"tree-search-item":this.hasGroupItems&&l&&!((o=e.children)===null||o===void 0?void 0:o.length)&&!!this.searchString},size:this.listSizeType(),dividerType:h,hasTreeItems:this.hasTreeItems},s("div",{id:`${this.htmlid}_key_${a}`,role:"option",class:"list-element",tabIndex:!this.isOpen?-1:0,onClick:()=>this.selectItem(e),onKeyDown:t=>{this.arrowsSelectNav(t,a);if(t.key===c.ENTER){this.selectItem(e)}}},s("span",{class:"item ellipsis"},s("span",{class:{"item-label":true,selected:!!e.selected},title:e.name,innerHTML:e.selected?`<strong>${e.name}</strong>`:e.name})),e.icon&&s("z-tag",{icon:e.icon})),e.children&&e.children.length>0?s("z-list",null,s("div",{class:"children-node"},e.children.map(((e,t,s)=>this.renderTreeItems(e,t===s.length-1,s.length>1,false))))):null)}renderGroupedTree(){const e=this.getGroupedItems();return e.map((([t,i],l,c)=>{const n=Object.values(e).some((e=>e.length>1));return s("z-list-group",{"divider-type":l===c.length-1?undefined:r.ELEMENT,hasTreeItems:true},s("span",{class:"body-3-sb z-list-group-title",slot:"header-title"},t),s("z-list",null,i.map(((e,t,i)=>[this.renderTreeItems(e,t===i.length-1,n,true),t<i.length-1?s("z-divider",{key:`divider-${t}`,style:{zIndex:"100",height:"var(--border-size-small)"}}):null]))),l!==c.length-1&&s("z-divider",{style:{zIndex:"100",height:"var(--border-size-small)"}}))}))}renderSelectGroupItems(){const e=this.getGroupedItems();return e.map((([t,i],l)=>{const c=e.length===l+1;return s("z-list-group",{"divider-type":r.ELEMENT},s("span",{class:"body-3-sb z-list-group-title",slot:"header-title"},t),i.map(((e,t)=>{const s=i.length===t+1;return this.renderItem(e,c&&s)})))}))}renderNoSearchResults(){return s("z-list-element",{class:"no-results",size:this.hasTreeItems?n.MEDIUM:this.listSizeType()},this.noresultslabel)}renderMessage(){if(a(this.message)===false){return}return s("z-input-message",{message:a(this.message)===true?undefined:this.message,status:this.status,class:this.size,disabled:this.disabled})}render(){return s("div",{key:"77bc9e436df78a7609f78d7b263df95d0b897efb",class:"select-wrapper"},this.renderInput(),this.renderSelectUl(),this.renderMessage())}get host(){return i(this)}static get watchers(){return{items:["watchItems"]}}};u.style=p;export{u as z_select};
2
+ //# sourceMappingURL=p-0257ed6e.entry.js.map