@zanichelli/albe-web-components 19.3.0-rc1 → 19.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1492) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/dist/cjs/_commonjsHelpers-CFO10eej.js +3 -0
  3. package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +1 -0
  4. package/dist/cjs/breakpoints-B7vFm-3T.js +3 -0
  5. package/dist/cjs/breakpoints-B7vFm-3T.js.map +1 -0
  6. package/dist/cjs/iconset-Cz-UsfoU.js +1030 -0
  7. package/dist/cjs/iconset-Cz-UsfoU.js.map +1 -0
  8. package/dist/cjs/index-Cn7FFDHr.js +415 -0
  9. package/dist/cjs/index-Cn7FFDHr.js.map +1 -0
  10. package/dist/cjs/index-DY2I5wAY.js +2727 -0
  11. package/dist/cjs/index-DY2I5wAY.js.map +1 -0
  12. package/dist/cjs/index.cjs.js +10 -3
  13. package/dist/cjs/index.cjs.js.map +1 -0
  14. package/dist/cjs/loader.cjs.js +5 -2
  15. package/dist/cjs/loader.cjs.js.map +1 -0
  16. package/dist/cjs/reactive-controller-CxJYkamG.js +1446 -0
  17. package/dist/cjs/reactive-controller-CxJYkamG.js.map +1 -0
  18. package/dist/cjs/utils-By4U4KkV.js +2721 -0
  19. package/dist/cjs/utils-By4U4KkV.js.map +1 -0
  20. package/dist/cjs/utils-kQZHfpti.js +919 -0
  21. package/dist/cjs/utils-kQZHfpti.js.map +1 -0
  22. package/dist/cjs/web-components-library.cjs.js +5 -2
  23. package/dist/cjs/web-components-library.cjs.js.map +1 -0
  24. package/dist/cjs/z-accordion.cjs.entry.js +6 -3
  25. package/dist/cjs/z-accordion.cjs.entry.js.map +1 -0
  26. package/dist/cjs/z-alert.cjs.entry.js +5 -2
  27. package/dist/cjs/z-alert.cjs.entry.js.map +1 -0
  28. package/dist/cjs/z-anchor-navigation.cjs.entry.js +7 -4
  29. package/dist/cjs/z-anchor-navigation.cjs.entry.js.map +1 -0
  30. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +6 -3
  31. package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +1 -0
  32. package/dist/cjs/z-app-header_12.cjs.entry.js +101 -135
  33. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -0
  34. package/dist/cjs/z-aria-alert.cjs.entry.js +6 -3
  35. package/dist/cjs/z-aria-alert.cjs.entry.js.map +1 -0
  36. package/dist/cjs/z-avatar.cjs.entry.js +7 -4
  37. package/dist/cjs/z-avatar.cjs.entry.js.map +1 -0
  38. package/dist/cjs/z-book-card-app.cjs.entry.js +6 -3
  39. package/dist/cjs/z-book-card-app.cjs.entry.js.map +1 -0
  40. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +7 -4
  41. package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +1 -0
  42. package/dist/cjs/z-book-card.cjs.entry.js +6 -3
  43. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -0
  44. package/dist/cjs/z-book-cover.cjs.entry.js +5 -2
  45. package/dist/cjs/z-book-cover.cjs.entry.js.map +1 -0
  46. package/dist/cjs/z-breadcrumb.cjs.entry.js +8 -5
  47. package/dist/cjs/z-breadcrumb.cjs.entry.js.map +1 -0
  48. package/dist/cjs/z-button-sort.cjs.entry.js +5 -2
  49. package/dist/cjs/z-button-sort.cjs.entry.js.map +1 -0
  50. package/dist/cjs/z-card.cjs.entry.js +5 -2
  51. package/dist/cjs/z-card.cjs.entry.js.map +1 -0
  52. package/dist/cjs/z-carousel.cjs.entry.js +6 -3
  53. package/dist/cjs/z-carousel.cjs.entry.js.map +1 -0
  54. package/dist/cjs/z-chip.cjs.entry.js +7 -4
  55. package/dist/cjs/z-chip.cjs.entry.js.map +1 -0
  56. package/dist/cjs/z-color-picker.cjs.entry.js +7 -4
  57. package/dist/cjs/z-color-picker.cjs.entry.js.map +1 -0
  58. package/dist/cjs/z-combobox.cjs.entry.js +21 -15
  59. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -0
  60. package/dist/cjs/z-cover-hero.cjs.entry.js +7 -4
  61. package/dist/cjs/z-cover-hero.cjs.entry.js.map +1 -0
  62. package/dist/cjs/z-date-picker.cjs.entry.js +7 -4
  63. package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -0
  64. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +25 -41
  65. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -0
  66. package/dist/cjs/z-file-upload.cjs.entry.js +7 -4
  67. package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -0
  68. package/dist/cjs/z-file.cjs.entry.js +6 -3
  69. package/dist/cjs/z-file.cjs.entry.js.map +1 -0
  70. package/dist/cjs/z-ghost-loading.cjs.entry.js +5 -2
  71. package/dist/cjs/z-ghost-loading.cjs.entry.js.map +1 -0
  72. package/dist/cjs/z-info-box.cjs.entry.js +5 -2
  73. package/dist/cjs/z-info-box.cjs.entry.js.map +1 -0
  74. package/dist/cjs/z-info-reveal.cjs.entry.js +6 -3
  75. package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -0
  76. package/dist/cjs/z-input-range.cjs.entry.js +145 -0
  77. package/dist/cjs/z-input-range.cjs.entry.js.map +1 -0
  78. package/dist/cjs/z-logo.cjs.entry.js +6 -3
  79. package/dist/cjs/z-logo.cjs.entry.js.map +1 -0
  80. package/dist/cjs/z-menu-deprecated.cjs.entry.js +6 -3
  81. package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -0
  82. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +5 -2
  83. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -0
  84. package/dist/cjs/z-menu-section.cjs.entry.js +6 -3
  85. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -0
  86. package/dist/cjs/z-menu.cjs.entry.js +6 -3
  87. package/dist/cjs/z-menu.cjs.entry.js.map +1 -0
  88. package/dist/cjs/z-myz-card-alert.cjs.entry.js +6 -3
  89. package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +1 -0
  90. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +6 -3
  91. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +1 -0
  92. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +5 -2
  93. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js.map +1 -0
  94. package/dist/cjs/z-myz-card-footer.cjs.entry.js +6 -3
  95. package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +1 -0
  96. package/dist/cjs/z-myz-card-icon.cjs.entry.js +5 -2
  97. package/dist/cjs/z-myz-card-icon.cjs.entry.js.map +1 -0
  98. package/dist/cjs/z-myz-card-info.cjs.entry.js +7 -4
  99. package/dist/cjs/z-myz-card-info.cjs.entry.js.map +1 -0
  100. package/dist/cjs/z-myz-card-list.cjs.entry.js +5 -2
  101. package/dist/cjs/z-myz-card-list.cjs.entry.js.map +1 -0
  102. package/dist/cjs/z-myz-card_4.cjs.entry.js +9 -6
  103. package/dist/cjs/z-myz-card_4.cjs.entry.js.map +1 -0
  104. package/dist/cjs/z-myz-list-item.cjs.entry.js +7 -4
  105. package/dist/cjs/z-myz-list-item.cjs.entry.js.map +1 -0
  106. package/dist/cjs/z-myz-list.cjs.entry.js +5 -2
  107. package/dist/cjs/z-myz-list.cjs.entry.js.map +1 -0
  108. package/dist/cjs/z-navigation-tabs.cjs.entry.js +7 -4
  109. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -0
  110. package/dist/cjs/z-notification.cjs.entry.js +5 -2
  111. package/dist/cjs/z-notification.cjs.entry.js.map +1 -0
  112. package/dist/cjs/z-otp.cjs.entry.js +7 -4
  113. package/dist/cjs/z-otp.cjs.entry.js.map +1 -0
  114. package/dist/cjs/z-pagination.cjs.entry.js +5 -2
  115. package/dist/cjs/z-pagination.cjs.entry.js.map +1 -0
  116. package/dist/cjs/z-panel-elem.cjs.entry.js +6 -3
  117. package/dist/cjs/z-panel-elem.cjs.entry.js.map +1 -0
  118. package/dist/cjs/z-popover.cjs.entry.js +7 -4
  119. package/dist/cjs/z-popover.cjs.entry.js.map +1 -0
  120. package/dist/cjs/z-range-picker.cjs.entry.js +9 -6
  121. package/dist/cjs/z-range-picker.cjs.entry.js.map +1 -0
  122. package/dist/cjs/z-result-card.cjs.entry.js +5 -2
  123. package/dist/cjs/z-result-card.cjs.entry.js.map +1 -0
  124. package/dist/cjs/z-section-title.cjs.entry.js +6 -3
  125. package/dist/cjs/z-section-title.cjs.entry.js.map +1 -0
  126. package/dist/cjs/z-select.cjs.entry.js +13 -14
  127. package/dist/cjs/z-select.cjs.entry.js.map +1 -0
  128. package/dist/cjs/z-skip-to-content.cjs.entry.js +7 -4
  129. package/dist/cjs/z-skip-to-content.cjs.entry.js.map +1 -0
  130. package/dist/cjs/z-slideshow.cjs.entry.js +6 -3
  131. package/dist/cjs/z-slideshow.cjs.entry.js.map +1 -0
  132. package/dist/cjs/z-stepper-item.cjs.entry.js +5 -2
  133. package/dist/cjs/z-stepper-item.cjs.entry.js.map +1 -0
  134. package/dist/cjs/z-stepper.cjs.entry.js +5 -2
  135. package/dist/cjs/z-stepper.cjs.entry.js.map +1 -0
  136. package/dist/cjs/z-table.cjs.entry.js +7 -4
  137. package/dist/cjs/z-table.cjs.entry.js.map +1 -0
  138. package/dist/cjs/z-tbody.cjs.entry.js +5 -2
  139. package/dist/cjs/z-tbody.cjs.entry.js.map +1 -0
  140. package/dist/cjs/z-td.cjs.entry.js +6 -3
  141. package/dist/cjs/z-td.cjs.entry.js.map +1 -0
  142. package/dist/cjs/z-tfoot.cjs.entry.js +5 -2
  143. package/dist/cjs/z-tfoot.cjs.entry.js.map +1 -0
  144. package/dist/cjs/z-th.cjs.entry.js +6 -3
  145. package/dist/cjs/z-th.cjs.entry.js.map +1 -0
  146. package/dist/cjs/z-thead.cjs.entry.js +5 -2
  147. package/dist/cjs/z-thead.cjs.entry.js.map +1 -0
  148. package/dist/cjs/z-toast-notification-list.cjs.entry.js +6 -3
  149. package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +1 -0
  150. package/dist/cjs/z-toast-notification.cjs.entry.js +8 -5
  151. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -0
  152. package/dist/cjs/z-toggle-button.cjs.entry.js +6 -3
  153. package/dist/cjs/z-toggle-button.cjs.entry.js.map +1 -0
  154. package/dist/cjs/z-toggle-switch.cjs.entry.js +9 -6
  155. package/dist/cjs/z-toggle-switch.cjs.entry.js.map +1 -0
  156. package/dist/cjs/z-tool.cjs.entry.js +8 -5
  157. package/dist/cjs/z-tool.cjs.entry.js.map +1 -0
  158. package/dist/cjs/z-toolbar.cjs.entry.js +6 -3
  159. package/dist/cjs/z-toolbar.cjs.entry.js.map +1 -0
  160. package/dist/cjs/z-tooltip.cjs.entry.js +6 -3
  161. package/dist/cjs/z-tooltip.cjs.entry.js.map +1 -0
  162. package/dist/cjs/z-tr.cjs.entry.js +8 -5
  163. package/dist/cjs/z-tr.cjs.entry.js.map +1 -0
  164. package/dist/cjs/z-tree-list.cjs.entry.js +6 -3
  165. package/dist/cjs/z-tree-list.cjs.entry.js.map +1 -0
  166. package/dist/cjs/z-visually-hidden.cjs.entry.js +5 -2
  167. package/dist/cjs/z-visually-hidden.cjs.entry.js.map +1 -0
  168. package/dist/collection/beans/index.js +6 -0
  169. package/dist/collection/beans/index.js.map +1 -0
  170. package/dist/collection/collection-manifest.json +12 -11
  171. package/dist/collection/components/book-card/z-book-card/index.js +2 -8
  172. package/dist/collection/components/book-card/z-book-card/index.js.map +1 -0
  173. package/dist/collection/components/book-card/z-book-card/styles.css +9 -0
  174. package/dist/collection/components/book-card/z-book-card-app/index.js +2 -3
  175. package/dist/collection/components/book-card/z-book-card-app/index.js.map +1 -0
  176. package/dist/collection/components/book-card/z-book-card-app/styles.css +4 -0
  177. package/dist/collection/components/date-picker/utils.js +1 -0
  178. package/dist/collection/components/date-picker/utils.js.map +1 -0
  179. package/dist/collection/components/date-picker/z-date-picker/index.js +2 -1
  180. package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -0
  181. package/dist/collection/components/date-picker/z-range-picker/index.js +4 -3
  182. package/dist/collection/components/date-picker/z-range-picker/index.js.map +1 -0
  183. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +2 -54
  184. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +1 -0
  185. package/dist/collection/components/deprecated/z-app-header-deprecated/styles.css +49 -0
  186. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +2 -5
  187. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js.map +1 -0
  188. package/dist/collection/components/deprecated/z-book-card-deprecated/styles.css +6 -0
  189. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +2 -2
  190. package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +1 -0
  191. package/dist/collection/components/deprecated/z-menu-deprecated/styles.css +5 -2
  192. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +2 -1
  193. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +1 -0
  194. package/dist/collection/components/deprecated/z-section-title/index.js +2 -2
  195. package/dist/collection/components/deprecated/z-section-title/index.js.map +1 -0
  196. package/dist/collection/components/deprecated/z-section-title/styles.css +3 -0
  197. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +3 -2
  198. package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -0
  199. package/dist/collection/components/file-upload/z-file/index.js +2 -1
  200. package/dist/collection/components/file-upload/z-file/index.js.map +1 -0
  201. package/dist/collection/components/file-upload/z-file-upload/index.js +3 -2
  202. package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -0
  203. package/dist/collection/components/index.js +1 -0
  204. package/dist/collection/components/index.js.map +1 -0
  205. package/dist/collection/components/list/z-list/index.js +2 -1
  206. package/dist/collection/components/list/z-list/index.js.map +1 -0
  207. package/dist/collection/components/list/z-list-element/index.js +2 -1
  208. package/dist/collection/components/list/z-list-element/index.js.map +1 -0
  209. package/dist/collection/components/list/z-list-group/index.js +3 -2
  210. package/dist/collection/components/list/z-list-group/index.js.map +1 -0
  211. package/dist/collection/components/list/z-tree-list/index.js +2 -1
  212. package/dist/collection/components/list/z-tree-list/index.js.map +1 -0
  213. package/dist/collection/components/table/cells/z-td/index.js +2 -1
  214. package/dist/collection/components/table/cells/z-td/index.js.map +1 -0
  215. package/dist/collection/components/table/cells/z-th/index.js +2 -1
  216. package/dist/collection/components/table/cells/z-th/index.js.map +1 -0
  217. package/dist/collection/components/table/z-table/index.js +2 -2
  218. package/dist/collection/components/table/z-table/index.js.map +1 -0
  219. package/dist/collection/components/table/z-table/styles.css +3 -0
  220. package/dist/collection/components/table/z-tbody/index.js +2 -1
  221. package/dist/collection/components/table/z-tbody/index.js.map +1 -0
  222. package/dist/collection/components/table/z-tfoot/index.js +2 -1
  223. package/dist/collection/components/table/z-tfoot/index.js.map +1 -0
  224. package/dist/collection/components/table/z-thead/index.js +2 -1
  225. package/dist/collection/components/table/z-thead/index.js.map +1 -0
  226. package/dist/collection/components/table/z-tr/index.js +2 -1
  227. package/dist/collection/components/table/z-tr/index.js.map +1 -0
  228. package/dist/collection/components/table/z-tr/styles.css +2 -2
  229. package/dist/collection/components/z-accordion/index.js +4 -11
  230. package/dist/collection/components/z-accordion/index.js.map +1 -0
  231. package/dist/collection/components/z-accordion/styles.css +12 -0
  232. package/dist/collection/components/z-anchor-navigation/index.js +4 -3
  233. package/dist/collection/components/z-anchor-navigation/index.js.map +1 -0
  234. package/dist/collection/components/z-app-header/index.js +22 -8
  235. package/dist/collection/components/z-app-header/index.js.map +1 -0
  236. package/dist/collection/components/z-app-header/styles.css +12 -12
  237. package/dist/collection/components/z-aria-alert/index.js +2 -1
  238. package/dist/collection/components/z-aria-alert/index.js.map +1 -0
  239. package/dist/collection/components/z-avatar/index.js +3 -2
  240. package/dist/collection/components/z-avatar/index.js.map +1 -0
  241. package/dist/collection/components/z-book-cover/index.js +2 -5
  242. package/dist/collection/components/z-book-cover/index.js.map +1 -0
  243. package/dist/collection/components/z-book-cover/styles.css +6 -0
  244. package/dist/collection/components/z-breadcrumb/index.js +3 -2
  245. package/dist/collection/components/z-breadcrumb/index.js.map +1 -0
  246. package/dist/collection/components/z-button/index.js +3 -2
  247. package/dist/collection/components/z-button/index.js.map +1 -0
  248. package/dist/collection/components/z-button-sort/index.js +2 -1
  249. package/dist/collection/components/z-button-sort/index.js.map +1 -0
  250. package/dist/collection/components/z-card/index.js +2 -8
  251. package/dist/collection/components/z-card/index.js.map +1 -0
  252. package/dist/collection/components/z-card/styles.css +9 -0
  253. package/dist/collection/components/z-carousel/index.js +1 -2
  254. package/dist/collection/components/z-carousel/index.js.map +1 -0
  255. package/dist/collection/components/z-carousel/styles.css +7 -3
  256. package/dist/collection/components/z-chip/index.js +3 -2
  257. package/dist/collection/components/z-chip/index.js.map +1 -0
  258. package/dist/collection/components/z-color-picker/index.js +2 -1
  259. package/dist/collection/components/z-color-picker/index.js.map +1 -0
  260. package/dist/collection/components/z-combobox/index.js +17 -13
  261. package/dist/collection/components/z-combobox/index.js.map +1 -0
  262. package/dist/collection/components/z-cover-hero/index.js +3 -5
  263. package/dist/collection/components/z-cover-hero/index.js.map +1 -0
  264. package/dist/collection/components/z-cover-hero/styles.css +5 -0
  265. package/dist/collection/components/z-divider/index.js +2 -1
  266. package/dist/collection/components/z-divider/index.js.map +1 -0
  267. package/dist/collection/components/z-ghost-loading/index.js +2 -1
  268. package/dist/collection/components/z-ghost-loading/index.js.map +1 -0
  269. package/dist/collection/components/z-icon/index.js +32 -2
  270. package/dist/collection/components/z-icon/index.js.map +1 -0
  271. package/dist/collection/components/z-info-box/index.js +2 -1
  272. package/dist/collection/components/z-info-box/index.js.map +1 -0
  273. package/dist/collection/components/z-info-reveal/index.js +2 -5
  274. package/dist/collection/components/z-info-reveal/index.js.map +1 -0
  275. package/dist/collection/components/z-info-reveal/styles.css +7 -1
  276. package/dist/collection/components/z-input/index.js +51 -30
  277. package/dist/collection/components/z-input/index.js.map +1 -0
  278. package/dist/collection/components/z-input/styles-checkbox-radio.css +2 -0
  279. package/dist/collection/components/z-input/styles-text.css +5 -0
  280. package/dist/collection/components/z-input-message/index.js +2 -1
  281. package/dist/collection/components/z-input-message/index.js.map +1 -0
  282. package/dist/collection/components/z-input-range/index.js +438 -0
  283. package/dist/collection/components/z-input-range/index.js.map +1 -0
  284. package/dist/collection/components/z-input-range/styles.css +262 -0
  285. package/dist/collection/components/z-logo/index.js +2 -1
  286. package/dist/collection/components/z-logo/index.js.map +1 -0
  287. package/dist/collection/components/z-logo/styles.css +5 -0
  288. package/dist/collection/components/z-menu/index.js +1 -1
  289. package/dist/collection/components/z-menu/index.js.map +1 -0
  290. package/dist/collection/components/z-menu/styles.css +3 -0
  291. package/dist/collection/components/z-menu-section/index.js +2 -1
  292. package/dist/collection/components/z-menu-section/index.js.map +1 -0
  293. package/dist/collection/components/z-modal/index.js +17 -37
  294. package/dist/collection/components/z-modal/index.js.map +1 -0
  295. package/dist/collection/components/z-modal/styles.css +5 -2
  296. package/dist/collection/components/z-navigation-tabs/index.js +3 -4
  297. package/dist/collection/components/z-navigation-tabs/index.js.map +1 -0
  298. package/dist/collection/components/z-navigation-tabs/styles.css +4 -0
  299. package/dist/collection/components/z-notification/index.js +2 -4
  300. package/dist/collection/components/z-notification/index.js.map +1 -0
  301. package/dist/collection/components/z-notification/styles.css +5 -0
  302. package/dist/collection/components/z-offcanvas/index.js +43 -119
  303. package/dist/collection/components/z-offcanvas/index.js.map +1 -0
  304. package/dist/collection/components/z-offcanvas/styles.css +6 -0
  305. package/dist/collection/components/z-pagination/index.js +1 -2
  306. package/dist/collection/components/z-pagination/index.js.map +1 -0
  307. package/dist/collection/components/z-pagination/styles.css +6 -0
  308. package/dist/collection/components/z-panel-elem/index.js +3 -2
  309. package/dist/collection/components/z-panel-elem/index.js.map +1 -0
  310. package/dist/collection/components/z-popover/index.js +2 -6
  311. package/dist/collection/components/z-popover/index.js.map +1 -0
  312. package/dist/collection/components/z-popover/styles.css +6 -0
  313. package/dist/collection/components/z-result-card/index.js +1 -0
  314. package/dist/collection/components/z-result-card/index.js.map +1 -0
  315. package/dist/collection/components/z-result-card/styles.css +8 -5
  316. package/dist/collection/components/z-searchbar/index.js +4 -8
  317. package/dist/collection/components/z-searchbar/index.js.map +1 -0
  318. package/dist/collection/components/z-searchbar/styles.css +5 -0
  319. package/dist/collection/components/z-select/index.js +9 -12
  320. package/dist/collection/components/z-select/index.js.map +1 -0
  321. package/dist/collection/components/z-skip-to-content/index.js +2 -1
  322. package/dist/collection/components/z-skip-to-content/index.js.map +1 -0
  323. package/dist/collection/components/z-stepper/index.js +2 -1
  324. package/dist/collection/components/z-stepper/index.js.map +1 -0
  325. package/dist/collection/components/z-stepper-item/index.js +2 -1
  326. package/dist/collection/components/z-stepper-item/index.js.map +1 -0
  327. package/dist/collection/components/z-tag/index.js +3 -4
  328. package/dist/collection/components/z-tag/index.js.map +1 -0
  329. package/dist/collection/components/z-tag/styles.css +5 -0
  330. package/dist/collection/components/z-toast-notification/index.js +4 -3
  331. package/dist/collection/components/z-toast-notification/index.js.map +1 -0
  332. package/dist/collection/components/z-toast-notification-list/index.js +2 -1
  333. package/dist/collection/components/z-toast-notification-list/index.js.map +1 -0
  334. package/dist/collection/components/z-toggle-button/index.js +3 -2
  335. package/dist/collection/components/z-toggle-button/index.js.map +1 -0
  336. package/dist/collection/components/z-toggle-switch/index.js +4 -3
  337. package/dist/collection/components/z-toggle-switch/index.js.map +1 -0
  338. package/dist/collection/components/z-tool/index.js +4 -3
  339. package/dist/collection/components/z-tool/index.js.map +1 -0
  340. package/dist/collection/components/z-toolbar/index.js +2 -2
  341. package/dist/collection/components/z-toolbar/index.js.map +1 -0
  342. package/dist/collection/components/z-toolbar/styles.css +4 -0
  343. package/dist/collection/components/z-tooltip/index.js +2 -5
  344. package/dist/collection/components/z-tooltip/index.js.map +1 -0
  345. package/dist/collection/components/z-tooltip/styles.css +6 -0
  346. package/dist/collection/components/z-visually-hidden/index.js +2 -1
  347. package/dist/collection/components/z-visually-hidden/index.js.map +1 -0
  348. package/dist/collection/constants/breakpoints.js +1 -0
  349. package/dist/collection/constants/breakpoints.js.map +1 -0
  350. package/dist/collection/constants/icons.js +1 -0
  351. package/dist/collection/constants/icons.js.map +1 -0
  352. package/dist/collection/constants/iconset.js +7 -6
  353. package/dist/collection/constants/iconset.js.map +1 -0
  354. package/dist/collection/index.js +1 -0
  355. package/dist/collection/index.js.map +1 -0
  356. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +3 -2
  357. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +1 -0
  358. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +2 -1
  359. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +1 -0
  360. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +2 -1
  361. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +1 -0
  362. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +2 -1
  363. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +1 -0
  364. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +2 -1
  365. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +1 -0
  366. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +2 -1
  367. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +1 -0
  368. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +2 -1
  369. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +1 -0
  370. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +2 -1
  371. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +1 -0
  372. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +2 -1
  373. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +1 -0
  374. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +3 -2
  375. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +1 -0
  376. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +2 -1
  377. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +1 -0
  378. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +2 -1
  379. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +1 -0
  380. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +2 -1
  381. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +1 -0
  382. package/dist/collection/snowflakes/myz/z-alert/index.js +2 -1
  383. package/dist/collection/snowflakes/myz/z-alert/index.js.map +1 -0
  384. package/dist/collection/snowflakes/myz/z-otp/index.js +3 -2
  385. package/dist/collection/snowflakes/myz/z-otp/index.js.map +1 -0
  386. package/dist/collection/snowflakes/myz/z-slideshow/index.js +1 -0
  387. package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +1 -0
  388. package/dist/collection/utils/focus-trap-controller.js +100 -0
  389. package/dist/collection/utils/focus-trap-controller.js.map +1 -0
  390. package/dist/collection/utils/reactive-controller.js +46 -0
  391. package/dist/collection/utils/reactive-controller.js.map +1 -0
  392. package/dist/collection/utils/storybook-utils.js +8 -0
  393. package/dist/collection/utils/storybook-utils.js.map +1 -0
  394. package/dist/collection/utils/utils.js +65 -1
  395. package/dist/collection/utils/utils.js.map +1 -0
  396. package/dist/components/_commonjsHelpers.js +2 -1
  397. package/dist/components/_commonjsHelpers.js.map +1 -0
  398. package/dist/components/breakpoints.js +2 -1
  399. package/dist/components/breakpoints.js.map +1 -0
  400. package/dist/components/iconset.js +2 -1
  401. package/dist/components/iconset.js.map +1 -0
  402. package/dist/components/index.d.ts +2 -0
  403. package/dist/components/index.js +2 -1
  404. package/dist/components/index.js.map +1 -0
  405. package/dist/components/index10.js +2 -1
  406. package/dist/components/index10.js.map +1 -0
  407. package/dist/components/index11.js +2 -1
  408. package/dist/components/index11.js.map +1 -0
  409. package/dist/components/index12.js +2 -1
  410. package/dist/components/index12.js.map +1 -0
  411. package/dist/components/index13.js +2 -1
  412. package/dist/components/index13.js.map +1 -0
  413. package/dist/components/index14.js +2 -1
  414. package/dist/components/index14.js.map +1 -0
  415. package/dist/components/index15.js +2 -1
  416. package/dist/components/index15.js.map +1 -0
  417. package/dist/components/index16.js +2 -1
  418. package/dist/components/index16.js.map +1 -0
  419. package/dist/components/index17.js +2 -1
  420. package/dist/components/index17.js.map +1 -0
  421. package/dist/components/index18.js +2 -1
  422. package/dist/components/index18.js.map +1 -0
  423. package/dist/components/index19.js +2 -1
  424. package/dist/components/index19.js.map +1 -0
  425. package/dist/components/index2.js +2 -1
  426. package/dist/components/index2.js.map +1 -0
  427. package/dist/components/index20.js +2 -1
  428. package/dist/components/index20.js.map +1 -0
  429. package/dist/components/index21.js +2 -1
  430. package/dist/components/index21.js.map +1 -0
  431. package/dist/components/index22.js +2 -1
  432. package/dist/components/index22.js.map +1 -0
  433. package/dist/components/index23.js +2 -1
  434. package/dist/components/index23.js.map +1 -0
  435. package/dist/components/index24.js +2 -1
  436. package/dist/components/index24.js.map +1 -0
  437. package/dist/components/index25.js +2 -1
  438. package/dist/components/index25.js.map +1 -0
  439. package/dist/components/index26.js +2 -1
  440. package/dist/components/index26.js.map +1 -0
  441. package/dist/components/index27.js +2 -1
  442. package/dist/components/index27.js.map +1 -0
  443. package/dist/components/index3.js +2 -1
  444. package/dist/components/index3.js.map +1 -0
  445. package/dist/components/index4.js +2 -1
  446. package/dist/components/index4.js.map +1 -0
  447. package/dist/components/index5.js +2 -1
  448. package/dist/components/index5.js.map +1 -0
  449. package/dist/components/index6.js +2 -1
  450. package/dist/components/index6.js.map +1 -0
  451. package/dist/components/index7.js +2 -1
  452. package/dist/components/index7.js.map +1 -0
  453. package/dist/components/index8.js +2 -1
  454. package/dist/components/index8.js.map +1 -0
  455. package/dist/components/index9.js +2 -1
  456. package/dist/components/index9.js.map +1 -0
  457. package/dist/components/reactive-controller.js +6 -0
  458. package/dist/components/reactive-controller.js.map +1 -0
  459. package/dist/components/utils.js +7 -1
  460. package/dist/components/utils.js.map +1 -0
  461. package/dist/components/utils2.js +2 -1
  462. package/dist/components/utils2.js.map +1 -0
  463. package/dist/components/z-accordion.js +2 -1
  464. package/dist/components/z-accordion.js.map +1 -0
  465. package/dist/components/z-alert.js +2 -1
  466. package/dist/components/z-alert.js.map +1 -0
  467. package/dist/components/z-anchor-navigation.js +2 -1
  468. package/dist/components/z-anchor-navigation.js.map +1 -0
  469. package/dist/components/z-app-header-deprecated.js +2 -1
  470. package/dist/components/z-app-header-deprecated.js.map +1 -0
  471. package/dist/components/z-app-header.js +2 -1
  472. package/dist/components/z-app-header.js.map +1 -0
  473. package/dist/components/z-aria-alert.js +2 -1
  474. package/dist/components/z-aria-alert.js.map +1 -0
  475. package/dist/components/z-avatar.js +2 -1
  476. package/dist/components/z-avatar.js.map +1 -0
  477. package/dist/components/z-book-card-app.js +2 -1
  478. package/dist/components/z-book-card-app.js.map +1 -0
  479. package/dist/components/z-book-card-deprecated.js +2 -1
  480. package/dist/components/z-book-card-deprecated.js.map +1 -0
  481. package/dist/components/z-book-card.js +2 -1
  482. package/dist/components/z-book-card.js.map +1 -0
  483. package/dist/components/z-book-cover.js +2 -1
  484. package/dist/components/z-book-cover.js.map +1 -0
  485. package/dist/components/z-breadcrumb.js +2 -1
  486. package/dist/components/z-breadcrumb.js.map +1 -0
  487. package/dist/components/z-button-sort.js +2 -1
  488. package/dist/components/z-button-sort.js.map +1 -0
  489. package/dist/components/z-button.js +2 -1
  490. package/dist/components/z-button.js.map +1 -0
  491. package/dist/components/z-card.js +2 -1
  492. package/dist/components/z-card.js.map +1 -0
  493. package/dist/components/z-carousel.js +2 -1
  494. package/dist/components/z-carousel.js.map +1 -0
  495. package/dist/components/z-chip.js +2 -1
  496. package/dist/components/z-chip.js.map +1 -0
  497. package/dist/components/z-color-picker.js +2 -1
  498. package/dist/components/z-color-picker.js.map +1 -0
  499. package/dist/components/z-combobox.js +2 -1
  500. package/dist/components/z-combobox.js.map +1 -0
  501. package/dist/components/z-cover-hero.js +2 -1
  502. package/dist/components/z-cover-hero.js.map +1 -0
  503. package/dist/components/z-date-picker.js +3 -2
  504. package/dist/components/z-date-picker.js.map +1 -0
  505. package/dist/components/z-divider.js +2 -1
  506. package/dist/components/z-divider.js.map +1 -0
  507. package/dist/components/z-dragdrop-area.js +2 -1
  508. package/dist/components/z-dragdrop-area.js.map +1 -0
  509. package/dist/components/z-file-upload.js +2 -1
  510. package/dist/components/z-file-upload.js.map +1 -0
  511. package/dist/components/z-file.js +2 -1
  512. package/dist/components/z-file.js.map +1 -0
  513. package/dist/components/z-ghost-loading.js +2 -1
  514. package/dist/components/z-ghost-loading.js.map +1 -0
  515. package/dist/components/z-icon.js +2 -1
  516. package/dist/components/z-icon.js.map +1 -0
  517. package/dist/components/z-info-box.js +2 -1
  518. package/dist/components/z-info-box.js.map +1 -0
  519. package/dist/components/z-info-reveal.js +2 -1
  520. package/dist/components/z-info-reveal.js.map +1 -0
  521. package/dist/components/z-input-message.js +2 -1
  522. package/dist/components/z-input-message.js.map +1 -0
  523. package/dist/components/z-input-range.d.ts +11 -0
  524. package/dist/components/z-input-range.js +2 -0
  525. package/dist/components/z-input-range.js.map +1 -0
  526. package/dist/components/z-input.js +2 -1
  527. package/dist/components/z-input.js.map +1 -0
  528. package/dist/components/z-list-element.js +2 -1
  529. package/dist/components/z-list-element.js.map +1 -0
  530. package/dist/components/z-list-group.js +2 -1
  531. package/dist/components/z-list-group.js.map +1 -0
  532. package/dist/components/z-list.js +2 -1
  533. package/dist/components/z-list.js.map +1 -0
  534. package/dist/components/z-logo.js +2 -1
  535. package/dist/components/z-logo.js.map +1 -0
  536. package/dist/components/z-menu-deprecated.js +2 -1
  537. package/dist/components/z-menu-deprecated.js.map +1 -0
  538. package/dist/components/z-menu-section-deprecated.js +2 -1
  539. package/dist/components/z-menu-section-deprecated.js.map +1 -0
  540. package/dist/components/z-menu-section.js +2 -1
  541. package/dist/components/z-menu-section.js.map +1 -0
  542. package/dist/components/z-menu.js +2 -1
  543. package/dist/components/z-menu.js.map +1 -0
  544. package/dist/components/z-modal.js +2 -1
  545. package/dist/components/z-modal.js.map +1 -0
  546. package/dist/components/z-myz-card-alert.js +2 -1
  547. package/dist/components/z-myz-card-alert.js.map +1 -0
  548. package/dist/components/z-myz-card-body.js +2 -1
  549. package/dist/components/z-myz-card-body.js.map +1 -0
  550. package/dist/components/z-myz-card-cover.js +2 -1
  551. package/dist/components/z-myz-card-cover.js.map +1 -0
  552. package/dist/components/z-myz-card-dictionary.js +2 -1
  553. package/dist/components/z-myz-card-dictionary.js.map +1 -0
  554. package/dist/components/z-myz-card-footer-sections.js +2 -1
  555. package/dist/components/z-myz-card-footer-sections.js.map +1 -0
  556. package/dist/components/z-myz-card-footer.js +2 -1
  557. package/dist/components/z-myz-card-footer.js.map +1 -0
  558. package/dist/components/z-myz-card-header.js +2 -1
  559. package/dist/components/z-myz-card-header.js.map +1 -0
  560. package/dist/components/z-myz-card-icon.js +2 -1
  561. package/dist/components/z-myz-card-icon.js.map +1 -0
  562. package/dist/components/z-myz-card-info.js +2 -1
  563. package/dist/components/z-myz-card-info.js.map +1 -0
  564. package/dist/components/z-myz-card-list.js +2 -1
  565. package/dist/components/z-myz-card-list.js.map +1 -0
  566. package/dist/components/z-myz-card.js +2 -1
  567. package/dist/components/z-myz-card.js.map +1 -0
  568. package/dist/components/z-myz-list-item.js +2 -1
  569. package/dist/components/z-myz-list-item.js.map +1 -0
  570. package/dist/components/z-myz-list.js +2 -1
  571. package/dist/components/z-myz-list.js.map +1 -0
  572. package/dist/components/z-navigation-tabs.js +2 -1
  573. package/dist/components/z-navigation-tabs.js.map +1 -0
  574. package/dist/components/z-notification.js +2 -1
  575. package/dist/components/z-notification.js.map +1 -0
  576. package/dist/components/z-offcanvas.js +2 -1
  577. package/dist/components/z-offcanvas.js.map +1 -0
  578. package/dist/components/z-otp.js +2 -1
  579. package/dist/components/z-otp.js.map +1 -0
  580. package/dist/components/z-pagination.js +2 -1
  581. package/dist/components/z-pagination.js.map +1 -0
  582. package/dist/components/z-panel-elem.js +2 -1
  583. package/dist/components/z-panel-elem.js.map +1 -0
  584. package/dist/components/z-popover.js +2 -1
  585. package/dist/components/z-popover.js.map +1 -0
  586. package/dist/components/z-range-picker.js +2 -1
  587. package/dist/components/z-range-picker.js.map +1 -0
  588. package/dist/components/z-result-card.js +2 -1
  589. package/dist/components/z-result-card.js.map +1 -0
  590. package/dist/components/z-searchbar.js +2 -1
  591. package/dist/components/z-searchbar.js.map +1 -0
  592. package/dist/components/z-section-title.js +2 -1
  593. package/dist/components/z-section-title.js.map +1 -0
  594. package/dist/components/z-select.js +2 -1
  595. package/dist/components/z-select.js.map +1 -0
  596. package/dist/components/z-skip-to-content.js +2 -1
  597. package/dist/components/z-skip-to-content.js.map +1 -0
  598. package/dist/components/z-slideshow.js +2 -1
  599. package/dist/components/z-slideshow.js.map +1 -0
  600. package/dist/components/z-stepper-item.js +2 -1
  601. package/dist/components/z-stepper-item.js.map +1 -0
  602. package/dist/components/z-stepper.js +2 -1
  603. package/dist/components/z-stepper.js.map +1 -0
  604. package/dist/components/z-table.js +2 -1
  605. package/dist/components/z-table.js.map +1 -0
  606. package/dist/components/z-tag.js +2 -1
  607. package/dist/components/z-tag.js.map +1 -0
  608. package/dist/components/z-tbody.js +2 -1
  609. package/dist/components/z-tbody.js.map +1 -0
  610. package/dist/components/z-td.js +2 -1
  611. package/dist/components/z-td.js.map +1 -0
  612. package/dist/components/z-tfoot.js +2 -1
  613. package/dist/components/z-tfoot.js.map +1 -0
  614. package/dist/components/z-th.js +2 -1
  615. package/dist/components/z-th.js.map +1 -0
  616. package/dist/components/z-thead.js +2 -1
  617. package/dist/components/z-thead.js.map +1 -0
  618. package/dist/components/z-toast-notification-list.js +2 -1
  619. package/dist/components/z-toast-notification-list.js.map +1 -0
  620. package/dist/components/z-toast-notification.js +8 -2
  621. package/dist/components/z-toast-notification.js.map +1 -0
  622. package/dist/components/z-toggle-button.js +2 -1
  623. package/dist/components/z-toggle-button.js.map +1 -0
  624. package/dist/components/z-toggle-switch.js +2 -1
  625. package/dist/components/z-toggle-switch.js.map +1 -0
  626. package/dist/components/z-tool.js +2 -1
  627. package/dist/components/z-tool.js.map +1 -0
  628. package/dist/components/z-toolbar.js +2 -1
  629. package/dist/components/z-toolbar.js.map +1 -0
  630. package/dist/components/z-tooltip.js +2 -1
  631. package/dist/components/z-tooltip.js.map +1 -0
  632. package/dist/components/z-tr.js +2 -1
  633. package/dist/components/z-tr.js.map +1 -0
  634. package/dist/components/z-tree-list.js +2 -1
  635. package/dist/components/z-tree-list.js.map +1 -0
  636. package/dist/components/z-visually-hidden.js +2 -1
  637. package/dist/components/z-visually-hidden.js.map +1 -0
  638. package/dist/esm/_commonjsHelpers-B85MJLTf.js +3 -0
  639. package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +1 -0
  640. package/dist/esm/breakpoints-Q-tWjk7P.js +3 -0
  641. package/dist/esm/breakpoints-Q-tWjk7P.js.map +1 -0
  642. package/dist/esm/iconset-AwzX9V8L.js +1027 -0
  643. package/dist/esm/iconset-AwzX9V8L.js.map +1 -0
  644. package/dist/esm/index-B3nR3-Jw.js +413 -0
  645. package/dist/esm/index-B3nR3-Jw.js.map +1 -0
  646. package/dist/esm/index-BEHxru6n.js +2697 -0
  647. package/dist/esm/index-BEHxru6n.js.map +1 -0
  648. package/dist/esm/index.js +6 -3
  649. package/dist/esm/index.js.map +1 -0
  650. package/dist/esm/loader.js +6 -3
  651. package/dist/esm/loader.js.map +1 -0
  652. package/dist/esm/reactive-controller-DXvzHFid.js +1443 -0
  653. package/dist/esm/reactive-controller-DXvzHFid.js.map +1 -0
  654. package/dist/esm/utils-C9lc3rtK.js +896 -0
  655. package/dist/esm/utils-C9lc3rtK.js.map +1 -0
  656. package/dist/esm/utils-DP4zBIll.js +2715 -0
  657. package/dist/esm/utils-DP4zBIll.js.map +1 -0
  658. package/dist/esm/web-components-library.js +6 -3
  659. package/dist/esm/web-components-library.js.map +1 -0
  660. package/dist/esm/z-accordion.entry.js +6 -3
  661. package/dist/esm/z-accordion.entry.js.map +1 -0
  662. package/dist/esm/z-alert.entry.js +5 -2
  663. package/dist/esm/z-alert.entry.js.map +1 -0
  664. package/dist/esm/z-anchor-navigation.entry.js +7 -4
  665. package/dist/esm/z-anchor-navigation.entry.js.map +1 -0
  666. package/dist/esm/z-app-header-deprecated.entry.js +6 -3
  667. package/dist/esm/z-app-header-deprecated.entry.js.map +1 -0
  668. package/dist/esm/z-app-header_12.entry.js +101 -135
  669. package/dist/esm/z-app-header_12.entry.js.map +1 -0
  670. package/dist/esm/z-aria-alert.entry.js +6 -3
  671. package/dist/esm/z-aria-alert.entry.js.map +1 -0
  672. package/dist/esm/z-avatar.entry.js +7 -4
  673. package/dist/esm/z-avatar.entry.js.map +1 -0
  674. package/dist/esm/z-book-card-app.entry.js +6 -3
  675. package/dist/esm/z-book-card-app.entry.js.map +1 -0
  676. package/dist/esm/z-book-card-deprecated.entry.js +7 -4
  677. package/dist/esm/z-book-card-deprecated.entry.js.map +1 -0
  678. package/dist/esm/z-book-card.entry.js +6 -3
  679. package/dist/esm/z-book-card.entry.js.map +1 -0
  680. package/dist/esm/z-book-cover.entry.js +5 -2
  681. package/dist/esm/z-book-cover.entry.js.map +1 -0
  682. package/dist/esm/z-breadcrumb.entry.js +8 -5
  683. package/dist/esm/z-breadcrumb.entry.js.map +1 -0
  684. package/dist/esm/z-button-sort.entry.js +5 -2
  685. package/dist/esm/z-button-sort.entry.js.map +1 -0
  686. package/dist/esm/z-card.entry.js +5 -2
  687. package/dist/esm/z-card.entry.js.map +1 -0
  688. package/dist/esm/z-carousel.entry.js +6 -3
  689. package/dist/esm/z-carousel.entry.js.map +1 -0
  690. package/dist/esm/z-chip.entry.js +7 -4
  691. package/dist/esm/z-chip.entry.js.map +1 -0
  692. package/dist/esm/z-color-picker.entry.js +7 -4
  693. package/dist/esm/z-color-picker.entry.js.map +1 -0
  694. package/dist/esm/z-combobox.entry.js +21 -15
  695. package/dist/esm/z-combobox.entry.js.map +1 -0
  696. package/dist/esm/z-cover-hero.entry.js +7 -4
  697. package/dist/esm/z-cover-hero.entry.js.map +1 -0
  698. package/dist/esm/z-date-picker.entry.js +7 -4
  699. package/dist/esm/z-date-picker.entry.js.map +1 -0
  700. package/dist/esm/z-dragdrop-area_2.entry.js +25 -41
  701. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -0
  702. package/dist/esm/z-file-upload.entry.js +7 -4
  703. package/dist/esm/z-file-upload.entry.js.map +1 -0
  704. package/dist/esm/z-file.entry.js +6 -3
  705. package/dist/esm/z-file.entry.js.map +1 -0
  706. package/dist/esm/z-ghost-loading.entry.js +5 -2
  707. package/dist/esm/z-ghost-loading.entry.js.map +1 -0
  708. package/dist/esm/z-info-box.entry.js +5 -2
  709. package/dist/esm/z-info-box.entry.js.map +1 -0
  710. package/dist/esm/z-info-reveal.entry.js +6 -3
  711. package/dist/esm/z-info-reveal.entry.js.map +1 -0
  712. package/dist/esm/z-input-range.entry.js +143 -0
  713. package/dist/esm/z-input-range.entry.js.map +1 -0
  714. package/dist/esm/z-logo.entry.js +6 -3
  715. package/dist/esm/z-logo.entry.js.map +1 -0
  716. package/dist/esm/z-menu-deprecated.entry.js +6 -3
  717. package/dist/esm/z-menu-deprecated.entry.js.map +1 -0
  718. package/dist/esm/z-menu-section-deprecated.entry.js +5 -2
  719. package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -0
  720. package/dist/esm/z-menu-section.entry.js +6 -3
  721. package/dist/esm/z-menu-section.entry.js.map +1 -0
  722. package/dist/esm/z-menu.entry.js +6 -3
  723. package/dist/esm/z-menu.entry.js.map +1 -0
  724. package/dist/esm/z-myz-card-alert.entry.js +6 -3
  725. package/dist/esm/z-myz-card-alert.entry.js.map +1 -0
  726. package/dist/esm/z-myz-card-dictionary.entry.js +6 -3
  727. package/dist/esm/z-myz-card-dictionary.entry.js.map +1 -0
  728. package/dist/esm/z-myz-card-footer-sections.entry.js +5 -2
  729. package/dist/esm/z-myz-card-footer-sections.entry.js.map +1 -0
  730. package/dist/esm/z-myz-card-footer.entry.js +6 -3
  731. package/dist/esm/z-myz-card-footer.entry.js.map +1 -0
  732. package/dist/esm/z-myz-card-icon.entry.js +5 -2
  733. package/dist/esm/z-myz-card-icon.entry.js.map +1 -0
  734. package/dist/esm/z-myz-card-info.entry.js +7 -4
  735. package/dist/esm/z-myz-card-info.entry.js.map +1 -0
  736. package/dist/esm/z-myz-card-list.entry.js +5 -2
  737. package/dist/esm/z-myz-card-list.entry.js.map +1 -0
  738. package/dist/esm/z-myz-card_4.entry.js +9 -6
  739. package/dist/esm/z-myz-card_4.entry.js.map +1 -0
  740. package/dist/esm/z-myz-list-item.entry.js +7 -4
  741. package/dist/esm/z-myz-list-item.entry.js.map +1 -0
  742. package/dist/esm/z-myz-list.entry.js +5 -2
  743. package/dist/esm/z-myz-list.entry.js.map +1 -0
  744. package/dist/esm/z-navigation-tabs.entry.js +7 -4
  745. package/dist/esm/z-navigation-tabs.entry.js.map +1 -0
  746. package/dist/esm/z-notification.entry.js +5 -2
  747. package/dist/esm/z-notification.entry.js.map +1 -0
  748. package/dist/esm/z-otp.entry.js +7 -4
  749. package/dist/esm/z-otp.entry.js.map +1 -0
  750. package/dist/esm/z-pagination.entry.js +5 -2
  751. package/dist/esm/z-pagination.entry.js.map +1 -0
  752. package/dist/esm/z-panel-elem.entry.js +6 -3
  753. package/dist/esm/z-panel-elem.entry.js.map +1 -0
  754. package/dist/esm/z-popover.entry.js +7 -4
  755. package/dist/esm/z-popover.entry.js.map +1 -0
  756. package/dist/esm/z-range-picker.entry.js +9 -6
  757. package/dist/esm/z-range-picker.entry.js.map +1 -0
  758. package/dist/esm/z-result-card.entry.js +5 -2
  759. package/dist/esm/z-result-card.entry.js.map +1 -0
  760. package/dist/esm/z-section-title.entry.js +6 -3
  761. package/dist/esm/z-section-title.entry.js.map +1 -0
  762. package/dist/esm/z-select.entry.js +13 -14
  763. package/dist/esm/z-select.entry.js.map +1 -0
  764. package/dist/esm/z-skip-to-content.entry.js +7 -4
  765. package/dist/esm/z-skip-to-content.entry.js.map +1 -0
  766. package/dist/esm/z-slideshow.entry.js +6 -3
  767. package/dist/esm/z-slideshow.entry.js.map +1 -0
  768. package/dist/esm/z-stepper-item.entry.js +5 -2
  769. package/dist/esm/z-stepper-item.entry.js.map +1 -0
  770. package/dist/esm/z-stepper.entry.js +5 -2
  771. package/dist/esm/z-stepper.entry.js.map +1 -0
  772. package/dist/esm/z-table.entry.js +7 -4
  773. package/dist/esm/z-table.entry.js.map +1 -0
  774. package/dist/esm/z-tbody.entry.js +5 -2
  775. package/dist/esm/z-tbody.entry.js.map +1 -0
  776. package/dist/esm/z-td.entry.js +6 -3
  777. package/dist/esm/z-td.entry.js.map +1 -0
  778. package/dist/esm/z-tfoot.entry.js +5 -2
  779. package/dist/esm/z-tfoot.entry.js.map +1 -0
  780. package/dist/esm/z-th.entry.js +6 -3
  781. package/dist/esm/z-th.entry.js.map +1 -0
  782. package/dist/esm/z-thead.entry.js +5 -2
  783. package/dist/esm/z-thead.entry.js.map +1 -0
  784. package/dist/esm/z-toast-notification-list.entry.js +6 -3
  785. package/dist/esm/z-toast-notification-list.entry.js.map +1 -0
  786. package/dist/esm/z-toast-notification.entry.js +8 -5
  787. package/dist/esm/z-toast-notification.entry.js.map +1 -0
  788. package/dist/esm/z-toggle-button.entry.js +6 -3
  789. package/dist/esm/z-toggle-button.entry.js.map +1 -0
  790. package/dist/esm/z-toggle-switch.entry.js +9 -6
  791. package/dist/esm/z-toggle-switch.entry.js.map +1 -0
  792. package/dist/esm/z-tool.entry.js +8 -5
  793. package/dist/esm/z-tool.entry.js.map +1 -0
  794. package/dist/esm/z-toolbar.entry.js +6 -3
  795. package/dist/esm/z-toolbar.entry.js.map +1 -0
  796. package/dist/esm/z-tooltip.entry.js +6 -3
  797. package/dist/esm/z-tooltip.entry.js.map +1 -0
  798. package/dist/esm/z-tr.entry.js +8 -5
  799. package/dist/esm/z-tr.entry.js.map +1 -0
  800. package/dist/esm/z-tree-list.entry.js +6 -3
  801. package/dist/esm/z-tree-list.entry.js.map +1 -0
  802. package/dist/esm/z-visually-hidden.entry.js +5 -2
  803. package/dist/esm/z-visually-hidden.entry.js.map +1 -0
  804. package/dist/types/beans/index.d.ts +4 -0
  805. package/dist/types/components/book-card/z-book-card/index.d.ts +0 -7
  806. package/dist/types/components/book-card/z-book-card-app/index.d.ts +0 -2
  807. package/dist/types/components/deprecated/z-app-header-deprecated/index.d.ts +0 -53
  808. package/dist/types/components/deprecated/z-book-card-deprecated/index.d.ts +0 -4
  809. package/dist/types/components/deprecated/z-menu-deprecated/index.d.ts +0 -1
  810. package/dist/types/components/deprecated/z-section-title/index.d.ts +0 -1
  811. package/dist/types/components/table/z-table/index.d.ts +0 -1
  812. package/dist/types/components/z-accordion/index.d.ts +2 -10
  813. package/dist/types/components/z-anchor-navigation/index.d.ts +1 -1
  814. package/dist/types/components/z-app-header/index.d.ts +4 -6
  815. package/dist/types/components/z-book-cover/index.d.ts +0 -4
  816. package/dist/types/components/z-button/index.d.ts +1 -1
  817. package/dist/types/components/z-card/index.d.ts +1 -8
  818. package/dist/types/components/z-carousel/index.d.ts +0 -2
  819. package/dist/types/components/z-combobox/index.d.ts +1 -0
  820. package/dist/types/components/z-cover-hero/index.d.ts +0 -3
  821. package/dist/types/components/z-icon/index.d.ts +13 -0
  822. package/dist/types/components/z-info-reveal/index.d.ts +0 -4
  823. package/dist/types/components/z-input/index.d.ts +6 -4
  824. package/dist/types/components/z-input-range/index.d.ts +83 -0
  825. package/dist/types/components/z-menu/index.d.ts +0 -1
  826. package/dist/types/components/z-modal/index.d.ts +4 -11
  827. package/dist/types/components/z-navigation-tabs/index.d.ts +0 -2
  828. package/dist/types/components/z-notification/index.d.ts +0 -3
  829. package/dist/types/components/z-offcanvas/index.d.ts +12 -37
  830. package/dist/types/components/z-pagination/index.d.ts +0 -2
  831. package/dist/types/components/z-popover/index.d.ts +0 -5
  832. package/dist/types/components/z-searchbar/index.d.ts +0 -5
  833. package/dist/types/components/z-select/index.d.ts +0 -1
  834. package/dist/types/components/z-tag/index.d.ts +0 -2
  835. package/dist/types/components/z-toolbar/index.d.ts +0 -1
  836. package/dist/types/components/z-tooltip/index.d.ts +0 -4
  837. package/dist/types/components.d.ts +213 -606
  838. package/dist/types/constants/iconset.d.ts +4 -4
  839. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +1 -1
  840. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +1 -1
  841. package/dist/types/utils/focus-trap-controller.d.ts +53 -0
  842. package/dist/types/utils/reactive-controller.d.ts +39 -0
  843. package/dist/types/utils/storybook-utils.d.ts +7 -2
  844. package/dist/types/utils/utils.d.ts +12 -0
  845. package/dist/web-components-library/index.esm.js +2 -1
  846. package/dist/web-components-library/index.esm.js.map +1 -0
  847. package/dist/web-components-library/p-0a10c7d7.entry.js +2 -0
  848. package/dist/web-components-library/p-0a10c7d7.entry.js.map +1 -0
  849. package/dist/web-components-library/p-0de3e2fa.entry.js +2 -0
  850. package/dist/web-components-library/p-0de3e2fa.entry.js.map +1 -0
  851. package/dist/web-components-library/p-0eb833b6.entry.js +2 -0
  852. package/dist/web-components-library/p-0eb833b6.entry.js.map +1 -0
  853. package/dist/web-components-library/p-17a9c2b3.entry.js +2 -0
  854. package/dist/web-components-library/p-17a9c2b3.entry.js.map +1 -0
  855. package/dist/web-components-library/p-235a1c1d.entry.js +2 -0
  856. package/dist/web-components-library/p-235a1c1d.entry.js.map +1 -0
  857. package/dist/web-components-library/p-286690fd.entry.js +2 -0
  858. package/dist/web-components-library/p-286690fd.entry.js.map +1 -0
  859. package/dist/web-components-library/p-288c1f55.entry.js +2 -0
  860. package/dist/web-components-library/p-288c1f55.entry.js.map +1 -0
  861. package/dist/web-components-library/p-2b05eaef.entry.js +2 -0
  862. package/dist/web-components-library/p-2b05eaef.entry.js.map +1 -0
  863. package/dist/web-components-library/p-2c63a798.entry.js +2 -0
  864. package/dist/web-components-library/p-2c63a798.entry.js.map +1 -0
  865. package/dist/web-components-library/p-315ac39c.entry.js +2 -0
  866. package/dist/web-components-library/p-315ac39c.entry.js.map +1 -0
  867. package/dist/web-components-library/p-35653b5e.entry.js +2 -0
  868. package/dist/web-components-library/p-35653b5e.entry.js.map +1 -0
  869. package/dist/web-components-library/p-38e4e01f.entry.js +2 -0
  870. package/dist/web-components-library/p-38e4e01f.entry.js.map +1 -0
  871. package/dist/web-components-library/p-3b3e1ffb.entry.js +2 -0
  872. package/dist/web-components-library/p-3b3e1ffb.entry.js.map +1 -0
  873. package/dist/web-components-library/p-3b7f5d80.entry.js +2 -0
  874. package/dist/web-components-library/p-3b7f5d80.entry.js.map +1 -0
  875. package/dist/web-components-library/p-40694478.entry.js +2 -0
  876. package/dist/web-components-library/p-40694478.entry.js.map +1 -0
  877. package/dist/web-components-library/p-440e5b62.entry.js +2 -0
  878. package/dist/web-components-library/p-440e5b62.entry.js.map +1 -0
  879. package/dist/web-components-library/p-44410388.entry.js +2 -0
  880. package/dist/web-components-library/p-44410388.entry.js.map +1 -0
  881. package/dist/web-components-library/p-508eb530.entry.js +2 -0
  882. package/dist/web-components-library/p-508eb530.entry.js.map +1 -0
  883. package/dist/web-components-library/p-50a09bf1.entry.js +2 -0
  884. package/dist/web-components-library/p-50a09bf1.entry.js.map +1 -0
  885. package/dist/web-components-library/p-54f98f8e.entry.js +2 -0
  886. package/dist/web-components-library/p-54f98f8e.entry.js.map +1 -0
  887. package/dist/web-components-library/p-5a0424cd.entry.js +2 -0
  888. package/dist/web-components-library/p-5a0424cd.entry.js.map +1 -0
  889. package/dist/web-components-library/p-5ba350d8.entry.js +2 -0
  890. package/dist/web-components-library/p-5ba350d8.entry.js.map +1 -0
  891. package/dist/web-components-library/p-643aaedc.entry.js +2 -0
  892. package/dist/web-components-library/p-643aaedc.entry.js.map +1 -0
  893. package/dist/web-components-library/p-654cbe9f.entry.js +2 -0
  894. package/dist/web-components-library/p-654cbe9f.entry.js.map +1 -0
  895. package/dist/web-components-library/p-6fc4fd53.entry.js +2 -0
  896. package/dist/web-components-library/p-6fc4fd53.entry.js.map +1 -0
  897. package/dist/web-components-library/p-72356b43.entry.js +2 -0
  898. package/dist/web-components-library/p-72356b43.entry.js.map +1 -0
  899. package/dist/web-components-library/p-723c700f.entry.js +2 -0
  900. package/dist/web-components-library/p-723c700f.entry.js.map +1 -0
  901. package/dist/web-components-library/p-72da35ee.entry.js +2 -0
  902. package/dist/web-components-library/p-72da35ee.entry.js.map +1 -0
  903. package/dist/web-components-library/p-7313202f.entry.js +2 -0
  904. package/dist/web-components-library/p-7313202f.entry.js.map +1 -0
  905. package/dist/web-components-library/p-73ed9922.entry.js +2 -0
  906. package/dist/web-components-library/p-73ed9922.entry.js.map +1 -0
  907. package/dist/web-components-library/p-779a7476.entry.js +2 -0
  908. package/dist/web-components-library/p-779a7476.entry.js.map +1 -0
  909. package/dist/web-components-library/p-7a25961e.entry.js +2 -0
  910. package/dist/web-components-library/p-7a25961e.entry.js.map +1 -0
  911. package/dist/web-components-library/p-7dfb5290.entry.js +2 -0
  912. package/dist/web-components-library/p-7dfb5290.entry.js.map +1 -0
  913. package/dist/web-components-library/p-7fff6cfd.entry.js +2 -0
  914. package/dist/web-components-library/p-7fff6cfd.entry.js.map +1 -0
  915. package/dist/web-components-library/p-8041306f.entry.js +2 -0
  916. package/dist/web-components-library/p-8041306f.entry.js.map +1 -0
  917. package/dist/web-components-library/p-8046cab0.entry.js +2 -0
  918. package/dist/web-components-library/p-8046cab0.entry.js.map +1 -0
  919. package/dist/web-components-library/p-82c43c62.entry.js +2 -0
  920. package/dist/web-components-library/p-82c43c62.entry.js.map +1 -0
  921. package/dist/web-components-library/p-82e04f79.entry.js +2 -0
  922. package/dist/web-components-library/p-82e04f79.entry.js.map +1 -0
  923. package/dist/web-components-library/p-87a5a352.entry.js +2 -0
  924. package/dist/web-components-library/p-87a5a352.entry.js.map +1 -0
  925. package/dist/web-components-library/p-8b0c232c.entry.js +2 -0
  926. package/dist/web-components-library/p-8b0c232c.entry.js.map +1 -0
  927. package/dist/web-components-library/p-8b1f745c.entry.js +2 -0
  928. package/dist/web-components-library/p-8b1f745c.entry.js.map +1 -0
  929. package/dist/web-components-library/p-8bd0e3e2.entry.js +2 -0
  930. package/dist/web-components-library/p-8bd0e3e2.entry.js.map +1 -0
  931. package/dist/web-components-library/p-8ca86be7.entry.js +2 -0
  932. package/dist/web-components-library/p-8ca86be7.entry.js.map +1 -0
  933. package/dist/web-components-library/p-8ce8d90d.entry.js +2 -0
  934. package/dist/web-components-library/p-8ce8d90d.entry.js.map +1 -0
  935. package/dist/web-components-library/p-927d9062.entry.js +2 -0
  936. package/dist/web-components-library/p-927d9062.entry.js.map +1 -0
  937. package/dist/web-components-library/p-931f2a16.entry.js +2 -0
  938. package/dist/web-components-library/p-931f2a16.entry.js.map +1 -0
  939. package/dist/web-components-library/p-960cd1d9.entry.js +2 -0
  940. package/dist/web-components-library/p-960cd1d9.entry.js.map +1 -0
  941. package/dist/web-components-library/p-9f0e91f5.entry.js +2 -0
  942. package/dist/web-components-library/p-9f0e91f5.entry.js.map +1 -0
  943. package/dist/web-components-library/p-AwzX9V8L.js +2 -0
  944. package/dist/web-components-library/p-AwzX9V8L.js.map +1 -0
  945. package/dist/web-components-library/p-B3nR3-Jw.js +2 -0
  946. package/dist/web-components-library/p-B3nR3-Jw.js.map +1 -0
  947. package/dist/web-components-library/p-B85MJLTf.js +2 -1
  948. package/dist/web-components-library/p-B85MJLTf.js.map +1 -0
  949. package/dist/web-components-library/p-BEHxru6n.js +3 -0
  950. package/dist/web-components-library/p-BEHxru6n.js.map +1 -0
  951. package/dist/web-components-library/p-Bx6o9v2_.js +2 -0
  952. package/dist/web-components-library/p-Bx6o9v2_.js.map +1 -0
  953. package/dist/web-components-library/p-C8pbzcmM.js +7 -0
  954. package/dist/web-components-library/p-C8pbzcmM.js.map +1 -0
  955. package/dist/web-components-library/p-CscBC1Z4.js +6 -0
  956. package/dist/web-components-library/p-CscBC1Z4.js.map +1 -0
  957. package/dist/web-components-library/p-Q-tWjk7P.js +2 -1
  958. package/dist/web-components-library/p-Q-tWjk7P.js.map +1 -0
  959. package/dist/web-components-library/p-a1db3939.entry.js +2 -0
  960. package/dist/web-components-library/p-a1db3939.entry.js.map +1 -0
  961. package/dist/web-components-library/p-a6f29ff5.entry.js +2 -0
  962. package/dist/web-components-library/p-a6f29ff5.entry.js.map +1 -0
  963. package/dist/web-components-library/p-a8e42a7c.entry.js +2 -0
  964. package/dist/web-components-library/p-a8e42a7c.entry.js.map +1 -0
  965. package/dist/web-components-library/p-a8fe9ae0.entry.js +2 -0
  966. package/dist/web-components-library/p-a8fe9ae0.entry.js.map +1 -0
  967. package/dist/web-components-library/p-ab64e360.entry.js +2 -0
  968. package/dist/web-components-library/p-ab64e360.entry.js.map +1 -0
  969. package/dist/web-components-library/p-acba8f34.entry.js +2 -0
  970. package/dist/web-components-library/p-acba8f34.entry.js.map +1 -0
  971. package/dist/web-components-library/p-ace68b04.entry.js +2 -0
  972. package/dist/web-components-library/p-ace68b04.entry.js.map +1 -0
  973. package/dist/web-components-library/p-ad88d4a5.entry.js +2 -0
  974. package/dist/web-components-library/p-ad88d4a5.entry.js.map +1 -0
  975. package/dist/web-components-library/p-ae8d5494.entry.js +2 -0
  976. package/dist/web-components-library/p-ae8d5494.entry.js.map +1 -0
  977. package/dist/web-components-library/p-af8fec68.entry.js +17 -0
  978. package/dist/web-components-library/p-af8fec68.entry.js.map +1 -0
  979. package/dist/web-components-library/p-b4140668.entry.js +2 -0
  980. package/dist/web-components-library/p-b4140668.entry.js.map +1 -0
  981. package/dist/web-components-library/p-bff500a3.entry.js +2 -0
  982. package/dist/web-components-library/p-bff500a3.entry.js.map +1 -0
  983. package/dist/web-components-library/p-d09060af.entry.js +2 -0
  984. package/dist/web-components-library/p-d09060af.entry.js.map +1 -0
  985. package/dist/web-components-library/p-da213c6e.entry.js +2 -0
  986. package/dist/web-components-library/p-da213c6e.entry.js.map +1 -0
  987. package/dist/web-components-library/p-e4622c5d.entry.js +2 -0
  988. package/dist/web-components-library/p-e4622c5d.entry.js.map +1 -0
  989. package/dist/web-components-library/p-e7e98d15.entry.js +2 -0
  990. package/dist/web-components-library/p-e7e98d15.entry.js.map +1 -0
  991. package/dist/web-components-library/p-e87e13b0.entry.js +2 -0
  992. package/dist/web-components-library/p-e87e13b0.entry.js.map +1 -0
  993. package/dist/web-components-library/p-e9212c7a.entry.js +2 -0
  994. package/dist/web-components-library/p-e9212c7a.entry.js.map +1 -0
  995. package/dist/web-components-library/p-e9722221.entry.js +8 -0
  996. package/dist/web-components-library/p-e9722221.entry.js.map +1 -0
  997. package/dist/web-components-library/p-e9ed3594.entry.js +2 -0
  998. package/dist/web-components-library/p-e9ed3594.entry.js.map +1 -0
  999. package/dist/web-components-library/p-eb5e4333.entry.js +2 -0
  1000. package/dist/web-components-library/p-eb5e4333.entry.js.map +1 -0
  1001. package/dist/web-components-library/p-ee711acf.entry.js +2 -0
  1002. package/dist/web-components-library/p-ee711acf.entry.js.map +1 -0
  1003. package/dist/web-components-library/p-fa4e8b1b.entry.js +2 -0
  1004. package/dist/web-components-library/p-fa4e8b1b.entry.js.map +1 -0
  1005. package/dist/web-components-library/p-fe279683.entry.js +2 -0
  1006. package/dist/web-components-library/p-fe279683.entry.js.map +1 -0
  1007. package/dist/web-components-library/web-components-library.esm.js +2 -1
  1008. package/dist/web-components-library/web-components-library.esm.js.map +1 -0
  1009. package/package.json +17 -17
  1010. package/react/components.d.ts +1 -0
  1011. package/react/components.js +3 -2
  1012. package/readme.md +8 -19
  1013. package/www/build/index.esm.js +2 -1
  1014. package/www/build/index.esm.js.map +1 -0
  1015. package/www/build/p-0a10c7d7.entry.js +2 -0
  1016. package/www/build/p-0a10c7d7.entry.js.map +1 -0
  1017. package/www/build/p-0de3e2fa.entry.js +2 -0
  1018. package/www/build/p-0de3e2fa.entry.js.map +1 -0
  1019. package/www/build/p-0eb833b6.entry.js +2 -0
  1020. package/www/build/p-0eb833b6.entry.js.map +1 -0
  1021. package/www/build/p-17a9c2b3.entry.js +2 -0
  1022. package/www/build/p-17a9c2b3.entry.js.map +1 -0
  1023. package/www/build/p-235a1c1d.entry.js +2 -0
  1024. package/www/build/p-235a1c1d.entry.js.map +1 -0
  1025. package/www/build/p-286690fd.entry.js +2 -0
  1026. package/www/build/p-286690fd.entry.js.map +1 -0
  1027. package/www/build/p-288c1f55.entry.js +2 -0
  1028. package/www/build/p-288c1f55.entry.js.map +1 -0
  1029. package/www/build/p-2b05eaef.entry.js +2 -0
  1030. package/www/build/p-2b05eaef.entry.js.map +1 -0
  1031. package/www/build/p-2c63a798.entry.js +2 -0
  1032. package/www/build/p-2c63a798.entry.js.map +1 -0
  1033. package/www/build/p-315ac39c.entry.js +2 -0
  1034. package/www/build/p-315ac39c.entry.js.map +1 -0
  1035. package/www/build/p-35653b5e.entry.js +2 -0
  1036. package/www/build/p-35653b5e.entry.js.map +1 -0
  1037. package/www/build/p-38e4e01f.entry.js +2 -0
  1038. package/www/build/p-38e4e01f.entry.js.map +1 -0
  1039. package/www/build/p-3b3e1ffb.entry.js +2 -0
  1040. package/www/build/p-3b3e1ffb.entry.js.map +1 -0
  1041. package/www/build/p-3b7f5d80.entry.js +2 -0
  1042. package/www/build/p-3b7f5d80.entry.js.map +1 -0
  1043. package/www/build/p-40694478.entry.js +2 -0
  1044. package/www/build/p-40694478.entry.js.map +1 -0
  1045. package/www/build/p-440e5b62.entry.js +2 -0
  1046. package/www/build/p-440e5b62.entry.js.map +1 -0
  1047. package/www/build/p-44410388.entry.js +2 -0
  1048. package/www/build/p-44410388.entry.js.map +1 -0
  1049. package/www/build/p-508eb530.entry.js +2 -0
  1050. package/www/build/p-508eb530.entry.js.map +1 -0
  1051. package/www/build/p-50a09bf1.entry.js +2 -0
  1052. package/www/build/p-50a09bf1.entry.js.map +1 -0
  1053. package/www/build/p-54f98f8e.entry.js +2 -0
  1054. package/www/build/p-54f98f8e.entry.js.map +1 -0
  1055. package/www/build/p-5a0424cd.entry.js +2 -0
  1056. package/www/build/p-5a0424cd.entry.js.map +1 -0
  1057. package/www/build/p-5ba350d8.entry.js +2 -0
  1058. package/www/build/p-5ba350d8.entry.js.map +1 -0
  1059. package/www/build/p-643aaedc.entry.js +2 -0
  1060. package/www/build/p-643aaedc.entry.js.map +1 -0
  1061. package/www/build/p-654cbe9f.entry.js +2 -0
  1062. package/www/build/p-654cbe9f.entry.js.map +1 -0
  1063. package/www/build/p-6fc4fd53.entry.js +2 -0
  1064. package/www/build/p-6fc4fd53.entry.js.map +1 -0
  1065. package/www/build/p-72356b43.entry.js +2 -0
  1066. package/www/build/p-72356b43.entry.js.map +1 -0
  1067. package/www/build/p-723c700f.entry.js +2 -0
  1068. package/www/build/p-723c700f.entry.js.map +1 -0
  1069. package/www/build/p-72da35ee.entry.js +2 -0
  1070. package/www/build/p-72da35ee.entry.js.map +1 -0
  1071. package/www/build/p-7313202f.entry.js +2 -0
  1072. package/www/build/p-7313202f.entry.js.map +1 -0
  1073. package/www/build/p-73ed9922.entry.js +2 -0
  1074. package/www/build/p-73ed9922.entry.js.map +1 -0
  1075. package/www/build/p-779a7476.entry.js +2 -0
  1076. package/www/build/p-779a7476.entry.js.map +1 -0
  1077. package/www/build/p-7a25961e.entry.js +2 -0
  1078. package/www/build/p-7a25961e.entry.js.map +1 -0
  1079. package/www/build/p-7dfb5290.entry.js +2 -0
  1080. package/www/build/p-7dfb5290.entry.js.map +1 -0
  1081. package/www/build/p-7fff6cfd.entry.js +2 -0
  1082. package/www/build/p-7fff6cfd.entry.js.map +1 -0
  1083. package/www/build/p-8041306f.entry.js +2 -0
  1084. package/www/build/p-8041306f.entry.js.map +1 -0
  1085. package/www/build/p-8046cab0.entry.js +2 -0
  1086. package/www/build/p-8046cab0.entry.js.map +1 -0
  1087. package/www/build/p-82c43c62.entry.js +2 -0
  1088. package/www/build/p-82c43c62.entry.js.map +1 -0
  1089. package/www/build/p-82e04f79.entry.js +2 -0
  1090. package/www/build/p-82e04f79.entry.js.map +1 -0
  1091. package/www/build/p-87a5a352.entry.js +2 -0
  1092. package/www/build/p-87a5a352.entry.js.map +1 -0
  1093. package/www/build/p-8b0c232c.entry.js +2 -0
  1094. package/www/build/p-8b0c232c.entry.js.map +1 -0
  1095. package/www/build/p-8b1f745c.entry.js +2 -0
  1096. package/www/build/p-8b1f745c.entry.js.map +1 -0
  1097. package/www/build/p-8bd0e3e2.entry.js +2 -0
  1098. package/www/build/p-8bd0e3e2.entry.js.map +1 -0
  1099. package/www/build/p-8ca86be7.entry.js +2 -0
  1100. package/www/build/p-8ca86be7.entry.js.map +1 -0
  1101. package/www/build/p-8ce8d90d.entry.js +2 -0
  1102. package/www/build/p-8ce8d90d.entry.js.map +1 -0
  1103. package/www/build/p-927d9062.entry.js +2 -0
  1104. package/www/build/p-927d9062.entry.js.map +1 -0
  1105. package/www/build/p-931f2a16.entry.js +2 -0
  1106. package/www/build/p-931f2a16.entry.js.map +1 -0
  1107. package/www/build/p-960cd1d9.entry.js +2 -0
  1108. package/www/build/p-960cd1d9.entry.js.map +1 -0
  1109. package/www/build/p-9f0e91f5.entry.js +2 -0
  1110. package/www/build/p-9f0e91f5.entry.js.map +1 -0
  1111. package/www/build/p-AwzX9V8L.js +2 -0
  1112. package/www/build/p-AwzX9V8L.js.map +1 -0
  1113. package/www/build/p-B3nR3-Jw.js +2 -0
  1114. package/www/build/p-B3nR3-Jw.js.map +1 -0
  1115. package/www/build/p-B85MJLTf.js +2 -1
  1116. package/www/build/p-B85MJLTf.js.map +1 -0
  1117. package/www/build/p-BEHxru6n.js +3 -0
  1118. package/www/build/p-BEHxru6n.js.map +1 -0
  1119. package/www/build/p-Bx6o9v2_.js +2 -0
  1120. package/www/build/p-Bx6o9v2_.js.map +1 -0
  1121. package/www/build/p-C8pbzcmM.js +7 -0
  1122. package/www/build/p-C8pbzcmM.js.map +1 -0
  1123. package/www/build/p-CscBC1Z4.js +6 -0
  1124. package/www/build/p-CscBC1Z4.js.map +1 -0
  1125. package/www/build/p-Q-tWjk7P.js +2 -1
  1126. package/www/build/p-Q-tWjk7P.js.map +1 -0
  1127. package/www/build/p-a1db3939.entry.js +2 -0
  1128. package/www/build/p-a1db3939.entry.js.map +1 -0
  1129. package/www/build/p-a6f29ff5.entry.js +2 -0
  1130. package/www/build/p-a6f29ff5.entry.js.map +1 -0
  1131. package/www/build/p-a8e42a7c.entry.js +2 -0
  1132. package/www/build/p-a8e42a7c.entry.js.map +1 -0
  1133. package/www/build/p-a8fe9ae0.entry.js +2 -0
  1134. package/www/build/p-a8fe9ae0.entry.js.map +1 -0
  1135. package/www/build/p-ab64e360.entry.js +2 -0
  1136. package/www/build/p-ab64e360.entry.js.map +1 -0
  1137. package/www/build/p-acba8f34.entry.js +2 -0
  1138. package/www/build/p-acba8f34.entry.js.map +1 -0
  1139. package/www/build/p-ace68b04.entry.js +2 -0
  1140. package/www/build/p-ace68b04.entry.js.map +1 -0
  1141. package/www/build/p-ad88d4a5.entry.js +2 -0
  1142. package/www/build/p-ad88d4a5.entry.js.map +1 -0
  1143. package/www/build/p-ae8d5494.entry.js +2 -0
  1144. package/www/build/p-ae8d5494.entry.js.map +1 -0
  1145. package/www/build/p-af8fec68.entry.js +17 -0
  1146. package/www/build/p-af8fec68.entry.js.map +1 -0
  1147. package/www/build/p-b289ae9e.js +2 -0
  1148. package/www/build/p-b4140668.entry.js +2 -0
  1149. package/www/build/p-b4140668.entry.js.map +1 -0
  1150. package/www/build/p-bff500a3.entry.js +2 -0
  1151. package/www/build/p-bff500a3.entry.js.map +1 -0
  1152. package/www/build/p-d09060af.entry.js +2 -0
  1153. package/www/build/p-d09060af.entry.js.map +1 -0
  1154. package/www/build/p-da213c6e.entry.js +2 -0
  1155. package/www/build/p-da213c6e.entry.js.map +1 -0
  1156. package/www/build/p-e4622c5d.entry.js +2 -0
  1157. package/www/build/p-e4622c5d.entry.js.map +1 -0
  1158. package/www/build/p-e7e98d15.entry.js +2 -0
  1159. package/www/build/p-e7e98d15.entry.js.map +1 -0
  1160. package/www/build/p-e87e13b0.entry.js +2 -0
  1161. package/www/build/p-e87e13b0.entry.js.map +1 -0
  1162. package/www/build/p-e9212c7a.entry.js +2 -0
  1163. package/www/build/p-e9212c7a.entry.js.map +1 -0
  1164. package/www/build/p-e9722221.entry.js +8 -0
  1165. package/www/build/p-e9722221.entry.js.map +1 -0
  1166. package/www/build/p-e9ed3594.entry.js +2 -0
  1167. package/www/build/p-e9ed3594.entry.js.map +1 -0
  1168. package/www/build/p-eb5e4333.entry.js +2 -0
  1169. package/www/build/p-eb5e4333.entry.js.map +1 -0
  1170. package/www/build/p-ee711acf.entry.js +2 -0
  1171. package/www/build/p-ee711acf.entry.js.map +1 -0
  1172. package/www/build/p-fa4e8b1b.entry.js +2 -0
  1173. package/www/build/p-fa4e8b1b.entry.js.map +1 -0
  1174. package/www/build/p-fe279683.entry.js +2 -0
  1175. package/www/build/p-fe279683.entry.js.map +1 -0
  1176. package/www/build/web-components-library.esm.js +2 -1
  1177. package/www/build/web-components-library.esm.js.map +1 -0
  1178. package/www/index.html +1 -1
  1179. package/dist/cjs/iconset-oiCBBbd2.js +0 -1027
  1180. package/dist/cjs/index-D_S5lGcb.js +0 -2683
  1181. package/dist/cjs/index-wGaSHN1_.js +0 -407
  1182. package/dist/cjs/utils-C5_wGVkJ.js +0 -2718
  1183. package/dist/cjs/utils-Ctc6JP2n.js +0 -259
  1184. package/dist/collection/__mocks__/fileMock.js +0 -1
  1185. package/dist/collection/components/book-card/z-book-card/index.stories.js +0 -175
  1186. package/dist/collection/components/book-card/z-book-card-app/index.stories.js +0 -40
  1187. package/dist/collection/components/css-components/z-fab/index.stories.js +0 -103
  1188. package/dist/collection/components/css-components/z-label/index.stories.js +0 -9
  1189. package/dist/collection/components/css-components/z-link/index.stories.js +0 -73
  1190. package/dist/collection/components/css-components/z-scrollbar/index.stories.js +0 -72
  1191. package/dist/collection/components/date-picker/z-date-picker/index.stories.js +0 -111
  1192. package/dist/collection/components/date-picker/z-range-picker/index.stories.js +0 -109
  1193. package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js +0 -636
  1194. package/dist/collection/components/deprecated/z-book-card-deprecated/index.stories.js +0 -383
  1195. package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js +0 -128
  1196. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js +0 -40
  1197. package/dist/collection/components/deprecated/z-section-title/index.stories.js +0 -56
  1198. package/dist/collection/components/file-upload/z-file/index.stories.js +0 -16
  1199. package/dist/collection/components/file-upload/z-file-upload/index.stories.js +0 -139
  1200. package/dist/collection/components/list/z-list/index.stories.js +0 -184
  1201. package/dist/collection/components/list/z-list-element/index.stories.js +0 -127
  1202. package/dist/collection/components/list/z-list-group/index.stories.js +0 -120
  1203. package/dist/collection/components/list/z-tree-list/index.stories.js +0 -119
  1204. package/dist/collection/components/table/z-table/index.stories.js +0 -282
  1205. package/dist/collection/components/z-accordion/index.stories.js +0 -164
  1206. package/dist/collection/components/z-anchor-navigation/index.stories.js +0 -350
  1207. package/dist/collection/components/z-app-header/index.stories.js +0 -318
  1208. package/dist/collection/components/z-aria-alert/index.stories.js +0 -75
  1209. package/dist/collection/components/z-avatar/index.stories.js +0 -50
  1210. package/dist/collection/components/z-book-cover/index.stories.js +0 -30
  1211. package/dist/collection/components/z-breadcrumb/index.stories.js +0 -67
  1212. package/dist/collection/components/z-button/index.stories.js +0 -103
  1213. package/dist/collection/components/z-button-sort/index.stories.js +0 -30
  1214. package/dist/collection/components/z-card/index.stories.js +0 -302
  1215. package/dist/collection/components/z-carousel/index.stories.js +0 -128
  1216. package/dist/collection/components/z-chip/index.stories.js +0 -69
  1217. package/dist/collection/components/z-color-picker/index.stories.js +0 -33
  1218. package/dist/collection/components/z-combobox/index.stories.js +0 -77
  1219. package/dist/collection/components/z-cover-hero/index.stories.js +0 -255
  1220. package/dist/collection/components/z-divider/index.stories.js +0 -44
  1221. package/dist/collection/components/z-ghost-loading/index.stories.js +0 -21
  1222. package/dist/collection/components/z-icon/index.stories.js +0 -70
  1223. package/dist/collection/components/z-info-box/index.stories.js +0 -19
  1224. package/dist/collection/components/z-info-reveal/index.stories.js +0 -58
  1225. package/dist/collection/components/z-input/index.stories.js +0 -293
  1226. package/dist/collection/components/z-input-message/index.stories.js +0 -36
  1227. package/dist/collection/components/z-logo/index.stories.js +0 -25
  1228. package/dist/collection/components/z-menu/index.stories.js +0 -122
  1229. package/dist/collection/components/z-menu-section/index.stories.js +0 -40
  1230. package/dist/collection/components/z-modal/index.stories.js +0 -201
  1231. package/dist/collection/components/z-navigation-tabs/index.stories.js +0 -190
  1232. package/dist/collection/components/z-notification/index.stories.js +0 -174
  1233. package/dist/collection/components/z-offcanvas/index.stories.js +0 -143
  1234. package/dist/collection/components/z-pagination/index.stories.js +0 -117
  1235. package/dist/collection/components/z-panel-elem/index.stories.js +0 -25
  1236. package/dist/collection/components/z-popover/index.stories.js +0 -282
  1237. package/dist/collection/components/z-result-card/z-result-card.stories.js +0 -147
  1238. package/dist/collection/components/z-searchbar/index.stories.js +0 -332
  1239. package/dist/collection/components/z-select/index.stories.js +0 -359
  1240. package/dist/collection/components/z-skip-to-content/index.stories.js +0 -40
  1241. package/dist/collection/components/z-stepper/index.stories.js +0 -108
  1242. package/dist/collection/components/z-stepper-item/index.stories.js +0 -58
  1243. package/dist/collection/components/z-tag/index.stories.js +0 -63
  1244. package/dist/collection/components/z-toast-notification/index.stories.js +0 -176
  1245. package/dist/collection/components/z-toast-notification-list/index.stories.js +0 -147
  1246. package/dist/collection/components/z-toggle-button/index.stories.js +0 -22
  1247. package/dist/collection/components/z-toggle-switch/index.stories.js +0 -26
  1248. package/dist/collection/components/z-tool/index.stories.js +0 -146
  1249. package/dist/collection/components/z-toolbar/index.stories.js +0 -317
  1250. package/dist/collection/components/z-tooltip/index.stories.js +0 -122
  1251. package/dist/collection/components/z-visually-hidden/index.stories.js +0 -27
  1252. package/dist/collection/snowflakes/myz/card/z-myz-card/index.stories.js +0 -72
  1253. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.stories.js +0 -24
  1254. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.stories.js +0 -24
  1255. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.stories.js +0 -128
  1256. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.stories.js +0 -28
  1257. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.stories.js +0 -16
  1258. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.stories.js +0 -22
  1259. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.stories.js +0 -22
  1260. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.stories.js +0 -18
  1261. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.stories.js +0 -14
  1262. package/dist/collection/snowflakes/myz/list/z-myz-list/index.stories.js +0 -18
  1263. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.stories.js +0 -28
  1264. package/dist/collection/snowflakes/myz/z-alert/index.stories.js +0 -30
  1265. package/dist/collection/snowflakes/myz/z-otp/index.stories.js +0 -32
  1266. package/dist/collection/snowflakes/myz/z-slideshow/index.stories.js +0 -16
  1267. package/dist/esm/iconset-CjHS9zeM.js +0 -1024
  1268. package/dist/esm/index-BKCj6NR2.js +0 -405
  1269. package/dist/esm/index-DPdXlnVe.js +0 -2653
  1270. package/dist/esm/utils-DYd3kO0P.js +0 -244
  1271. package/dist/esm/utils-DuuLzXZj.js +0 -2712
  1272. package/dist/types/__mocks__/fileMock.d.ts +0 -2
  1273. package/dist/types/components/book-card/z-book-card/index.stories.d.ts +0 -50
  1274. package/dist/types/components/book-card/z-book-card-app/index.stories.d.ts +0 -39
  1275. package/dist/types/components/css-components/z-fab/index.stories.d.ts +0 -63
  1276. package/dist/types/components/css-components/z-label/index.stories.d.ts +0 -9
  1277. package/dist/types/components/css-components/z-link/index.stories.d.ts +0 -45
  1278. package/dist/types/components/css-components/z-scrollbar/index.stories.d.ts +0 -57
  1279. package/dist/types/components/date-picker/z-date-picker/index.stories.d.ts +0 -33
  1280. package/dist/types/components/date-picker/z-range-picker/index.stories.d.ts +0 -51
  1281. package/dist/types/components/deprecated/z-app-header-deprecated/index.stories.d.ts +0 -120
  1282. package/dist/types/components/deprecated/z-book-card-deprecated/index.stories.d.ts +0 -106
  1283. package/dist/types/components/deprecated/z-menu-deprecated/index.stories.d.ts +0 -27
  1284. package/dist/types/components/deprecated/z-menu-section-deprecated/index.stories.d.ts +0 -16
  1285. package/dist/types/components/deprecated/z-section-title/index.stories.d.ts +0 -41
  1286. package/dist/types/components/file-upload/z-file/index.stories.d.ts +0 -14
  1287. package/dist/types/components/file-upload/z-file-upload/index.stories.d.ts +0 -58
  1288. package/dist/types/components/list/z-list/index.stories.d.ts +0 -62
  1289. package/dist/types/components/list/z-list-element/index.stories.d.ts +0 -77
  1290. package/dist/types/components/list/z-list-group/index.stories.d.ts +0 -47
  1291. package/dist/types/components/list/z-tree-list/index.stories.d.ts +0 -25
  1292. package/dist/types/components/table/z-table/index.stories.d.ts +0 -98
  1293. package/dist/types/components/z-accordion/index.stories.d.ts +0 -142
  1294. package/dist/types/components/z-anchor-navigation/index.stories.d.ts +0 -34
  1295. package/dist/types/components/z-app-header/index.stories.d.ts +0 -128
  1296. package/dist/types/components/z-aria-alert/index.stories.d.ts +0 -26
  1297. package/dist/types/components/z-avatar/index.stories.d.ts +0 -42
  1298. package/dist/types/components/z-book-cover/index.stories.d.ts +0 -21
  1299. package/dist/types/components/z-breadcrumb/index.stories.d.ts +0 -52
  1300. package/dist/types/components/z-button/index.stories.d.ts +0 -79
  1301. package/dist/types/components/z-button-sort/index.stories.d.ts +0 -22
  1302. package/dist/types/components/z-card/index.stories.d.ts +0 -75
  1303. package/dist/types/components/z-carousel/index.stories.d.ts +0 -100
  1304. package/dist/types/components/z-chip/index.stories.d.ts +0 -46
  1305. package/dist/types/components/z-color-picker/index.stories.d.ts +0 -33
  1306. package/dist/types/components/z-combobox/index.stories.d.ts +0 -58
  1307. package/dist/types/components/z-cover-hero/index.stories.d.ts +0 -113
  1308. package/dist/types/components/z-divider/index.stories.d.ts +0 -37
  1309. package/dist/types/components/z-ghost-loading/index.stories.d.ts +0 -9
  1310. package/dist/types/components/z-icon/index.stories.d.ts +0 -56
  1311. package/dist/types/components/z-info-box/index.stories.d.ts +0 -12
  1312. package/dist/types/components/z-info-reveal/index.stories.d.ts +0 -42
  1313. package/dist/types/components/z-input/index.stories.d.ts +0 -126
  1314. package/dist/types/components/z-input-message/index.stories.d.ts +0 -33
  1315. package/dist/types/components/z-logo/index.stories.d.ts +0 -18
  1316. package/dist/types/components/z-menu/index.stories.d.ts +0 -26
  1317. package/dist/types/components/z-menu-section/index.stories.d.ts +0 -16
  1318. package/dist/types/components/z-modal/index.stories.d.ts +0 -37
  1319. package/dist/types/components/z-navigation-tabs/index.stories.d.ts +0 -78
  1320. package/dist/types/components/z-notification/index.stories.d.ts +0 -77
  1321. package/dist/types/components/z-offcanvas/index.stories.d.ts +0 -76
  1322. package/dist/types/components/z-pagination/index.stories.d.ts +0 -102
  1323. package/dist/types/components/z-panel-elem/index.stories.d.ts +0 -18
  1324. package/dist/types/components/z-popover/index.stories.d.ts +0 -82
  1325. package/dist/types/components/z-result-card/z-result-card.stories.d.ts +0 -12
  1326. package/dist/types/components/z-searchbar/index.stories.d.ts +0 -163
  1327. package/dist/types/components/z-select/index.stories.d.ts +0 -84
  1328. package/dist/types/components/z-skip-to-content/index.stories.d.ts +0 -31
  1329. package/dist/types/components/z-stepper/index.stories.d.ts +0 -25
  1330. package/dist/types/components/z-stepper-item/index.stories.d.ts +0 -34
  1331. package/dist/types/components/z-tag/index.stories.d.ts +0 -39
  1332. package/dist/types/components/z-toast-notification/index.stories.d.ts +0 -96
  1333. package/dist/types/components/z-toast-notification-list/index.stories.d.ts +0 -87
  1334. package/dist/types/components/z-toggle-button/index.stories.d.ts +0 -16
  1335. package/dist/types/components/z-toggle-switch/index.stories.d.ts +0 -22
  1336. package/dist/types/components/z-tool/index.stories.d.ts +0 -70
  1337. package/dist/types/components/z-toolbar/index.stories.d.ts +0 -52
  1338. package/dist/types/components/z-tooltip/index.stories.d.ts +0 -40
  1339. package/dist/types/components/z-visually-hidden/index.stories.d.ts +0 -9
  1340. package/dist/web-components-library/p-087956fa.entry.js +0 -1
  1341. package/dist/web-components-library/p-10e5e16e.entry.js +0 -1
  1342. package/dist/web-components-library/p-13e7f751.entry.js +0 -1
  1343. package/dist/web-components-library/p-14b804f9.entry.js +0 -1
  1344. package/dist/web-components-library/p-1580db58.entry.js +0 -1
  1345. package/dist/web-components-library/p-15825811.entry.js +0 -1
  1346. package/dist/web-components-library/p-1993b0ad.entry.js +0 -1
  1347. package/dist/web-components-library/p-1a95491d.entry.js +0 -1
  1348. package/dist/web-components-library/p-1d023220.entry.js +0 -1
  1349. package/dist/web-components-library/p-21c85e04.entry.js +0 -1
  1350. package/dist/web-components-library/p-23b46642.entry.js +0 -1
  1351. package/dist/web-components-library/p-299f0f85.entry.js +0 -1
  1352. package/dist/web-components-library/p-29dde955.entry.js +0 -1
  1353. package/dist/web-components-library/p-2c036e17.entry.js +0 -1
  1354. package/dist/web-components-library/p-2d4c01c3.entry.js +0 -1
  1355. package/dist/web-components-library/p-2dabe353.entry.js +0 -1
  1356. package/dist/web-components-library/p-2df6d169.entry.js +0 -1
  1357. package/dist/web-components-library/p-2ef82e17.entry.js +0 -1
  1358. package/dist/web-components-library/p-324933f6.entry.js +0 -1
  1359. package/dist/web-components-library/p-37e84b71.entry.js +0 -1
  1360. package/dist/web-components-library/p-3c53e451.entry.js +0 -1
  1361. package/dist/web-components-library/p-3ea03d34.entry.js +0 -1
  1362. package/dist/web-components-library/p-41584e90.entry.js +0 -1
  1363. package/dist/web-components-library/p-50e10a10.entry.js +0 -1
  1364. package/dist/web-components-library/p-52899754.entry.js +0 -1
  1365. package/dist/web-components-library/p-53670be4.entry.js +0 -1
  1366. package/dist/web-components-library/p-583b8152.entry.js +0 -1
  1367. package/dist/web-components-library/p-5a05dc1e.entry.js +0 -1
  1368. package/dist/web-components-library/p-5d20fc3d.entry.js +0 -1
  1369. package/dist/web-components-library/p-622466f9.entry.js +0 -1
  1370. package/dist/web-components-library/p-658f022d.entry.js +0 -1
  1371. package/dist/web-components-library/p-6bd35edf.entry.js +0 -1
  1372. package/dist/web-components-library/p-7226f07a.entry.js +0 -1
  1373. package/dist/web-components-library/p-7371a543.entry.js +0 -2
  1374. package/dist/web-components-library/p-77bf39a4.entry.js +0 -1
  1375. package/dist/web-components-library/p-788eaac7.entry.js +0 -1
  1376. package/dist/web-components-library/p-7bf7539a.entry.js +0 -1
  1377. package/dist/web-components-library/p-81eb43fd.entry.js +0 -1
  1378. package/dist/web-components-library/p-8261c869.entry.js +0 -1
  1379. package/dist/web-components-library/p-83da1031.entry.js +0 -1
  1380. package/dist/web-components-library/p-85cac60d.entry.js +0 -1
  1381. package/dist/web-components-library/p-88a3ba7c.entry.js +0 -1
  1382. package/dist/web-components-library/p-8a8df4f4.entry.js +0 -1
  1383. package/dist/web-components-library/p-8b026993.entry.js +0 -1
  1384. package/dist/web-components-library/p-8d7e2e16.entry.js +0 -1
  1385. package/dist/web-components-library/p-8de064a4.entry.js +0 -1
  1386. package/dist/web-components-library/p-8f4a04aa.entry.js +0 -1
  1387. package/dist/web-components-library/p-B8WJfd4z.js +0 -1
  1388. package/dist/web-components-library/p-BKCj6NR2.js +0 -1
  1389. package/dist/web-components-library/p-CPsEG702.js +0 -1
  1390. package/dist/web-components-library/p-CjHS9zeM.js +0 -1
  1391. package/dist/web-components-library/p-DPdXlnVe.js +0 -2
  1392. package/dist/web-components-library/p-a4f673f8.entry.js +0 -1
  1393. package/dist/web-components-library/p-aa4fc3d3.entry.js +0 -1
  1394. package/dist/web-components-library/p-aa72d766.entry.js +0 -1
  1395. package/dist/web-components-library/p-ad2cd7fc.entry.js +0 -1
  1396. package/dist/web-components-library/p-b6223d7e.entry.js +0 -1
  1397. package/dist/web-components-library/p-b851f20b.entry.js +0 -1
  1398. package/dist/web-components-library/p-b9343431.entry.js +0 -1
  1399. package/dist/web-components-library/p-be354b22.entry.js +0 -1
  1400. package/dist/web-components-library/p-c42ddd93.entry.js +0 -1
  1401. package/dist/web-components-library/p-c4e7bd16.entry.js +0 -1
  1402. package/dist/web-components-library/p-c944a943.entry.js +0 -1
  1403. package/dist/web-components-library/p-cd33f4b1.entry.js +0 -1
  1404. package/dist/web-components-library/p-cdd88182.entry.js +0 -16
  1405. package/dist/web-components-library/p-d3053434.entry.js +0 -1
  1406. package/dist/web-components-library/p-d63665c1.entry.js +0 -1
  1407. package/dist/web-components-library/p-dabccb20.entry.js +0 -1
  1408. package/dist/web-components-library/p-dc5ab2cc.entry.js +0 -1
  1409. package/dist/web-components-library/p-dfd43710.entry.js +0 -1
  1410. package/dist/web-components-library/p-e1d0a6e3.entry.js +0 -1
  1411. package/dist/web-components-library/p-e48497f0.entry.js +0 -1
  1412. package/dist/web-components-library/p-ec4940ce.entry.js +0 -1
  1413. package/dist/web-components-library/p-eddc2d19.entry.js +0 -1
  1414. package/dist/web-components-library/p-ef5018bb.entry.js +0 -1
  1415. package/dist/web-components-library/p-f7e46ef2.entry.js +0 -1
  1416. package/www/build/p-087956fa.entry.js +0 -1
  1417. package/www/build/p-10e5e16e.entry.js +0 -1
  1418. package/www/build/p-13e7f751.entry.js +0 -1
  1419. package/www/build/p-14b804f9.entry.js +0 -1
  1420. package/www/build/p-1580db58.entry.js +0 -1
  1421. package/www/build/p-15825811.entry.js +0 -1
  1422. package/www/build/p-1993b0ad.entry.js +0 -1
  1423. package/www/build/p-1a95491d.entry.js +0 -1
  1424. package/www/build/p-1d023220.entry.js +0 -1
  1425. package/www/build/p-21c85e04.entry.js +0 -1
  1426. package/www/build/p-23b46642.entry.js +0 -1
  1427. package/www/build/p-299f0f85.entry.js +0 -1
  1428. package/www/build/p-29dde955.entry.js +0 -1
  1429. package/www/build/p-2c036e17.entry.js +0 -1
  1430. package/www/build/p-2d4c01c3.entry.js +0 -1
  1431. package/www/build/p-2dabe353.entry.js +0 -1
  1432. package/www/build/p-2df6d169.entry.js +0 -1
  1433. package/www/build/p-2ef82e17.entry.js +0 -1
  1434. package/www/build/p-324933f6.entry.js +0 -1
  1435. package/www/build/p-37e84b71.entry.js +0 -1
  1436. package/www/build/p-3c53e451.entry.js +0 -1
  1437. package/www/build/p-3ea03d34.entry.js +0 -1
  1438. package/www/build/p-41584e90.entry.js +0 -1
  1439. package/www/build/p-50e10a10.entry.js +0 -1
  1440. package/www/build/p-52899754.entry.js +0 -1
  1441. package/www/build/p-53670be4.entry.js +0 -1
  1442. package/www/build/p-583b8152.entry.js +0 -1
  1443. package/www/build/p-5a05dc1e.entry.js +0 -1
  1444. package/www/build/p-5d20fc3d.entry.js +0 -1
  1445. package/www/build/p-622466f9.entry.js +0 -1
  1446. package/www/build/p-658f022d.entry.js +0 -1
  1447. package/www/build/p-6bd35edf.entry.js +0 -1
  1448. package/www/build/p-7226f07a.entry.js +0 -1
  1449. package/www/build/p-7371a543.entry.js +0 -2
  1450. package/www/build/p-77bf39a4.entry.js +0 -1
  1451. package/www/build/p-788eaac7.entry.js +0 -1
  1452. package/www/build/p-7bf7539a.entry.js +0 -1
  1453. package/www/build/p-81eb43fd.entry.js +0 -1
  1454. package/www/build/p-8261c869.entry.js +0 -1
  1455. package/www/build/p-83da1031.entry.js +0 -1
  1456. package/www/build/p-85cac60d.entry.js +0 -1
  1457. package/www/build/p-88a3ba7c.entry.js +0 -1
  1458. package/www/build/p-8a8df4f4.entry.js +0 -1
  1459. package/www/build/p-8b026993.entry.js +0 -1
  1460. package/www/build/p-8d7e2e16.entry.js +0 -1
  1461. package/www/build/p-8de064a4.entry.js +0 -1
  1462. package/www/build/p-8f4a04aa.entry.js +0 -1
  1463. package/www/build/p-B8WJfd4z.js +0 -1
  1464. package/www/build/p-BKCj6NR2.js +0 -1
  1465. package/www/build/p-CPsEG702.js +0 -1
  1466. package/www/build/p-CjHS9zeM.js +0 -1
  1467. package/www/build/p-DPdXlnVe.js +0 -2
  1468. package/www/build/p-a4f673f8.entry.js +0 -1
  1469. package/www/build/p-aa4fc3d3.entry.js +0 -1
  1470. package/www/build/p-aa72d766.entry.js +0 -1
  1471. package/www/build/p-ad2cd7fc.entry.js +0 -1
  1472. package/www/build/p-b6223d7e.entry.js +0 -1
  1473. package/www/build/p-b851f20b.entry.js +0 -1
  1474. package/www/build/p-b9343431.entry.js +0 -1
  1475. package/www/build/p-be354b22.entry.js +0 -1
  1476. package/www/build/p-c42ddd93.entry.js +0 -1
  1477. package/www/build/p-c4e7bd16.entry.js +0 -1
  1478. package/www/build/p-c5c5a64f.js +0 -1
  1479. package/www/build/p-c944a943.entry.js +0 -1
  1480. package/www/build/p-cd33f4b1.entry.js +0 -1
  1481. package/www/build/p-cdd88182.entry.js +0 -16
  1482. package/www/build/p-d3053434.entry.js +0 -1
  1483. package/www/build/p-d63665c1.entry.js +0 -1
  1484. package/www/build/p-dabccb20.entry.js +0 -1
  1485. package/www/build/p-dc5ab2cc.entry.js +0 -1
  1486. package/www/build/p-dfd43710.entry.js +0 -1
  1487. package/www/build/p-e1d0a6e3.entry.js +0 -1
  1488. package/www/build/p-e48497f0.entry.js +0 -1
  1489. package/www/build/p-ec4940ce.entry.js +0 -1
  1490. package/www/build/p-eddc2d19.entry.js +0 -1
  1491. package/www/build/p-ef5018bb.entry.js +0 -1
  1492. package/www/build/p-f7e46ef2.entry.js +0 -1
