@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
@@ -36,7 +36,7 @@ export class ZButtonSort {
36
36
  return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
37
37
  }
38
38
  render() {
39
- return (h("button", { key: '6dd4d7f96cf0c8f77f50350113a078ef90ab6a58', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, h("span", { key: '3307af9351e08954162418cef02cd5ec68d46703', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), h("span", { key: '9754930a0995c2107c57e52daa99085261a7179f', class: "counter" }, this.counter && ` (${this.counter})`), h("span", { key: 'f1b86456276efc6fe453b236f786ad60f51f90b0', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), h("z-icon", { key: 'a90a31db7a10fa68a6ffbfbace297f9204af661c', name: "caret-up-down", width: 16, height: 16 })));
39
+ return (h("button", { key: '551cd870041bc9d74949c55ddade45b607627b9c', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, h("span", { key: '04f900a2110709622e1417517ad8c0f56a9dd560', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), h("span", { key: 'b075fc8a9b9d61053755b7d2cf6216b88eca21e6', class: "counter" }, this.counter && ` (${this.counter})`), h("span", { key: 'f4a93840d7e1a8d66fdcb67d658fc9b919145302', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), h("z-icon", { key: '118fa5dea4d246c9c5ebfcd06f717a55ef64d39f', name: "caret-up-down", width: 16, height: 16 })));
40
40
  }
41
41
  static get is() { return "z-button-sort"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -9,11 +9,11 @@ export class ZChip {
9
9
  this.ariaLabel = "";
10
10
  }
11
11
  render() {
12
- return (h("div", { key: '16d991ea189e31748702a55ffcf879fdacb8f6ba', class: {
12
+ return (h("div", { key: 'b72d752e39024d30607e7a86bc9541ea2141e40c', class: {
13
13
  "z-chip-container": true,
14
14
  "z-chip-interactive": !!this.interactiveIcon,
15
15
  [this.type]: true,
16
- }, "aria-disabled": this.disabled }, this.icon && h("z-icon", { key: 'b828e61a0563401e4df70d59097a2c2435095cf8', name: this.icon }), h("slot", { key: 'bdb1b95e2889c32031d2598fe34dddeab2ef4dcd' }), this.interactiveIcon && (h("button", { key: '3e582772c08ecbb1e497394d9bfe8be178256407', type: "button", onClick: () => this.interactiveIconClick.emit(), "aria-label": this.ariaLabel, disabled: this.disabled }, h("z-icon", { key: '3ae442b49b846d3fadbf7547ba4574de5a2fd6fc', class: "interactive-icon", name: this.interactiveIcon })))));
16
+ }, "aria-disabled": this.disabled }, this.icon && h("z-icon", { key: 'ea88728b94745d8a72b78ffdbb09d24de10d56a5', name: this.icon }), h("slot", { key: '36bea3ad6017a06d4ed8a3592ce98f5799da7e79' }), this.interactiveIcon && (h("button", { key: '0321ec2ba1a499057022fa46f4c6d4e284d74ce4', type: "button", onClick: () => this.interactiveIconClick.emit(), "aria-label": this.ariaLabel, disabled: this.disabled }, h("z-icon", { key: 'dc32dda6bd49e897b4895b17069e0f031f622070', class: "interactive-icon", name: this.interactiveIcon })))));
17
17
  }
18
18
  static get is() { return "z-chip"; }
19
19
  static get encapsulation() { return "scoped"; }
@@ -251,7 +251,7 @@ export class ZCombobox {
251
251
  return (h("div", { class: "check-all-wrapper" }, h("z-input", { type: InputType.CHECKBOX, checked: allChecked, htmlid: checkAllId, class: this.getCheckboxClass(), label: allChecked ? this.uncheckalltext : this.checkalltext, disabled: this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length, size: this.size === ControlSize.X_SMALL ? ControlSize.SMALL : this.size, role: "option", "aria-selected": allChecked ? "true" : "false", onKeyDown: (e) => this.handleSelectArrowsNavigation(e, checkAllId), onInputCheck: (e) => this.checkAll(e.detail.checked), onInputFocus: (e) => this.handleCheckboxFocus(e.detail.id) })));
252
252
  }
253
253
  render() {
254
- return (h("div", { key: '18c772bca62207b17c7cbbcc062fa1c66c491400', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
254
+ return (h("div", { key: 'b2d1257ef74e2f39dd5b42fd9a4697bdd99d2556', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
255
255
  }
256
256
  static get is() { return "z-combobox"; }
257
257
  static get encapsulation() { return "shadow"; }
@@ -35,9 +35,9 @@ export class ZCoverHero {
35
35
  return (h("div", { class: "content-container" }, h("slot", { name: "content" })));
36
36
  }
37
37
  render() {
38
- return (h(Host, { key: 'dd18c647ee652e03ea710bb919a2a4a6f3694e9d' }, this.variant === CoverHeroVariant.STACKED &&
38
+ return (h(Host, { key: '1eb5d39f26e19f213d435c185167eb83500225f3' }, this.variant === CoverHeroVariant.STACKED &&
39
39
  this.contentPosition === CoverHeroContentPosition.TOP &&
40
- this.renderContent(), h("div", { key: 'eb454d7409f1bf2202040c5fa9e557c9ad1a5769', class: "main-container" }, h("div", { key: '4e9eb6d267e24e2a89fb32aca0435b38bf52edec', class: "cover-container" }, h("slot", { key: 'a3ddf369c24b0150205c76541f955f16411dd8d2', name: "cover" })), h("slot", { key: '3cae51391bfbf3b418c5f38791846062a4154fd4', name: "info-reveal" }), this.variant === CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === CoverHeroVariant.STACKED &&
40
+ this.renderContent(), h("div", { key: '61c495773839b7741f674719325fe98a65956986', class: "main-container" }, h("div", { key: '0ea2f83f40f60017fb2e7a4501cb67c34d954f6c', class: "cover-container" }, h("slot", { key: '68a40d93440b22ce2afb9ff8db3cb9ca90ec7263', name: "cover" })), h("slot", { key: 'c29feaf859382807e0e55bcf2db27a98387c2e96', name: "info-reveal" }), this.variant === CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === CoverHeroVariant.STACKED &&
41
41
  this.contentPosition === CoverHeroContentPosition.BOTTOM &&
42
42
  this.renderContent()));
43
43
  }
@@ -7,7 +7,7 @@ export class ZDivider {
7
7
  this.orientation = DividerOrientation.HORIZONTAL;
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: '03882533c43408c4cf85b07e3e961af896ff31c9', class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
10
+ return (h(Host, { key: '84826110c0a563d1b6f2654c540df49cdd0dfc7c', class: `divider-${this.size} divider-${this.orientation}`, style: { backgroundColor: `var(--${this.color})` } }));
11
11
  }
12
12
  static get is() { return "z-divider"; }
13
13
  static get encapsulation() { return "scoped"; }
@@ -1,7 +1,7 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  export class ZGhostLoading {
3
3
  render() {
4
- return h(Host, { key: 'f794f62d8361b2eb96d740cd0f331cebc9029011' });
4
+ return h(Host, { key: 'b91e3e3bce067ebad27d70f6c1d209e98f045a8e' });
5
5
  }
6
6
  static get is() { return "z-ghost-loading"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -11,7 +11,7 @@ export class ZInfoBox {
11
11
  this.infoBoxClose.emit({ boxid: this.boxid });
12
12
  }
13
13
  render() {
14
- return (h("div", { key: 'b59b64fcfc8444e64e9de14f154740fbbdb9713f', id: this.boxid }, h("slot", { key: 'd35d053be9906afba030c85dbb15357965569e9c', name: "content" }), this.isclosable && (h("z-icon", { key: 'd4e6d9c59c25419f944c62b57a53663dfab4f7ff', name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() }))));
14
+ return (h("div", { key: '18298328abf8d0e88340408882bdc529b55c1a28', id: this.boxid }, h("slot", { key: '297bb1bbd8e6adc082e3552ac2222983b1b11211', name: "content" }), this.isclosable && (h("z-icon", { key: 'fa3fa5831984754d4c8533d23437a4773bf926a6', name: "multiply", "data-action": "infoBoxClose", onClick: () => this.emitInfoBoxClose() }))));
15
15
  }
16
16
  static get is() { return "z-info-box"; }
17
17
  static get encapsulation() { return "shadow"; }
@@ -50,7 +50,7 @@ export class ZInfoReveal {
50
50
  }
51
51
  }
52
52
  render() {
53
- return (h(Host, { key: '56c05c5fae8da4a2260905997379c4606a25527f', open: this.open }, h("button", { key: 'f2b0f69b9e7f39e8b488e7af05c5833181a4b905', class: "z-info-reveal-trigger", type: "button", onClick: this.togglePanel.bind(this), "aria-label": !this.label ? this.ariaLabel : undefined, "aria-expanded": this.open ? "true" : "false", "aria-controls": "z-info-reveal-panel" }, this.icon && h("z-icon", { key: 'f26d18b089849931ca497f45d027b34933517f22', name: this.icon }), this.label && h("span", { key: '3f56e1db47e5da352b9ee94d81eadb0927a93a14', class: "z-info-reveal-label" }, this.label)), h("div", { key: 'addb88ebac5145798b0fb3ac324bd2c174997f72', class: "z-info-reveal-panel", id: "z-info-reveal-panel", ref: (el) => (this.panel = el), hidden: !this.open }, h("slot", { key: 'e296f4322cd7d4bf26e46290e8038aeca01c073e' }), h("button", { key: '529579c67957586b99ff35e83e14fd55186c4a04', class: "z-info-reveal-close", type: "button", onClick: this.closePanel.bind(this), "aria-label": "Chiudi pannello informazioni" }, h("z-icon", { key: 'dd5971ecab9a3b88933b03d9b7a46731de2dbeeb', name: "multiply" })))));
53
+ return (h(Host, { key: '250676e5bde8cb158ff19dd85c5b65aba329ab6d', open: this.open }, h("button", { key: 'ae9bd0a7a96c781ebc6e68f70b0553d9d08b8c4d', class: "z-info-reveal-trigger", type: "button", onClick: this.togglePanel.bind(this), "aria-label": !this.label ? this.ariaLabel : undefined, "aria-expanded": this.open ? "true" : "false", "aria-controls": "z-info-reveal-panel" }, this.icon && h("z-icon", { key: 'cda367464294fcdb6e87b7dd8804470fc600a196', name: this.icon }), this.label && h("span", { key: '33ee450958960b0eed18c6b630655c87d34d4b0f', class: "z-info-reveal-label" }, this.label)), h("div", { key: '717f241bbbd1034b8f7117d0875a859a27ecc3d0', class: "z-info-reveal-panel", id: "z-info-reveal-panel", ref: (el) => (this.panel = el), hidden: !this.open }, h("slot", { key: 'f44d74a6183fdda5560fe8ced2e07ef12748b4b9' }), h("button", { key: '5071effe3449b8fe0285c080a0d9cb14be2b033c', class: "z-info-reveal-close", type: "button", onClick: this.closePanel.bind(this), "aria-label": "Chiudi pannello informazioni" }, h("z-icon", { key: '9f3088b1e5398bea476ea2da203cb8e2e106ea89', name: "multiply" })))));
54
54
  }
55
55
  static get is() { return "z-info-reveal"; }
56
56
  static get encapsulation() { return "shadow"; }
@@ -10,10 +10,10 @@ export class ZInput {
10
10
  this.name = undefined;
11
11
  this.label = undefined;
12
12
  this.ariaLabel = "";
13
- this.ariaExpanded = "";
14
- this.ariaControls = undefined;
15
- this.ariaAutocomplete = undefined;
16
- this.ariaActivedescendant = undefined;
13
+ this.htmlAriaExpanded = "";
14
+ this.htmlAriaControls = undefined;
15
+ this.htmlAriaAutocomplete = undefined;
16
+ this.htmlAriaActivedescendant = undefined;
17
17
  this.value = undefined;
18
18
  this.disabled = false;
19
19
  this.readonly = false;
@@ -155,10 +155,12 @@ export class ZInput {
155
155
  return this.role ? { role: this.role } : {};
156
156
  }
157
157
  getAriaAttrubutes() {
158
- const expanded = this.ariaExpanded ? { "aria-expanded": this.ariaExpanded } : {};
159
- const controls = this.ariaControls ? { "aria-controls": this.ariaControls } : {};
160
- const autocomplete = this.ariaAutocomplete ? { "aria-autocomplete": this.ariaAutocomplete } : {};
161
- const activedescendant = this.ariaActivedescendant ? { "aria-activedescendant": this.ariaActivedescendant } : {};
158
+ const expanded = this.htmlAriaExpanded ? { "aria-expanded": this.htmlAriaExpanded } : {};
159
+ const controls = this.htmlAriaControls ? { "aria-controls": this.htmlAriaControls } : {};
160
+ const autocomplete = this.htmlAriaAutocomplete ? { "aria-autocomplete": this.htmlAriaAutocomplete } : {};
161
+ const activedescendant = this.htmlAriaActivedescendant
162
+ ? { "aria-activedescendant": this.htmlAriaActivedescendant }
163
+ : {};
162
164
  return Object.assign(Object.assign(Object.assign(Object.assign({}, expanded), controls), autocomplete), activedescendant);
163
165
  }
164
166
  getFocusBlurAttributes() {
@@ -259,7 +261,7 @@ export class ZInput {
259
261
  default:
260
262
  input = this.renderInputText(this.type);
261
263
  }
262
- return h(Host, { key: 'e08828cc7a88abce456ce3c898e37f994825118f' }, input);
264
+ return h(Host, { key: '659906d684e53987ffe6ca8f05d74abb98594367' }, input);
263
265
  }
264
266
  static get is() { return "z-input"; }
265
267
  static get encapsulation() { return "scoped"; }
@@ -368,7 +370,7 @@ export class ZInput {
368
370
  "reflect": false,
369
371
  "defaultValue": "\"\""
370
372
  },
371
- "ariaExpanded": {
373
+ "htmlAriaExpanded": {
372
374
  "type": "string",
373
375
  "mutable": false,
374
376
  "complexType": {
@@ -382,11 +384,11 @@ export class ZInput {
382
384
  "tags": [],
383
385
  "text": "the input aria-expaded: available for text, password, number, email"
384
386
  },
385
- "attribute": "aria-expanded",
387
+ "attribute": "html-aria-expanded",
386
388
  "reflect": false,
387
389
  "defaultValue": "\"\""
388
390
  },
389
- "ariaControls": {
391
+ "htmlAriaControls": {
390
392
  "type": "string",
391
393
  "mutable": false,
392
394
  "complexType": {
@@ -400,10 +402,10 @@ export class ZInput {
400
402
  "tags": [],
401
403
  "text": "the input aria-controls (optional): available for text, password, number, email"
402
404
  },
403
- "attribute": "aria-controls",
405
+ "attribute": "html-aria-controls",
404
406
  "reflect": false
405
407
  },
406
- "ariaAutocomplete": {
408
+ "htmlAriaAutocomplete": {
407
409
  "type": "string",
408
410
  "mutable": false,
409
411
  "complexType": {
@@ -417,10 +419,10 @@ export class ZInput {
417
419
  "tags": [],
418
420
  "text": "the input aria-autocomplete (optional): available for text, password, number, email"
419
421
  },
420
- "attribute": "aria-autocomplete",
422
+ "attribute": "html-aria-autocomplete",
421
423
  "reflect": false
422
424
  },
423
- "ariaActivedescendant": {
425
+ "htmlAriaActivedescendant": {
424
426
  "type": "string",
425
427
  "mutable": false,
426
428
  "complexType": {
@@ -434,7 +436,7 @@ export class ZInput {
434
436
  "tags": [],
435
437
  "text": "the input aria-activedescendant (optional): available for text, password, number, email"
436
438
  },
437
- "attribute": "aria-activedescendant",
439
+ "attribute": "html-aria-activedescendant",
438
440
  "reflect": false
439
441
  },
440
442
  "value": {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACtG,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAU,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAC,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAQpD,MAAM,OAAO,MAAM;;QAmIT,kBAAa,GAAG,GAAG,CAAC;sBA9HnB,MAAM,QAAQ,EAAE,EAAE;;;;yBAgBf,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;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, Event, EventEmitter, Listen, Method, Prop, State, h} from \"@stencil/core\";\nimport {Fragment, Host, JSXBase} from \"@stencil/core/internal\";\nimport {ControlSize, InputStatus, InputType, LabelPosition} from \"../../beans\";\nimport {boolean, randomId} from \"../../utils/utils\";\n\n@Component({\n tag: \"z-input\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZInput {\n @Element() hostElement: HTMLZInputElement;\n\n /** the id of the input element */\n @Prop()\n htmlid = `id-${randomId()}`;\n\n /** input types */\n @Prop()\n type: InputType;\n\n /** the input name */\n @Prop()\n name?: string;\n\n /** the input label */\n @Prop()\n label?: string;\n\n /** the input aria-label */\n @Prop()\n ariaLabel = \"\";\n\n /** the input aria-expaded: available for text, password, number, email */\n @Prop()\n ariaExpanded = \"\";\n\n /** the input aria-controls (optional): available for text, password, number, email */\n @Prop()\n ariaControls?: string;\n\n /** the input aria-autocomplete (optional): available for text, password, number, email */\n @Prop()\n ariaAutocomplete?: string;\n\n /** the input aria-activedescendant (optional): available for text, password, number, email */\n @Prop()\n ariaActivedescendant?: string;\n\n /** the input value */\n @Prop({mutable: true})\n value?: string;\n\n /** the input is disabled */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /** the input is readonly */\n @Prop()\n readonly?: boolean = false;\n\n /** the input is required (optional): available for text, password, number, email, textarea, checkbox */\n @Prop()\n required?: boolean = false;\n\n /** checked: available for checkbox, radio */\n @Prop({mutable: true})\n checked?: boolean = false;\n\n /** the input placeholder (optional) */\n @Prop()\n placeholder?: string;\n\n /** the input html title (optional) */\n @Prop()\n htmltitle?: string;\n\n /** the input status (optional): available for text, password, number, email, textarea */\n @Prop()\n status?: InputStatus;\n\n /** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */\n @Prop()\n message?: string | boolean = true;\n\n /** the input label position: available for checkbox, radio */\n @Prop()\n labelPosition?: LabelPosition = LabelPosition.RIGHT;\n\n /** the input has autocomplete option (optional): available for text, password, number, email */\n @Prop()\n autocomplete?: string;\n\n /** the input role */\n @Prop()\n role = \"\";\n\n /** render clear icon when typing (optional): available for text */\n @Prop()\n hasclearicon?: boolean = true;\n\n /** render icon (optional): available for text */\n @Prop()\n icon?: string;\n\n /** min number value (optional): available for number */\n @Prop()\n min?: number;\n\n /** Min length value (optional): available for text */\n @Prop()\n minlength?: number;\n\n /** max number value (optional): available for number */\n @Prop()\n max?: number;\n\n /** Max length value (optional): available for text */\n @Prop()\n maxlength?: number;\n\n /** step number value (optional): available for number */\n @Prop()\n step?: number;\n\n /** pattern value (optional): available for tel, text, search, url, email, password*/\n @Prop()\n pattern?: string;\n\n /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */\n @Prop({reflect: true})\n size?: ControlSize = ControlSize.BIG;\n\n @State()\n isTyping = false;\n\n @State()\n passwordHidden = true;\n\n private timer;\n\n private typingtimeout = 300;\n\n private inputRef: HTMLInputElement;\n\n @Listen(\"inputCheck\", {target: \"document\"})\n inputCheckListener(e: CustomEvent): void {\n const data = e.detail;\n switch (this.type) {\n case InputType.RADIO:\n if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {\n this.checked = false;\n }\n break;\n }\n }\n\n /** get checked status */\n @Method()\n async isChecked(): Promise<boolean> {\n switch (this.type) {\n case InputType.CHECKBOX:\n case InputType.RADIO:\n return this.checked;\n default:\n console.warn(\"`isChecked` method is only available for type `checkbox` and `radio`\");\n\n return false;\n }\n }\n\n /** Emitted on input value change, returns value, validity */\n @Event()\n inputChange: EventEmitter;\n\n private emitInputChange(value: string): void {\n if (!this.isTyping) {\n this.emitStartTyping();\n }\n\n let validity: ValidityState;\n if (this.type === InputType.TEXTAREA) {\n validity = this.getValidity(\"textarea\");\n } else {\n validity = this.getValidity(\"input\");\n }\n this.value = value;\n this.inputChange.emit({value, validity});\n\n clearTimeout(this.timer);\n this.timer = setTimeout(() => {\n this.emitStopTyping(this.value, validity);\n }, this.typingtimeout);\n }\n\n /** Emitted when user starts typing */\n @Event()\n startTyping: EventEmitter;\n\n private emitStartTyping(): void {\n this.isTyping = true;\n this.startTyping.emit();\n }\n\n /** Emitted when user stops typing, returns value, validity */\n @Event()\n stopTyping: EventEmitter;\n\n private emitStopTyping(value: string, validity: ValidityState): void {\n this.isTyping = false;\n this.stopTyping.emit({\n value: value,\n validity: validity,\n });\n }\n\n /** Emitted on checkbox check/uncheck, returns id, checked, type, name, value, validity */\n @Event()\n inputCheck: EventEmitter;\n\n private emitInputCheck(checked: boolean): void {\n this.inputCheck.emit({\n id: this.htmlid,\n checked: checked,\n type: this.type,\n name: this.name,\n value: this.value,\n validity: this.getValidity(\"input\"),\n });\n }\n\n /** Emitted on input focus */\n @Event()\n inputFocus: EventEmitter;\n\n private emitInputFocus(): void {\n this.inputFocus.emit({id: this.htmlid});\n }\n\n /** Emitted on input blur */\n @Event()\n inputBlur: EventEmitter;\n\n private emitInputBlur(): void {\n this.inputBlur.emit({id: this.htmlid});\n }\n\n private getValidity(type: string): ValidityState {\n const input = this.hostElement.querySelector(type) as HTMLInputElement;\n\n return input.validity;\n }\n\n /* START text/password/email/number */\n\n private getTextAttributes(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return {\n id: this.htmlid,\n name: this.name,\n placeholder: this.placeholder,\n value: this.value,\n disabled: this.disabled,\n readonly: this.readonly,\n required: this.required,\n title: this.htmltitle,\n minlength: this.minlength,\n maxlength: this.maxlength,\n class: {\n [`input-${this.status}`]: !!this.status,\n },\n autocomplete: this.autocomplete,\n onInput: (e: InputEvent) => this.emitInputChange((e.target as HTMLInputElement).value),\n };\n }\n\n private getNumberAttributes(type: InputType): JSXBase.InputHTMLAttributes<HTMLInputElement> {\n if (type != InputType.NUMBER) {\n return;\n }\n\n return {\n min: this.min,\n max: this.max,\n step: this.step,\n };\n }\n\n private getPatternAttribute(type: InputType): JSXBase.InputHTMLAttributes<HTMLInputElement> {\n if (\n type != InputType.PASSWORD &&\n type != InputType.TEXT &&\n type != InputType.TEL &&\n type != InputType.SEARCH &&\n type != InputType.URL &&\n type != InputType.EMAIL\n ) {\n return;\n }\n\n return {\n pattern: this.pattern,\n };\n }\n\n private getRoleAttribute(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return this.role ? {role: this.role} : {};\n }\n\n private getAriaAttrubutes(): Record<string, unknown> {\n const expanded = this.ariaExpanded ? {\"aria-expanded\": this.ariaExpanded} : {};\n const controls = this.ariaControls ? {\"aria-controls\": this.ariaControls} : {};\n const autocomplete = this.ariaAutocomplete ? {\"aria-autocomplete\": this.ariaAutocomplete} : {};\n const activedescendant = this.ariaActivedescendant ? {\"aria-activedescendant\": this.ariaActivedescendant} : {};\n\n return {\n ...expanded,\n ...controls,\n ...autocomplete,\n ...activedescendant,\n };\n }\n\n private getFocusBlurAttributes(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return {\n onFocus: () => this.emitInputFocus(),\n onBlur: () => this.emitInputBlur(),\n };\n }\n\n private renderInputText(type: InputType = InputType.TEXT): HTMLDivElement {\n const ariaLabel = this.ariaLabel ? {\"aria-label\": this.ariaLabel} : {};\n const attr = {\n ...this.getTextAttributes(),\n ...this.getNumberAttributes(type),\n ...this.getPatternAttribute(type),\n ...ariaLabel,\n ...this.getRoleAttribute(),\n ...this.getAriaAttrubutes(),\n ...this.getFocusBlurAttributes(),\n };\n if (this.icon || type === InputType.PASSWORD) {\n Object.assign(attr.class, {\"has-icon\": true});\n }\n if (this.hasclearicon && type != InputType.NUMBER) {\n Object.assign(attr.class, {\"has-clear-icon\": true});\n }\n\n return (\n <div class=\"text-wrapper\">\n {this.renderLabel()}\n <div>\n <input\n type={type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type}\n {...attr}\n ref={(el) => (this.inputRef = el)}\n />\n {this.renderIcons()}\n </div>\n {this.renderMessage()}\n </div>\n );\n }\n\n private renderLabel(): HTMLLabelElement {\n if (!this.label) {\n return;\n }\n\n return (\n <label\n class=\"z-label body-5-sb\"\n id={`${this.htmlid}_label`}\n htmlFor={this.htmlid}\n >\n {this.label}\n </label>\n );\n }\n\n private renderIcons(): HTMLSpanElement {\n return (\n <span class=\"icons-wrapper\">\n {this.renderResetIcon()}\n {this.renderIcon()}\n </span>\n );\n }\n\n private renderIcon(): HTMLButtonElement {\n if (this.type === InputType.PASSWORD) {\n return this.renderShowHidePassword();\n }\n\n if (!this.icon) {\n return;\n }\n\n return (\n <z-icon\n name={this.icon}\n class={{[this.size]: true, \"input-icon\": true}}\n />\n );\n }\n\n private renderResetIcon(): HTMLButtonElement {\n let hidden = false;\n if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {\n hidden = true;\n }\n\n return (\n <button\n type=\"button\"\n class={{\"reset-icon\": true, \"input-icon\": true, hidden}}\n aria-label=\"cancella il contenuto dell'input\"\n onClick={() => {\n this.inputRef.value = \"\";\n this.emitInputChange(\"\");\n }}\n >\n <z-icon\n name=\"multiply\"\n class={this.size}\n />\n </button>\n );\n }\n\n private renderShowHidePassword(): HTMLButtonElement {\n return (\n <button\n type=\"button\"\n class=\"input-icon toggle-password-icon\"\n disabled={this.disabled}\n aria-label={this.passwordHidden ? \"mostra password\" : \"nascondi password\"}\n onClick={() => (this.passwordHidden = !this.passwordHidden)}\n >\n <z-icon\n name={this.passwordHidden ? \"view-filled\" : \"view-off-filled\"}\n class={this.size}\n />\n </button>\n );\n }\n\n private renderMessage(): HTMLZInputMessageElement {\n if (boolean(this.message) === false) {\n return;\n }\n\n return (\n <z-input-message\n message={boolean(this.message) === true ? undefined : (this.message as string)}\n status={this.status}\n class={this.size}\n disabled={this.disabled}\n />\n );\n }\n\n /* END text/password/email/number */\n\n /* START textarea */\n\n private renderTextarea(): HTMLDivElement {\n const attributes = this.getTextAttributes();\n\n return (\n <Fragment>\n {this.renderLabel()}\n <div\n class={{\n ...(attributes.class as {[className: string]: boolean}),\n \"textarea-wrapper\": true,\n \"readonly\": !!attributes.readonly,\n }}\n >\n <textarea\n {...attributes}\n class={{\n ...(attributes.class as {[className: string]: boolean}),\n \"z-scrollbar\": true,\n }}\n aria-label={this.ariaLabel || undefined}\n {...this.getRoleAttribute()}\n ></textarea>\n </div>\n {this.renderMessage()}\n </Fragment>\n );\n }\n\n /* END textarea */\n\n private handleCheck(ev: Event): void {\n this.checked = (ev.target as HTMLInputElement).checked;\n this.emitInputCheck(this.checked);\n }\n\n /* START checkbox */\n private renderCheckbox(): HTMLDivElement {\n return (\n <div class=\"checkbox-wrapper\">\n <input\n id={this.htmlid}\n type=\"checkbox\"\n name={this.name}\n checked={this.checked}\n disabled={this.disabled}\n readonly={this.readonly}\n required={this.required}\n onChange={this.handleCheck.bind(this)}\n value={this.value}\n {...this.getRoleAttribute()}\n {...this.getFocusBlurAttributes()}\n />\n\n <label\n htmlFor={this.htmlid}\n class={{\n \"checkbox-label\": true,\n \"after\": this.labelPosition === LabelPosition.RIGHT,\n \"before\": this.labelPosition === LabelPosition.LEFT,\n }}\n >\n <z-icon\n name={this.checked ? \"checkbox-checked\" : \"checkbox\"}\n class={this.size}\n />\n {this.label && <span innerHTML={this.label}></span>}\n </label>\n </div>\n );\n }\n\n /* END checkbox */\n\n /* START radio */\n private renderRadio(): HTMLDivElement {\n return (\n <div class=\"radio-wrapper\">\n <input\n id={this.htmlid}\n type=\"radio\"\n name={this.name}\n checked={this.checked}\n disabled={this.disabled}\n readonly={this.readonly}\n onChange={this.handleCheck.bind(this)}\n value={this.value}\n {...this.getRoleAttribute()}\n {...this.getFocusBlurAttributes()}\n />\n\n <label\n htmlFor={this.htmlid}\n class={{\n \"radio-label\": true,\n \"after\": this.labelPosition === LabelPosition.RIGHT,\n \"before\": this.labelPosition === LabelPosition.LEFT,\n }}\n >\n <z-icon\n name={this.checked ? \"radio-button-checked\" : \"radio-button\"}\n class={this.size}\n />\n {this.label && <span innerHTML={this.label} />}\n </label>\n </div>\n );\n }\n /* END radio */\n\n render(): HTMLInputElement | HTMLDivElement {\n let input;\n switch (this.type) {\n case InputType.TEXTAREA:\n input = this.renderTextarea();\n break;\n case InputType.CHECKBOX:\n input = this.renderCheckbox();\n break;\n case InputType.RADIO:\n input = this.renderRadio();\n break;\n default:\n input = this.renderInputText(this.type);\n }\n\n return <Host>{input}</Host>;\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACtG,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAU,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAC,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAQpD,MAAM,OAAO,MAAM;;QAmIT,kBAAa,GAAG,GAAG,CAAC;sBA9HnB,MAAM,QAAQ,EAAE,EAAE;;;;yBAgBf,EAAE;gCAIK,EAAE;;;;;wBAoBA,KAAK;wBAIL,KAAK;wBAIL,KAAK;uBAIN,KAAK;;;;uBAgBI,IAAI;6BAID,aAAa,CAAC,KAAK;;oBAQ5C,EAAE;4BAIgB,IAAI;;;;;;;;oBAgCR,WAAW,CAAC,GAAG;wBAGzB,KAAK;8BAGC,IAAI;;IASrB,kBAAkB,CAAC,CAAc;QAC/B,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,SAAS,CAAC,KAAK;gBAClB,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,KAAK,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, Event, EventEmitter, Listen, Method, Prop, State, h} from \"@stencil/core\";\nimport {Fragment, Host, JSXBase} from \"@stencil/core/internal\";\nimport {ControlSize, InputStatus, InputType, LabelPosition} from \"../../beans\";\nimport {boolean, randomId} from \"../../utils/utils\";\n\n@Component({\n tag: \"z-input\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZInput {\n @Element() hostElement: HTMLZInputElement;\n\n /** the id of the input element */\n @Prop()\n htmlid = `id-${randomId()}`;\n\n /** input types */\n @Prop()\n type: InputType;\n\n /** the input name */\n @Prop()\n name?: string;\n\n /** the input label */\n @Prop()\n label?: string;\n\n /** the input aria-label */\n @Prop()\n ariaLabel = \"\";\n\n /** the input aria-expaded: available for text, password, number, email */\n @Prop()\n htmlAriaExpanded = \"\";\n\n /** the input aria-controls (optional): available for text, password, number, email */\n @Prop()\n htmlAriaControls?: string;\n\n /** the input aria-autocomplete (optional): available for text, password, number, email */\n @Prop()\n htmlAriaAutocomplete?: string;\n\n /** the input aria-activedescendant (optional): available for text, password, number, email */\n @Prop()\n htmlAriaActivedescendant?: string;\n\n /** the input value */\n @Prop({mutable: true})\n value?: string;\n\n /** the input is disabled */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /** the input is readonly */\n @Prop()\n readonly?: boolean = false;\n\n /** the input is required (optional): available for text, password, number, email, textarea, checkbox */\n @Prop()\n required?: boolean = false;\n\n /** checked: available for checkbox, radio */\n @Prop({mutable: true})\n checked?: boolean = false;\n\n /** the input placeholder (optional) */\n @Prop()\n placeholder?: string;\n\n /** the input html title (optional) */\n @Prop()\n htmltitle?: string;\n\n /** the input status (optional): available for text, password, number, email, textarea */\n @Prop()\n status?: InputStatus;\n\n /** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */\n @Prop()\n message?: string | boolean = true;\n\n /** the input label position: available for checkbox, radio */\n @Prop()\n labelPosition?: LabelPosition = LabelPosition.RIGHT;\n\n /** the input has autocomplete option (optional): available for text, password, number, email */\n @Prop()\n autocomplete?: string;\n\n /** the input role */\n @Prop()\n role = \"\";\n\n /** render clear icon when typing (optional): available for text */\n @Prop()\n hasclearicon?: boolean = true;\n\n /** render icon (optional): available for text */\n @Prop()\n icon?: string;\n\n /** min number value (optional): available for number */\n @Prop()\n min?: number;\n\n /** Min length value (optional): available for text */\n @Prop()\n minlength?: number;\n\n /** max number value (optional): available for number */\n @Prop()\n max?: number;\n\n /** Max length value (optional): available for text */\n @Prop()\n maxlength?: number;\n\n /** step number value (optional): available for number */\n @Prop()\n step?: number;\n\n /** pattern value (optional): available for tel, text, search, url, email, password*/\n @Prop()\n pattern?: string;\n\n /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */\n @Prop({reflect: true})\n size?: ControlSize = ControlSize.BIG;\n\n @State()\n isTyping = false;\n\n @State()\n passwordHidden = true;\n\n private timer;\n\n private typingtimeout = 300;\n\n private inputRef: HTMLInputElement;\n\n @Listen(\"inputCheck\", {target: \"document\"})\n inputCheckListener(e: CustomEvent): void {\n const data = e.detail;\n switch (this.type) {\n case InputType.RADIO:\n if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {\n this.checked = false;\n }\n break;\n }\n }\n\n /** get checked status */\n @Method()\n async isChecked(): Promise<boolean> {\n switch (this.type) {\n case InputType.CHECKBOX:\n case InputType.RADIO:\n return this.checked;\n default:\n console.warn(\"`isChecked` method is only available for type `checkbox` and `radio`\");\n\n return false;\n }\n }\n\n /** Emitted on input value change, returns value, validity */\n @Event()\n inputChange: EventEmitter;\n\n private emitInputChange(value: string): void {\n if (!this.isTyping) {\n this.emitStartTyping();\n }\n\n let validity: ValidityState;\n if (this.type === InputType.TEXTAREA) {\n validity = this.getValidity(\"textarea\");\n } else {\n validity = this.getValidity(\"input\");\n }\n this.value = value;\n this.inputChange.emit({value, validity});\n\n clearTimeout(this.timer);\n this.timer = setTimeout(() => {\n this.emitStopTyping(this.value, validity);\n }, this.typingtimeout);\n }\n\n /** Emitted when user starts typing */\n @Event()\n startTyping: EventEmitter;\n\n private emitStartTyping(): void {\n this.isTyping = true;\n this.startTyping.emit();\n }\n\n /** Emitted when user stops typing, returns value, validity */\n @Event()\n stopTyping: EventEmitter;\n\n private emitStopTyping(value: string, validity: ValidityState): void {\n this.isTyping = false;\n this.stopTyping.emit({\n value: value,\n validity: validity,\n });\n }\n\n /** Emitted on checkbox check/uncheck, returns id, checked, type, name, value, validity */\n @Event()\n inputCheck: EventEmitter;\n\n private emitInputCheck(checked: boolean): void {\n this.inputCheck.emit({\n id: this.htmlid,\n checked: checked,\n type: this.type,\n name: this.name,\n value: this.value,\n validity: this.getValidity(\"input\"),\n });\n }\n\n /** Emitted on input focus */\n @Event()\n inputFocus: EventEmitter;\n\n private emitInputFocus(): void {\n this.inputFocus.emit({id: this.htmlid});\n }\n\n /** Emitted on input blur */\n @Event()\n inputBlur: EventEmitter;\n\n private emitInputBlur(): void {\n this.inputBlur.emit({id: this.htmlid});\n }\n\n private getValidity(type: string): ValidityState {\n const input = this.hostElement.querySelector(type) as HTMLInputElement;\n\n return input.validity;\n }\n\n /* START text/password/email/number */\n\n private getTextAttributes(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return {\n id: this.htmlid,\n name: this.name,\n placeholder: this.placeholder,\n value: this.value,\n disabled: this.disabled,\n readonly: this.readonly,\n required: this.required,\n title: this.htmltitle,\n minlength: this.minlength,\n maxlength: this.maxlength,\n class: {\n [`input-${this.status}`]: !!this.status,\n },\n autocomplete: this.autocomplete,\n onInput: (e: InputEvent) => this.emitInputChange((e.target as HTMLInputElement).value),\n };\n }\n\n private getNumberAttributes(type: InputType): JSXBase.InputHTMLAttributes<HTMLInputElement> {\n if (type != InputType.NUMBER) {\n return;\n }\n\n return {\n min: this.min,\n max: this.max,\n step: this.step,\n };\n }\n\n private getPatternAttribute(type: InputType): JSXBase.InputHTMLAttributes<HTMLInputElement> {\n if (\n type != InputType.PASSWORD &&\n type != InputType.TEXT &&\n type != InputType.TEL &&\n type != InputType.SEARCH &&\n type != InputType.URL &&\n type != InputType.EMAIL\n ) {\n return;\n }\n\n return {\n pattern: this.pattern,\n };\n }\n\n private getRoleAttribute(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return this.role ? {role: this.role} : {};\n }\n\n private getAriaAttrubutes(): Record<string, unknown> {\n const expanded = this.htmlAriaExpanded ? {\"aria-expanded\": this.htmlAriaExpanded} : {};\n const controls = this.htmlAriaControls ? {\"aria-controls\": this.htmlAriaControls} : {};\n const autocomplete = this.htmlAriaAutocomplete ? {\"aria-autocomplete\": this.htmlAriaAutocomplete} : {};\n const activedescendant = this.htmlAriaActivedescendant\n ? {\"aria-activedescendant\": this.htmlAriaActivedescendant}\n : {};\n\n return {\n ...expanded,\n ...controls,\n ...autocomplete,\n ...activedescendant,\n };\n }\n\n private getFocusBlurAttributes(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return {\n onFocus: () => this.emitInputFocus(),\n onBlur: () => this.emitInputBlur(),\n };\n }\n\n private renderInputText(type: InputType = InputType.TEXT): HTMLDivElement {\n const ariaLabel = this.ariaLabel ? {\"aria-label\": this.ariaLabel} : {};\n const attr = {\n ...this.getTextAttributes(),\n ...this.getNumberAttributes(type),\n ...this.getPatternAttribute(type),\n ...ariaLabel,\n ...this.getRoleAttribute(),\n ...this.getAriaAttrubutes(),\n ...this.getFocusBlurAttributes(),\n };\n if (this.icon || type === InputType.PASSWORD) {\n Object.assign(attr.class, {\"has-icon\": true});\n }\n if (this.hasclearicon && type != InputType.NUMBER) {\n Object.assign(attr.class, {\"has-clear-icon\": true});\n }\n\n return (\n <div class=\"text-wrapper\">\n {this.renderLabel()}\n <div>\n <input\n type={type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type}\n {...attr}\n ref={(el) => (this.inputRef = el)}\n />\n {this.renderIcons()}\n </div>\n {this.renderMessage()}\n </div>\n );\n }\n\n private renderLabel(): HTMLLabelElement {\n if (!this.label) {\n return;\n }\n\n return (\n <label\n class=\"z-label body-5-sb\"\n id={`${this.htmlid}_label`}\n htmlFor={this.htmlid}\n >\n {this.label}\n </label>\n );\n }\n\n private renderIcons(): HTMLSpanElement {\n return (\n <span class=\"icons-wrapper\">\n {this.renderResetIcon()}\n {this.renderIcon()}\n </span>\n );\n }\n\n private renderIcon(): HTMLButtonElement {\n if (this.type === InputType.PASSWORD) {\n return this.renderShowHidePassword();\n }\n\n if (!this.icon) {\n return;\n }\n\n return (\n <z-icon\n name={this.icon}\n class={{[this.size]: true, \"input-icon\": true}}\n />\n );\n }\n\n private renderResetIcon(): HTMLButtonElement {\n let hidden = false;\n if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {\n hidden = true;\n }\n\n return (\n <button\n type=\"button\"\n class={{\"reset-icon\": true, \"input-icon\": true, hidden}}\n aria-label=\"cancella il contenuto dell'input\"\n onClick={() => {\n this.inputRef.value = \"\";\n this.emitInputChange(\"\");\n }}\n >\n <z-icon\n name=\"multiply\"\n class={this.size}\n />\n </button>\n );\n }\n\n private renderShowHidePassword(): HTMLButtonElement {\n return (\n <button\n type=\"button\"\n class=\"input-icon toggle-password-icon\"\n disabled={this.disabled}\n aria-label={this.passwordHidden ? \"mostra password\" : \"nascondi password\"}\n onClick={() => (this.passwordHidden = !this.passwordHidden)}\n >\n <z-icon\n name={this.passwordHidden ? \"view-filled\" : \"view-off-filled\"}\n class={this.size}\n />\n </button>\n );\n }\n\n private renderMessage(): HTMLZInputMessageElement {\n if (boolean(this.message) === false) {\n return;\n }\n\n return (\n <z-input-message\n message={boolean(this.message) === true ? undefined : (this.message as string)}\n status={this.status}\n class={this.size}\n disabled={this.disabled}\n />\n );\n }\n\n /* END text/password/email/number */\n\n /* START textarea */\n\n private renderTextarea(): HTMLDivElement {\n const attributes = this.getTextAttributes();\n\n return (\n <Fragment>\n {this.renderLabel()}\n <div\n class={{\n ...(attributes.class as {[className: string]: boolean}),\n \"textarea-wrapper\": true,\n \"readonly\": !!attributes.readonly,\n }}\n >\n <textarea\n {...attributes}\n class={{\n ...(attributes.class as {[className: string]: boolean}),\n \"z-scrollbar\": true,\n }}\n aria-label={this.ariaLabel || undefined}\n {...this.getRoleAttribute()}\n ></textarea>\n </div>\n {this.renderMessage()}\n </Fragment>\n );\n }\n\n /* END textarea */\n\n private handleCheck(ev: Event): void {\n this.checked = (ev.target as HTMLInputElement).checked;\n this.emitInputCheck(this.checked);\n }\n\n /* START checkbox */\n private renderCheckbox(): HTMLDivElement {\n return (\n <div class=\"checkbox-wrapper\">\n <input\n id={this.htmlid}\n type=\"checkbox\"\n name={this.name}\n checked={this.checked}\n disabled={this.disabled}\n readonly={this.readonly}\n required={this.required}\n onChange={this.handleCheck.bind(this)}\n value={this.value}\n {...this.getRoleAttribute()}\n {...this.getFocusBlurAttributes()}\n />\n\n <label\n htmlFor={this.htmlid}\n class={{\n \"checkbox-label\": true,\n \"after\": this.labelPosition === LabelPosition.RIGHT,\n \"before\": this.labelPosition === LabelPosition.LEFT,\n }}\n >\n <z-icon\n name={this.checked ? \"checkbox-checked\" : \"checkbox\"}\n class={this.size}\n />\n {this.label && <span innerHTML={this.label}></span>}\n </label>\n </div>\n );\n }\n\n /* END checkbox */\n\n /* START radio */\n private renderRadio(): HTMLDivElement {\n return (\n <div class=\"radio-wrapper\">\n <input\n id={this.htmlid}\n type=\"radio\"\n name={this.name}\n checked={this.checked}\n disabled={this.disabled}\n readonly={this.readonly}\n onChange={this.handleCheck.bind(this)}\n value={this.value}\n {...this.getRoleAttribute()}\n {...this.getFocusBlurAttributes()}\n />\n\n <label\n htmlFor={this.htmlid}\n class={{\n \"radio-label\": true,\n \"after\": this.labelPosition === LabelPosition.RIGHT,\n \"before\": this.labelPosition === LabelPosition.LEFT,\n }}\n >\n <z-icon\n name={this.checked ? \"radio-button-checked\" : \"radio-button\"}\n class={this.size}\n />\n {this.label && <span innerHTML={this.label} />}\n </label>\n </div>\n );\n }\n /* END radio */\n\n render(): HTMLInputElement | HTMLDivElement {\n let input;\n switch (this.type) {\n case InputType.TEXTAREA:\n input = this.renderTextarea();\n break;\n case InputType.CHECKBOX:\n input = this.renderCheckbox();\n break;\n case InputType.RADIO:\n input = this.renderRadio();\n break;\n default:\n input = this.renderInputText(this.type);\n }\n\n return <Host>{input}</Host>;\n }\n}\n"]}
@@ -18,7 +18,7 @@ export class ZInputMessage {
18
18
  this.onMessageChange();
19
19
  }
20
20
  render() {
21
- return (h(Host, Object.assign({ key: '2b36c1db6fcc6cdb5c1340e2f60c5ff95f86d505' }, this.statusRole, { "aria-label": this.message }), this.statusIcons[this.status] && this.message && h("z-icon", { key: '033f839caebfdf8beff8441c0ca4002faf3ddb3f', name: this.statusIcons[this.status] }), h("span", { key: 'e02645f93879892d163c8f3cd8ce5ef0a05df232', innerHTML: this.message })));
21
+ return (h(Host, Object.assign({ key: '699a01ded83a2d58155aa15517407898cc85090e' }, this.statusRole, { "aria-label": this.message }), this.statusIcons[this.status] && this.message && h("z-icon", { key: '9205f3ab174eb8d7286df9edde0964a68ee6f600', name: this.statusIcons[this.status] }), h("span", { key: 'a80253cec8145ccfa30de68bf9d5a3ce152d6538', innerHTML: this.message })));
22
22
  }
23
23
  static get is() { return "z-input-message"; }
24
24
  static get encapsulation() { return "shadow"; }
@@ -16,7 +16,7 @@ export class ZLogo {
16
16
  if (this.height) {
17
17
  style["height"] = style["max-height"] = `${this.height}px`;
18
18
  }
19
- return (h(Host, { key: '1e50363ef4187e16c193d840b4889d1f749489c6', style: style, class: { mobile: !!this.mobileLogo } }, this.link ? (h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, h("img", { alt: this.imageAlt }))) : (h("img", { alt: this.imageAlt }))));
19
+ return (h(Host, { key: '75a515faadd75ea3f21ae80ca6a4f579223ad1cd', style: style, class: { mobile: !!this.mobileLogo } }, this.link ? (h("a", { href: this.link, target: this.targetBlank ? "_blank" : "_self" }, h("img", { alt: this.imageAlt }))) : (h("img", { alt: this.imageAlt }))));
20
20
  }
21
21
  static get is() { return "z-logo"; }
22
22
  static get encapsulation() { return "shadow"; }
@@ -123,16 +123,16 @@ export class ZModal {
123
123
  e.preventDefault();
124
124
  }
125
125
  render() {
126
- return (h("dialog", { key: '1b01eff722f2dc2a940aabefafab64f48369478d', class: {
126
+ return (h("dialog", { key: 'ff8e8cf9ce5684a8ca081ab2aec3ef1c8824b6ae', class: {
127
127
  "modal-dialog": !this.scrollInside,
128
- }, "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose(), onCancel: (e) => this.handleEscape(e) }, h("div", { key: '0be8ac0c08ad07c47eab947e3643b9a30d6e1a35', class: {
128
+ }, "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose(), onCancel: (e) => this.handleEscape(e) }, h("div", { key: '94c33c53083aafc4607fcb4b9c099c7d02c035b4', class: {
129
129
  "modal-container": true,
130
130
  "modal-container-scroll-inside": this.scrollInside,
131
131
  "modal-container-scroll-outside": !this.scrollInside,
132
- }, id: this.modalid }, h("header", { key: 'ef06c2b56cae407fdb772c9588aba286d76d96b9', onClick: this.emitModalHeaderActive.bind(this) }, h("div", { key: '1b084dbe371365c9039609f86d5789c2f58d8568' }, this.modaltitle && h("h1", { key: '3841f9384e6157b1fdcebfa56f3fa429e84a5618', id: "modal-title" }, this.modaltitle), this.closeButtonSlot()), this.modalsubtitle && (h("div", { key: '178776ffc0a25f4b868ab6f0263d87c0935106b8', class: "subtitle", id: "modal-subtitle" }, this.modalsubtitle))), h("div", { key: '04ac58e2fbf6163c2bad3760c1178d7de92694c2', class: {
132
+ }, id: this.modalid }, h("header", { key: '0e17ec7ccaa1376b9cdabde14355fc6dcbec4f26', onClick: this.emitModalHeaderActive.bind(this) }, h("div", { key: '09a5a59ca386289939c61e29f79d201454d41165' }, this.modaltitle && h("h1", { key: '0cf7deea5e044b358882ae0e7bfe4502de1318f5', id: "modal-title" }, this.modaltitle), this.closeButtonSlot()), this.modalsubtitle && (h("div", { key: '2fde62ccc507d999ccd4fd83aa369128e97b9b0c', class: "subtitle", id: "modal-subtitle" }, this.modalsubtitle))), h("div", { key: 'e778555f2d7d88a965e454ee1231004da8d293e7', class: {
133
133
  "modal-content-scroll-inside": this.scrollInside,
134
134
  "modal-content-scroll-outside": !this.scrollInside,
135
- }, id: "modal-content" }, h("slot", { key: '41c649fb673abdec9371222aab9e525fed63ea9e', name: "modalContent" }))), h("div", { key: '3f843871ad2315bc68be5fc0f7f0b3f83fbe4309', class: {
135
+ }, id: "modal-content" }, h("slot", { key: 'acee4bb3444264df0b26a465c52f2ee282ccca76', name: "modalContent" }))), h("div", { key: '9abb8e64380030960d5669bec37a7f2f64d78693', class: {
136
136
  "modal-background": true,
137
137
  "modal-background-scroll-outside": !this.scrollInside,
138
138
  }, "data-action": "modalBackground", "data-modal": this.modalid, onClick: () => {
@@ -221,10 +221,10 @@ export class ZNavigationTabs {
221
221
  (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
222
222
  }
223
223
  render() {
224
- return (h(Host, { key: '4077ef000c364e2356716f630a114ef12f87503c', class: {
224
+ return (h(Host, { key: '69bc5562051734e576c1dbb2af850ef01a70a693', class: {
225
225
  "interactive-2": this.size === NavigationTabsSize.SMALL,
226
226
  "interactive-1": this.size !== NavigationTabsSize.SMALL,
227
- }, scrollable: this.canNavigate }, h("button", { key: '836020e039138b16064efce71faf41ef4c22e644', class: "navigation-button", onClick: this.navigateBackwards.bind(this), tabIndex: -1, disabled: !this.canNavigatePrev, "aria-label": "Mostra elementi precedenti", hidden: !this.canNavigate }, h("z-icon", { key: 'd29f82ac396250b0533d964d72716811ae05ae05', name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-left" : "chevron-up", width: 16, height: 16 })), h("nav", { key: '735a409ad889a701a4a37b3c30d9de445522215d', role: "tablist", "aria-label": this.ariaLabel, ref: (el) => (this.nav = el !== null && el !== void 0 ? el : this.nav), onScroll: this.checkScrollEnabled.bind(this), "aria-orientation": this.orientation }, h("slot", { key: 'f2208fd694382c9c0472c7a1ed57e130dc9238b9' })), h("button", { key: 'f89b222d39aaff6448a5a42a96f62d7899cb02ce', class: "navigation-button", onClick: this.navigateForward.bind(this), tabIndex: -1, disabled: !this.canNavigateNext, "aria-label": "Mostra elementi successivi", hidden: !this.canNavigate }, h("z-icon", { key: '3ec84b37d472f4d5848b0ce4be1f95883553cebe', name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-right" : "chevron-down", width: 16, height: 16 }))));
227
+ }, scrollable: this.canNavigate }, h("button", { key: 'c851af9053873ea70d1dee5216bb680deea111f0', class: "navigation-button", onClick: this.navigateBackwards.bind(this), tabIndex: -1, disabled: !this.canNavigatePrev, "aria-label": "Mostra elementi precedenti", hidden: !this.canNavigate }, h("z-icon", { key: '6a69b89400fea7a87fd18d8d59e183b85aa0c87f', name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-left" : "chevron-up", width: 16, height: 16 })), h("nav", { key: '997e215eecc0454b96e0034fece50be22cb1eef0', role: "tablist", "aria-label": this.ariaLabel, ref: (el) => (this.nav = el !== null && el !== void 0 ? el : this.nav), onScroll: this.checkScrollEnabled.bind(this), "aria-orientation": this.orientation }, h("slot", { key: '8a214ee36e66badda0a8825fbe7c2268ff0fc6df' })), h("button", { key: '627501af784136a1eff68c0e002812144062128e', class: "navigation-button", onClick: this.navigateForward.bind(this), tabIndex: -1, disabled: !this.canNavigateNext, "aria-label": "Mostra elementi successivi", hidden: !this.canNavigate }, h("z-icon", { key: '68728de5a048363fd186c4a26cc8872fd4b0253e', name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-right" : "chevron-down", width: 16, height: 16 }))));
228
228
  }
229
229
  static get is() { return "z-navigation-tabs"; }
230
230
  static get originalStyleUrls() {
@@ -25,7 +25,7 @@ export class ZNotification {
25
25
  }
26
26
  render() {
27
27
  var _a;
28
- return (h(Host, { key: '91f3faaa63f6d3a7560dfc17fcb782cc9a87b3ca' }, this.contenticonname && (h("z-icon", { key: '2d7d6a800e8cf6c2ff83a0e45d1617e584aab21e', class: "status-icon", name: this.contenticonname, width: 16, height: 16 })), h("div", { key: 'fd2703a619f218ef7cb6177cce8e0ff45a6d0ed4', class: "content-container" }, h("div", { key: 'cd300fae9835a693b9c96935e993d4d78cd11e4c', class: "content-text" }, h("slot", { key: '1563c59943a57d20b94d7d4df037a78ee3970d42' })), !!((_a = this.actiontext) === null || _a === void 0 ? void 0 : _a.trim()) && (h("button", { key: '4221817bd30a88b22f9c4a01882d4c7aed6cfce3', class: "action-button", type: "button", onClick: this.handleActionButtonClick }, this.actiontext))), this.showclose && (h("button", { key: 'ac74dd0caa8a62e1aece02748a04a60036ba0b91', class: "close-button", type: "button", onClick: this.handleCloseButtonClick }, h("z-icon", { key: '218ba32889b29b07f4d90b7c3d0072a2f5c2854e', name: "multiply-circle", width: 16, height: 16 })))));
28
+ return (h(Host, { key: 'aac3e6385d2f77e80c9933e666770e3da17c21a5' }, this.contenticonname && (h("z-icon", { key: '1ba77acd6db4e01ac47ae605c4ab05a345999462', class: "status-icon", name: this.contenticonname, width: 16, height: 16 })), h("div", { key: '9df24bcba7a1f49c803f339a0ac5ddafc08c03c9', class: "content-container" }, h("div", { key: 'bd1a76905a9c14fa77a1704a127a65a8ba9adab8', class: "content-text" }, h("slot", { key: 'b126d399950149b0d4cd94d3c2480678d7f91a97' })), !!((_a = this.actiontext) === null || _a === void 0 ? void 0 : _a.trim()) && (h("button", { key: '63f56578ed42e720c20b57424c1d824729279e36', class: "action-button", type: "button", onClick: this.handleActionButtonClick }, this.actiontext))), this.showclose && (h("button", { key: '81ccf6858d6b559a23b1c9266d8af55e7bd3a2f2', class: "close-button", type: "button", onClick: this.handleCloseButtonClick }, h("z-icon", { key: '96c95d07ef561d4b900acefaef90e00d85dc3904', name: "multiply-circle", width: 16, height: 16 })))));
29
29
  }
30
30
  static get is() { return "z-notification"; }
31
31
  static get encapsulation() { return "shadow"; }
@@ -67,8 +67,8 @@ export class ZOffcanvas {
67
67
  this.open = false;
68
68
  }
69
69
  render() {
70
- return (h(Host, { key: '2146621c93f4b478556fba5d08ba9340ceed6821', "skip-animation": this.skipAnimation, "aria-hidden": !this.open ? "true" : null }, h("div", { key: '881ed2a1f0bebd02bd5543f2b2f15f7bbbd874bb', class: "canvas-container", role: "presentation", ref: (el) => (this.canvasContainer = el) }, h("div", { key: 'b37a193c063e210075dea43e7fb1f21d19b77b17', class: "canvas-content z-scrollbar", role: "presentation" }, h("slot", { key: '5620ed28c82d7a97466fbba6b02f2aebb4fc7d1a', name: "canvasContent" }))), (this.variant == OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP) &&
71
- this.showBackdrop && (h("div", { key: '4ab286730452817a512b0bf77c0a18bb78983fbe', class: "backdrop", onClick: () => (this.open = false) }))));
70
+ return (h(Host, { key: '52ce71415709ffe342802b789448fe168eef9d3d', "skip-animation": this.skipAnimation, "aria-hidden": !this.open ? "true" : null }, h("div", { key: '93173c6176acd24a8f02541b5becd3dfd7f98ac3', class: "canvas-container", role: "presentation", ref: (el) => (this.canvasContainer = el) }, h("div", { key: '82b36a24cbf7856d8f8ee17952e0cf733529f7ae', class: "canvas-content z-scrollbar", role: "presentation" }, h("slot", { key: 'e5281598686c2d0de459045ceaa81c1c31dbcd22', name: "canvasContent" }))), (this.variant == OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP) &&
71
+ this.showBackdrop && (h("div", { key: 'b912144f9bf525114394cd03f84f38f810c8cb29', class: "backdrop", onClick: () => (this.open = false) }))));
72
72
  }
73
73
  static get is() { return "z-offcanvas"; }
74
74
  static get encapsulation() { return "scoped"; }
@@ -16,12 +16,12 @@ export class ZPanelElem {
16
16
  }
17
17
  render() {
18
18
  const elemId = this.elemid ? this.elemid : "";
19
- return (h("div", { key: 'd5a9754ebe82d16f501f7de159abb1abe4826d73', class: "panel-elem-container" }, (this.imgurl || this.imgalt) && (h("div", { key: 'c9b06c626e81b8248a63604423b624c80c3099eb', "aria-hidden": "true", class: "panel-elem-icon" }, h("img", { key: '491be43fc992a6d3de6c2961b29d2e6a7dc17003', src: this.imgurl, alt: this.imgalt }))), h("div", { key: 'f6371f8214bcd56380f6d184b211356215fa870a', class: "panel-elem-link" }, h("a", { key: '6988da8b80cdb0a2e25eb1f67c7ec5cfac3d07c7', class: {
19
+ return (h("div", { key: '7ccde7a594052fb877c381d8f2db8df80d64e96e', class: "panel-elem-container" }, (this.imgurl || this.imgalt) && (h("div", { key: 'f925fb70d03baa4a8a7f96006c515c9116785ff7', "aria-hidden": "true", class: "panel-elem-icon" }, h("img", { key: 'b0349cf006ded4cc02f686e1ea1adfbd76550fb8', src: this.imgurl, alt: this.imgalt }))), h("div", { key: 'c9393757ba1c849c8558dc668189f6f27b232e94', class: "panel-elem-link" }, h("a", { key: '7c552ae67030c9bf12a6e52e8d8f6f82df88b4a2', class: {
20
20
  "z-link": true,
21
21
  "z-link-disabled": this.isdisabled,
22
22
  "z-link-icon": true,
23
23
  "z-link-blue": true,
24
- }, id: elemId + "link_id", href: this.url, target: this.target }, h("z-icon", { key: '404ce91ab1d4d086115355375a3358050366104d', height: 14, width: 14, name: this.linkicon }), this.linklabel)), this.descrSlotName && (h("div", { key: '7bc0055610960f8966f68dc100b3af2022848f06', class: "panel-elem-desc" }, h("slot", { key: '966fe6d8009a74131b4f568253134acfcfee5733', name: this.descrSlotName })))));
24
+ }, id: elemId + "link_id", href: this.url, target: this.target }, h("z-icon", { key: 'f72a6a2634b41803ea7eaf8d51ba3439f095457a', height: 14, width: 14, name: this.linkicon }), this.linklabel)), this.descrSlotName && (h("div", { key: '6cd08ffd2e65f13d500f88682724f4f762c1f118', class: "panel-elem-desc" }, h("slot", { key: '01f55703602ee64f92eed8bc918ac5032927850c', name: this.descrSlotName })))));
25
25
  }
26
26
  static get is() { return "z-panel-elem"; }
27
27
  static get encapsulation() { return "scoped"; }
@@ -424,7 +424,7 @@ export class ZPopover {
424
424
  cancelAnimationFrame(this.animationFrameRequestId);
425
425
  }
426
426
  render() {
427
- return (h(Host, { key: 'bb4de929f55c973afca21cd9b0ddea9f24194e3e', "current-position": this.currentPosition }, h("slot", { key: '40df21ad7258139c4296a792f9105229b7379dd1' })));
427
+ return (h(Host, { key: 'aeb6c7ccabc279af16d9a957e732ad611612589f', "current-position": this.currentPosition }, h("slot", { key: '77fecb1bbfa49e1a8f97c078e7cef01a03420d9c' })));
428
428
  }
429
429
  static get is() { return "z-popover"; }
430
430
  static get encapsulation() { return "shadow"; }
@@ -1,5 +1,4 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import defaultFallbackCover from "../../../assets/images/png/placeholder-cover.png";
3
2
  /**
4
3
  * @slot tags - slot containing the descriptors for the opera variant
5
4
  * @slot volumes - slot containing the volume count to be displayed in the opera variant
@@ -12,24 +11,17 @@ export class ZResultCard {
12
11
  this.setTooltipTitle(this.subtitleRef);
13
12
  };
14
13
  this.renderTitle = () => {
15
- const title = this.titleHtmlTag ? `<${this.titleHtmlTag}>${this.cardTitle}</${this.titleHtmlTag}>` : this.cardTitle;
16
- return (h("div", { class: { "card-title": true, "info-card-title": this.isInfoCard }, ref: (el) => (this.titleRef = el), innerHTML: title }));
14
+ const TitleTag = this.titleHtmlTag || "div";
15
+ return (h(TitleTag, { class: "card-title", ref: (el) => (this.titleRef = el) }, this.cardTitle));
17
16
  };
18
17
  this.renderSubtitle = () => {
19
- return (h("span", { class: { "card-subtitle": true, "info-card-subtitle": this.isInfoCard }, ref: (el) => (this.subtitleRef = el) }, this.cardSubtitle));
18
+ return (h("span", { class: "card-subtitle", ref: (el) => (this.subtitleRef = el) }, this.cardSubtitle));
20
19
  };
21
20
  this.renderOperaCard = () => {
22
- return (h(Host, { tabIndex: 0 }, h("div", { class: `z-cover-container ${this.hasMultipleCovers ? "has-multiple" : ""}` }, h("div", { class: "z-cover-stack" }, this.hasMultipleCovers && (h("div", null, h("div", { class: "z-cover-shadow z-shadow-2" }), h("div", { class: "z-cover-shadow z-shadow-1" }))), h("div", { class: "z-cover-img" }, h("img", { src: this.cover || this.fallbackCover || defaultFallbackCover, alt: "", onError: () => {
23
- if (this.fallbackCover) {
24
- this.cover = this.fallbackCover;
25
- }
26
- else {
27
- this.cover = defaultFallbackCover;
28
- }
29
- } })))), h("div", { class: "info-container" }, this.authors && (h("span", { class: "authors-label", ref: (el) => (this.authorsRef = el) }, this.authors)), this.renderTitle(), this.renderSubtitle(), h("div", { class: "tags-container" }, h("slot", { name: "tags" })), h("div", { class: "volumes-label" }, h("slot", { name: "volumes" })))));
21
+ return (h(Host, null, h("z-book-cover", { cover: this.cover, fallbackCover: this.fallbackCover, multiple: this.hasMultipleCovers, bordered: true }), h("div", { class: "info-container" }, this.authors && (h("span", { class: "authors-label", ref: (el) => (this.authorsRef = el) }, this.authors)), this.renderTitle(), this.renderSubtitle(), h("div", { class: "tags-container" }, h("slot", { name: "tags" })), h("div", { class: "volumes-label" }, h("slot", { name: "volumes" })))));
30
22
  };
31
23
  this.renderInfoCard = () => {
32
- return (h(Host, { tabIndex: 0, class: "info-card" }, h("div", { class: "info-icon-column" }, h("div", { class: "info-icon-container" }, h("z-icon", { class: "info-icon", name: "link", width: 18, height: 18 }))), h("div", { class: "info-container" }, this.renderTitle(), this.renderSubtitle())));
24
+ return (h(Host, { class: "info-card" }, h("div", { class: "info-icon-container" }, h("z-icon", { class: "info-icon", name: "link" })), h("div", { class: "info-container" }, this.renderTitle(), this.renderSubtitle())));
33
25
  };
34
26
  this.cardTitle = undefined;
35
27
  this.cardSubtitle = undefined;
@@ -157,7 +149,7 @@ export class ZResultCard {
157
149
  "optional": true,
158
150
  "docs": {
159
151
  "tags": [],
160
- "text": "The URL of the cover image.\nThis is used to display the cover image of the opera."
152
+ "text": "The URL of the cover image of the opera."
161
153
  },
162
154
  "attribute": "cover",
163
155
  "reflect": false
@@ -174,7 +166,7 @@ export class ZResultCard {
174
166
  "optional": true,
175
167
  "docs": {
176
168
  "tags": [],
177
- "text": "[optional] Fallback cover URL"
169
+ "text": "[optional] Fallback cover URL."
178
170
  },
179
171
  "attribute": "fallback-cover",
180
172
  "reflect": false
@@ -191,7 +183,7 @@ export class ZResultCard {
191
183
  "optional": false,
192
184
  "docs": {
193
185
  "tags": [],
194
- "text": "Indicates whether the card has multiple covers.\nThis is used to apply specific styles when there are multiple covers."
186
+ "text": "Whether to show a stack of covers to represent multiple books."
195
187
  },
196
188
  "attribute": "has-multiple-covers",
197
189
  "reflect": false,
@@ -209,7 +201,7 @@ export class ZResultCard {
209
201
  "optional": false,
210
202
  "docs": {
211
203
  "tags": [],
212
- "text": "Indicates whether the card is an info page.\nThis can be used to apply specific styles or behaviors for info pages."
204
+ "text": "Enables the \"info\" variant of the card."
213
205
  },
214
206
  "attribute": "is-info-card",
215
207
  "reflect": false,
@@ -227,7 +219,7 @@ export class ZResultCard {
227
219
  "optional": true,
228
220
  "docs": {
229
221
  "tags": [],
230
- "text": "[optional]\nUse for insert heading when needed."
222
+ "text": "[optional] Set a specific heading level as html tag for the title."
231
223
  },
232
224
  "attribute": "title-html-tag",
233
225
  "reflect": false
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-result-card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAEhE;;;GAGG;AAMH,MAAM,OAAO,WAAW;;QA4Ed,kBAAa,GAAG,GAAS,EAAE;YACjC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACtC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACpC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzC,CAAC,CAAC;QAUM,gBAAW,GAAG,GAAgB,EAAE;YACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,IAAI,KAAK,CAAC;YAE5C,OAAO,CACL,EAAC,QAAQ,IACP,KAAK,EAAC,YAAY,EAClB,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,EAAiB,CAAC,IAE/C,IAAI,CAAC,SAAS,CACN,CACZ,CAAC;QACJ,CAAC,CAAC;QAEM,mBAAc,GAAG,GAAoB,EAAE;YAC7C,OAAO,CACL,YACE,KAAK,EAAC,eAAe,EACrB,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,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C;IAC3D,CAAC;IA0ED,MAAM;QACJ,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;IAC1E,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, Host, Prop, h} from \"@stencil/core\";\n\n/**\n * @slot tags - slot containing the descriptors for the opera variant\n * @slot volumes - slot containing the volume count to be displayed in the opera variant\n */\n@Component({\n tag: \"z-result-card\",\n styleUrls: [\"styles.css\"],\n shadow: true,\n})\nexport class ZResultCard {\n @Element() hostElement: HTMLZResultCardElement;\n\n /** The title of the card. */\n @Prop()\n cardTitle: string;\n\n /** The subtitle of the card. */\n @Prop()\n cardSubtitle: string;\n\n /** The authors of the opera. */\n @Prop()\n authors?: string;\n\n /** The URL of the cover image of the opera. */\n @Prop()\n cover?: string;\n\n /** [optional] Fallback cover URL. */\n @Prop()\n fallbackCover?: string;\n\n /** Whether to show a stack of covers to represent multiple books. */\n @Prop()\n hasMultipleCovers = false;\n\n /** Enables the \"info\" variant of the card. */\n @Prop()\n isInfoCard = false;\n\n /** [optional] Set a specific heading level as html tag for the title. */\n @Prop()\n titleHtmlTag?: string;\n\n private authorsRef: HTMLElement;\n\n private titleRef: HTMLElement;\n\n private subtitleRef: HTMLElement;\n\n private setTooltipTitle(el: HTMLElement): void {\n if (!el) {\n return;\n }\n\n // Check if element uses line-clamp\n const style = window.getComputedStyle(el);\n const hasLineClamp = style.getPropertyValue(\"-webkit-line-clamp\") !== \"none\";\n\n let isTruncated;\n if (hasLineClamp) {\n // For elements with line-clamp, check if content height exceeds line-clamp height\n const lineHeight = parseInt(style.lineHeight);\n const maxLines = parseInt(style.getPropertyValue(\"-webkit-line-clamp\"));\n const maxHeight = lineHeight * maxLines;\n\n isTruncated = el.scrollHeight > maxHeight;\n } else {\n // Original check for elements without line-clamp\n isTruncated = el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight;\n }\n\n if (isTruncated) {\n el.setAttribute(\"title\", el.textContent.trim());\n } else {\n el.removeAttribute(\"title\");\n }\n }\n\n componentDidRender(): void {\n this.setTooltipTitle(this.authorsRef);\n this.setTooltipTitle(this.titleRef);\n this.setTooltipTitle(this.subtitleRef);\n }\n\n private resizeHandler = (): void => {\n this.setTooltipTitle(this.authorsRef);\n this.setTooltipTitle(this.titleRef);\n this.setTooltipTitle(this.subtitleRef);\n };\n\n componentDidLoad(): void {\n window.addEventListener(\"resize\", this.resizeHandler);\n }\n\n disconnectedCallback(): void {\n window.removeEventListener(\"resize\", this.resizeHandler);\n }\n\n private renderTitle = (): HTMLElement => {\n const TitleTag = this.titleHtmlTag || \"div\";\n\n return (\n <TitleTag\n class=\"card-title\"\n ref={(el) => (this.titleRef = el as HTMLElement)}\n >\n {this.cardTitle}\n </TitleTag>\n );\n };\n\n private renderSubtitle = (): HTMLSpanElement => {\n return (\n <span\n class=\"card-subtitle\"\n ref={(el) => (this.subtitleRef = el as HTMLElement)}\n >\n {this.cardSubtitle}\n </span>\n );\n };\n\n private renderOperaCard = (): HTMLZResultCardElement => {\n return (\n <Host>\n <z-book-cover\n cover={this.cover}\n fallbackCover={this.fallbackCover}\n multiple={this.hasMultipleCovers}\n bordered={true}\n ></z-book-cover>\n <div class=\"info-container\">\n {this.authors && (\n <span\n class=\"authors-label\"\n ref={(el) => (this.authorsRef = el as HTMLElement)}\n >\n {this.authors}\n </span>\n )}\n {this.renderTitle()}\n {this.renderSubtitle()}\n <div class=\"tags-container\">\n <slot name=\"tags\"></slot>\n </div>\n <div class=\"volumes-label\">\n <slot name=\"volumes\"></slot>\n </div>\n </div>\n </Host>\n );\n };\n\n private renderInfoCard = (): HTMLZResultCardElement => {\n return (\n <Host class=\"info-card\">\n <div class=\"info-icon-container\">\n <z-icon\n class=\"info-icon\"\n name=\"link\"\n />\n </div>\n <div class=\"info-container\">\n {this.renderTitle()}\n {this.renderSubtitle()}\n </div>\n </Host>\n );\n };\n\n render(): HTMLZResultCardElement {\n return this.isInfoCard ? this.renderInfoCard() : this.renderOperaCard();\n }\n}\n"]}