@@ -7,10 +7,6 @@ import defaultFallbackCover from "../../assets/images/png/placeholder-cover.png"
7
7
  * Alignment of the image inside the container can be customized via CSS properties.
8
8
  *
9
9
  * @slot coverOverlay - Content to be displayed over the cover image (e.g. a label). The overlay is positioned at the bottom of the cover. Has some default styling (such as the colored background) that can be customized via CSS.
10
- * @cssprop --z-book-cover-height - height of the book cover (default: `378px`). The width is calculated automatically to maintain an aspect ratio of 1.33.
11
- * @cssprop --z-book-cover-border-radius - border radius of the book cover (default: `var(--border-radius)`)
12
- * @cssprop --z-book-cover-stack-shift-x - the horizontal shift of each stacked cover when `multiple` is `true` (default: `8px`)
13
- * @cssprop --z-book-cover-stack-shift-y - the vertical shift of each stacked cover when `multiple` is `true` (default: `12px`)
14
10
  */
15
11
  export class ZBookCover {
16
12
  constructor() {
@@ -21,7 +17,7 @@ export class ZBookCover {
21
17
  }
22
18
  render() {
23
19
  var _a;
24
- return (h(Host, { key: '2d26511d2f6c57adf2b20c0a98b86b5c18ca3b55' }, this.multiple && (h(Fragment, { key: '79279147bd5526ec381ee54681e70f2601f7d606' }, h("div", { key: 'a58d293a70ae353b24deda1917ba06b46cd6cb69', class: "shifted-stack-cover stack-cover-2" }), h("div", { key: '34496473686299a655126cd1222d1ae88eadada8', class: "shifted-stack-cover stack-cover-1" }))), h("div", { key: 'd3ffeff92bfcb9a4cfc8a1d250e03bcbb8de8aa1', class: "cover-container" }, h("img", { key: '9e05370d50d32cdcf7c0ffed6f0c9db11219b393', src: (_a = this.cover) !== null && _a !== void 0 ? _a : defaultFallbackCover, "aria-hidden": "true", alt: "", onError: () => (this.cover = this.fallbackCover || defaultFallbackCover) }), h("slot", { key: 'dc7b2f10a9762234f43cd0857bbd6471f1d061e8', name: "coverOverlay" }))));
20
+ return (h(Host, { key: '407e954f3f8cb933aff3b404b7f3e1643798cf67' }, this.multiple && (h(Fragment, { key: 'c0c1e4caa27986a9c6e28733f4f8fe62e4dbea77' }, h("div", { key: 'dcaeeb60be98ce88fad97775307a5a339c0b47f9', class: "shifted-stack-cover stack-cover-2" }), h("div", { key: 'b56848110f5c895b9d3301daba51d6d01659a63c', class: "shifted-stack-cover stack-cover-1" }))), h("div", { key: '019936f586e758c4f5c0f6694d5c2291c222869b', class: "cover-container" }, h("img", { key: 'f0e6af812e6b1575396c16470090969cf19571aa', src: (_a = this.cover) !== null && _a !== void 0 ? _a : defaultFallbackCover, "aria-hidden": "true", alt: "", onError: () => (this.cover = this.fallbackCover || defaultFallbackCover) }), h("slot", { key: '6556420f0cba2f2cac412b1386124c0b8e72db52', name: "coverOverlay" }))));
25
21
  }
26
22
  static get is() { return "z-book-cover"; }
27
23
  static get encapsulation() { return "shadow"; }
@@ -118,3 +114,4 @@ export class ZBookCover {
118
114
  };
119
115
  }
120
116
  }
117
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-book-cover/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACrF,OAAO,oBAAoB,MAAM,+CAA+C,CAAC;AAEjF;;;;;;;GAOG;AAMH,MAAM,OAAO,UAAU;IALvB;QAcE,qEAAqE;QAErE,aAAQ,GAAG,KAAK,CAAC;QAEjB,oGAAoG;QAEpG,aAAQ,GAAG,KAAK,CAAC;KAuBlB;IArBC,MAAM;;QACJ,OAAO,CACL,EAAC,IAAI;YACF,IAAI,CAAC,QAAQ,IAAI,CAChB,EAAC,QAAQ;gBACP,4DAAK,KAAK,EAAC,mCAAmC,GAAO;gBACrD,4DAAK,KAAK,EAAC,mCAAmC,GAAO,CAC5C,CACZ;YACD,4DAAK,KAAK,EAAC,iBAAiB;gBAC1B,4DACE,GAAG,EAAE,MAAA,IAAI,CAAC,KAAK,mCAAI,oBAAoB,iBAC3B,MAAM,EAClB,GAAG,EAAC,EAAE,EACN,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,IAAI,oBAAoB,CAAC,GACxE;gBACF,6DAAM,IAAI,EAAC,cAAc,GAAQ,CAC7B,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Fragment, Host, Prop, h} from \"@stencil/core\";\nimport defaultFallbackCover from \"../../assets/images/png/placeholder-cover.png\";\n\n/**\n * This component displays a book cover image,\n * with options for borders and a representation of multiple books with a stack of fake covers behind the original one.\n * The aspect ratio of the cover image is preserved.\n * Alignment of the image inside the container can be customized via CSS properties.\n *\n * @slot coverOverlay - Content to be displayed over the cover image (e.g. a label). The overlay is positioned at the bottom of the cover. Has some default styling (such as the colored background) that can be customized via CSS.\n */\n@Component({\n tag: \"z-book-cover\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZBookCover implements ComponentInterface {\n /** URL of the cover image. */\n @Prop()\n cover: string;\n\n /** URL of the fallback cover image. */\n @Prop()\n fallbackCover: string;\n\n /** Whether to show a stack of covers to represent multiple books. */\n @Prop({reflect: true})\n multiple = false;\n\n /** Whether to apply a border around the cover image (always applied when `multiple` is enabled). */\n @Prop({reflect: true})\n bordered = false;\n\n render(): HTMLZBookCoverElement {\n return (\n <Host>\n {this.multiple && (\n <Fragment>\n <div class=\"shifted-stack-cover stack-cover-2\"></div>\n <div class=\"shifted-stack-cover stack-cover-1\"></div>\n </Fragment>\n )}\n <div class=\"cover-container\">\n <img\n src={this.cover ?? defaultFallbackCover}\n aria-hidden=\"true\"\n alt=\"\"\n onError={() => (this.cover = this.fallbackCover || defaultFallbackCover)}\n />\n <slot name=\"coverOverlay\"></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -5,6 +5,12 @@
5
5
  }
6
6
 
7
7
  :host {
8
+ /**
9
+ * @prop --z-book-cover-height: height of the book cover (default: `378px`). The width is calculated automatically to maintain an aspect ratio of 1.33.
10
+ * @prop --z-book-cover-border-radius: border radius of the book cover (default: `var(--border-radius)`)
11
+ * @prop --z-book-cover-stack-shift-x: the horizontal shift of each stacked cover when `multiple` is `true` (default: `8px`)
12
+ * @prop --z-book-cover-stack-shift-y: the vertical shift of each stacked cover when `multiple` is `true` (default: `12px`)
13
+ */
8
14
  --z-book-cover-height: 378px;
9
15
  --z-book-cover-border-radius: var(--border-radius);
10
16
  --z-book-cover-stack-shift-x: 8px;
@@ -205,10 +205,10 @@ export class ZBreadcrumb {
205
205
  ];
206
206
  }
207
207
  render() {
208
- return (h(Host, { key: '78ee363186910bdb6563e459cac4958a4a5a1862', style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, h("nav", { key: 'ea14aa3cc66e2b925b859c48f234ac4c19504191', ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
208
+ return (h(Host, { key: '84c8968de32dd42b1c186c3e21ef455ed3419b1b', style: { "--line-clamp-popover": `${this.overflowMenuItemRows}` } }, h("nav", { key: 'a33b0ec178cf876482c3c598be9b08f3af192e74', ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
209
209
  semibold: this.pathStyle === BreadcrumbPathStyle.SEMIBOLD,
210
210
  underlined: this.pathStyle === BreadcrumbPathStyle.UNDERLINED,
211
- } }, h("ol", { key: '5b15b47dbcadf31f3a933156a29e4c08f39df662' }, this.viewPortWidth === Device.MOBILE ? this.renderMobileItems() : this.renderItems()))));
211
+ } }, h("ol", { key: 'b73a28050ec43c5441b675b497236ae0210b6657' }, this.viewPortWidth === Device.MOBILE ? this.renderMobileItems() : this.renderItems()))));
212
212
  }
213
213
  static get is() { return "z-breadcrumb"; }
214
214
  static get encapsulation() { return "shadow"; }
@@ -412,3 +412,4 @@ export class ZBreadcrumb {
412
412
  }];
413
413
  }
414
414
  }
415
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-breadcrumb/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACL,CAAC,GACF,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,y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C,cACE,KAAK,EAAC,WAAW,EACjB,IAAI,EAAC,eAAe,iBACR,MAAM,GAClB,CACH,CACE,CACN,CAAC;SACH,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,EAAC,sBAAsB,EAAE,GAAG,IAAI,CAAC,oBAAoB,EAAE,EAAC;YACnE,4DACE,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC,gBAC3B,YAAY,EACvB,KAAK,EAAE;oBACL,QAAQ,EAAE,IAAI,CAAC,SAAS,KAAK,mBAAmB,CAAC,QAAQ;oBACzD,UAAU,EAAE,IAAI,CAAC,SAAS,KAAK,mBAAmB,CAAC,UAAU;iBAC9D;gBAED,6DAAK,IAAI,CAAC,aAAa,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAM,CAC3F,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {\n BreadcrumbHomepageVariant,\n BreadcrumbPath,\n BreadcrumbPathStyle,\n Device,\n KeyboardCode,\n ListSize,\n PopoverPosition,\n} from \"../../beans\";\nimport {getDevice, handleKeyboardSubmit} from \"../../utils/utils\";\n\n@Component({\n tag: \"z-breadcrumb\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZBreadcrumb implements ComponentInterface {\n /* Accessibility references */\n /* Overflow-menu: https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/ */\n /* Breadcrumb: https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/ */\n /* Focus on multiline link: https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance.html */\n\n @Element() hostElement: HTMLZBreadcrumbElement;\n\n /** [optional] Sets the path style */\n @Prop({reflect: true})\n pathStyle?: BreadcrumbPathStyle = BreadcrumbPathStyle.UNDERLINED;\n\n /** [optional] Variant of first node */\n @Prop()\n homepageVariant?: BreadcrumbHomepageVariant = BreadcrumbHomepageVariant.ICON;\n\n /** [optional] Sets max number of element to show */\n @Prop()\n maxNodesToShow? = 5;\n\n /** [optional] Controls the behaviour on <a> tag click/enter */\n @Prop()\n preventFollowUrl? = false;\n\n /** [optional] Sets max number of row for each path inside the popover. Zero equals unlimited */\n @Prop()\n overflowMenuItemRows? = 0;\n\n /** [optional] Sets the maximun number of chars per single node */\n @Prop()\n truncateChar? = 30;\n\n /** Handle mobile */\n @State()\n viewPortWidth: Device;\n\n /** Detect whether the length of the nodes shown exceeds the container length */\n @State()\n hasOverflow = false;\n\n @State()\n popoverEllipsisOpen = false;\n\n /** Emitted when preventFollowUrl=true to handle custom page transition */\n @Event()\n clickOnNode: EventEmitter<BreadcrumbPath[\"path\"]>;\n\n private pathsList: BreadcrumbPath[];\n\n private pathListCopy: BreadcrumbPath[];\n\n private collapsedElements: BreadcrumbPath[] = [];\n\n private collapsedElementsRef: HTMLZPopoverElement;\n\n private triggerButton: HTMLButtonElement;\n\n private wrapElement: HTMLElement;\n\n private currentIndex = 0;\n\n private homepageNode: BreadcrumbPath;\n\n private anchorElements;\n\n private currentEllipsisText: string;\n\n private truncatePosition = null;\n\n @Listen(\"resize\", {target: \"window\"})\n handleResize(): void {\n this.viewPortWidth = getDevice();\n if (\n this.viewPortWidth !== Device.MOBILE &&\n this.wrapElement &&\n this.wrapElement.scrollWidth > this.wrapElement.clientWidth\n ) {\n this.hasOverflow = true;\n }\n }\n // eslint-disable-next-line lines-between-class-members\n @Watch(\"maxNodesToShow\")\n handlePropChange(): void {\n this.initializeBreadcrumb();\n }\n\n @Watch(\"viewPortWidth\")\n handleResizeUp(newValue: Device, oldValue: Device): void {\n if (\n newValue === Device.MOBILE ||\n (oldValue === Device.MOBILE && newValue === Device.TABLET) ||\n (oldValue === Device.MOBILE && newValue === Device.DESKTOP) ||\n (oldValue === Device.MOBILE && newValue === Device.DESKTOP_WIDE) ||\n (oldValue === Device.TABLET && newValue === Device.DESKTOP) ||\n (oldValue === Device.TABLET && newValue === Device.DESKTOP_WIDE) ||\n (oldValue === Device.DESKTOP && newValue === Device.DESKTOP_WIDE)\n ) {\n this.initializeBreadcrumb();\n }\n }\n\n componentWillLoad(): void {\n this.viewPortWidth = getDevice();\n this.initializeBreadcrumb();\n }\n\n componentWillRender(): void {\n if (this.viewPortWidth !== Device.MOBILE && this.hasOverflow) {\n this.checkEllipsisOrOverflowMenu();\n this.hasOverflow = false;\n }\n }\n\n componentDidRender(): void {\n if (this.collapsedElementsRef) {\n this.anchorElements = Array.from(this.hostElement.shadowRoot.querySelectorAll(\"z-list-group a\"));\n }\n\n if (this.viewPortWidth !== Device.MOBILE) {\n requestAnimationFrame(() => {\n if (this.wrapElement.scrollWidth > this.wrapElement.clientWidth) {\n if (!this.hasOverflow) {\n this.hasOverflow = true;\n }\n }\n });\n }\n }\n\n private initializeBreadcrumb(): void {\n if (this.viewPortWidth === Device.MOBILE) {\n this.pathsList = this.getPathsItemsList().filter((item) => !!item.path);\n } else {\n this.pathsList = this.getPathsItemsList();\n }\n this.homepageNode = this.pathsList.shift();\n this.pathListCopy = [...this.pathsList];\n this.collapsedElements = [];\n if (this.pathsList.length > this.maxNodesToShow) {\n this.collapsedElements = this.pathsList.splice(0, this.pathsList.length - 2);\n }\n }\n\n private checkEllipsisOrOverflowMenu(): void {\n for (let i = 0; i < this.pathsList.length; i++) {\n if (this.pathsList[i].text.length <= this.truncateChar) {\n continue;\n }\n\n if (this.truncatePosition > 0) {\n this.collapsedElements.push(...this.pathListCopy.splice(0, this.truncatePosition));\n this.pathsList.splice(0, this.truncatePosition);\n this.truncatePosition = 0;\n\n return;\n } else if (this.truncatePosition === 0) {\n this.collapsedElements.push(...this.pathListCopy.splice(0, this.truncatePosition + 1));\n this.pathsList.splice(0, this.truncatePosition + 1);\n this.truncatePosition = null;\n\n return;\n }\n\n if (i !== this.pathsList.length - 1) {\n const truncatedString = this.truncateWithEllipsis(this.pathsList[i].text, this.truncateChar);\n this.currentEllipsisText = this.pathsList[i].text;\n this.pathsList[i].text = truncatedString;\n this.pathsList[i].hasTooltip = true;\n this.truncatePosition = i;\n\n return;\n }\n }\n }\n\n private truncateWithEllipsis(str: string, maxLength: number): string {\n if (str.length <= maxLength) {\n return str;\n }\n\n return str.substring(0, maxLength - 1) + \"&mldr;\";\n }\n\n private getPathsItemsList(): BreadcrumbPath[] {\n return Array.from(this.hostElement.children).map((item: HTMLAnchorElement) => {\n return {\n text: item.textContent,\n path: item.href,\n hasTooltip: false,\n };\n });\n }\n\n private renderHomepageNode(): HTMLLIElement {\n return (\n <li>\n <a\n class={{\n \"homepage-text\": this.homepageVariant === BreadcrumbHomepageVariant.TEXT,\n }}\n href={this.homepageNode.path}\n onClick={(e) => this.handlePreventFollowUrl(e, this.homepageNode)}\n innerHTML={\n this.homepageVariant === BreadcrumbHomepageVariant.ICON\n ? `<z-icon name=\"home\" />`\n : this.homepageNode.text || \"Home\"\n }\n />\n {this.pathsList.length > 0 && (\n <z-icon\n class=\"separator\"\n name=\"chevron-right\"\n aria-hidden=\"true\"\n />\n )}\n </li>\n );\n }\n\n private togglePopover(): void {\n if (!this.collapsedElementsRef.open) {\n this.collapsedElementsRef.open = true;\n }\n }\n\n private handlePreventFollowUrl(e: MouseEvent, item): void {\n if (this.preventFollowUrl) {\n e.preventDefault();\n this.clickOnNode.emit(item.path);\n }\n }\n\n private handleOverflowMenuAccessibility(e: KeyboardEvent): void {\n const anchorElementsLenght = this.anchorElements.length;\n if (e.key === KeyboardCode.TAB) {\n e.preventDefault();\n\n return;\n }\n e.stopPropagation();\n const arrows = [KeyboardCode.ARROW_DOWN, KeyboardCode.ARROW_UP];\n if (arrows.includes(e.key as KeyboardCode)) {\n e.preventDefault();\n\n if (e.key === KeyboardCode.ARROW_DOWN) {\n this.currentIndex = anchorElementsLenght === this.currentIndex + 1 ? 0 : this.currentIndex + 1;\n }\n if (e.key === KeyboardCode.ARROW_UP) {\n this.currentIndex = this.currentIndex <= 0 ? anchorElementsLenght - 1 : this.currentIndex - 1;\n }\n\n this.anchorElements[this.currentIndex].focus();\n }\n\n if (e.key === KeyboardCode.ESC) {\n this.triggerButton.focus();\n }\n }\n\n private renderOverflowMenu(): HTMLLIElement {\n return (\n <li>\n <z-popover\n class=\"hidden-paths-popover\"\n ref={(val) => (this.collapsedElementsRef = val as HTMLZPopoverElement)}\n bindTo={this.triggerButton}\n position={PopoverPosition.BOTTOM_RIGHT}\n closable\n showArrow\n >\n <div class=\"popover-content\">\n <z-list>\n <z-list-group size={ListSize.SMALL}>\n {this.collapsedElements.map((item, index, array) => {\n return (\n <div>\n <z-list-element clickable>\n <a\n class=\"text-ellipsis\"\n href={item.path}\n onClick={(e) => this.handlePreventFollowUrl(e, item)}\n onKeyDown={(e) => this.handleOverflowMenuAccessibility(e)}\n innerHTML={item.text}\n />\n </z-list-element>\n {index < array.length - 1 && <z-divider color=\"color-surface03\"></z-divider>}\n </div>\n );\n })}\n </z-list-group>\n </z-list>\n </div>\n </z-popover>\n <button\n class=\"dots\"\n ref={(el) => (this.triggerButton = el)}\n aria-label=\"Mostra più breadcrumb\"\n aria-haspopup=\"true\"\n onClick={() => {\n this.togglePopover();\n }}\n onKeyDown={(e) => {\n handleKeyboardSubmit(e, this.togglePopover.bind(this));\n setTimeout(() => {\n this.anchorElements[0].focus();\n }, 100);\n }}\n innerHTML=\"&mldr;\"\n ></button>\n {this.pathsList.length > 0 && (\n <z-icon\n class=\"separator\"\n name=\"chevron-right\"\n aria-hidden=\"true\"\n />\n )}\n </li>\n );\n }\n\n private renderMobileItems(): HTMLLIElement {\n // show only the second to last element\n const secondToLastPath = this.pathsList[this.pathsList.length - 1];\n\n if (!secondToLastPath) {\n return;\n }\n\n return (\n <li>\n <a\n aria-current={secondToLastPath.path ? undefined : \"page\"}\n href={secondToLastPath.path}\n onClick={(e) => this.handlePreventFollowUrl(e, secondToLastPath)}\n >\n <z-icon name=\"chevron-left\" />\n <span\n class={{\n \"missing-path\": !secondToLastPath.path,\n \"text-ellipsis\": true,\n }}\n >\n {secondToLastPath.text}\n </span>\n </a>\n </li>\n );\n }\n\n private renderItems(): HTMLElement[] {\n let trigger;\n\n return [\n this.renderHomepageNode(),\n this.collapsedElements.length > 0 && this.renderOverflowMenu(),\n ...this.pathsList.map((item, index) => (\n <li>\n {item.hasTooltip && (\n <z-popover\n class=\"full-path-tooltip\"\n bindTo={trigger}\n open={this.popoverEllipsisOpen}\n position={PopoverPosition.BOTTOM_RIGHT}\n closable={false}\n showArrow\n >\n <span class=\"tooltip-content\">{this.currentEllipsisText}</span>\n </z-popover>\n )}\n <a\n class={{\"missing-path\": !item.path}}\n ref={(val) => (trigger = val)}\n aria-current={item.path ? undefined : \"page\"}\n href={item.path}\n onClick={(e) => this.handlePreventFollowUrl(e, item)}\n onMouseOver={() => {\n if (item.hasTooltip) {\n this.popoverEllipsisOpen = true;\n }\n }}\n onMouseLeave={() => {\n if (item.hasTooltip) {\n this.popoverEllipsisOpen = false;\n }\n }}\n innerHTML={item.text}\n />\n {index !== this.pathsList.length - 1 && (\n <z-icon\n class=\"separator\"\n name=\"chevron-right\"\n aria-hidden=\"true\"\n />\n )}\n </li>\n )),\n ];\n }\n\n render(): HTMLZBreadcrumbElement {\n return (\n <Host style={{\"--line-clamp-popover\": `${this.overflowMenuItemRows}`}}>\n <nav\n ref={(val) => (this.wrapElement = val)}\n aria-label=\"Breadcrumb\"\n class={{\n semibold: this.pathStyle === BreadcrumbPathStyle.SEMIBOLD,\n underlined: this.pathStyle === BreadcrumbPathStyle.UNDERLINED,\n }}\n >\n <ol>{this.viewPortWidth === Device.MOBILE ? this.renderMobileItems() : this.renderItems()}</ol>\n </nav>\n </Host>\n );\n }\n}\n"]}
@@ -8,7 +8,7 @@ export class ZButton {
8
8
  /** defines a string value that labels the internal interactive element. Used for accessibility. */
9
9
  this.ariaLabel = undefined;
10
10
  /**
11
- * **Deprecated:** Use `htmlrole` instead.
11
+ * Use `htmlrole` instead.
12
12
  * @deprecated This prop has been deprecated in favor of `htmlrole` for better accessibility.
13
13
  */
14
14
  this.role = "";
@@ -98,7 +98,7 @@ export class ZButton {
98
98
  "name": "deprecated",
99
99
  "text": "This prop has been deprecated in favor of `htmlrole` for better accessibility."
100
100
  }],
101
- "text": "**Deprecated:** Use `htmlrole` instead."
101
+ "text": "Use `htmlrole` instead."
102
102
  },
103
103
  "getter": false,
104
104
  "setter": false,
@@ -358,3 +358,4 @@ export class ZButton {
358
358
  }
359
359
  static get elementRef() { return "hostElement"; }
360
360
  }
361
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAE9E,OAAO,EAAa,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAC,MAAM,aAAa,CAAC;AAE7F;;GAEG;AAOH,MAAM,OAAO,OAAO;IANpB;QASE,mGAAmG;QAEnG,cAAS,GAAuB,SAAS,CAAC;QAE1C;;;WAGG;QAEH,SAAI,GAAG,EAAE,CAAC;QAsBV,sCAAsC;QAEtC,aAAQ,GAAa,KAAK,CAAC;QAE3B,kCAAkC;QAElC,SAAI,GAAgB,UAAU,CAAC,MAAM,CAAC;QAEtC,oFAAoF;QAEpF,YA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E,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,cAAc;YAEnB,IAAI,CAAC,UAAU,EAAE;YAClB,eAAQ,CACD,CACV,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Element, Prop, h} from \"@stencil/core\";\nimport {JSXBase} from \"@stencil/core/internal\";\nimport {ButtonSize, ButtonType, ButtonVariant, ControlSize, IconPosition} from \"../../beans\";\n\n/**\n * @slot - button label\n */\n@Component({\n tag: \"z-button\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZButton implements ComponentInterface {\n @Element() hostElement: HTMLZButtonElement;\n\n /** defines a string value that labels the internal interactive element. Used for accessibility. */\n @Prop()\n ariaLabel: string | undefined = undefined;\n\n /**\n * Use `htmlrole` instead.\n * @deprecated This prop has been deprecated in favor of `htmlrole` for better accessibility.\n */\n @Prop()\n role = \"\";\n\n /** defines role attribute, used for accessibility. */\n @Prop()\n htmlrole?: string;\n\n /** HTML <a> href attribute. If it is set, it renders an HTML <a> tag. */\n @Prop()\n href?: string;\n\n /** HTML a target attribute. */\n @Prop()\n target?: string;\n\n /** Identifier, should be unique. */\n @Prop()\n htmlid?: string;\n\n /** HTML button name attribute. */\n @Prop()\n name?: string;\n\n /** HTML button disabled attribute. */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /** HTML button type attribute. */\n @Prop()\n type?: ButtonType = ButtonType.BUTTON;\n\n /** Graphical variant: `primary`, `secondary`, `tertiary`. Defaults to `primary`. */\n @Prop({reflect: true})\n variant?: ButtonVariant = ButtonVariant.PRIMARY;\n\n /** `z-icon` name to use (optional). */\n @Prop()\n icon?: string;\n\n /** the button icon position. Defaults to `left` */\n @Prop({reflect: true})\n iconPosition?: IconPosition = IconPosition.LEFT;\n\n /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */\n @Prop({reflect: true})\n size?: ButtonSize | ControlSize = ControlSize.BIG;\n\n private hasText = false;\n\n componentWillLoad(): void {\n this.hasText = !!this.hostElement.textContent?.trim();\n }\n\n private get attributes(): JSXBase.HTMLAttributes<HTMLAnchorElement | HTMLButtonElement> {\n return {\n id: this.htmlid,\n class: {\n \"z-button--container\": true,\n \"z-button--has-text\": this.hasText,\n },\n };\n }\n\n private renderIcon(): HTMLZIconElement | undefined {\n return this.icon && <z-icon name={this.icon} />;\n }\n\n render(): HTMLAnchorElement | HTMLButtonElement {\n const normalizedAriaLabel = this.ariaLabel?.trim() || undefined;\n const normalizedRole = this.htmlrole || this.role?.trim() || undefined;\n\n if (this.href) {\n return (\n <a\n {...this.attributes}\n aria-label={normalizedAriaLabel}\n href={this.href}\n target={this.target}\n >\n {this.renderIcon()}\n <slot />\n </a>\n );\n }\n\n return (\n <button\n {...this.attributes}\n aria-label={normalizedAriaLabel}\n name={this.name}\n type={this.type}\n disabled={this.disabled}\n role={normalizedRole}\n >\n {this.renderIcon()}\n <slot />\n </button>\n );\n }\n}\n"]}
@@ -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: '30d0203657443c589241b25ae37155cfbd203f89', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, h("span", { key: '3934b6a866c2c791aa80e0de90197f5ae372aa88', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), h("span", { key: '1bb900d3b3d364b912e67ae44e3f60cf245c0672', class: "counter" }, this.counter && ` (${this.counter})`), h("span", { key: '066c842f00e3d26301e63fa91849dd4f414f05e8', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), h("z-icon", { key: '00b771b5c276eff3ca761acb28ba9df42b8d0a6c', name: "caret-up-down", width: 16, height: 16 })));
39
+ return (h("button", { key: '8bb124d8ffcce4ac1d7c01bc31f9256da769a90b', title: this.setButtonTitle(), id: this.buttonid, class: { selected: this.isselected }, onClick: () => this.emitButtonSortClick() }, h("span", { key: '6ab1b449e4d9c539683353cdcf8a4c8b3bdfa578', ref: (el) => (this.ellipsis = el), class: "ellipsis" }, !this.sortasc && this.desclabel ? this.desclabel : this.label), h("span", { key: 'd67c255b32c814e0b6afec14c79ba422b8b2a57d', class: "counter" }, this.counter && ` (${this.counter})`), h("span", { key: '77ea4b67643b28db4737dc301bc416595581b93f', class: "sort" }, this.sortasc ? this.sortlabelasc : this.sortlabeldesc), h("z-icon", { key: '098881514d797b081e36f7ad66c9f60ea2423b27', 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"; }
@@ -234,3 +234,4 @@ export class ZButtonSort {
234
234
  }];
235
235
  }
236
236
  }
237
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-button-sort/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,KAAK,EAAgB,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACjG,OAAO,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAC;AAOxD,MAAM,OAAO,WAAW;IALxB;QAsBE,gDAAgD;QAEhD,iBAAY,GAAY,KAAK,CAAC;QAE9B,iDAAiD;QAEjD,kBAAa,GAAY,KAAK,CA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EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,EAAqB,CAAC,EACpD,KAAK,EAAC,UAAU,IAEf,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CACzD;YACP,6DAAM,KAAK,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,IAAI,KAAK,IAAI,CAAC,OAAO,GAAG,CAAQ;YACnE,6DAAM,KAAK,EAAC,MAAM,IAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAQ;YACjF,+DACE,IAAI,EAAC,eAAe,EACpB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,GACV,CACK,CACV,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Event, EventEmitter, Prop, State, h} from \"@stencil/core\";\nimport {Breakpoints} from \"../../constants/breakpoints\";\n\n@Component({\n tag: \"z-button-sort\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZButtonSort implements ComponentInterface {\n /** id, should be unique */\n @Prop()\n buttonid: string;\n\n /** label content (ascending) */\n @Prop()\n label: string;\n\n /** label content (descending) */\n @Prop()\n desclabel?: string;\n\n /** occurrences counter (optional) */\n @Prop()\n counter?: number;\n\n /** sort label content (ascending) (optional) */\n @Prop()\n sortlabelasc?: string = \"A-Z\";\n\n /** sort label content (descending) (optional) */\n @Prop()\n sortlabeldesc?: string = \"Z-A\";\n\n /** selected flag (optional) */\n @Prop({mutable: true})\n isselected?: boolean = false;\n\n /** sortable flag (optional) */\n @Prop({mutable: true})\n sortasc?: boolean = true;\n\n @State()\n allowTooltip = false;\n\n private ellipsis?: HTMLSpanElement;\n\n /** sorting direction click event, returns `buttonid` and `sortAsc` */\n @Event()\n buttonSortClick: EventEmitter;\n\n private emitButtonSortClick(): void {\n if (!this.isselected) {\n this.isselected = true;\n } else {\n this.sortasc = !this.sortasc;\n }\n this.buttonSortClick.emit({\n buttonid: this.buttonid,\n sortAsc: this.sortasc,\n });\n }\n\n componentDidLoad(): void {\n if (this.elementHasEllipsis() && window.innerWidth > Breakpoints.TABLET) {\n this.allowTooltip = true;\n }\n }\n\n private setButtonTitle(): string {\n return this.allowTooltip ? `${this.sortasc ? this.label : this.desclabel}` : \"\";\n }\n\n private elementHasEllipsis(): boolean {\n return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;\n }\n\n render(): HTMLButtonElement {\n return (\n <button\n title={this.setButtonTitle()}\n id={this.buttonid}\n class={{selected: this.isselected}}\n onClick={() => this.emitButtonSortClick()}\n >\n <span\n ref={(el) => (this.ellipsis = el as HTMLSpanElement)}\n class=\"ellipsis\"\n >\n {!this.sortasc && this.desclabel ? this.desclabel : this.label}\n </span>\n <span class=\"counter\">{this.counter && ` (${this.counter})`}</span>\n <span class=\"sort\">{this.sortasc ? this.sortlabelasc : this.sortlabeldesc}</span>\n <z-icon\n name=\"caret-up-down\"\n width={16}\n height={16}\n />\n </button>\n );\n }\n}\n"]}
@@ -4,13 +4,6 @@ import { CardVariant } from "../../beans";
4
4
  * ZCard component.
5
5
  * The width of the card must be set by its container, following the grid indications of the design.
6
6
  *
7
- * @cssprop --aspect-ratio - Cover aspect ratio. Default: `1.62`
8
- * @cssprop --z-card--border-color - Default: `var(--gray200)`
9
- * @cssprop --z-card--color-cover-background - Cover color. Default: `var(--color-surface01)`
10
- * @cssprop --z-card--text-background - Background color for the `text` variant. Default: `var(--color-surface01)`
11
- * @cssprop --z-card--text-border-radius - Default: `none`
12
- * @cssprop --z-card--text-border - Configure CSS `border`. Default: `none`
13
- * @cssprop --z-card--text-padding - Configure CSS `padding`. Default: `none`
14
7
  * @slot cover - Image cover
15
8
  * @slot metadata - Metadata
16
9
  * @slot title - Using an `<a>` tag here will make the whole card clickable as if the link was wrapping it.
@@ -88,7 +81,7 @@ export class ZCard {
88
81
  }
89
82
  },
90
83
  "required": false,
91
- "optional": false,
84
+ "optional": true,
92
85
  "docs": {
93
86
  "tags": [],
94
87
  "text": "Card variant.\nCan be one of \"text\", \"border\", \"shadow\", \"overlay\".\nLeave it undefined for the default card."
@@ -166,3 +159,4 @@ export class ZCard {
166
159
  }
167
160
  static get elementRef() { return "host"; }
168
161
  }
162
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAC3F,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAExC;;;;;;;;;GASG;AAMH,MAAM,OAAO,KAAK;IALlB;QAkBE,qCAAqC;QAErC,eAAU,GAAG,KAAK,CAAC;QAEnB;;;WAGG;QAEH,cAAS,GAAG,KAAK,CAAC;KAwEnB;IAjEC,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC1E,CAAC;IAED;;;OAGG;IACK,oBAAoB;QAC1B,OAAO;YACL,WAAK,KAAK,EAAC,iBAAiB;gBAC1B,WAAK,KAAK,EAAC,aAAa;oBACtB,WAAK,KAAK,EAAC,eAAe;wBACxB,YAAM,IAAI,EAAC,UAAU,GAAQ;wBAC7B,YAAM,IAAI,EAAC,OAAO,G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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Element, Host, Prop, State, h} from \"@stencil/core\";\nimport {CardVariant} from \"../../beans\";\n\n/**\n * ZCard component.\n * The width of the card must be set by its container, following the grid indications of the design.\n *\n * @slot cover - Image cover\n * @slot metadata - Metadata\n * @slot title - Using an `<a>` tag here will make the whole card clickable as if the link was wrapping it.\n * @slot text\n * @slot action - Interactive elements to place at the bottom of the card. To put non-interactive elements here when using an `<a>` tag in the `title` slot, and use this as a sort of \"footer\", set `z-index: 0` on each of those elements.\n */\n@Component({\n tag: \"z-card\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZCard implements ComponentInterface {\n /**\n * Card variant.\n * Can be one of \"text\", \"border\", \"shadow\", \"overlay\".\n * Leave it undefined for the default card.\n */\n @Prop({reflect: true})\n variant?: CardVariant;\n\n /** Name of the icon to place over the image cover */\n @Prop()\n coverIcon: string;\n\n /** Enable shadow. Default: false. */\n @Prop({reflect: true})\n showShadow = false;\n\n /**\n * Enable \"clickable\" styles like hover background and cursor, focus shadow on the whole card, etc.\n * Always set this to `true` when putting an `<a>` tag in the `title` slot.\n */\n @Prop({reflect: true})\n clickable = false;\n\n @Element() host: HTMLZCardElement;\n\n @State()\n hasCoverImage: boolean;\n\n componentWillLoad(): void {\n this.hasCoverImage = this.host.querySelector('[slot=\"cover\"]') !== null;\n }\n\n /**\n * Template for a card without image cover.\n * A colored background replaces the image and some data is moved over it.\n */\n private renderColorCoverCard(): HTMLDivElement[] {\n return [\n <div class=\"cover-container\">\n <div class=\"color-cover\">\n <div class=\"cover-content\">\n <slot name=\"metadata\"></slot>\n <slot name=\"title\"></slot>\n </div>\n </div>\n </div>,\n <div class=\"content\">\n <slot name=\"text\"></slot>\n <div class=\"actions\">\n <slot name=\"action\"></slot>\n </div>\n </div>,\n ];\n }\n\n /**\n * Template for the content.\n */\n private renderContent(): HTMLDivElement {\n return (\n <div class=\"content\">\n <slot name=\"metadata\"></slot>\n <slot name=\"title\"></slot>\n <slot name=\"text\"></slot>\n <div class=\"actions\">\n <slot name=\"action\"></slot>\n </div>\n </div>\n );\n }\n\n render(): HTMLZCardElement {\n if (this.variant === CardVariant.TEXT) {\n return <Host>{this.renderContent()}</Host>;\n }\n\n if (this.variant === CardVariant.OVERLAY || this.hasCoverImage) {\n return (\n <Host>\n <div class=\"cover-container\">\n {this.hasCoverImage && [\n <slot name=\"cover\"></slot>,\n this.variant !== CardVariant.OVERLAY && this.coverIcon && <z-icon name={this.coverIcon}></z-icon>,\n ]}\n {!this.hasCoverImage && <div class=\"color-cover\"></div>}\n </div>\n {this.renderContent()}\n </Host>\n );\n }\n\n return <Host>{this.renderColorCoverCard()}</Host>;\n }\n}\n"]}
@@ -1,4 +1,13 @@
1
1
  :host {
2
+ /**
3
+ * @prop --aspect-ratio: Cover aspect ratio. Default: `1.62`
4
+ * @prop --z-card--border-color: Default: `var(--gray200)`
5
+ * @prop --z-card--color-cover-background: Cover color. Default: `var(--color-surface01)`
6
+ * @prop --z-card--text-background: Background color for the `text` variant. Default: `var(--color-surface01)`
7
+ * @prop --z-card--text-border-radius: Default: `none`
8
+ * @prop --z-card--text-border: Configure CSS `border`. Default: `none`
9
+ * @prop --z-card--text-padding: Configure CSS `padding`. Default: `none`
10
+ */
2
11
  --aspect-ratio: 1.62;
3
12
  --z-card--border-color: var(--gray200);
4
13
  --z-card--color-cover-background: var(--color-surface01);
@@ -2,8 +2,6 @@ import { Host, h } from "@stencil/core";
2
2
  import { ButtonVariant, CarouselArrowsPosition, CarouselProgressMode } from "../../beans";
3
3
  /**
4
4
  * ZCarousel component.
5
- * @cssprop --z-carousel-gutter - The gutter between items.
6
- * @cssprop --z-carousel-items-shadow - The shadow around the items.
7
5
  * @slot - Carousel items. Use `<li>` elements inside this slot.
8
6
  */
9
7
  export class ZCarousel {
@@ -410,3 +408,4 @@ export class ZCarousel {
410
408
  }];
411
409
  }
412
410
  }
411
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-carousel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACvH,OAAO,EAAC,aAAa,EAAE,sBAAsB,EAAE,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAExF;;;GAGG;AAMH,MAAM,OAAO,SAAS;IALtB;QAgBE,uCAAuC;QAEvC,WAAM,GAAG,KAAK,CAAC;QAUf;;;;WAIG;QAEH,gBAAW,GAAG,IAAI,CAAC;QAEnB,sFAAsF;QAEtF,uBAAkB,GAAG,GAAG,CAAC;QAEzB,iGAAiG;QAEjG,aAAQ,GAAG,KAAK,CAAC;QAEjB,0CAA0C;QAE1C,YAAO,GAAG,CAAC,CAAC;QAyBZ,wGAAwG;QAChG,gBAAW,GAAW,IAAI,CAAC;KAsSpC;IA/RC,aAAa;QACX,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAC,WAAW,EAAE,IAAI,CAAC,OAAO,EAAC,CAAC,CAAC;IACrD,CAAC;IAGD,kBAAkB;QAChB,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,CAAC;YAC9C,IAAI,CAAC,uBAAuB,EAAE,CAAC;QACjC,CAAC;IACH,CAAC;IAGD,oBAAoB;QAClB,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAGD,eAAe;QACb,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YACpB,wHAAwH;YACxH,IAAI,CAAC,0BAA0B,EAAE,CAAC;QACpC,CAAC;IACH,CAAC;IAED,wEAAwE;IAChE,0BAA0B;;QAChC,IAAI,CAAC,UAAU,EAAE,CAAC;QA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Element, Event, EventEmitter, Host, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ButtonVariant, CarouselArrowsPosition, CarouselProgressMode} from \"../../beans\";\n\n/**\n * ZCarousel component.\n * @slot - Carousel items. Use `<li>` elements inside this slot.\n */\n@Component({\n tag: \"z-carousel\",\n styleUrls: [\"styles.css\", \"../../tokens/typography.css\"],\n shadow: true,\n})\nexport class ZCarousel implements ComponentInterface {\n @Element() host: HTMLZCarouselElement;\n\n /** The z-carousel is on loading state */\n @Prop()\n isLoading: boolean;\n\n /** The z-carousel title */\n @Prop()\n label?: string;\n\n /** Shows only one content at a time */\n @Prop({reflect: true})\n single = false;\n\n /** Arrow buttons position */\n @Prop({reflect: true})\n arrowsPosition?: CarouselArrowsPosition;\n\n /** Progress indicator type. Only available for `single` mode */\n @Prop()\n progressMode?: CarouselProgressMode;\n\n /**\n * Whether the navigation arrow buttons over the items are always visible or only on mouse hover.\n * If set to `false`, the arrows will not be visible on mobile.\n * Only meaningful with `arrowsPosition` set to `OVER`.\n */\n @Prop({reflect: true})\n fixedArrows = true;\n\n /** The height of the ghost loader (only visible when `isLoading` is set to `true`) */\n @Prop()\n ghostLoadingHeight = 100;\n\n /** When enabled, navigating next the last item will go back to the first item and vice versa. */\n @Prop()\n infinite = false;\n\n /** Current item index for single mode. */\n @State()\n current = 0;\n\n /** Items on the slider. */\n @State()\n items: HTMLLIElement[];\n\n /** Index of the indicator to highlight. */\n @State()\n highlightedIndicator: number;\n\n @State()\n canNavigatePrev: boolean;\n\n @State()\n canNavigateNext: boolean;\n\n /** Reference for the items container element. */\n protected itemsContainer: HTMLUListElement;\n\n /** Observer that handles current index change when scrolling on single mode. */\n private intersectionObserver: IntersectionObserver;\n\n /** Observer to check if navigation can still be enabled/showed when the size of the items' container changes */\n private resizeObserver: ResizeObserver;\n\n /** Flag indicating the items container is about to scroll programmatically towards the stored index. */\n private scrollingTo: number = null;\n\n /** Emitted on index change and only in `single` mode. */\n @Event()\n indexChange: EventEmitter<{currentItem: number}>;\n\n @Watch(\"current\")\n onIndexChange(): void {\n this.indexChange.emit({currentItem: this.current});\n }\n\n @Watch(\"single\")\n onSingleModeChange(): void {\n if (this.single && !this.intersectionObserver) {\n this.setIntersectionObserver();\n }\n }\n\n @Watch(\"infinite\")\n onInfiniteModeChange(): void {\n this.checkNavigationValidity();\n }\n\n @Watch(\"isLoading\")\n onLoadingChange(): void {\n if (!this.isLoading) {\n // when loading is finished, we need to set up things with the real items that were not present during the loading phase\n this.setupObserversAndListeners();\n }\n }\n\n /** Set up all observers and listeners related to the rendered items. */\n private setupObserversAndListeners(): void {\n this.setupItems();\n this.itemsContainer?.addEventListener(\"scroll\", this.checkNavigationValidity.bind(this), {passive: true});\n this.resizeObserver = new ResizeObserver(this.checkNavigationValidity.bind(this));\n this.resizeObserver.observe(this.itemsContainer);\n if (this.single) {\n this.setIntersectionObserver();\n }\n this.checkNavigationValidity();\n }\n\n /**\n * Set an intersection observer to:\n * - highlight the indicator of the intersecting item during scroll\n * - set the current item to the last intersecting item\n */\n private setIntersectionObserver(): void {\n this.intersectionObserver = new IntersectionObserver(\n (entries) => {\n const entry = entries.find(({isIntersecting}) => isIntersecting);\n if (!entry) {\n return;\n }\n\n const entryIndex = this.items.findIndex((item) => item === entry.target);\n this.highlightedIndicator = entryIndex;\n\n /* skip setting the current item if intersection has been triggered by a programmatic scroll\n (@see `goTo` function) and the final index has not been reached */\n if (this.scrollingTo !== null && entryIndex !== this.scrollingTo) {\n return;\n }\n\n this.scrollingTo = null;\n this.current = entryIndex;\n },\n {\n root: this.itemsContainer,\n threshold: 0.5,\n }\n );\n\n this.items.forEach((element) => this.intersectionObserver.observe(element));\n }\n\n /** Update items' list and check conditions to allow navigation */\n private onSlotChange(): void {\n this.items = Array.from(this.host.children) as HTMLLIElement[];\n this.checkNavigationValidity();\n this.setIntersectionObserver();\n this.goTo(this.current);\n }\n\n private onPrev(): void {\n if (this.single) {\n this.goTo(this.infinite && this.current - 1 < 0 ? this.items.length - 1 : Math.max(0, this.current - 1));\n\n return;\n }\n\n this.itemsContainer.scrollBy({\n left:\n this.infinite && this.itemsContainer.scrollLeft == 0\n ? this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth\n : -this.itemsContainer.clientWidth / 2,\n behavior: \"smooth\",\n });\n }\n\n private onNext(): void {\n if (this.single) {\n const next =\n this.infinite && this.current + 1 > this.items.length - 1\n ? 0\n : Math.min(this.current + 1, this.items.length - 1);\n\n return this.goTo(next);\n }\n\n this.itemsContainer.scrollBy({\n left:\n this.infinite &&\n this.itemsContainer.scrollLeft == this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth\n ? -this.itemsContainer.scrollWidth\n : this.itemsContainer.clientWidth / 2,\n behavior: \"smooth\",\n });\n }\n\n /**\n * Check if navigation buttons can be enabled and set the related local states.\n */\n private checkNavigationValidity(): void {\n if (this.single) {\n this.canNavigatePrev = this.current > 0;\n this.canNavigateNext = this.current < this.items.length - 1;\n\n return;\n }\n\n this.canNavigatePrev = this.itemsContainer.scrollLeft > 0;\n this.canNavigateNext =\n this.itemsContainer.scrollLeft < this.itemsContainer.scrollWidth - this.itemsContainer.clientWidth;\n }\n\n /**\n * Check if footer has to be rendered.\n */\n private canShowFooter(): boolean {\n if (!this.canNavigatePrev && !this.canNavigateNext) {\n return false;\n }\n\n return (\n this.arrowsPosition === CarouselArrowsPosition.BOTTOM ||\n this.progressMode === CarouselProgressMode.DOTS ||\n this.progressMode === CarouselProgressMode.NUMBERS\n );\n }\n\n /**\n * Set current item to passed index.\n * @param index Index to set\n */\n private goTo(index: number): void {\n if (this.current === index) {\n return;\n }\n\n this.scrollingTo = index;\n const left = this.items.slice(0, index).reduce((acc, item) => (acc += item.clientWidth), 0);\n // the scroll will trigger the IntersectionObserver and set the current item\n this.itemsContainer.scroll({\n left,\n behavior: \"smooth\",\n });\n }\n\n /** Check if navigation of at least one direction is enabled */\n private get canNavigate(): boolean {\n return this.canNavigatePrev || this.canNavigateNext;\n }\n\n private setupItems(): void {\n this.items = Array.from(this.host.children) as HTMLLIElement[];\n this.items.forEach((item) => {\n item.setAttribute(\"aria-roledescription\", \"slide\");\n });\n }\n\n componentDidLoad(): void {\n if (this.isLoading) {\n return;\n }\n\n this.setupObserversAndListeners();\n }\n\n disconnectedCallback(): void {\n this.resizeObserver?.disconnect();\n }\n\n render(): HTMLDivElement | HTMLZCarouselElement {\n if (this.isLoading) {\n return (\n <div class=\"z-carousel-container\">\n {this.label && <div class=\"heading-3-sb z-carousel-title\">{this.label}</div>}\n <div style={{height: `${this.ghostLoadingHeight}px`}}>\n <z-ghost-loading></z-ghost-loading>\n </div>\n </div>\n );\n }\n\n return (\n <Host>\n <div\n class=\"z-carousel-container\"\n aria-roledescription=\"carousel\"\n aria-label={this.label || \"Carousel\"}\n >\n {this.label && <div class=\"z-carousel-title heading-3-sb\">{this.label}</div>}\n <div class=\"z-carousel-wrapper\">\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.SECONDARY}\n data-direction=\"prev\"\n icon=\"arrow-left\"\n onClick={this.onPrev.bind(this)}\n disabled={!this.infinite && !this.canNavigatePrev}\n hidden={this.arrowsPosition !== CarouselArrowsPosition.OVER || !this.canNavigate}\n ariaLabel={this.single ? \"Mostra l'elemento precedente\" : \"Mostra gli elementi precedenti\"}\n />\n <ul\n class=\"z-carousel-items-container\"\n aria-atomic=\"false\"\n aria-live=\"polite\"\n ref={(el) => (this.itemsContainer = el)}\n >\n <slot onSlotchange={this.onSlotChange.bind(this)} />\n </ul>\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.SECONDARY}\n data-direction=\"next\"\n icon=\"arrow-right\"\n onClick={this.onNext.bind(this)}\n disabled={!this.infinite && !this.canNavigateNext}\n hidden={this.arrowsPosition !== CarouselArrowsPosition.OVER || !this.canNavigate}\n ariaLabel={this.single ? \"Mostra l'elemento successivo\" : \"Mostra gli elementi successivi\"}\n />\n </div>\n </div>\n\n {this.canShowFooter() && (\n <div class=\"z-carousel-footer\">\n {this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.TERTIARY}\n icon=\"arrow-left\"\n onClick={this.onPrev.bind(this)}\n disabled={!this.infinite && !this.canNavigatePrev}\n ariaLabel={this.single ? \"Mostra l'elemento precedente\" : \"Mostra gli elementi precedenti\"}\n />\n )}\n {this.progressMode === CarouselProgressMode.DOTS && this.single && this.items && (\n <div class=\"dots-progress\">\n {this.items.map((_, index) => (\n <button\n type=\"button\"\n class={{current: this.highlightedIndicator === index}}\n aria-label={\n this.highlightedIndicator === index ? \"Elemento corrente\" : `Spostati all'elemento ${index + 1}`\n }\n onClick={() => this.goTo(index)}\n />\n ))}\n </div>\n )}\n {this.progressMode === CarouselProgressMode.NUMBERS && this.single && this.items && (\n <div class=\"numbers-progress interactive-1\">\n <span class=\"current\">{this.current + 1}</span>\n <span>di</span>\n <span>{this.items.length}</span>\n </div>\n )}\n {this.arrowsPosition === CarouselArrowsPosition.BOTTOM && (\n <z-button\n class=\"z-carousel-navigation-arrow\"\n variant={ButtonVariant.TERTIARY}\n icon=\"arrow-right\"\n onClick={this.onNext.bind(this)}\n disabled={!this.infinite && !this.canNavigateNext}\n ariaLabel={this.single ? \"Mostra l'elemento successivo\" : \"Mostra gli elementi successivi\"}\n />\n )}\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -1,9 +1,13 @@
1
1
  :host {
2
- font-family: var(--font-family-sans);
3
- font-weight: var(--font-rg);
4
-
2
+ /**
3
+ * @prop --z-carousel-gutter: The gutter between items.
4
+ * @prop --z-carousel-items-shadow: The shadow around the items.
5
+ */
5
6
  --z-carousel-gutter: 0;
6
7
  --z-carousel-items-shadow: ;
8
+
9
+ font-family: var(--font-family-sans);
10
+ font-weight: var(--font-rg);
7
11
  }
8
12
 
9
13
  :host([single]) {
@@ -10,11 +10,11 @@ export class ZChip {
10
10
  this.ariaLabel = "";
11
11
  }
12
12
  render() {
13
- return (h("div", { key: '0f8834160a0c8e3ffd107233e2c5de6db6ab6df2', class: {
13
+ return (h("div", { key: '7ff5bc2ca7ac9e73c3bb6e31a4795d8f275b0217', class: {
14
14
  "z-chip-container": true,
15
15
  "z-chip-interactive": !!this.interactiveIcon,
16
16
  [this.type]: true,
17
- }, "aria-disabled": this.disabled }, this.icon && h("z-icon", { key: '51451c287eb3c450f4cc8a59f40e0d2e71fe95e2', name: this.icon }), h("slot", { key: 'd1c6dce40bf102ab19ca5bfc06fdbc342c97e68e' }), this.interactiveIcon && (h("button", { key: '3274d75df1f052aab16bfb8b663292160757acc8', type: "button", onClick: () => this.interactiveIconClick.emit(), "aria-label": this.ariaLabel, disabled: this.disabled }, h("z-icon", { key: '23605e0639429a9ac5d66eb3394a1a3c9740d601', class: "interactive-icon", name: this.interactiveIcon })))));
17
+ }, "aria-disabled": this.disabled }, this.icon && h("z-icon", { key: 'b96b42e01a624a43a0419e163b79512374540255', name: this.icon }), h("slot", { key: 'e613a251dccdedf4f2633361b5a22d6baf69173f' }), this.interactiveIcon && (h("button", { key: '4c8557d1a21c33a1e329f8f01dcd7aa1a2881096', type: "button", onClick: () => this.interactiveIconClick.emit(), "aria-label": this.ariaLabel, disabled: this.disabled }, h("z-icon", { key: 'a66b4a32af2c1a3283cdb80843b526ff375d34f7', class: "interactive-icon", name: this.interactiveIcon })))));
18
18
  }
19
19
  static get is() { return "z-chip"; }
20
20
  static get encapsulation() { return "scoped"; }
@@ -157,3 +157,4 @@ export class ZChip {
157
157
  }
158
158
  static get elementRef() { return "el"; }
159
159
  }
160
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-chip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACnG,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAQtC,MAAM,OAAO,KAAK;IANlB;QAaE,wDAAwD;QAExD,SAAI,GAAe,SAAS,CAAC,OAAO,CAAC;QAMrC,6BAA6B;QAE7B,aAAQ,GAAa,KAAK,CAAC;QAE3B,+BAA+B;QAE/B,cAAS,GAAG,EAAE,CAAC;KAkChB;IA5BC,MAAM;QACJ,OAAO,CACL,4DACE,KAAK,EAAE;gBACL,kBAAkB,EAAE,IAAI;gBACxB,oBAAoB,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe;gBAC5C,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI;aAClB,mBACc,IAAI,CAAC,QAAQ;YAE3B,IAAI,CAAC,IAAI,IAAI,+DAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI;YACzC,8DAAQ;YACP,IAAI,CAAC,eAAe,IAAI,CACvB,+DACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,EAAE,gBACnC,IAAI,CAAC,SAAS,EAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBAEvB,+DACE,KAAK,EAAC,kBAAkB,EACxB,IAAI,EAAE,IAAI,CAAC,eAAe,GAC1B,CACK,CACV,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, ComponentInterface, Element, Event, EventEmitter, Prop, h} from \"@stencil/core\";\nimport {ZChipType} from \"../../beans\";\n\n@Component({\n tag: \"z-chip\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZChip implements ComponentInterface {\n @Element() el: HTMLZChipElement;\n\n /** Non interactive icon */\n @Prop()\n icon?: string;\n\n /** z-chip size type, can be default, medium or small */\n @Prop({reflect: true})\n type?: ZChipType = ZChipType.DEFAULT;\n\n /** z-chip interactive icon */\n @Prop({reflect: true})\n interactiveIcon?: string;\n\n /** set z-chip as disabled */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /** z-chip aria-label string */\n @Prop()\n ariaLabel = \"\";\n\n /** click on interactive icon */\n @Event()\n interactiveIconClick: EventEmitter;\n\n render(): HTMLDivElement {\n return (\n <div\n class={{\n \"z-chip-container\": true,\n \"z-chip-interactive\": !!this.interactiveIcon,\n [this.type]: true,\n }}\n aria-disabled={this.disabled}\n >\n {this.icon && <z-icon name={this.icon} />}\n <slot />\n {this.interactiveIcon && (\n <button\n type=\"button\"\n onClick={() => this.interactiveIconClick.emit()}\n aria-label={this.ariaLabel}\n disabled={this.disabled}\n >\n <z-icon\n class=\"interactive-icon\"\n name={this.interactiveIcon}\n />\n </button>\n )}\n </div>\n );\n }\n}\n"]}
@@ -192,7 +192,7 @@ export class ZColorPicker {
192
192
  this.colorKeysByRow = this.sortColorKeysByRow();
193
193
  }
194
194
  render() {
195
- return (h(Host, { key: 'c834820884acc8c3bdf4571379cbe6da74e7ea89', role: "listbox", "aria-label": this.htmlAriaLabel || LOCALES[this.lng]["Select a color"], tabIndex: 0 }, this.colorKeysByRow.map((colorKey) => {
195
+ return (h(Host, { key: '8ab27c4b68bd295e1bda15e78f1f41bfbfc66b47', role: "listbox", "aria-label": this.htmlAriaLabel || LOCALES[this.lng]["Select a color"], tabIndex: 0 }, this.colorKeysByRow.map((colorKey) => {
196
196
  var _a;
197
197
  return (h("button", { class: "color-swatch", "data-color": colorKey, role: "option", "aria-selected": ((_a = this.selectedColor) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === colorKey.toUpperCase() ? "true" : "false", tabIndex: -1, onClick: () => (this.selectedColor = colorKey), disabled: this.disableTransparent && colorKey === "#FFFFFF00" }, h("div", { class: "color-swatch", role: "img", "aria-roledescription": LOCALES[this.lng]["Color swatch"], "aria-label": ColorPickerPalette[colorKey][this.lng], title: ColorPickerPalette[colorKey][this.lng], style: { backgroundColor: colorKey } })));
198
198
  })));
@@ -379,3 +379,4 @@ export class ZColorPicker {
379
379
  }];
380
380
  }
381
381
  }
382
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-color-picker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,CAAC,GACF,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,kBAAkB,EAAC,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,MAAM,OAAO,GAAG;IACd,EAAE,EAAE;QACF,gBAAgB,EAAE,qBAAqB;QACvC,cAAc,EAAE,oBAAoB;KACrC;IACD,EAAE,EAAE;QACF,gBAAgB,EAAE,gBAAgB;QAClC,cAAc,EAAE,cAAc;KAC/B;CACO,CAAC;AAEX,2DAA2D;AAC3D,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAE3B,oDAAoD;AACpD,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB;;;GAGG;AAMH,MAAM,OAAO,YAAY;IALzB;QAcE;;WAEG;QAEH,QAAG,GAAgB,IAAI,CAAC;QAQxB;;;WAGG;QAEH,uBAAkB,GAAG,KAAK,CAAC;QAQ3B;;WAEG;QACK,mBAAc,GAAyB,EAAE,CAAC;QAE1C,kBAAa,GAAwB,EAAE,CAAC;KA4NjD;IA1NC,IAAY,YAAY;QACtB,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;YAC/B,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,gBA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C,cAAc,gBACR,QAAQ,EACpB,IAAI,EAAC,QAAQ,mBACE,CAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,WAAW,EAAE,MAAK,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAC9F,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,EAC9C,QAAQ,EAAE,IAAI,CAAC,kBAAkB,IAAI,QAAQ,KAAK,WAAW;gBAE7D,WACE,KAAK,EAAC,cAAc,EACpB,IAAI,EAAC,KAAK,0BACY,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,cAAc,CAAC,gBAC3C,kBAAkB,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAClD,KAAK,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAC7C,KAAK,EAAE,EAAC,eAAe,EAAE,QAAQ,EAAC,GAC7B,CACA,CACV,CAAA;SAAA,CAAC,CACG,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Method,\n Prop,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {ColorPickerPalette} from \"../../beans\";\nimport {containsElement} from \"../../utils/utils\";\n\nconst LOCALES = {\n it: {\n \"Select a color\": \"Seleziona un colore\",\n \"Color swatch\": \"Campione di colore\",\n },\n en: {\n \"Select a color\": \"Select a color\",\n \"Color swatch\": \"Color swatch\",\n },\n} as const;\n\n/** Number of colors in each group (column) of the grid. */\nconst COLOR_GROUP_SIZE = 5;\n\n/** Number of color groups (columns) in the grid. */\nconst COLOR_GROUPS = 9;\n\n/**\n * Color picker component.\n * This component allows the user to pick a color from a predefined set.\n */\n@Component({\n tag: \"z-color-picker\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZColorPicker implements ComponentInterface {\n @Element() host: HTMLZColorPickerElement;\n\n /**\n * The selected color to highlight.\n */\n @Prop({mutable: true})\n selectedColor: ColorPickerPalette;\n\n /**\n * The language for the aria labels inside the color picker.\n */\n @Prop()\n lng: \"it\" | \"en\" = \"it\";\n\n /**\n * The aria-label for the color picker, e.g. \"Select a background color for the label\".\n */\n @Prop()\n htmlAriaLabel: string;\n\n /**\n * Disables the transparent color option.\n * Setting `selectedColor` prop to `#FFFFFF00` while `disableTransparent` is true will default to `#333333` (\"dark gray 2\").\n */\n @Prop()\n disableTransparent = false;\n\n /**\n * Event emitted when a color is selected.\n */\n @Event()\n colorSelected: EventEmitter<ColorPickerPalette>;\n\n /**\n * The color keys arranged in row-major order for rendering and navigation.\n */\n private colorKeysByRow: ColorPickerPalette[] = [];\n\n private _colorButtons: HTMLButtonElement[] = [];\n\n private get colorButtons(): HTMLButtonElement[] {\n if (!this._colorButtons.length) {\n this._colorButtons = Array.from(this.host.shadowRoot.querySelectorAll(\"button\")) as HTMLButtonElement[];\n }\n\n return this._colorButtons;\n }\n\n /**\n * Reorders color keys from column-major (the format of the `ColorPickerPalette` object) to row-major (visual/navigation order).\n * This ensures button indices in the DOM match their visual position in the grid.\n */\n private sortColorKeysByRow(): ColorPickerPalette[] {\n const allKeys = Object.keys(ColorPickerPalette) as ColorPickerPalette[];\n const ordered: ColorPickerPalette[] = [];\n\n // Iterate through visual positions (row by row, left to right)\n for (let row = 0; row < COLOR_GROUP_SIZE; row++) {\n for (let col = 0; col < COLOR_GROUPS; col++) {\n const columnMajorIndex = col * COLOR_GROUP_SIZE + row;\n if (columnMajorIndex < allKeys.length) {\n ordered.push(allKeys[columnMajorIndex]);\n }\n }\n }\n\n return ordered;\n }\n\n /** Move focus to the specified color button by index. */\n private moveFocusTo(index: number): void {\n // Reset tabindex of other buttons and set tabindex to 0 on selected button\n this.colorButtons.forEach((btn, i) => (btn.tabIndex = i === index ? 0 : -1));\n this.colorButtons[index].focus();\n }\n\n @Watch(\"disableTransparent\")\n @Watch(\"selectedColor\")\n validateTransparentSelection(): void {\n if (this.disableTransparent && this.selectedColor === \"#FFFFFF00\") {\n this.selectedColor = \"#333333\"; // Default to dark gray 2 if transparent is disabled and currently selected\n }\n }\n\n @Watch(\"selectedColor\")\n emitColorSelected(): void {\n this.colorSelected.emit(this.selectedColor);\n }\n\n /**\n * Focuses the selected or first enabled color button and makes the container non-tabbable.\n */\n @Listen(\"focus\")\n @Method()\n async setFocus(): Promise<void> {\n // Reset tabindex of all buttons\n this.colorButtons.forEach((btn) => (btn.tabIndex = -1));\n const firstSelectedOrEnabled =\n this.colorButtons.find((btn) => btn.ariaSelected === \"true\") || this.colorButtons.find((btn) => !btn.disabled);\n if (!firstSelectedOrEnabled) {\n return;\n }\n\n firstSelectedOrEnabled.tabIndex = 0;\n setTimeout(() => {\n firstSelectedOrEnabled.focus();\n }, 50);\n // Set container as non-tabbable\n this.host.tabIndex = -1;\n }\n\n /**\n * Compute next index in row-major grid according to keyboard direction.\n */\n private getNextIndexByKey(currentIndex: number, key: string, totalColors: number): number {\n const row = Math.floor(currentIndex / COLOR_GROUPS);\n const col = currentIndex % COLOR_GROUPS;\n let newIndex = currentIndex;\n\n switch (key) {\n case \"ArrowRight\": {\n const newCol = col + 1;\n const newRow = newCol >= COLOR_GROUPS ? (row + 1) % COLOR_GROUP_SIZE : row;\n newIndex = newRow * COLOR_GROUPS + (newCol % COLOR_GROUPS);\n if (newIndex >= totalColors) {\n newIndex = 0; // Wrap to first item\n }\n\n break;\n }\n case \"ArrowLeft\": {\n const newCol = col - 1;\n const newRow = newCol < 0 ? (row - 1 + COLOR_GROUP_SIZE) % COLOR_GROUP_SIZE : row;\n newIndex = newRow * COLOR_GROUPS + ((newCol + COLOR_GROUPS) % COLOR_GROUPS);\n if (newIndex >= totalColors) {\n newIndex = totalColors - 1; // Wrap to last item\n }\n\n break;\n }\n case \"ArrowDown\": {\n let newRow = row + 1;\n let newCol = col;\n if (newRow >= COLOR_GROUP_SIZE) {\n // Wrap to first item of next column\n newRow = 0;\n newCol = (col + 1) % COLOR_GROUPS;\n }\n newIndex = newRow * COLOR_GROUPS + newCol;\n if (newIndex >= totalColors) {\n newIndex = 0; // Wrap to first item\n }\n\n break;\n }\n case \"ArrowUp\": {\n let newRow = row - 1;\n let newCol = col;\n if (newRow < 0) {\n // Wrap to last item of previous column\n newRow = COLOR_GROUP_SIZE - 1;\n newCol = (col - 1 + COLOR_GROUPS) % COLOR_GROUPS;\n }\n newIndex = newRow * COLOR_GROUPS + newCol;\n if (newIndex >= totalColors) {\n newIndex = totalColors - 1; // Wrap to last item\n }\n\n break;\n }\n }\n\n return newIndex;\n }\n\n /**\n * Handle keyboard navigation within the color picker.\n * Arrow keys move focus in the expected direction, wrapping around edges. The grid is navigated in row-major order.\n */\n @Listen(\"keydown\")\n handleKeyDown(event: KeyboardEvent): void {\n const target = event.composedPath()[0] as HTMLElement;\n if (!target.dataset.color) {\n return;\n }\n\n const currentIndex = this.colorButtons.indexOf(target as HTMLButtonElement);\n const totalColors = this.colorButtons.length;\n if (currentIndex < 0 || ![\"ArrowRight\", \"ArrowLeft\", \"ArrowDown\", \"ArrowUp\"].includes(event.key)) {\n return;\n }\n\n let newIndex = currentIndex;\n let attempts = 0;\n\n do {\n newIndex = this.getNextIndexByKey(newIndex, event.key, totalColors);\n attempts++;\n } while (attempts < totalColors && this.colorButtons[newIndex]?.disabled);\n\n if (\n newIndex !== currentIndex &&\n newIndex >= 0 &&\n newIndex < totalColors &&\n !this.colorButtons[newIndex]?.disabled\n ) {\n this.moveFocusTo(newIndex);\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n /**\n * When focus leaves the color picker (e.g. user tabs away), reset all buttons to non-tabbable and make the container tabbable again.\n */\n @Listen(\"blur\")\n handleBlur(event: FocusEvent): void {\n const relatedTarget = event.relatedTarget as HTMLElement;\n if (!containsElement(this.host, relatedTarget)) {\n this.host.tabIndex = 0;\n this.colorButtons.forEach((btn) => (btn.tabIndex = -1));\n }\n }\n\n componentWillLoad(): void {\n this.colorKeysByRow = this.sortColorKeysByRow();\n }\n\n render(): HTMLZColorPickerElement {\n return (\n <Host\n role=\"listbox\"\n aria-label={this.htmlAriaLabel || LOCALES[this.lng][\"Select a color\"]}\n tabIndex={0}\n >\n {this.colorKeysByRow.map((colorKey: ColorPickerPalette) => (\n <button\n class=\"color-swatch\"\n data-color={colorKey}\n role=\"option\"\n aria-selected={this.selectedColor?.toUpperCase() === colorKey.toUpperCase() ? \"true\" : \"false\"}\n tabIndex={-1}\n onClick={() => (this.selectedColor = colorKey)}\n disabled={this.disableTransparent && colorKey === \"#FFFFFF00\"}\n >\n <div\n class=\"color-swatch\"\n role=\"img\"\n aria-roledescription={LOCALES[this.lng][\"Color swatch\"]}\n aria-label={ColorPickerPalette[colorKey][this.lng]}\n title={ColorPickerPalette[colorKey][this.lng]}\n style={{backgroundColor: colorKey}}\n ></div>\n </button>\n ))}\n </Host>\n );\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { ControlSize, InputType, KeyboardCode, ListDividerType, ListSize } from "../../beans";
3
- import { getPlainText, randomId } from "../../utils/utils";
3
+ import { encodeString, getPlainText, randomId } from "../../utils/utils";
4
4
  export class ZCombobox {
5
5
  watchItems() {
6
6
  this.itemsList = typeof this.items === "string" ? JSON.parse(this.items) : this.items;
@@ -59,8 +59,8 @@ export class ZCombobox {
59
59
  return ListSize.LARGE;
60
60
  }
61
61
  }
62
- getOptionId(itemId) {
63
- return `${this.inputid}-option-${itemId}`;
62
+ getOptionId(item) {
63
+ return `${this.inputid}-option-${item.id ? encodeString(`${item.id}`) : encodeString(`${item.name}`)}`;
64
64
  }
65
65
  getCheckAllOptionId() {
66
66
  return `${this.inputid}-check-all`;
@@ -130,7 +130,7 @@ export class ZCombobox {
130
130
  }
131
131
  else {
132
132
  this.itemsList = this.itemsList.map((i) => {
133
- if (optionId === this.getOptionId(i.id)) {
133
+ if (optionId === this.getOptionId(i)) {
134
134
  i.checked = !i.checked;
135
135
  }
136
136
  return i;
@@ -204,16 +204,22 @@ export class ZCombobox {
204
204
  toggleComboBox() {
205
205
  this.isopen = !this.isopen;
206
206
  }
207
+ getHeaderAriaLabel() {
208
+ if (!this.label || this.selectedCounter <= 0) {
209
+ return undefined;
210
+ }
211
+ const suffix = this.selectedCounter === 1 ? "elemento selezionato" : "elementi selezionati";
212
+ return `${this.label}: ${this.selectedCounter} ${suffix}`;
213
+ }
207
214
  getComboboxA11yAttributes(isZInput) {
208
215
  const role = "combobox";
209
- const ariaLabel = this.htmlAriaLabel;
210
216
  const ariaExpanded = this.isopen ? "true" : "false";
211
217
  const ariaActivedescendant = this.isopen ? this.focusedItemId : "";
212
218
  const ariaControls = `${this.inputid}_list`;
213
219
  if (isZInput) {
214
220
  return {
215
221
  "role": role,
216
- "aria-label": ariaLabel,
222
+ "aria-label": this.htmlAriaLabel,
217
223
  "html-aria-expanded": ariaExpanded,
218
224
  "html-aria-activedescendant": ariaActivedescendant,
219
225
  "html-aria-controls": ariaControls,
@@ -221,7 +227,6 @@ export class ZCombobox {
221
227
  }
222
228
  return {
223
229
  "role": role,
224
- "aria-label": ariaLabel,
225
230
  "aria-expanded": ariaExpanded,
226
231
  "aria-activedescendant": ariaActivedescendant,
227
232
  "aria-controls": ariaControls,
@@ -229,18 +234,16 @@ export class ZCombobox {
229
234
  }
230
235
  renderHeader() {
231
236
  const comboboxA11yAttributes = !this.hassearch ? this.getComboboxA11yAttributes(false) : {};
232
- return (h("div", Object.assign({ class: "header", onClick: () => this.toggleComboBox(), onKeyDown: (e) => this.handleHeaderKeyDown(e), role: "button", tabindex: 0, "aria-controls": "open-combo-data", "aria-expanded": this.isopen ? "true" : "false" }, comboboxA11yAttributes), h("span", { class: "body-3", "aria-label": this.label
233
- ? `${this.label}${this.selectedCounter > 0 ? ` - ${this.selectedCounter} selezionati` : ``}`
234
- : undefined }, this.label, h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), h("z-icon", { name: "caret-down", class: this.size })));
237
+ return (h("div", Object.assign({ class: "header", onClick: () => this.toggleComboBox(), onKeyDown: (e) => this.handleHeaderKeyDown(e), role: "button", tabindex: 0, "aria-controls": "open-combo-data", "aria-expanded": this.isopen ? "true" : "false", "aria-label": this.getHeaderAriaLabel() }, comboboxA11yAttributes), h("span", { class: "body-3" }, this.label, h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), h("z-icon", { name: "caret-down", class: this.size })));
235
238
  }
236
239
  renderContent() {
237
- return (h("div", { id: "open-combo-data", class: "open-combo-data" }, this.hassearch && this.renderSearchInput(), h("div", { role: "listbox", "aria-label": this.label, "aria-multiselectable": "true", id: `${this.inputid}_list`, "aria-owns": `${this.hascheckall ? `${this.getCheckAllOptionId()} ` : ``}${this.itemsList.map((item) => this.getOptionId(item.id)).join(" ")}` }, this.renderItems())));
240
+ return (h("div", { id: "open-combo-data", class: "open-combo-data" }, this.hassearch && this.renderSearchInput(), h("div", { role: "listbox", "aria-label": this.label, "aria-multiselectable": "true", id: `${this.inputid}_list`, "aria-owns": `${this.hascheckall ? `${this.getCheckAllOptionId()} ` : ``}${this.itemsList.map((item) => this.getOptionId(item)).join(" ")}` }, this.renderItems())));
238
241
  }
239
242
  renderItems() {
240
243
  return (h("div", { class: this.searchValue && "search", tabIndex: -1, role: "presentation" }, this.renderList(this.renderItemsList)));
241
244
  }
242
245
  renderItem(item, index, length) {
243
- const optionId = this.getOptionId(item.id);
246
+ const optionId = this.getOptionId(item);
244
247
  const isDisabled = !item.checked && this.hasReachedMaxSelections();
245
248
  return (h("z-list-element", { htmlTabindex: -1, dividerType: index !== length - 1 ? ListDividerType.ELEMENT : ListDividerType.NONE, size: this.getControlToListSize(), role: "presentation", disabled: !!isDisabled }, h("span", { class: "option-wrap", role: "presentation", onClick: () => {
246
249
  this.focusedItemId = "";
@@ -294,7 +297,7 @@ export class ZCombobox {
294
297
  return (h("z-list-element", { class: "check-all-wrapper", role: "presentation", htmlTabindex: -1, dividerType: ListDividerType.ELEMENT, dividerColor: "gray800", size: this.getControlToListSize(), disabled: !!isDisabled }, h("span", { class: "option-wrap", role: "presentation", onClick: () => this.checkOption(optionId) }, h("z-icon", { name: allChecked ? "checkbox-checked" : "checkbox", class: this.focusedItemId === optionId ? "focused" : "" }), h("span", { id: optionId, role: isDisabled ? "presentation" : "option", "aria-selected": allChecked ? "true" : "false" }, allChecked ? this.uncheckalltext : this.checkalltext))));
295
298
  }
296
299
  render() {
297
- return (h("div", { key: '23cd031ec2894308960df94374713e9395521a56', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
300
+ return (h("div", { key: '6ada0f3dc9aebeb5c97843c18935199f6c981e28', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
298
301
  }
299
302
  static get is() { return "z-combobox"; }
300
303
  static get encapsulation() { return "shadow"; }
@@ -716,3 +719,4 @@ export class ZCombobox {
716
719
  }];
717
720
  }
718
721
  }
722
+ //# sourceMappingURL=index.js.map